/* ==========================================================================
   Mangawhai Village Preschool
   Coastal Northland. Sand, pōhutukawa, teal water, charcoal tree.
   Palette drawn from the centre's own logo, grounded into earthy neutrals.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Grounds */
  --white:      #FFFFFF;   /* clean neutral — hero, content surfaces, cards */
  --paper:      #FDFBF7;   /* barely-warm white, for large calm areas */
  --cream:      #FAF0DF;   /* page */
  --cream-warm: #F7E9D4;   /* subtle alternate */
  --sand:       #F3D6A9;   /* section / footer band */
  --sand-deep:  #E6C08A;   /* hairlines on sand */

  /* Ink */
  --ink:        #232323;   /* text + dark grounding */
  --ink-75:     #4C4843;
  --ink-55:     #6E6960;

  /* Earth + accent */
  --sage:       #355C3F;
  --forest:     #24422C;   /* deep ground for the dark sections — the logo's hill, deepened */
  --sage-deep:  #24422C;
  --teal:       #1F9BA3;   /* GRAPHIC ONLY — 2.96:1 on cream, never body text */
  --teal-ink:   #1A7375;   /* text, links, buttons — 4.95:1 on cream */
  --sun:        #F19A3A;   /* rationed: one moment per page, ink text on top */

  /* Type — taken straight off the logo lockup, which uses two faces:
     a chunky rounded cap face for MANGAWHAI, and a light geometric sans for
     "Village Preschool". The header wordmark reproduces that pairing exactly.
     Across the rest of the site the geometric carries the headings, because it
     is the readable half; the rounded face stays a brand signature.
     Body is a humanist sans — legible at 16px in a way a geometric is not. */
  --brand:   'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --display: 'Outfit', 'Century Gothic', system-ui, sans-serif;
  --sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm — deliberately several widths, not one */
  --wide:   1320px;
  --normal: 1120px;
  --text:   720px;
  --gut: clamp(22px, 5.2vw, 68px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 2px; }

/* ---------- Paper grain ----------
   Very low-opacity turbulence so flat cream doesn't read as screen-flat. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 200;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.9vw, 4.7rem); font-weight: 500; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.95rem); letter-spacing: -0.012em; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
h4 { font-size: 1.06rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }

/* The logo sets heavy caps against a light lowercase line. Emphasis inside a
   heading borrows that contrast — a lighter weight in sage, not an italic. */
.soft {
  font-style: normal;
  font-weight: 300;
  color: var(--sage);
}
h1 .soft, h2 .soft { letter-spacing: 0; }

p { max-width: 64ch; }
p + p { margin-top: 1.05em; }
strong { font-weight: 700; }

.lead {
  font-size: clamp(1.14rem, 1.55vw, 1.36rem);
  line-height: 1.62;
  color: var(--ink-75);
  max-width: 56ch;
}
.small { font-size: .93rem; line-height: 1.65; color: var(--ink-75); }
.meta {
  font-size: .74rem; letter-spacing: .17em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-55);
}

/* Eyebrow with a short teal rule — the recurring structural accent */
.eyebrow {
  display: flex; align-items: center; gap: .8em;
  font-size: .745rem; letter-spacing: .19em; text-transform: uppercase;
  font-weight: 700; color: var(--teal-ink); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--teal); flex: none; }
.eyebrow.is-sage { color: var(--sage); }
.eyebrow.is-sage::before { background: var(--sage); }
.eyebrow.on-dark { color: var(--sand); }
.eyebrow.on-dark::before { background: var(--sun); }
.eyebrow.is-centred { justify-content: center; }

/* Hand-drawn underline, wobbled on purpose */
.drawn { position: relative; display: inline-block; }
.drawn::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: -.16em;
  height: .34em;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.4C48 4.2 96 3.1 148 5.2c40 1.6 78 4.6 116 1.1' fill='none' stroke='%23F19A3A' stroke-width='4.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.drawn.is-teal::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.4C48 4.2 96 3.1 148 5.2c40 1.6 78 4.6 116 1.1' fill='none' stroke='%231F9BA3' stroke-width='4.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--normal); margin-inline: auto; padding-inline: var(--gut); }
.wrap.is-wide { max-width: var(--wide); }
.wrap.is-text { max-width: calc(var(--text) + var(--gut) * 2); }

/* Sections vary on purpose — mechanical equal padding is the AI tell */
.sec        { padding-block: clamp(64px, 8.5vw, 118px); }
.sec.is-tall{ padding-block: clamp(88px, 13vw, 176px); }
.sec.is-tight{padding-block: clamp(44px, 5.5vw, 72px); }

.band-white { background: var(--white); }
.band-paper { background: var(--paper); }
.band-sand  { background: var(--sand); }
.band-cream { background: var(--cream); }
.band-warm  { background: var(--cream-warm); }
.band-deep  { background: var(--forest); color: var(--cream); }
.band-sage  { background: var(--sage); color: var(--cream); }
.band-deep h1, .band-deep h2, .band-deep h3, .band-sage h2, .band-sage h3 { color: var(--cream); }
.band-deep .soft, .band-sage .soft { color: var(--sand); }
.band-deep p, .band-sage p { color: #E8DFCE; }

/* Section divider — two overlapping wave layers, the way the logo stacks its
   teal wave over the sand one. Irregular by hand, not a symmetric sine.
   The strip behind the waves is painted the colour of the section ABOVE, so the
   join reads as one continuous surface instead of a band of page background. */
.edge {
  --edge-top:   var(--cream);   /* whatever sits above this divider */
  --edge-back:  #F6E3C3;        /* the lighter wave, sitting behind */
  --edge-front: var(--sand);    /* the leading wave, matches the section below */
  --edge-h: clamp(64px, 7.2vw, 112px);
  display: block; width: 100%;
  height: var(--edge-h);
  background: var(--edge-top);
}

/* Lapping variant: drop the painted backdrop and pull the whole thing up, so the
   wave shapes themselves run over the bottom of the image above instead of
   sitting under it behind a flat strip. */
.edge.overlap {
  background: transparent;
  position: relative;
  z-index: 1;
  margin-top: calc(var(--edge-h) * -0.62);
}

/* A section that follows an overlapping wave already carries the wave's own
   height above its content, so it does not need a full section pad on top too. */
.edge.overlap + .sec { padding-top: clamp(24px, 3vw, 46px); }
.edge .w-back  { fill: var(--edge-back); }
.edge .w-front { fill: var(--edge-front); }
.edge.flip { transform: scaleX(-1); }

/* What sits ABOVE the divider */
.edge.from-white { --edge-top: var(--white); }
.edge.from-sand  { --edge-top: var(--sand); }
.edge.from-cream { --edge-top: var(--cream); }
.edge.from-deep  { --edge-top: var(--forest); }

/* What sits BELOW it — the two wave tones */
/* Rear wave stays lighter than the leading one so it blends up into the section
   above rather than reading as a hard second band. Cream and white sit close
   together, so this layer is deliberately a soft edge, not a distinct wave. */
.edge.to-cream { --edge-back: #FCF8EF; --edge-front: var(--cream); }

/* The rear wave is the midpoint of the two sections a divider actually joins, so
   it reads as a graded step from one ground to the next rather than a stripe. */
.edge.from-sand.to-cream  { --edge-back: #F6E3C4; }   /* sand  -> cream */
.edge.from-sand.to-white  { --edge-back: #F9EAD4; }   /* sand  -> white */
.edge.from-white          { --edge-back: #F9EAD4; }   /* white -> sand  */
.edge.from-cream.to-white { --edge-back: #FCF8EF; }   /* cream -> white */
.edge.from-white.to-cream { --edge-back: #FCF8EF; }   /* white -> cream */
.edge.to-white {
  --edge-back:  #FEFBF6;
  --edge-front: var(--white);
}
.edge.to-deep {
  --edge-back:  #33573C;
  --edge-front: var(--forest);
}
.edge.to-warm {
  --edge-back:  #FBF0DE;
  --edge-front: var(--cream-warm);
}

/* ---------- Buttons — three distinct shapes, not three pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .62em;
  font-family: var(--sans); font-weight: 700;
  font-size: .93rem; letter-spacing: .015em;
  padding: .95em 2.05em;
  border-radius: 3px;
  transition: transform .28s var(--ease), background-color .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease);
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }

/* The one orange moment per page. Ink on sun = 7.05:1 */
.btn--sun {
  background: var(--sun); color: var(--ink);
  box-shadow: 0 1px 0 rgba(35,35,35,.22);
  border-radius: 3px 14px 3px 14px;
  padding: 1.02em 2.35em;
}
.btn--sun:hover { background: #E88C26; box-shadow: 0 8px 22px -10px rgba(35,35,35,.55); }

.btn--ink { background: var(--ink); color: var(--cream); }
/* Hollow on a dark ground, filling with cream on hover. */
.btn--ghost {
  color: var(--cream);
  border: 1.5px solid rgba(250, 240, 223, .55);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn--ghost::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0;
  background: var(--cream); z-index: -1; transition: height .32s var(--ease);
}
.btn--ghost:hover { color: var(--forest); border-color: var(--cream); }
.btn--ghost:hover::before { height: 100%; }
.btn--ink:hover { background: #0E0E0E; }

/* Outline with a fill that wipes up from the baseline */
.btn--line {
  color: var(--teal-ink);
  border: 1.5px solid var(--teal-ink);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn--line::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0;
  background: var(--teal-ink); z-index: -1; transition: height .32s var(--ease);
}
.btn--line:hover { color: #fff; }
.btn--line:hover::before { height: 100%; }
.btn--line.on-dark { color: var(--sand); border-color: rgba(243,214,169,.5); }
.btn--line.on-dark::before { background: var(--sand); }
.btn--line.on-dark:hover { color: var(--ink); border-color: var(--sand); }

/* Text link with the drawn rule sliding in */
.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .95rem; color: var(--teal-ink);
  padding-bottom: 3px; position: relative;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(.34); transform-origin: left;
  transition: transform .34s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link svg { transition: transform .34s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link.on-dark { color: var(--sand); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: rgba(35,35,35,.11); }
.header-in {
  max-width: var(--wide); margin-inline: auto; padding: .85rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .72rem; min-width: 0; }
.brand img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.brand-words { display: grid; line-height: 1; }
/* The header wordmark rebuilds the logo lockup in type: the rounded cap face
   over the light geometric line, same as the mark sitting beside it. */
.brand-words b {
  font-family: var(--brand); font-weight: 600;
  font-size: clamp(.88rem, 3.6vw, 1.16rem);
  letter-spacing: .022em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap;
}
.brand-words span {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(.58rem, 2.3vw, .78rem);
  letter-spacing: .1em; text-transform: none;
  color: var(--teal-ink); margin-top: .26em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.1rem); }
.nav a {
  font-size: .885rem; font-weight: 600; color: var(--ink);
  position: relative; padding: .35rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 6px;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C22 2.4 44 1.9 68 3.3c18 1 34 2.4 50 .9' fill='none' stroke='%231F9BA3' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0; transform: translateY(3px); transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { opacity: 1; transform: none; }
.nav a[aria-current="page"] { color: var(--teal-ink); }
/* `.nav a` sets padding: .35rem 0, which outranks `.btn` and was flattening the
   header button's sides. Restate it here at higher specificity. */
.nav .btn { margin-left: .45rem; padding: .72em 1.5em; }
.nav .btn::after { display: none; }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger span { display: block; width: 23px; height: 2px; background: var(--ink); position: relative; transition: background-color .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 23px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; flex: none; }
  .header-in { gap: .75rem; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid rgba(35,35,35,.12);
    padding: .5rem var(--gut) 1.6rem;
    transform: translateY(-125%); transition: transform .4s var(--ease);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid rgba(35,35,35,.09); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .btn { margin: 1.1rem 0 0; justify-content: center; }
}

/* ---------- Home hero ----------
   Type-led and minimal. One headline, one line of fact, one button.
   The photograph bleeds off the right edge at full hero height, which does
   the impact without a single overlay, gradient or floating badge. */
.hero { background: var(--white); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  align-items: stretch; gap: 0;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(58px, 8vw, 116px);
  padding-right: clamp(30px, 4.5vw, 76px);
  padding-left: max(var(--gut), calc((100vw - var(--wide)) / 2 + var(--gut)));
}
.hero-copy h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  /* headline straight into the CTA, so it carries the gap the lead used to */
  margin-bottom: clamp(1.9rem, 3.2vw, 2.9rem);
}

/* Portrait still always renders; the Live Photo loop is layered over it and
   only started by JS on wide, motion-friendly screens. */
.hero-media { position: relative; }
.hero-live {
  position: relative; overflow: hidden; height: 100%;
  background: var(--sand);
}
.hero-live img, .hero-vid {
  width: 100%; height: 100%;
  min-height: clamp(400px, 64vh, 720px);
  object-fit: cover; object-position: 48% 46%;
}
.hero-vid {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .9s var(--ease);
}
.hero-vid.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-vid { display: none; } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy {
    padding-inline: var(--gut);
    padding-block: clamp(44px, 8vw, 72px) clamp(32px, 5vw, 48px);
  }
  .hero-live img, .hero-vid { min-height: 0; aspect-ratio: 4 / 3.3; object-position: 50% 42%; }
}

/* ---------- Page header (inner pages) ---------- */
/* Page header. A photograph of the centre behind a deep ombre, so every inner
   page opens with the place itself rather than sliding into cream content. The
   gradient runs diagonally, heaviest at the bottom-left where the type sits and
   thinning toward the top-right so the photo still reads. */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  /* Same vertical rhythm as a standard section on the home page, so inner pages
     do not open with noticeably more air than the home page does. */
  padding-block: clamp(66px, 8.6vw, 122px) clamp(56px, 7vw, 100px);
}
.page-head-bg { position: absolute; inset: 0; z-index: -2; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; }
/* The ombre runs top-to-bottom, because the headline and the lead sit side by
   side low in the block — a diagonal left the right-hand column in the light. */
.page-head::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(18, 28, 20, .42) 0%, rgba(18, 28, 20, .10) 62%, rgba(18, 28, 20, 0) 100%),
    linear-gradient(to bottom,
      rgba(18, 28, 20, .34) 0%,
      rgba(18, 28, 20, .62) 34%,
      rgba(20, 32, 22, .86) 66%,
      rgba(20, 32, 22, .95) 100%);
}
.page-head-bg img { object-position: var(--head-pos, 50% 50%); }
.page-head h1 { color: var(--cream); max-width: 15ch; }
.page-head h1 .soft { color: var(--sand); }
.page-head .lead { margin-top: 1.6rem; color: #E4DCCB; }
.page-head .eyebrow { margin-bottom: 1.6rem; color: var(--sand); }
.page-head .eyebrow::before { background: var(--sun); }
.page-head .drawn::after { filter: none; }
.page-head--split {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
@media (max-width: 860px) { .page-head--split { grid-template-columns: 1fr; } }

/* The band hugs its line rather than sitting in a deep field of sand — the wave
   dividers above and below already give it room. */
.band-ribbon { padding-block: clamp(26px, 3.3vw, 48px); }

/* ---------- Tagline band ----------
   The centre's own line, given a divider-height band of its own. Two tiers so
   the strip has hierarchy without height: the tagline in the display face, the
   supporting sentence smaller and quieter underneath. */
.glance {
  display: grid; justify-items: center; text-align: center;
  gap: clamp(9px, 1.1vw, 15px);
}
.glance-tag {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.32rem, 2.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -.016em;
  color: var(--ink);
  max-width: 52ch;
  margin: 0;
  text-wrap: balance;
}
.glance-tag em { font-style: normal; font-weight: 500; color: var(--sage); }
.glance-sub {
  font-size: clamp(.92rem, 1.15vw, 1.04rem);
  line-height: 1.55;
  color: var(--ink-75);
  max-width: 84ch;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Editorial spread (two columns, offset, one image bleeds) ---------- */
.spread {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(30px, 5vw, 86px); align-items: center;
}
.spread.is-reverse .spread-media { order: 2; }
.spread.is-offset .spread-copy { padding-top: clamp(0px, 4vw, 62px); }
@media (max-width: 900px) {
  .spread { grid-template-columns: 1fr; gap: 34px; }
  .spread.is-reverse .spread-media { order: 0; }
  .spread.is-offset .spread-copy { padding-top: 0; }
}

/* Image shapes — deliberately not one shared radius */
.shape-arch  { border-radius: 999px 999px 8px 8px; }
.shape-leaf  { border-radius: 130px 8px 130px 8px; }
.shape-wave  { border-radius: 8px 150px 8px 150px; }
.shape-flat  { border-radius: 4px; }
.shape-arch, .shape-leaf, .shape-wave, .shape-flat { overflow: hidden; }
.shape-arch img, .shape-leaf img, .shape-wave img, .shape-flat img { width: 100%; height: 100%; object-fit: cover; }


/* The aerial sits in the values column, under the link, where there was empty
   space. At roughly 580px from an 849px source it downscales, so it stays sharp —
   the opposite of stretching it across the full viewport. */
.note-photo { margin-top: clamp(28px, 3.6vw, 48px); }

/* Team photos sit as a pair rather than one oversized image, and share a height
   so the row reads as one block. */


.note-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; }

.media-stack { position: relative; }
.media-stack .under {
  position: absolute; right: -6%; bottom: -12%; width: 46%;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 22px 48px -28px rgba(35,35,35,.62);
  border: 7px solid var(--cream);
}
@media (max-width: 900px) { .media-stack .under { width: 40%; right: 0; bottom: -9%; } }

/* ---------- Director's note ---------- */
/* No photograph here. Between the hero image, the programme rows and the photo
   strip, the page needs one section that is nothing but words — so the quote
   carries it at full display scale, with the copy offset beside it. */
.note {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(26px, 5.2vw, 92px);
  align-items: start;
}
.note-body { padding-top: clamp(6px, 2.6vw, 44px); }

/* The four values, using the same hairline-row device as the daily rhythm on
   Programmes — the site already lists things this way, so the one dark section
   stops looking like it came from somewhere else. */
.values-rows { padding-top: clamp(2px, 1vw, 12px); }
.values-rows > li {
  padding: clamp(1rem, 1.7vw, 1.45rem) 0;
  border-top: 1px solid rgba(243, 214, 169, .2);
}
.values-rows > li:last-child { border-bottom: 1px solid rgba(243, 214, 169, .2); }
.values-rows h3 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.15; letter-spacing: -.012em;
  color: var(--sand); margin-bottom: .38rem;
}
.values-rows p { font-size: .97rem; line-height: 1.6; color: #D5CDBE; max-width: 44ch; }
.note-body > * + * { margin-top: 1.15rem; }
@media (max-width: 880px) {
  .note { grid-template-columns: 1fr; gap: 28px; }
  .note-body { padding-top: 0; }
}

.note-quote {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.95rem, 4.3vw, 3.45rem); line-height: 1.14;
  letter-spacing: -.022em; color: var(--cream); max-width: 15ch;
  text-wrap: balance;
}

/* ---------- Programme rows — staggered, alternating, varied sizes ---------- */
.prog { display: grid; gap: clamp(36px, 4vw, 56px); }
.prog-row {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(26px, 4.4vw, 70px); align-items: start;
}
.prog-row:nth-child(even) .prog-media { order: 2; }
/* When the picture moves to the second slot the column ratio has to flip with it,
   or the reversed rows end up with a wider image than the others. */
.prog-row:nth-child(even) { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
/* Portrait phone photos cropped to landscape: bias the crop upward so faces and
   heads survive instead of being cut by a centred crop. */
.prog-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: 50% 32%; }
/* Landscape crops of portrait phone photos lose half the frame, so each one is
   positioned to the subject rather than to the centre of the file. */
.prog-media img[src*="mud-kitchen"] { object-position: 50% 12%; }  /* keep the head and the bowl */
.prog-media img[src*="bikes-child"] { object-position: 50% 70%; }  /* keep head, boots and the ball */
.prog-media img[src*="slide-arms"]  { object-position: 50% 22%; }  /* keep head and feet */
.prog-row:nth-child(2) .prog-media img { aspect-ratio: 5/3; }
.prog-copy h3 { margin-bottom: 1rem; }

/* Age range, used on the Programmes page above each stage heading. Small caps
   rather than the bordered pill it started as — that pill was the only
   form-shaped element on the site. */
.ages {
  display: block;
  font-family: var(--sans);
  font-size: .74rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: .7rem;
}
@media (max-width: 900px) {
  .prog-row, .prog-row:nth-child(even) { grid-template-columns: 1fr; }
  .prog-row:nth-child(even) .prog-media { order: 0; }
}

/* ---------- Feature list with drawn ticks ---------- */
.ticks { display: grid; gap: .8rem; margin-top: 1.5rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; font-size: .97rem; }
.ticks svg { margin-top: .42em; color: var(--teal); }
.ticks.on-dark svg { color: var(--sun); }

/* ---------- Daily rhythm timeline ---------- */
.rhythm { display: grid; gap: 0; max-width: 780px; }
.rhythm li {
  display: grid; grid-template-columns: clamp(88px, 12vw, 124px) 1fr;
  gap: clamp(16px, 3vw, 34px);
  padding: 1.35rem 0; border-top: 1px solid rgba(35,35,35,.14);
  align-items: start;
}
.rhythm li:last-child { border-bottom: 1px solid rgba(35,35,35,.14); }
.rhythm time {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  color: var(--teal-ink); letter-spacing: .01em; padding-top: .12em;
}
.rhythm h4 { margin-bottom: .3rem; }
.rhythm p { font-size: .95rem; color: var(--ink-75); }

/* ---------- Team ---------- */








/* Philosophy: photograph on the left, the centre's own sentence on the right,
   with the values grid running full width beneath. */
.phil-spread { align-items: center; }
.phil { text-align: left; }
.phil-quote {
  font-weight: 300;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.016em;
  max-width: 20ch;
  text-wrap: balance;
}
.phil-note {
  margin-top: clamp(18px, 2.2vw, 28px);
  max-width: 48ch;
  font-size: .99rem;
  line-height: 1.68;
  color: var(--ink-75);
}
.phil-photo { overflow: hidden; border-radius: 8px 140px 8px 140px; }
.phil-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 72% 48%; }
@media (max-width: 900px) {
  .phil-photo { border-radius: 6px 90px 6px 90px; }
  .phil-photo img { aspect-ratio: 16 / 9; }
}

/* Secondary section headings step down, so every h2 on a page is not the same
   size and the page has somewhere to put emphasis. */
.h2-sub { font-size: clamp(1.5rem, 2.7vw, 2.25rem); }

/* Fifteen portraits is a lot of scrolling on a phone, so they collapse behind a
   toggle there. Open by default in the markup, closed by JS only on small
   screens — with no JS everyone still sees the whole team. */
.team-reveal > summary {
  display: none;
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: .95rem; color: var(--teal-ink);
  padding: .85rem 0;
}
.team-reveal > summary::-webkit-details-marker { display: none; }
.team-reveal > summary span {
  display: inline-flex; align-items: center; gap: .55em;
  border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
}
.team-reveal > summary span::after {
  content: ""; width: 9px; height: 9px; border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s var(--ease);
}
.team-reveal[open] > summary span::after { transform: rotate(-135deg) translate(-3px, -3px); }
@media (max-width: 760px) {
  .team-reveal > summary { display: block; }
  .team-reveal[open] > .team-grid { margin-top: .4rem; }
}

/* Closes the "why" section with a photograph rather than 96px of empty ground. */
/* Full width, at the foot of the section, so it closes the four points rather
   than cutting the heading off from them. */
.why-photo {
  overflow: hidden;
  border-radius: 140px 8px 140px 8px;
  margin-top: clamp(40px, 5.2vw, 70px);
}
.why-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 640px) {
  .why-photo { border-radius: 80px 6px 80px 6px; }
  .why-photo img { aspect-ratio: 16 / 9; }
}

/* The team, with the centre's own portraits. A plain grid of faces reads better
   here than any layout trick — fifteen people is the point. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px) clamp(14px, 1.8vw, 26px);
}
.team-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 90px 90px 6px 6px;
  background: var(--cream);
  margin-bottom: .75rem;
}
.team-grid h3 { font-size: 1rem; line-height: 1.25; margin-bottom: .2rem; }
/* Roles run to one or two lines ("Teacher" vs "ECE Teacher · Person Responsible"),
   which left the cards at different heights. Reserve two lines for all of them. */
.team-grid .meta {
  font-size: .66rem; letter-spacing: .09em; color: var(--teal-ink);
  line-height: 1.45; min-height: 2.9em;
}
@media (max-width: 1040px) { .team-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 780px)  { .team-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 480px)  { .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Why you choose us — the centre's own four reasons. Two by two with a coastal
   mark each, so it reads differently from the values grid further up the page. */
.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(30px, 5vw, 88px);
  row-gap: clamp(30px, 4.4vw, 58px);
}
.why > li { padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid var(--sand-deep); }
.why-mark { --ic: clamp(34px, 3.4vw, 44px); color: var(--teal); display: block; margin-bottom: .95rem; }
.why h3 { font-size: clamp(1.18rem, 1.7vw, 1.45rem); margin-bottom: .5rem; }
.why p { font-size: .97rem; line-height: 1.62; color: var(--ink-75); max-width: 46ch; }
@media (max-width: 720px) { .why { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(20px, 3vw, 44px); }
.values > li { padding-top: 1.4rem; border-top: 2px solid var(--teal); }
.values > li:nth-child(2) { border-top-color: var(--sage); }
.values > li:nth-child(3) { border-top-color: var(--sun); }
.values > li:nth-child(4) { border-top-color: var(--ink); }
.values h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.values p { font-size: .94rem; color: var(--ink-75); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .values { grid-template-columns: 1fr; } }

/* ---------- Photo strip — varied widths, not a uniform grid ---------- */
.strip { display: grid; grid-template-columns: 1.35fr 1fr 1.15fr 1fr; gap: 10px; }
.strip figure { overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.strip figure:hover img { transform: scale(1.045); }
/* One height across all four; the columns stay uneven so the rhythm comes from
   width rather than from stepping the images up and down. */
.strip img { height: clamp(240px, 30vw, 430px); }
/* A near-square photo in a portrait slot crops from the sides, so hold the crop
   left of centre to keep both faces in frame. */
.strip img[src*="teacher"] { object-position: 40% 28%; }
.strip figure:nth-child(1) { border-radius: 120px 6px 6px 6px; }
.strip figure:nth-child(4) { border-radius: 6px 6px 120px 6px; }
@media (max-width: 780px) {
  .strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- Gallery ---------- */
.gal-group + .gal-group { margin-top: clamp(58px, 8vw, 108px); }
.gal-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.1rem;
  border-bottom: 1px solid rgba(35,35,35,.16); padding-bottom: 1rem;
}
.gal-head h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
.gal-head p { font-size: .93rem; color: var(--ink-75); max-width: 42ch; }

.gal { display: grid; gap: 12px; }
.gal-a { grid-template-columns: 1.6fr 1fr; }
.gal-a figure:nth-child(1) { grid-row: span 2; }
.gal-b { grid-template-columns: 1fr 1fr 1fr; }
.gal-b figure:nth-child(3) { grid-column: span 2; }
.gal figure { overflow: hidden; position: relative; background: var(--sand); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.1rem .95rem;
  background: linear-gradient(to top, rgba(35,35,35,.82), rgba(35,35,35,0));
  color: #fff; font-size: .82rem; letter-spacing: .02em;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gal figure:hover figcaption, .gal figure:focus-within figcaption { opacity: 1; transform: none; }
.gal-a figure:nth-child(1) img { aspect-ratio: 4/5; }
.gal-a figure:nth-child(2) img, .gal-a figure:nth-child(3) img { aspect-ratio: 4/2.7; }
.gal-b img { aspect-ratio: 4/3; }
.gal-b figure:nth-child(3) img { aspect-ratio: 8/3.2; }
@media (max-width: 760px) {
  .gal-a, .gal-b { grid-template-columns: 1fr 1fr; }
  .gal-a figure:nth-child(1) { grid-row: auto; }
  .gal-b figure:nth-child(3) { grid-column: span 2; }
  .gal img { aspect-ratio: 1/1 !important; }
  .gal-b figure:nth-child(3) img { aspect-ratio: 2/1 !important; }
}

/* ---------- Video ---------- */
.video-frame {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 6px 90px 6px 90px; background: var(--ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 1.7rem 0 1.7rem clamp(56px, 7vw, 86px);
  border-top: 1px solid rgba(35,35,35,.15);
}
.steps li:last-child { border-bottom: 1px solid rgba(35,35,35,.15); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.75rem;
  font-family: var(--display); font-size: 1.02rem; font-weight: 700;
  color: var(--teal); letter-spacing: .06em;
}
.steps h3 { font-size: 1.25rem; margin-bottom: .42rem; }
.steps p { font-size: .97rem; color: var(--ink-75); }

/* ---------- Form — custom fields, no framework defaults ---------- */
.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: .42rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-75); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(35,35,35,.3);
  padding: .7rem .1rem; font-size: 1rem; border-radius: 0;
  transition: border-color .26s var(--ease), background-color .26s var(--ease);
}
.field textarea { min-height: 122px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8'%3E%3Cpath d='M1 1l5.5 5.5L12 1' fill='none' stroke='%231A7375' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .35rem center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--teal-ink); background: rgba(31,155,163,.055);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-55); opacity: .75; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 620px) { .field-pair { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--ink-55); }
.form-status { font-size: .93rem; font-weight: 600; color: var(--sage); display: none; }
.form-status.is-on { display: block; }

/* ---------- Contact detail list ---------- */
.details { display: grid; gap: 1.5rem; }
.details > div { display: grid; grid-template-columns: 26px 1fr; gap: 1rem; align-items: start; }
.details svg { color: var(--teal); margin-top: .2em; }
.details h4 { margin-bottom: .18rem; }
.details a { color: var(--teal-ink); font-weight: 600; }
.details a:hover { text-decoration: underline; text-underline-offset: 3px; }
.details p, .details address { font-style: normal; font-size: .97rem; color: var(--ink-75); }

.map-frame { overflow: hidden; border-radius: 6px; border: 1px solid var(--sand-deep); background: var(--white); }
.map-frame iframe { width: 100%; height: clamp(280px, 42vw, 430px); border: 0; display: block; filter: saturate(.86); }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--sun);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(35,35,35,.06);
  padding: 1.5rem 1.7rem;
  border-radius: 0 6px 6px 0;
}
.callout h4 { margin-bottom: .4rem; }
.callout p { font-size: .95rem; color: var(--ink-75); }
.band-white .callout, .band-paper .callout { background: var(--cream-warm); box-shadow: none; }
.band-deep .callout, .band-sage .callout { background: rgba(255,255,255,.07); box-shadow: none; }
.band-deep .callout h4, .band-sage .callout h4 { color: var(--cream); }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; }

/* The closing CTA is the last thing above the near-black footer, so it steps
   down through two greens rather than sitting flat, with a soft warm lift from
   the top so the heading has something to sit against. */
.band-sage.cta-final {
  background:
    radial-gradient(125% 85% at 50% -8%, rgba(243,214,169,.11) 0%, rgba(243,214,169,0) 60%),
    linear-gradient(180deg, #3C6847 0%, var(--sage) 34%, #2C4E36 72%, var(--forest) 100%);
}
.cta-final .wrap { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D2C4; padding-block: clamp(56px, 7vw, 88px) 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
}
.site-footer h4 { color: var(--sand); font-size: .76rem; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 1.15rem; }
.site-footer a { color: #D9D2C4; }
.site-footer a:hover { color: var(--sand); }
.footer-logo img { width: 128px; margin-bottom: 1.2rem; }
.footer-links { display: grid; gap: .62rem; font-size: .95rem; }
.footer-contact { display: grid; gap: .62rem; font-size: .95rem; font-style: normal; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(217,210,196,.28); border-radius: 3px;
  transition: background-color .26s var(--ease), border-color .26s var(--ease), color .26s var(--ease);
}
.socials a:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.footer-base {
  margin-top: clamp(38px, 5vw, 60px); padding-block: 1.5rem;
  border-top: 1px solid rgba(217,210,196,.17);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-size: .8rem; color: rgba(217,210,196,.62);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
/* Content is visible by default. Only once JS has confirmed it is running
   do we hide these to animate them in, so a script failure never blanks a page. */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: .8rem; }
.stack   > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2.2rem; }
.mt-lg { margin-top: clamp(34px, 4.6vw, 62px); }
.mt-md { margin-top: clamp(22px, 3vw, 38px); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--cream); padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Coastal line icons (hand-drawn set). Masked so they take the palette
   colour rather than sitting on the page as flat black artwork.
   Used sparingly — stage marks, one section heading, two watermarks.
   ========================================================================== */
.ic {
  display: inline-block; flex: none;
  width: var(--ic, 32px); height: var(--ic, 32px);
  background-color: currentColor;
  -webkit-mask: var(--ic-src) no-repeat center / contain;
          mask: var(--ic-src) no-repeat center / contain;
}
.ic-shell        { --ic-src: url("images/icons/shell.svg"); }
.ic-bucket-spade { --ic-src: url("images/icons/bucket-spade.svg"); }
.ic-kite         { --ic-src: url("images/icons/kite.svg"); }
.ic-sunrise      { --ic-src: url("images/icons/sunrise.svg"); }
.ic-flax         { --ic-src: url("images/icons/flax.svg"); }
.ic-gull         { --ic-src: url("images/icons/gull.svg"); }
.ic-nikau        { --ic-src: url("images/icons/nikau.svg"); }
.ic-starfish     { --ic-src: url("images/icons/starfish.svg"); }
.ic-fish         { --ic-src: url("images/icons/fish.svg"); }
.ic-sailboat     { --ic-src: url("images/icons/sailboat.svg"); }

/* Stage mark above each programme number */
.prog-mark { --ic: clamp(40px, 4.6vw, 56px); color: var(--teal); display: block; margin-bottom: 1rem; }
.band-sand .prog-mark, .band-warm .prog-mark { color: var(--sage); }

/* Icon sitting beside a section eyebrow */
.eyebrow .ic { --ic: 20px; }

/* Heading mark — sits above an h2, replaces nothing, adds a beat */
.head-mark { --ic: clamp(34px, 3.6vw, 46px); color: var(--teal); display: block; margin-bottom: 1.1rem; }
.band-deep .head-mark, .band-sage .head-mark { color: var(--sand); }

/* Small footer flourish */
.footer-mark { --ic: 34px; color: rgba(243,214,169,.45); margin-top: 1.4rem; }

/* Very narrow phones: the stacked wordmark is what overflows, so tighten it. */
@media (max-width: 430px) {
  .brand img { width: 42px; height: 42px; }
  .header-in { padding-inline: 18px; }
}

/* ==========================================================================
   Lightbox — a panel over a dimmed page, not a full-screen takeover.
   Built by main.js, so with no JS the images stay ordinary images.
   ========================================================================== */
.lb-trigger { cursor: zoom-in; }
.lb-trigger:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.lb {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 52px);
  background: rgba(20, 26, 21, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.lb[hidden] { display: none; }

.lb-panel {
  position: relative;
  width: min(940px, 100%);
  max-width: 100%;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 34px 80px -28px rgba(0, 0, 0, .6);
}

/* aspect-ratio gives the stage a definite height, which is what lets the
   absolutely-positioned image size itself reliably. */
.lb-stage {
  position: relative;
  aspect-ratio: var(--lb-ar, 3 / 2);
  background: var(--cream-warm);
}
.lb-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  opacity: 0; transition: opacity .28s var(--ease);
}
.lb-stage img.is-ready { opacity: 1; }

.lb-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(12px, 1.6vw, 17px) clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--sand-deep);
}
.lb-cap { font-size: .92rem; line-height: 1.5; color: var(--ink-75); margin: 0; max-width: 60ch; }
.lb-nav { display: flex; align-items: center; gap: .5rem; flex: none; }
.lb-count {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-55); min-width: 5.5em; text-align: center;
}

.lb-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 3px;
  color: var(--ink); background: transparent;
  border: 1px solid rgba(35, 35, 35, .2);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lb-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.lb-btn:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }
.lb-btn[hidden] { display: none; }

.lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(250, 240, 223, .92);
  border-color: rgba(35, 35, 35, .16);
}

@media (max-width: 560px) {
  .lb-meta { flex-direction: column; align-items: flex-start; }
  .lb-nav { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .lb-stage img { transition: none; } }

/* ==========================================================================
   Centre news
   ========================================================================== */
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(26px, 4.4vw, 64px);
  align-items: center;
}
.post-media { display: block; overflow: hidden; border-radius: 8px 140px 8px 140px; }
.post-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-feature:hover .post-media img { transform: scale(1.035); }
.post-meta {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--teal-ink); margin-bottom: .9rem;
}
.post-body h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.2; margin-bottom: .8rem; }
.post-body h3 a { background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease); }
.post-feature:hover .post-body h3 a { background-size: 100% 1.5px; }
.post-body p { color: var(--ink-75); }
@media (max-width: 860px) { .post-feature { grid-template-columns: 1fr; } }

/* Article body */
.article > * + * { margin-top: 1.15rem; }
.article-lead {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.5;
  color: var(--ink); max-width: none;
}
.article h2 {
  margin-top: clamp(34px, 4.4vw, 58px);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem); line-height: 1.18;
  letter-spacing: -.012em;
}
.article h3 { margin-top: clamp(26px, 3vw, 38px); font-size: 1.2rem; }
.article ul:not(.rhythm), .article ol { padding-left: 1.15rem; }
.article ul:not(.rhythm) li, .article ol li { margin-top: .5rem; color: var(--ink-75); }
.article ul:not(.rhythm) li::marker { color: var(--teal-ink); }
.article blockquote {
  margin-top: clamp(26px, 3vw, 38px); padding-left: clamp(18px, 2.2vw, 30px);
  border-left: 2px solid var(--sand);
  font-family: var(--display); font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.45; color: var(--sage);
}
.article a:not(.link) { color: var(--teal-ink); font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(26,115,117,.45); }
.article a:not(.link):hover { box-shadow: inset 0 -2px 0 currentColor; }
.article img { width: 100%; height: auto; margin-top: clamp(26px, 3vw, 38px); border-radius: 6px 78px 6px 78px; }
.article p { max-width: none; }
.article-faq { margin-top: clamp(20px, 2.6vw, 32px); max-width: none; }
.article-faq time { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }

/* Post list below the feature */
.post-rule {
  border: 0; height: 1px; background: rgba(35,35,35,.13);
  margin: clamp(46px, 6vw, 78px) 0 clamp(34px, 4.4vw, 52px);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 46px) clamp(22px, 3vw, 40px);
}
.post-card { display: flex; flex-direction: column; }
.post-card .post-thumb { display: block; overflow: hidden; border-radius: 6px 78px 6px 78px; margin-bottom: 1.15rem; }
.post-card:nth-child(even) .post-thumb { border-radius: 78px 6px 78px 6px; }
.post-card .post-thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1s var(--ease);
}
.post-card:hover .post-thumb img { transform: scale(1.045); }
.post-card .post-meta { font-size: .68rem; margin-bottom: .6rem; }
.post-card h3 { font-size: 1.12rem; line-height: 1.28; margin-bottom: .55rem; }
.post-card h3 a { background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.4px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease); }
.post-card:hover h3 a { background-size: 100% 1.4px; }
.post-card p { font-size: .92rem; line-height: 1.6; color: var(--ink-75); }
@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; gap: 34px; }
}

.link-inline {
  color: var(--teal-ink); font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(26,115,117,.45);
  transition: box-shadow .3s var(--ease), color .3s var(--ease);
}
.link-inline:hover { color: var(--sage); box-shadow: inset 0 -2px 0 currentColor; }

/* Single combined gallery: masonry columns, each photo keeps its own shape */
.gal-mosaic {
  display: block;
  column-count: 3;
  column-gap: clamp(10px, 1.1vw, 16px);
}
.gal-mosaic figure {
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.1vw, 16px);
  display: block;
}
.gal-mosaic img { height: auto; aspect-ratio: auto; display: block; }
/* Force the split so the three columns finish level rather than in a staircase.
   The photo order is sequenced so these four-item columns come out near-equal. */
@media (min-width: 901px) {
  .gal-mosaic figure:nth-child(4), .gal-mosaic figure:nth-child(8) { break-after: column; }
}
@media (max-width: 900px) { .gal-mosaic { column-count: 2; } }
@media (max-width: 520px) { .gal-mosaic { column-count: 1; } }
@media (max-width: 760px) { .gal-mosaic img { aspect-ratio: auto !important; } }

/* Intro line above the gallery, carrying the copy the section headings used to */
.gal-intro {
  max-width: 62ch; color: var(--ink-75); font-size: 1.02rem;
  margin-bottom: clamp(28px, 3.4vw, 46px);
}
.gal-intro span { color: var(--teal-ink); font-weight: 700; }

/* The photos open in a lightbox, so say so */
.gal figure { cursor: zoom-in; }
.gal-mosaic figure::after {
  content: ""; position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(35,35,35,.55) no-repeat center/13px 13px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 1H1v5M10 15h5v-5M1 15l5-5M15 1l-5 5'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.gal-mosaic figure:hover::after, .gal-mosaic figure:focus-within::after { opacity: 1; transform: none; }

/* On touch there is no hover, so the captions sit under the photo instead */
@media (hover: none), (max-width: 760px) {
  .gal-mosaic figure { background: transparent; }
  .gal-mosaic figcaption {
    position: static; opacity: 1; transform: none;
    background: none; color: var(--ink-75);
    padding: .6rem .1rem 0; font-size: .84rem; line-height: 1.45;
  }
  .gal-mosaic figure::after { display: none; }
}

/* ==========================================================================
   FAQ — the questions asked on every tour, answered before the tour
   ========================================================================== */
.faq { border-top: 1px solid rgba(35,35,35,.15); }
.faq details {
  border-bottom: 1px solid rgba(35,35,35,.15);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.35rem 2.6rem 1.35rem 0;
  position: relative;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.35;
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-ink); }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 1.75rem;
  width: 11px; height: 11px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details[open] > summary { color: var(--teal-ink); }
.faq-a { padding: 0 clamp(0px, 3vw, 48px) 1.5rem 0; }
.faq-a p { font-size: .97rem; line-height: 1.68; color: var(--ink-75); max-width: 62ch; }
.faq-a p + p { margin-top: .8rem; }
.faq-a a { color: var(--teal-ink); font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(26,115,117,.45); }
.faq-a a:hover { box-shadow: inset 0 -2px 0 currentColor; }
