/* ==========================================================================
   Off The Clock — styles
   1) Tokens  2) Base  3) Primitives  4) Sections in page order  5) .static
   Colours: ONLY use the tokens below. Change the palette here, nowhere else.
   Brand: navy #0F233F, clock cyan #70CCDC, cream #F0EDE9, gold #B4894F.
   ========================================================================== */

/* 1 · TOKENS ------------------------------------------------------------- */
:root {
  /* palette — navy + clock cyan, cream paper, one gold rule */
  --ink: #0F233F;          /* brand navy: dark sections, footer */
  --ink-2: #17304F;        /* raised dark surface */
  --charcoal: #142033;     /* body text on light */
  --slate: #5A6B7C;        /* muted text / category */
  --slate-d: #1A3358;      /* headings on light */
  --mist: #E7EEF3;         /* light section + text on dark */
  --paper: #F0EDE9;        /* cream, from the brand panels */
  --white: #FFFFFF;
  --accent: #70CCDC;       /* clock cyan */
  --warm: #78603A;         /* bronze for text on light; the brighter gold fails contrast */
  --muted: #A8B6C4;        /* secondary text on navy */
  --line-dark: rgba(231, 238, 243, .18);
  --line-light: rgba(20, 32, 51, .12);
  --shade: rgba(15, 35, 63, .62);

  /* type — heavy condensed display, clean body. The wordmark is the logo image. */
  --f-display: "Oswald", "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-script: "Manrope", system-ui, sans-serif;
  --fs-hero: clamp(2.1rem, 7vw, 6.4rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3.1rem);
  --fs-body: clamp(.98rem, .94rem + .2vw, 1.06rem);
  --fs-small: .78rem;
  --track-display: -.02em;
  --track-body: .03em;
  --track-caps: .12em;

  /* space + shape */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --sec-pad: clamp(80px, 12vw, 160px);
  --radius: 10px;
  --hdr-h: 96px;

  /* motion (JS mirrors these in main.js → EASE/DUR) */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
}

/* 2 · BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: var(--track-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: max(12px, env(safe-area-inset-left)); top: 12px; z-index: 80;
  padding: .7em 1.1em; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.center { text-align: center; }
section { position: relative; }
.section--ink { background: var(--ink); color: var(--mist); }
.section--mist { background: var(--mist); color: var(--charcoal); }
.section--paper { background: var(--paper); color: var(--charcoal); }

/* 3 · PRIMITIVES --------------------------------------------------------- */
/* Placeholder art: gradient + film grain. Real photo: style="--img:url(assets/x.jpg)" */
.ph {
  position: absolute; inset: 0;
  background-color: var(--g2, var(--slate-d));
  background-image:
    var(--img, none),
    radial-gradient(120% 90% at 20% 15%, var(--g3, var(--mist)) 0%, transparent 55%),
    linear-gradient(150deg, var(--g1, var(--slate)) 0%, var(--g2, var(--ink)) 100%);
  background-size: cover; background-position: center;
}
.ph::after { /* film grain — remove if using real photos and you don't want it */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph > img, .ph > video, .ph > picture, .ph > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph--photo::after { display: none; }

.brand-logo { display: block; height: 60px; width: auto; }
.brand-logo--lg { height: 96px; }
.drawer__logo { height: 58px; }
.drawer .brand { margin: 0 0 28px; }
/* One vector O: a ring plus the quarter that leaves the dark three-quarter block. */
.brand { position: relative; display: inline-block; line-height: 0; }
.brand__clock {
  position: absolute; left: 38.47%; top: 77.86%; height: 47%; aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; overflow: visible;
  color: var(--accent);
}
.brand__clock circle { fill: none; stroke: currentColor; }
.brand__clock path { fill: currentColor; }
.brand__clock [data-pie] {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: clock-sweep 12s linear infinite;
}
.reduce .brand__clock [data-pie] { animation-duration: 2.8s; animation-iteration-count: 1; }
.static .brand__clock [data-pie] { animation: none; }
@keyframes clock-sweep { to { transform: rotate(360deg); } }

/* display headings */
.h-display {
  font-family: var(--f-display); font-weight: 500; font-size: var(--fs-h2);
  line-height: 1.08; letter-spacing: var(--track-display); text-transform: uppercase;
  margin: 0 0 .6em; color: var(--mist);
}
.h-display--ink { color: var(--slate-d); }

/* split-word masks (built by main.js). Overflow clips the masked rises only. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.wi { display: inline-block; }
.ch { display: inline-block; }
.h-display .line { display: block; }
/* These reveals travel outside the mask, so the word box must not clip them. */
[data-reveal="drop"] .w,
[data-reveal="wave"] .w,
[data-reveal="blur"] .w,
[data-reveal="words"] .w,
[data-reveal="decode"] .w { overflow: visible; }
[data-reveal="words"] .w { vertical-align: baseline; padding: 0; margin: 0; }
.hero__title .line { perspective: 640px; }
.hero__title .ch { transform-origin: 50% 0; backface-visibility: hidden; }
/* Colour wipe: both layers stay in the DOM. JS clips the fill; without JS the fill covers the dim copy. */
[data-reveal="wipe"] { position: relative; }
.wipe__dim, .wipe__fill { display: block; }
.wipe__dim { color: var(--muted); }
.wipe__fill { position: absolute; inset: 0; color: inherit; pointer-events: none; }

.eyebrow {
  font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--mist); margin-bottom: 1.4em;
}
.eyebrow--dark { color: var(--slate); }

/* underlined text link — hairline that re-draws on hover */
.tlink {
  position: relative; display: inline-block; padding-bottom: 6px;
  font-weight: 500; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--mist);
}
.tlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .5s var(--ease-out);
}
.tlink:hover::after { transform: scaleX(0); }
.tlink:hover::before { transform: scaleX(1); }
.tlink::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s .12s var(--ease-out);
}
.tlink--ink { color: var(--slate-d); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.4em; border-radius: 999px;
  font-weight: 500; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--mist); }
.btn--ink:hover { background: var(--accent); color: var(--ink); }
.btn--line { border: 1px solid var(--slate-d); color: var(--slate-d); }
.btn--line:hover { background: var(--slate-d); color: var(--white); }
.btn--light { background: var(--mist); color: var(--ink); }
.btn--light:hover { background: var(--white); }

.crest {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid currentColor; font-family: var(--f-display); font-size: 1rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px var(--line-dark);
}
.crest--lg { width: 84px; height: 84px; font-size: 1.5rem; }

.tag {
  display: inline-block; padding: .25em .8em; border-radius: 999px; background: var(--mist);
  font-weight: 600; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-d);
}
.tag--members { background: var(--ink); color: var(--white); }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 640px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__lead { color: var(--slate); }

/* 4 · SECTIONS ----------------------------------------------------------- */

/* 00 loader */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink); color: var(--mist);
  animation: loader-safety 0s linear 8s forwards; /* failsafe if JS stalls */
}
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__mark img { width: min(320px, 72vw); height: auto; }
.loader__rule { width: 120px; height: 1px; background: var(--accent); transform-origin: left; }
.loader__word { font-family: var(--f-body); font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1; opacity: .85; }
@keyframes loader-safety { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.is-loaded .loader { display: none; }

/* 01 header */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)); color: var(--white);
  transition: transform .45s var(--ease-out), background-color .4s, height .4s;
}
.hdr.is-solid { background: var(--ink); height: 80px; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__side { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hdr__side svg, .ftr__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.hdr__brand { display: inline-flex; align-items: center; gap: 12px; }
.hdr__name { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; }
.hdr__burger { justify-self: end; width: 44px; height: 44px; display: grid; align-content: center; justify-items: end; gap: 6px; }
.hdr__burger i { display: block; width: 26px; height: 1.5px; background: currentColor; transition: width .35s var(--ease-out); }
.hdr__burger i:nth-child(3) { width: 18px; }
.hdr__burger:hover i:nth-child(3) { width: 26px; }

/* drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 35, 63, .5); opacity: 0; pointer-events: none; transition: opacity .5s; }
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 61; width: min(440px, 100%);
  background: var(--white); color: var(--charcoal); padding: 72px clamp(24px, 5vw, 48px) 40px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .7s var(--ease-out), visibility 0s .7s;
}
.menu-open .drawer { transform: none; visibility: visible; transition: transform .7s var(--ease-out); }
.menu-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; }
.drawer__close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.drawer__title { font-weight: 600; font-size: 1rem; letter-spacing: .02em; padding-bottom: 12px; border-bottom: 1px solid var(--line-light); margin-bottom: 8px; }
.drawer__nav { margin-bottom: 40px; }
.drawer details { border-bottom: 1px solid var(--line-light); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; cursor: pointer; font-weight: 400; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: ""; width: 7px; height: 7px; border-right: 1.3px solid; border-bottom: 1.3px solid; transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.drawer details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.drawer details a { display: block; padding: 6px 4px 6px 16px; color: var(--slate); font-size: .95rem; }
.drawer details a:last-child { padding-bottom: 18px; }
.drawer details a:hover { color: var(--accent); }
.drawer__social { display: flex; gap: 24px; font-weight: 500; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* 02 hero */
.hero { height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); display: grid; place-items: center; }
.hero__media { position: absolute; inset: 0; }
.hero__zoom { position: absolute; inset: 0; }
/* Video fades in over the poster once it is actually playing (enhancement layer, not content) */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease-out); pointer-events: none; }
.hero__video.is-ready { opacity: 1; }
.hero__toggle {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--white); background: rgba(15, 35, 63, .25);
  backdrop-filter: blur(6px); transition: background-color .3s, border-color .3s;
}
.hero__toggle:hover { background: rgba(15, 35, 63, .55); border-color: var(--mist); }
.hero__toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero__toggle .i-play { fill: currentColor; stroke: none; opacity: 0; }
.hero__toggle[aria-pressed="true"] .i-play { opacity: 1; }
.hero__toggle[aria-pressed="true"] .i-pause { opacity: 0; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 50% 46%, rgba(15,35,63,.78), rgba(15,35,63,.2) 70%),
    linear-gradient(180deg, rgba(15,35,63,.62) 0%, rgba(15,35,63,.18) 38%, rgba(15,35,63,.72) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: var(--hdr-h) var(--gutter) 0; max-width: 1100px; }
.hero__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-hero); line-height: .92; letter-spacing: var(--track-display); text-transform: uppercase; margin: 0 0 .5em; }
.hero__title .line { display: block; }
.hero__sub { max-width: 34em; margin: 0 auto; color: var(--mist); }
.hero__cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; }
.hero__cue svg { width: 24px; height: 24px; stroke: var(--white); stroke-width: 1.6; fill: none; animation: cue 2.4s var(--ease-out) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: .6; } 50% { transform: translateY(4px); opacity: 1; } }
@media (min-width: 760px) { .hero__title .line { white-space: nowrap; } }

/* 03 hello */
.hello { padding-block: var(--sec-pad); }
.hello__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.hello__copy p { text-align: left; color: var(--mist); max-width: 62ch; }
.stats { list-style: none; padding: 28px 0; margin: 20px 0 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-block: 1px solid var(--line-dark); }
.stats strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; color: var(--white); }
.stats span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.stats__word { font-size: clamp(1.15rem, 2.2vw, 1.65rem); letter-spacing: .06em; padding-top: .4em; }

/* 04 story (pinned) */
.story { background: var(--ink); }
.story__stage { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.story__media { position: absolute; inset: -8%; }
.story__slide:not(:first-child) { opacity: 0; } /* JS crossfades them; static mode keeps slide 1 */
.story__slide > img { width: 124%; height: 124%; margin: -12%; }
.story__shade { position: absolute; inset: 0; background: var(--shade); opacity: .25; }
.story__card {
  position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 620px); max-height: calc(100svh - 120px); overflow: hidden;
  background: var(--white); padding: clamp(28px, 5vw, 56px); color: var(--charcoal);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.45);
}
.story__card .h-display { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.story__card > p { color: var(--slate); }
.principles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-light); }
.principles span { font-family: var(--f-display); color: var(--warm); font-size: 1rem; padding-top: 2px; }
.principles strong { display: block; font-weight: 600; color: var(--charcoal); letter-spacing: .02em; }
.principles em { font-style: normal; font-size: .92rem; color: var(--slate); }

/* 04b marquee */
.marquee { overflow: hidden; padding-block: clamp(36px, 6vw, 72px); border-block: 1px solid var(--line-dark); }
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; flex: none; }
.marquee__set span {
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.6rem, 8vw, 7rem); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--muted); padding-inline: clamp(18px, 3vw, 40px); transition: color .5s, -webkit-text-stroke-color .5s;
}
.marquee__set span:hover { color: var(--mist); -webkit-text-stroke-color: var(--mist); }
.marquee__set i { font-style: normal; color: var(--accent); font-size: clamp(1rem, 2vw, 1.6rem); }

/* 05 topics (pinned horizontal) */
.topics__stage { height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 72px; padding-bottom: 28px; }
.topics__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.topics__head .h-display { margin-bottom: .5em; }
.topics__hint { color: var(--muted); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.hint-swipe { display: none; }
.topics__viewport { overflow: hidden; }
.topics__track { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; }
.tcard { position: relative; flex: 0 0 auto; width: min(76vw, 860px, 110svh); height: min(58svh, 540px); overflow: hidden; color: var(--white); border-radius: 2px; }
.tcard__media { position: absolute; inset: 0; overflow: hidden; }
.zoom { position: absolute; inset: 0; overflow: hidden; transition: transform 1.2s var(--ease-out); } /* CSS hover layer; GSAP animates the .ph inside */
.tcard__media .ph { inset: 0 -12%; }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,35,63,.5), transparent 40%, rgba(15,35,63,.62)); }
.tcard:hover .zoom { transform: scale(1.05); }
.tcard__label { position: absolute; z-index: 2; top: clamp(18px, 3vw, 32px); left: clamp(18px, 3vw, 32px); font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 400; }
.tcard__meta { position: absolute; z-index: 2; left: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px); bottom: clamp(18px, 3vw, 32px); font-size: .9rem; color: var(--mist); max-width: 30em; line-height: 1.5; }
.topics__progress { width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 28px auto 0; height: 1px; background: var(--line-dark); }
.topics__progress span { display: block; height: 100%; background: var(--mist); transform-origin: left; transform: scaleX(.02); }

/* 06 quizzes */
.quizzes { padding-block: var(--sec-pad); }
.qgrid { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.qcard { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transform-style: preserve-3d; box-shadow: 0 1px 0 var(--line-light); transition: box-shadow .4s; }
.qcard:hover { box-shadow: 0 24px 50px -24px rgba(15,35,63,.35); }
.qcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.qcard__media .ph, .jcard__media .ph { inset: -10% 0; } /* headroom for the scroll drift */
.qcard:hover .zoom { transform: scale(1.06); }
.qcard__body { padding: 20px 20px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; }
.qcard h3 { margin: 8px 0 0; font-weight: 500; font-size: 1.08rem; letter-spacing: .01em; color: var(--charcoal); }
.qcard p { color: var(--slate); font-size: .92rem; line-height: 1.55; margin-bottom: 14px; }
.qcard .btn { margin-top: auto; }

.tryquiz { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); background: var(--ink); color: var(--mist); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); }
.tryquiz__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; margin: 0 0 .4em; line-height: 1.1; }
.tryquiz .eyebrow--dark { color: var(--muted); }
.tryquiz__panel { min-height: 280px; }
.q__count { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.q__text { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 400; color: var(--white); line-height: 1.5; margin: 12px 0 22px; }
.q__opts { display: flex; gap: 12px; flex-wrap: wrap; }
.q__opt { min-height: 48px; padding: 0 1.6em; border-radius: 999px; border: 1px solid var(--line-dark); font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; transition: background-color .3s, border-color .3s, color .3s; }
.q__opt:hover:not(:disabled) { border-color: var(--mist); }
.q__opt.is-right { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.q__opt.is-wrong { border-color: var(--warm); color: var(--warm); }
.q__opt:disabled { cursor: default; }
.q__why { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--mist); font-size: .95rem; }
.q__why strong { color: var(--white); font-weight: 600; }
.q__next { margin-top: 8px; }
.q__score { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--white); line-height: 1; margin: 10px 0 14px; }

/* 07 mission */
.mission { min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--white); padding-block: var(--sec-pad); text-align: center; }
.mission__media { position: absolute; inset: 0; overflow: hidden; }
.mission__media .ph { inset: -12% 0; }
.mission__media .ph > img { filter: blur(12px); width: 112%; height: 112%; margin: -6%; }
.mission__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,35,63,.55), rgba(15,35,63,.74)); }
.mission__content { position: relative; z-index: 2; max-width: 760px; }
.mission__content p { font-weight: 400; margin-bottom: 2.2em; }
.mission .h-display { color: var(--white); }

/* 08 journal */
.journal { padding-block: var(--sec-pad); }
.jgrid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.jcard a { display: block; height: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line-light); transition: box-shadow .4s, transform .5s var(--ease-out); }
.jcard a:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(15,35,63,.4); }
.jcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.jcard a:hover .zoom { transform: scale(1.06); }
.jcard p { padding: 18px 20px 22px; margin: 0; color: var(--charcoal); font-weight: 400; line-height: 1.5; }
.jcard p span { color: var(--slate); }

/* 09 faq */
.faq { padding-block: var(--sec-pad); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); }
.faq__list details { border-top: 1px solid var(--line-light); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-light); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 500; color: var(--charcoal); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; flex: none; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--slate); transition: transform .4s var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--slate); padding-bottom: 22px; margin: 0; max-width: 40em; }

/* 10 newsletter */
.newsletter { padding-block: var(--sec-pad); text-align: center; }
.newsletter__inner { max-width: 720px; }
.newsletter p { color: var(--mist); }
.signup { display: flex; gap: 10px; margin: 36px auto 14px; max-width: 520px; flex-wrap: wrap; justify-content: center; }
.signup input { flex: 1 1 240px; min-height: 50px; padding: 0 1.3em; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--white); font: inherit; letter-spacing: .02em; }
.signup input::placeholder { color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.signup input:focus { outline: none; border-color: var(--mist); }
.signup .btn { min-height: 50px; }
.signup__msg { flex-basis: 100%; min-height: 1.5em; margin: 6px 0 0; font-size: .9rem; }
.fine { font-size: .8rem; color: var(--muted) !important; }

/* 11 footer */
.ftr { position: relative; background: var(--ink); color: var(--mist); overflow: hidden; padding-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line-dark); }
.ftr__top { display: grid; justify-items: center; text-align: center; }
.ftr__script { font-family: var(--f-body); font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; color: var(--accent); margin: 20px 0 28px; }
.ftr__social { list-style: none; display: flex; gap: 10px; margin: 0 0 48px; padding: 0; }
.ftr__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s, color .3s; }
.ftr__social a:hover { background: var(--mist); color: var(--ink); }
.ftr__social .fill { fill: currentColor; stroke: none; }
.ftr__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(20px, 4vw, 48px); padding-block: 22px; border-block: 1px solid var(--line-dark); }
.ftr__links a { font-size: .95rem; font-weight: 400; transition: color .3s; }
.ftr__links a:hover { color: var(--white); }
.ftr__base { text-align: center; padding-block: 26px 32px; font-size: .78rem; color: var(--muted); }
.ftr__base p { margin-bottom: .5em; }

/* back to top */
.totop {
  position: fixed; z-index: 40; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--mist); box-shadow: 0 10px 30px -12px rgba(15, 35, 63, .6);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease-out), background-color .3s;
}
.totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--accent); color: var(--ink); }
.totop svg { grid-area: 1 / 1; fill: none; stroke: currentColor; }
.totop__ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.totop__track { stroke: var(--line-dark); stroke-width: 1.5; }
.totop__bar { stroke: var(--mist); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.totop__arrow { width: 20px; height: 20px; stroke-width: 1.6; }
.menu-open .totop { opacity: 0; pointer-events: none; }

/* RESPONSIVE ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .qgrid, .jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --hdr-h: 76px; }
  .hdr.is-solid { height: 68px; }
  .hdr__side span { display: none; }
  .hdr__name { font-size: .98rem; }
  .crest { width: 42px; height: 42px; font-size: .85rem; }
  .crest--lg { width: 72px; height: 72px; font-size: 1.3rem; }
  .brand-logo { height: 42px; }
  .brand-logo--lg { height: 72px; }
  .hint-scroll { display: none; }
  .hint-swipe { display: inline; }
  .topics__stage { height: auto; min-height: 0; padding-block: var(--sec-pad); }
  .topics__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .topics__progress { display: none; }
  .hello__grid, .faq__grid, .tryquiz { grid-template-columns: 1fr; }
  .hello__copy p { text-align: left; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stats span { font-size: .66rem; letter-spacing: .05em; }
  .tcard { scroll-snap-align: start; width: 82vw; height: min(56svh, 480px); }
  .topics__head { flex-direction: column; gap: 0; }
  .story__card { padding: 26px 22px; }
  .story__card > p { font-size: .92rem; line-height: 1.6; }
  .principles li { padding: 10px 0; grid-template-columns: 34px 1fr; }
  .principles em { font-size: .85rem; line-height: 1.5; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .story__card { padding: 22px 28px; max-height: calc(100svh - 80px); overflow: auto; }
  .story__card .h-display { font-size: 1.7rem; margin-bottom: .35em; }
  .principles li { padding: 8px 0; }
}
@media (max-width: 560px) {
  .qgrid, .jgrid { grid-template-columns: 1fr; }
}

/* 5 · STATIC (no libraries) and REDUCED MOTION
   Static freezes CSS motion. Reduced motion keeps short fades (see main.js)
   but uses the same unpinned layout: no loader, no hero video, swipe topics. */
.static .loader,
.reduce .loader { display: none !important; }
.static .hero__cue svg { animation: none; }
.static .story__stage,
.reduce .story__stage { height: auto; min-height: 100svh; padding-block: 120px; }
.static .story__slide > img,
.reduce .story__slide > img { filter: blur(24px); }
.static .topics__stage,
.reduce .topics__stage { height: auto; min-height: 0; padding-block: var(--sec-pad); }
.static .topics__viewport,
.reduce .topics__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.static .tcard,
.reduce .tcard { scroll-snap-align: start; }
.static .topics__progress,
.reduce .topics__progress { display: none; }
.static .hdr { transition: none; }
.static .hero__video, .static .hero__toggle,
.reduce .hero__video, .reduce .hero__toggle { display: none !important; }
.static .marquee__row,
.reduce .marquee__row { width: auto; flex-wrap: wrap; justify-content: center; }
.static .marquee__set + .marquee__set,
.reduce .marquee__set + .marquee__set { display: none; }
.static .marquee__set,
.reduce .marquee__set { flex-wrap: wrap; justify-content: center; }
.static *, .static *::before, .static *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
