/* Login. Deliberately a different world from the console: the app proper is
   a light, clinical instrument, and this is the brutalist poster the brand
   leads with. Tokens are lifted from the Anatomic Labs landing page so the
   two are the same design, not a lookalike. */

.auth {
  --a-bg: #0a0a0a;
  --a-surface: #161616;
  --a-primary: #BB2422;
  --a-text: #f5f3f1;
  --a-muted: #8ca0ac;
  --a-border: #2a2a2a;
  /* The hero's white frame. The unlocked bar borrows the same weight, so the
     two are set from one place. */
  --a-frame-border: 2px;
  --a-font: "Alte Haas Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

/* ------------------------------------------------------------------ login */
.auth {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr;
  /* `safe` so a short viewport scrolls from the top instead of clipping the
     poster off the top edge the way plain centring would. */
  align-content: safe center;
  justify-items: center;
  padding: clamp(24px, 5vh, 56px) 24px;
  background: var(--a-bg);
  color: var(--a-text);
  font-family: var(--a-font);
  overflow-y: auto;
}

/* Poster and form share one measure, so the form reads as the next line of
   the composition rather than as a second thing on the page. */
.auth__column { width: min(100%, 560px); }

.auth__poster { display: block; }
.auth__frame { width: 100%; }

/* The poster's exit once the bar has been slid. Delayed so the bar's pop is
   seen before the whole hero starts to go; the form arrives once it has. */
.auth__poster.is-leaving {
  animation: authFade 0.26s ease 0.32s both;
  pointer-events: none;
}
@keyframes authFade {
  to { opacity: 0; transform: translateY(-6px); }
}

.auth__panel {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 10;
  background: var(--a-primary);
  border: var(--a-frame-border) solid #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.auth__panel-figure {
  width: auto;
  height: 82%;
  max-width: 82%;
  object-fit: contain;
  display: block;
}
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-repeat: repeat;
  pointer-events: none;
}

/* Brand on the left, location flush with the panel's right edge: the caption
   spans the frame, so space-between lines the location up with the hero. */
.auth__caption {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.auth__brand {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
}
.auth__location {
  margin: 0;
  line-height: 1.2;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* ------------------------------------------------------------ unlock bar */
/* Same width as the hero so it reads as part of the poster, not a widget
   dropped beneath it. Square corners and the poster's border, per the brand. */
.unlock {
  position: relative;
  margin-top: 18px;
  height: 58px;
  /* border-box so the frame thickening on unlock doesn't grow the bar. */
  box-sizing: border-box;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: border-color 0.18s ease, border-width 0.18s ease;
}
.unlock__fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: var(--a-primary);
  opacity: 0.22;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.unlock.is-dragging .unlock__fill { transition: none; }

.unlock__handle {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: 58px;
  /* border-box so the added border sits inside the 58px square instead of
     growing it. */
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: var(--a-primary);
  color: #fff;
  /* Same weight as unlock__arrow's strokeWidth, same color as the arrow
     itself (currentColor -> #fff here), the handle's outline reads as an
     extension of the icon's own line rather than a separate decoration. */
  border: 2.4px solid #fff;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  /* Springs back (or snaps to the end) when released; tracks the finger with
     no lag while it is actually being dragged. */
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  /* A barely-there rightward nudge that repeats every few seconds, not a
     wave or a wobble, just a suggestion of the direction to drag. Idle for
     most of the cycle so it reads as an occasional hint, not motion that
     never stops. It's the handle itself that nudges, the same square that
     tracks the finger while dragging, not just the icon inside it. */
  animation: unlockHint 2.8s ease-in-out infinite;
}
.unlock.is-dragging .unlock__handle { cursor: grabbing; transition: none; }
/* The flight back to the start after letting go short of the end: a real
   overshoot-and-settle rather than the crisp ease the snap-to-end success
   case keeps, so a false start reads as the handle springing home, not
   snapping there. Only this one return gets it, .is-springing is added
   for exactly that flight and dropped the moment it is grabbed again. */
.unlock.is-springing .unlock__handle {
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Stopped while actually being dragged or once unlocked, so the hint never
   competes with the finger or fights the inline transform driving position. */
.unlock.is-dragging .unlock__handle,
.unlock.is-unlocked .unlock__handle {
  animation: none;
}
.unlock__handle:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@keyframes unlockHint {
  0%, 70%, 100% { transform: translateX(0); }
  80%           { transform: translateX(2px); }
  90%           { transform: translateX(0); }
}

.unlock__arrow,
.unlock__check {
  grid-area: 1 / 1;
  transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.unlock__check { opacity: 0; transform: scale(0.6); }

/* Reaching the end: the fill goes solid, the arrow flips to a check, the bar
   takes the hero's white frame, and the whole thing gives one short pop, the
   "click" of the lock opening. Solid red in a white frame is the poster's own
   panel in miniature, which is the point. */
.unlock.is-unlocked {
  border: var(--a-frame-border) solid #fff;
  animation: unlockPop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.unlock.is-unlocked .unlock__fill { opacity: 1; width: 100% !important; }
/* The grain fades up with the pop. Only a `from` is given, so it settles on
   the opacity GrainOverlay sets inline, the hero's, rather than a copy of
   it kept here. Animating the overlay itself, not a wrapper: a wrapper at
   partial opacity would isolate the multiply blend and show raw grey noise. */
.unlock.is-unlocked .grain-overlay { animation: unlockGrainIn 0.3s ease both; }
@keyframes unlockGrainIn {
  from { opacity: 0; }
}
.unlock.is-unlocked .unlock__handle { background: #fff; color: var(--a-primary); }
.unlock.is-unlocked .unlock__arrow { opacity: 0; transform: translateX(6px); }
.unlock.is-unlocked .unlock__check { opacity: 1; transform: scale(1); }
@keyframes unlockPop {
  0%   { transform: scale(1);     box-shadow: 0 0 0 0 rgba(187, 36, 34, 0.55); }
  35%  { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(187, 36, 34, 0); }
  100% { transform: scale(1);     box-shadow: 0 0 0 10px rgba(187, 36, 34, 0); }
}

/* The sign-in page proper. The poster has gone by the time this mounts, so
   the form is the only thing on the page: centred in the column, no panel and
   no hairline, and its entrance is the page turning over. */
.auth__form-side {
  display: flex;
  justify-content: center;
  animation: authRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth__form {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth__form-head { display: flex; flex-direction: column; gap: 6px; }
.auth__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.auth__sub { margin: 0; font-size: 13.5px; color: var(--a-muted); line-height: 1.5; }

.auth__field { display: flex; flex-direction: column; gap: 7px; }
.auth__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a-muted);
}
.auth__input {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 0;
  color: var(--a-text);
  font: 400 15px var(--a-font);
  transition: border-color 0.15s ease;
}
.auth__input:focus { outline: none; border-color: var(--a-primary); }
.auth__input::placeholder { color: #5a5a5a; }

.auth__submit {
  appearance: none;
  border: 0;
  padding: 13px 18px;
  background: var(--a-primary);
  color: #fff;
  font: 600 14px var(--a-font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.auth__submit:hover { filter: brightness(1.08); }
.auth__submit:disabled { opacity: 0.5; cursor: default; }

.auth__error { margin: 0; font-size: 13px; color: #ff7d6b; line-height: 1.45; }
.auth__notice { margin: 0; font-size: 13px; color: var(--a-muted); line-height: 1.45; }
.auth__switch { margin: 0; font-size: 13px; color: var(--a-muted); }
.auth__link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--a-text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 860px) {
  .auth { padding: 24px 20px 32px; --a-frame-border: 1.5px; }
  .auth__panel { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .unlock.is-unlocked, .unlock.is-unlocked .grain-overlay, .auth__form-side, .auth__poster.is-leaving { animation: none; }
  .auth__poster.is-leaving { opacity: 0; }
  .unlock__handle, .unlock__fill { transition: none; }
  .unlock__handle { animation: none; }
  /* Higher specificity than the blanket rule above, so it needs its own
     override to actually lose the bouncy return under reduced motion. */
  .unlock.is-springing .unlock__handle { transition: none; }
}

/* ---------- Landing: the paper page for signed-out visitors ---------- */

/* The palette, from the hero: the paper is the main colour, the black is the
   second, and Ambit's red (a touch deeper than he renders, so white labels
   on it stay readable) marks the buttons. */
.landing {
  --paper: #ecebe7;
  --paper-rgb: 236, 235, 231;
  --ink: #111;
  --ink-muted: rgba(17, 17, 17, 0.64);
  --rule: rgba(17, 17, 17, 0.16);
  --accent: #d4402e;
  --accent-deep: #b93322;
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow-y: auto;
  /* Scrolling past either end stays here rather than carrying on into the
     page behind, which on phones can collapse the browser's toolbar and
     resize everything mid-swipe. */
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  font-family: "Alte Haas Grotesk", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Slides up out of view while the visitor scrolls down and back on the way
   up (Landing.jsx toggles .is-hidden). A transform rather than `top`, so the
   slide is composited and nothing below it re-lays out. */
.landing__header {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  margin-bottom: -64px;   /* laid over the hero, so its red runs up to the top edge */
  z-index: 4;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  /* See-through, so let clicks on its empty stretches reach the page below
     (the hero model can be dragged right up under it); its contents still
     take clicks. */
  pointer-events: none;
  /* The opacity (with its delay) is the header arriving after the opening
     screen; the transform is the hide-on-scroll. */
  transition: transform 0.3s ease-in-out, opacity 0.6s ease 0.45s;
}
.landing__header > * { pointer-events: auto; }
.landing__header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .landing__header { transition: none; }
}
.landing__brand {
  font: 700 24px "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
/* The flat mark to the left of the wordmark, sized as in the mobile app's
   header (22px beside the 24px wordmark). */
.landing__brand-mark { display: block; height: 22px; width: auto; flex: none; }

/* Fills the panel; drawn on transparency so the red behind it is the
   model's background. Fades in once the model has loaded. pan-y leaves a
   vertical swipe to scroll the page on phones, sideways still rocks it. */
.landing__model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease 0.8s;   /* in once the red has closed around it */
  cursor: grab;
  touch-action: pan-y;
}
.landing__model.is-ready { opacity: 1; }
/* The MediaPipe skeleton drawn over the model (poseOverlay.js): same box,
   clicks and drags pass through to the model. */
.landing__pose { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 0.9s ease 0.8s; }
/* In on exactly the model's cue and timing (the canvas just before it), not
   the moment the model has loaded, which is behind the opening red. */
.landing__model.is-ready + .landing__pose { opacity: 1; }
.landing.is-loading .landing__pose { opacity: 0; }
/* The opening screen: the hero's red and grain, edge to edge, with the
   turning arrow (ArrowLoader.jsx) in the middle, over everything, header
   included, until the model has loaded. Then it closes in on the hero
   panel (Landing.jsx), and the page builds around the red: until then the
   header, the panel's border and the model are held back, and each comes
   in on its own delay once .is-loading lifts. Scrolling waits for it. */
.landing.is-loading { overflow: hidden; }
.landing.is-loading .landing__header { opacity: 0; }
.landing.is-loading .landing__model { opacity: 0; }
.landing__splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #BB2422;
}
.landing__splash.is-done { pointer-events: none; }
.landing__splash .arrow-loader { transition: opacity 0.3s ease; }
.landing__splash.is-done .arrow-loader { opacity: 0; }
.arrow-loader { display: block; width: clamp(160px, 18vw, 260px); aspect-ratio: 1; }
.landing__model.is-dragging { cursor: grabbing; }

/* The app's moving red mesh (HeroGradient.jsx), under the model and grain.
   The flat red above shows until the shader's first frame. */
.hero-gradient { position: absolute; inset: 0; pointer-events: none; }

/* ---------- The hero: red fading down into black, copy left, film right ---------- */

/* One centred column, top to bottom: the headline, the clips flooding in
   under it, the line about the quiz, and "Get started", exactly a screen
   tall whatever the window's shape. The text keeps its size and the clips
   take whatever height is left, so a short window shrinks the clips, never
   pushes the button off the bottom. (Below 540px tall it stops shrinking
   and the page simply scrolls.) The section's own colour is the page's
   black, so its foot runs straight into the black below with no seam. */
.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(64px + clamp(16px, 5vh, 64px)) 32px clamp(24px, 5.5vh, 64px);
  background: #0a0a0a;
  text-align: center;
  overflow: hidden;
}
/* The app's moving red mesh and grain, faded out top to bottom by a mask
   (many stops, so the ramp has no visible end line). It's gone by 80%, so
   the bottom fifth is the page's flat black, the same black the carousel
   section starts on. The grain is masked
   with it: left on the black it would darken it below #0a0a0a and leave a
   line where the next section starts. */
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #BB2422;   /* until the shader's first frame */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 10%, rgba(0, 0, 0, 0.85) 22%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.4) 46%, rgba(0, 0, 0, 0.22) 57%, rgba(0, 0, 0, 0.09) 67%, rgba(0, 0, 0, 0.02) 74%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 10%, rgba(0, 0, 0, 0.85) 22%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.4) 46%, rgba(0, 0, 0, 0.22) 57%, rgba(0, 0, 0, 0.09) 67%, rgba(0, 0, 0, 0.02) 74%, transparent 80%);
  pointer-events: none;
}
.hero__title {
  position: relative;
  z-index: 2;   /* over the clips and their glow, always */
  flex: none;
  margin: 0;
  max-width: 12.5em;
  /* Sized by whichever is tighter, the width or the height, so a wide
     short window doesn't get a headline that eats the clips' room. */
  font: 700 clamp(2.25rem, min(5.2vw, 7.4vh), 5.25rem)/1 "Alte Haas Grotesk", sans-serif;
  color: #fff;
  text-wrap: balance;
}
.hero__sub {
  position: relative;
  z-index: 2;   /* over the clips and their glow, always */
  flex: none;
  margin: 0 0 clamp(16px, 3.4vh, 34px);
  max-width: 36em;
  /* Body size, with room between the lines, so the paragraph reads as a
     calm aside under the headline rather than a second headline. */
  font: 400 clamp(1rem, 0.6rem + min(0.75vw, 1.35vh), 1.3rem)/1.55 "Alte Haas Grotesk", sans-serif;
  letter-spacing: 0;
  color: #fff;
  text-wrap: pretty;
}
/* "Get started": the same white pill as the waitlist buttons, with the
   rolling label and the fill that shrinks in on hover. */
.hero__cta {
  --roll-ease: cubic-bezier(0.625, 0.05, 0, 1);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: none;
  height: clamp(48px, 6.4vh, 56px);
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(60, 0, 0, 0.3));
  font: 500 17px/1.4 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  cursor: pointer;
}
.hero__cta-bg {
  position: absolute;
  inset: 0;
  border: 1px solid #fff;
  border-radius: inherit;
  background: #fff;
  transition: inset 0.6s var(--roll-ease), background-color 0.6s var(--roll-ease),
    border-color 0.6s var(--roll-ease), border-width 0.6s var(--roll-ease);
}
.hero__cta:hover .hero__cta-bg,
.hero__cta:focus-visible .hero__cta-bg {
  inset: 2px;
  border-width: 2px;
  border-color: rgba(10, 10, 10, 0.2);
  background: #f1eeec;
}
.hero__cta:hover .roll-text span,
.hero__cta:focus-visible .roll-text span,
.about__toggle:hover .roll-text span,
.about__toggle:focus-visible .roll-text span { transform: translateY(-1.3em); }
.hero__cta:focus-visible { outline: none; }
.hero__cta:focus-visible .hero__cta-bg { outline: 2px solid #fff; outline-offset: 1px; }

/* The film area: nothing of its own, the clips float straight on the
   hero's red-to-black. Not clipped, so the clips' glow can spill past its
   edges without a hard line. A size container for the still frame. */
.hero__stage {
  position: relative;
  /* The rest of the screen's height, after the text. */
  flex: 1 1 0;
  min-height: 150px;
  width: min(100%, 1040px);
  margin: clamp(14px, 3.4vh, 44px) 0 clamp(16px, 3.8vh, 48px);
  container-type: size;
}
.reel { position: absolute; inset: 0; }
/* One remembered clip: placed and sized by TheaterReel.jsx (left / top /
   width as fractions of the panel), 4:3 like the film. The shadow and the
   faint rim keep each picture distinct where it overlaps another. */
.flood__clip {
  position: absolute;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 22px 60px -14px rgba(0, 0, 0, 0.85);
  will-change: opacity, transform, filter;
}
/* Its ambient light: the 48 × 36 copy of the frame, stretched past the
   picture and heavily blurred. All glows sit under all clips and add up
   like light (screen) where they meet. */
.flood__glow {
  position: absolute;
  aspect-ratio: 4 / 3;
  height: auto;
  transform: scale(1.3);
  /* --glow-amount: the "Theater glow" dial (TheaterReel.jsx), 0 to 1. */
  filter: blur(54px) saturate(1.6) brightness(1.1) opacity(var(--glow-amount, 0.39));
  mix-blend-mode: screen;
  pointer-events: none;
}
/* Reduced motion: one still, in the middle. */
.flood__still {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(60%, 64cqh * 4 / 3);
  translate: -50% -50%;
  border-radius: 4px;
}

/* "About", right end of the header, and the paragraph it drops down: white
   text with nothing behind it, kept to the right. */
.about { position: relative; }
.about__toggle {
  --roll-ease: cubic-bezier(0.625, 0.05, 0, 1);
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border: 0;
  background: none;
  color: #fff;
  font: 500 17px/1.4 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.about__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
/* The sheet sits inside the header's stacking context at z-index -1: over
   the page, but under the header's own wordmark and toggle, and since the
   header bar is see-through, the bar reads as the top of the sheet. Fixed
   to the screen; it starts at the very top and pads past the 64px bar. */
.about__sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  padding: calc(64px + clamp(28px, 4vw, 48px)) 32px clamp(36px, 5vw, 56px);
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* Everything below the sheet, dimmed; a click on it closes the sheet. */
.about__scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.45);
}
/* Wide screens: a readable column held to the right, under the toggle.
   Phones: the full width between the 16px gutters. */
.about__text {
  max-width: 30em;
  margin: 0 0 0 auto;
  font: 500 clamp(18px, 1rem + 0.45vw, 22px)/1.45 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: pretty;
}

@media (max-width: 860px) {
  .hero { padding: calc(64px + clamp(20px, 4vh, 36px)) 16px clamp(24px, 4.5vh, 40px); }
}
@media (max-width: 640px) {
  .landing__header { padding: 0 16px; }
  .about__sheet { padding-left: 16px; padding-right: 16px; }
  .about__text { max-width: none; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cta-bg { transition: none; }
}
/* The aiming cursor (HeroCursor.jsx): hairlines through the pointer across the
   whole hero, and a small crosshair at it, in place of the system cursor.
   Text fields keep the I-beam so typing the email still reads as typing. */
.landing__hero[data-aim],
.landing__hero[data-aim] *,
.landing__header[data-aim],
.landing__header[data-aim] * { cursor: none !important; }
.landing__hero[data-aim] input,
.landing__hero[data-aim] textarea { cursor: text !important; }
.herocursor {
  position: absolute;
  inset: 0;
  z-index: 5;   /* over the headline and the button; clicks pass through */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.herocursor.is-on { opacity: 1; }
.herocursor svg { display: block; overflow: hidden; }
.herocursor line {
  stroke: #fff;
  stroke-width: 1;
  stroke-linecap: butt;
  shape-rendering: crispEdges;
}
.herocursor__lines > line { opacity: 0.5; }
.herocursor__centre { will-change: transform; }
.herocursor__mark {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.herocursor__mark line { stroke-width: 1.5; }
.herocursor.is-hot .herocursor__mark { transform: rotate(45deg) scale(1.6); }

/* The callout for a clicked back muscle (MuscleCallout.jsx): a hairline from
   the muscle to a card, white on the red like the rest of the hero. Above the
   model, under the aiming cursor; only the card takes clicks. */
.musclecall { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.musclecall__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.musclecall__line { fill: none; stroke: #fff; stroke-width: 1.25; stroke-linejoin: round; }
.musclecall__dot { fill: #BB2422; stroke: #fff; stroke-width: 2; }
.musclecall__card {
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  top: 50%;
  translate: 0 -50%;
  width: min(380px, 34vw);
  padding: 22px 24px 24px;
  border-radius: 28px;
  color: #fff;
  pointer-events: auto;
  /* Liquid glass: the red and the model show through, blurred and a little
     brighter, with a lit rim and a soft sheen along the top. */
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.01) 62%, rgba(255, 255, 255, 0.07) 100%);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 22px rgba(255, 255, 255, 0.04),
    0 18px 50px rgba(90, 0, 0, 0.28);
}
.musclecall__name {
  margin: 0 28px 10px 0;
  font: 700 clamp(1.35rem, 1rem + 0.9vw, 1.75rem)/1.1 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(120, 0, 0, 0.25);
}
.musclecall__purpose { margin: 0 0 18px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.95); }
.musclecall__h {
  margin: 0 0 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  color: #fff;
}
.musclecall__list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); }
.musclecall__list li::marker { color: rgba(255, 255, 255, 0.75); }
/* GlitchText.jsx: each letter is in the page from the start, hidden until it
   lands (so nothing reflows); the flickering glyph is laid over it. */
.gl-word { display: inline; }
.gl-c { position: relative; }
.gl-real { opacity: 0; }
.gl-c.is-on .gl-real, [data-glitch="done"] .gl-real { opacity: 1; }
.gl-fx {
  position: absolute; left: 0; right: 0; top: 0;
  text-align: center;
  pointer-events: none;
  text-shadow: -1.2px 0 rgba(0, 255, 240, 0.85), 1.2px 0 rgba(255, 30, 90, 0.9);
}
.gl-c.is-on .gl-fx { display: none; }

.musclecall__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}
.musclecall__close:hover { background: rgba(255, 255, 255, 0.3); }
.musclecall__close:active { transform: scale(0.92); }
.musclecall__close svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
/* On a phone the card sits along the bottom, so the headline and email field
   step aside while a muscle is open. */
.landing__corner { transition: opacity 0.3s ease; }
@media (max-width: 720px) {
  .landing__hero.is-picked .landing__corner { opacity: 0; pointer-events: none; }
  .musclecall__card { right: 16px; left: 16px; top: auto; bottom: 20px; translate: none; width: auto; padding: 18px 18px 20px; }
}

/* The hero's signup, set like suna.health's: the field and the button are
   two separate boxes side by side, not one shared outline. The field is a
   softly filled box with a thin border; the button stands apart with a soft
   shadow. Pill corners (999px) like Suna's. */
.landing__cta-wrap { pointer-events: auto; width: min(100%, 460px); }
.herowl {
  display: flex;
  gap: 12px;
}
.herowl__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font: 500 16px "Alte Haas Grotesk", sans-serif;   /* 16px: iOS zooms into anything smaller */
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.herowl__input:focus { border-color: #fff; background: rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }
.herowl.is-error .herowl__input { border-color: #fff; box-shadow: 0 0 0 3px rgba(90, 0, 0, 0.55); }
.herowl__input::placeholder { color: rgba(255, 255, 255, 0.7); }
/* The button behaves like suna.health's "Reserve your Suna": on hover or
   keyboard focus its fill shrinks in 2px, its border thickens from 1px to 2px
   and its tone shifts (.herowl__button-bg), while the label rolls up letter by
   letter (.roll-text), all over 0.6s on the site's own curve. */
.herowl__button {
  display: flex;
  align-items: center;
  justify-content: center;   /* the label centred when the button stretches (phones) */
  --roll-ease: cubic-bezier(0.625, 0.05, 0, 1);
  position: relative;
  flex-shrink: 0;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  filter: drop-shadow(0 6px 12px rgba(60, 0, 0, 0.22));   /* stands apart from the field */
  font: 500 15px/1.4 "Alte Haas Grotesk", sans-serif;   /* the headline's weight; 600 fell back to a blocky bold */
  letter-spacing: -0.03em;
  color: #0a0a0a;
  cursor: pointer;
}
.herowl__button-bg {
  position: absolute;
  inset: 0;
  border: 1px solid #fff;
  border-radius: inherit;
  background: #fff;
  transition: inset 0.6s var(--roll-ease), background-color 0.6s var(--roll-ease),
    border-color 0.6s var(--roll-ease), border-width 0.6s var(--roll-ease);
}
.roll-text { position: relative; z-index: 1; display: flex; overflow: hidden; }
.roll-text span {
  display: inline-block;
  white-space: pre;
  text-shadow: 0 1.3em currentColor;   /* the copy that rolls in from below */
  transition: transform 0.6s var(--roll-ease);
}
.herowl__button:hover .herowl__button-bg,
.herowl__button:focus-visible .herowl__button-bg {
  inset: 2px;
  border-width: 2px;
  border-color: rgba(10, 10, 10, 0.2);
  background: #f1eeec;
}
.herowl__button:hover .roll-text span,
.herowl__button:focus-visible .roll-text span,
.waitlist__button:hover .roll-text span,
.waitlist__button:focus-visible .roll-text span { transform: translateY(-1.3em); }
.herowl__button:focus-visible { outline: none; }
.herowl__button:focus-visible .herowl__button-bg { outline: 2px solid #fff; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  .herowl__button-bg, .waitlist__button-bg, .roll-text span { transition: none; }
}
.herowl__button:disabled { opacity: 0.7; cursor: default; }
.herowl__done { margin: 0; color: #fff; font: 700 clamp(1rem, 0.85rem + 0.5vw, 1.25rem)/1.2 "Alte Haas Grotesk", sans-serif; }
@media (max-width: 640px) {
  .landing__cta-wrap { width: 100%; }   /* the corner block's own width (16px gutters), not 100vw, which counts the scrollbar */
}

/* The old page's second fold: the dot grid on black, a screen tall. */
/* ---------- FlipText's letters (the waitlist's title, the quiz) ---------- */
.flip__word {
  /* clips each word's letters as they flip up (see FlipText.jsx); top-aligned
     so the lines stay a line-height apart, as in the carousel's titles */
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  padding-block: .12em;
  margin-block: -.12em;
  perspective: 900px;
}
.flip__letter {
  display: inline-block;
  white-space: pre;
  transform-origin: 50% 60%;
  backface-visibility: hidden;
}

/* A screen of pinned content, plus a screen or so of scrolling for each
   slide the carousel has past its first (--slides, set in Landing.jsx): with
   more than one, while the page scrolls through this track the pin below
   stays put and the scroll steps the carousel on. It has one slide now, so
   this is one screen. svh, not dvh: the small-viewport height never changes
   as a phone's toolbar shows or hides, so the track can't resize mid-scroll. */
.landing__grid {
  position: relative;
  height: calc(100svh + (var(--slides, 1) - 1) * 105svh);
}
/* The feature slide's card (FeatureCarousel.jsx): the same face as the fan's
   cards in the section under it (.shots__card): near-white paper with two
   soft glows, rose and apricot, rising from the bottom corners. */
.vx-card--paper {
  background:
    radial-gradient(135% 82% at 100% 100%, rgba(224, 97, 122, 0.72), rgba(224, 97, 122, 0.26) 52%, rgba(224, 97, 122, 0) 100%),
    radial-gradient(110% 68% at 0% 100%, rgba(237, 163, 92, 0.66), rgba(237, 163, 92, 0) 100%),
    linear-gradient(180deg, #faf9f6 0%, #f6f2ec 100%);
}
/* Fills the screen, with the header (when showing) laid over its faded top,
   so nothing here moves as the header slides in and out. clip, not hidden:
   a hidden box can still be scrolled by focus, and the carousel's waiting
   photos hang past its edges. */
.landing__grid-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  overflow: clip;
}
/* The feature carousel sits straight on the dots, as wide as the hero frame
   and in the proportions of the Framer original (1200 × 551). */
.landing__features {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  pointer-events: none;
}
.landing__features-frame {
  width: min(100%, 1100px);
  aspect-ratio: 1200 / 551;
  /* The proportions alone make a squat strip on a mid-width window; this
     floor keeps the card a readable size (never past the pinned screen). */
  min-height: min(460px, 100%);
  pointer-events: auto;
}
/* Below 900px the side-by-side layout gets cramped, so the carousel
   switches to the stacked one (text over photo) here, in a frame narrow
   enough (520px at most) that the carousel's own phone layout (600px of
   gallery width) always kicks in with it. */
@media (max-width: 900px) {
  .landing__features { padding: 16px; }
  .landing__features-frame {
    width: min(100%, 520px);
    aspect-ratio: 3 / 5;
    max-height: 100%;
    min-height: min(560px, 100%);
  }
}

/* ---------- Feature carousel (FeatureCarousel.jsx, after Framer's Verticalix) ---------- */

.verticalix-gallery {
  width: 100%;
  height: 100%;
  position: relative;
  /* No clipping here: with no backdrop, the blurred photos waiting above and
     below drift past the frame onto the grid; the section clips them. */
  container-type: size;
  outline-offset: -4px;
  isolation: isolate;
}
.verticalix-gallery * { box-sizing: border-box; }
/* Centred on the photo (the original sat it a little low, at -35%, but it
   had no body copy to make the block this tall). */
.verticalix-gallery .vx-copy { position: absolute; left: 5.2%; top: 50%; width: 52%; transform: translateY(-50%); z-index: 2; }
/* The section's heading, as a label: a solid black chip with paper caps,
   shaped like the header's "Enter code" button (10px corners) but not one. */
.verticalix-gallery .vx-heading { width: fit-content; margin: 0 0 3cqh; padding: 0.45em 0.8em; border-radius: 10px; background: var(--ink); font: 700 clamp(0.95rem, 1.6cqw, 1.3rem)/1 "Alte Haas Grotesk", sans-serif; letter-spacing: -0.01em; text-transform: uppercase; color: var(--paper); }
.verticalix-gallery .vx-title { margin: 0; font-family: "Alte Haas Grotesk", Arial, Helvetica, sans-serif; font-weight: 700; letter-spacing: -.075em; line-height: 1.08; }
/* The body copy under the title: its size comes from the component's
   dials; the cell holds four lines so the arrows below stay put. */
.verticalix-gallery .vx-body { display: grid; margin-top: 2.5cqh; }
/* Invisible copies of every slide's title and body, sharing the live one's
   grid cell so it's always as tall as the tallest. */
.verticalix-gallery .vx-sizer { grid-area: 1 / 1; visibility: hidden; }
.verticalix-gallery .vx-body p { grid-area: 1 / 1; margin: 0; font-family: "Alte Haas Grotesk", sans-serif; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-muted); text-wrap: pretty; }
.verticalix-gallery .vx-controls { display: flex; align-items: center; gap: 12px; margin-top: 4cqh; }
.verticalix-gallery .vx-pagination { display: flex; align-items: center; gap: .6em; margin-left: clamp(8px, 2cqw, 32px); font-size: clamp(16px, 2cqw, 26px); line-height: 1.35; font-variant-numeric: tabular-nums; letter-spacing: -.025em; flex-shrink: 0; }
.verticalix-gallery .vx-button { position: relative; display: grid; place-items: center; padding: 0; flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: var(--vx-ink); cursor: pointer; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; transition: transform .25s, color .35s, border-color .35s; }
.verticalix-gallery .vx-button::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--accent); transform: translateY(105%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); z-index: -1; }
.verticalix-gallery .vx-button:hover::before,
.verticalix-gallery .vx-button:focus-visible::before { transform: translateY(0); }
.verticalix-gallery .vx-button:hover,
.verticalix-gallery .vx-button:focus-visible { color: #fff; border-color: var(--accent); }
.verticalix-gallery .vx-button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.verticalix-gallery .vx-button:active { transform: scale(.93); }
/* The photos' stage: the whole carousel on wide screens (the text floats
   over its left side), the space under the text on phones. Only the
   current photo takes clicks (set inline), so the stage lets them through. */
.verticalix-gallery .vx-reel { position: absolute; inset: 0; pointer-events: none; }
.verticalix-gallery .vx-photo { position: absolute; right: 5.2%; top: 50%; }
/* The arrows are 72px at full size; shrink them with the gallery so they
   don't crowd a tablet-width frame. */
@container (max-width: 1000px) {
  .verticalix-gallery .vx-button { width: max(44px, 7.2cqw) !important; height: max(44px, 7.2cqw) !important; }
}
@container (max-width: 600px) {
  .verticalix-gallery .vx-copy { position: relative; left: auto; top: auto; width: auto; transform: none; padding: min(7cqw, 3cqh) 7% 0; }
  .verticalix-gallery .vx-heading { font-size: clamp(0.95rem, 4.2cqw, 1.2rem); margin-bottom: 2cqh; }
  .verticalix-gallery .vx-body { margin-top: 1.5cqh; }
  .verticalix-gallery .vx-controls { margin-top: 2.5cqh; gap: 10px; }
  .verticalix-gallery .vx-button { width: clamp(40px, 8cqh, 48px) !important; height: clamp(40px, 8cqh, 48px) !important; }
  /* Fills what the text leaves, but never less than a usable photo. */
  .verticalix-gallery .vx-reel { position: relative; inset: auto; flex: 1; min-height: 200px; margin: 4cqw 0 3cqw; }
  /* Under the photo, arrows at the right and the count at the left, so the
     thumb that holds the phone is right beside them. */
  .verticalix-gallery .vx-controls--below { margin-top: 0; padding: 0 7% 5cqw; gap: 12px; justify-content: flex-end; }
  .verticalix-gallery .vx-controls--below .vx-pagination { order: -1; margin: 0 auto 0 0; }
  /* Its width and height come from the component's phone dials. */
  .verticalix-gallery .vx-photo { right: 7%; top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .verticalix-gallery .vx-button,
  .verticalix-gallery .vx-button::before { transition: none; }
}


/* ---------- App shots (AppShots.jsx): three of the app's screens in a fan, between the carousel and the waitlist ---------- */

/* A screen tall with the fan centred in it, like the waitlist below, so the
   carousel's last arrow lands with the cards in the middle of the screen.
   --r is a card's width: everything in the fan is measured in it. It gives
   way to a narrow window (the side cards then run off the edges) and to a
   short one (so the fan and its arrows still fit). */
.shots {
  --r: max(180px, min(340px, 70vw, calc((100svh - 250px) * 0.6)));
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0;
  overflow: hidden;
  overflow: clip;
}
.shots__fan {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  outline: none;
}
/* The fan is real 3D: the stage gives the depth, and each card's place (set
   inline, AppShots.jsx) moves and turns it in that space. */
.shots__stage {
  position: relative;
  width: 100%;
  height: calc(var(--r) * 5 / 3 + 24px);
  perspective: 1700px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.shots__deck {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
  /* The deck is a sheet at depth 0, in front of the side cards (which stand
     further back), so it would take their clicks; it lets them through. */
  pointer-events: none;
}
.shots__slot {
  pointer-events: auto;
  position: absolute;
  left: calc(50% - var(--r) / 2);
  top: calc(50% - var(--r) * 5 / 6);
  width: var(--r);
  height: calc(var(--r) * 5 / 3);
  transform-style: preserve-3d;
}
.shots__lift { position: absolute; inset: 0; transform-style: preserve-3d; }
/* Everything inside a card is sized in cqw (1% of the card's width), so a
   card is the same picture at any size. The face is near-white paper with
   two soft glows rising from the bottom corners, after the app's Mobility
   and Stiffness cards (rose and apricot, swapped between the two); the
   island's takes its green from the tree on it. */
.shots__card {
  --glow: 224, 97, 122;
  --glow-2: 237, 163, 92;
  container-type: inline-size;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--r) * 0.095);
  background:
    radial-gradient(135% 82% at 100% 100%, rgba(var(--glow), 0.72), rgba(var(--glow), 0.26) 52%, rgba(var(--glow), 0) 100%),
    radial-gradient(110% 68% at 0% 100%, rgba(var(--glow-2), 0.66), rgba(var(--glow-2), 0) 100%),
    linear-gradient(180deg, #faf9f6 0%, #f6f2ec 100%);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.5), 0 6px 14px -8px rgba(0, 0, 0, 0.22);
}
.shots__card--stiffness { --glow: 237, 163, 92; --glow-2: 224, 97, 122; }
.shots__card--island { --glow: 131, 196, 141; --glow-2: 237, 163, 92; }
/* What's on the card (copy and phone), as one layer that swells as the card
   changes places. */
.shots__media { position: absolute; inset: 0; }
/* Darkens the cards standing behind. */
.shots__shade { position: absolute; inset: 0; background: #000; pointer-events: none; }
.shots__copy { padding: 9cqw 9cqw 0; }
.shots__title {
  margin: 0;
  /* always two lines (the break is in AppShots.jsx) */
  font: 700 9.6cqw/1.02 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.06em;
  color: var(--ink);
  white-space: nowrap;
}
.shots__body {
  margin: 3.2cqw 0 0;
  font: 500 5cqw/1.36 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  text-wrap: pretty;
}
/* The phone starts a fixed way down every card (whatever the copy's length)
   and runs off the bottom. It is a container too: inside it, cqw is 1% of
   the phone's width, which is what its corners are set in. */
.shots__phone {
  container-type: inline-size;
  position: absolute;
  left: 16cqw;
  top: 60cqw;
  width: 68cqw;
}
.shots__bezel {
  padding: 3.4cqw;
  border-radius: 17.6cqw;
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 0.5cqw #2a2a2c,
    0 0 0 0.5cqw #c9c5be,
    0 0 0 0.8cqw rgba(17, 17, 17, 0.18),
    0 10cqw 22cqw -8cqw rgba(60, 25, 10, 0.35);
}
.shots__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14.3cqw;
}
/* Previous and next, side by side under the fan. */
.shots__arrows { display: flex; gap: 16px; }
.shots__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shots__arrow:hover { transform: scale(1.07); }
.shots__arrow:active { transform: scale(0.93); }
.shots__arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shots__fan:focus-visible .shots__stage { outline: 2px solid var(--rule); outline-offset: 8px; border-radius: 24px; }
@media (prefers-reduced-motion: reduce) {
  .shots__arrow { transition: none; }
}


/* ---------- Waitlist (WaitlistSignup.jsx): email signup under the carousel ---------- */

/* A screen tall, with the block centred in it, so when the page lands here
   (the carousel's last arrow scrolls to the top of this section) the text
   sits in the middle of the screen with as much room below as above. */
.waitlist {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 32px;
  text-align: center;
}
.waitlist__inner { width: min(100%, 640px); margin: 0 auto; }
.waitlist__eyebrow {
  margin: 0 0 14px;
  font: 700 clamp(1.1rem, 1.6vw, 1.35rem)/1.05 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--accent);
}
.waitlist__title {
  margin: 0;
  font: 500 clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem)/1 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-wrap: balance;   /* two even lines, never one word left alone on the second */
}
/* The field and the button are two separate boxes side by side (as on
   suna.health), on phones stacked. Pill corners (999px), like Suna's. */
.waitlist__form,
.waitlist__done {
  margin: 36px auto 0;
  width: min(100%, 480px);
}
.waitlist__form {
  position: relative;
  display: flex;
  gap: 12px;
}
.waitlist__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font: 500 16px "Alte Haas Grotesk", sans-serif;   /* 16px: iOS zooms into anything smaller */
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.waitlist__input:focus { border-color: rgba(17, 17, 17, 0.5); background: #fff; box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06); }
.waitlist__input::placeholder { color: rgba(17, 17, 17, 0.42); }
.waitlist__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* The same hover as the hero's button (and suna.health's): the fill shrinks
   in 2px, its border thickens to 2px and its tone shifts, and the label rolls
   up letter by letter, over 0.6s on their curve. */
.waitlist__button {
  display: flex;
  align-items: center;
  justify-content: center;   /* the label centred when the button stretches (phones) */
  --roll-ease: cubic-bezier(0.625, 0.05, 0, 1);
  position: relative;
  flex-shrink: 0;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 15px/1.4 "Alte Haas Grotesk", sans-serif;   /* the heading's weight, not the bold it fell back to at 600 */
  letter-spacing: -0.03em;
  color: #fff;
  cursor: pointer;
}
.waitlist__button-bg {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: inherit;
  background: var(--accent);
  transition: inset 0.6s var(--roll-ease), background-color 0.6s var(--roll-ease),
    border-color 0.6s var(--roll-ease), border-width 0.6s var(--roll-ease);
}
.waitlist__button:hover .waitlist__button-bg,
.waitlist__button:focus-visible .waitlist__button-bg {
  inset: 2px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--accent-deep);
}
.waitlist__button:focus-visible { outline: none; }
.waitlist__button:focus-visible .waitlist__button-bg { outline: 2px solid var(--accent); outline-offset: 3px; }
.waitlist__button:disabled { opacity: 0.7; cursor: default; }
.waitlist__done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 22px;
  border: 1px solid rgba(86, 199, 149, 0.35);
  border-radius: 16px;
  background: rgba(86, 199, 149, 0.08);
  font: 500 15px/1.35 "Alte Haas Grotesk", sans-serif;
  color: var(--ink-muted);
  text-align: left;
}
.waitlist__done strong { color: var(--ink); font-weight: 600; }
.waitlist__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #56c795;
  color: var(--ink);
}
.waitlist__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.5);
}
.waitlist__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.waitlist__note a:hover { color: var(--ink); }
.waitlist__note.is-error { color: var(--accent-deep); }

@media (max-width: 640px) {
  .waitlist { padding: 72px 16px; }
  .waitlist__form { flex-direction: column; gap: 10px; }
  .waitlist__input {
    flex: none;            /* in a column, flex: 1's zero basis would override the height */
    height: 54px;
    text-align: center;    /* the address (and its placeholder) centred, over the centred button */
  }
  .waitlist__button { height: 54px; }
  .waitlist__done { padding: 16px 18px; }
}

/* ---------- Landing footer (SiteFooter.jsx): medical notice + legal links ---------- */

/* The page's black, its second colour, closing it off: the wordmark and
   medical notice on the left, then a column per group of links, each under
   a bold heading, the rest in muted paper. All of it at the © line's 13px;
   only the wordmark is bigger. */
.site-footer {
  --footer-ink: var(--paper);
  --footer-muted: rgba(var(--paper-rgb), 0.6);
  --footer-rule: rgba(var(--paper-rgb), 0.14);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 32px 32px;
  background: var(--ink);
  color: var(--footer-muted);
  font: 400 13px/1.5 "Alte Haas Grotesk", -apple-system, "Segoe UI", sans-serif;
}
.site-footer__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
}
.site-footer__brand {
  display: block;
  margin-bottom: 28px;
  font: 700 clamp(26px, 2.6vw, 34px)/1 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.03em;
  color: var(--footer-ink);
}
.site-footer__notice { margin: 0 0 10px; max-width: 46ch; }
.site-footer__notice--urgent { color: var(--footer-ink); font-weight: 600; }
.site-footer__heading {
  margin: 2px 0 16px;
  font: 700 13px "Alte Haas Grotesk", sans-serif;
  color: var(--footer-ink);
}
.site-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--footer-ink); }
/* The links' hover is the buttons' (RollText): each label rolls up letter by
   letter over 0.6s on suna.health's curve, in place of the underline. */
.site-footer a { --roll-ease: cubic-bezier(0.625, 0.05, 0, 1); display: inline-block; }
.site-footer .roll-text { line-height: 1.4; }
.site-footer a:hover .roll-text span,
.site-footer a:focus-visible .roll-text span { transform: translateY(-1.3em); }
/* Letters can't wrap, and a long link ("Consumer Health Data Privacy Policy")
   would overflow a phone's narrow column; there, and on touch screens where
   nothing hovers, the label is plain wrapping text. */
@media (max-width: 640px), (hover: none) {
  .site-footer .roll-text { display: inline; overflow: visible; }
  .site-footer .roll-text span { display: inline; white-space: normal; text-shadow: none; transition: none; }
  .site-footer a:hover .roll-text span,
  .site-footer a:focus-visible .roll-text span { transform: none; }
  .site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.site-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.site-footer__base {
  width: min(100%, 1100px);
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--footer-rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

@media (max-width: 760px) {
  .site-footer { padding: 48px 16px 24px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .site-footer__lead { grid-column: 1 / -1; }
  .site-footer__heading { margin-bottom: 12px; }
}

/* ---------- Creator access (CreatorAccess.jsx): the header's "Enter code" and its popup ---------- */

/* Right-aligned in the header, whatever the brand's alignment. */
.landing__login {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: 600 15px/1 "Alte Haas Grotesk", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.landing__login:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.landing__login:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { .landing__login { right: 16px; padding: 8px 14px; } }

/* The popup: a pane of frosted glass over the red, the model blurred
   through it. The overlay behind it fades its colour, not its opacity: an
   ancestor with opacity below 1 cuts the pane off from the page, so the
   blur would only snap on once the fade had finished. Corners and the white-on-red button match the hero's
   signup and the carousel card (16px outside, 10px inside). */
.creator-login {
  position: fixed;
  inset: 0;
  z-index: 20;   /* over the page, its header and the opening screen */
  /* The box's auto margins centre it; when it's taller than the screen
     (the account step on a short phone) it starts at the top and the
     overlay scrolls, rather than its ends being cut off. */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: rgba(40, 0, 0, 0.28);
}
.creator-login__box {
  position: relative;
  flex-shrink: 0;
  margin: auto 0;
  width: min(100%, 400px);
  box-sizing: border-box;
  padding: 22px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  /* The frost comes in with the fade, not after it. */
  animation: creator-frost 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  color: #fff;
  font-family: "Alte Haas Grotesk", sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 30px 80px -24px rgba(40, 0, 0, 0.6);
}
/* The title on the left, the close button on the right, on one line and
   inside the same edges as the fields. */
@keyframes creator-frost {
  from { -webkit-backdrop-filter: blur(0px) saturate(100%); backdrop-filter: blur(0px) saturate(100%); }
  to { -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
}
.creator-login__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.creator-login__title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.creator-login__text { margin: 0 0 18px; font-size: 15px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.creator-login__field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 500 16px "Alte Haas Grotesk", sans-serif;   /* 16px: iOS zooms into anything smaller */
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.creator-login__field::placeholder { color: rgba(255, 255, 255, 0.6); }
.creator-login__field:focus {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
/* Spacing inside the line, so it opens and closes with it. */
.creator-login__error { margin: 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; color: #ffe1dc; }
.creator-login__error span { display: block; padding-bottom: 10px; }
/* The box eases to its content's height (AutoHeight in CreatorAccess.jsx). */
.creator-login__sizer { overflow: hidden; margin: -4px; padding: 4px; box-sizing: content-box; }
.creator-login__reveal { overflow: hidden; }
.creator-login__field--code { text-transform: uppercase; letter-spacing: 0.12em; }
.creator-login__field--code::placeholder { text-transform: none; letter-spacing: normal; }
/* Create account | Log in, with a bar under the one that's on. */
.creator-login__modes { display: flex; gap: 22px; margin: 0 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.creator-login__mode {
  position: relative;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 600 15px/1 "Alte Haas Grotesk", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
}
.creator-login__mode:hover, .creator-login__mode.is-active { color: #fff; }
.creator-login__mode:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.creator-login__mode-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: #fff; }
/* The two consents, under the password: small print on the glass, each
   with its own box. */
.creator-login__consents { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.creator-login__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.creator-login__consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.creator-login__consent input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08) center / 12px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.creator-login__consent input:checked {
  border-color: #fff;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23BB2422' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.creator-login__consent input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.creator-login__submit {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 15px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #BB2422;
  font: 700 16px/1 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.creator-login__submit:not(:disabled):hover { box-shadow: 0 10px 28px -12px rgba(90, 0, 0, 0.55); }
.creator-login__submit:not(:disabled):active { transform: scale(0.98); }
.creator-login__submit:disabled { opacity: 0.4; cursor: default; }
.creator-login__submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.creator-login__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px -4px 0;   /* the icon's right edge lines up with the fields' */
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.creator-login__close:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.creator-login__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .landing__login, .creator-login__field, .creator-login__submit { transition: none; }
  .creator-login__box { animation: none; }
}

/* ---------- Hero redesign: "Life was meant to be lived in motion" ---------- */

/* The header keeps the app's moving red on a strip of its own; the rest of
   the page is black. */
.landing__header--sky { isolation: isolate; margin-bottom: 0; overflow: hidden; }
.landing__header-sky { position: absolute; inset: 0; z-index: -1; background: #BB2422; pointer-events: none; }

/* Laid out like superpower.com's hero (measured at 1440 wide, sizes scale
   with the window), on the page's own black: the copy down the left,
   vertically centred and lined up with the header's wordmark, and the film
   on the right. */
.mhero {
  height: calc(100svh - 64px);
  min-height: 560px;
  display: flex;
  background: #0a0a0a;
}
.mhero__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mhero__body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0 32px;   /* the header's own side padding */
}
.mhero__copy {
  position: relative;
  z-index: 2;
  width: min(42vw, 640px);
  color: #fff;
  font-family: "Alte Haas Grotesk", -apple-system, sans-serif;
}
/* The site's own Alte Haas Grotesk, in its regular weight, all white. */
.mhero__title {
  margin: 0;
  max-width: 10.5em;
  font-size: clamp(2.25rem, 3.9vw, 4.25rem);
  line-height: 1.07;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.mhero__sub {
  margin: clamp(12px, 1.05vw, 18px) 0 0;
  max-width: 28em;
  font-size: clamp(15px, 1.3vw, 21px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
.mhero__actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.6vw, 28px);
  margin-top: clamp(20px, 2.1vw, 36px);
}
/* "Get started": a white pill with the rolling label and the fill that
   shrinks in on hover, as before, at Superpower's button size. */
.mhero__cta {
  --roll-ease: cubic-bezier(0.625, 0.05, 0, 1);
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(40px, 2.85vw, 48px);
  padding: 0 clamp(18px, 1.3vw, 24px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 400 clamp(14px, 1.04vw, 17px)/1.4 "Alte Haas Grotesk", sans-serif;
  color: #0a0a0a;
  cursor: pointer;
}
.mhero__cta-bg {
  position: absolute;
  inset: 0;
  border: 1px solid #fff;
  border-radius: inherit;
  background: #fff;
  transition: inset 0.6s var(--roll-ease), background-color 0.6s var(--roll-ease),
    border-color 0.6s var(--roll-ease), border-width 0.6s var(--roll-ease);
}
.mhero__cta:hover .mhero__cta-bg,
.mhero__cta:focus-visible .mhero__cta-bg {
  inset: 2px;
  border-width: 2px;
  border-color: rgba(10, 10, 10, 0.2);
  background: #f1eeec;
}
.mhero__cta:hover .roll-text span,
.mhero__cta:focus-visible .roll-text span { transform: translateY(-1.3em); }
.mhero__cta:focus-visible { outline: none; }
.mhero__cta:focus-visible .mhero__cta-bg { outline: 2px solid #fff; outline-offset: 1px; }
/* The film, on the right, centred about 72% across like their graphic. */
.mhero__film {
  position: absolute;
  top: 9%;
  bottom: 9%;
  left: 46%;
  right: 32px;
}
@media (prefers-reduced-motion: reduce) {
  .mhero__cta-bg { transition: none; }
}
/* Narrow windows: the copy, then the film under it. */
@media (max-width: 860px) {
  .mhero { height: auto; min-height: 0; }
  .mhero__body { flex-direction: column; align-items: stretch; padding: 40px 16px 32px; gap: 28px; }
  .mhero__copy { width: auto; }
  .mhero__film { position: relative; inset: auto; aspect-ratio: 4 / 3; }
}
.mreel { position: absolute; inset: 0; }
.mreel__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease-in-out;
}
.mreel__clip.is-front { opacity: 1; }


/* ---------- Hero: the magazine page ---------- */

/* Copied from a magazine's interview opener, landscape page: black on
   paper, one centred column a little above the middle. Every size is in
   --u, 1% of the window's width, held back on short windows so the column always fits on one
   screen. All of it is Alte Haas Grotesk. */
.mag {
  --u: min(1vw, 1.75svh);
  position: relative;
  height: 100svh;
  min-height: 420px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  overflow: hidden;
}
.mag__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Near the top of the screen, leaving the rest of it for Ambit on his
     platform and the arrow. */
  padding-top: max(28px, 6svh);
}
.mag__platform {
  position: absolute;
  left: 50%;
  /* Never so low that "Say Hi to Ambit" under it would touch it. */
  bottom: max(7.5svh, 66px);
  width: calc(23 * var(--u));
  min-width: 200px;
  translate: -50% 0;
}
.mag__platform svg { display: block; width: 100%; height: auto; }
/* Ambit's canvas, sized to match AmbitStage.jsx's camera (10.4 of his units
   wide, 7.3 tall; one unit is 0.1885 of the platform's width): 1.96 times
   the platform's width and 1.38 of it tall, with room for his box's hang
   tab, its front swinging open to the side, his backflip, and the box
   falling away under him. Its bottom (below the platform's own) is set so
   his feet, 1.5 units up it, land on the middle of the platform's top.
   Fades in once the model has loaded. */
.ambit {
  position: absolute;
  left: 50%;
  bottom: -34.2%;
  width: 196%;
  aspect-ratio: 10.4 / 7.3;
  translate: -50% 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ambit.is-ready { opacity: 1; }
.ambit__canvas { display: block; width: 100%; height: 100%; }
/* His box, as a button (Landing.jsx): a clear one over the box in his
   canvas, which is 4.3 of his units tall and 2.9 wide with its hang tab and
   stands on the middle of the platform's top. "Tap to Open" floats under it,
   where the platform comes up once it is opened, at half strength. */
.mag__box {
  position: absolute;
  left: 50%;
  bottom: 52%;
  width: 56%;
  aspect-ratio: 2.9 / 4.4;
  translate: -50% 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mag__box:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.mag__box-hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.9 * var(--u));
  translate: -50% 0;
  font: 700 max(12px, calc(1.45 * var(--u)))/1 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.03em;
  white-space: nowrap;
  opacity: 0.5;
  animation: mag-float 2.4s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .mag__box:hover .mag__box-hint { opacity: 0.8; }
}
.mag__box:focus-visible .mag__box-hint { opacity: 0.8; }
@keyframes mag-float {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}
/* "Say Hi to Ambit", under the platform, in the arrow's place. */
.mag__hi {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(8px, 1.2svh);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.mag__hi-button { height: 46px; padding: 0 24px; pointer-events: auto; }
.mag__scroll-slot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(8px, 1.2svh);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.mag__scroll {
  pointer-events: auto;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.mag__scroll-ring {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  animation: mag-bob 1.6s ease-in-out infinite alternate;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.mag__scroll:hover .mag__scroll-ring,
.mag__scroll:focus-visible .mag__scroll-ring { background: var(--ink); color: var(--paper); }
.mag__scroll:focus-visible { outline: none; }
@keyframes mag-bob {
  from { transform: translateY(-3px); }
  to { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .mag__scroll-ring, .mag__box-hint { animation: none; }
}
.mag__stack p, .mag__title { margin: 0; }
.mag__kicker,
.mag__role {
  font: 700 max(13px, calc(2.85 * var(--u)))/1 "Alte Haas Grotesk", sans-serif;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
/* The name: Bold capitals stretched to about three times their height, so
   they read as the print's tall, narrow, heavy letters. A thin stroke of
   the same black gives them the print's weight. The stretch is a
   transform, which doesn't take up room, so the box is given the stretched
   height itself and the letters are stretched from its middle. */
.mag__title {
  --size: calc(8.4 * var(--u));
  --stretch: 2.25;
  --gap-above: 3.2;
  --gap-below: 3.6;
  --kern: 0.1;
  height: calc(var(--size) * 0.72 * var(--stretch));
  margin: calc(var(--gap-above) * var(--u)) 0 calc(var(--gap-below) * var(--u));
  font: 700 var(--size)/1 "Alte Haas Grotesk", sans-serif;
  letter-spacing: calc(var(--kern) * 1em);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.mag__title-ink {
  display: block;
  line-height: 0.72;   /* about the cap height, so the box is the letters */
  transform: scaleY(var(--stretch));   /* Landing.jsx animates this up from 1 */
  transform-origin: 50% 50%;
  -webkit-text-stroke: calc(0.05 * var(--size)) var(--ink);
  paint-order: stroke fill;
  padding-left: calc(var(--kern) * 1em);    /* balances the spacing after the last letter */
}
@media (max-width: 640px) {
  /* Phones: everything at about twice the desktop scale, so AMBIT spans
     most of the width, and the column sits closer to the middle. */
  .mag { --u: 2.1vw; }
  /* The platform is 60vw wide and stands this far off the bottom (room for
     the button under it). His box reaches 58.5vw above that (its hang tab's
     top), and the column of type is 54.8vw tall, so the column sits in the
     middle of what is left above the box. A phone's browser shows anything
     from about 550 to 750px of height, and this keeps the type clear of the
     box at all of them (set from the middle of the screen, as it was, the
     two met on the shorter ones). */
  .mag { --plat-bottom: max(7.5svh, 76px); align-items: flex-start; }
  .mag__stack { margin-top: 0; padding-top: max(14px, calc((100svh - var(--plat-bottom) - 113.3vw) / 2)); }
  .mag__platform { width: 60vw; bottom: var(--plat-bottom); }
  /* A thumb's size, and clear of the phone's home bar. */
  .mag__box-hint { font-size: 13px; top: calc(100% + 8px); }
  .mag__hi, .mag__scroll-slot { bottom: max(10px, 1.2svh, env(safe-area-inset-bottom)); }
  .mag__hi-button { height: 52px; padding: 0 30px; font-size: 16px; }
}

/* ---------- Ambit peering in at the "Stretching Supervision" card (AmbitPeek.jsx) ---------- */

/* At the card's lower-left corner, his body out on the paper and his head
   leaning in over the card's edge. Sized by the card's height and kept to
   the render's proportions; the streaks' SVG is the same box, in the
   render's pixels, and runs past it. */
.ambit-peek {
  position: absolute;
  left: -13%;
  bottom: -3%;
  height: 60%;
  aspect-ratio: 520 / 642;
  z-index: 1;
  pointer-events: none;
}
/* The part that moves (springs in from the corner); the box above stays
   put so the page can tell when he's on screen. */
.ambit-peek__body { position: absolute; inset: 0; transform-origin: 0% 100%; }
.ambit-peek__img { display: block; width: 100%; height: 100%; user-select: none; }
.ambit-peek__streaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.65));
}
/* The stacked (phone) carousel: the card fills the width, so he stays
   smaller and closer in, clear of the screen's edge. */
@container (max-width: 600px) {
  .ambit-peek { left: -4%; bottom: 6%; height: 48%; }
}
