/* Tokens, resets and scroll effects */
/* Manrope variable font, distributed locally under the SIL Open Font License. */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* --- colour roles. Override these six and the page is rebranded. -------- */
  --sc-canvas:      #08090b;   /* the page ground. Drift interpolates this.   */
  --sc-surface:     #101217;   /* anything raised off the ground             */
  --sc-ink:         #f4f2ef;   /* primary text                               */
  --sc-ink-soft:    #9a9ba1;   /* secondary text. Tinted, never flat gray.   */
  --sc-accent:      #d8ff3e;   /* ONE accent. It owns a region, not confetti. */
  --sc-accent-ink:  #08090b;   /* text that sits on the accent               */

  --sc-hairline:    color-mix(in oklab, var(--sc-ink) 12%, transparent);
  --sc-hairline-strong: color-mix(in oklab, var(--sc-ink) 22%, transparent);

  /* --- type. Two families max. Display carries voice, text carries prose. - */
  --sc-font-display: "Manrope", sans-serif;
  --sc-font-text:    "Manrope", sans-serif;
  --sc-font-mono:    "Manrope", sans-serif;

  /* Fluid ramp. Tracking tightens as size grows because a face set at 6rem
     with 0 tracking reads loose; this is optical correction, not decoration. */
  --sc-t-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --sc-t-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --sc-t-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --sc-t-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --sc-t-xl:   clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --sc-t-2xl:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --sc-t-3xl:  clamp(2.8rem, 1.9rem + 4.2vw, 5rem);
  --sc-t-4xl:  clamp(3.4rem, 1.9rem + 6.6vw, 7.5rem);

  --sc-track-tight:  -0.035em;
  --sc-track-snug:   -0.02em;
  --sc-track-normal: -0.005em;
  --sc-track-wide:    0.08em;

  --sc-leading-none: 0.94;
  --sc-leading-tight: 1.06;
  --sc-leading-body: 1.62;

  --sc-measure: 62ch;

  /* --- space. 4px base: the useful middle steps an 8-only scale misses. --- */
  --sc-1: 0.25rem;  --sc-2: 0.5rem;   --sc-3: 0.75rem;  --sc-4: 1rem;
  --sc-5: 1.5rem;   --sc-6: 2rem;     --sc-7: 3rem;     --sc-8: 4rem;
  --sc-9: 6rem;     --sc-10: 8rem;    --sc-11: 12rem;

  /* Section rhythm is fluid so a phone doesn't inherit desktop air. */
  --sc-section: clamp(4.5rem, 9vw, 11rem);
  --sc-gutter:  clamp(1.25rem, 5vw, 5.5rem);
  --sc-maxw:    82rem;

  /* --- radius. Pick one scale for the page and hold it. ------------------- */
  --sc-r-sm: 6px;  --sc-r-md: 12px;  --sc-r-lg: 20px;  --sc-r-pill: 999px;

  /* --- elevation. Every shadow has an offset AND a soft blur, and is tinted
         to the canvas hue. A zero-offset coloured halo is decoration, not
         depth, so there isn't one here. ---------------------------------- */
  --sc-shadow-color: 220 40% 2%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.28),
           0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.20);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.24),
           0 8px 18px -4px hsl(var(--sc-shadow-color) / 0.30);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow-color) / 0.22),
           0 18px 40px -8px hsl(var(--sc-shadow-color) / 0.38),
           0 48px 90px -24px hsl(var(--sc-shadow-color) / 0.30);

  /* Edge light: a 1px top highlight sells a raised surface better than any
     amount of blur, because real raised things catch light on their lip. */
  --sc-edge: inset 0 1px 0 color-mix(in oklab, var(--sc-ink) 10%, transparent);

  /* --- motion. Built-in CSS easings are too weak for UI. ------------------ */
  --sc-ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --sc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sc-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --sc-d-fast: 160ms;  --sc-d-base: 240ms;  --sc-d-slow: 420ms;

  --sc-z-stage: 1; --sc-z-copy: 20; --sc-z-chrome: 60;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base);
  line-height: var(--sc-leading-body);
  letter-spacing: var(--sc-track-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------- the browser surfaces --
   The parts you did not draw still carry the design. Selection, caret, focus
   ring, scrollbar and tabular numerals all ship with defaults that belong to no
   design system. Theming them is the cheapest signal that a page was built
   rather than assembled, and it is the step that gets skipped most reliably. */
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:root { caret-color: var(--sc-accent); accent-color: var(--sc-accent); }
:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 3px;
  border-radius: var(--sc-r-sm);
}
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: color-mix(in oklab, var(--sc-ink) 26%, transparent) transparent; scrollbar-width: thin; }
}
:where(table, .sc-nums, [data-sc-count]) { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- typography -- */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 500;
  line-height: var(--sc-leading-none);
  letter-spacing: var(--sc-track-tight);
  text-wrap: balance;
  margin: 0;
}
.sc-display--xl { font-size: var(--sc-t-4xl); }
.sc-display--lg { font-size: var(--sc-t-3xl); }
.sc-display--md { font-size: var(--sc-t-2xl); letter-spacing: var(--sc-track-snug); }
.sc-lede {
  font-size: var(--sc-t-lg);
  line-height: 1.44;
  letter-spacing: var(--sc-track-snug);
  color: var(--sc-ink);
  max-width: 46ch;
  text-wrap: pretty;
  margin: 0;
}
.sc-body { max-width: var(--sc-measure); color: var(--sc-ink-soft); text-wrap: pretty; margin: 0; }
.sc-label {
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide);
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}

/* ---------------------------------------------------------------- layout -- */
.sc-wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.sc-section { padding-block: var(--sc-section); }
/* More space above a heading than below it: the gap belongs to the boundary,
   not to the pair. */
.sc-stack > * + * { margin-top: var(--sc-4); }
.sc-stack > :is(h1,h2,h3) { margin-top: var(--sc-7); }
.sc-stack > :is(h1,h2,h3):first-child { margin-top: 0; }
.sc-rule { height: 1px; border: 0; background: var(--sc-hairline); margin: 0; }

/* =============================================================== DEVICES ==
   Driven by the engine. Restyle your own markup, not these.                */

.sc-act--pinned { position: relative; }
.sc-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
  z-index: var(--sc-z-stage);
}

/* scrub / sequence media */
.sc-stage :is(video[data-sc-scrub], canvas[data-sc-sequence], .sc-stage__poster) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
video[data-sc-scrub] { opacity: 0; transition: opacity 380ms var(--sc-ease-out); }
.sc-has-clip video[data-sc-scrub] { opacity: 1; }
/* The poster is a live frame-holder, not a placeholder: it stays up until a
   real video frame has painted, which is what stops the blank-stage flash. */
.sc-stage__poster { z-index: 0; transition: opacity 380ms var(--sc-ease-out); }
.sc-has-clip .sc-stage__poster { opacity: 0; }

/* A scrim only where text sits. A full-frame darkening layer flattens the
   image everywhere to fix contrast in one corner. */
.sc-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(
    var(--sc-scrim-angle, 180deg),
    color-mix(in oklab, var(--sc-canvas) var(--sc-scrim-a, 78%), transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
    transparent 68%);
}
/* Point the scrim at the copy. A scrim gradient that darkens the top while the
   copy sits at the bottom fixes contrast nowhere and flattens the image
   everywhere, which is the most common way text-over-video goes wrong. */
.sc-scrim--bottom { --sc-scrim-angle: 0deg; }
.sc-scrim--left   { --sc-scrim-angle: 90deg; }
.sc-scrim--right  { --sc-scrim-angle: 270deg; }

/* Corner scrims, for copy anchored to a corner. An edge gradient has to darken
   a whole band across the frame to cover one corner; a corner gradient puts the
   density where the text is and leaves the rest of the image alone. Pair with
   .sc-copy--lead / .sc-copy--trail. */
.sc-scrim--lead {
  background: linear-gradient(to top right,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 72%, transparent) 30%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 52%,
    transparent 72%);
}
.sc-scrim--trail {
  background: linear-gradient(to top left,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 72%, transparent) 30%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 52%,
    transparent 72%);
}
/* A band across the bottom, for copy that spans the full width of the frame.
   That is what both corner anchors become below 860px, and it is also the right
   shape whenever the copy block is wider than a corner. */
.sc-scrim--band {
  background: linear-gradient(to top,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 74%, transparent) 22%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
    transparent 58%);
}
.sc-scrim--vignette {
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%,
              color-mix(in oklab, var(--sc-canvas) 70%, transparent) 100%);
}

/* copy over a stage.
   max-width is in rem, never ch. A `ch` on this container resolves against the
   CONTAINER's font-size (body size), not the display size of the heading inside
   it, so `max-width: 20ch` here silently produces a ~180px column and wraps a
   hero headline to six lines. Set a ch measure on the text element itself. */
.sc-copy {
  position: absolute; z-index: var(--sc-z-copy);
  inset-inline: var(--sc-gutter);
  max-width: min(46rem, 76vw);
  will-change: opacity, transform;
}
.sc-copy--lead   { left: var(--sc-gutter); bottom: clamp(3rem, 12vh, 9rem); }
/* inset-inline FIRST. It is the shorthand for left+right, so declaring it after
   `left: 50%` resets left to auto and the block drifts off the left edge. */
.sc-copy--center { inset-inline: auto; left: 50%; top: 50%; translate: -50% -50%; text-align: center; }
.sc-copy--trail  { inset-inline: auto; right: var(--sc-gutter); bottom: clamp(3rem, 12vh, 9rem); text-align: right; }

/* cue defaults: the engine writes opacity/transform inline, these are the
   pre-paint state so nothing flashes before the first read() */
[data-sc-cue] { opacity: 0; will-change: opacity, transform; }
.sc-ready [data-sc-cue] { transition: none; }

/* kinetic split */
.sc-split { display: inline-block; overflow: hidden; vertical-align: top; }
/* Descenders live below the baseline; a line mask clipped to the line box eats
   the tails off g, y, p, j. The padding buys them room back. */
.sc-split--line { display: block; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.sc-split__i { display: inline-block; will-change: transform, opacity; }
.sc-is-split { opacity: 1 !important; }

/* horizontal rail */
[data-sc-pan] { display: flex; will-change: transform; }

/* reveal + parallax */
[data-sc-reveal] { will-change: clip-path; }
[data-sc-parallax] { will-change: transform; }

/* flow reveal (fires once) */
[data-sc-in], [data-sc-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 620ms var(--sc-ease-out), transform 620ms var(--sc-ease-out);
}
[data-sc-in].sc-in, [data-sc-stagger] > .sc-in { opacity: 1; transform: none; }

/* pointer devices */
[data-sc-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-sc-magnet] { will-change: transform; }
/* isolation always; position only if nothing more specific already set it.
   Written with :where() (zero specificity) on purpose: a plain `position:
   relative` here has the same weight as `.sc-stage` and, being later in the
   file, silently wins. A stage carrying both attributes then stops being
   sticky and the whole act scrolls away instead of pinning. */
[data-sc-spotlight] { isolation: isolate; }
:where([data-sc-spotlight]) { position: relative; }
[data-sc-spotlight]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(
    28rem 28rem at calc(var(--sc-mx, 0.5) * 100%) calc(var(--sc-my, 0.5) * 100%),
    color-mix(in oklab, var(--sc-accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity var(--sc-d-slow) var(--sc-ease-out);
}
[data-sc-spotlight]:hover::after { opacity: 1; }

/* =========================================================== WORLDFLIGHT ==
   One fixed stage for the whole page. The only thing in document flow is the
   spacer, and it is empty. If you find yourself adding a section here, you want
   act mode instead: the moment a real block scrolls past the fixed stage, the
   page has a seam again and the whole point is gone.                        */

[data-sc-mode="worldflight"] { position: relative; }

.sc-world {
  position: fixed; inset: 0;
  overflow: clip;
  z-index: var(--sc-z-stage);
  background: var(--sc-canvas);
}

/* Every leg is mounted for the life of the page and stacked in the same box.
   The engine owns opacity, visibility and z-index here; do not set them. */
.sc-world__seg {
  position: absolute; inset: 0;
  opacity: 0;
  will-change: opacity;
}
.sc-world__seg > :is(video, img, canvas) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The poster is the frame-holder AND the first camera move: the engine pushes
   it in slowly until a real decoded frame is available to replace it. */
.sc-world__poster {
  z-index: 0;
  transform-origin: 50% 50%;
  transition: opacity 420ms var(--sc-ease-out);
}
.sc-world__seg > video { z-index: 1; }
.sc-world__seg.sc-has-clip .sc-world__poster { opacity: 0; }
/* The act stylesheet lights a clip through its ancestor act. A worldflight leg
   has no act, so match the class the engine also writes on the clip itself. */
video[data-sc-scrub].sc-has-clip { opacity: 1; }

/* The copy layer is fixed too, and inert by default: the engine hands
   pointer-events back to a block only while it is actually legible. */
.sc-world__copy {
  position: fixed; inset: 0;
  z-index: var(--sc-z-copy);
  pointer-events: none;
}
.sc-world__scrim { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
[data-sc-copy] {
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.sc-ready [data-sc-copy] { transition: none; }

/* The track. Empty on purpose. */
.sc-world__spacer { pointer-events: none; }

/* scroll progress */
[data-sc-progress] {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--sc-z-chrome);
  background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform;
}

/* ----------------------------------------------------------- atmosphere --
   Depth is not only shadow. Grain keeps a flat dark ground from banding, and
   it is the difference between "a dark page" and "a lit room". */
.sc-grain { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0.045; }
.sc-grain::before {
  content: ""; position: absolute; inset: -50%;
  background-image: url("../img/grain.svg");
}

/* Shared layout, navigation and cover */
:root {
  color-scheme: light;
  --sc-canvas: #fbfaf7;
  --sc-surface: #f1edf7;
  --sc-ink: #251b31;
  --sc-ink-soft: #5d5263;
  --sc-accent: #6235aa;
  --sc-accent-ink: #fff;
  --sc-font-text: "Manrope", sans-serif;
  --sc-font-display: var(--sc-font-text);
  --reading-size: 1.125rem;
  --caption-size: 1rem;
  --gutter: clamp(20px, 4.5vw, 72px);
}
body { font-weight: 450; }
main { font-size: var(--reading-size); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--gutter); }
[id] { scroll-margin-top: 16px; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 10px 18px; background: white; color: #251b31; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { position: relative; z-index: 10; background: #271b33; color: #fff; }
.masthead-inner { min-height: 76px; display: flex; align-items: center; gap: clamp(24px, 4vw, 58px); }
.brand-lock { display: flex; gap: 8px; align-items: center; margin-right: auto; flex-shrink: 0; }
.brand-lock img { object-fit: contain; }
.nav-wide { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; }
.nav-wide a, .mast-cta { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-wide a:hover, .menu-small nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mast-cta { border: 1px solid #8e8295; border-radius: 32px; padding: 0 19px; gap: 14px; }
.mast-cta:hover { background: #47354e; }
.masthead :focus-visible { outline-color: #e1c8ff; }
.menu-small { display: none; }
.cover {
  --cover-ink: #281b37;
  --cover-light: #f9f5ff;
  --cover-accent: #d8b5fc;
  color: var(--cover-light);
  background: var(--cover-ink);
  overflow: clip;
}
.masthead { background: #281b37; }
.masthead-inner { border-bottom: 1px solid #ffffff27; }
.cover-spread {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
  gap: clamp(32px, 4.5vw, 88px);
  align-items: start;
  padding-block: var(--section-space);
}

.format-line { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--caption-size); font-weight: 600; color: #e3d9eb; }
.format-line > span { width: 22px; height: 2px; background: var(--cover-accent); }
.cover h1 { margin: 0; max-width: 20ch; }
.cover h1 em { font-style: normal; color: var(--cover-accent); }
.cover-intro { color: #e6deec; max-width: 43ch; margin: var(--group-space) 0 0; font-size: clamp(16px, 1.24vw, 20px); line-height: 1.51; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(16px, 1.7vw, 28px); margin-top: var(--group-space); }
.action-solid, .action-quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 650; }
.action-solid { padding: 0 22px; border-radius: 32px; color: #2d1d3b; background: #f3e6ff; }
.action-solid:hover { background: white; }
.action-solid span { font-size: 1.2em; line-height: 1; }
.mast-cta-label { line-height: 1.2; }
.mast-cta-arrow { display: block; flex: none; width: 1em; height: 1em; }
.action-solid:active, .mast-cta:active { transform: translateY(1px); }
.action-quiet { color: white; }
.action-quiet:hover { text-decoration: underline; }
.play-ring { width: 24px; height: 24px; border-radius: 50%; border: 1.4px solid currentColor; display: grid; place-items: center; }
.play-ring::after { content: ""; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 2px; }
.cover :focus-visible { outline-color: #e5bfff; }
.cover-figure { margin: 0; min-width: 0; }
.cover-mount { position: relative; isolation: isolate; --travel: calc(var(--sc-p, .5) - .5); }
.cover-backing {
  position: absolute; inset: -12px 10px 14px 5%; z-index: -1;
  background: repeating-linear-gradient(90deg, #7b629a 0 1px, transparent 1px 11px);
  border: 1px solid #796390; border-radius: 2px;
  transform: translateY(calc(var(--travel) * -44px)) rotate(-2deg);
}
.cover-window {
  overflow: hidden; border-radius: clamp(28px, 5.5vw, 82px) 4px 4px 4px;
  transform: translateY(calc(var(--travel) * 10px));
  box-shadow: 0 14px 45px -25px #110a1b;
}
.cover-photo { width: 100%; height: auto; aspect-ratio: 1.44; object-fit: cover; object-position: 54% center; transform: scale(calc(1.03 + var(--travel) * .075)); }
.cover-aperture {
  --corner: #fff9;
  position: absolute; bottom: 6%; right: 3.5%; width: 7%; aspect-ratio: 1.6;
  border-right: 2px solid var(--corner); border-bottom: 2px solid var(--corner);
  transform: translateY(calc(var(--travel) * -17px));
}
.cover-figure figcaption { display: grid; grid-template-columns: .84fr 1.65fr; gap: 16px; align-items: baseline; padding-top: 15px; margin-top: 11px; border-top: 1px solid #ffffff33; line-height: 1.5; }
.cover-figure figcaption strong { color: #dfbcff; font-size: var(--reading-size); letter-spacing: -.02em; }
.cover-figure figcaption span { color: #e0d7e6; font-size: var(--caption-size); }
.cover-transfer { background: var(--sc-surface); color: #30203e; }
.transfer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); padding-block: var(--section-space); }
.transfer-pair > div { text-align: center; }
.transfer-pair strong { display: block; font-size: var(--reading-size); line-height: 1.35; color: #583574; font-weight: 600; }
.transfer-pair p { margin: .375rem auto 0; max-width: 48ch; font-size: 1.25rem; font-weight: 500; line-height: 1.5; text-wrap: pretty; }

/* Abilities */
.abilities { background:var(--sc-canvas); color:var(--sc-ink); padding-block:var(--section-space); font-family:var(--sc-font-text) }
.abilities-intro { display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(20px,5vw,72px); align-items:start }
.abilities h2 { color:var(--sc-ink); margin:0 }
.abilities p { color:var(--sc-ink-soft); font-size:clamp(16px,1.45vw,20px); line-height:1.5; margin:0 }
.abilities-index { display:flex; flex-wrap:wrap; gap:4px 18px; margin:var(--group-space) 0 0; border-block:1px solid #c9bfcd }
.abilities-index a { min-height:48px; display:flex; align-items:center; color:#4b3c53; text-decoration:none; border-bottom:3px solid transparent; font-weight:600 }
.abilities-index a[aria-current=true],.abilities-index a:hover { color:var(--sc-accent); border-color:currentColor }
.ability-example { display:grid; grid-template-columns:.78fr 1.4fr; gap:clamp(24px,5vw,72px); padding-top:var(--group-space) }
.ability-example[hidden] { display:none }
.ability-word h3 { margin:0 0 7px; color:var(--sc-accent); overflow-wrap:anywhere }
.ability-scenes { margin:0 }
.ability-scenes div { display:grid; grid-template-columns:minmax(110px,.45fr) 1.25fr; padding:12px 0; gap:15px; border-bottom:1px solid var(--rule) }
.ability-scenes dt { color:var(--sc-accent); font-weight:650 }
.ability-scenes dd { margin:0; color:#36293f }

/* Results, program and memory */
.studio-proof,
.studio-start,
.studio-contact {
  color: var(--sc-ink);
  scroll-margin-top: 4.5rem;
}

.studio-proof h2,
.studio-start h2,
.studio-contact h2 {
  margin: 0;
}

.studio-proof {
  overflow: clip;
  background: var(--sc-canvas);
}

.studio-proof-layout {
  padding-block: var(--section-space);
}

.studio-proof-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-bottom: var(--group-space);
}

.studio-proof-heading h2 em {
  color: var(--sc-accent);
}

.studio-proof-heading p {
  max-width: 38ch;
  margin: 0 0 .1rem;
  font-size: clamp(1.06rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -.018em;
}
.studio-proof-heading p + p { margin-top: 1em; }

.studio-recordings {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(1.75rem, 4.5vw, 4.75rem);
}

.studio-recording {
  display: block;
  color: var(--sc-ink);
  text-decoration: none;
}

.studio-recording-frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #291c30;
}

.studio-recording-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-watch {
  position: absolute;
  left: clamp(.6rem, 1.3vw, 1rem);
  bottom: clamp(.6rem, 1.3vw, 1rem);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .72rem;
  color: white;
  background: rgb(32 22 36 / .92);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1;
}

.studio-watch::before {
  content: "";
  border-width: .3rem 0 .3rem .48rem;
  border-style: solid;
  border-color: transparent transparent transparent currentColor;
}

.studio-recording-caption {
  display: block;
  padding-block: clamp(1rem, 1.65vw, 1.55rem) 0;
}

.studio-result-name {
  display: block;
  font-size: var(--caption-size);
  font-weight: 620;
  letter-spacing: .01em;
}

.studio-result-task {
  display: block;
  max-width: 23ch;
  margin-top: .38rem;
  font-size: 1.5rem;
  font-weight: 520;
  line-height: 1.13;
  letter-spacing: -.048em;
  text-wrap: pretty;
}

.studio-result-task strong {
  color: var(--sc-accent);
  font-weight: inherit;
}

.studio-recording-side {
  padding-top: 0;
}

.studio-results-archive {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin-top: clamp(1rem, 2vw, 2.25rem);
  color: #522b91;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.studio-start {
  border-top: 1px solid #e1dce0;
  background: #f4f1f5;
}

.studio-start-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(2rem, 6.5vw, 6.5rem);
  padding-block: var(--section-space);
}

.studio-steps {
  border-top: 1px solid #bcb2c3;
}

.studio-steps details {
  border-bottom: 1px solid #bcb2c3;
}

.studio-steps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: clamp(1.1rem, 2.1vw, 1.7rem);
  font-size: clamp(1.27rem, 2vw, 1.85rem);
  font-weight: 570;
  line-height: 1.16;
  letter-spacing: -.038em;
  list-style: none;
  cursor: pointer;
}

.studio-steps summary::-webkit-details-marker {
  display: none;
}

.studio-step-plus {
  position: relative;
  flex: 0 0 1.45rem;
  height: 1.45rem;
  color: var(--sc-accent);
}

.studio-step-plus::before,
.studio-step-plus::after {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) .1rem auto;
  height: 2px;
  background: currentColor;
}

.studio-step-plus::after {
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.studio-steps details[open] .studio-step-plus::after {
  transform: rotate(0);
}

.studio-steps details p {
  max-width: 45ch;
  margin: -.35rem 2.4rem 1.9rem 0;
  color: #53495b;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.55;
}

.studio-contact { background: var(--sc-canvas); }
.studio-invitation {
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding-block: calc(1.5 * var(--section-space));
  text-align: center;
}
.studio-invitation h2 { max-width: 32ch; }
.studio-invitation p { margin: 0; max-width: 58ch; line-height: 1.5; color: var(--sc-ink-soft); text-wrap: balance; }
.studio-invitation .booking-action {
  margin-top: .25rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
  color: white;
  background: var(--sc-accent);
}
.studio-invitation .booking-action:hover { background: var(--plum); }
.studio-invitation .booking-question { font-size: 1rem; }
.booking-question a { color: var(--sc-accent); text-underline-offset: .2em; }

.studio-recording:focus-visible,
.studio-results-archive:focus-visible,
.studio-steps summary:focus-visible,
.studio-contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.studio-memory {
  background: var(--sc-surface);
  color: var(--sc-ink);
}

.studio-memory,
.studio-memory-inner {
  scroll-margin-top: 4.5rem;
}

.studio-memory-inner {
  padding-block: var(--section-space);
}

.studio-memory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.studio-memory h2 {
  margin: 0;
}

.studio-memory p {
  margin: 0;
  font-size: var(--reading-size);
  line-height: 1.55;
}

.studio-memory-intro p + p {
  margin-top: .75em;
}

.studio-memory-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem clamp(1.5rem, 4vw, 4rem);
  margin-top: var(--group-space);
}

.studio-memory-topics > div {
  border-top: 1px solid var(--rule);
  padding-top: .9rem;
}

.studio-memory-topics h4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .45rem;
  color: var(--sc-accent);
}

.studio-memory-subheading {
  margin: var(--section-space) 0 0;
}

.studio-memory-topics img { width: 2rem; height: 2rem; }

.studio-memory .studio-memory-takeaway {
  margin-top: var(--group-space);
  padding-top: var(--group-space);
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}

/* School sections, footer, policy and forms */
/* The same editorial grid continues from the cover through the school pages. */
:root {
  --section-space: 24px;
  --group-space: 16px;
  --plum: #281b37;
  --lavender-ink: #e3c8ff;
  --rule: #cfc3d8;
}
/* One type scale across the homepage and all secondary pages. */
main :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--sc-font-display);
  font-style: normal;
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: break-word;
}
main h1 { font-size: 4rem; line-height: 1.1; letter-spacing: -.035em; }
main h2 { font-size: 2.75rem; line-height: 1.16; letter-spacing: -.025em; }
main h3 { font-size: 1.625rem; line-height: 1.25; letter-spacing: -.015em; }
main :is(h4, h5, h6) { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
main :is(h1, h2, h3, h4, h5, h6) :is(em, strong) { font: inherit; }

.masthead, .site-header { background: var(--plum); color: var(--sc-accent-ink); }
.masthead a, .site-header a { color: inherit; }
.school-figures { background: var(--sc-canvas); }
.school-figures-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--group-space) var(--gutter);
  padding-block: var(--section-space);
  margin-block: 0;
}
.school-figures-list > div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: end; text-align: center; }
.school-figures-list dd { margin: 0; color: var(--sc-accent); font-size: clamp(2.5rem, 4.4vw, 4.25rem); font-weight: 620; line-height: 1.03; letter-spacing: -.055em; }
.school-figures-list dd small { font-size: max(1rem, .38em); letter-spacing: -.02em; }
.school-figures-list dt { margin-block-start: 4px; color: var(--sc-ink-soft); }
.school-chapter, .page-section { padding-block: var(--section-space); }
.school-chapter { background: var(--sc-canvas); }
.school-story, .school-faq { background: var(--sc-surface); }
.chapter-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: var(--group-space) clamp(2rem, 6vw, 6rem);
}
.school-chapter h2, .page-section h1 {
  margin: 0;
  color: var(--sc-ink);
}
.school-chapter h3, .page-section h2 { margin: 0; }
.school-chapter p, .page-section p { max-width: 62ch; margin: .65em 0 0; line-height: 1.52; color: var(--sc-ink-soft); }
.school-prose > :first-child { margin-top: 0; }
.school-story .school-prose strong { color: var(--sc-ink); font-weight: 600; }

.school-link { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; color: var(--sc-accent); font-weight: 600; }
.school-syllabus { margin: 0; }
.school-syllabus > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding-block: 9px; border-top: 1px solid var(--rule); }
.school-syllabus dd { margin: 0; color: var(--sc-accent); font-variant-numeric: tabular-nums; font-weight: 650; }
.skip:not(:focus) { clip-path: inset(50%); }
.school-questions details { border-top: 1px solid var(--rule); }
.school-questions details:last-child { border-bottom: 1px solid var(--rule); }
.school-questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 48px; padding-block: 8px; cursor: pointer; font-weight: 600; list-style: none; }
.school-questions summary::-webkit-details-marker { display: none; }
.school-questions summary::after { content: "+"; content: "+" / ""; font-size: 1.3em; color: var(--sc-accent); }
.school-questions details[open] summary::after { content: "−"; content: "−" / ""; }
.school-questions details > p { margin: 0 0 12px; }

.site-header, .page-section {
  padding-inline: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
}
.site-header { display: flex; align-items: center; gap: var(--gutter); min-height: 76px; }
.site-header .brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.brand-symbol { width: 40px; height: auto; }
.brand-wordmark { width: 110px; height: auto; }
.site-header .main-nav, .header-contact, .contacts-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.site-header a, .contacts-actions a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; }
.site-header a:hover, .contacts-actions a:hover { text-decoration: underline; }
.mobile-menu-toggle, .section-pill, .grain { display: none; }
.contacts-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--group-space) var(--gutter); margin-top: var(--group-space); }
.contacts-map { width: 100%; height: 300px; border: 0; }
.page-section a { color: var(--sc-accent); }
.contacts-phone { display: inline-block; font-size: 1.4em; font-weight: 600; margin-block: 8px; }

.school-footer { color: #fff; background: var(--plum); font-size: 1rem; line-height: 1.5; }
.school-footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--group-space) var(--gutter);
  padding-block: var(--section-space);
}
.school-footer p { margin: 0; }
.school-footer a { color: inherit; text-underline-offset: .22em; }
.school-footer-brand { display: inline-block; }
.school-footer-brand img { display: block; width: 168px; height: auto; }
.school-footer-identity p { color: #e4d8e6; max-width: 30ch; margin-top: .4rem; }
.school-footer .footer-heading { margin: 0 0 .5rem; color: var(--lavender-ink); font-weight: 600; }
.school-footer address { display: grid; justify-items: start; gap: .15rem; font-style: normal; }
.school-footer address a { text-decoration: none; }
.school-footer address a:hover { text-decoration: underline; }
.footer-phone-mobile { display: none; }

.footer-channels { display: flex; flex-wrap: wrap; gap: 3px; }
.footer-channels a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #786582; border-radius: 50%;
}
.footer-channels a:hover, .footer-channels a:focus-visible { background: #47354e; border-color: var(--lavender-ink); }
.footer-channels img { width: 22px; height: 22px; }
.school-footer-legal {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: .25rem var(--group-space); padding-block: .8rem; border-top: 1px solid #65556e;
  color: #e4d8e6; font-size: .9375rem;
}
.school-footer :focus-visible { outline-color: var(--lavender-ink); }

.privacy-page { padding-block: var(--section-space); }
.privacy-column { max-width: 68ch; margin-inline: auto; }
.privacy-column nav { margin-bottom: var(--group-space); }
.privacy-column a { color: var(--sc-accent); text-underline-offset: .2em; }
.privacy-column h1 { margin: 0 0 .6em; font-size: clamp(2rem, 4vw, 3.25rem); }
.privacy-column h2 { margin: 1.35em 0 .4em; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.privacy-column p, .privacy-column ul { margin: .6em 0; line-height: 1.65; }
.privacy-column ul { padding-inline-start: 1.5em; list-style: disc; }
.privacy-column li + li { margin-top: .2em; }

/* Keep the reading order and layout fixed while the reader moves through the page. */
@keyframes school-enter {
  from { opacity: .65; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

html:not(.sc-ready) [data-sc-in],
[data-sc-in]:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}

.inquiry { position: fixed; inset: 0; margin: auto; width: min(28rem, calc(100% - 2rem)); max-height: 90dvh; overflow: auto; padding: 2rem; border: 0; border-radius: 16px; background: var(--sc-canvas); color: var(--sc-ink); }
.inquiry::backdrop { background: rgb(40 27 55 / .64); }
.inquiry h2 { margin: 0 2rem .5rem 0; font: 600 1.5rem/1.2 var(--sc-font-display); }
.inquiry p { margin: 0 0 1rem; }
.inquiry-close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; background: transparent; border: 0; color: inherit; font-size: 1.6rem; cursor: pointer; }
.inquiry form, .inquiry label { display: grid; gap: .35rem; }
.inquiry form { gap: .75rem; }
.inquiry input { width: 100%; padding: .65rem; border: 1px solid var(--rule); border-radius: 6px; font: inherit; }
.inquiry small { color: var(--sc-ink-soft); }
.inquiry .action-solid { justify-content: center; background: var(--sc-accent); color: white; border: 0; cursor: pointer; }
.inquiry nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .75rem; }
.inquiry nav a { color: var(--sc-accent); padding-block: .5rem; }

.inquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry button:disabled { cursor: wait; opacity: .65; }
.thank-you-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem var(--gutter); text-align: center; }
.thank-you-content { max-width: 42rem; }
.thank-you-brand { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-bottom: 2rem; }
.thank-you-content h1 { font-family: var(--sc-font-display); line-height: 1.15; }
.thank-you-content p { margin-top: 1rem; }

/* Video results */
.video-page { background: var(--sc-canvas); padding: clamp(64px, 8vw, 112px) 0; min-height: 60vh; }
.video-page h1 { max-width: 900px; margin: 0 0 clamp(32px, 5vw, 64px); font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: 1.04; letter-spacing: -.04em; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px); }
.video-card[hidden] { display: none; }
.video-card { min-width: 0; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #271b33; }
.video-play { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #271b33; cursor: pointer; }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play::after { content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 3px 18px #0004; }
.video-play::before { content: ''; position: absolute; z-index: 1; left: calc(50% + 3px); top: 50%; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #271b33; transform: translate(-50%, -50%); }
.video-play:focus-visible { outline: 4px solid #f6b743; outline-offset: -4px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h2 { margin: 16px 0 0; font-size: 1.05rem; line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; }
.video-more { display: flex; justify-content: center; margin-top: 48px; }
.video-more button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.video-more [hidden] { display: none; }

/* Navigation for standalone pages */
.inner-header .masthead-inner { border-bottom: 0; }
.inner-back { gap: 8px; white-space: nowrap; }
.thank-you-brand {
  width: fit-content;
  margin-inline: auto;
  padding: .55rem .85rem;
  border-radius: 12px;
  background: var(--plum);
}
.thanks-home { margin-top: .75rem; }
.thanks-home:hover { background: #e9dbf5; }

/* Desktop and tablet */
@media (min-width: 761px) {
  .cover-copy { align-self: center; }
}

@media (min-width: 781px) {
  .studio-proof-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  }
  .studio-proof-heading p { max-width: 54ch; }
  .studio-recordings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
  }
  .studio-recording-side { display: contents; }
  .studio-recording {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ded5e4;
    border-radius: 12px;
    background: #fff;
  }
  .studio-recording-caption { padding: 1.15rem 1.35rem 1.35rem; }
  .studio-result-task { max-width: none; line-height: 1.25; }
  .studio-results-archive { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
}

@media (min-width: 881px) {
  :is(.school-story, .school-admission, .school-faq) .chapter-spread {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .cover-spread { gap: 27px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cover-actions { gap: 7px 13px; }
  .action-solid, .action-quiet { font-size: 13px; }
  .cover-figure figcaption { grid-template-columns: 1fr; gap: 4px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  main h1 { font-size: 3.25rem; }
  main h2 { font-size: 2.375rem; }
}

@media (min-width: 1081px) and (max-width: 1250px) {
  .masthead-inner { gap: 16px; }
  .nav-wide { gap: 16px; }
  .nav-wide a, .mast-cta { font-size: 14px; white-space: nowrap; }
  .mast-cta { gap: 8px; padding-inline: 14px; }
}

/* Narrower viewports */
@media (max-width: 1080px) {
  .nav-wide { display: none; }
  .menu-small { display: block; }
  .menu-small summary { padding: 0; color: white; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; list-style: none; }
  .menu-small summary::-webkit-details-marker { display: none; }
  .menu-small summary span { flex: none; width: 22px; height: 2px; background: currentColor; }
  .menu-small[open] summary span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-small[open] summary span:nth-child(2) { opacity: 0; }
  .menu-small[open] summary span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .menu-small nav { position: absolute; z-index: 1; top: 100%; right: 0; left: 0; display: grid; background: #271b33; padding: 6px var(--gutter) 16px; box-shadow: 0 12px 18px -14px #271b3377; }
  .menu-small nav a { display: flex; align-items: center; min-height: 46px; text-decoration: none; border-top: 1px solid #55475f; }
}

@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .chapter-spread, .contacts-layout { grid-template-columns: 1fr; }
  .site-header { gap: 0 16px; flex-wrap: wrap; padding-block: 8px; }
  .site-header .main-nav { width: 100%; order: 3; }
  .site-header .brand-symbol { width: 32px; }
  .site-header .brand-wordmark { width: 80px; }
  .site-header:has(.mobile-menu-toggle) .main-nav { display: none; }
  .mobile-menu-open .site-header .main-nav { display: flex; }
  .mobile-menu-toggle { display: block; min-height: 44px; border: 0; background: transparent; cursor: pointer; }
  .header-contact { gap: 0 8px; }
}

@media (max-width: 55rem) {
  .studio-memory-intro { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .studio-memory-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .sc-copy { inset-inline: var(--sc-gutter); max-width: none; }
  .sc-copy--trail { text-align: left; }
  .sc-stage { height: 100svh; }
  /* .sc-copy--trail re-anchors to the left and spans the full width here, so a
     bottom-RIGHT corner gradient darkens the one corner the copy just left and
     guarantees a contrast failure over any bright clip. Point the density at
     the copy: the same band .sc-scrim--band paints. */
  .sc-scrim--trail {
    background: linear-gradient(to top,
      color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 74%, transparent) 22%,
      color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
      transparent 58%);
  }
}

@media (max-width: 780px) {
  .studio-start-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--group-space);
    padding-block: var(--section-space);
  }

  .studio-proof-layout {
    padding-block: var(--section-space);
  }

  .studio-proof-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-bottom: var(--group-space);
  }

  .studio-recordings {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--group-space);
  }

  .studio-recording-side {
    padding-top: 0;
    border-top: 0;
  }

  .studio-recording {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ded5e4;
    border-radius: 12px;
    background: #fff;
  }

  .studio-recording-caption {
    padding: 1rem 1rem 1.15rem;
  }

  .studio-result-task {
    max-width: none;
    font-size: clamp(1.18rem, 5vw, 1.5rem);
    line-height: 1.25;
  }

  .studio-result-task strong {
    display: block;
    margin-top: .35rem;
  }
}

@media (max-width: 760px) {
  :root { --reading-size: 1.0625rem; }
  .masthead-inner { min-height: 62px; gap: 11px; }
  .brand-lock { gap: 5px; }
  .brand-lock img:first-child { width: 31px; height: 31px; }
  .brand-lock img:last-child { width: 77px; height: auto; }
  .mast-cta { min-height: 44px; padding: 0 13px; font-size: 13px; gap: 6px; }
  .cover-spread { grid-template-columns: minmax(0, 1fr); row-gap: var(--group-space); }
  .cover-copy { max-width: 590px; }
  .format-line { margin-bottom: 15px; font-size: .9375rem; gap: 8px; }
  .cover-intro { margin-top: 16px; font-size: 16px; line-height: 1.46; max-width: 45ch; }
  .cover-actions { margin-top: 17px; gap: 4px 16px; }
  .action-solid, .action-quiet { font-size: 14px; min-height: 44px; }
  .action-solid { padding-inline: 16px; }
  .cover-figure { padding-top: 6px; }
  .cover-window { border-radius: 30px 3px 3px 3px; }
  .cover-photo { aspect-ratio: 1.8; object-position: 52% center; }
  .cover-backing { inset: -5px 5px 9px 4%; transform: translateY(calc(var(--travel) * -11px)) rotate(-1.2deg); }
  .cover-figure figcaption { margin-top: 11px; padding-top: 9px; display: block; }
  .cover-figure figcaption strong { display: block; margin-bottom: .2rem; }
  .transfer-pair { display: block; }
  .transfer-pair > div + div { border-top: 1px solid #c9b7d7; padding-top: 12px; margin-top: 12px; }
  .transfer-pair p { font-size: var(--reading-size); }

  .abilities-intro,.ability-example { grid-template-columns:1fr; gap:17px }
  .ability-scenes div { grid-template-columns:1fr; gap:3px }

  main h1 { font-size: 2rem; }
  main h2 { font-size: 1.625rem; }
  main h3 { font-size: 1.25rem; }
  main :is(h4, h5, h6) { font-size: 1.0625rem; }

  :root { --section-space: 16px; --group-space: 12px; }
  .school-figures-list { grid-template-columns: 1fr; gap: 0; }
  .school-figures-list > div { padding-block: 6px; }
  .school-figures-list > div + div { border-top: 1px solid var(--rule); }
  .school-figures-list dd { font-size: 2rem; }
  .school-syllabus > div { grid-template-columns: minmax(0, 1fr) auto; }
  .header-contact { flex-direction: column; align-items: start; }
  .header-contact a { min-height: 32px; }

  .footer-phone-desktop { display: none; }
  .footer-phone-mobile { display: inline; }

  .school-footer { text-align: center; }
  .school-footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .school-footer-brand img { width: 145px; }
  .school-footer-identity p { max-width: none; }
  .school-footer .footer-heading { margin-bottom: .25rem; }
  .school-footer address { justify-items: center; }
  .footer-channels { justify-content: center; }
  .school-footer-legal { flex-direction: column; align-items: center; gap: .4rem; }
}

@media (max-width: 38rem) {
  .studio-memory-topics { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 365px) {
  .masthead-inner { gap: 3px; }
  .mast-cta { padding-inline: 9px; font-size: 12px; white-space: nowrap; }
  .brand-lock img:first-child { width: 27px; height: 27px; }
  .brand-lock img:last-child { width: 68px; }
  .cover-actions { gap: 8px 12px; }
}

/* Input, motion and print */
@media (hover: hover) {
  .studio-recording:hover .studio-watch {
    background: var(--sc-accent);
  }

  .studio-recording:hover .studio-result-name {
    text-decoration: underline;
    text-underline-offset: .18em;
  }

  .studio-steps summary:hover {
    color: var(--sc-accent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .school-questions details[open] > p { animation: faq-answer-in 180ms ease-out; }
  @keyframes faq-answer-in { from { opacity: 0; } to { opacity: 1; } }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .school-questions details::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      transition: block-size 200ms ease-out, content-visibility 200ms allow-discrete;
    }
    .school-questions details[open]::details-content { block-size: auto; }
  }

  .cover-copy h1, .page-section h1 { animation: school-enter 600ms var(--sc-ease-out) both; }
  .cover-intro, .cover-figure, .page-section h1 + p {
    animation: school-enter 660ms var(--sc-ease-out) 80ms both;
  }
  .ability-example:not([hidden]) { animation: school-enter 360ms var(--sc-ease-out); }
  .studio-memory-topics > [data-sc-in]:nth-child(3n + 2) { transition-delay: 65ms; }
  .studio-memory-topics > [data-sc-in]:nth-child(3n) { transition-delay: 130ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Fewer and gentler, not zero. Opacity still carries the reveal so the page
     is comprehensible; every position change is dropped. */
  [data-sc-in], [data-sc-stagger] > * { transform: none; transition-duration: 220ms; }
  [data-sc-parallax], [data-sc-pan], .sc-split__i { transform: none !important; }
  /* A wipe is a position change too. Show reveal content settled. */
  [data-sc-reveal] { clip-path: none !important; }
  /* A rail's transform IS its navigation, not decoration. Zeroing it the way
     parallax and kinetic type are zeroed parks the act on its first screenful
     and makes everything past the fold unreachable: a device degrading into
     missing content. Hand the travel back to the reader as an ordinary scroll
     region instead, so the same items are all still gettable without motion.
     A build that would rather re-lay the rail out as a grid can still do that;
     this is the floor, not the ceiling. */
  [data-sc-act="pan"] .sc-stage,
  [data-sc-act="pan"] [data-sc-stage] {
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  [data-sc-pan] > * { scroll-snap-align: center; }
  [data-sc-spotlight]::after { display: none; }
  /* A worldflight keeps its whole story here. No clip is ever fetched, so the
     posters are the film, and they cross-dissolve through exactly the same
     seams at exactly the same scroll positions. The push-in and the copy drift
     are the only things that go. */
  .sc-world__poster, [data-sc-copy] { transform: none !important; }

  .cover-mount { --travel: 0; }
  html { scroll-behavior: auto; }

  .studio-step-plus::after {
    transition: none;
  }

  [data-sc-in] { opacity: 1; transform: none; transition: none; }
}

@media print {
  [data-sc-in] { opacity: 1; transform: none; transition: none; }
}
