/* Whole-page review fixes (2026-09-24). Loads last. */

/* Log in sits quietly in the header now that the hero asks for one thing. */
.header-login{font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:5px;min-height:44px;display:inline-flex;align-items:center}
.header-login:hover{color:var(--gold)}

/* The mechanism, in three plain beats under the product intro. */
.clarity-steps{list-style:none;counter-reset:step;display:flex;flex-wrap:wrap;gap:10px 28px;margin:26px 0 0;padding:0}
.clarity-steps li{counter-increment:step;display:flex;align-items:baseline;gap:10px;font-size:15px;font-weight:500;color:#193428}
.clarity-steps li:before{content:counter(step);font-family:'Lora',Georgia,serif;font-size:13px;color:#376747;font-variant-numeric:lining-nums}

/* The gap between the product intro and the pinned reel was ~500px of empty
   ground: the grid gap stacked on the reel's own margin and padding. */
.landing-story .clarity{row-gap:0}

@media (max-width:760px){
  .nav-actions .header-login{display:inline-flex}
  .meaning-word button{min-height:44px}
  .clarity-steps{flex-direction:column;gap:10px}
}

/* ---- Contrast (whole-page audit) ---------------------------------------- */

/* Reel tab labels measured 3.4 to 4.1:1 on #eef2ea. */
.reel-nav button{color:#4d6253}
.reel-nav button span{color:#4d6b54}

/* Header controls over the hero photograph measured 3.8 to 4.5:1. */
.on-landing .topbar .nav a,.on-landing .header-login{color:var(--hero-ink,var(--ink))}

/* ---- Mobile header -------------------------------------------------------- */
.mobile-menu{display:none;position:relative;border:0;padding:0}
.mobile-menu summary{list-style:none;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid color-mix(in srgb,var(--hero-ink,var(--ink)) 30%,transparent);border-radius:999px;font-size:13px;color:var(--hero-ink,var(--ink))}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu[open] summary{background:var(--surface)}
.mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);display:flex;flex-direction:column;min-width:190px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);z-index:6}
.mobile-menu nav a{min-height:44px;display:flex;align-items:center;padding:0 12px;border-radius:6px;font-size:14px;color:var(--ink)!important}
.mobile-menu nav a:hover{background:var(--raised)}

@media (max-width:760px){
  .mobile-menu{display:block}
  .on-landing .topbar .brand{min-height:44px}
  .skip{padding:14px}
}

/* #main takes focus programmatically after each route change so screen readers
   start at the content; it is not a control, so it should not draw a ring. */
#main:focus{outline:none}

/* ---- Hero, light with punch (2026-09-25) --------------------------------
   Paper stays; the punch comes from contrast: near-black ink, one saturated
   forest-emerald, a crisp photo with clean whites, and a solid dark CTA. */
.landing-story .story-hero{
  --hero-ink:#0b1a12;
  --hero-sub:#2f4236;
  --hero-accent:#16703a;
  --hero-veil:#f6f7f3;
}
.landing-story .story-hero .hero-art{filter:contrast(1.1) saturate(1.12) brightness(1.01)}
.landing-story .story-hero .hero-veil{
  background:linear-gradient(97deg,rgba(246,247,243,.97) 0%,rgba(246,247,243,.9) 27%,rgba(246,247,243,.3) 47%,rgba(246,247,243,0) 60%);
}
.landing-story .story-hero h1{font-weight:600;letter-spacing:-.028em}
.landing-story .story-hero .eyebrow{color:var(--hero-accent);letter-spacing:.2em;font-weight:700}
.landing-story .story-hero .hero-close p{color:var(--hero-sub)}
.landing-story .story-hero .btn.primary{
  background:#0f2a1b;border-color:#0f2a1b;color:#f6f7f3;
  box-shadow:0 14px 30px -14px rgba(11,26,18,.6);
}
.landing-story .story-hero .btn.primary:hover{background:#16703a;border-color:#16703a}
/* Balance: the copy sat on the floor of the frame with the whole top-left
   empty. Centre it slightly below the middle and give the headline more size. */
@media (min-width:761px){
  .landing-story .story-hero{justify-content:center;padding-block:120px 80px}
  .landing-story .story-hero .hero-copy{max-width:min(720px,47vw);margin-top:4vh}
  .landing-story .story-hero h1{font-size:clamp(44px,5.1vw,84px);line-height:1.03}
  .landing-story .story-hero .hero-close p{font-size:17px;max-width:44ch}
}

/* Footer: legal links beside the closing CTA. */
.footer .footer-links{display:flex;flex-wrap:wrap;gap:20px}
.note a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* "Forgot password?" link under the log-in password field. */
.form-aside{margin:8px 0 0;font-size:13px;text-align:right}
.form-aside a{color:var(--gold);text-decoration:underline;text-underline-offset:4px}

/* Paymachi identity: Earned Hours mark and lowercase editorial wordmark. */
.brand .paymachi-wordmark{font-family:'Lora',Georgia,serif;font-size:30px;font-weight:600;line-height:1;letter-spacing:-.035em;color:var(--hero-ink,var(--ink))}
.brand img{width:36px;height:36px;object-fit:contain;flex-shrink:0}
@media(max-width:760px){.brand .paymachi-wordmark{font-size:25px}.brand img{width:30px;height:30px}}

/* Sign-up screen: choose the web account or the Android app. */
.app-choice{margin-top:34px}
.app-choice-or{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.app-choice-or:before,.app-choice-or:after{content:"";flex:1;height:1px;background:var(--line)}
.app-choice h2{margin:22px 0 0;font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:26px;letter-spacing:-.02em;line-height:1.15}
.app-choice>p{margin:10px 0 0;max-width:36ch;color:var(--muted);line-height:1.55}
.app-choice .note{margin-top:12px}
.play{display:inline-flex;align-items:center;gap:14px;margin-top:20px;min-height:58px;padding:0 24px 0 20px;border-radius:5px;background:#14211a;color:#f6f9f0;text-decoration:none;transition:transform .16s ease}
.play:active{transform:scale(.98)}
.play:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.play-mark{width:0;height:0;border-style:solid;border-width:11px 0 11px 19px;border-color:transparent transparent transparent currentColor;flex:none}
.play-text{display:flex;flex-direction:column;line-height:1.1;white-space:nowrap}
.play-text small{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;opacity:.82}
.play-text strong{font-size:21px;font-weight:600;letter-spacing:-.01em;margin-top:3px}
.play.is-soon{background:var(--raised);color:var(--ink);cursor:default;box-shadow:inset 0 0 0 1px var(--line)}
.play.is-soon:active{transform:none}

/* Payday questions that do not apply to the chosen pay frequency */
[data-payfor][hidden]{display:none!important}

/* The Guide beside the sign-up story (wave on sign-up and log-in, thinking on the profile and pay steps).
   She stands at the right of the three words, feet on the line under them, so she sits the same on every step. */
.onboarding-manifesto{position:relative;}
.story-guide{position:absolute;right:-14px;bottom:-6px;width:min(220px,40%);height:auto;pointer-events:none;filter:drop-shadow(0 10px 16px rgba(30,50,40,.22));animation:guidePop .45s cubic-bezier(.2,.8,.25,1) both;}
@keyframes guidePop{from{opacity:0;transform:translateY(12px) scale(.96);}to{opacity:1;transform:none;}}
@media(max-width:900px){.story-guide{display:none;}}
@media(prefers-reduced-motion:reduce){.story-guide{animation:none;}}

/* Sign-up pay step: twice-a-month pay shows the usual 15th and end of month, the two pickers sit behind "Different days" */
.payday-default{display:flex;flex-direction:column;gap:4px;margin:2px 0 4px;}
.payday-label{font-size:13px;font-weight:600;}
.payday-default strong{font-size:15px;}
.payday-link{align-self:flex-start;padding:0;border:0;background:none;color:var(--accent,#315a47);font:inherit;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
[data-customdays][hidden],[data-defaultdays][hidden]{display:none!important;}

/* Mobile mockup refinement: portrait and headline form one composed group;
   supporting copy and the action have their own space beneath it. */
.hero-mobile-portrait { display: none; }
@media (max-width: 760px) {
  .landing-story .story-hero {
    height: auto; min-height: 0; max-height: none;
    justify-content: flex-start; padding: 108px 22px 28px;
  }
  .landing-story .hero-copy {
    display: grid;
    grid-template-columns: minmax(0,.44fr) minmax(0,.56fr);
    grid-template-rows: 32px auto auto auto;
    gap: 16px 18px;
    width: 100%; max-width: 520px; margin-inline: auto;
    animation: none; opacity: 1; transform: none;
  }
  .hero-mobile-portrait {
    display: block; grid-column: 1; grid-row: 1 / 4;
    height: 100%; min-height: clamp(228px,65vw,270px);
    width: calc(100% + 22px); margin-left: -22px;
    overflow: hidden; border-radius: 0;
    background: transparent;
    mask-image: linear-gradient(90deg,#000 76%,transparent),
      linear-gradient(180deg,transparent,#000 8%,#000 88%,transparent);
    mask-composite: intersect;
  }
  .hero-mobile-portrait img {
    width: 100%; height: 100%; object-fit: cover; object-position: 80% center;
  }
  .landing-story .hero-mobile-portrait { animation: none; }
  .landing-story .story-hero .eyebrow {
    grid-column: 2; grid-row: 1; align-self: end;
    margin: 0; font-size: 9px; line-height: 1.55; letter-spacing: .1em;
  }
  .landing-story .story-hero h1 {
    grid-column: 2; grid-row: 2; align-self: start;
    font-size: clamp(27px,7.4vw,33px);
    line-height: 1.12; letter-spacing: -.03em; text-wrap: balance;
  }
  .landing-story .hero-close { display: contents; }
  .landing-story .hero-close p {
    grid-column: 1 / -1; grid-row: 4;
    margin-top: 6px; font-size: 15px; line-height: 1.65; max-width: 36ch;
  }
  .landing-story .story-hero .hero-close .btn.primary {
    grid-column: 2; grid-row: 3; justify-self: stretch; align-self: end;
    display: grid; grid-template-columns: minmax(0,1fr) 24px;
    width: 100%; max-width: 100%; min-height: 52px;
    align-items: center; gap: 8px;
    padding: 9px 8px 9px 12px; margin-top: 0;
    border-radius: 18px; border-color: #193e2a; background: #193e2a;
    white-space: normal; text-align: left;
    font-size: 12px; line-height: 1.35; font-weight: 600; letter-spacing: 0; box-shadow: none;
    transition: background .16s ease, transform .16s ease;
  }
  .landing-story .story-hero .hero-close .btn.primary > span {
    display: grid; place-items: center; flex: none;
    width: 24px; height: 24px; border: 1px solid #f6f7f34d;
    border-radius: 50%; background: #f6f7f314; font-size: 17px; line-height: 1;
  }
  .landing-story .story-hero .hero-close .btn.primary:hover { background: #245337; }
  .landing-story .story-hero .hero-close .btn.primary:active { transform: scale(.98); }
  @media (prefers-reduced-motion: reduce) {
    .landing-story .story-hero .hero-close .btn.primary { transition: none; }
  }
  .landing-story .hero-stage {
    display: block; position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%; margin: 0;
    transform: none !important; transition: none;
  }
  .hero-stage picture { display: block; width: 100%; height: 100%; }
  .landing-story .story-hero .hero-art {
    width: 100%; height: 100%; object-fit: cover; object-position: 15% center;
    filter: saturate(.9); animation: none; transform: none;
  }
  .landing-story .story-hero .hero-veil {
    display: block;
    background: linear-gradient(90deg,#f6f7f34d,#f6f7f3e8 48%,#f6f7f3),
      linear-gradient(180deg,#f6f7f380,transparent 40%,#f6f7f3);
  }
  .landing-story .story-hero .hero-veil::after { content: none; }
  .landing-story .story-hero::after { content: none; }
  .landing-story .tension { height: auto; padding: 0; gap: 0; }
  .tension-sticky { position: relative; height: auto; min-height: 0; padding: 48px 24px; }
  .tension-inner { gap: 24px; }
  .tension-inner .chapter-intro { margin-bottom: 0; }
  .tension-media { max-height: 250px; }
  /* The source is portrait (880 x 1100). Fit the whole frame and reserve
     a separate control row, rather than cropping it into a landscape box. */
  .landing-story .tension .tension-media {
    width: 100%; height: 300px; max-height: none;
    aspect-ratio: auto; overflow: visible;
    background: transparent; box-shadow: none; border-radius: 0;
  }
  .landing-story .tension .tension-art,
  .landing-story .tension .tension-loop {
    height: calc(100% - 54px);
    object-fit: contain; object-position: center;
  }
  .landing-story .tension .tension-media::before { display: none; }
  .landing-story .tension .tension-loop,
  .landing-story .tension .tension-motion { display: block; }
  .landing-story .tension .tension-motion {
    top: auto; bottom: 0; left: 50%; right: auto;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 24px;
    background: #0a1410e6;
    font-size: 12px;
  }
  .landing-story .tension .questions-stack p,
  .landing-story .tension .questions-stack strong { opacity: 1; transform: none; }
  .landing-story .tension .questions-stack p { color: var(--mk-night-ink); }
  .meaning-scroll { height: auto; }
  .meaning-sticky { position: relative; height: auto; min-height: 0; padding-bottom: 32px; }
  .meaning-visual { height: 320px; }
  .meaning-copy { padding: 344px 24px 0; gap: 20px; }
  .meaning-word { font-size: clamp(26px,7vw,32px); }

  /* Phones use the existing gallery controls directly. No long pinned track,
     no empty frame around a small screenshot, and all three features remain. */
  .landing-story .reel { height: auto; min-height: 0; margin-top: 36px; padding-top: 24px; }
  .reel-sticky { position: static; display: flex; flex-direction: column; }
  .reel-stage { display: flex; flex-direction: column; gap: 24px; }
  .reel-bottom { order: -1; margin: 0 0 28px; }
  .reel-nav button { min-height: 64px; padding: 12px 8px 6px 0; font-size: 12px; }
  .reel-nav button span { margin-bottom: 6px; }
  .reel-details { min-height: 0; }
  .reel-meta { min-height: 104px; }
  .reel-caption h3 { font-size: clamp(28px, 7.5vw, 34px); max-width: 18ch; }
  .reel-caption p { font-size: 15px; line-height: 1.55; max-width: 35ch; margin-top: 12px; }
  .reel-frame { height: auto; }
  .reel-slide {
    display: none;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .reel-slide.is-active { display: block; transform: none; }
  .reel-shot-pair.is-active { display: flex; height: auto; gap: 16px; }
  .reel-shot-pair .reel-pair-shift { width: min(86%, 300px); }
  .reel-shot-pair .reel-pair-math { width: 100%; }
  .landing-story .clarity { padding-block: 64px; }
  .landing-story .faq { padding-block: 64px; }
  .footer { padding-bottom: 32px; gap: 20px; }
  .footer .footer-links { gap: 4px 20px; }
}

/* Phone scroll storytelling: each chapter has a short swipe track, with the
   complete composition held in view. Reduced-motion keeps normal flow. */
@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .landing-story .tension { height: calc(100svh + 640px); }
  .tension-sticky {
    position: sticky; top: 16px; height: calc(100svh - 32px);
    min-height: 0; padding: 24px 22px;
  }
  .tension-inner { gap: 18px; grid-template-rows: auto auto 100px; }
  .landing-story .tension .tension-media { height: clamp(252px,40svh,340px); }
  .tension-inner .chapter-intro .chapter-label { font-size: 9px; margin-bottom: 10px; }
  .landing-story .tension h2 { font-size: clamp(27px,7.5vw,32px); line-height: 1.12; }
  .tension-inner .chapter-intro > p:last-child { font-size: 14px; line-height: 1.5; margin-top: 12px; }
  .questions-stack { position: relative; height: 100px; }
  .landing-story .tension .questions-stack p,
  .landing-story .tension .questions-stack p.is-asked {
    position: absolute; inset: 0; display: flex; align-items: center;
    padding: 0; margin: 0; font-size: 20px; line-height: 1.4;
    opacity: 0; transform: translateY(8px);
    transition: opacity .2s ease-out, transform .2s ease-out;
  }
  .landing-story .tension .questions-stack p.is-active { opacity: 1; transform: none; }
  .landing-story .tension.is-resolved .questions-stack p.is-asked { opacity: 0; }
  .landing-story .tension .questions-stack strong {
    position: absolute; inset: 0; display: flex; align-items: center;
    margin: 0; padding: 0; border: 0; font-size: 17px; line-height: 1.5;
    opacity: 0; transform: translateY(8px); transition: opacity .2s ease-out, transform .2s ease-out;
  }
  .landing-story .tension.is-resolved .questions-stack strong { opacity: 1; transform: none; }

  .landing-story .reel { height: calc(100svh + 600px); min-height: 0; }
  .reel-sticky {
    position: sticky; top: 16px; height: calc(100svh - 32px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .reel-stage { gap: 18px; }
  .reel-meta { min-height: 100px; }
  .reel-caption h3 { font-size: clamp(26px,7vw,32px); }
  .reel-caption p { font-size: 14px; margin-top: 10px; }
  .reel-bottom { margin-bottom: 20px; }
  .reel-frame { height: min(48svh,380px); }
  .reel-slide {
    display: block; position: absolute; top: 50%; left: 50%;
    opacity: 0; visibility: hidden;
    transform: translate(-50%,-50%) translateY(12px) scale(.985);
    transition: opacity .24s ease-out, transform .28s cubic-bezier(.2,.7,.2,1), visibility .24s;
  }
  .reel-slide.is-active { opacity: 1; visibility: visible; transform: translate(-50%,-50%); }
  .reel-shot-clock { width: min(100%,44svh); }
  .reel-shot-pair.is-active { display: flex; height: 100%; justify-content: center; gap: 12px; }
  .reel-shot-pair .reel-pair-shift { width: min(72%,25svh,220px); }
  .reel-shot-pair .reel-pair-math { width: 100%; }

  .meaning-scroll { height: calc(100svh + 520px); }
  .meaning-sticky { position: sticky; top: 16px; height: calc(100svh - 32px); min-height: 0; padding: 0; }
  .meaning-visual { height: 42svh; }
  .meaning-copy { height: 100%; padding: calc(42svh + 20px) 22px 24px; gap: 16px; }
  .meaning-word { font-size: clamp(25px,6.8vw,31px); line-height: 1.15; }
  .meaning-word.is-active { transform: none; }
  .meaning-word button { min-height: 44px; }
  .meaning-caption { margin-top: 0; font-size: 13px; line-height: 1.5; }
}

/* Mobile editorial rhythm: media gets its natural size; reading never depends
   on squeezing a portrait film and an entire chapter into one screen. */
@media (max-width:760px) {
  .landing-story .tension { height:auto; padding:0; }
  .tension-sticky { position:relative; top:auto; height:auto; padding:40px 22px 48px; }
  .tension-inner { display:flex; flex-direction:column; gap:28px; }
  .landing-story .tension .tension-media {
    width:100%; height:auto; aspect-ratio:4 / 5;
    overflow:hidden; border-radius:14px; background:#13231c;
  }
  .landing-story .tension .tension-art,
  .landing-story .tension .tension-loop {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:contain; object-position:center;
  }
  .landing-story .tension .tension-motion {
    left:auto; right:12px; bottom:12px; transform:none;
    min-height:44px; padding:10px 15px; font-size:12px;
    background:#0a1410ed; border:1px solid #ffffff55;
  }
  .tension-inner .chapter-intro { width:100%; }
  .tension-inner .chapter-intro .chapter-label {font-size:10px; margin-bottom:14px;}
  .landing-story .tension h2 {font-size:clamp(32px,8.5vw,40px);line-height:1.12;max-width:18ch;}
  .tension-inner .chapter-intro > p:last-child {font-size:16px;line-height:1.6;margin-top:16px;}
  .questions-stack {height:auto;position:relative;width:100%;}
  .landing-story .tension .questions-stack p,
  .landing-story .tension .questions-stack p.is-asked,
  .landing-story .tension.is-resolved .questions-stack p.is-asked {
    position:relative;inset:auto;display:block;padding:18px 0;margin:0;
    border-top:1px solid #b9ccb62e;font-size:20px;line-height:1.4;
    opacity:.48;transform:none;transition:opacity .3s ease;
  }
  .landing-story .tension .questions-stack p.is-active {opacity:1;}
  .landing-story .tension .questions-stack strong,
  .landing-story .tension.is-resolved .questions-stack strong {
    position:relative;inset:auto;display:block;margin:18px 0 0;padding:0;
    font-size:18px;line-height:1.5;opacity:1;transform:none;color:#d9e4cf;
  }
  .landing-story .reel {margin-top:0;padding-top:36px;}
  .landing-story .clarity {padding:56px 22px;}
  .landing-story .faq {padding:56px 22px;}
  .reel-nav button {min-height:56px;}
  .meaning-caption {font-size:15px;line-height:1.6;}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce) {
 .landing-story .tension .questions-stack p {opacity:1;transition:none;}
}

/* Mobile hero: a single editorial lockup, with intrinsic text-led rows. */
@media(max-width:760px) {
 .landing-story .story-hero {padding:100px 22px 30px;}
 .landing-story .hero-copy {
   grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);
   grid-template-rows:auto auto auto auto;gap:20px 16px;
 }
 .landing-story .story-hero .eyebrow {
   grid-column:1 / -1;grid-row:1;font-size:9px;letter-spacing:.13em;
   line-height:1.5;margin:0 0 2px;max-width:none;
 }
 .hero-mobile-portrait {
   position:relative;grid-row:2 / 4;grid-column:1;
   min-height:0;height:100%;width:calc(100% + 22px);margin-left:-22px;
   mask-image:linear-gradient(90deg,#000 85%,transparent),linear-gradient(180deg,transparent,#000 3%,#000 94%,transparent);
 }
 .hero-mobile-portrait img {position:absolute;inset:0;width:100%;height:100%;object-position:79% center;}
 .landing-story .story-hero h1 {
   grid-row:2;align-self:center;font-size:clamp(27px,7.65vw,34px);
   line-height:1.08;letter-spacing:-.035em;text-wrap:pretty;margin:0;
 }
 .landing-story .story-hero .hero-close .btn.primary {
   grid-row:3;align-self:start;min-height:52px;border-radius:10px;
   padding:10px 10px 10px 12px;font-size:12px;line-height:1.35;
 }
 .landing-story .hero-close p {
   grid-row:4;margin:4px 0 0;padding-top:18px;border-top:1px solid #193e2a24;
   font-size:15px;line-height:1.6;max-width:none;
 }
}

/* Keep the desktop reading order together beside a taller portrait. */
@media(max-width:760px) {
 .landing-story .hero-copy {grid-template-rows:auto auto auto auto;gap:16px 16px;}
 .hero-mobile-portrait {grid-row:2 / 5;min-height:290px;}
 .hero-mobile-portrait img {object-position:80% center;}
 .landing-story .hero-close p {
   grid-column:2;grid-row:3;align-self:start;
   padding:0;margin:0;border:0;font-size:14px;line-height:1.55;
 }
 .landing-story .story-hero h1 {align-self:end;}
 .landing-story .story-hero .hero-close .btn.primary {grid-row:4;align-self:start;}
}

/* Finish the mobile lockup: controlled row spacing and softer photo seams. */
@media(max-width:760px) {
 .landing-story .story-hero {padding-bottom:32px;}
 .landing-story .hero-copy {
   grid-template-rows:auto auto auto auto;
   row-gap:18px;column-gap:18px;align-content:start;
 }
 .landing-story .story-hero .eyebrow {margin-bottom:8px;font-size:9px;letter-spacing:.12em;}
 .hero-mobile-portrait {
   min-height:0;
   mask-image:linear-gradient(90deg,#000 75%,transparent 100%),linear-gradient(180deg,transparent,#000 7%,#000 91%,transparent);
 }
 .landing-story .story-hero h1 {align-self:start;line-height:1.1;letter-spacing:-.03em;}
 .landing-story .hero-close p {font-size:14px;line-height:1.6;color:#344c3e;}
 .landing-story .story-hero .hero-close .btn.primary {
   margin-top:4px;min-height:54px;padding:10px 10px 10px 13px;
   border-radius:12px;background:#173d2a;
 }
 .landing-story .story-hero .hero-close .btn.primary > span {
   width:26px;height:26px;font-size:18px;background:transparent;
 }
}
/* A single film, with a five-beat text story beneath it. */
@media(max-width:760px) {
 .hero-mobile-portrait img {object-position:76% center;}
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference) {
 .landing-story .tension {height:calc(100svh + 1000px);}
 .tension-sticky {position:sticky;top:12px;height:calc(100svh - 24px);padding:12px 22px;}
 .tension-inner {display:grid;grid-template-columns:1fr;grid-template-rows:auto 176px;gap:20px;}
 .landing-story .tension .tension-media {grid-column:1;grid-row:1;width:min(100%,calc((100svh - 244px)*.8));justify-self:center;}
 .tension-inner .chapter-intro,.questions-stack {grid-column:1;grid-row:2;margin:0;position:relative;height:176px;}
 .tension-inner .chapter-intro {opacity:0;transition:opacity .25s ease;pointer-events:none;}
 .tension[data-mobile-beat="-1"] .chapter-intro {opacity:1;}
 .tension-inner .chapter-intro .chapter-label {font-size:9px;margin-bottom:8px;}
 .landing-story .tension h2 {font-size:28px;line-height:1.12;}
 .tension-inner .chapter-intro > p:last-child {font-size:14px;line-height:1.5;margin-top:10px;}
 .landing-story .tension .questions-stack p,
 .landing-story .tension .questions-stack p.is-asked,
 .landing-story .tension.is-resolved .questions-stack p.is-asked,
 .landing-story .tension .questions-stack strong {
  position:absolute;inset:0;display:flex;align-items:center;margin:0;padding:0;border:0;
  font-size:clamp(24px,6.8vw,30px);line-height:1.3;opacity:0;transform:translateY(8px);
  transition:opacity .25s ease,transform .25s ease;pointer-events:none;
 }
 .landing-story .tension .questions-stack p.is-active,
 .landing-story .tension.is-resolved .questions-stack strong {opacity:1;transform:none;}
 .landing-story .tension.is-resolved .questions-stack strong {font-size:24px;text-transform:none;letter-spacing:0;}
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference) {
 .tension-inner .questions-stack {grid-column:1;grid-row:2;}
}

@media(max-width:760px) {
 .landing-story .hero-copy {grid-template-columns:minmax(0,.48fr) minmax(0,.52fr);column-gap:14px;}
 .landing-story .story-hero h1 {font-size:clamp(25px,7vw,31px);line-height:1.12;}
 .landing-story .hero-close p {font-size:13px;line-height:1.6;}
 .hero-mobile-portrait {min-height:280px;}
 .hero-mobile-portrait img {object-position:76% center;}
 .landing-story .story-hero .hero-close .btn.primary {font-size:11.5px;gap:6px;padding-left:10px;}
}

/* Allow a deliberate phone swipe per story beat, rather than several beats
   within one swipe. Keep native scrolling and immediate reverse navigation. */
@media(max-width:760px) and (prefers-reduced-motion:no-preference) {
 .landing-story .tension {height:calc(100svh + max(500px, 85svh) * 5);}
 .landing-story .reel {height:calc(100svh + max(500px, 85svh) * 3);}
 .meaning-scroll {height:calc(100svh + max(500px, 85svh) * 3);}
 .tension-inner .chapter-intro,
 .landing-story .tension .questions-stack p,
 .landing-story .tension .questions-stack strong {transition:opacity .15s ease;transform:none;}
 .reel-slide {transition:opacity .15s ease,visibility .15s;}
}

/* Give the opening composition a substantial first-screen presence. */
@media(max-width:760px) {
 .landing-story .story-hero {min-height:88svh;padding-top:114px;padding-bottom:44px;}
 .landing-story .hero-copy {row-gap:24px;}
 .hero-mobile-portrait {min-height:clamp(350px,54svh,470px);}
 .landing-story .story-hero h1 {align-self:center;}
 .landing-story .hero-close p {align-self:center;font-size:14px;}
 .landing-story .story-hero .hero-close .btn.primary {align-self:center;}
}
@media(max-width:760px) { .hero-mobile-portrait img {object-position:73% center;} }

/* Story beats are one or two lines: the pinned photo takes the height the text does not need. */
@media(max-width:760px) and (prefers-reduced-motion:no-preference) {
 .tension-inner {grid-template-rows:auto auto;gap:18px;align-content:start;padding-top:12px;}
 .tension-inner .chapter-intro {height:auto;}
 .tension-inner .questions-stack {height:84px;}
 .landing-story .tension .questions-stack p,
 .landing-story .tension .questions-stack strong {align-items:flex-start;}
 .landing-story .tension .tension-media {width:100%;height:calc(100svh - 200px);max-height:640px;aspect-ratio:auto;}
 .landing-story .tension .tension-media :is(video,img,picture){width:100%;height:100%;object-fit:cover;}
}

/* Let the portrait carry the first screen: wider photo column, copy tucked right. */
@media(max-width:760px) {
 .landing-story .hero-copy {grid-template-columns:minmax(0,.55fr) minmax(0,.45fr);column-gap:10px;}
 .landing-story .story-hero h1 {font-size:clamp(23px,6.3vw,29px);}
 .landing-story .hero-close p {font-size:13px;}
 .landing-story .story-hero .hero-close .btn.primary {font-size:11px;padding-left:9px;}
 .hero-mobile-portrait {
   width:calc(100% + 22px);
   mask-image:linear-gradient(90deg,#000 88%,transparent 100%),linear-gradient(180deg,transparent,#000 5%,#000 93%,transparent);
 }
 .hero-mobile-portrait img {object-position:74% center;}
}

/* Sign in and sign up: one calm column, the same screen as the Android app.
   Google first; email and password behind a small link. */
.is-auth .topbar .brand{visibility:hidden}
.auth-layout{min-height:calc(100dvh - 88px);display:grid;place-items:center;padding:8px 0 72px}
.auth-card{width:min(100%,400px);display:flex;flex-direction:column;text-align:center}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:14px;margin:0 auto 34px}
.auth-brand img{width:62px;height:70px;object-fit:contain}
.auth-brand .paymachi-wordmark{font-family:'Playfair Display',Georgia,serif;font-size:44px;font-weight:500;letter-spacing:-.045em;line-height:1;color:var(--ink)}
.auth-card h1{font-family:Inter,Arial,sans-serif;font-size:16px;font-weight:500;letter-spacing:0;line-height:1.4;color:var(--muted);margin:0 0 22px}
.auth-trial{margin:-4px 0 16px;font-size:13px;font-weight:600;line-height:1.4;color:var(--gold)}
.auth-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;padding:0 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:16px;font-weight:500;transition:background .18s,border-color .18s,transform .18s}
.auth-google:hover{background:var(--raised)}
.auth-google:active{transform:translateY(1px)}
.auth-google:disabled{opacity:.6}
.auth-google[hidden],.auth-link[hidden],.auth-card form[hidden]{display:none}
.auth-layout .inline-status{min-height:20px;margin:12px 0 0;text-align:center;font-size:13px;line-height:1.5;color:var(--ink)}
.auth-link{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin-top:10px;border:0;background:transparent;color:var(--gold);font-size:13px;font-weight:600}
.auth-link:hover{text-decoration:underline;text-underline-offset:4px}
.auth-card form{margin-top:14px;text-align:left}
.auth-card .field input{border-radius:10px;height:50px}
.auth-card .form-aside{text-align:right;margin-top:-2px;font-size:12px}
.auth-card .form-aside a{color:var(--gold);text-decoration:underline;text-underline-offset:4px}
.auth-card .form-submit{margin-top:20px;border-radius:12px;min-height:52px}
.auth-legal{margin:14px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}
.auth-legal a{color:var(--gold);font-weight:600}
.auth-switch{margin:22px 0 0;font-size:13px;color:var(--muted)}
.auth-switch a{margin-left:6px;color:var(--gold);font-weight:600}
.auth-switch a:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:760px){
 .auth-layout{min-height:calc(100dvh - 74px);align-items:start;padding-top:20px}
 .auth-brand{margin-bottom:28px}
 .auth-brand .paymachi-wordmark{font-size:40px}
}
@media(prefers-reduced-motion:reduce){.auth-google{transition:none}}

/* Consent: two plain checkboxes before an account is made, and the same box again when the terms change. */
.consent{border:0;padding:0;margin:4px 0 14px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.check{display:flex;gap:12px;align-items:flex-start;padding:8px 0;min-height:44px;font-size:14px;line-height:1.5;color:var(--text,inherit);cursor:pointer}
.check input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--gold)}
.check a{color:var(--gold);font-weight:600}

/* Tall desktop monitors (more than 1080px high): the opening screen fills the window instead of stopping at
   1080px and leaving a dark band under the photograph. */
@media (min-width: 761px) and (min-height: 1081px) {
  .landing-story .story-hero { min-height: 100svh; max-height: none; }
}

/* Upright screens wider than a phone (iPad held upright, a monitor turned on its side): the photograph
   crops to a narrow slice where her blazer runs under the headline and the dark text cannot be read.
   They get the same cut-out figure above the copy that phones get, with the copy on the clear cream. */
@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
  .landing-story .story-hero { height: min(calc(100svh - 88px), 1100px); min-height: 0; max-height: none; }
  .hero-stage { display: none; }
  .hero-loop, .hero-motion { display: none; }
  .landing-story .story-hero::after {
    content: '';
    position: absolute;
    right: 3%;
    top: 7%;
    width: min(70%, 760px);
    height: 46%;
    background: url('assets/tension-figure.webp?v=2') right bottom / contain no-repeat;
    z-index: 0;
    pointer-events: none;
  }
  .hero-veil { background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--hero-veil) 16%, transparent) 34%, color-mix(in srgb, var(--hero-veil) 62%, transparent) 56%, color-mix(in srgb, var(--hero-veil) 92%, transparent) 76%, var(--bg) 100%); }
  .reel-sticky { top: max(68px, 20svh); }
}

/* Very narrow phones (iPhone SE and mini, 320-wide Androids): "Log in" must stay on one line beside Menu. */
@media (max-width: 360px) {
  .brand .paymachi-wordmark { font-size: 21px; }
  .brand img { width: 26px; height: 26px; }
  .nav-actions { gap: 6px; }
  .nav-actions .text-link { white-space: nowrap; }
}
