/* The same collage, composed for a narrower sheet of paper.
   This file is loaded only below the desktop breakpoint. */

.board { --mobile-gutter: clamp(1rem, 5.5vw, 2.25rem); }
.top-ribbon { min-height: 36px; padding: .55rem 1rem; line-height: 1.25; }
.navigation { min-height: 66px; padding-inline: var(--mobile-gutter); }
.brand { width: clamp(7rem, 29vw, 9.5rem); }
.brand img { width: 100%; height: auto; }
.main-nav { z-index: 30; }

/* Reuse the actual pin, patch and keychain in their own header row. */
.mobile-language-dock {
  display: flex;
  justify-content: center;
  padding: .35rem var(--mobile-gutter) .65rem;
  border-bottom: 1px solid #a39a7e26;
}
.mobile-language-dock .language-picker {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: .75rem;
  width: min(100%, 17rem);
  height: auto;
}
.mobile-language-dock .language-option {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-rows: 46px auto;
  align-items: center;
  justify-items: center;
  gap: .3rem;
  width: 100%;
  min-width: 44px;
  min-height: 70px;
  padding: .25rem .2rem .4rem;
  border-bottom: 2px solid transparent;
  border-radius: .3rem;
}
.mobile-language-dock .language-option[aria-pressed="true"] { border-bottom-color: #3e6182aa; }
.mobile-language-dock .language-name { font-size: .72rem; line-height: 1.2; }
.mobile-language-dock .language-charm { width: 48px; height: 46px; }
.mobile-language-dock .language-charm img { width: 100%; height: 100%; object-fit: contain; }
.mobile-language-dock .language-charm--patch { width: 51px; transform: rotate(-3deg); }
.mobile-language-dock .language-charm--keychain { width: 54px; }
.mobile-language-dock .language-charm--keychain img { transform: rotate(25deg) scale(.92); }

.chapter--hero { padding-top: 1rem; }
.hero-intro { padding-inline: var(--mobile-gutter); }
.welcome-tape { width: min(72%, 16rem); aspect-ratio: 221.33 / 40; margin-bottom: -.35rem; }
.welcome-label { inset: 23% 3% auto; font-size: clamp(.81rem, 3.65vw, 1.06rem); }
.hero-card {
  width: min(100%, 30rem);
  min-height: 0;
  aspect-ratio: 435 / 333;
  padding: 14% 9% 12%;
}
.hero-paper { width: 100%; height: 100%; object-fit: contain; }
.hero-card h1 { font-size: clamp(1.15rem, 5.4vw, 1.85rem); line-height: 1.14; gap: .65em; text-wrap: balance; }
.hero-gallery { width: min(calc(100% - 2.25rem), 38rem); aspect-ratio: 1.1; margin-top: .35rem; }
.hero-gallery .photo, .story-photos .photo, .program-photos .photo { aspect-ratio: auto; }
.light-lab { --mx: 11%; --my: 3%; --mw: 35%; }
.film-strip { --mx: 1%; --my: 0%; --mw: 15%; }
.courtyard { --mx: 46%; --my: 6%; --mw: 51%; }
.garden { --mx: 18%; --my: 49%; --mw: 34%; }
.piano { --mx: 1%; --my: 64%; --mw: 26%; }
.outdoor-room { --mx: 43%; --my: 49%; --mw: 50%; }
.green-note { --mx: 72%; --my: 48%; --mw: 26%; }
.green-note-copy { font-size: clamp(.64rem, 2.7vw, .96rem); }
.feeling-good { --mx: 44%; --my: 53%; --mw: 17%; }
.passport { --mx: -2%; --my: -1%; --mw: 12%; }
.cassette { --mx: 65%; --my: 71%; --mw: 32%; }
.gold-star { --mx: 41%; --my: 0%; --mw: 15%; }
.pencil-star { --mx: 43%; --my: 38%; --mw: 12%; }
.cat { --mx: 60%; --my: 74%; --mw: 14%; }
.music-notes { --mx: 1%; --my: 58%; --mw: 23%; }
.photo::after { width: 1.4rem; height: 1.4rem; font-size: .95rem; }
.mobile-gallery-hint { margin-top: .4rem; padding-bottom: 1.25rem; font-size: .8rem; }

.chapter--story, .chapter--program, .chapter--approach, .chapter--voices,
.chapter--visit, .chapter--faq, .chapter--admissions { width: min(100%, 45rem); }
.chapter--story { padding: 1.25rem var(--mobile-gutter) .5rem; }
.story-copy { padding: 1rem clamp(.85rem, 4vw, 1.5rem) 1.2rem; }
.story-copy h3 { font-size: clamp(1.05rem, 4.3vw, 1.2rem); line-height: 1.2; }
.story-copy p { font-size: 1rem; line-height: 1.45; letter-spacing: -.015em; }
.story-copy > div + div { margin-top: 1.1rem; }
.story-photos { aspect-ratio: 1.12; margin-top: 1.1rem; }
.story-documentation { --mx: 3%; --my: 3%; --mw: 33%; }
.story-guides { --mx: 31%; --my: 25%; --mw: 35%; }
.story-room { --mx: 6%; --my: 49%; --mw: 32%; }
.story-garden { --mx: 64%; --my: 2%; --mw: 33%; }
.journey-note { --mx: 58%; --my: 43%; --mw: 39%; }
.journey-copy { font-size: clamp(.62rem, 2.75vw, 1rem); line-height: 1.2; }
.ribbon { position: relative; inset: auto; width: 96%; height: auto; aspect-ratio: 957 / 311; margin: -.1rem auto -1.2rem; }

.chapter--program { gap: .75rem; padding: 2rem var(--mobile-gutter) 1.3rem; }
.program-early { padding: 1.4rem clamp(1rem, 5vw, 2rem) 1.6rem; }
.program-early h2 { font-size: clamp(1.35rem, 5.4vw, 1.65rem); }
.program-early p { font-size: 1rem; line-height: 1.4; max-width: 28rem; margin-inline: auto; }
.program-early > div + div { margin-top: 1.15rem; }

/* The paper keeps its original ratio; text occupies its clear central area. */
.program-elementary, .program-method {
  display: grid;
  grid-template-areas: "paper";
  align-content: normal;
  width: min(100%, 34rem);
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  margin-block: .35rem;
  isolation: isolate;
}
.program-elementary > img, .program-method > img {
  grid-area: paper;
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  align-self: center;
}
.program-elementary-copy, .program-method-copy {
  grid-area: paper;
  position: relative;
  inset: auto;
  z-index: 1;
  align-self: center;
  padding: 13% 10% 9%;
  transform: none;
}
.program-method-copy { padding: 13% 11% 10%; }
.program-elementary h3, .program-method h3 { margin-bottom: .3rem; font-size: clamp(.96rem, 4.1vw, 1.2rem); }
.program-elementary .paper-link, .program-method .paper-link { min-height: 44px; padding: .15em 0; }
.program-elementary p, .program-method p { font-size: clamp(.9rem, 3.7vw, 1.04rem); line-height: 1.35; letter-spacing: -.02em; }
.program-photos { width: min(100%, 34rem); aspect-ratio: 1.25; margin: .6rem auto .25rem; }
.eye { --mx: 0%; --my: 2%; --mw: 18%; }
.math-materials { --mx: 4%; --my: 14%; --mw: 36%; }
.binoculars { --mx: 34%; --my: 3%; --mw: 44%; }
.stella { --mx: 74%; --my: 24%; --mw: 23%; }
.create { --mx: 56%; --my: 66%; --mw: 40%; }

.chapter--approach { padding: 1.6rem var(--mobile-gutter) 1.6rem; }
.approach-potential { padding: 1.25rem 1.15rem; }
.approach-potential h2 { font-size: clamp(1.3rem, 5.2vw, 1.6rem); line-height: 1.12; text-wrap: balance; }
.approach-potential p { font-size: 1rem; line-height: 1.42; }
.approach-ink { gap: .65rem; width: min(100%, 33rem); margin: 1.5rem auto 1.2rem; padding-inline: .15rem; }
.approach-ink .handwritten { max-width: 95%; min-height: 44px; padding: .3rem .35rem; }
.approach-ink .handwritten span { font-size: clamp(1.15rem, 4.9vw, 1.75rem); line-height: 1.5; transform: rotate(-2deg); text-wrap: balance; }
.approach-ink .handwritten:nth-child(even) span { transform: rotate(1deg); }
.approach-ink .handwritten.ratio span { font-size: clamp(1rem, 3.9vw, 1.5rem); }
.approach-mobile-photos { width: min(100%, 32rem); gap: .5rem; margin-top: .6rem; padding-bottom: .75rem; }
.approach-mobile-photos img { width: calc(50% - .25rem); height: auto; object-fit: contain; }
.envelope { bottom: 8%; left: 64%; width: 15%; }
.approach-flower { bottom: -.45rem; left: 69%; width: 27%; }
.snake-photo img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.voices-copy { padding: 1.35rem clamp(.9rem, 5vw, 2rem); }
.voices-copy blockquote { line-height: 1.4; }

.chapter--visit { gap: 1.2rem; padding: 1.2rem var(--mobile-gutter) 1.75rem; }
.contact-card { padding: 1.3rem clamp(1rem, 5vw, 2rem); }
.contact-method a { overflow-wrap: anywhere; max-width: 100%; }
.tour-note { padding: .8rem 1rem; line-height: 1.35; }
.events-card {
  width: min(calc(100% - .3rem), 34rem);
  margin-top: .5rem;
  padding: 1.5rem clamp(1rem, 5vw, 2rem) 1.2rem;
  border: 1px solid #c4b69e80;
  border-radius: .18rem .32rem .22rem .12rem;
  box-shadow: .1rem .2rem .35rem #51433826;
  transform: rotate(-.6deg);
}
.events-card::before {
  content: "";
  position: absolute;
  top: -.48rem;
  left: 40%;
  width: 3.8rem;
  height: 1rem;
  background: #c9b394b0;
  transform: rotate(-5deg);
  pointer-events: none;
}
.events-card h2 { font-size: clamp(1.25rem, 5.2vw, 1.65rem); line-height: 1.1; text-wrap: balance; }
.events-card p { font-size: 1rem; line-height: 1.4; }
.events-card .paper-link { margin-top: .45rem; }
.compass { top: 1.1rem; right: .3rem; width: min(17%, 5rem); pointer-events: none; }
.chapter--faq { padding: 1.15rem var(--mobile-gutter) 1.65rem; }
.faq-sheet { padding: 1.2rem 1rem 1.4rem; }
.faq-list summary { line-height: 1.3; padding-block: .65rem; }

/* Scale the original botanical cards evenly, including their flowers and tape. */
.chapter--admissions { padding: 1rem var(--mobile-gutter) 1.5rem; }
.enroll-title { max-width: 30rem; margin: 0 auto 1.1rem; font-size: clamp(1.35rem, 5.6vw, 1.8rem); line-height: 1.12; text-wrap: balance; }
.steps { display: grid; gap: .3rem; max-width: 24rem; }
.step {
  width: 96%;
  min-height: 0;
  margin: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  justify-self: start;
}
.step-one { aspect-ratio: 547 / 468; padding: 22% 24% 20% 16%; }
.step-two { aspect-ratio: 546 / 492; justify-self: end; padding: 20% 16% 20% 25%; }
.step-three { aspect-ratio: 565 / 547; padding: 25% 12% 20% 29%; }
.step h3 { margin-bottom: .6rem; font-size: clamp(1rem, 4.4vw, 1.3rem); line-height: 1.15; }
.step p { font-size: clamp(.94rem, 4vw, 1.18rem); line-height: 1.3; text-wrap: balance; }
.enroll-actions { gap: 1rem; margin-top: 1rem; padding-inline: .4rem; }
.enroll-actions .scrap-button { max-width: 100%; padding: .85rem 1rem; }
.enroll-actions > .paper-link { min-height: 44px; display: grid; place-items: center; }
.site-footer { padding: 1.4rem var(--mobile-gutter) 6rem; }
.whatsapp-bubble { min-height: 44px; gap: .4rem; padding: .35rem .65rem .35rem .4rem; }
.chat-mark { width: 1.75rem; height: 1.75rem; }
.chat-words { font-size: .68rem; }
.chat-words strong { font-size: .84rem; }
.detail-sheet { width: calc(100vw - 1.25rem); max-height: 88dvh; }
.detail-inner { padding-bottom: 5rem; }

@media (max-width: 355px) {
  .hero-card h1 { font-size: 1.15rem; }
  .program-elementary-copy { padding-inline: 9% 12%; }
  .program-method-copy { padding-inline: 11%; }
  .program-elementary h3, .program-method h3 { font-size: .96rem; }
  .program-elementary p, .program-method p { font-size: .9rem; line-height: 1.3; }
  .step p { font-size: .9rem; }
}
@media (min-width: 560px) {
  .chapter--hero { padding-top: 1.4rem; }
  .hero-intro { max-width: 38rem; }
  .hero-card { padding: 12% 10%; }
  .hero-gallery { margin-top: .65rem; }
  .mobile-gallery-hint { margin-top: 1rem; }
  .program-elementary-copy, .program-method-copy { padding: 15% 12% 12%; }
  .program-elementary p, .program-method p { font-size: 1.12rem; line-height: 1.4; }
  .program-elementary h3, .program-method h3 { font-size: 1.35rem; }
  .steps { max-width: 28rem; }
  .step p { font-size: 1.25rem; }
}
