/* Short-Form Studio waitlist, Direction D.
   One stylesheet, no build step. Token values are copied from the Melda design system
   (melda/packages/design/tokens.css and the marketing tokens in (melda)/marketing.css on
   claude/integration-shared-20261118; rules in docs/design/DESIGN.md "Direction D" and
   marketing-d/SPEC.md). Light only. Use the token, never the literal. */

/* Fonts: the app's self-hosted variable files plus its measured fallback faces, so the swap moves no line. */
@font-face {
  font-family: "Hanken Grotesk Variable";
  src: url("assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url("assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial");
  font-weight: 100 900;
  size-adjust: 101.56%;
  ascent-override: 98.46%;
  descent-override: 29.83%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  font-weight: 200 800;
  size-adjust: 100.25%;
  ascent-override: 73.32%;
  descent-override: 26.43%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* Colour (DESIGN.md 3.1, light) */
  --melda-ground: #F4F1EC;
  --melda-page: #FFFFFF;
  --melda-surface: #FFFFFF;
  --melda-sunken: #F8F6F2;
  --melda-line: #EAE5DE;
  --melda-line-strong: #DDD6CC;
  --melda-input-edge: #91827D;
  --melda-ink: #1F1B17;
  --melda-ink-2: #5C554D;
  --melda-muted: #6C645B;
  --melda-coral: #BF3F2A;
  --melda-coral-hover: #A83521;
  --melda-coral-press: #962E1C;
  --melda-coral-ink: #B23A26;
  --melda-on-coral: #FFFFFF;
  --melda-coral-soft: #FCF0EB;
  --melda-coral-line: #F2D2C8;
  --melda-good: #1F6B43;
  --melda-flame-a: #F7B955;
  --melda-flame-b: #F27A4E;
  --melda-flame-c: #DD5C7E;
  --melda-glow-rgb: 242,122,78;
  --melda-shadow-rgb: 84,48,24;
  --melda-hover: rgba(31,27,23,.045);
  --melda-press: rgba(31,27,23,.08);

  /* Elevation (DESIGN.md 9) */
  --melda-shadow-rest: 0 0 0 1px var(--melda-line), 0 1px 2px rgba(84,48,24,.05), 0 10px 28px -14px rgba(84,48,24,.14);
  --melda-shadow-lift: 0 0 0 1px var(--melda-line), 0 2px 4px rgba(84,48,24,.05), 0 14px 32px -12px rgba(84,48,24,.20);
  --melda-shadow-float: 0 0 0 1px var(--melda-line), 0 4px 10px rgba(84,48,24,.07), 0 32px 72px -20px rgba(84,48,24,.38);
  --melda-shadow-coral: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(120,40,20,.28), 0 8px 18px -8px rgba(191,63,42,.55);
  --melda-tile-shadow: 0 0 0 1px var(--melda-line), 0 1px 2px rgba(var(--melda-shadow-rgb),.05);
  --melda-shadow-secondary-control: inset 0 0 0 1px var(--melda-line-strong), 0 1px 2px rgba(var(--melda-shadow-rgb),.05);
  --melda-shadow-field-edge: inset 0 0 0 1px var(--melda-input-edge);
  --melda-glow-field: 0 0 0 1.5px var(--melda-coral), 0 0 0 5px rgba(var(--melda-glow-rgb),.22), 0 12px 30px -10px rgba(247,160,70,.45);

  /* Radii (DESIGN.md 8) */
  --melda-r-xs: 6px;
  --melda-r-control: 10px;
  --melda-r-well: 14px;
  --melda-r-sheet: 20px;
  --melda-r-pill: 999px;

  /* Space (DESIGN.md 7.1) */
  --melda-space-1: 4px;
  --melda-space-2: 8px;
  --melda-space-3: 12px;
  --melda-space-4: 16px;
  --melda-space-5: 20px;
  --melda-space-6: 24px;
  --melda-space-7: 28px;
  --melda-space-8: 32px;
  --melda-space-10: 40px;
  --melda-space-12: 48px;
  --melda-space-14: 56px;
  --melda-space-18: 72px;
  --melda-space-21: 84px;
  --melda-gap-6: 6px;
  --melda-gap-10: 10px;

  /* Controls and focus (DESIGN.md 11.6, 11.7, 13) */
  --melda-control-h: 40px;
  --melda-control-h-lg: 48px;
  --melda-control-h-touch: 44px;
  --melda-ring: var(--melda-coral);
  --melda-ring-width: 2px;
  --melda-ring-offset: 2px;

  /* Motion (DESIGN.md 12) */
  --melda-ease: cubic-bezier(.2, .8, .2, 1);
  --melda-dur-fast: 120ms;
  --melda-dur-base: 220ms;
  --melda-dur-slow: 420ms;

  /* Type (DESIGN.md 6.2) */
  --melda-font-ui: "Hanken Grotesk Variable", "Hanken Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  --melda-font-display: "Newsreader Variable", "Newsreader Fallback", ui-serif, Georgia, serif;
  --melda-fs-display: 52px;  --melda-lh-display: 54px;  --melda-tracking-display: -.02em;
  --melda-fs-page-title: 34px; --melda-lh-page-title: 38px; --melda-tracking-page-title: -.014em;
  --melda-fs-lede-sm: 22px; --melda-lh-lede-sm: 30px; --melda-tracking-lede: -.006em;
  --melda-fs-heading: 19px; --melda-lh-heading: 24px; --melda-tracking-heading: -.004em;
  --melda-fs-numeral: 30px; --melda-lh-numeral: 32px; --melda-tracking-numeral: -.01em;
  --melda-fs-numeral-sm: 24px; --melda-lh-numeral-sm: 26px;
  --melda-fs-reading: 18px; --melda-lh-reading: 30px;
  --melda-fs-reading-sm: 17px; --melda-lh-reading-sm: 28px;
  --melda-fs-field: 16px; --melda-lh-field: 24px;
  --melda-fs-item: 15px; --melda-lh-item: 22px;
  --melda-fs-ui: 14px; --melda-lh-ui: 20px;
  --melda-fs-secondary: 13px; --melda-lh-secondary: 18px;
  --melda-fs-meta: 12px; --melda-lh-meta: 16px;

  /* Marketing only (marketing-d/SPEC.md 2 and 3) */
  --m-page: 1200px;
  --m-gutter: 24px;
  --m-section: 96px;
  --m-measure: 60ch;
  --m-measure-lg: 640px;
  --m-header: 76px;
  --m-cta-pad: 20px;
  --m-t-hero: clamp(48px, 5.3vw, 76px); --m-t-hero-lh: 1; --m-t-hero-tracking: -.03em;
  --m-t-title: 40px; --m-t-title-lh: 44px; --m-t-title-tracking: -.018em;
  --m-t-card: 22px; --m-t-card-lh: 28px; --m-t-card-tracking: -.008em;
  --m-t-intro: 20px; --m-t-intro-lh: 30px;
}

@media (max-width: 639px) {
  :root {
    --m-gutter: 16px;
    --m-section: 64px;
    --m-t-hero: 44px; --m-t-hero-lh: 46px; --m-t-hero-tracking: -.024em;
    --m-t-title: 28px; --m-t-title-lh: 32px; --m-t-title-tracking: -.014em;
    --m-t-card: 20px; --m-t-card-lh: 26px;
    --m-t-intro: 18px; --m-t-intro-lh: 28px;
    --melda-fs-display: 31px; --melda-lh-display: 36px; --melda-tracking-display: -.014em;
    --melda-fs-page-title: 28px; --melda-lh-page-title: 32px;
    --melda-fs-numeral: 26px; --melda-lh-numeral: 28px;
    --melda-fs-reading: 17px; --melda-lh-reading: 28px;
    --melda-control-h: 48px;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--m-header) + var(--melda-space-4)); }
body {
  margin: 0;
  background: var(--melda-ground);
  color: var(--melda-ink);
  font-family: var(--melda-font-ui);
  font-size: var(--melda-fs-reading-sm);
  line-height: var(--melda-lh-reading-sm);
  -webkit-font-smoothing: antialiased;
  timeline-scope: --sfs-hero-actions;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--melda-font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--melda-ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--melda-ink); }
a { color: inherit; }
:focus-visible { outline: var(--melda-ring-width) solid var(--melda-ring); outline-offset: var(--melda-ring-offset); }

/* Preston's emphasis: his coral words become the second ink, colour stays on the button and the one underline. */
.soft { color: var(--melda-ink-2); }

.wrap {
  max-width: var(--m-page);
  margin-inline: auto;
  padding-inline: max(var(--m-gutter), env(safe-area-inset-left, 0px)) max(var(--m-gutter), env(safe-area-inset-right, 0px));
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: var(--melda-space-4); top: calc(-1 * var(--melda-space-21)); z-index: 30;
  padding: var(--melda-space-2) var(--melda-space-4); border-radius: var(--melda-r-control);
  background: var(--melda-surface); box-shadow: var(--melda-shadow-lift);
  font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--melda-space-4); }

/* Header: ground at 92% with a blur, one hairline, no scroll listener (SPEC 4.2). */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--m-header);
  background: color-mix(in srgb, var(--melda-ground) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--melda-line);
}
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--melda-space-3); }
.brand {
  display: inline-flex; align-items: center; gap: var(--melda-space-3);
  font-family: var(--melda-font-display); font-optical-sizing: auto; font-weight: 600;
  font-size: var(--melda-fs-heading); line-height: var(--melda-lh-heading); letter-spacing: var(--melda-tracking-heading);
  color: var(--melda-ink); white-space: nowrap;
}
.brand-dot {
  width: 8px; height: 8px; flex: none; border-radius: var(--melda-r-pill);
  background: var(--melda-coral); box-shadow: 0 0 0 4px var(--melda-coral-soft);
}

/* Buttons: the shared Button (DESIGN.md 11.6) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--melda-space-2);
  height: var(--melda-control-h); padding: 0 var(--melda-space-4);
  border: 0; border-radius: var(--melda-r-control);
  font-family: inherit; font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); font-weight: 600;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--melda-coral); color: var(--melda-on-coral); box-shadow: var(--melda-shadow-coral);
  transition: background-color var(--melda-dur-fast) var(--melda-ease), box-shadow var(--melda-dur-fast) var(--melda-ease),
    color var(--melda-dur-fast) var(--melda-ease), transform var(--melda-dur-fast) var(--melda-ease);
}
.btn:hover { background: var(--melda-coral-hover); }
.btn:active { background: var(--melda-coral-press); transform: scale(.98); }
.btn-lg { height: var(--melda-control-h-lg); padding: 0 var(--m-cta-pad); font-size: var(--melda-fs-item); line-height: var(--melda-lh-item); }
.btn:disabled { cursor: default; transform: none; background: var(--melda-sunken); color: var(--melda-ink-2); box-shadow: inset 0 0 0 1px var(--melda-line-strong); }
@media (max-width: 639px) {
  .btn { font-size: var(--melda-fs-item); line-height: var(--melda-lh-item); }
  .btn-head { height: var(--melda-control-h-touch); }
}

/* The header button rests as secondary while the hero form is on screen and turns primary once it has
   scrolled away. CSS only; without support it is simply primary (SPEC 4.2). */
.wl-hero { view-timeline-name: --sfs-hero-actions; view-timeline-axis: block; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .btn-head {
      animation-name: sfs-head-action;
      animation-timing-function: step-end;
      animation-fill-mode: both;
      animation-timeline: --sfs-hero-actions;
      animation-range: exit 0% exit 100%;
    }
    @keyframes sfs-head-action {
      from {
        background-color: var(--melda-surface);
        color: var(--melda-ink);
        box-shadow: var(--melda-shadow-secondary-control);
      }
    }
  }
}

/* Hero */
.hero { position: relative; overflow-x: clip; padding-block: var(--melda-space-10) var(--melda-space-6); text-align: center; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.trust {
  display: inline-flex; align-items: center; gap: var(--melda-space-3);
  font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); font-weight: 500; color: var(--melda-ink-2);
  text-align: left;
}
.trust img { width: 32px; height: 32px; flex: none; border-radius: var(--melda-r-pill); object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 1px var(--melda-line-strong); }
.hero h1 {
  margin-top: var(--melda-space-5);
  max-width: 1000px;
  font-size: var(--m-t-hero); line-height: var(--m-t-hero-lh); letter-spacing: var(--m-t-hero-tracking);
}
/* Each sentence of the H1 starts its own line at every width. */
.h1-line { display: block; }
@media (max-width: 639px) { .hero { padding-top: var(--melda-space-10); } }
/* The one coral underline on the page (D keeps the home H1's coral stroke; on phone it is a text underline). */
.underline {
  text-decoration-line: underline;
  text-decoration-color: var(--melda-coral);
  text-decoration-thickness: 3px;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}
/* A number stays with its unit ("100 times", "20 minutes"). On phone the sentence wraps, so the underline
   moves to "20 minutes" alone: one 2.5px stroke on one line (SPEC 4.1's phone underline), and the H1 wraps
   greedily so "Film 20 minutes" stays together. */
.q { white-space: nowrap; }
@media (max-width: 639px) {
  .hero h1 { text-wrap: wrap; }
  .underline { text-decoration-line: none; }
  .u-key {
    text-decoration-line: underline;
    text-decoration-color: var(--melda-coral);
    text-decoration-thickness: 2.5px;
    text-underline-offset: .14em;
    text-decoration-skip-ink: none;
  }
}
.intro {
  font-size: var(--m-t-intro); line-height: var(--m-t-intro-lh); color: var(--melda-ink-2);
}
.hero .intro { margin-top: var(--melda-space-5); max-width: 680px; }

/* Waitlist form: label above, field and button on one 48px line (DESIGN.md 11.7) */
.wl { width: 100%; max-width: 520px; margin-top: var(--melda-space-7); text-align: left; }
.wl label {
  display: block; margin-bottom: var(--melda-gap-6);
  font-size: var(--melda-fs-secondary); line-height: var(--melda-lh-secondary); font-weight: 600; color: var(--melda-ink);
}
.wl-row { display: flex; align-items: flex-end; gap: var(--melda-space-2); }
.wl input {
  flex: 1 1 auto; min-width: 0;
  height: var(--melda-control-h-lg); padding: 0 var(--melda-space-4);
  border: 0; border-radius: var(--melda-r-control);
  background: var(--melda-surface); color: var(--melda-ink);
  box-shadow: var(--melda-shadow-field-edge);
  font-family: inherit; font-size: var(--melda-fs-field); line-height: var(--melda-lh-field);
  transition: box-shadow var(--melda-dur-base) var(--melda-ease);
}
.wl input[readonly] { background: var(--melda-sunken); color: var(--melda-ink-2); box-shadow: inset 0 0 0 1px var(--melda-line-strong); }
.wl input::placeholder { color: var(--melda-muted); opacity: 1; }
.wl input:focus, .wl input:focus-visible { outline: none; box-shadow: var(--melda-glow-field); }
.wl button { flex: none; min-width: 172px; }
#msg, #msg2 { margin-top: var(--melda-space-3); font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); }
.fine { color: var(--melda-ink-2); }
.fine.err { color: var(--melda-coral-ink); font-weight: 600; }
.ok { color: var(--melda-good); font-weight: 600; }
@media (max-width: 639px) {
  .wl-row { flex-direction: column; align-items: stretch; }
  .wl button { width: 100%; }
}

/* Speed-run slot: the walkthrough frame (SPEC 4.3) with the entry page's glow behind it (DESIGN.md 4, item 9). */
.vsl { position: relative; width: 100%; max-width: 920px; margin-top: var(--melda-space-8); }
.vsl-glow {
  position: absolute; left: 50%; top: 62%; z-index: 0;
  width: calc(100% + 240px); height: calc(100% + 160px);
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(247,185,85,.62), rgba(244,140,80,.32) 48%, rgba(242,122,78,.08) 76%, transparent);
  filter: blur(8px);
  opacity: .8;
  pointer-events: none;
  animation: sfs-bloom var(--melda-dur-slow) var(--melda-ease) both;
}
@keyframes sfs-bloom { from { opacity: 0; transform: scale(.94); } }
.vsl-frame {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: var(--melda-r-sheet);
  background: var(--melda-surface);
  box-shadow: var(--melda-shadow-lift);
}
.shotwrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.shotwrap img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shotwrap::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(rgba(255,255,255,0), var(--melda-surface) 88%);
  pointer-events: none;
}
.vsl iframe, .vsl video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.shotwrap.is-video img { object-position: center; }
.vsl-play-pos {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  translate: -50% -50%; width: max-content; max-width: calc(100% - var(--melda-space-8));
}
.vsl-play {
  display: inline-flex; align-items: center; gap: var(--melda-space-3);
  padding: var(--melda-gap-10) var(--melda-space-5) var(--melda-gap-10) var(--melda-gap-10);
  border: 1px solid var(--melda-line-strong); border-radius: var(--melda-r-control);
  background: var(--melda-surface); color: var(--melda-ink);
  font-family: inherit; font-size: var(--melda-fs-item); line-height: var(--melda-lh-item); font-weight: 600;
  text-align: left;
  transition: background-color var(--melda-dur-fast) var(--melda-ease);
}
button.vsl-play { cursor: pointer; }
button.vsl-play:hover { background: var(--melda-sunken); }
.vsl-disc {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--melda-r-pill); background: var(--melda-coral-soft);
}
.vsl-disc i { width: 0; height: 0; margin-left: 3px; border-left: 12px solid var(--melda-coral); border-block: 8px solid transparent; }
.vsl-play.soon .vsl-disc i { width: 10px; height: 10px; margin: 0; border: 0; border-radius: var(--melda-r-pill); background: var(--melda-coral); }
@media (max-width: 639px) {
  .vsl-glow { width: 420px; height: 420px; filter: blur(6px); }
  .shotwrap { aspect-ratio: 4 / 5; }
  .shotwrap img { width: 250%; max-width: none; height: auto; object-fit: initial; }
  .shotwrap.is-video { aspect-ratio: 16 / 9; }
  .shotwrap.is-video img { width: 100%; height: 100%; object-fit: cover; }
  .vsl-play { font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); }
}

/* Four numbers: one panel with hairlines between, not four boxes */
.stats { padding-block: var(--melda-space-14) var(--melda-space-18); }
@media (max-width: 639px) { .stats { padding-block: var(--melda-space-10) var(--melda-space-12); } }
.stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--melda-r-well); background: var(--melda-surface); box-shadow: var(--melda-shadow-rest);
}
.stat { padding: var(--melda-space-6); }
.stat + .stat { box-shadow: inset 1px 0 0 var(--melda-line); }
.stat strong {
  display: block;
  font-family: var(--melda-font-display); font-optical-sizing: auto; font-weight: 600;
  font-size: var(--melda-fs-numeral); line-height: var(--melda-lh-numeral); letter-spacing: var(--melda-tracking-numeral);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat span { display: block; margin-top: var(--melda-space-2); text-wrap: balance; font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); color: var(--melda-ink-2); }
@media (max-width: 899px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { box-shadow: inset 0 1px 0 var(--melda-line); }
  .stat:nth-child(4) { box-shadow: inset 1px 0 0 var(--melda-line), inset 0 1px 0 var(--melda-line); }
}
@media (max-width: 639px) {
  .stat { padding: var(--melda-space-4); }
  .stat span { font-size: var(--melda-fs-field); line-height: var(--melda-lh-field); }
}

/* Sections */
.band { padding-block: var(--m-section); }
.band-page { background: var(--melda-page); }
.head { display: flex; flex-direction: column; gap: var(--melda-space-4); max-width: 760px; }
.label { font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); font-weight: 500; color: var(--melda-ink-2); }
.head h2 { font-size: var(--melda-fs-display); line-height: var(--melda-lh-display); letter-spacing: var(--melda-tracking-display); }
.desc { max-width: var(--m-measure); font-size: var(--melda-fs-reading-sm); line-height: var(--melda-lh-reading-sm); color: var(--melda-ink-2); }

/* Who it's for */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--melda-space-4); margin-top: var(--melda-space-10); }
.pain { padding: var(--melda-space-6); border-radius: var(--melda-r-well); background: var(--melda-surface); box-shadow: var(--melda-tile-shadow); }
.pain-label { font-size: var(--melda-fs-secondary); line-height: var(--melda-lh-secondary); font-weight: 600; color: var(--melda-muted); }
.pain-text {
  margin-top: var(--melda-space-3);
  font-family: var(--melda-font-display); font-optical-sizing: auto; font-weight: 500;
  font-size: var(--melda-fs-lede-sm); line-height: var(--melda-lh-lede-sm); letter-spacing: var(--melda-tracking-lede);
  color: var(--melda-ink);
}
.turn { margin-top: var(--melda-space-8); max-width: 760px; }
@media (max-width: 899px) { .pains { grid-template-columns: 1fr; } }

/* The 7 steps: one vertical list, text then the screen */
.steps { display: flex; flex-direction: column; gap: var(--melda-space-21); margin-top: var(--melda-space-12); }
.step-text { display: flex; flex-direction: column; gap: var(--melda-space-3); max-width: var(--m-measure-lg); }
.step-meta { display: flex; align-items: baseline; gap: var(--melda-space-3); font-size: var(--melda-fs-ui); line-height: var(--melda-lh-ui); font-weight: 500; color: var(--melda-ink-2); }
.step-num {
  font-family: var(--melda-font-display); font-optical-sizing: auto; font-weight: 600;
  font-size: var(--melda-fs-numeral-sm); line-height: var(--melda-lh-numeral-sm); letter-spacing: var(--melda-tracking-numeral);
  font-variant-numeric: lining-nums tabular-nums; color: var(--melda-ink);
}
.step h3 { font-size: var(--melda-fs-page-title); line-height: var(--melda-lh-page-title); letter-spacing: var(--melda-tracking-page-title); }
.step-text > p:last-child { font-size: var(--melda-fs-reading); line-height: var(--melda-lh-reading); color: var(--melda-ink-2); }
.shot {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  margin-top: var(--melda-space-6);
  border-radius: var(--melda-r-well); background: var(--melda-surface); box-shadow: var(--melda-shadow-lift);
  transition: transform var(--melda-dur-fast) var(--melda-ease), box-shadow var(--melda-dur-fast) var(--melda-ease);
}
/* Every screen fills one 16:9 frame. --fx/--fy pick the part kept and --z zooms into it (the zoom origin is the
   same point, so the chosen detail stays put); the --p* values do the same for the 4:5 phone crop. */
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: var(--fx, 0%) var(--fy, 0%);
  transform: scale(var(--z, 1));
  transform-origin: var(--fx, 0%) var(--fy, 0%);
}
.shot:hover { transform: translateY(-1px); box-shadow: var(--melda-shadow-float); }
.shot-styles { --z: 1.25; }  /* top left 1440x810 of the capture: drops its empty right margin; the cut falls between rows */
/* The four wide captures are shown whole (contain), so no word is cut at the frame's edge; the thin bands above and
   below take each capture's own edge colour (sampled from the image), not a design token. */
@media (min-width: 640px) {
  .shot-hooks img, .shot-first-cut img, .shot-hook-swap img, .shot-analytics img { object-fit: contain; object-position: 50% 50%; }
  .shot-hooks { background: #FEFEFE; }
  .shot-first-cut { background: #F9F6F2; }
  .shot-hook-swap { background: #F7F2EB; }
  .shot-analytics { background: #F4F3EF; }
}
@media (max-width: 639px) {
  .steps { gap: var(--melda-space-14); margin-top: var(--melda-space-10); }
  .shot { margin-top: var(--melda-space-5); aspect-ratio: 4 / 5; }
  .shot img { object-position: var(--pfx, 0%) var(--pfy, 0%); transform: scale(var(--pz, 1)); transform-origin: var(--pfx, 0%) var(--pfy, 0%); }
  .shot-hooks { --pfx: 100%; --pfy: 0%; --pz: 1.5; }       /* where each hook came from; left cut in the gap before the panel */
  .shot.shot-first-cut { aspect-ratio: 875 / 806; --pfx: 29.2%; --pfy: 54.7%; --pz: 1.612; } /* the kept lines; this shape puts all four cuts in gaps */
  .shot-hook-swap { --pfx: 39%; --pfy: 50%; --pz: 1.25; } /* one version with Keep, Fix, Cut */
  .shot-styles { --pfx: 30%; --pfy: 100%; --pz: 1.2; }    /* two looks with their names */
  .shot-captions { --pfx: 41%; --pfy: 68%; --pz: 1.65; }   /* one platform's caption card */
  .shot-week { --pfx: 0%; --pfy: 0%; --pz: 1.5; }         /* the first days of the week */
  .shot-analytics { --pfx: 92%; --pfy: 60%; --pz: 1.3; }/* the morning report */
}

/* One more ask after the proof: the link variant, not a second filled button (SPEC 4.1). */
.steps-cta { margin-top: var(--melda-space-12); }
.link-cta {
  display: inline-flex; align-items: center; gap: var(--melda-gap-6); min-height: var(--melda-control-h-touch);
  font-size: var(--melda-fs-item); line-height: var(--melda-lh-item); font-weight: 600;
  color: var(--melda-ink); text-decoration: none;
  transition: color var(--melda-dur-fast) var(--melda-ease);
}
.link-cta svg { flex: none; transition: transform var(--melda-dur-fast) var(--melda-ease); }
.link-cta:hover { color: var(--melda-coral-ink); }
.link-cta:hover svg { transform: translateX(2px); }

/* How it works: the 20-minute day */
.daysteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--melda-space-4); margin-top: var(--melda-space-10); }
.daystep { padding: var(--melda-space-7); border-radius: var(--melda-r-well); background: var(--melda-surface); box-shadow: var(--melda-tile-shadow); }
.daynum {
  display: block;
  font-family: var(--melda-font-display); font-optical-sizing: auto; font-weight: 600;
  font-size: var(--melda-fs-numeral); line-height: var(--melda-lh-numeral); letter-spacing: var(--melda-tracking-numeral);
  font-variant-numeric: lining-nums; color: var(--melda-ink);
}
.daystep h3 { margin-top: var(--melda-space-4); font-size: var(--m-t-card); line-height: var(--m-t-card-lh); letter-spacing: var(--m-t-card-tracking); }
.daystep p { margin-top: var(--melda-space-2); font-size: var(--melda-fs-reading-sm); line-height: var(--melda-lh-reading-sm); color: var(--melda-ink-2); }
@media (max-width: 899px) { .daysteps { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .daystep { padding: var(--melda-space-5); } .daystep p { font-size: var(--melda-fs-field); line-height: var(--melda-lh-field); } }

/* About Preston: a row, no box around the reading column */
.about-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--melda-space-8); align-items: center; max-width: 880px; } /* left-aligned at the content edge */
.about-in img { width: 120px; height: 120px; border-radius: var(--melda-r-pill); object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 1px var(--melda-line-strong); }
.about h2 { font-size: var(--m-t-title); line-height: var(--m-t-title-lh); letter-spacing: var(--m-t-title-tracking); }
.about p { margin-top: var(--melda-space-3); font-size: var(--melda-fs-reading); line-height: var(--melda-lh-reading); color: var(--melda-ink-2); }
@media (max-width: 639px) { .about-in { grid-template-columns: 1fr; gap: var(--melda-space-5); } .about-in img { width: 96px; height: 96px; } }

/* Closing band: one surface sheet on the ground (SPEC 4.5) */
.end { padding-top: 0; }
.closing {
  display: flex; flex-direction: column; align-items: center;
  max-width: 1040px; margin-inline: auto;
  padding: calc(var(--melda-space-8) * 2) var(--melda-space-14);
  border-radius: var(--melda-r-sheet); background: var(--melda-surface); box-shadow: var(--melda-shadow-rest);
  text-align: center;
}
.closing h2 { margin-top: var(--melda-space-4); font-size: var(--m-t-title); line-height: var(--m-t-title-lh); letter-spacing: var(--m-t-title-tracking); }
.closing .intro { margin-top: var(--melda-space-4); }
@media (max-width: 899px) { .closing { padding: var(--melda-space-10) var(--melda-space-5); } }

.foot {
  padding-block: var(--melda-space-7);
  box-shadow: inset 0 1px 0 var(--melda-line-strong);
  text-align: center; font-size: var(--melda-fs-secondary); line-height: var(--melda-lh-secondary); color: var(--melda-muted);
}

/* Review mode (add ?review to the URL): shows which images are placeholders. Hidden for visitors. */
.ph-tag { display: none; }
.review .ph-tag {
  display: block; position: absolute; left: var(--melda-space-3); top: var(--melda-space-3); z-index: 3;
  max-width: calc(100% - var(--melda-space-6));
  padding: var(--melda-space-1) var(--melda-space-2); border-radius: var(--melda-r-xs);
  background: var(--melda-ink); color: var(--melda-page);
  font-size: var(--melda-fs-meta); line-height: var(--melda-lh-meta); font-weight: 600; text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
