/* ==========================================================================
   MAVIS waitlist — Aside style reference
   Pure-white canvas · ink #090b0c as both text and button fill ·
   the hero as one inset rounded photograph that contains the nav ·
   every radius multiplied by --squircle-factor.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Rendered corners: 6 / 8 / 12 / 16 / 24px */
  --squircle-factor: 1;

  --color-mist-950: #090b0c;
  --color-white: #ffffff;
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-400: #a1a1a1;
  --color-neutral-500: #737373;
  --color-neutral-900: #171717;

  --color-sky-500: #00a6f4;
  --color-sky-600: #0084d1;

  --background: var(--color-white);
  --foreground: var(--color-mist-950);
  --primary: var(--color-mist-950);
  --primary-hover: #202326;
  --primary-active: #292d30;
  --primary-foreground: var(--color-neutral-50);
  --muted-foreground: var(--color-neutral-500);
  --ring: var(--color-neutral-400);
  --brand: var(--color-sky-500);
  --brand-content: var(--color-sky-600);

  --surface-primary: rgba(255, 255, 255, 1);
  --surface-secondary: rgba(255, 255, 255, 0.85);
  --border-surface-strong: rgba(10, 10, 10, 0.15);
  --structure-rule: rgba(0, 0, 0, 0.08);
  --badge-text: rgba(9, 11, 12, 0.7);

  /* One variable typeface across the complete site. */
  --font-display: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --text-8xl: 88px;

  --font-weight-normal: 400;
  --font-weight-semimedium: 450;
  --font-weight-medium: 500;
  --font-weight-badge: 550;

  --radius-md: calc(6px * var(--squircle-factor));
  --radius-lg: calc(8px * var(--squircle-factor));
  --radius-xl: calc(12px * var(--squircle-factor));
  --radius-2xl: calc(16px * var(--squircle-factor));
  --radius-3xl: calc(24px * var(--squircle-factor));
  --radius-full: 9999px;

  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-inner-hairline: inset 0 0 0 1px rgba(0,0,0,0.06);
  --shadow-glass: inset 0 0 0 1px rgba(255,255,255,0.8), 0 0 0 0.5px rgba(9,11,12,0.2);

  --motion-fast: 140ms;
  --motion-ui: 220ms;
  --motion-focus: 260ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: var(--motion-fast);
  --ease: var(--ease-drawer);

  --page-max-width: 1536px;
  --nav-height: 56px;
  --hero-inset: 8px;
  --hero-measure: 520px;  /* the lede's reading measure */
  --field-width: 640px;   /* the field is the page's job, so it runs wider */
  --stack-width: 816px;   /* 3 cards at 264px + two 12px gaps */
  --gutter: 16px;

  color-scheme: light;
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 768px)  { :root { --hero-inset: 16px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.has-inertial-scroll { scroll-behavior: auto; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  font-variant-ligatures: common-ligatures contextual;
  text-rendering: optimizeLegibility;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-size: inherit; font-weight: inherit; line-height: inherit; }
summary::-webkit-details-marker { display: none; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
/* The cap governs body sections. The hero breaks out and insets from the
   viewport edge instead. */
.page { max-width: var(--page-max-width); margin-inline: auto; }
.gutter { padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semimedium);
  font-size: var(--text-3xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
@media (min-width: 1024px) { .h2 { font-size: var(--text-4xl); line-height: 1.111; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-full);          /* full pill */
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  transition: transform var(--motion-fast) var(--ease-out),
              background-color var(--motion-fast) ease,
              box-shadow var(--motion-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
/* A trailing icon sits closer to the edge than a letter does, so trim that
   side back to keep the label optically centred in the pill. */
.btn:has(svg:last-child) { padding-right: 16px; }
.btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform var(--motion-fast) var(--ease-out);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-compact {
  height: 40px; padding: 0 16px; gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
}
.btn-compact:has(svg:last-child) { padding-right: 12px; }
.btn-compact svg { width: 14px; height: 14px; }

/* ---------- Links ---------- */
.link-muted {
  color: var(--foreground);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  transition: color var(--dur) var(--ease);
}
.link-muted:hover {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

/* ---------- Hero: full-bleed opening ---------- */
.hero {
  position: relative;
  margin: 0;
  border-radius: 0;
  background: url("assets/hero-sky.jpg") center / cover no-repeat, var(--color-neutral-100);
  box-shadow: none;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
.ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero > .ambient-video,
.final-cta > .ambient-video { z-index: 0; }
/* White wash so ink reads on a saturated sky; heaviest where the type sits */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.34) 38%,
    rgba(255,255,255,0.16) 66%, rgba(255,255,255,0.06) 100%);
}
/* Controlled dissolve: it preserves the scene longer, eases into white, and
   becomes fully white before the next section so there is no visible seam. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 -4% -6%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 39%,
    rgba(255,255,255,0.02) 49%,
    rgba(255,255,255,0.07) 58%,
    rgba(255,255,255,0.15) 66%,
    rgba(255,255,255,0.27) 73%,
    rgba(255,255,255,0.43) 79%,
    rgba(255,255,255,0.62) 84%,
    rgba(255,255,255,0.82) 88%,
    #ffffff 90%,
    #ffffff 100%);
  filter: blur(clamp(18px, 2vw, 32px));
}
.hero-body { position: relative; z-index: 2; }

/* Shotbase-style navigation: fixed text only, with no bar or material behind it. */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  pointer-events: none;
}
.topbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  gap: 28px;
  pointer-events: auto;
}
.topbar-links a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semimedium);
  letter-spacing: -0.01em;
  color: rgba(9, 11, 12, 0.84);
  text-shadow:
    0 1px 14px rgba(255, 255, 255, 0.92),
    0 0 2px rgba(255, 255, 255, 0.7);
  transition: color var(--motion-fast) ease;
}
.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  border-radius: var(--radius-full);
  background-color: currentColor;
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--motion-ui) var(--ease-out);
}

@media (max-width: 640px) {
  .topbar { padding-top: 20px; }
  .topbar-links { gap: 24px; }
  .topbar-links a { font-size: 13px; }
}


.hero-body {
  /* Fill tall screens, but never shrink below the complete hero composition. */
  flex: 1 0 auto;
  min-height: max-content;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* Optically center the full composition below the permanent top bar. */
  padding: 72px 16px 24px;
  text-align: center;
}

.yc-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: var(--font-weight-semimedium);
  line-height: 1;
  color: rgba(9, 11, 12, 0.58);
  white-space: nowrap;
}

.yc-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

/* Hero headline — the top of the ladder */
.display {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semimedium);
  font-size: clamp(24px, 7.2vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.024em;
  color: var(--foreground);
  text-wrap: balance;
  width: 100%;
  max-width: 1100px;
  /* Give shimmer-painted descenders room without changing the composition. */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  /* gradient-shimmer: the resting text is the dark base color; the JS driver
     paints and sweeps a multi-stop band across it. background-image, size and
     position are all set at runtime after the text is measured. */
  --gs-base: currentColor;
  background-color: var(--gs-base);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .display {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
@media (min-width: 768px)  { .display { line-height: 1; } }
@media (min-width: 1024px) { .display { line-height: 0.98; } }
@media (min-width: 1280px) { .display { line-height: 0.96; letter-spacing: -0.028em; } }
.hero h1 span { display: block; white-space: nowrap; }

/* Deliberately a full step below the headline so the ladder reads */
/* Narrower than the headline and a tone below it, so it reads as support */
.hero-lede {
  margin-top: 16px;
  max-width: var(--hero-measure);
  font-family: var(--font-display);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-base);
  line-height: 1.5;
  color: rgba(9, 11, 12, 0.72);
  text-wrap: pretty;
}
@media (min-width: 1024px) { .hero-lede { font-size: var(--text-lg); margin-top: 16px; } }

/* ---------- Waitlist field ---------- */
/* The primary action, sharing an edge with the hero copy above it */
.waitlist {
  margin-top: 48px;
  width: 100%; max-width: var(--field-width);
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius-full);
  padding: 10px 10px 10px 32px;
  height: 72px;
  text-align: left;
}
.waitlist { cursor: text; }              /* the pill reads as one text field */
.waitlist button { cursor: pointer; }
.waitlist input { flex: 1; min-width: 0; font-size: var(--text-lg); }
.waitlist input:focus-visible { outline: none; }
.waitlist:focus-within { outline: none; }
.waitlist input::placeholder { color: rgba(10, 10, 10, 0.4); }
.waitlist-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.waitlist button:disabled { cursor: wait; opacity: 0.62; }
.waitlist input::placeholder { transition: color var(--motion-ui) ease; }
/* A compact action nested inside the field. */
.waitlist-send {
  flex-shrink: 0; height: 52px; padding: 0 28px; gap: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-base); font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  background-color: var(--primary); color: var(--primary-foreground);
  transition: transform var(--motion-fast) var(--ease-out),
              background-color var(--motion-fast) ease,
              box-shadow var(--motion-fast) var(--ease-out);
}
.waitlist-send:active { transform: scale(0.97); }

@media (max-width: 480px) {
  .waitlist { height: 64px; gap: 8px; padding: 8px 8px 8px 18px; }
  .waitlist input { font-size: var(--text-base); }
  .waitlist-send { height: 48px; padding-inline: 16px; font-size: var(--text-sm); }
}
.hero-note { margin-top: 12px; font-size: var(--text-xs); color: rgba(9, 11, 12, 0.75); }
.hero-note.is-updating { animation: status-in 180ms var(--ease-out) both; }
@keyframes status-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Task cards ---------- */
.card-stack {
  margin-top: 64px;
  max-width: var(--stack-width); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 12px; text-align: left;
}
/* Resting: a loose deck. The side cards stay far enough out to read as three
   cards rather than one, and sit slightly smaller so the middle reads nearest. */
.task-card:nth-child(1) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(190px) rotate(-5deg) scale(0.95); z-index: 1; }
.task-card:nth-child(2) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(0)     rotate(1.5deg) scale(1);   z-index: 3; }
.task-card:nth-child(3) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(-190px) rotate(4deg)  scale(0.95); z-index: 2; }

/* The deck opens as one coordinated object, then returns to its resting stack. */
.card-stack:hover .task-card:nth-child(1),
.card-stack:has(.task-card:focus-visible) .task-card:nth-child(1) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(30px) rotate(-2.5deg) translateY(10px) scale(0.97); }
.card-stack:hover .task-card:nth-child(2),
.card-stack:has(.task-card:focus-visible) .task-card:nth-child(2) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(0) rotate(0.5deg) translateY(-8px) scale(1.03); }
.card-stack:hover .task-card:nth-child(3),
.card-stack:has(.task-card:focus-visible) .task-card:nth-child(3) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(-30px) rotate(2deg) translateY(6px) scale(0.97); }

/* Depth cue: the two behind cast a softer shadow than the one in front */
.task-card:nth-child(1),
.task-card:nth-child(3) {
  box-shadow: 0 0 0 0.5px rgba(10,10,10,0.08),
              0 1px 2px rgba(0,0,0,0.03),
              0 10px 24px -12px rgba(0,0,0,0.07);
}
.task-card:nth-child(2) {
  box-shadow: 0 0 0 0.5px rgba(10,10,10,0.09),
              0 2px 4px rgba(0,0,0,0.03),
              0 18px 38px -16px rgba(0,0,0,0.10);
}
.task-card {
  position: relative;
  cursor: grab;
  touch-action: none;              /* we own the gesture, so no page scroll */
  user-select: none;               /* a card is an object, not selectable copy */
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
  background-color: var(--surface-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 0.5px rgba(10,10,10,0.08), 0 10px 24px -12px rgba(0,0,0,0.07);
  padding: 24px; width: 264px;
}
.task-label {
  font-size: var(--text-xs);
  color: rgba(10, 10, 10, 0.55);
}
.task-line {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: var(--text-lg); line-height: 1.45;
  font-weight: var(--font-weight-semimedium);
  color: rgba(9, 11, 12, 0.88);
}
.task-note {
  margin-top: 8px; font-size: var(--text-sm); line-height: 1.43;
  color: rgba(10, 10, 10, 0.5);
}
.wave { margin-top: 12px; display: flex; align-items: center; gap: 4px; height: 24px; }
i { font-style: normal; }   /* <i> bars are decorative, not emphasis (B1) */
.wave i {
  display: block; width: 3px; border-radius: var(--radius-full);
  background-color: rgba(10, 10, 10, 0.35);
}

/* ---------- Scroll cue ---------- */

/* ---------- Story: holds the screen while it reads, then releases ---------- */
/* Shorter track = less scrolling to get through the story */
.story-track { height: 200vh; }
.story-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; align-items: center;
}
.story-inner {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.byline {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding-block: 0; padding-inline: 4px 16px;
  border-radius: var(--radius-full);
  border: 0;
  background-color: var(--color-neutral-100);
  color: var(--foreground);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background-color var(--motion-fast) ease,
              transform var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) var(--ease-out);
}
.byline:hover { background-color: #eceeef; }
.byline:active { transform: scale(0.96); }
.byline:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}
.byline img {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.1);
}

.profile-popover {
  position: relative;
  z-index: 12;
  width: max-content;
  margin-bottom: 32px;
}
.profile-popover::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 100%;
  width: min(312px, calc(100vw - 32px));
  height: 14px;
}
.profile-card {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  z-index: 30;
  width: min(312px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 22px;
  background: var(--surface-primary);
  color: var(--foreground);
  font-family: var(--font-sans);
  text-align: start;
  box-shadow: 0 0 0 1px rgba(9, 11, 12, 0.08),
              0 2px 4px rgba(9, 11, 12, 0.04),
              0 18px 42px -18px rgba(9, 11, 12, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(0.985);
  transform-origin: top left;
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1),
              transform 180ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0s linear 180ms;
}
.profile-popover.is-open .profile-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.profile-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-inline: 2px;
}
.profile-card-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.1);
}
.profile-card-head > div { min-width: 0; }
.profile-card-head strong,
.profile-card-head span { display: block; }
.profile-card-head strong {
  font-size: var(--text-base);
  line-height: 1.2;
  font-weight: var(--font-weight-badge);
  letter-spacing: 0;
}
.profile-card-head span {
  margin-top: 2px;
  color: #666a6e;
  font-size: var(--text-xs);
  line-height: 1.25;
  font-weight: var(--font-weight-normal);
}
.profile-card > p {
  margin: 10px 2px 14px;
  color: #55595d;
  font-size: var(--text-sm);
  line-height: 1.55;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0;
  text-wrap: pretty;
}
.profile-links { display: grid; gap: 8px; }
.profile-links > a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 5px;
  padding-inline: 12px 10px;
  border-radius: 12px;
  background-color: #f5f5f3;
  color: var(--foreground);
  transition: background-color 120ms ease,
              transform 120ms var(--ease-out);
}
.profile-links > a:hover { background-color: #ececea; }
.profile-links > a:active { transform: scale(0.96); }
.profile-links > a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}
.profile-links > a > span { flex: 1; min-width: 0; }
.profile-links strong,
.profile-links small {
  display: block;
  white-space: nowrap;
}
.profile-links strong {
  font-size: var(--text-sm);
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0;
}
.profile-links small {
  margin-top: 2px;
  color: #666a6e;
  font-size: var(--text-xs);
  line-height: 1.25;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0;
}
.profile-link-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-inline-start: auto;
  color: #85898d;
  transition: color 120ms ease;
}
.profile-links > a:hover .profile-link-arrow { color: #4f5357; }

.story-line {
  text-wrap: pretty;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.45;
  font-weight: var(--font-weight-normal);
  color: var(--foreground);
  opacity: 0.22;                       /* unread */
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.story-line + .story-line { margin-top: 24px; }
.story-line.is-lit { opacity: 1; transform: translateY(0); filter: blur(0); }
.story-line[data-emphasis] { font-weight: var(--font-weight-medium); }
.story-line em { font-style: italic; }
@media (min-width: 768px)  { .story-line { font-size: var(--text-2xl); line-height: 1.42; } }
@media (min-width: 1280px) { .story-line { font-size: var(--text-3xl); line-height: 1.4; } }

/* ---------- FAQ ---------- */
/* Same 760px centred column as .story-inner, so the two sections line up */
.faq { max-width: 760px; margin-inline: auto; padding-block: 96px; }
.faq-title { margin-bottom: 44px; }
.faq-title span { display: block; }
.faq-list { max-width: none; }
.faq-item { border-bottom: 1px solid var(--structure-rule); }
.faq-item:first-child { border-top: 1px solid var(--structure-rule); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--muted-foreground);
  transition: color var(--motion-fast) var(--ease-out);
}
.faq-item[open] .faq-q { color: var(--foreground); }

/* + that becomes − when open, drawn rather than iconised */
.faq-mark {
  position: relative; width: 16px; height: 16px; flex-shrink: 0;
  transition: transform var(--motion-fast) var(--ease-out);
}
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1.5px; border-radius: 2px;
  background-color: var(--brand-content);
  transition: background-color var(--motion-fast) ease;
}
.faq-mark::after {
  transform: rotate(90deg);
  transition: transform var(--motion-ui) var(--ease-out),
              background-color var(--motion-fast) ease;
}
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }

.faq-a {
  text-wrap: pretty;
  padding-bottom: 24px;
  max-width: 62ch;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Hover feedback is color-only. Physical movement is reserved for press,
   drag, disclosure, and navigation states. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  .waitlist-send:hover {
    background-color: var(--primary-hover);
  }
  .btn-primary:active,
  .waitlist-send:active {
    background-color: var(--primary-active);
    transform: scale(0.97);
    box-shadow: 0 5px 14px -12px rgba(0, 0, 0, 0.44);
  }

  .topbar-links a:hover { color: var(--foreground); }
  .topbar-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .waitlist:hover { background-color: rgba(255, 255, 255, 0.42); }
  .waitlist:hover input::placeholder { color: rgba(10, 10, 10, 0.54); }

  .faq-q:hover { color: var(--foreground); }
  .faq-q:hover .faq-mark::before,
  .faq-q:hover .faq-mark::after { background-color: var(--brand); }
  .faq-q:active .faq-mark { transform: scale(0.94); }

}

/* ---------- Footer ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .task-card { width: 100%; }
  .hero-body { padding: 68px 16px 24px; }
  .yc-note { gap: 8px; margin-bottom: 16px; }
  .yc-logo { width: 24px; height: 24px; }
  .faq { padding-block: 64px 80px; }
  .faq-title { margin-bottom: 32px; }
}

/* Without motion, drop the pin entirely and show the story as plain prose */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar-links a::after { transition: none; }
  .story-track { height: auto; }
  .story-pin { position: static; height: auto; padding-block: 96px; }
  .story-line { opacity: 1; transform: none; filter: none; transition: none; }
  .profile-card { transform: none; transition: opacity var(--motion-fast) var(--ease-out); }
  .byline:active,
  .profile-links > a:active { transform: none; }
  .btn, .waitlist-send { transition: background-color var(--motion-fast) var(--ease-out); }
  .btn:active, .waitlist-send:active { transform: none; }
  .btn:hover svg, .faq-q:hover .faq-mark { transform: none; }
  .task-card { transition: box-shadow var(--motion-fast) var(--ease-out); }
  .ambient-video { display: none; }
}

/* ---------- Skip to content (B10) ---------- */
.skip-link {
  position: absolute; left: 16px; top: 16px; z-index: 100;
  height: 40px; padding: 0 16px;
  display: inline-flex; align-items: center;
  border-radius: var(--radius-full);
  background-color: var(--primary); color: var(--primary-foreground);
  font-size: var(--text-sm); font-weight: var(--font-weight-medium);
  transform: translateY(-80px);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Tagline reveal (B11) ---------- */

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  margin: var(--hero-inset);
  border-radius: var(--radius-3xl);
  background: url("assets/cta-ember.jpg") center / cover no-repeat, var(--color-neutral-100);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  /* Compact frame with the composition sitting just below true center. */
  padding: 104px var(--gutter) 68px;
  text-align: center;
}
/* Same white wash as the hero, so the type holds up over a saturated image */
.final-cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.46) 45%,
    rgba(255,255,255,0.40) 100%);
}
/* Crisp edge without a real border — the hero's trick */
.final-cta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  z-index: 3;
  box-shadow: var(--shadow-inner-hairline);
}
.final-cta > *:not(.ambient-video) { position: relative; z-index: 2; }
.final-cta-content { width: 100%; }
.final-cta .h2, .final-cta-sub { max-width: 760px; margin-inline: auto; }
/* Echoes the hero ladder one step down, so it reads as a pair rather than
   a heading that lost its nerve. */
.final-cta .h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.022em; }
@media (min-width: 768px)  { .final-cta .h2 { font-size: var(--text-5xl); line-height: 1.05; } }
@media (min-width: 1024px) { .final-cta .h2 { font-size: var(--text-6xl); line-height: 1; } }
@media (min-width: 1280px) { .final-cta .h2 { font-size: var(--text-7xl); letter-spacing: -0.026em; } }
@media (min-width: 768px)  { .final-cta-sub { font-size: var(--text-lg); margin-bottom: 40px; } }
.final-cta .h2 { max-width: 680px; margin-inline: auto; text-wrap: balance; }
.final-cta .h2 span { display: block; }
.final-cta-sub {
  margin: 16px auto 32px;
  max-width: 680px;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .task-card:nth-child(1),
  .task-card:nth-child(2),
  .task-card:nth-child(3) { transform: translate(var(--dx, 0px), var(--dy, 0px)); z-index: auto; }
}
/* No hover available: show the fanned row rather than hiding content in a pile */
@media (hover: none) {
  .task-card:nth-child(1) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(30px) rotate(-2.5deg) translateY(10px) scale(0.97); }
  .task-card:nth-child(2) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(0) rotate(0.5deg) translateY(-8px) scale(1.03); }
  .task-card:nth-child(3) { transform: translate(var(--dx, 0px), var(--dy, 0px)) translateX(-30px) rotate(2deg) translateY(6px) scale(0.97); }
}

/* While physics owns the transform, CSS easing must stay out of the way */
.task-card.is-floating { transition: box-shadow 180ms var(--ease-out); z-index: 20; }

/* Held */
.task-card.is-dragging {
  cursor: grabbing;
  box-shadow: 0 0 0 0.5px rgba(10,10,10,0.10),
              0 30px 60px -24px rgba(0,0,0,0.16);
}
/* ---------- Liquid glass (from the exported settings) ---------- */

.glass {
  position: relative;
  isolation: isolate;
  background-color: rgba(255, 255, 255, 0.32);   /* least white that keeps links at 4.5:1 over dark grass */
  box-shadow:
    /* a lit top edge and a bright underside — where glass gives itself away */
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(255, 255, 255, 0.50),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    inset 0 4px 8px -4px rgba(11, 26, 51, 0.16),
    /* sits above the page rather than printed on it */
    0 0 0 0.5px rgba(9, 11, 12, 0.07),
    0 2px 6px rgba(9, 11, 12, 0.07),
    0 10px 30px -8px rgba(0, 58, 116, 0.24);
}
.lg-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.lg-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.lg-filter {
  z-index: 0;
  -webkit-backdrop-filter: blur(2px) saturate(200%) brightness(1.05);
  backdrop-filter: blur(2px) saturate(200%) brightness(1.05);
  filter: url("#lg-pill");
}
/* If the lens ever paints grey again, delete the filter line above and raise
   the blur back to 20px — the glass reads fine without it. */
.glass-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lg-overlay {
  z-index: 1;
  background: linear-gradient(rgba(255, 255, 255, 0.30) 0%, rgba(240, 245, 255, 0.10) 100%);
}
.lg-sheen {
  z-index: 2;
  background:
    /* the rims read thicker, the way a curved edge does */
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.14) 5%,
      rgba(255, 255, 255, 0) 11%,
      rgba(255, 255, 255, 0) 89%,
      rgba(255, 255, 255, 0.14) 95%,
      rgba(255, 255, 255, 0.55) 100%),
    /* a highlight raked across the pane */
    linear-gradient(-58deg,
      rgba(255, 255, 255, 0) 32%,
      rgba(255, 255, 255, 0.30) 47%,
      rgba(255, 255, 255, 0.30) 51%,
      rgba(255, 255, 255, 0) 64%),
    linear-gradient(rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0) 100%);
}
.glass > *:not(.lg-clip) { position: relative; z-index: 3; }


@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background-color: rgba(255, 255, 255, 0.92); }
}


/* ---------- Focus mode ----------
   Tapping the field lifts it to the centre of the hero and drops everything
   else behind a dark, blurred veil. The veil is fixed but clipped by the
   hero's overflow, so it dims exactly the hero and keeps its rounded corners. */
.focus-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 10, 14, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  backdrop-filter: blur(22px) saturate(115%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-focus="on"] .focus-veil {
  opacity: 1;
  pointer-events: auto;
}
:root[data-focus="leaving"] .focus-veil {
  opacity: 0;
  transition: none;
}

.waitlist-zoom {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 1));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Over a darkened hero the glass would go muddy, so the field lights up
   instead — it reads as the one thing still switched on. */
.waitlist { transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1); }
:root[data-focus="on"] .waitlist { background-color: rgba(255, 255, 255, 0.92); }
.hero-note { transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1); }
:root[data-focus="on"] .hero-note { color: rgba(255, 255, 255, 0.88); }

/* Let the field rise clear of the hero: drop the clip that would cut it off
   and the stacking context that would trap it under the veil. */
/* clip, not visible: the field can paint well outside the hero, but the
   cards still cannot push the page sideways into a scrollbar */
:root[data-focus="on"] .hero,
:root[data-focus="leaving"] .hero { overflow: clip; overflow-clip-margin: 100vmax; }
:root[data-focus="on"] .hero-body { z-index: auto; }
:root[data-focus="on"] .waitlist-zoom {
  z-index: 210;
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-zoom { transform: none !important; transition: none; }
  .focus-veil, .waitlist, .hero-note {
    transition-duration: var(--motion-fast);
    transition-timing-function: var(--ease-out);
  }
  .hero-note.is-updating { animation-duration: var(--motion-fast); }
}
