/* =========================================================
   Vega Montessori Preschool — draft redesign
   Design tokens
   ========================================================= */

:root {
  /* Brand blues, sampled from the Vega logo */
  --navy: #123a72;
  --navy-deep: #0d2c58;
  --blue: #1a72b8;
  --blue-mid: #2384c9;
  --sky: #45aee6;
  --sky-soft: #a8d8f2;
  --sky-wash: #e8f3fa;

  /* Warm paper neutrals — the "air" in the layout */
  --paper: #fbfaf7;
  --paper-warm: #f4f1ea;
  --sand: #e9e3d7;
  --ink: #1b2430;
  --ink-soft: #4d5966;
  --ink-faint: #8a949f;
  --line: rgba(18, 58, 114, 0.12);

  --ff-display: "Fraunces", "Playfair Display", Georgia, serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --shell: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* The page commits to one light, papery world in both OS themes — a preschool
     site should look the same to every parent who opens it. Pinning the scheme
     keeps native form controls light too, which matters for the long form. */
  color-scheme: light;
}

/* =========================================================
   Reset & base
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--sky-soft); color: var(--navy-deep); }

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  color: var(--navy-deep);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; max-width: 62ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.4rem;
}

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--paper { background: var(--paper-warm); }
.section--navy { background: var(--navy-deep); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255, 255, 255, 0.76); }
.section--navy .eyebrow { color: var(--sky); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

/* =========================================================
   Buttons & links
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--navy);
  border-radius: 100px;
  background: var(--navy);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

.btn--light { background: #fff; border-color: #fff; color: var(--navy-deep); }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }

.link-quiet {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--sky-soft);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}
.link-quiet:hover { border-color: var(--blue); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 0.85rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck::after { opacity: 1; }

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand img { width: 58px; height: auto; transition: width 0.4s var(--ease); }
.site-header.is-stuck .brand img { width: 46px; }
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.25rem;
}

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.9vw, 1.9rem); }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}
.lang-switch a {
  border: 0;
  background: transparent;
  padding: 0.42rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }

.header-cta { padding: 0.7rem 1.35rem; font-size: 0.74rem; }

/* Over the hero the header floats on dark video — flip everything to light.
   Once scrolled (.is-stuck) it returns to the paper/ink palette above. */
@media (min-width: 901px) {
  .site-header:not(.is-stuck) .brand-name { color: #fff; }
  .site-header:not(.is-stuck) .brand-name small { color: rgba(255, 255, 255, 0.6); }
  .site-header:not(.is-stuck) .nav a { color: rgba(255, 255, 255, 0.8); }
  .site-header:not(.is-stuck) .nav a:hover { color: #fff; }
  .site-header:not(.is-stuck) .nav a::after { background: #fff; }
  .site-header:not(.is-stuck) .lang-switch {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
  }
  .site-header:not(.is-stuck) .lang-switch a { color: rgba(255, 255, 255, 0.75); }
  .site-header:not(.is-stuck) .lang-switch a[aria-current="true"] { background: #fff; color: var(--navy-deep); }
  .site-header:not(.is-stuck) .header-cta {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
  }
  .site-header:not(.is-stuck) .header-cta:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }
}
.site-header:not(.is-stuck) .nav-toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}
.site-header:not(.is-stuck) .nav-toggle span { background: #fff; }
.site-header:not(.is-stuck) .nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.9); }
.site-header:not(.is-stuck) .nav-toggle[aria-expanded="true"] span { background: var(--navy); }
@media (max-width: 900px) {
  .site-header:not(.is-stuck) .brand-name { color: #fff; }
  .site-header:not(.is-stuck) .brand-name small { color: rgba(255, 255, 255, 0.6); }
  .site-header:not(.is-stuck) .lang-switch {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
  }
  .site-header:not(.is-stuck) .lang-switch a { color: rgba(255, 255, 255, 0.75); }
  .site-header:not(.is-stuck) .lang-switch a[aria-current="true"] { background: #fff; color: var(--navy-deep); }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.5px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 auto;
    padding: 6.5rem var(--gutter) 3rem;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%);
    transition: transform 0.5s var(--ease);
    box-shadow: 0 24px 60px rgba(18, 58, 114, 0.1);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { font-family: var(--ff-display); font-size: 1.5rem; color: var(--navy-deep); }
  .header-cta { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* The loop sits on top of the poster and fades in only once it is actually
   playing, so the hero never flashes black on a slow connection. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,44,88,.5) 0%, rgba(13,44,88,.12) 32%, rgba(13,44,88,.82) 100%),
    linear-gradient(90deg, rgba(13,44,88,.45) 0%, rgba(13,44,88,0) 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3.5rem, 8vh, 5.5rem);
}

.hero h1 {
  color: #fff;
  max-width: 16ch;
  margin-bottom: 1.4rem;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 100;
}
.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 42ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }

/* Quieter than the two pill buttons beside it — this is an invitation, not the
   thing we most want a parent to do. */
.btn--play {
  background: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding-inline: 0.4rem;
  gap: 0.6rem;
}
.btn--play:hover { background: transparent; border-color: transparent; color: #fff; transform: none; }
.btn--play span { border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 2px; transition: border-color 0.3s var(--ease); }
.btn--play:hover span { border-color: #fff; }
.btn--play svg {
  width: 30px; height: 30px;
  flex: none;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  fill: currentColor;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--play:hover svg { background: rgba(255, 255, 255, 0.15); border-color: #fff; }

.hero .eyebrow { color: var(--sky-soft); }

/* Small meta strip along the bottom of the hero */
.hero-meta {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2.5rem;
}
.hero-meta div { color: rgba(255, 255, 255, 0.9); }
.hero-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}
.hero-meta dd { margin: 0; font-size: 0.95rem; line-height: 1.55; }

/* A looping background film is a poor trade on a phone (data, battery, and
   YouTube's own inline quirks) and unwelcome for anyone who asks for less
   motion. Both cases fall back to the still, which carries the hero on its own.
   main.js checks the same two conditions before it loads the player at all. */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* =========================================================
   Statement
   ========================================================= */

.statement {
  font-family: var(--ff-display);
  font-size: clamp(1.65rem, 3.4vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  max-width: 24ch;
  margin: 0;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 60;
}
.statement em { font-style: italic; color: var(--blue); }

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Figures
   ========================================================= */

.figure { position: relative; }
.figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.figure--wide img { aspect-ratio: 16 / 10; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.figure-stack { position: relative; }
.figure-stack .figure--float {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 46%;
  box-shadow: 0 30px 70px rgba(18, 58, 114, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 860px) { .figure-stack .figure--float { position: static; width: 60%; margin-top: 1rem; } }

/* =========================================================
   Curriculum grid
   ========================================================= */

.curriculum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.curriculum article {
  padding: clamp(2rem, 3.2vw, 2.8rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.curriculum article:nth-child(3n) { border-right: 0; }
.curriculum article:hover { background: #fff; }

.curriculum .cur-photo { padding: 0; overflow: hidden; min-height: 230px; }
.curriculum .cur-photo img { width: 100%; height: 100%; object-fit: cover; }

.curriculum h3 { margin-bottom: 0.7rem; }
.curriculum p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) {
  .curriculum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curriculum article:nth-child(3n) { border-right: 1px solid var(--line); }
  .curriculum article:nth-child(2n) { border-right: 0; }
}
@media (max-width: 620px) {
  .curriculum { grid-template-columns: minmax(0, 1fr); }
  .curriculum article { border-right: 0 !important; }
  .curriculum .cur-photo { min-height: 200px; }
}

/* =========================================================
   Timeline
   ========================================================= */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  list-style: none;
  padding: 0;
}
.timeline li { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.section--navy .timeline li { border-color: rgba(255,255,255,.24); }
.timeline .year {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.9rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.section--navy .timeline .year { color: var(--sky); }
.timeline p { font-size: 0.93rem; margin: 0; }

/* =========================================================
   Ship / name story
   ========================================================= */

.ship-marks {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.35rem;   /* spacing alone separates the points, no leading marks */
  max-width: 52ch;
}
.ship-marks li {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
}

.ship-logo {
  width: min(100%, 420px);
  margin-inline: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
}

/* =========================================================
   Practical / info cards
   ========================================================= */

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.4rem);
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.info-card p, .info-card li { font-size: 0.93rem; color: var(--ink-soft); }
.info-card .hours { display: grid; gap: 0.55rem; margin: 0; }
.info-card .hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}
.info-card .hours div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-card .hours strong { color: var(--navy-deep); font-weight: 500; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.05em;
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--sky);
  letter-spacing: 0.02em;
}
.steps strong { color: var(--navy-deep); font-weight: 500; }

/* =========================================================
   Gallery
   ========================================================= */

/* The full film, sitting above the collage. Same corner radius and shadow
   language as the figures around it so it reads as part of the set. */
.film-embed {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px rgba(18, 58, 114, 0.14);
}
.film-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* The collage follows straight on, so it does not need its own top margin. */
.film-embed + .gallery { margin-top: clamp(0.6rem, 1.2vw, 1rem); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(112px, 10.2vw, 158px);
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.gallery figure:hover img { transform: scale(1.04); }
.g-a { grid-column: span 5; grid-row: span 4; }
.g-b { grid-column: span 7; grid-row: span 4; }
.g-c { grid-column: span 4; grid-row: span 3; }
.g-d { grid-column: span 4; grid-row: span 3; }
.g-e { grid-column: span 4; grid-row: span 3; }
@media (max-width: 760px) {
  .gallery { grid-auto-rows: clamp(76px, 17vw, 110px); }
  .g-a, .g-b { grid-column: span 12; grid-row: span 3; }
  .g-c, .g-d { grid-column: span 6; grid-row: span 2; }
  .g-e { display: none; }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.6rem 3rem 1.6rem 0;
  position: relative;
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--navy-deep);
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  background: var(--blue);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.faq summary::before { width: 16px; height: 1.5px; right: 0.4rem; transform: translateY(-50%); }
.faq summary::after { width: 1.5px; height: 16px; right: calc(0.4rem + 7.25px); transform: translateY(-50%); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq .answer { padding: 0 3rem 1.9rem 0; }
.faq .answer p { font-size: 0.97rem; color: var(--ink-soft); margin: 0; }

/* =========================================================
   Apply / form
   ========================================================= */

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 940px) { .apply-layout { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact-list li { display: grid; gap: 0.25rem; }
.contact-list .label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-list a, .contact-list span { font-size: 1rem; color: var(--navy-deep); text-decoration: none; }
.contact-list a:hover { color: var(--blue); }

.map-embed {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(0.95);
  transition: filter 0.5s var(--ease);
}
.map-embed:hover { filter: grayscale(0); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  box-shadow: 0 24px 60px rgba(18, 58, 114, 0.06);
}

.progress { margin-bottom: 2.2rem; }
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.progress-head .step-name { font-family: var(--ff-display); font-size: 1.15rem; color: var(--navy-deep); }
.progress-head .step-count {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.progress-track { height: 2px; background: var(--sand); border-radius: 2px; overflow: hidden; }
.progress-bar {
  height: 100%;
  width: 20%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.55s var(--ease);
}

.form-step { border: 0; padding: 0; margin: 0; display: none; }
.form-step.is-active { display: block; animation: fade-step 0.45s var(--ease) both; }
@keyframes fade-step { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-step h4 {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 2rem 0 1.2rem;
}
.form-step h4:first-child { margin-top: 0; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem 1.2rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.field label .req { color: var(--sky); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0392b; }

/* Date of birth: a typed DD-MM-YYYY field with a calendar icon. The icon is
   a native date input made transparent, so tapping it opens the phone's own
   picker. */
.dob-wrap { position: relative; }
.dob-wrap #child_dob { padding-right: 2.8rem; }
.field .dob-pick {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  letter-spacing: 0;
}
.field .dob-pick:hover { color: var(--blue); }
.dob-pick svg { width: 18px; height: 18px; pointer-events: none; }
.field .dob-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.consent { display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.consent label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input { margin-top: 0.32rem; width: 15px; height: 15px; accent-color: var(--blue); flex: none; }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.form-nav .btn { padding: 0.8rem 1.6rem; font-size: 0.76rem; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 1.2rem; }

.form-status { margin-top: 1.2rem; font-size: 0.9rem; }
.form-status[data-state="ok"] { color: #1e7a4a; }
.form-status[data-state="err"] { color: #c0392b; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding-block: clamp(4rem, 8vw, 6rem) 2.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
.footer-brand img { width: 108px; margin-bottom: 1.4rem; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; color: rgba(255,255,255,.7); }
.site-footer h4 {
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.92rem; transition: color 0.3s var(--ease); }
.site-footer a:hover { color: #fff; }

.socials { display: flex; gap: 0.6rem; margin-top: 0.3rem; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 100px;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.socials a:hover { background: var(--sky); border-color: var(--sky); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:hover svg { fill: var(--navy-deep); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-privacy { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-privacy:hover { color: #fff; }

/* =========================================================
   Modal
   ========================================================= */

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(13, 44, 88, 0.55);
  backdrop-filter: blur(6px);
  animation: fade-in 0.3s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 460px;
  text-align: center;
}
.modal-card img { width: 84px; margin: 0 auto 1.5rem; }
.modal-card p { margin-inline: auto; }

/* Film lightbox */
.modal--film { background: rgba(9, 24, 46, 0.92); }
.film-stage {
  position: relative;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.film-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  transition: background 0.3s var(--ease);
}
.film-close:hover { background: rgba(255, 255, 255, 0.28); }

/* =========================================================
   Scroll reveal
   ========================================================= */

/* Scoped to .js so the page still reads in full if the script never runs —
   without the guard, a JS failure leaves everything below the hero invisible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* =========================================================
   Utilities
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   Added for the live build
   ========================================================= */

/* The language toggle is two links now. */
.lang-switch a { text-decoration: none; line-height: 1; display: inline-block; }

/* Keyboard users get a way past the header. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.4rem;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm, 6px) 0;
}
.skip-link:focus { left: 0; }

/* --- Click-to-load embeds -------------------------------------------------
   Nothing reaches Google until the visitor presses the button, so these two
   need to look finished on their own rather than like a broken frame. */

.film-embed--facade { position: relative; cursor: pointer; }
.film-embed--facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-embed--facade .film-embed-play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(13, 44, 88, 0.28);
  cursor: pointer;
  transition: background 0.35s var(--ease);
}
.film-embed--facade:hover .film-embed-play { background: rgba(13, 44, 88, 0.42); }
.film-embed--facade .film-embed-play svg {
  width: 74px;
  height: 74px;
  padding: 22px;
  fill: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  transition: transform 0.35s var(--ease);
}
.film-embed--facade:hover .film-embed-play svg { transform: scale(1.06); }

.film-embed-note {
  position: absolute;
  right: 0.9rem;
  bottom: 0.7rem;
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.map-embed--facade { filter: none; }
.map-embed--facade button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: center;
  text-align: left;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.map-embed--facade button:hover { border-color: var(--blue); transform: translateY(-2px); }
.map-embed--facade .map-pin { color: var(--sky); font-size: 0.7rem; }
.map-embed--facade .map-addr { color: var(--navy-deep); font-weight: 500; line-height: 1.5; }
.map-embed--facade .map-go {
  grid-column: 2;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.map-embed--facade .film-embed-note {
  position: static;
  margin-top: 0.6rem;
  color: var(--ink-faint);
  text-align: right;
}

/* --- Enquiry form ---------------------------------------------------------
   The five-step wizard is gone. What used to need a progress bar is now
   eight fields on one screen, so the shell leads with a line of context
   instead and the button sits on its own. */

.form-intro {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

/* Hints sit under the field they explain, quieter than the label. */
.field-hint {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--ink-faint);
  margin: 0.1rem 0 0;
}

/* A field with a hint is taller than its neighbour, and grid stretches both
   to match. Without this the input in the shorter field drifts down its
   cell instead of sitting under its own label. */
.field { align-content: start; }

.field textarea[aria-invalid="true"] { border-color: #c0392b; }

/* One button, so it goes to the right rather than spreading across. */
.form-nav--single { justify-content: flex-end; }

.consent { margin-top: 1.6rem; }
