/* pre-primary-playgroup-to-ukg.html: page styles moved out of the HTML (tools/extract-styles.js). Edit here, then bump ?v= in pre-primary-playgroup-to-ukg.html. */
/* ==========================================================================
   PRE-PRIMARY — Jain Heritage School, Whitefield
   --------------------------------------------------------------------------
   Design system per master_data.md §6. The early-years accent set is the warm
   one (Signal Orange / Highlight Yellow / Sand), and this is the only one of
   the three pages permitted to use the flat illustration system (§6.9).
   Typeface: the site pair — Plus Jakarta Sans for headings, Nunito for prose.
   is unidentified (Appendix B item 14); swap the stack when it is confirmed.
   ========================================================================== */

:root{
  /* Primary — §6.2 */
  --green-signature:#00b140;
  --red-signal:#e63329;
  --orange-signal:#f5a400;

  /* Overlay / panel */
  --navy-deep:#1b2a4a;
  --indigo:#302b6e;
  --blue-steel:#1f4e86;
  --blue-bright:#0c9ad7;
  --green-leaf:#6abf4b;

  /* Accent grounds — the early-years palette */
  --yellow-signal:#f5d021;
  --yellow-highlight:#ffd400;
  --sand:#efe0a9;
  --lime-soft:#c3d96b;
  --sky:#92c0db;
  /* The early-years grounds are amber, not red. The old brick/vermilion pair
     (#c1372f / #e94e1b) fought the Signal Orange stage accent and read as an
     alert rather than as warmth — replaced by a honey-to-amber ramp. */
  --amber-deep:#5e3800;
  --amber:#e08700;

  /* This page's stage accent */
  --stage:var(--orange-signal);
  --stage-ink:#7a4a00;

  /* Neutrals */
  --white:#fff;
  --ink:#16181d;
  --ink-soft:#4a4f5a;
  --hair:rgba(22,24,29,.12);
  --brand-blue:#001C54; /* the blue in the JHS logo mark - shared heading colour site-wide */

  /* one standard pair site-wide: Nunito for prose, Plus Jakarta Sans for headings */
  --font-sans:"Nunito",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-display:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --lh-display:1.08;
  --lh-body:1.45;
  --panel-alpha:.85;

  --shell:1720px;
  --pad:clamp(3.5rem,8vw,7rem);
  --r:18px;

  /* one spacing scale for the whole page */
  --sp-2xs:.4rem;
  --sp-xs:.7rem;
  --sp-s:1.05rem;
  --sp-m:1.55rem;
  --sp-l:clamp(2rem,4vw,2.9rem);
  --sp-xl:clamp(2.75rem,6vw,4.25rem);
  --measure:68ch;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;font-family:var(--font-sans);color:var(--ink);background:var(--white);
  line-height:var(--lh-body);font-size:clamp(1rem,.96rem + .2vw,1.09rem);
  /* clip, not hidden: overflow-x:hidden forces overflow-y:auto, which makes body a
     scroll container and silently kills every position:sticky on the page */
  -webkit-font-smoothing:antialiased;overflow-x:clip;
}
img{max-width:100%;display:block}
a{color:inherit}
h1,
.hero__display,h2,h3,h4{font-family:var(--font-display);line-height:var(--lh-display);margin:0 0 .5em;font-weight:800;letter-spacing:-.02em;color:var(--brand-blue);text-wrap:balance}
p,li,figcaption,blockquote{text-wrap:pretty}
/* optical rhythm: tracking tightens as the type gets bigger */
h1,.hero__display{letter-spacing:-.032em;line-height:1.02}
h2{letter-spacing:-.026em;line-height:1.08}
h3{letter-spacing:-.015em;line-height:1.22}
h4{letter-spacing:-.008em;line-height:1.34}
.stat__num,.lstat__num{font-variant-numeric:tabular-nums}
/* the banner uses the same pair as the rest of the site: display face for the
   headline, body face for everything else */
.hero h1,.hero .hero__display{font-family:var(--font-display)}
/* the second colour in a heading - the site-wide dual-colour device (one gold, two
   values so it stays legible on both light and dark grounds, as on the home page) */
.grad-text{color:#e29400}
:is(.play,.food,.legacy,.cta,.statement,.hero) .grad-text{color:#ffd400}
/* headings that sit on a dark/coloured section keep white, not the brand blue
   (.pcard is excluded: the carousel cards are white) */
.hero h1,.hero .hero__display,.play h2,.food h2,.legacy h2,.cta h2{color:#fff}
h1,
.hero__display{font-size:clamp(2.35rem,1.4rem + 4.4vw,4.6rem)}
h2{font-size:clamp(1.85rem,1.2rem + 2.6vw,3.15rem)}
h3{font-size:clamp(1.2rem,1.05rem + .7vw,1.6rem)}
p{margin:0 0 1em}
.shell{width:min(100% - clamp(2rem,3.5vw,3.5rem),var(--shell));margin-inline:auto}
.pad{padding-block:var(--pad)}
.pad-sm{padding-block:clamp(2.5rem,5vw,4rem)}
.lede{font-size:clamp(1.08rem,1rem + .5vw,1.32rem);color:var(--ink-soft);max-width:var(--measure);line-height:1.7}
.eyebrow{display:inline-block;font-size:.74rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin-bottom:var(--sp-s)}

/* ========================= SPACING SYSTEM =========================
   One scale, applied at the four places vertical rhythm actually breaks:
   the block that opens a section, the gap from that block to whatever
   follows it, runs of prose, and trailing margins on a last child.
   Replaces the per-section inline max-widths and margins. */
.sec-head{max-width:var(--measure);margin-block-end:var(--sp-xl)}
.sec-head.center{margin-inline:auto}
.sec-head .eyebrow{margin-bottom:var(--sp-s)}
.sec-head h2{margin-bottom:0}
/* order matters: the h2 step must come after the generic one so it wins */
.sec-head > * + p{margin-top:var(--sp-s)}
.sec-head h2 + *{margin-top:var(--sp-m)}
.sec-head > :last-child{margin-bottom:0}
/* a grid or table that follows a section head needs no margin of its own */
.sec-head + :is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid,.shift__table,.day__list,.rows,.seq){margin-top:0}
:is(h1,h2,h3,h4,.hero__display) + p{margin-top:var(--sp-xs)}
.shell > :last-child{margin-bottom:0}
.center{text-align:center}
.center .lede{margin-inline:auto}

/* — the signature emphasis device: a filled box behind the words (§6.2 rule 2) — */
.hl{
  background:var(--green-signature);color:var(--white);
  padding:.02em .2em;box-decoration-break:clone;-webkit-box-decoration-break:clone;
}
.hl--orange{background:var(--orange-signal);color:#231400}
.hl--yellow{background:var(--yellow-highlight);color:var(--brand-blue)}
.hl--red{background:var(--red-signal)}
.hl--navy{background:var(--navy-deep)}

/* ========================= FLAG MOTIF =========================
   Both flags drawn in CSS — no image dependency, crisp at any size.
   Framed as "where the method came from → where it is taught", which is a
   description of practice. It must never read as an endorsement badge.
   ============================================================== */
.flags{display:inline-flex;align-items:center;gap:.55rem;vertical-align:middle}
.flag{
  width:34px;height:23px;border-radius:3px;position:relative;overflow:hidden;
  flex:none;box-shadow:0 1px 4px rgba(0,0,0,.22);
  background:center/cover no-repeat #fff;
}
.flag--fi{background-image:url("/assets/img/flag-finland.svg")}
.flag--in{background-image:url("/assets/img/flag-india.svg")}
.flags .arrow{font-weight:900;opacity:.5;font-size:.9rem}

.flagbar{
  display:inline-flex;align-items:center;gap:.7rem;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);
  padding:.5rem .95rem;border-radius:999px;
  font-size:.8rem;font-weight:700;letter-spacing:.02em;backdrop-filter:blur(6px);
}
.flagbar--ink{background:rgba(22,24,29,.05);border-color:var(--hair);color:var(--ink)}

/* ========================= FINNISH WORD MORPH =========================
   The word list is lifted verbatim from Nordi's own FI table
   (nordi/public/widget.js) so the page and the assistant that answers on it
   speak exactly the same Finnish. Nothing factual is ever in Finnish — only
   greetings and soft words, per the same rule Nordi follows.
   Technique: two stacked spans, cross-fading with a slight blur and lift.
   The element is sized by an invisible sizer so nothing reflows mid-cycle.
   ====================================================================== */
.morph{
  position:relative;display:inline-grid;vertical-align:baseline;
  text-align:center;
}
.morph > .sizer{visibility:hidden;pointer-events:none;grid-area:1/1;white-space:nowrap}
/* the sizing copy and the Finnish word are drawn from data-t, so headings read as one
   English sentence to search engines and screen readers */
.morph > .sizer::before,.morph > .fi::before{content:attr(data-t)}
.morph > span{
  grid-area:1/1;white-space:nowrap;
  animation:morphCycle 7s cubic-bezier(.6,0,.25,1) infinite;
}
.morph > .fi{color:var(--stage)}
.morph > .en{animation-delay:-3.5s;color:var(--stage)}
.morph[data-delay="1"] > span{animation-delay:-1.2s}
.morph[data-delay="1"] > .en{animation-delay:-4.7s}
.morph[data-delay="2"] > span{animation-delay:-2.4s}
.morph[data-delay="2"] > .en{animation-delay:-5.9s}

@keyframes morphCycle{
  0%,4%    {opacity:0;filter:blur(7px);transform:translateY(.32em) scale(.96)}
  10%,44%  {opacity:1;filter:blur(0);transform:none}
  50%,100% {opacity:0;filter:blur(7px);transform:translateY(-.32em) scale(.96)}
}
/* Anyone who has asked for less motion gets the English, held still. */
@media (prefers-reduced-motion:reduce){
  .morph > span{animation:none}
  .morph > .fi{display:none}
  .morph > .en{opacity:1;filter:none;transform:none}
}

/* A quieter inline variant used inside body copy. */
.fiword{
  color:var(--stage);font-weight:800;border-bottom:2px dotted currentColor;
  cursor:help;text-underline-offset:3px;
}

/* ========================= NAV ========================= */
.nav{
  position:fixed;inset-block-start:0;inset-inline:0;z-index:80;
  display:flex;align-items:center;gap:1rem;
  padding:.85rem clamp(1rem,4vw,2.5rem);
  transition:background .3s,box-shadow .3s,padding .3s;
}
/* soft scrim so the white lockup and links read over any hero photo */
.nav::before{
  content:"";position:absolute;inset:0 0 -70%;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,10,16,.55),rgba(8,10,16,0));
  transition:opacity .3s;
}
.nav.solid::before,.nav.open::before{opacity:0}
.nav.solid{
  background:rgba(255,255,255,.96);backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--hair),0 10px 30px -18px rgba(15,23,42,.2);
  padding-block:.55rem;
}
/* Two lockups sharing one grid cell: the white mark over the photograph, the
   blue one once the bar turns white. A fixed box means the swap never reflows. */
.nav__brand{display:grid;flex:none;width:clamp(240px,40vw,360px);aspect-ratio:9908/1219;transition:width .3s}
.nav__brand > img{grid-area:1/1;width:100%;height:100%;object-fit:contain;object-position:left center;transition:opacity .3s ease}
.nav__logo--light{filter:drop-shadow(0 3px 12px rgba(0,0,0,.45))}
.nav__logo--ink{opacity:0}
.nav.solid .nav__brand{width:clamp(200px,30vw,300px)}
.nav.solid .nav__logo--light,.nav.open .nav__logo--light{opacity:0}
.nav.solid .nav__logo--ink,.nav.open .nav__logo--ink{opacity:1}
.nav__spacer{flex:1}
.nav__links{display:flex;gap:1.5rem;font-size:.88rem;font-weight:600}
.nav__links a{text-decoration:none;opacity:.85;color:#fff}
.nav.solid .nav__links a{color:var(--ink)}
.nav__links a:hover{opacity:1;color:var(--stage)}

/* Hamburger — the links collapse below 900px, so they need a way back. */
.nav__toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;flex:none;padding:0;border:0;border-radius:12px;background:rgba(255,255,255,.18);cursor:pointer}
.nav.solid .nav__toggle{background:rgba(22,24,29,.07)}
.nav__toggle .bar,.nav__toggle .bar::before,.nav__toggle .bar::after{display:block;width:20px;height:2px;border-radius:2px;background:#fff;transition:background .2s,transform .25s}
.nav__toggle .bar{position:relative}
.nav__toggle .bar::before,.nav__toggle .bar::after{content:"";position:absolute;left:0}
.nav__toggle .bar::before{top:-6px}
.nav__toggle .bar::after{top:6px}
.nav.solid .nav__toggle .bar,.nav.solid .nav__toggle .bar::before,.nav.solid .nav__toggle .bar::after{background:var(--ink)}

@media (max-width:900px){
  .nav{flex-wrap:wrap}
  .nav__toggle{display:inline-flex}
  .nav__links{
    order:9;flex-basis:100%;display:grid;gap:0;
    max-height:0;overflow:hidden;visibility:hidden;transition:max-height .3s ease,visibility .3s;
  }
  .nav__links a{color:var(--ink);opacity:1;padding:.9rem .2rem;border-bottom:1px solid var(--hair);font-size:.98rem}
  .nav.open{background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 10px 28px rgba(0,0,0,.14)}
  .nav.open .nav__logo--light{filter:none}
  .nav.open .nav__links{max-height:min(70svh,520px);overflow-y:auto;visibility:visible}
  .nav.open .nav__toggle .bar{background:transparent}
  .nav.open .nav__toggle .bar::before{background:var(--ink);transform:translateY(6px) rotate(45deg)}
  .nav.open .nav__toggle .bar::after{background:var(--ink);transform:translateY(-6px) rotate(-45deg)}
}
/* keep brand + burger on one row on phones */
@media (max-width:560px){
  .nav{gap:.6rem;padding-inline:1rem}
  .nav__brand,.nav.solid .nav__brand{width:clamp(180px,52vw,240px)}
  .nav__toggle{width:38px;height:38px}
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.85rem 1.5rem;border-radius:999px;border:0;cursor:pointer;
  font:inherit;font-weight:800;font-size:.92rem;text-decoration:none;
  transition:transform .18s,box-shadow .18s,background .18s;white-space:nowrap;
}
.btn:hover{transform:translateY(-2px)}
.btn-stage{background:var(--stage);color:#231400;box-shadow:0 6px 20px rgba(245,164,0,.4)}
.btn-stage:hover{box-shadow:0 10px 28px rgba(245,164,0,.5)}
.btn-ink{background:var(--ink);color:#fff}
.btn-ghost{background:transparent;color:inherit;box-shadow:inset 0 0 0 2px currentColor}
.btn-white{background:#fff;color:var(--ink)}
.btn-lg{padding:1.05rem 2rem;font-size:1rem}

/* ========================= HERO ========================= */
.hero{
  position:relative;min-height:min(100svh,860px);display:grid;align-items:center;
  padding-block:clamp(7rem,14vw,9rem) clamp(3rem,7vw,5rem);
  background:var(--amber);color:#fff;overflow:hidden;
  --hero-img:url("/assets/img/landing-page/gallery-1.webp");
}
.hero::before{ /* photograph sits under a warm wash — §6.2 rule 4 */
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(105deg,rgba(94,56,0,.95) 0%,rgba(140,80,0,.9) 38%,rgba(214,128,0,.74) 72%,rgba(240,160,10,.56) 100%),
    var(--hero-img,#e08700) center/cover no-repeat;
}
.hero::after{ /* soft organic shape, the system's signature blob geometry */
  content:"";position:absolute;inset-block-start:-18%;inset-inline-end:-14%;
  width:min(58vw,720px);aspect-ratio:1;border-radius:48% 52% 44% 56%/54% 44% 56% 46%;
  background:radial-gradient(circle at 34% 34%,rgba(255,212,0,.32),rgba(255,212,0,0) 68%);
  pointer-events:none;
}
.hero__in{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,5vw,4rem);align-items:center}
@media (max-width:980px){.hero__in{grid-template-columns:1fr}}
.hero h1,
.hero .hero__display{margin-block:.3em .35em}
.hero__sub{font-size:clamp(1.05rem,1rem + .45vw,1.3rem);max-width:46ch;opacity:.96}
.hero__proof{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.6rem}
.chip{
  background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.26);
  padding:.42rem .85rem;border-radius:999px;font-size:.78rem;font-weight:700;
}

/* ========================= ENQUIRY FORM ========================= */
/* The whole page exists to produce one of these. Short at the top of the
   funnel, longer at the bottom, and never asking for anything it does not
   need in order to make a phone call. */
.efc{
  position:relative;
  background:#fff;color:var(--ink);border-radius:22px;
  padding:clamp(1.1rem,2.2vw,1.5rem);box-shadow:0 26px 70px rgba(0,0,0,.28);
}
.efc h3{margin-bottom:.2rem;font-size:1.22rem}
/* The enquiry card is the hosted admissions assistant, embedded rather than
   re-implemented, so the questions it asks stay owned by the ERP. */
.efc--embed{padding:0;overflow:hidden;background:#f1f4f9}
.efc--embed .efc__frame{display:block;width:100%;border:0;height:clamp(520px,62vh,660px)}
#mainForm.efc--embed .efc__frame{height:clamp(560px,70vh,700px)}
#exitForm.efc--embed .efc__frame{height:clamp(460px,64vh,600px);border-radius:14px}
@media (max-width:700px){
  .efc--embed .efc__frame{height:clamp(470px,70vh,600px)}
}
.efc__note{font-size:.82rem;color:var(--ink-soft);margin-bottom:.85rem}
/* Nordi renders the fields in a closed shadow root, so the host box is the only
   place the height can be capped. */
.efc [data-nordi-form]{
  max-height:clamp(280px,42vh,430px);overflow-y:auto;overscroll-behavior:contain;
  padding-right:7px;margin-right:-7px;
  scrollbar-width:thin;scrollbar-color:rgba(22,24,29,.22) transparent;
}
.efc [data-nordi-form]::-webkit-scrollbar{width:6px}
.efc [data-nordi-form]::-webkit-scrollbar-track{background:transparent}
.efc [data-nordi-form]::-webkit-scrollbar-thumb{background:rgba(22,24,29,.2);border-radius:99px}
.efc [data-nordi-form]:hover::-webkit-scrollbar-thumb{background:rgba(22,24,29,.34)}
.field{margin-bottom:.8rem}
.field label{display:block;font-size:.76rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin-bottom:.32rem;color:var(--ink-soft)}
.field input,.field select,.field textarea{
  width:100%;padding:.82rem .95rem;border:1.5px solid var(--hair);border-radius:12px;
  font:inherit;font-size:.98rem;background:#fbfbfc;color:var(--ink);transition:border-color .18s,box-shadow .18s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:0;border-color:var(--stage);box-shadow:0 0 0 4px rgba(245,164,0,.18);background:#fff;
}
.field textarea{min-height:78px;resize:vertical}
.field--row{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
@media (max-width:480px){.field--row{grid-template-columns:1fr}}
.efc .btn{width:100%;margin-top:.4rem}
.efc__fine{font-size:.74rem;color:var(--ink-soft);margin:.75rem 0 0;line-height:1.45}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.efc__ok{
  display:none;text-align:center;padding:1.5rem .5rem;
}
.efc__ok .tick{
  width:56px;height:56px;border-radius:50%;background:var(--green-signature);color:#fff;
  display:grid;place-content:center;font-size:1.7rem;margin:0 auto .9rem;
}
.efc.done .efc__form{display:none}
.efc.done .efc__ok{display:block}
/* attention flourish played when we jump the visitor to the form */
.efc::after{content:"";position:absolute;inset:-5px;border-radius:27px;border:2.5px solid var(--stage);opacity:0;pointer-events:none}
.efc--pop{animation:efcPop 1.1s cubic-bezier(.22,1,.36,1)}
.efc--pop::after{animation:efcRing 1.1s cubic-bezier(.22,1,.36,1)}
@keyframes efcPop{0%,100%{transform:none}18%{transform:translateY(-10px) scale(1.018)}44%{transform:translateY(0) scale(1)}64%{transform:translateY(-4px) scale(1.006)}}
@keyframes efcRing{0%{opacity:.95;transform:scale(.99)}70%{opacity:0;transform:scale(1.05)}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.efc--pop,.efc--pop::after{animation:none}}
.err{color:var(--red-signal);font-size:.82rem;font-weight:700;margin-top:.5rem;display:none}

/* ========================= STAT CIRCLES — Pattern A ========================= */
.proof{background:var(--sand);color:var(--ink)}
.proof__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:clamp(1.2rem,3vw,2.2rem)}
.stat{text-align:center}
/* organic, slowly morphing shapes rather than hard circles */
.stat__circle{
  aspect-ratio:1;width:clamp(9.5rem,19vw,12.5rem);margin:0 auto 1rem;
  border-radius:58% 42% 47% 53% / 46% 52% 48% 54%;
  display:grid;place-content:center;text-align:center;padding:1.5rem;
  color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.14);
  animation:statBlob 16s ease-in-out infinite;
}
.stat:nth-child(2) .stat__circle{animation-duration:12.5s;animation-delay:-4s}
.stat:nth-child(3) .stat__circle{animation-duration:19s;animation-delay:-8s}
@keyframes statBlob{
  0%,100%{border-radius:58% 42% 47% 53% / 46% 52% 48% 54%}
  25%{border-radius:44% 56% 62% 38% / 56% 44% 56% 44%}
  50%{border-radius:62% 38% 38% 62% / 40% 62% 38% 60%}
  75%{border-radius:38% 62% 54% 46% / 60% 38% 62% 40%}
}
@media (prefers-reduced-motion:reduce){.stat__circle{animation:none}}
.stat:nth-child(1) .stat__circle{background:var(--orange-signal);color:#231400}
.stat:nth-child(2) .stat__circle{background:var(--blue-bright)}
.stat:nth-child(3) .stat__circle{background:var(--green-leaf)}
.stat__num{font-size:clamp(2.1rem,5.5vw,3.1rem);font-weight:900;line-height:1}
.stat__kick{font-size:.68rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;opacity:.9;margin-bottom:.3rem}
.stat__desc{font-size:.95rem;color:var(--ink-soft);max-width:26ch;margin-inline:auto}

/* ========================= STATEMENT BANDS ========================= */
/* on this page the bands read right-aligned on a light ground */
.statement{position:relative;overflow:hidden;background:#eef3fb;color:var(--brand-blue);text-align:right}
.statement--green{background:var(--green-signature);color:#fff}
.statement--yellow{background:var(--yellow-highlight);color:var(--brand-blue)}
/* the quotation mark set large and low-contrast, so the band reads as a quote at a glance */
.statement::before{
  content:"\201C";position:absolute;inset-block-start:-.2em;inset-inline-end:-.04em;
  pointer-events:none;
  font-family:var(--font-display);font-size:clamp(9rem,22vw,16rem);line-height:1;
  color:currentColor;opacity:.08;
}
/* a slow drift of light, so the band is never completely inert */
.statement::after{
  content:"";position:absolute;inset-block-start:-45%;inset-inline-start:-12%;
  width:62%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(0,28,84,.09),transparent 68%);
  animation:stDrift 19s ease-in-out infinite alternate;
}
.statement--green::after,.statement--yellow::after{background:radial-gradient(circle,rgba(255,255,255,.17),transparent 68%)}
@keyframes stDrift{to{transform:translate3d(75%,30%,0) scale(1.3)}}
.statement .shell{position:relative;z-index:1}
/* the measure lives on the paragraph: ch must resolve against the display size, not the wrapper's */
.statement p{
  font-size:clamp(1.25rem,.9rem + 1.7vw,2.15rem);font-weight:900;line-height:1.22;
  margin:0 0 0 auto;max-width:46ch;letter-spacing:-.02em;
}
.statement cite{display:block;font-size:.85rem;font-weight:600;font-style:normal;opacity:.72;margin-top:1.4rem;letter-spacing:.04em}
/* a short rule draws itself in above the attribution */
.statement cite::before{
  content:"";display:block;width:46px;height:2px;margin:0 0 1rem auto;border-radius:2px;
  background:currentColor;transform:scaleX(0);transform-origin:right;
  transition:transform .85s cubic-bezier(.2,.8,.25,1) .5s;
}
.statement .reveal.in cite::before{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){
  .statement::after{animation:none}
  .statement cite::before{transform:none;transition:none}
}

/* ========================= FEATURE ROWS — Pattern C ========================= */
.rows{display:grid;gap:clamp(2.5rem,6vw,5rem)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.row:nth-child(even) .row__media{order:2}
@media (max-width:860px){.row{grid-template-columns:1fr}.row:nth-child(even) .row__media{order:0}}
.row__media{position:relative;border-radius:var(--r);overflow:hidden;aspect-ratio:4/3;background:var(--sky)}
.row__media img{width:100%;height:100%;object-fit:cover}
.row h3{margin-bottom:.4rem}
.row__k{font-size:.72rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--stage);margin-bottom:.6rem}

/* Image placeholder — visible when the shot has not been commissioned yet. */
.ph{position:relative;background:
  repeating-linear-gradient(45deg,rgba(0,0,0,.045) 0 12px,transparent 12px 24px),var(--sand);
  display:grid;place-content:center;text-align:center;padding:1.5rem;
}
.ph__label{font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--stage-ink);opacity:.75;max-width:30ch}
.ph img{position:absolute;inset:0}

/* ========================= PLAY COVERFLOW (illustration system, §6.9) ========================= */
.play{background:var(--indigo);color:#fff}
/* copy on the left, the deck of cards fills the whitespace on the right */
.play__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
.play__copy{max-width:58ch}
.play__copy .lede{margin-bottom:0}

.pcov{position:relative;perspective:1500px;perspective-origin:50% 48%;outline:none}
.pcov:focus-visible{outline:2px solid var(--yellow-highlight);outline-offset:14px;border-radius:26px}
.pcov__stage{position:relative;height:clamp(300px,27vw,345px);transform-style:preserve-3d}
/* positioning is deliberately card-class-agnostic so both stage pages share it */
.pcov__stage > *{
  position:absolute;inset:0;margin:auto;width:min(290px,76%);height:100%;
  display:flex;flex-direction:column;cursor:pointer;border-radius:22px;
  padding:1.5rem 1.35rem;backface-visibility:hidden;
  transition:transform .42s cubic-bezier(.25,.9,.3,1),opacity .32s ease,filter .32s ease,
             box-shadow .32s ease,background .3s ease;
  will-change:transform,opacity;
}
/* the focal card sits in front, full size, sharp and on the lightest panel;
   neighbours fall back onto darker panels and blur. All panels are opaque. */
.pcov__stage > [data-o="0"]{transform:none;opacity:1;z-index:5;cursor:default;
  box-shadow:0 40px 80px -34px rgba(0,0,0,.8)}
.pcov__stage > [data-o="1"]{transform:translateX(48%) scale(.86) rotateY(-20deg);z-index:4;filter:blur(.8px)}
.pcov__stage > [data-o="-1"]{transform:translateX(-48%) scale(.86) rotateY(20deg);z-index:4;filter:blur(.8px)}
.pcov__stage > [data-o="2"]{transform:translateX(82%) scale(.72) rotateY(-27deg);z-index:3;filter:blur(2px)}
.pcov__stage > [data-o="-2"]{transform:translateX(-82%) scale(.72) rotateY(27deg);z-index:3;filter:blur(2px)}
.pcov__stage > [data-o="3"]{transform:translateX(104%) scale(.62) rotateY(-30deg);opacity:0;z-index:2;pointer-events:none}
.pcov__stage > [data-o="-3"]{transform:translateX(-104%) scale(.62) rotateY(30deg);opacity:0;z-index:2;pointer-events:none}

/* --- card skin: solid white, never see-through --- */
.pcard{background:#fff;border:1px solid rgba(12,19,48,.1);text-align:left;align-items:stretch;justify-content:flex-start;overflow:hidden}
.pcard[data-o="0"]{background:#fff;border-color:rgba(12,19,48,.16)}
.pcard[data-o="1"],.pcard[data-o="-1"]{background:#f2eee6}
.pcard[data-o="2"],.pcard[data-o="-2"]{background:#e3ddd0}
.pcard:not([data-o="0"]):hover{background:#fff;filter:none}
.pcard h4{margin:0;font-size:1.06rem;line-height:1.3;color:var(--brand-blue)}
/* a fixed rule under the title, so the gap to the copy is identical on every card */
.pcard h4::after{content:"";display:block;width:30px;height:2px;border-radius:2px;background:var(--stage);margin:.7rem 0 .8rem}
.pcard p{margin:0;font-size:.93rem;line-height:1.65;color:var(--ink-soft)}
.pcard p.pcard__more{margin-top:.6rem;font-size:.86rem;color:#6c7487}

.pcard__ico{
  width:48px;height:48px;border-radius:15px;display:grid;place-content:center;
  font-size:1.4rem;margin:0 0 1rem;background:var(--yellow-highlight);color:#231400;
}
.pcard:nth-child(2) .pcard__ico{background:var(--lime-soft)}
.pcard:nth-child(3) .pcard__ico{background:var(--sky)}
.pcard:nth-child(4) .pcard__ico{background:var(--orange-signal);color:#231400}
.pcard:nth-child(5) .pcard__ico{background:var(--sand)}
.pcard:nth-child(6) .pcard__ico{background:var(--green-leaf);color:#fff}

.pcov__nav{display:flex;align-items:center;gap:.7rem;margin-top:clamp(1.7rem,3vw,2.3rem)}
.pcov__btn{
  width:46px;height:46px;flex:none;border-radius:50%;cursor:pointer;display:grid;place-items:center;
  border:1.5px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font-size:.9rem;
  transition:background .3s,border-color .3s,color .3s,transform .3s,opacity .3s;
}
.pcov__btn:hover{background:var(--yellow-highlight);border-color:transparent;color:#231400;transform:translateY(-2px)}
.pcov__dots{display:flex;align-items:center;gap:.4rem;margin-left:.6rem}
.pcov__dot{
  width:8px;height:8px;padding:0;border:0;border-radius:99px;cursor:pointer;
  background:rgba(255,255,255,.3);transition:width .45s cubic-bezier(.22,.85,.28,1),background .3s;
}
.pcov__dot[aria-selected="true"]{width:26px;background:var(--yellow-highlight)}

/* Two columns squeeze the deck until the fanned cards spill over the copy, so the
   split has to give way well before the tablet breakpoint. */
@media (max-width:1200px){
  .play__in{grid-template-columns:1fr;gap:clamp(1.8rem,5vw,2.6rem)}
  .play__copy{max-width:none}
}
/* Under ~700px the fan is wider than the stage: neighbours stick out past both
   edges and their text reads as if it were part of the focal card. Below this
   width the deck becomes a plain one-card-at-a-time view, driven by the same
   arrows and dots. Auto height also stops the copy being clipped. */
@media (max-width:700px){
  .pcov{perspective:none}
  .pcov__stage{height:auto;transform-style:flat}
  .pcov__stage > *{
    position:relative;inset:auto;width:100%;height:auto;margin:0;
    transform:none;filter:none;opacity:1;display:none;
  }
  .pcov__stage > [data-o="0"]{
    display:flex;z-index:1;
    box-shadow:0 22px 48px -26px rgba(0,0,0,.55);
  }
}
@media (prefers-reduced-motion:reduce){
  .pcov__stage > *{transition:opacity .2s ease}
  .pcov__stage > [data-o="1"],.pcov__stage > [data-o="-1"],
  .pcov__stage > [data-o="2"],.pcov__stage > [data-o="-2"]{filter:none}
}
.pcard h4{font-size:1.05rem;margin-bottom:.35rem}
.pcard p{font-size:.9rem;opacity:.82;margin:0}

/* ========================= DAY STRIP ========================= */
.day__list{display:grid;gap:1px;background:var(--hair);border-radius:var(--r);overflow:hidden;margin-top:2.5rem}
.day__item{background:#fff;padding:1.3rem 1.5rem;display:grid;grid-template-columns:96px 1fr;gap:1.5rem;align-items:baseline}
@media (max-width:600px){.day__item{grid-template-columns:1fr;gap:.25rem}}
.day__t{font-weight:900;color:var(--stage);font-size:.95rem;letter-spacing:.02em}
.day__d h4{margin-bottom:.2rem;font-size:1.05rem}
.day__d p{margin:0;font-size:.93rem;color:var(--ink-soft)}

/* ========================= SODEXO / FOOD ========================= */
.food{background:var(--green-signature);color:#fff}
.food__in{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
@media (max-width:860px){.food__in{grid-template-columns:1fr}}
.food__logo{
  background:#fff;border-radius:14px;padding:.9rem 1.2rem;display:inline-flex;
  align-items:center;gap:.8rem;margin-bottom:1.4rem;
}
.food__logo img{height:30px;width:auto}
.food__logo{color:var(--brand-blue);font-weight:900;letter-spacing:.02em;font-size:1.25rem}
.food__pts{display:grid;gap:.7rem;margin-top:1.4rem;padding:0;list-style:none}
.food__pts li{display:flex;gap:.7rem;align-items:flex-start;font-size:.98rem}
.food__pts .b{
  flex:none;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.22);
  display:grid;place-content:center;font-size:.72rem;font-weight:900;margin-top:.15rem;
}

/* ========================= LEGACY ========================= */
.legacy{
  position:relative;overflow:hidden;color:#fff;
  background:radial-gradient(120% 90% at 85% -10%,#22315a 0%,#0c1330 55%,#070c1d 100%);
}
/* the lockup once more, watermark-sized, anchoring the bottom corner */
.legacy::before{
  content:"";position:absolute;right:-6%;bottom:-3%;width:88%;aspect-ratio:9908/1219;
  background:url("/assets/logos/jain-heritage-school-white-logo.svg") no-repeat right bottom/contain;
  opacity:.05;pointer-events:none;
}
.legacy .shell{position:relative}
.legacy__head{
  display:flex;align-items:center;justify-content:space-between;gap:1rem 1.5rem;flex-wrap:wrap;
  position:relative;padding-bottom:1.4rem;margin-bottom:clamp(2rem,5vw,3rem);
}
/* the rule under the head draws itself once the row lands */
.legacy__head::after{
  content:"";position:absolute;inset:auto 0 0 0;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--stage) 0 130px,rgba(255,255,255,.15) 300px);
  transform:scaleX(0);transform-origin:0 50%;transition:transform 1.1s cubic-bezier(.2,.7,.2,1) .25s;
}
.legacy__head.in::after{transform:scaleX(1)}
/* the logo wipes in left to right */
.legacy__logo{
  display:block;width:min(430px,72vw);height:auto;
  clip-path:inset(-10% 100% -10% 0);transition:clip-path 1.2s cubic-bezier(.2,.7,.2,1) .1s;
}
.legacy__head.in .legacy__logo{clip-path:inset(-10% 0 -10% 0)}
.legacy__since{
  font-size:.7rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;
  color:rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.28);padding:.55rem 1.05rem;border-radius:999px;
}
.legacy__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
@media (max-width:880px){.legacy__grid{grid-template-columns:1fr}}
.legacy__panel{
  position:relative;border-radius:20px;padding:.5rem clamp(1.3rem,2.6vw,2rem);
  background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(8px);
}
/* the stage-coloured spine grows down the panel as it lands */
.legacy__panel::before{
  content:"";position:absolute;left:-1px;top:24px;bottom:24px;width:3px;border-radius:3px;
  background:var(--stage);transform:scaleY(0);transform-origin:50% 0;
  transition:transform .9s cubic-bezier(.2,.7,.2,1) .4s;
}
.legacy__panel.in::before{transform:scaleY(1)}
.lstat{display:flex;gap:1.2rem;align-items:baseline;padding:1.15rem .1rem}
.lstat + .lstat{border-top:1px solid rgba(255,255,255,.12)}
.lstat__num{
  flex:none;min-width:4.6ch;font-size:clamp(2rem,4.2vw,2.8rem);font-weight:900;line-height:1;
  color:var(--stage);letter-spacing:-.02em;font-variant-numeric:tabular-nums;
}
.lstat__kick{font-size:.66rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;opacity:.65;margin-bottom:.25rem}
.lstat__desc{margin:0;font-size:.93rem;color:rgba(255,255,255,.78)}
.ladder{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:clamp(2.2rem,5vw,3.2rem);align-items:center}
.ladder span{
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);
  padding:.55rem 1rem;border-radius:999px;font-size:.85rem;font-weight:700;
}
.ladder span.now{position:relative;background:var(--stage);color:#231400;border-color:transparent}
/* a slow ping keeps the "you are here" chip alive */
.ladder span.now::after{
  content:"";position:absolute;inset:-1px;border-radius:999px;
  box-shadow:0 0 0 0 var(--stage);animation:lpulse 2.8s cubic-bezier(.2,.6,.35,1) infinite;
}
@keyframes lpulse{75%{box-shadow:0 0 0 13px transparent}to{box-shadow:0 0 0 0 transparent}}
.ladder i{opacity:.4;font-style:normal}

/* ========================= FAQ ========================= */
.faq__in{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}
.faq__copy{position:sticky;top:clamp(6.5rem,14vh,9rem);margin-block-end:0}
.faq__list{display:grid;gap:.75rem}
.faq details{
  background:#fff;border:1px solid var(--hair);border-radius:16px;overflow:hidden;
  transition:border-color .3s ease,box-shadow .3s ease;
}
.faq details:hover{border-color:rgba(245,164,0,.45)}
.faq details[open]{border-color:var(--stage);box-shadow:0 18px 40px -28px rgba(12,19,48,.45)}
.faq summary{
  cursor:pointer;font-weight:800;font-size:1.02rem;line-height:1.4;list-style:none;
  display:flex;justify-content:space-between;gap:1.25rem;align-items:center;
  padding:1.05rem 1.25rem;color:var(--brand-blue);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary:focus-visible{outline:2px solid var(--stage);outline-offset:-3px}
.faq summary::after{
  content:"+";flex:none;width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;font-size:1.15rem;font-weight:700;line-height:1;
  background:var(--stage-soft);color:var(--stage-ink);
  transition:transform .3s cubic-bezier(.2,.8,.25,1),background .3s ease,color .3s ease;
}
.faq details[open] summary::after{transform:rotate(135deg);background:var(--stage);color:#fff}
.faq details p{margin:0;padding:0 1.25rem 1.2rem;color:var(--ink-soft);line-height:1.7;font-size:.96rem}
.faq details[open] p{animation:faqIn .38s cubic-bezier(.2,.8,.25,1) both}
@keyframes faqIn{from{opacity:0;transform:translateY(-7px)}}
@media (max-width:980px){.faq__in{grid-template-columns:1fr;gap:clamp(1.8rem,5vw,2.6rem)}.faq__copy{position:static}}
@media (prefers-reduced-motion:reduce){.faq details[open] p{animation:none}}

/* ========================= FINAL CTA ========================= */
.cta{background:var(--navy-deep);color:#fff;position:relative;overflow:hidden}
.cta::before{
  content:"";position:absolute;inset-block-end:-30%;inset-inline-start:-12%;
  width:min(52vw,620px);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,rgba(245,164,0,.24),transparent 68%);
}
.cta__in{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:center}
@media (max-width:860px){.cta__in{grid-template-columns:1fr}}

/* ========================= NORDI PROMPT ========================= */
.nordi{
  border:2px dashed var(--stage);border-radius:var(--r);
  padding:clamp(1.5rem,4vw,2.4rem);display:grid;grid-template-columns:1fr auto;
  gap:1.5rem;align-items:center;background:#fffaf0;
}
@media (max-width:700px){.nordi{grid-template-columns:1fr}}
.nordi h3{margin-bottom:.3rem}
.nordi p{margin:0;color:var(--ink-soft);font-size:.96rem;max-width:56ch}

/* ========================= EXIT MODAL ========================= */
.modal{
  position:fixed;inset:0;z-index:120;display:none;place-content:center;
  padding:1.25rem;background:rgba(12,14,20,.62);backdrop-filter:blur(4px);
}
.modal.open{display:grid}
.modal__box{
  background:#fff;border-radius:22px;max-width:440px;width:100%;
  padding:clamp(1.5rem,4vw,2.2rem);position:relative;
  max-height:92svh;overflow-y:auto;
  animation:pop .3s cubic-bezier(.2,1.2,.4,1);
}
@keyframes pop{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.modal__box{animation:none}}
.modal__x{
  position:absolute;inset-block-start:.7rem;inset-inline-end:.9rem;background:0;border:0;
  font-size:1.7rem;line-height:1;cursor:pointer;color:var(--ink-soft);
}

/* ========================= FOOTER ========================= */
/* ========================= FOOTER (unified site-wide component) ========================= */
.site-foot{ position:relative; background-color:#061735; color:rgba(255,255,255,.78); font-size:1rem;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px); background-size:22px 22px; }
.site-foot::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(55% 70% at 88% 6%, rgba(247,181,0,.08), transparent 60%),
    radial-gradient(50% 62% at 6% 98%, rgba(21,101,216,.12), transparent 62%),
    radial-gradient(125% 95% at 50% 0%, transparent 52%, rgba(2,9,26,.78) 100%); }
.foot-cta{ position:relative; z-index:2; overflow:hidden; margin-bottom:clamp(2.2rem,5vw,3.5rem); padding:clamp(1.6rem,3.4vw,2.9rem); border-radius:26px;
  background:linear-gradient(120deg,#0c1330,#001c54); box-shadow:0 24px 48px -32px rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.10);
  display:flex; align-items:center; justify-content:space-between; gap:1.6rem; flex-wrap:wrap; }
.foot-cta h3{ color:#fff; font-size:clamp(1.35rem,3vw,2rem); margin:0; line-height:1.15; }
.foot-cta p{ color:rgba(255,255,255,.85); margin:.5rem 0 0; font-weight:600; font-size:1.03rem; }
.foot-cta .btn-w{ position:relative; overflow:hidden; z-index:1; display:inline-flex; align-items:center; gap:.65rem; background:#ffb539; color:#0d1430; font-weight:800; padding:.95rem 1.9rem; border:0; border-radius:100vw; font-size:1.02rem; cursor:pointer; transition:transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), color .3s ease; text-decoration:none; }
.foot-cta .btn-w:hover{ transform:translateY(-3px); color:#fff; box-shadow:0 16px 38px rgba(255,181,57,.4); }
.foot-main{ position:relative; z-index:2; display:grid; grid-template-columns:1.8fr 1fr 1fr 1.1fr; gap:2.4rem; padding-bottom:2.6rem; }
.foot-brand .logo-img{ width:180px; height:auto; }
.foot-brand p{ color:rgba(255,255,255,.72); font-size:.97rem; margin:1.1rem 0 0; max-width:32em; line-height:1.75; }
.foot-flags{ display:inline-flex; align-items:center; gap:.5rem; margin:1rem 0 .4rem; }
.foot-flags .flag{ width:30px;height:20px;border-radius:4px;position:relative;overflow:hidden;flex:none;box-shadow:0 1px 4px rgba(0,0,0,.35); background:center/cover no-repeat #fff; }
.foot-flags .flag--fi{ background-image:url("/assets/img/flag-finland.svg"); }
.foot-flags .flag--in{ background-image:url("/assets/img/flag-india.svg"); }
.foot-flags .arrow{ color:rgba(255,255,255,.45); font-weight:900; font-size:.85rem; }
.foot-flags-cap{ display:block; margin:.4rem 0 1.1rem; font-size:.88rem; font-weight:700; color:rgba(255,255,255,.68); }
.foot-social{ display:flex; gap:.7rem; }
.foot-social a{ width:2.6rem;height:2.6rem; border-radius:12px; display:grid;place-items:center; color:#fff; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); transition:transform .25s, background .25s, color .25s; }
.foot-social a:hover{ background:#f7b500; color:#0c1330; transform:translateY(-3px); }
.site-foot h4{ position:relative; font-weight:800; font-size:.9rem; letter-spacing:.1em; text-transform:uppercase; color:#fff; margin:0 0 1.2rem; padding-bottom:.7rem; }
.site-foot h4::after{ content:""; position:absolute; left:0; bottom:0; width:26px; height:2px; border-radius:2px; background:#f7b500; }
.foot-links{ list-style:none; padding:0; margin:0; display:grid; gap:.8rem; }
.foot-links a{ color:rgba(255,255,255,.75); font-size:.97rem; text-decoration:none; transition:color .2s, padding-left .2s; }
.foot-links a:hover{ color:#f7b500; padding-left:5px; }
.foot-contact{ list-style:none; padding:0; margin:0; display:grid; gap:1rem; }
.foot-contact li{ display:flex; gap:.75rem; color:rgba(255,255,255,.78); font-size:.97rem; line-height:1.6; }
.foot-contact i{ color:#f7b500; margin-top:.2rem; }
.foot-contact a{ color:inherit; text-decoration:none; }
.foot-bot{ position:relative; z-index:2; border-top:1px solid rgba(255,255,255,.1); padding:1.4rem 0 2.1rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.75rem; font-size:.88rem; color:rgba(255,255,255,.62); }
.foot-bot a{ color:rgba(255,255,255,.72); text-decoration:none; } .foot-bot a:hover{ color:#f7b500; }
@media(max-width:860px){ .foot-main{ grid-template-columns:1fr 1fr; gap:1.9rem; } .foot-cta{ padding:1.9rem; } }
@media(max-width:520px){ .foot-main{ grid-template-columns:1fr; } }

/* ========================= REVEAL ========================= */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.3,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ========================= SCROLL CHOREOGRAPHY =========================
   Additive to the .reveal system above. Three layers, each degrading into
   the one beneath it:

     1. transition-delay stagger  — works wherever .reveal already works
     2. scroll-driven animation   — @supports (animation-timeline), Chromium
     3. nothing at all            — reduced motion, or an older browser

   Nothing here is load-bearing. Delete the whole block and the page still
   lays out and reads identically; motion is the last thing to arrive and
   the first thing to give up.
   ====================================================================== */

/* — a link that jumps to a section must clear the fixed nav — */
:where(section,header,footer,div)[id]{scroll-margin-top:clamp(4.5rem,8vw,6rem)}

/* — THE STAGGER LADDER —
   Grid children are each their own .reveal, so they all cross the observer
   threshold on the same frame and land as one flat pop. A delay keyed to
   position turns that into a sweep across the grid. */
.reveal{transition-delay:var(--rd,0s)}

:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.phase__grid,.seq) > *:nth-child(2){--rd:.07s}
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.phase__grid,.seq) > *:nth-child(3){--rd:.14s}
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.phase__grid,.seq) > *:nth-child(4){--rd:.21s}
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.phase__grid,.seq) > *:nth-child(5){--rd:.28s}
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.phase__grid,.seq) > *:nth-child(6){--rd:.35s}
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.phase__grid,.seq) > *:nth-child(n+7){--rd:.42s}

/* — SEQUENCED LISTS —
   The container carries .reveal only to be the observer's target; the motion
   belongs to its children, so the container itself stays put. */
.seq{opacity:1;transform:none}
.seq > *{
  opacity:0;transform:translateY(16px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.3,1);
  transition-delay:var(--rd,0s);
}
.seq.in > *{opacity:1;transform:none}

/* — PHOTOGRAPHS settle out of a slight zoom instead of snapping in — */
.row__media img{transform:scale(1.055);transition:transform 1.15s cubic-bezier(.2,.7,.3,1)}
.reveal.in .row__media img,
.row__media.reveal.in img{transform:none}

/* — HEADINGS ARRIVE A WORD AT A TIME —
   The spans are injected by script, and only inside a .reveal, so a heading
   that never gets a trigger can never be left invisible. */
.tsplit__w{
  display:inline-block;opacity:0;
  transform:perspective(620px) translate3d(0,.42em,0) rotateX(-74deg);
  transform-origin:50% 0;
  transition:opacity .5s ease var(--wd,0s),transform .8s cubic-bezier(.16,.84,.26,1) var(--wd,0s);
}
.reveal.in .tsplit__w{opacity:1;transform:none}

/* — the eyebrow tracks in ahead of the heading it labels — */
.reveal .eyebrow{
  opacity:0;transform:translateY(-9px);letter-spacing:.42em;
  transition:opacity .5s ease,transform .55s cubic-bezier(.2,.8,.25,1),letter-spacing .95s cubic-bezier(.16,.84,.26,1);
}
.reveal.in .eyebrow{opacity:1;transform:none;letter-spacing:.16em}

/* — and the standfirst follows the last word in — */
.reveal .lede{
  opacity:0;transform:translateY(15px);
  transition:opacity .7s ease .28s,transform .8s cubic-bezier(.2,.75,.25,1) .28s;
}
.reveal.in .lede{opacity:1;transform:none}

/* — CARDS HINGE IN FROM ALTERNATE EDGES —
   Odd children swing in off the left, even off the right, each on its own
   vertical hinge. The .in rules are spelled out because these selectors
   outrank the plain .reveal.in that normally does the resetting. */
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid) > .reveal{
  transform:perspective(1100px) translate3d(-70px,18px,-70px) rotateY(17deg) scale(.95);
  transform-origin:100% 50%;
  transition:opacity .75s ease var(--rd,0s),transform .95s cubic-bezier(.2,.72,.24,1) var(--rd,0s);
}
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid) > .reveal:nth-child(even){
  transform:perspective(1100px) translate3d(70px,18px,-70px) rotateY(-17deg) scale(.95);
  transform-origin:0 50%;
}
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid) > .reveal.in,
:is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid) > .reveal.in:nth-child(even){transform:none}

/* — the medallion inside each card flips face-on as the card lands — */
.reveal :is(.stat__circle,.pcard__ico,.ccard__n){
  opacity:0;transform:perspective(700px) rotateY(-105deg);
  transition:transform .8s cubic-bezier(.2,.8,.25,1) calc(var(--rd,0s) + .16s),
             opacity .45s ease calc(var(--rd,0s) + .16s);
}
.reveal.in :is(.stat__circle,.pcard__ico,.ccard__n){opacity:1;transform:none}

/* — SPLIT ROWS: the picture and the prose arrive from opposite edges — */
.rows > .row.reveal{opacity:1;transform:none}
.rows > .row.reveal > *{opacity:0;transition:opacity .8s ease,transform .95s cubic-bezier(.2,.72,.24,1)}
.rows > .row.reveal > .row__media{
  transform:perspective(1200px) translate3d(-70px,0,-80px) rotateY(12deg);transform-origin:100% 50%;
}
.rows > .row.reveal > *:not(.row__media){
  transform:perspective(1200px) translate3d(70px,0,-80px) rotateY(-12deg);transform-origin:0 50%;
  transition-delay:.14s;
}
.rows > .row.reveal.in > *{opacity:1;transform:none}

/* — a card turns very slightly towards the pointer (.pcard is excluded: the coverflow owns its transform) — */
@media (hover:hover){
  :is(.ccard,.pillar,.style,.stat):hover{
    transform:perspective(900px) translateY(-7px) rotateX(3.5deg) rotateY(-3.5deg) scale(1.018);
  }
}

/* a full-width card has less room to swing on a phone */
@media (max-width:640px){
  :is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid) > .reveal{
    transform:perspective(900px) translate3d(-34px,16px,-40px) rotateY(12deg) scale(.96);
  }
  :is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid) > .reveal:nth-child(even){
    transform:perspective(900px) translate3d(34px,16px,-40px) rotateY(-12deg) scale(.96);
  }
  .rows > .row.reveal > .row__media{transform:perspective(900px) translate3d(-34px,0,-40px) rotateY(9deg)}
  .rows > .row.reveal > *:not(.row__media){transform:perspective(900px) translate3d(34px,0,-40px) rotateY(-9deg)}
}

/* — LAYER 2: scroll-driven, where the browser supports it —
   These are tied to scroll position rather than to a one-shot trigger, so
   they track the scroll both ways instead of firing once. */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){

    /* The hero photograph drifts slower than the page riding over it.
       Driven from the root scroller, not view(): .hero sets overflow:hidden,
       which makes it its own scroll container, and a view() timeline would
       resolve against that scrollport — which never scrolls — and freeze at a
       fixed progress. The hero is always at the top of the page, so the first
       viewport-height of scrolling is exactly the range we want. */
    .hero::before{
      animation:heroDrift linear both;
      animation-timeline:scroll(root);
      animation-range:0 100svh;
      will-change:transform;
    }
    @keyframes heroDrift{
      from{transform:scale(1.04) translateY(0)}
      to  {transform:scale(1.14) translateY(3.5%)}
    }

    /* statement bands lift as they cross, so the pull-quote lands on arrival */
    .statement p{
      animation:bandLift linear both;
      animation-timeline:view();
      animation-range:cover 0% cover 40%;
    }
    @keyframes bandLift{
      from{opacity:.25;transform:translateY(22px) scale(.98)}
      to  {opacity:1;transform:none}
    }

    /* these pages are long — give the scroll a horizon line */
    body::after{
      content:"";position:fixed;inset-block-start:0;inset-inline:0;height:3px;
      z-index:95;pointer-events:none;background:var(--stage);
      transform-origin:0 50%;transform:scaleX(0);
      animation:scrollProgress linear both;
      animation-timeline:scroll(root);
    }
    @keyframes scrollProgress{to{transform:scaleX(1)}}
  }
}

/* — LAYER 3: anyone who has asked for less motion gets none of it — */
@media (prefers-reduced-motion:reduce){
  .reveal{transition-delay:0s}
  .seq > *{opacity:1;transform:none;transition:none}
  .row__media img{transform:none;transition:none}
  .tsplit__w,
  .reveal .lede,
  :is(.proof__grid,.play__grid,.pillars__grid,.comp__grid,.styles__grid) > .reveal,
  .reveal :is(.stat__circle,.pcard__ico,.ccard__n),
  .rows > .row.reveal,.rows > .row.reveal > *,
  :is(.ccard,.pillar,.style,.stat):hover{
    opacity:1!important;transform:none!important;transition:none!important;
  }
  .reveal .eyebrow{opacity:1!important;transform:none!important;transition:none!important;letter-spacing:.16em!important}
  .legacy__logo{clip-path:none!important;transition:none!important}
  .legacy__head::after,.legacy__panel::before{transform:none!important;transition:none!important}
  .ladder span.now::after{animation:none!important}
}

/* --- wide-shell corrections: keep sparse grids from drifting apart --- */
.proof__grid,
.pillars__grid,
.styles__grid,
.play__grid{max-width:1280px;margin-inline:auto}
.sec-head.center{max-width:min(72ch,var(--measure, 68ch))}
@media (min-width:1500px){
  .day__list,
  .shift__table{max-width:1400px;margin-inline:auto}
}
/* LCP: the hero copy is visible from the first paint (only its display line animates) */.hero .reveal{opacity:1;transform:none}
/* keyword H1 (SEO): small kicker above the display line; the display line keeps the old h1 look */
.hero h1.hero__kw{font-family:var(--font-sans);font-size:clamp(.98rem,.9rem + .35vw,1.2rem);font-weight:700;line-height:1.35;letter-spacing:0;color:#fff;margin:1.1rem 0 0;max-width:48ch}
.hero h1.hero__kw + .hero__display{margin-top:.25em}
