/* FSBM Academy landing page. "Brand-lit night": a NexaCore-style layout (floating pill bar,
   lit dark hero, chip labels, two-tone headings, glowing dark cards, staircase method)
   carried entirely in FSBM's own palette: signal red, ink and silver. See DESIGN.md. */
:root {
  --red: #f71700;
  --red-fill: #e01400;          /* red with white text: 4.9:1 */
  --red-text: #c81300;
  --ink: #16202c;
  --art-ink: #0b111a;           /* backdrop of the AI Brain artwork, and the night bands */
  --slate-deep: #1c2a39;
  --slate-mid: #334559;
  --mist: #f3f6f9;
  --silver: #e7ecf1;
  --silver-recessed: #d6dee5;
  --white: #ffffff;
  --steel: #4a5866;
  --slate: #5f6d7b;
  --cloud: #aab6c2;
  --line: #c9d2da;
  --line-strong: #84909c;
  --line-ink: #3a4858;

  /* Derived light: everything glows red or silver, nothing else */
  --glow-red: color-mix(in srgb, var(--red) 34%, transparent);
  --glow-red-soft: color-mix(in srgb, var(--red) 16%, transparent);
  --hair-light: color-mix(in srgb, var(--white) 12%, transparent);
  --hair-light-soft: color-mix(in srgb, var(--white) 7%, transparent);
  --shadow-soft: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 10px 28px -14px color-mix(in srgb, var(--ink) 32%, transparent);
  --grad-dark: linear-gradient(90deg, var(--silver) 0%, var(--red) 78%);
  --grad-light: linear-gradient(90deg, var(--slate-mid) 0%, var(--red) 70%);

  --gutter: clamp(1rem, 5vw, 5rem);
  --band: clamp(5rem, 10vw, 8.5rem);
  --container: 76rem;
  --measure: 40rem;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Type ramp */
  --fs-hero: clamp(2.5rem, 5.2vw, 4.75rem);
  --fs-hero-zh: clamp(2.5rem, min(11vw, 5.6vw + 1rem), 5.5rem);
  --fs-display: clamp(3rem, 6.6vw, 6rem);
  --fs-headline: clamp(2.25rem, 4.6vw, 4rem);
  --fs-statement: clamp(1.9rem, 3.8vw, 3.25rem);
  --fs-title: clamp(1.6rem, 2.6vw, 2.25rem);
  --fs-service: clamp(1.9rem, 3vw, 2.75rem);
  --fs-title-small: 1.25rem;
  --fs-lead: clamp(1.125rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-label: .875rem;

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 10h15M11.5 4.5 17 10l-5.5 5.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5l9 9M14.5 5.5l-9 9' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.8 3.8L16 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; scrollbar-color: var(--line-strong) var(--silver); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Lenis smooth scrolling (src/scroll.js) takes over from the browser's own smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  font-family: "Archivo Variable", "Noto Sans SC Variable", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--white); }
.on-ink ::selection, footer ::selection { background: var(--white); color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.on-ink :focus-visible, footer :focus-visible { outline-color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--white); color: var(--ink); padding: .75rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--band) 0; position: relative; }
.on-ink { color: var(--white); }
.h2 { font-size: var(--fs-headline); line-height: 1.04; letter-spacing: -0.03em; max-width: 20ch; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: var(--measure); color: var(--steel); margin-top: clamp(1rem, 2vw, 1.5rem); }
.on-ink .lead { color: var(--cloud); }
.small { font-size: var(--fs-label); line-height: 1.5; color: var(--steel); }
.nw { white-space: nowrap; }
.icon-arrow { display: inline-block; flex: none; width: 1em; height: 1em; background: var(--red); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.h2 .icon-arrow { width: .62em; height: .62em; vertical-align: .04em; margin: 0 .04em; }

/* Two-tone headings: the second phrase is lit from silver into red */
.grad {
  background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.on-ink .grad { background-image: var(--grad-dark); }
.h2 .grad .icon-arrow, .grad .icon-arrow { background: var(--red); }

/* Section heads: chip, centred heading, lead */
.head { display: grid; justify-items: center; text-align: center; }
.head .h2, .head .lead { margin-inline: auto; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem;
  padding: .38rem .9rem .38rem .75rem; border-radius: 999px;
  font-size: var(--fs-label); font-weight: 500; line-height: 1.3;
  background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}
.chip .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--glow-red-soft); flex: none; }
.on-ink .chip { background: var(--hair-light-soft); color: var(--white); box-shadow: inset 0 0 0 1px var(--hair-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .5rem 1.4rem; border-radius: 12px;
  font-family: inherit; font-size: var(--fs-label); font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, box-shadow .2s, transform .16s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-primary { background: var(--red-fill); border-color: var(--red-fill); color: var(--white); box-shadow: 0 8px 24px -10px var(--glow-red); }
.btn-primary:hover { background: var(--red-text); border-color: var(--red-text); box-shadow: 0 10px 28px -8px var(--glow-red); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.on-ink .btn-line { color: var(--white); border-color: var(--hair-light); background: var(--hair-light-soft); }
.on-ink .btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Floating pill bar ---------- */
.bar { position: fixed; top: .85rem; left: 0; right: 0; z-index: 30; padding: 0 clamp(.75rem, 2.5vw, 1.5rem); pointer-events: none; }
.bar-in {
  pointer-events: auto; position: relative; max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 4rem; padding: 0 .55rem 0 1.25rem; border-radius: 16px;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 70%, transparent), 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent), 0 16px 40px -18px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: max-width .45s var(--ease), height .3s var(--ease), padding .3s var(--ease);
}
.bar[data-scrolled] .bar-in { max-width: 48rem; height: 3.5rem; }
.bar .logo { display: flex; }
.bar .logo img { height: 2.1rem; width: auto; transition: height .3s var(--ease); }
.bar[data-scrolled] .logo img { height: 1.85rem; }
.bar nav { display: flex; align-items: center; gap: .5rem; }
.bar .lang { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; min-width: 2.75rem; padding: 0 .7rem; border-radius: 10px; text-decoration: none; font-size: var(--fs-label); font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .16s; }
.bar .lang:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.bar .btn { min-height: 2.75rem; padding: .25rem 1.1rem; border-radius: 11px; }
.progress { position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 2px; border-radius: 2px; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (max-width: 519px) {
  .bar-in { padding-left: 1rem; height: 3.6rem; }
  .bar .logo img, .bar[data-scrolled] .logo img { height: 1.7rem; }
}
@media (max-width: 349px) { .bar .btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .bar-in, .bar .logo img { transition: none; } }

/* ---------- Hero: night, with faint light fanning up behind the AI Brain beam ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(90% 55% at 50% 0%, var(--slate-deep), transparent 70%), var(--art-ink); }
/* Moving gradient: two soft layers of colour drift past each other behind the hero, red low and
   warm, slate and night blue higher up. Each layer is blurred once and only moved, so it stays
   cheap to animate. Still under reduced motion. */
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, var(--ink) 18%);
          mask-image: linear-gradient(to bottom, transparent 0, var(--ink) 18%); }
.hero-glow::before, .hero-glow::after { content: ""; position: absolute; inset: -25%; filter: blur(64px); will-change: transform; }
.hero-glow::before {
  background:
    radial-gradient(26% 24% at 28% 72%, color-mix(in srgb, var(--red) 55%, transparent), transparent 70%),
    radial-gradient(24% 22% at 74% 64%, color-mix(in srgb, var(--red) 38%, transparent), transparent 70%),
    radial-gradient(30% 22% at 52% 88%, color-mix(in srgb, #ff6a3d 34%, transparent), transparent 70%);
  animation: hero-drift-a 14s ease-in-out infinite alternate;
}
.hero-glow::after {
  background:
    radial-gradient(28% 26% at 18% 36%, color-mix(in srgb, var(--slate-mid) 80%, transparent), transparent 70%),
    radial-gradient(26% 24% at 84% 30%, color-mix(in srgb, #34508f 66%, transparent), transparent 70%),
    radial-gradient(22% 18% at 58% 48%, color-mix(in srgb, var(--silver) 9%, transparent), transparent 70%);
  mix-blend-mode: screen;
  animation: hero-drift-b 19s ease-in-out infinite alternate;
}
@keyframes hero-drift-a {
  0% { transform: translate3d(-6%, 3%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(6%, -4%, 0) rotate(9deg) scale(1.08); }
  100% { transform: translate3d(-2%, 5%, 0) rotate(-6deg) scale(.95); }
}
@keyframes hero-drift-b {
  0% { transform: translate3d(5%, -3%, 0) rotate(0deg) scale(1.04); }
  50% { transform: translate3d(-7%, 4%, 0) rotate(-11deg) scale(1.12); }
  100% { transform: translate3d(3%, 2%, 0) rotate(7deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero-glow::before, .hero-glow::after { animation: none; } }
.hero-top { text-align: center; padding-top: clamp(8.5rem, 16vw, 12rem); }
.eyebrow {
  display: inline-block; margin-bottom: 1.25rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: .01em;
  background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -0.03em; max-width: 22ch; margin: 0 auto; color: var(--white); text-wrap: balance; }
@media (min-width: 700px) { .hero h1 { max-width: none; } }
@media (max-width: 699px) { :lang(en) .hero h1 br { display: none; } }
.hero .sub { text-wrap: balance; font-size: var(--fs-lead); line-height: 1.5; color: var(--cloud); max-width: 36rem; margin: 1.4rem auto 0; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
.hero-art { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem); }

/* Beam: the company's tools flowing into its AI Brain. site.js draws one curve per tool to the
   hub and a short silver-to-red pulse travels each one, staggered. Reduced motion: still lines. */
.beam {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  max-width: 46rem; height: clamp(17rem, 36vw, 23rem); margin: 0 auto;
}
.beam-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.beam-lines path { fill: none; stroke-linecap: round; }
.beam-track { stroke: var(--white); stroke-opacity: .1; stroke-width: 1.5; }
.beam-flow {
  stroke-width: 2.7; stroke-dasharray: 45 155; filter: url(#beam-glow);
  animation: beam-flow 2.5s cubic-bezier(.45, .05, .55, .95) infinite;
}
.beam[data-paused] .beam-flow { animation-play-state: paused; }
@keyframes beam-flow { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.beam-lines .g0 { stop-color: var(--silver); stop-opacity: 0; }
.beam-lines .g1 { stop-color: var(--silver); stop-opacity: .8; }
.beam-lines .g2 { stop-color: var(--red); stop-opacity: 1; }
.beam-lines .g3 { stop-color: var(--red); stop-opacity: 0; }

.beam-col { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.beam-node {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; padding: .8rem; border-radius: 16px;
  background: color-mix(in srgb, var(--slate-deep) 88%, transparent); box-shadow: inset 0 0 0 1px var(--hair-light), 0 10px 24px -12px var(--art-ink);
}
.beam-node svg { width: 100%; height: 100%; }
.beam-node .mono { fill: var(--white); }
.beam-hub { position: relative; z-index: 1; display: grid; justify-items: center; }
.beam-hub-tile {
  position: relative; display: block; width: clamp(6.5rem, 20vw, 10rem); aspect-ratio: 1; padding: 5px; border-radius: 28px;
  background: var(--slate-deep); box-shadow: inset 0 0 0 1px var(--hair-light), 0 0 0 8px var(--glow-red-soft), 0 20px 56px -16px var(--glow-red);
  transition: background-color .6s, box-shadow .6s;
}
/* With the 3D brain running (src/visuals.jsx) the tile frame and photo step aside: the brain floats
   where the beams meet, inside its HUD rings, on a soft red glow */
.beam-hub-tile[data-live] { background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 22%, transparent), transparent); box-shadow: none; }
.beam-hub-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; transition: opacity .6s; }
.beam-hub-tile[data-live] img { opacity: 0; }
.beam-hub-tile .visual-canvas { inset: -14%; }
/* The HUD rings reach a little past the tile, so the name steps down to clear them */
.beam-hub:has([data-live]) .beam-hub-name { margin-top: clamp(1rem, 2.4vw, 1.6rem); }
/* The name hangs under the tile so the tile stays on the middle row, where the beams meet */
.beam-hub-name { position: absolute; top: 100%; margin-top: 1.25rem; z-index: 1; font-size: var(--fs-label); font-weight: 500; color: var(--white); white-space: nowrap; }
.hero-foot { position: relative; border-top: 1px solid var(--hair-light-soft); color: var(--cloud); background: color-mix(in srgb, var(--art-ink) 70%, transparent); }
.hero-foot .wrap { padding-top: 1.4rem; padding-bottom: 1.4rem; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem 2.5rem; flex-wrap: wrap; font-size: var(--fs-label); }
.hero-foot .line { color: var(--white); max-width: 46rem; font-size: var(--fs-body); }
.hero-foot strong { color: var(--white); font-weight: 500; }
@media (max-width: 680px) {
  .hero .ctas .btn { width: 100%; }
  .beam-node { width: 3rem; height: 3rem; padding: .65rem; border-radius: 14px; }
}

/* ---------- Problems: each fix beside a live diagram of it at work ----------
   src/fixes.jsx draws the diagrams. Cards carry corner brackets that open out on hover. */
.problems { background: var(--mist); overflow: hidden; }
.visual-canvas { position: absolute; inset: 0; }
.fixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 2.6vw, 2.25rem); max-width: 68rem; margin: clamp(2.5rem, 5vw, 3.75rem) auto 0; }
.fix {
  --c: var(--line-strong); --o: -7px;
  position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 18px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--silver-recessed), var(--shadow-soft); transition: box-shadow .35s var(--ease);
}
.fix::before {
  content: ""; position: absolute; inset: var(--o); pointer-events: none; --b: 1.5px; --l: 14px;
  background:
    linear-gradient(var(--c) 0 0) left top / var(--l) var(--b), linear-gradient(var(--c) 0 0) left top / var(--b) var(--l),
    linear-gradient(var(--c) 0 0) right top / var(--l) var(--b), linear-gradient(var(--c) 0 0) right top / var(--b) var(--l),
    linear-gradient(var(--c) 0 0) left bottom / var(--l) var(--b), linear-gradient(var(--c) 0 0) left bottom / var(--b) var(--l),
    linear-gradient(var(--c) 0 0) right bottom / var(--l) var(--b), linear-gradient(var(--c) 0 0) right bottom / var(--b) var(--l);
  background-repeat: no-repeat; transition: inset .4s var(--ease);
}
.fix:hover { --c: var(--red); --o: -11px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 24px 48px -24px color-mix(in srgb, var(--ink) 30%, transparent); }
.fix-art {
  position: relative; margin: .625rem .625rem 0; border-radius: 12px; aspect-ratio: 440 / 280; overflow: hidden;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 4.5%, transparent) 0 1px, transparent 1px 9px), var(--mist);
}
.fx { display: block; width: 100%; height: 100%; }
.fix-copy { display: grid; gap: .6rem; align-content: start; padding: 1.25rem 1.5rem 1.5rem; }
.fix-problem { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-label); color: var(--steel); }
.fix-problem::before { content: ""; flex: none; width: .95rem; height: .95rem; background: var(--line-strong); -webkit-mask: var(--cross) center / contain no-repeat; mask: var(--cross) center / contain no-repeat; }
.fix h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.fix-agents { display: inline-flex; align-items: center; gap: .5rem; margin-top: .2rem; font-size: .8125rem; color: var(--slate); }
.fix-agents::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--glow-red-soft); }
/* Wide cards: the diagram and its fix side by side, the last one mirrored */
.fix-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: none; align-items: center; }
.fix-wide .fix-art { aspect-ratio: 560 / 220; margin: .625rem 0 .625rem .625rem; }
.fix-wide .fix-art[data-diagram="sync"] { aspect-ratio: 560 / 222; }
.fix-wide .fix-copy { padding: 1.5rem clamp(1.5rem, 3vw, 2.75rem); }
.fix-wide h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; }
.fix-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.fix-flip .fix-art { order: 2; margin: .625rem .625rem .625rem 0; }
@media (max-width: 860px) {
  .fixes { grid-template-columns: minmax(0, 1fr); }
  .fix-wide, .fix-flip { grid-template-columns: minmax(0, 1fr); }
  .fix-wide .fix-art, .fix-flip .fix-art { order: 0; margin: .625rem .625rem 0; }
  .fix-wide .fix-copy { padding: 1.25rem 1.5rem 1.5rem; }
}
@media (max-width: 640px) {
  .fix-wide .fix-art[data-diagram="leads"] { aspect-ratio: 360 / 220; }
  .fix-wide .fix-art[data-diagram="sync"] { aspect-ratio: 330 / 352; }
}

/* Diagram parts */
.fx-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.fx-faint { fill: var(--slate); }
.fx-ink { fill: var(--ink); }
.fx-strong { font-weight: 500; }
.fx-on-dark { fill: var(--white); }
.fx-node { fill: var(--white); stroke: var(--line); transition: stroke .35s; }
.fx-node-on { stroke: var(--red); }
.fx-shadow { filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--ink) 9%, transparent)); }
.fx-sheet { fill: var(--white); stroke: var(--line); }
.fx-hub-ring { fill: none; stroke: color-mix(in srgb, var(--red) 32%, transparent); }
.fx-hub-label { fill: var(--ink); font-weight: 600; }
.fx-orb { fill: var(--red); }
.fx-orb-halo { fill: color-mix(in srgb, var(--red) 15%, transparent); }
.fx-flow { fill: none; stroke: var(--line); stroke-width: 1.4; transition: stroke .35s; }
.fx-flow-on { stroke: var(--red); }
.fx-flow-dash { stroke-dasharray: 3 4; animation: fx-dash 1.2s linear infinite; }
.fx-dash { stroke: var(--line); stroke-dasharray: 2 3; }
.fx-pkt { fill: var(--red); }
.fx-glyph { fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fx-avatar { fill: var(--silver); stroke: var(--white); stroke-width: 2; transition: fill .35s; }
.fx-initials { fill: var(--steel); font-weight: 600; }
.fx-presence { fill: var(--line-strong); stroke: var(--white); stroke-width: 1.5; transition: fill .35s; }
.fx-person.is-on .fx-avatar { fill: color-mix(in srgb, var(--red) 12%, var(--white)); }
.fx-person.is-on .fx-presence { fill: var(--red); }
.fx-tick-bg { fill: var(--red); }
.fx-tick { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-bubble-q { fill: var(--ink); }
.fx-typing { fill: var(--line-strong); transform-box: fill-box; transform-origin: center; }
.fx-typing-0, .fx-typing-1, .fx-typing-2 { animation: fx-typing 1s ease-in-out infinite; }
.fx-typing-1 { animation-delay: .15s; }
.fx-typing-2 { animation-delay: .3s; }
.fx-fold { fill: none; stroke: var(--line); }
.fx-doc-lines { fill: none; stroke: var(--silver-recessed); stroke-width: 2; stroke-linecap: round; transition: stroke .35s; }
.fx-doc.is-on .fx-node { stroke: var(--red); }
.fx-doc.is-on .fx-doc-lines { stroke: color-mix(in srgb, var(--red) 45%, var(--white)); }
.fx-bar { fill: var(--silver-recessed); transform-box: fill-box; transform-origin: 50% 100%; }
.fx-bar-hot { fill: var(--red); }
.fx-grow { animation: fx-grow .9s var(--ease) both; }
.fx-rule { stroke: var(--silver); }
.fx-pill { fill: var(--mist); stroke: var(--silver); }
.fx-in { animation: fx-in .6s var(--ease) both; }
.fx-breathe { transform-box: fill-box; transform-origin: center; animation: fx-breathe 2.4s ease-in-out infinite; }
@keyframes fx-dash { to { stroke-dashoffset: -14; } }
@keyframes fx-typing { 50% { fill: var(--slate); transform: translateY(-2px); } }
@keyframes fx-grow { from { transform: scaleY(0); } }
@keyframes fx-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes fx-breathe { 50% { opacity: .4; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .fix::before { transition: none; }
  .fx-flow-dash, .fx-typing-0, .fx-typing-1, .fx-typing-2, .fx-grow, .fx-in, .fx-breathe { animation: none; }
}

/* ---------- Method: a road that draws itself as you scroll ----------
   site.js sets --road (0..1, how far the red line has drawn, down to the goal tick),
   --wave-y (slow parallax layer) and --drift on each card (cards lag the page slightly).
   Without script, or with reduced motion, the road is fully drawn and every step is lit. */
.method { background: var(--white); overflow: hidden; isolation: isolate; }
.method { padding-bottom: calc(var(--band) + clamp(5rem, 12vw, 10rem)); }
.method::before {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: clamp(9rem, 20vw, 16rem); pointer-events: none;
  background: url("wave.svg") center / 100% 100% no-repeat; opacity: .6;
  transform: translate3d(0, var(--wave-y, 0px), 0); will-change: transform;
}
.road { --road: 1; --finish-h: clamp(3rem, 6vw, 4.5rem); position: relative; max-width: 62rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.road-line { position: relative; }
/* The svg runs on through the finish spacer to the goal node, so the whole road is one line */
.road-path { position: absolute; top: 0; left: 50%; width: 7rem; height: calc(100% + var(--finish-h)); transform: translateX(-50%); overflow: visible; pointer-events: none; }
.road-path path { fill: none; stroke-linecap: round; }
.road:not([data-live]) .road-path path { vector-effect: non-scaling-stroke; }
.road-track { stroke: var(--silver-recessed); stroke-width: 2; }
.road-progress { stroke: url(#road-gradient); stroke-width: 3; }
.road[data-live] .road-progress { stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - 1000 * var(--road)); }
.road-path .s1 { stop-color: var(--line-strong); }
.road-path .s2 { stop-color: var(--red); }
.road-path .s3 { stop-color: var(--red-text); }

.road-steps { position: relative; display: grid; grid-auto-rows: 1fr; }
.road-step { display: grid; grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr); align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem) 0; }
.road-step .road-node { grid-column: 2; grid-row: 1; justify-self: center; }
.road-step .road-card { grid-row: 1; grid-column: 1; }
.road-step:nth-child(even) .road-card { grid-column: 3; }

.road-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--white); color: var(--steel); font-size: var(--fs-label); font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px var(--silver-recessed);
  transition: color .35s, box-shadow .35s var(--ease), background-color .35s;
}
.road-card {
  padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: 18px; background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--silver);
  transform: translate3d(0, var(--drift, 0px), 0); will-change: transform;
  transition: background-color .4s, box-shadow .4s var(--ease);
}
.road-card h3 { font-size: var(--fs-title); line-height: 1.1; letter-spacing: -0.02em; color: var(--slate); transition: color .4s; }
.road-card p { color: var(--steel); margin-top: .75rem; }
.road-card .out { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--silver-recessed); color: var(--ink); }
.road-card .out b { display: block; font-weight: 600; font-size: var(--fs-label); color: var(--red-text); margin-bottom: .2rem; }

/* Lit once the line reaches the step */
.road:not([data-live]) .road-node, .road-step.is-reached .road-node, .road-goal.is-reached .road-node { background: var(--red-fill); color: var(--white); box-shadow: 0 0 0 5px var(--glow-red-soft); }
.road:not([data-live]) .road-card, .road-step.is-reached .road-card { background: var(--white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 35%, var(--silver)), 0 24px 50px -30px var(--glow-red); }
.road:not([data-live]) .road-card h3, .road-step.is-reached .road-card h3 { color: var(--ink); }

.road-finish { height: var(--finish-h); }
.road-goal { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.road-node-goal::before { content: ""; width: 1.15rem; height: 1.15rem; background: currentColor; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.closer { font-size: var(--fs-statement); line-height: 1.12; letter-spacing: -0.025em; max-width: 26ch; text-wrap: balance; }

/* site.js marks the road data-live; until then (no script, reduced motion) it is fully drawn and lit */
.road[data-live] { --road: 0; }

@media (max-width: 760px) {
  .road-path { left: 0; width: 2.75rem; transform: none; }
  .road-step { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; padding: .9rem 0; }
  .road-step .road-node { grid-column: 1; }
  .road-step .road-card, .road-step:nth-child(even) .road-card { grid-column: 2; }
  .road-goal { justify-items: start; text-align: left; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .road-goal .closer { padding-top: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .beam-flow { animation: none; stroke-dasharray: none; stroke-opacity: .6; }
  .road-card, .method::before { transform: none !important; transition: none; }
  .road-node { transition: none; }
}

/* ---------- Services: glowing night cards ---------- */
.services { background: var(--art-ink); overflow: hidden; isolation: isolate; }
.services::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 32%; width: min(70rem, 140%); height: 34rem; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-red-soft), transparent), radial-gradient(40% 60% at 50% 50%, color-mix(in srgb, var(--slate-mid) 60%, transparent), transparent);
  filter: blur(10px);
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.75rem, 5vw, 4rem); }
/* Service cards: pearl panels on the night band, each led by an isometric glass illustration
   of the offering (iso.py writes the SVG). The plates and steps drift apart a little on hover. */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; border-radius: 28px; color: var(--ink);
  background:
    radial-gradient(60% 42% at 86% 10%, color-mix(in srgb, #ffd8d0 85%, transparent), transparent 72%),
    radial-gradient(55% 42% at 12% 26%, color-mix(in srgb, #e2e7ff 90%, transparent), transparent 72%),
    linear-gradient(180deg, #fcfcfd 0%, #f1eff3 100%);
  box-shadow: inset 0 1px 0 var(--white), 0 40px 80px -42px #000;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card-hot {
  background:
    radial-gradient(62% 44% at 84% 12%, color-mix(in srgb, #ffc9bf 90%, transparent), transparent 72%),
    radial-gradient(52% 40% at 14% 30%, color-mix(in srgb, #e8e2ff 90%, transparent), transparent 72%),
    linear-gradient(180deg, #fdfcfc 0%, #f4eeee 100%);
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--white), 0 48px 90px -40px color-mix(in srgb, var(--red) 45%, #000); }
.card-art { aspect-ratio: 4 / 3; margin: clamp(.5rem, 2vw, 1.25rem) clamp(.5rem, 2vw, 1.25rem) 0; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 0 clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.services .card .chip { align-self: flex-start; background: color-mix(in srgb, var(--white) 75%, transparent); color: var(--steel); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { font-size: var(--fs-service); line-height: 1.04; letter-spacing: -0.025em; }
.card .alt-name { display: block; font-size: .5em; letter-spacing: 0; color: var(--steel); margin-top: .4rem; }
.card .desc { color: var(--steel); }
.card-steps { display: grid; gap: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.card-steps li { display: flex; align-items: baseline; gap: .8rem; }
.card-steps b, .process b { font: 500 .75rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--red-text); }
.process { display: flex; flex-wrap: wrap; align-items: center; row-gap: .5rem; font-size: var(--fs-label); font-weight: 500; color: var(--ink); padding-top: 1.1rem; border-top: 1px solid var(--line); }
.process li { display: inline-flex; align-items: baseline; gap: .4rem; }
.process li + li::before { content: ""; align-self: center; width: .85em; height: .85em; margin: 0 .5rem 0 .2rem; background: var(--red); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.card .btn { align-self: flex-start; margin-top: auto; }
.services .card .btn-line { color: var(--ink); border-color: var(--line-strong); background: color-mix(in srgb, var(--white) 60%, transparent); }
.services .card .btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.services .card :focus-visible { outline-color: var(--ink); }
.services .card ::selection { background: var(--ink); color: var(--white); }
.services .note { color: var(--cloud); margin: 1.5rem auto 0; text-align: center; max-width: 50rem; }

.iso { display: block; width: 100%; height: 100%; overflow: visible; }
.iso polygon { stroke: color-mix(in srgb, var(--white) 88%, transparent); stroke-width: 1; stroke-linejoin: round; }
.iso-ring { fill: none; stroke: var(--red); stroke-opacity: .45; stroke-width: 1.2; }
.iso-ring-soft { stroke-opacity: .25; stroke-dasharray: 3 4; }
.iso-route { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 5; opacity: .85; }
.iso-route-live { animation: iso-route 1.2s linear infinite; }
.iso-dot { fill: var(--white); stroke: var(--red); stroke-width: 1.5; }
.iso-tag path { fill: none; stroke: var(--line-strong); stroke-dasharray: 2 3; }
.iso-tag rect { fill: color-mix(in srgb, var(--white) 88%, transparent); stroke: var(--line); }
.iso-tag text { font: 500 10px ui-monospace, "SF Mono", Menlo, monospace; fill: var(--ink); text-anchor: middle; }
.iso-num { font-family: "Archivo Variable", system-ui, sans-serif; font-size: 15px; font-weight: 600; fill: color-mix(in srgb, var(--ink) 60%, transparent); text-anchor: middle; dominant-baseline: central; }
.iso-num-last { font-size: 13px; fill: var(--red-text); }
.iso-float { animation: iso-float 7s ease-in-out infinite; }
.iso-f2 { animation-delay: -2.3s; }
.iso-f3 { animation-delay: -4.6s; }
.iso-f1, .iso-f2, .iso-f3, .iso-step { transition: translate .7s var(--ease); }
.card:hover .iso-f1 { translate: 0 8px; }
.card:hover .iso-f3 { translate: 0 -10px; }
.card:hover .iso-s3 { translate: 0 -3px; }
.card:hover .iso-s4 { translate: 0 -6px; }
.card:hover .iso-s5 { translate: 0 -10px; }
@keyframes iso-float { 50% { transform: translateY(-5px); } }
@keyframes iso-route { to { stroke-dashoffset: -18; } }

@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .card .btn { align-self: stretch; } }
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transition: none; transform: none; }
  .iso-float, .iso-route-live { animation: none; }
  .iso-f1, .iso-f2, .iso-f3, .iso-step { transition: none; translate: none !important; }
}

/* ---------- Educator ---------- */
.educator { background: var(--mist); }
.educator .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
/* Speaker portrait (site.js): wipes up into view behind a red line and settles from a slight zoom,
   drifts inside its frame as the page scrolls, tilts toward a mouse with a soft glare, and a red
   light runs around its edge. Shown plainly under reduced motion and without script. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.educator figure { position: relative; isolation: isolate; margin: 0; aspect-ratio: 4 / 4.4; perspective: 1100px; }
.educator figure::before, .educator figure::after {
  content: ""; position: absolute; z-index: -1; inset: -2px; border-radius: 26px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0turn .52turn, color-mix(in srgb, var(--red) 55%, transparent) .7turn, var(--red) .78turn, transparent .9turn 1turn);
  animation: portrait-spin 7s linear infinite; opacity: 0; transition: opacity 1s var(--ease) .9s;
}
.educator figure::after { inset: 6%; filter: blur(34px); }
.educator figure[data-in]::before { opacity: 1; }
.educator figure[data-in]::after { opacity: .55; }
@keyframes portrait-spin { to { --spin: 360deg; } }
.portrait-frame {
  position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 1px var(--silver-recessed), 0 40px 80px -40px color-mix(in srgb, var(--ink) 55%, transparent);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), clip-path 1.2s cubic-bezier(.7, 0, .2, 1);
}
.educator figure img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 28%; scale: 1.1; translate: 0 var(--py, 0%); transition: scale 1.8s var(--ease); }
.portrait-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), color-mix(in srgb, var(--white) 22%, transparent), transparent 46%); mix-blend-mode: soft-light; }
.educator figure:hover .portrait-glare { opacity: 1; }
.educator figure:hover .portrait-frame { transition: transform .2s ease-out; }
/* Entrance, only once script has said it is still to come */
.portrait-frame::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2px; background: var(--red); box-shadow: 0 0 18px 2px var(--glow-red); opacity: 0; }
.js .educator figure[data-wait] .portrait-frame { clip-path: inset(100% 0 0 0 round 24px); }
.js .educator figure[data-wait] img { scale: 1.32; }
.js .educator figure[data-wait] .portrait-frame::after { top: 100%; }
.educator figure[data-in] .portrait-frame { clip-path: inset(0 0 0 0 round 24px); }
.educator figure[data-in] .portrait-frame::after { animation: portrait-line 1.2s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes portrait-line { 0% { top: 100%; opacity: 1; } 88% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .educator figure::before, .educator figure::after { animation: none; transition: none; }
  .portrait-frame, .educator figure img { transition: none; transform: none; translate: none; }
  .educator figure[data-in] .portrait-frame::after { animation: none; }
}
.educator .name { font-size: var(--fs-display); line-height: .96; letter-spacing: -0.035em; }
.educator .role { color: var(--steel); margin-top: .75rem; }
.educator blockquote { margin: clamp(2rem, 4vw, 3rem) 0 0; font-size: var(--fs-title); line-height: 1.3; letter-spacing: -0.02em; }
.educator blockquote::before { content: "“"; color: var(--red); display: block; font-size: var(--fs-display); line-height: .5; margin-bottom: .4rem; height: .45em; }
.educator .bio { color: var(--steel); margin-top: 2rem; max-width: 36rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .educator .wrap { grid-template-columns: 1fr; } .educator figure { aspect-ratio: 4 / 3.6; } }

/* ---------- Next step ---------- */

.card-form { position: relative; background: var(--white); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: inset 0 0 0 1px var(--silver), 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 40px 80px -36px color-mix(in srgb, var(--ink) 40%, transparent); }
.card-form h3 { font-size: var(--fs-title); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
label, legend { font-size: var(--fs-label); font-weight: 500; }
label .opt { color: var(--steel); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; min-height: 3rem; font-family: inherit; font-size: var(--fs-body); line-height: 1.4; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; background: var(--mist);
  caret-color: var(--red-text); transition: border-color .16s, background-color .16s, box-shadow .16s;
}
input:hover, textarea:hover { border-color: var(--line-strong); }
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, textarea:focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
[aria-invalid="true"] { border: 2px solid var(--red-text) !important; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.choices { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: .45rem; }
.choice { display: flex; align-items: center; gap: .65rem; min-height: 3rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: var(--fs-body); font-weight: 500; transition: border-color .16s, box-shadow .16s, background-color .16s; }
.choice:hover { border-color: var(--line-strong); }
.choice input { accent-color: var(--red-fill); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--red-fill); background: color-mix(in srgb, var(--red) 5%, var(--white)); box-shadow: inset 0 0 0 1px var(--red-fill); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin: .25rem 0 1.25rem; font-weight: 400; line-height: 1.5; color: var(--steel); cursor: pointer; }
.consent input { accent-color: var(--red-fill); width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; flex: none; }
.consent:has(input[aria-invalid="true"]) { color: var(--red-text); }
.consent:has(input[aria-invalid="true"]) input { outline: 2px solid var(--red-text); outline-offset: 2px; }
.card-form .btn { width: 100%; margin-top: .5rem; }
.card-form[aria-busy="true"] .btn { opacity: .6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; font-size: var(--fs-label); line-height: 1.5; color: var(--steel); }
.form-status.err { color: var(--red-text); }
.form-done { line-height: 1.5; padding: .5rem 0; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Finale: the closing call to action and footer in one dark panel ----------
   With a fine pointer and smooth scrolling, scroll.js pins the panel while the page above lifts
   away (data-curtain), then lets it scroll on. --reveal runs 0 → 1 as it is uncovered. Without
   script, on touch, or under reduced motion it is a plain dark band in the flow. */
.finale { position: relative; background: var(--art-ink); color: var(--cloud); overflow: clip; --reveal: 1; }
.finale::before { content: ""; position: absolute; inset: 0 0 auto; height: 7rem; z-index: 3; pointer-events: none; background: linear-gradient(color-mix(in srgb, #000 42%, transparent), transparent); }
.finale-anchor { position: absolute; top: 6.5rem; left: 0; width: 1px; height: 1px; }
.finale-panel { position: relative; display: flex; flex-direction: column; isolation: isolate; }
.finale[data-curtain] .finale-panel { min-height: 100vh; will-change: transform; }

.finale-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.finale-aurora {
  position: absolute; inset: -25% -15% 35%; filter: blur(48px);
  background:
    radial-gradient(38% 46% at 28% 42%, color-mix(in srgb, var(--red) 30%, transparent), transparent 72%),
    radial-gradient(32% 40% at 78% 30%, color-mix(in srgb, var(--red) 14%, transparent), transparent 72%);
  animation: finale-aurora 22s ease-in-out infinite alternate;
}
@keyframes finale-aurora { to { transform: translate3d(5%, 7%, 0) scale(1.12); } }
.finale-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hair-light-soft) 1px, transparent 1px), linear-gradient(90deg, var(--hair-light-soft) 1px, transparent 1px);
  background-size: 4rem 4rem; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
}
.finale-word {
  position: absolute; left: 50%; bottom: -.16em; margin: 0;
  font-size: clamp(8rem, 31vw, 30rem); font-weight: 800; line-height: .8; letter-spacing: -0.06em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--white) 14%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--white) 10%, transparent), transparent 75%);
  -webkit-background-clip: text; background-clip: text;
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateY(calc((1 - var(--reveal)) * 16vh)) scale(calc(.84 + var(--reveal) * .16));
}

/* Diagonal band of what FSBM Academy does */
.finale-marquee {
  position: relative; z-index: 1; margin: clamp(5.5rem, 8vw, 6.5rem) -4% 0; rotate: -2deg; overflow: hidden;
  padding-block: .85rem; background: color-mix(in srgb, var(--white) 4%, transparent);
  border-block: 1px solid var(--hair-light-soft); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.finale-track { display: flex; width: max-content; animation: finale-marquee 60s linear infinite; }
.finale-group { display: flex; align-items: center; flex: none; }
.finale-group span { padding-inline: 1.5rem; white-space: nowrap; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 500; letter-spacing: -0.01em; color: var(--silver); }
.finale-group i { flex: none; width: .45rem; height: .45rem; rotate: 45deg; background: var(--red); }
@keyframes finale-marquee { to { transform: translateX(-50%); } }

/* Heading and form */
.finale-main {
  position: relative; z-index: 1; flex: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.finale-copy { transform: translateY(calc((1 - var(--reveal)) * 5rem)); }
.finale-copy .chip { margin-bottom: 1.25rem; }
.finale-copy .h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 14ch; }
:lang(zh) .finale-copy .h2 { max-width: 12em; }
.finale-copy .lead { max-width: 30rem; }
.finale-reach { font-style: normal; margin-top: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.finale-addr { flex-basis: 100%; max-width: 26rem; margin-top: .5rem; font-size: var(--fs-label); line-height: 1.5; color: var(--cloud); }

.pill {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 3rem; padding: .4rem 1.2rem .4rem .45rem; border-radius: 999px;
  color: var(--white); text-decoration: none; font-weight: 500; font-size: var(--fs-label);
  background: color-mix(in srgb, var(--white) 6%, transparent); box-shadow: inset 0 0 0 1px var(--hair-light);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, box-shadow .2s, translate .45s var(--ease);
}
.pill-ico { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: color-mix(in srgb, var(--white) 9%, transparent); transition: background-color .2s; }
.pill svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { background: color-mix(in srgb, var(--white) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 24%, transparent); }
.pill:hover .pill-ico { background: var(--red-fill); }
.pill[data-pulling] { transition: background-color .2s, box-shadow .2s, translate .18s ease-out; }

/* The form keeps its light card: it is the one thing to act on here */
.finale .card-form { box-shadow: 0 1px 2px color-mix(in srgb, #000 20%, transparent), 0 40px 90px -30px color-mix(in srgb, #000 70%, transparent); color: var(--ink); }
.finale .card-form h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.finale .card-form .field { margin-bottom: .9rem; }
.finale .card-form fieldset { margin-bottom: .9rem; }
.finale .card-form .choices { grid-template-columns: 1fr 1fr; }
.finale .card-form textarea { min-height: 4.75rem; }
.finale .card-form .consent { margin-bottom: 1rem; }
.finale .card-form ::selection { background: var(--ink); color: var(--white); }
.finale .card-form :focus-visible { outline-color: var(--ink); }

/* Bottom bar */
.finale-bar { position: relative; z-index: 1; border-top: 1px solid var(--hair-light-soft); font-size: var(--fs-label); background: color-mix(in srgb, var(--art-ink) 55%, transparent); }
.finale-bar .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; align-items: center; gap: 1.25rem 2.5rem; padding-block: 1.5rem; }
.finale-brand { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.finale-brand .logo { height: 2rem; width: auto; flex: none; }
.finale-brand p { max-width: 24rem; line-height: 1.45; }
.finale-social { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.finale-social a, .finale .legal { color: var(--cloud); }
.finale-social a { text-decoration: none; transition: color .16s; }
.finale-social a:hover { color: var(--white); }
.finale .legal { grid-column: 1 / 3; }
.pill-top { justify-self: end; grid-row: 1 / 3; grid-column: 3; }

@media (max-width: 1100px) {
  .finale-bar .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .finale-social { grid-column: 1; }
  .finale .legal { grid-column: 1; }
  .pill-top { grid-row: 1 / 4; grid-column: 2; }
}
@media (max-width: 900px) {
  .finale-main { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .finale-marquee { margin-top: 5rem; }
  .finale-brand { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .finale-bar .wrap { grid-template-columns: 1fr; }
  .finale-social, .finale .legal, .pill-top { grid-column: 1; grid-row: auto; }
  .pill-top { justify-self: start; }
  .finale .card-form .choices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .finale-aurora, .finale-track { animation: none; }
}

/* ---------- Scroll reveal (off without script and under reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(1rem); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in, .js .reveal:focus-within { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .js .reveal { opacity: 1; transform: none; } .bar { position: static; } .hero-glow { display: none; } }

/* ---------- Chinese page: Noto Sans SC leads, more air, no ch widths on headings ---------- */
:lang(zh) body, :lang(zh) .btn, :lang(zh) input, :lang(zh) textarea { font-family: "Noto Sans SC Variable", "Archivo Variable", system-ui, sans-serif; }
:lang(zh) body { line-height: 1.85; letter-spacing: .01em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: .01em; line-height: 1.22; max-width: none; word-break: keep-all; }
:lang(zh) .hero h1 { font-size: var(--fs-hero-zh); line-height: 1.16; }
:lang(zh) .lead, :lang(zh) .hero .sub { line-height: 1.75; text-wrap: balance; }
:lang(zh) .educator blockquote, :lang(zh) .closer { line-height: 1.55; }
:lang(zh) .closer { max-width: none; }
:lang(zh) .card .alt-name { display: block; font-size: var(--fs-body); font-weight: 500; color: var(--cloud); margin-top: .5rem; letter-spacing: .04em; }
:lang(zh) .educator .name, :lang(zh) [lang="en"] { letter-spacing: -0.02em; }

/* ---------- Footer privacy link, and the privacy policy page (/privacy) ---------- */
.finale .legal a { color: var(--cloud); margin-left: .75rem; transition: color .16s; }
.finale .legal a:hover { color: var(--white); }

.policy { padding: clamp(8rem, 14vw, 10rem) 0 var(--band); }
.policy .wrap { max-width: calc(var(--measure) + 2 * var(--gutter) + 8rem); }
.policy h1 { font-size: var(--fs-headline); line-height: 1.04; letter-spacing: -0.03em; }
.policy section { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--line); }
.policy h2 { font-size: var(--fs-title); line-height: 1.15; letter-spacing: -0.02em; }
.policy h3 { margin-top: 2rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.policy h2 + h3 { margin-top: 1.5rem; }
.policy p, .policy li { color: var(--steel); max-width: 44rem; }
.policy p { margin-top: .9rem; }
.policy h2 + p { margin-top: 1.25rem; }
.policy ol { margin-top: .9rem; padding-left: 1.4rem; list-style: decimal; }
.policy li + li { margin-top: .5rem; }
.policy li::marker { color: var(--ink); font-weight: 600; }
.policy-foot { border-top: 1px solid var(--line); font-size: var(--fs-label); color: var(--steel); }
.policy-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; }
