/* ══════════════════════════════════════════════════════════════════════
   theme-journey.css  –  illustrative scroll cinematics for the leg pages
   (present.html / grounded.html / yours.html).

   Modelled on the homepage JOURNEY engine (index.html on
   feat/homepage-superb-2026-07-07): a sticky frame pins a fit()-scaled logical
   stage; scroll progress drives actors that ILLUSTRATE the page's copy while
   woven narration fades through. Reduced-motion / narrow viewports fall back
   to a static storyboard of the same beats, exactly like the homepage.
   Driven by assets/theme-journey.js.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Sticky scene shell ─────────────────────────────────────────────── */
.jscene { position: relative; height: 440vh; }
.jscene-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; }
.jscene-head { position: absolute; top: 90px; left: 0; right: 0; text-align: center; z-index: 1; pointer-events: none; padding: 0 24px; will-change: transform, opacity; }
.jscene-head .p-eyebrow { display: block; width: fit-content; margin-left: auto !important; margin-right: auto !important; text-align: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.jscene-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); margin: 0 auto; max-width: 860px; text-wrap: balance; }
.jscene-head h1 strong { font-weight: 700; color: var(--accent); }
.jscene-head p { font-family: var(--font-body); font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(20,18,14,0.72); max-width: 640px; margin: 16px auto 0; line-height: 1.45; }
.jscene-head .hero-actions { margin-top: 26px; display: flex; gap: 24px; justify-content: center; align-items: center; pointer-events: auto; }

.j-wash { position: absolute; inset: 0; background: radial-gradient(58% 52% at 50% 48%, rgba(236,235,229,0.6), rgba(248,248,244,0) 72%); pointer-events: none; }
/* the stage OWNS the frame (headline fades away over it), exactly like the homepage */
.j-stage-wrap { z-index: 2; position: absolute; inset: 64px 0 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jstage { position: relative; flex: 0 0 auto; transform-origin: center center; }
.jact { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* ── Actor: brand illustrations (Nano-Banana webp suite) — the hero of each
      scene, sized + posed exactly like the homepage JOURNEY's .j-el img. ── */
.jart { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.jart img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
/* soft contact shadow so a hero piece "sits", mirrors homepage .j-ground */
.jground { position: absolute; left: 0; top: 0; width: 220px; height: 15px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20,18,14,0.14) 0%, rgba(20,18,14,0) 68%); will-change: transform, opacity; }
/* a caption pinned under an illustration (e.g. "phone down · 0 typed") */
.jart-cap { position: absolute; left: 0; top: 0; transform: translate(-50%,-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: rgba(20,18,14,0.5); text-align: center; will-change: transform, opacity; }
.jart-cap strong { color: var(--accent-3); font-weight: 600; }
/* accent glow behind the record the magnifier lands on (Empowered) */
.jhit { position: absolute; left: 0; top: 0; width: 180px; height: 180px; border-radius: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle at center, rgba(139,31,31,0.22) 0%, rgba(139,31,31,0) 70%); will-change: transform, opacity; pointer-events: none; }

/* ── Actor: cards ───────────────────────────────────────────────────── */
.jcard { width: 300px; background: #fff; border: 1px solid var(--hairline-faint); border-radius: 12px; padding: 16px 18px 15px; box-shadow: 0 12px 34px rgba(20,18,14,0.10); }
.jcard-strap { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(20,18,14,0.45); margin-bottom: 10px; }
.jcard-head { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--hairline-faint); margin-bottom: 4px; }
.jcard-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.jcard-sub { font-family: var(--font-body); font-size: 11px; color: rgba(20,18,14,0.55); }
.jrow { display: flex; align-items: baseline; gap: 8px; padding: 7px 0 0; font-size: 12.5px; will-change: opacity, transform; }
.jrow .jk { font-family: var(--font-body); color: var(--ink); }
.jrow .jtag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; color: var(--accent); margin-left: auto; white-space: nowrap; background: rgba(139,31,31,0.06); border: 1px solid rgba(139,31,31,0.22); border-radius: 999px; padding: 2px 8px; }
.jav { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: rgba(139,31,31,0.10); border: 1px solid rgba(139,31,31,0.40); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 12px; }

/* ── Actor: source chips ────────────────────────────────────────────── */
.jchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; background: #fff; border: 1px solid var(--hairline-faint); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; color: rgba(20,18,14,0.72); box-shadow: 0 6px 16px rgba(20,18,14,0.06); white-space: nowrap; }
.jchip .dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* ── Actor: speech / chat ───────────────────────────────────────────── */
.jbub { max-width: 288px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; padding: 10px 14px; border-radius: 14px; background: #f3f1eb; color: var(--ink); border: 1px solid var(--hairline-faint); border-bottom-left-radius: 4px; box-shadow: 0 6px 16px rgba(20,18,14,0.05); }
.jperson { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jperson .jav { width: 46px; height: 46px; font-size: 15px; }
.jperson .jp-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); }
.jperson .jp-meta { font-family: var(--font-mono); font-size: 10px; color: rgba(20,18,14,0.5); }

/* phone, face down */
.jphone { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.jphone-body { width: 66px; height: 118px; border-radius: 15px; background: #14120e; box-shadow: 0 14px 26px rgba(20,18,14,0.24); position: relative; }
.jphone-body::after { content: ""; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 20px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.14); }
.jphone-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: rgba(20,18,14,0.5); text-align: center; }
.jphone-label strong { color: var(--accent-3); font-weight: 600; }

/* stamp / badge */
.jstamp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--chassis); border: 1.5px solid var(--accent-3); color: var(--accent-3); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; }
.jstamp svg { width: 13px; height: 13px; }

/* ── Actor: archive grid + answer (Empowered) ───────────────────────── */
.e-grid { display: grid; grid-template-columns: repeat(8, 30px); grid-auto-rows: 22px; gap: 7px; }
.e-tile { border-radius: 4px; background: #eae7df; transition: none; }
.jbar { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--hairline-faint); border-radius: 999px; padding: 11px 18px; font-family: var(--font-body); font-size: 14.5px; color: var(--ink); box-shadow: 0 10px 26px rgba(20,18,14,0.08); white-space: nowrap; }
.jbar svg { width: 16px; height: 16px; color: rgba(20,18,14,0.4); flex-shrink: 0; }
.jbar .jcaret { display: inline-block; width: 1px; height: 1.05em; background: var(--accent); animation: jcaret 1s step-end infinite; }
@keyframes jcaret { 50% { opacity: 0; } }
.jans { width: 320px; background: #fff; border: 1px solid var(--hairline-faint); border-radius: 12px; padding: 15px 17px; box-shadow: 0 16px 40px rgba(20,18,14,0.12); }
.jans-text { font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.jans-cite { font-family: var(--font-mono); font-size: 10.5px; color: rgba(20,18,14,0.6); margin-top: 9px; padding: 6px 10px; background: rgba(20,18,14,0.03); border-left: 2px solid var(--accent); }

/* ── Woven narration (anchored to the bottom of the sticky viewport) ── */
.jnote { position: absolute; left: 50%; bottom: 6.5vh; transform: translateX(-50%); width: min(600px, 84vw); text-align: center; font-family: var(--font-body); font-size: clamp(1.06rem, 1.5vw, 1.3rem); line-height: 1.5; color: rgba(20,18,14,0.8); text-wrap: balance; opacity: 0; z-index: 7; will-change: transform, opacity; }
.jnote strong { font-weight: 600; color: var(--ink); }

/* ── SVG connective lines ───────────────────────────────────────────── */
.j-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

/* ── Storyboard fallback (reduced motion + narrow) ──────────────────── */
.jscene-figs { display: none; max-width: 640px; margin: 34px auto 0; padding: 0 22px; }
.jfig { margin-bottom: 54px; }
.jfig-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; min-height: 120px; }
.jfig-row .jcard, .jfig-row .jans { position: static; width: 240px; }
.jfig-row .jchip, .jfig-row .jbub, .jfig-row .jphone, .jfig-row .jstamp, .jfig-row .jbar, .jfig-row .e-grid, .jfig-row .jperson { position: static; transform: none; }
.jfig-row img { display: block; height: auto; -webkit-user-drag: none; user-select: none; }
.jfig-arrow { font-family: var(--font-display); font-size: 22px; color: rgba(20,18,14,0.4); }
.jfig p { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: rgba(20,18,14,0.78); margin: 18px 0 0; text-wrap: pretty; }
.jfig p strong { font-weight: 600; color: var(--ink); }

/* ── Narrow-viewport guard ────────────────────────────────────────────
   Scene components carry fixed px widths (.jcard 300, .jans 320) and
   white-space:nowrap (.jbar, .jstamp, .jchip) so they hold their shape
   inside the transformed stage. In the STORYBOARD they sit in normal
   flow, where those intrinsic widths can exceed a 320-360px viewport
   (.jbar measured 359px at 320px = 19px of overhang, held in only by the
   body clip). Cap them to the container and let the nowrap chips wrap. */
.jcard, .jans, .jbar, .jstamp, .jchip { max-width: 100%; }
@media (max-width: 560px) {
  .jbar, .jstamp { white-space: normal; }
  .jbar { border-radius: 18px; }
}

/* The scenes PLAY on phones (portrait mode in theme-journey.js switches
   the stage to 420x820 and uses the RENDER_P choreography). The static
   storyboard is now the REDUCED-MOTION fallback only - do not re-add a
   width breakpoint here or you kill the mobile animation. */
@media (prefers-reduced-motion: reduce) {
  .jscene { height: auto; }
  .jscene-sticky { position: static; height: auto; min-height: 0; overflow: visible; padding: 96px 0 8px; }
  .jscene-head { position: static; }
  .jscene-head .hero-actions { pointer-events: auto; }
  .j-wash, .j-stage-wrap { display: none; }
  .jscene-figs { display: block; }
}

/* ── Shared editorial furniture (prose, callout, pull, proofs, legs) ── */
.tprose { max-width: 720px; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: rgba(20,18,14,0.8); margin: 0 auto; }
.tprose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 56px 0 18px; text-wrap: pretty; }
.tprose p { margin-bottom: 14px; }
.tprose p strong, .tprose li strong { color: var(--ink); font-weight: 600; }
.tprose em { font-style: italic; }
.tprose a { color: var(--accent); }
.tprose a:hover { color: var(--accent-hover); }

.callout { background: var(--panel); border: 1px solid var(--hairline-faint); border-left: 3px solid var(--accent); border-radius: 4px; padding: 22px 26px; margin: 24px 0; box-shadow: var(--shadow-card-soft); }
.callout p { margin: 0; font-size: 15.5px; color: rgba(20,18,14,0.78); }
.callout p strong { color: var(--ink); font-weight: 600; }

.pull { margin: 56px auto; max-width: 720px; text-align: center; }
.pull-text { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.32; letter-spacing: -0.01em; color: var(--accent); text-wrap: balance; }
.pull-rule { display: block; width: 64px; height: 2px; background: var(--accent); margin: 24px auto 0; opacity: 0.6; }

.leg-nav { display: flex; gap: 20px 28px; flex-wrap: wrap; justify-content: center; margin: 40px 0 0; }

.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 8px; }
@media (max-width: 720px) { .proofs { grid-template-columns: 1fr; } }
.proof { background: var(--panel); border: 1px solid var(--hairline-faint); border-radius: 12px; padding: 22px 20px; box-shadow: var(--shadow-card-soft); text-align: center; }
.proof-h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(20,18,14,0.5); margin: 0 0 12px; }
.proof-big { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--accent-3); }
.proof-big span { font-size: 20px; font-weight: 600; }
.proof-sub { font-family: var(--font-body); font-size: 12.5px; color: rgba(20,18,14,0.62); margin-top: 10px; }
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin: 4px 0 2px; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-track { width: 46px; height: 26px; border-radius: 999px; background: rgba(20,18,14,0.18); position: relative; transition: background 0.25s ease; }
.sw-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,18,14,0.3); transition: transform 0.25s ease; }
.sw input:checked + .sw-track { background: var(--accent-3); }
.sw input:checked + .sw-track .sw-thumb { transform: translateX(20px); }
.sw-label { font-family: var(--font-mono); font-size: 11px; color: rgba(20,18,14,0.7); }
.proof-state { font-family: var(--font-body); font-size: 12.5px; color: rgba(20,18,14,0.62); margin-top: 12px; min-height: 3.4em; }
.proof-state strong { color: var(--accent-3); font-weight: 600; }
.folder { width: 74px; height: 54px; margin: 2px auto 0; position: relative; cursor: grab; transition: transform 0.18s ease; }
.folder:hover, .folder:active { transform: translate(6px, -4px) rotate(-3deg); }
.folder svg { width: 100%; height: 100%; display: block; }


/* ?p= freeze harness: collapse the jack, hide the chrome, pin the frame */
.jfreeze body { overflow: hidden; }
.jfreeze .jscene { height: 100svh; }
.jfreeze .nav, .jfreeze .brand-strap-row, .jfreeze .cta, .jfreeze footer,
.jfreeze .jscene ~ section, .jfreeze section.section, .jfreeze .tib-hero { display: none; }

/* Present: the pencil is its own layer over bot-notepad-base so it can WRITE.
   Geometry derives from the 342x491 source: bbox (88,238)-(192,353), pivot at
   the fist (150,305). Origin is expressed in % of the pencil's own box. */
#pr-bot { position: absolute; }
#pr-bot .pr-pencil {
  position: absolute;
  left: 25.73%; top: 48.47%; width: 30.41%;
  transform-origin: 59.6% 58.3%;
  pointer-events: none;
}

/* Portrait scenes need room: keep the sticky stage on phones (the
   storyboard above is reduced-motion only) and give the stage the full
   column minus the head. */
@media (max-width: 1000px) {
  .jscene-sticky { min-height: 620px; }
  /* The stage lives in the band BETWEEN the headline and the narration -
     measured at 375x812 the head ends at ~251 and the note starts at
     ~735. Insets keep the 420x560 portrait stage clear of both instead
     of overlapping them. */
  .j-stage-wrap { inset: 250px 0 84px 0; }
  .jscene--reclaim .j-stage-wrap { inset: 176px 0 96px 0; }
  .jscene-head h1 { font-size: clamp(1.7rem, 6.8vw, 2.3rem); }
  .jnote { bottom: 2.4vh; width: min(600px, 90vw); font-size: 1rem; }
}

/* Reclaim scene (take-it-back): the records in flight. Plain rectangles -
   the tabbed shapes elsewhere are dividers, not cards. */
.r-rec { display: block; width: 104px; height: 68px; }
.r-rec-in { display: block; width: 100%; height: 100%; background: #fff;
  border: 3.5px solid #111; border-radius: 5px; }
.r-rec-in i { display: block; height: 4px; background: #111; border-radius: 2px;
  margin: 15px 12px 0; }
.r-rec-in i + i { margin-top: 9px; }

/* The folder reads squat at small sizes; give it more depth than width. */
.folder { width: 68px; height: 60px; }

/* ══ Take-it-back "reclaim" scene ═══════════════════════════════════════
   The pivotal scene: your life is siphoned up into a Big-Tech cloud that
   inflates and profits, until Ostler pops it and everything comes home.
   Longer scroll track than the leg scenes so the escalation can build. */
.jscene--reclaim { height: 680vh; }
.jfreeze .jscene--reclaim { height: 100svh; }

/* rising note cards - your life, leaving */
.r-note { position: absolute; left: 0; top: 0; width: 74px; height: 55px; z-index: 5;
  transform: translate(-50%,-50%); will-change: transform, opacity; }
.r-note svg { width: 100%; height: 100%; display: block; }

/* the accelerating money counter on the Mac screen */
.r-money { position: absolute; left: 0; top: 0; transform: translate(-50%,-50%);
  font-family: var(--font-mono); font-weight: 500; color: var(--accent);
  white-space: nowrap; letter-spacing: 0.01em; will-change: transform, opacity; }

/* the "for sale" price tag + ticks */
.r-tag { position: absolute; left:0; top:0; transform: translate(-50%,-50%);
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--ink);
  background:#fff; border:2.5px solid var(--ink); border-radius: 6px; padding: 4px 10px;
  white-space: nowrap; will-change: transform, opacity; }
.r-tick { position:absolute; left:0; top:0; z-index:8; transform: translate(-50%,-50%);
  will-change: transform, opacity; }

/* the closing pill */

/* reclaim: comedic BANG! inside the burst */
#r-bang { position: absolute; }
#r-bang-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-display); font-weight: 700; font-size: 38px; color: var(--accent);
  letter-spacing: -0.02em; white-space: nowrap; pointer-events: none;
  animation: bangShake 0.16s linear infinite; }
@keyframes bangShake {
  0%,100% { transform: translate(-50%,-50%) rotate(-5deg); }
  50%     { transform: translate(-50%,-50%) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) { #r-bang-text { animation: none; } }
/* the drawn tether string - balloon down to behind the Mac */
#r-tether { position: absolute; left: 0; top: 0; width: 2px; background: #17140F;
  transform: translateX(-50%); z-index: 5; opacity: 0; }
/* Ostler's wave: body STILL. Only #r-bot-arm's image pivots at the shoulder
   (transform set per-frame by the engine). */
#r-bot-arm img { transform-origin: 38.4% 47.0%; will-change: transform; }  /* = shoulder pivot (150,198) in the 391x421 sprite; raised side-wave arm, root tucked behind body. 0deg = raised (wave centre + pin hold); negative = arm swings DOWN to a visible resting pose */
/* No on-load flash: the animated stage is hidden until the engine has posed
   every actor for the first frame (it sets opacity to 1). Reduced-motion /
   narrow viewports use the CSS storyboard and never hit this. */
.jstage[data-jstage] { opacity: 0; }
