/* index.css. Built by scripts/build-site.mjs from scripts/website/home.mjs. Edit the source, not this file. */
:root { --stage: 40vw; --disc: min(28vw, 420px); }
/* Tones. Each chapter (and its background layer) picks one for light and one for dark. */
.l-base { --cbg: var(--paper); --cfg: var(--ink); }
.l-tint { --cbg: var(--soft); --cfg: var(--ink); }
.l-pop { --cbg: var(--yellow); --cfg: var(--ink); }
.l-night { --cbg: var(--ink); --cfg: var(--paper); }




/* 5A · Navbar, from 2A: a fixed bar with a rule that draws as you scroll. No avatar slot here:
   the portrait goes to the story's disc instead of docking into the bar. */
.wrap { width: min(1320px, calc(100% - 112px)); margin: 0 auto; }
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; } /* see-through: site.css, "The navbar" */
/* The links sit right, beside the toggle (owner, 2026-11-28, picked in the navbar lab: N0, right-aligned like N1, no button). */
.top .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; height: 76px; }
.top .who { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); justify-self: start; }
.top .who .logo-pb { height: 46px; }
.top nav { display: flex; justify-self: end; gap: 34px; font-weight: 600; font-size: 15.5px; }
.top nav a { text-decoration: none; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--nav-u, var(--yellow)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--e-std); }
.top nav a:hover::after, .top nav a[aria-current]::after { transform: scaleX(1); }
.top .end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.top .rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--line); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .top .rule { animation: rule linear both; animation-timeline: scroll(root); animation-range: 0 100%; }
  @keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}


/* 5B · Hero (from hero lab C5). Static first, for no JS or reduced motion: everything stacked. */
.hero { position: relative; z-index: 1; padding: 132px 0 110px; }
.hero .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; }
.portrait { grid-column: 9 / 13; grid-row: 1 / 3; align-self: end; margin: 0; }
.pframe { position: relative; aspect-ratio: 4 / 5; background: var(--yellow); overflow: hidden; }
.pframe img, .fly img { position: absolute; height: auto; max-width: none; }
/* One picture throughout: the full-shoulder drawing, placed where the shoulder-cropped cut-out sat
   (4.42% in from its left, 112.17% of its width, bottoms level). The frame or box clips it, so the
   hero keeps the cropped look; the right shoulder shows only once it becomes the round disc. */
.pframe img { left: 4.42%; width: 112.17%; bottom: -1px; }
.hc .tell { grid-column: 1 / 9; grid-row: 1 / 3; }
.hd1 { margin: 0; font: inherit; letter-spacing: normal; line-height: normal; }
.hd1 .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hd1 .hello, .hd1 .ln0 { display: block; font-family: var(--hf); font-weight: var(--hw); }
.hc .hello { font-size: clamp(64px, 8.4vw, 120px); line-height: .9; letter-spacing: -.05em; }
.hc .ln0 { font: var(--hw) clamp(26px, 3.1vw, 45px)/1.1 var(--hf); letter-spacing: -.03em; margin: 24px 0 0; }
.hc .ri { display: inline-block; }
.hc .pnl { display: inline-block; margin: 30px 0 0; max-width: 640px; background: var(--paper); color: var(--ink); --mkc: var(--yellow); border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); padding: 16px 22px 18px; font: 700 18px/1.35 var(--lf); transform: rotate(-1.5deg); }

.hc .slot .ln { font-size: 22px; line-height: 1.45; max-width: 30em; margin: 22px 0 0; }
.hc .slot .pitch .bt { display: block; }
.hc .slot .pitch .nw { white-space: nowrap; } /* keeps the full stop with the highlighted words */
/* The help line and the aside: speech bubbles here; in the pinned hero the floating bubbles show
   them instead, and these stay as the screen-reader copies (.js-c .slot .sb below). */
.hc .slot .sb { position: relative; display: block; width: fit-content; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 28px; padding: 14px 22px 16px; font: 700 20px/1.3 var(--lf); }
.hc .mark { background-image: linear-gradient(var(--mkc, var(--yellow)), var(--mkc, var(--yellow))); }
.cbub, .ybg { display: none; }

/* With JS and motion: the hero is pinned for --pin of scrolling; it sits above the portrait so the
   name never slips behind the yellow.
   Big screens (owner, 2026-11-22): below 1800px wide (laptops up to 17 inches) every size is the
   fixed design tuned on the owner's 13-inch Mac (--k is 1). From 1800px (21-inch monitors and up)
   --k is 1.25, and from 2400px it is 1.5: every size below is multiplied by it, and the script
   places the text and picture in a centred frame 1440 x --k wide, so they keep their spacing.
   Continuous scaling was tried and dropped: it shrank the tuned laptop view. */
.js-c .hero.hc { height: calc(100vh + var(--pin, 400vh)); padding: 0; z-index: 37; }
.js-c .hpin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.js-c .hpin .wrap { height: 100%; width: min(calc(1320px * var(--k, 1)), calc(100% - 112px)); }
.js-c .hero .grid { column-gap: calc(28px * var(--k, 1)); }
.js-c .tell { grid-column: 1 / 8; position: relative; height: 100vh; }
.js-c .portrait { display: none; }
.js-c .head { position: absolute; left: 0; right: 0; top: 45vh; }
.js-c .hello { font-size: calc(120px * var(--k, 1)); white-space: nowrap; transform-origin: 0 0; will-change: transform; }
.js-c .ln0 { font-size: calc(45px * var(--k, 1)); white-space: nowrap; margin-top: calc(24px * var(--k, 1)); }
.js-c .pnl { opacity: 0; margin-top: calc(30px * var(--k, 1)); max-width: calc(640px * var(--k, 1)); padding: calc(16px * var(--k, 1)) calc(22px * var(--k, 1)) calc(18px * var(--k, 1)); font-size: calc(18px * var(--k, 1)); box-shadow: calc(7px * var(--k, 1)) calc(7px * var(--k, 1)) 0 var(--ink); }

.js-c .slot { position: absolute; left: 0; right: 0; top: 40vh; } /* low enough to leave the aside bubble room above */
.js-c .slot .ln { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; will-change: transform, opacity; }
.js-c .slot .pitch { font: var(--hw) calc(40px * var(--k, 1))/1.14 var(--hf); letter-spacing: -.035em; max-width: 15.5em; }
.js-c .slot .pitch .w { overflow: visible; }
.js-c .slot .pitch .bt + .bt { margin-top: .35em; }
.js-c .slot .sb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; }

/* Selecting text (owner, 2026-11-23): only what is on screen can be selected. Lines that are
   there but not yet shown (the panel, the stage 1 pitch and aside, the screen-reader copies of the
   bubbles), or already gone, are left out, so a drag over the name gives just the name. */
.js-c .slot .sb, .js-c:not(.past0) .slot, .js-c:not(.pnl-on) .pnl, .js-c.past0 .ln0, .js-c.past0 .pnl,
.js-c.past0 .b1, .js-c:not(.b3-on) .b3 { user-select: none; -webkit-user-select: none; }
.js-c:not(.past0) .slot { pointer-events: none; }

/* The name types in (owner, 2026-11-23). */
.hello .caret { display: inline-block; width: .07em; height: .78em; margin-left: .04em; vertical-align: -.04em; background: currentColor; }
.hello .caret.blink { animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Scroll guide: a faint mouse with a rolling wheel, for all of stage 0; it fades once stage 1 starts. */
.sguide { display: none; }
.js-c .sguide { display: flex; position: absolute; z-index: 2; left: max(56px, calc((100vw - 1320px * var(--k, 1)) / 2)); bottom: calc(30px * var(--k, 1)); align-items: center; gap: calc(10px * var(--k, 1)); font: 600 calc(11px * var(--k, 1))/1 var(--bf); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); opacity: .8; transition: opacity .4s var(--e-std); }
.js-c.past0 .sguide { opacity: 0; }
.sguide i { position: relative; width: calc(20px * var(--k, 1)); height: calc(32px * var(--k, 1)); border: 1.6px solid currentColor; border-radius: calc(11px * var(--k, 1)); }
.sguide i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: sguide 1.9s ease-in-out infinite; }
@keyframes sguide { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* The bubbles come out of the portrait's face and follow it (placed by the script). */
.js-c .cbub { display: block; position: fixed; inset: 0; z-index: 36; pointer-events: none; }
.bub { position: absolute; left: 0; top: 0; margin: 0; width: max-content; max-width: calc(390px * var(--k, 1)); background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: calc(30px * var(--k, 1)); padding: calc(18px * var(--k, 1)) calc(26px * var(--k, 1)) calc(20px * var(--k, 1)); font: 700 calc(20px * var(--k, 1))/1.28 var(--lf); opacity: 0; will-change: transform, opacity; }
.bub.b3 { font-size: calc(20px * var(--k, 1)); }
.bub .tl { position: absolute; right: 9%; top: calc(100% - 3px); width: calc(40px * var(--k, 1)); height: calc(34px * var(--k, 1)); overflow: visible; }
.bub .tl path { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }

/* The yellow start: a fixed yellow layer that shrinks into the portrait's box. While it is up (.yh)
   the bar and hero use ink on yellow, and the marker goes paper. */
.js-c .ybg { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--yellow); --yr: 3000px; clip-path: circle(var(--yr) at var(--yx, 75vw) var(--yy, 45vh)); }
.top { transition: background .3s var(--e-std); }
.yh .top, .yh .hero { --fg: var(--ink); --line: var(--ink); --muted: color-mix(in srgb, var(--ink) 72%, var(--yellow)); --mkc: var(--paper); color: var(--ink); }
.yh .logo-pb { color: var(--ink); }

/* The flight: a stand-in that goes from the hero portrait (its box) to the disc. The real disc
   hides while it flies (.stage.off); it hands over when the story reaches the top. */
.fly { display: none; position: fixed; z-index: 35; left: 0; top: 0; overflow: hidden; pointer-events: none; will-change: transform, width, height; }
.fbg { position: absolute; left: 0; right: 0; top: 0; bottom: -8px; background: var(--yellow); border: 3px solid color-mix(in srgb, var(--ink) calc(var(--ba, 0) * 100%), transparent); --ht: 0; }
.fbg::before { content: ""; position: absolute; inset: 0; opacity: var(--ht); background: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1.4px, transparent 1.9px) 0 0 / 11px 11px; -webkit-mask: linear-gradient(to top, #000, transparent 70%); mask: linear-gradient(to top, #000, transparent 70%); }
.stage.off .disc, .stage.off .say, .stage.off .emote, .stage.off .ring { visibility: hidden; }


/* Chapter dots, from 4. A first dot stands for the hero. Hidden in hero stage 0; they come in as
   stage 1 starts and the name begins to shrink (.dots-on), and stay through the story. */
.js-dots .dots { opacity: 0; pointer-events: none; }
.js-dots.dots-on .dots, .js-dots.in-story .dots { opacity: 1; pointer-events: auto; }
:root:not(.in-story) .dots a.on:not(.dh) { height: 13px; background: var(--bg); border-color: var(--fg); }
.dots { transition: opacity .4s var(--e-std); }
.dots { position: fixed; z-index: 60; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.dots a { display: block; width: 13px; height: 13px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--fg); position: relative; }
.dots a.on { height: 38px; background: var(--yellow); border-color: var(--ink); }
.dots a span { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 13px/1 var(--bf); background: var(--bg); color: var(--fg); border: 1.5px solid var(--fg); border-radius: 999px; padding: 6px 10px; opacity: 0; pointer-events: none; transition: opacity .2s var(--e-std); }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }

/* Background layers: one per chapter, each grows as a circle out of the disc. */
.bgs { display: none; }
.js-wipe .bgs { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bgs i { position: absolute; inset: 0; background: var(--cbg); --r: 0px; clip-path: circle(var(--r) at var(--ox, 20vw) var(--oy, 57vh)); }
.bgs i:first-child { clip-path: none; }

/* The stage */
.story { position: relative; z-index: 1; display: grid; grid-template-columns: var(--stage) minmax(0, 1fr); }
.stage { grid-column: 1; grid-row: 1; position: sticky; top: 0; height: 100vh; z-index: 2; color: var(--cfg); }
.chapters { grid-column: 2; grid-row: 1; }
.disc-wrap { position: absolute; left: 50%; top: 57%; width: var(--disc); height: var(--disc); margin: calc(var(--disc) / -2) 0 0 calc(var(--disc) / -2); }
.disc { position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); overflow: hidden; }
.disc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1.4px, transparent 1.9px) 0 0 / 11px 11px; -webkit-mask: linear-gradient(to top, #000, transparent 70%); mask: linear-gradient(to top, #000, transparent 70%); }
/* The full-shoulder drawing, placed so the face sits exactly where the cut-out's did (left 15%,
   width 70%, bottom -4%), which the flight lands on. */
.disc img { position: absolute; left: 18.09%; bottom: -3.86%; width: 78.52%; height: auto; transform-origin: 50% 100%; }
/* Poses (2026-11-24): a chapter with its own drawing swaps it in at the top of the hop.
   Each is placed by the poses list in this file, framed a little wider than the portrait so the
   hands sit inside the circle. */
.disc img.pose { bottom: auto; top: 10%; opacity: 0; }
/* 5J: no disc. The whole drawing stands large on the left, on the bottom edge, like hero stage 0;
   the bubble moves up over its head. */
.stage { --bigH: min(80vh, calc(43vw * 1.128)); }
.stage .big { position: absolute; left: 1.5vw; bottom: 0; height: var(--bigH); width: auto; max-width: none; opacity: 0; visibility: hidden; transform-origin: 50% 100%; pointer-events: none; }
.stage.big-on .ring { visibility: hidden; }
.stage.big-on .say { bottom: auto; top: calc(43vh + var(--disc) / 2 - var(--bigH) - 10px); translate: 0 -100%; }
.ring { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; fill: currentColor; opacity: 0; pointer-events: none; }
.emote { position: absolute; left: -7%; top: -1%; width: 104px; height: 104px; transform: rotate(-8deg); }
.emote svg { width: 100%; height: 100%; overflow: visible; }
.emote .b { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.emote .ic { fill: var(--ink); }
.emote .st { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.emote text { font: 700 54px var(--lf); fill: var(--ink); }
.emote text.sm { font-size: 23px; }
.say { position: absolute; left: 30%; bottom: 97%; width: max-content; max-width: 362px; margin: 0; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 32px; padding: 17px 26px 19px; font: 700 20px/1.22 var(--lf); transform-origin: 16% 130%; }
.stage.no-say .say { visibility: hidden; }
.say-t { text-wrap: balance; }
.say.say-3 { max-width: 330px; } /* H2: three even lines, no stray last word (owner, 2026-11-28) */
.stage.big-on .say { font-size: 24px; } /* the last one (Write to me) is the call to action: it keeps its size (owner, 2026-11-28) */
.say .tail { position: absolute; left: 13%; top: calc(100% - 3px); width: 40px; height: 34px; overflow: visible; }
.say .tail path { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }

/* Chapters */
.ch { position: relative; min-height: 100vh; padding: 132px 128px 112px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--cbg); color: var(--cfg); box-shadow: 0 0 0 100vmax var(--cbg); clip-path: inset(0 -100vmax); --cmut: color-mix(in srgb, var(--cfg) 68%, var(--cbg)); }
.js-wipe .ch { background: transparent; box-shadow: none; clip-path: none; }
.ch h2 { font-size: clamp(40px, 3.9vw, 60px); max-width: 15ch; margin-bottom: 26px; }
.ch p { max-width: 36em; }
.l-night .mark { --mh: .14em; --my: 100%; }

#ask .say-inline { font-size: 22px; }
.say-inline { position: relative; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 28px; padding: 12px 22px; font: 700 20px/1.25 var(--lf); margin: 6px 0 26px; max-width: 520px; letter-spacing: 0; }
.js-say .say-inline { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; margin: 0; }

#what h2 { font-size: clamp(48px, 4.6vw, 74px); max-width: 12ch; line-height: .98; }
#what .body { font-size: 22px; line-height: 1.55; max-width: 31em; }

/* 5F · One path, as a comic strip (finalised by the owner 2026-11-23). On wide screens with motion
   the section is made tall, its view sticks to the top and the strip slides sideways as you scroll
   (like 1D), clipped at the column's edge; on narrow screens it is swiped (see the media queries);
   with neither, the panels simply wrap. Equal panels with a solid shadow, all skewed the same way
   (the contents are skewed back so text stays upright; GSAP reads the skew back as the resting
   state), and a dashed line through them that turns solid as you go (--p, set by the script).
   A Meanwhile… panel for the side quests; the last panel is To be continued… */
#path { display: block; padding: 0; }
#path .pv { min-height: 100vh; padding: 108px 0 56px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
#path .pv-head { padding: 0 128px 0 44px; }
#path h2 { font-size: clamp(36px, 3.3vw, 52px); max-width: none; margin-bottom: 8px; }
#path .pv-clip { padding: 44px 0 48px; }
.rail { position: relative; display: flex; flex-wrap: wrap; gap: 46px; align-items: center; padding: 14px 128px 14px 44px; }
.side-on #path .pv { position: sticky; top: 0; height: 100vh; min-height: 0; }
.side-on #path .pv-clip { overflow: hidden; }
.side-on .rail { flex-wrap: nowrap; width: max-content; }
.rail::before, .rail::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1.5px; }
.rail::before { border-top: 3px dashed var(--cfg); opacity: .3; }
.rail::after { border-top: 3px solid var(--cfg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.rail > * { position: relative; z-index: 1; transform: skewX(-5deg); }
.rail > * > * { transform: skewX(5deg); }
.rail .tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rail .tags li { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 10px; border: 1.5px solid currentColor; border-radius: 999px; }
.pn { position: relative; overflow: hidden; flex: 0 0 300px; height: 350px; box-sizing: border-box; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); padding: 60px 22px 20px; display: flex; flex-direction: column; justify-content: flex-end; margin: 0; }
.pn::before { content: ""; position: absolute; right: 0; top: 0; width: 70%; height: 60%; background: radial-gradient(color-mix(in srgb, var(--ink) 20%, transparent) 1.4px, transparent 1.9px) 0 0 / 10px 10px; -webkit-mask: linear-gradient(225deg, #000, transparent 70%); mask: linear-gradient(225deg, #000, transparent 70%); }
.pn .cap { position: absolute; z-index: 1; left: -3px; top: -3px; margin: 0; background: var(--yellow); border: 3px solid var(--ink); padding: 8px 12px 7px; font: 700 15px/1.1 var(--lf); letter-spacing: .03em; text-transform: uppercase; }
.pn .big { position: absolute; right: 10px; top: 54px; font: 900 104px/1 var(--hf); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: .13; }
.pn .big { translate: var(--px, 0px) 0; } /* the year and the dots drift right to left faster than the card as the strip slides (owner, 2026-11-29): --px and --dx are set by fill() */
.pn::before { background-position: var(--dx, 0px) 0; }
.pn .tx { position: relative; font-size: 18px; line-height: 1.4; margin: 0; }
.pn .tags { position: relative; }
.pn.mw { background: var(--ink); color: var(--paper); border-color: var(--cfg); justify-content: center; }
.pn.mw::before { display: none; }
.pn.mw .cap { text-transform: none; font-size: 20px; letter-spacing: 0; }
.pn.mw ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font: 700 19px/1.25 var(--lf); }
.pn.mw li { padding-left: 26px; position: relative; }
.pn.mw li::before { content: "★"; position: absolute; left: 0; color: var(--cfg); }
.pv-end { flex: 0 0 300px; height: 350px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); padding: 24px; }
.pv-end .tbc { font: 700 34px/1.1 var(--lf); margin: 0; }

/* The full story: moves like back-to-top (owner, 2026-11-23): rests raised on a 6px shadow, hover
   sinks it halfway, a click presses it flat and it springs back before the link opens. It moves
   with 'translate', so its skew (upright again inside the skewed panel) stays put. */
/* The end card is yellow, so its primary button turns paper. */
.pv-end { --btn-acc: var(--paper); --btn-hb: 38%; --btn-sh: var(--ink); }

.worked { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; margin: 0 0 34px; max-width: 640px; color: var(--cfg); }
.worked span { display: flex; }
.lgrid { width: 100%; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 8px; }
.vid-js .vid { position: relative; top: auto; } /* with script on a wide screen, the script does the sticking */
.vid { margin: 0; position: sticky; top: 100px; } /* the video and its words stay in view while the letters beside them scroll, until the button at the end of the list (owner, 2026-11-29) */
.vid-frame { position: relative; aspect-ratio: 9 / 16; background: #000; overflow: hidden; border-radius: 0; border: 3px solid var(--line, var(--ink)); box-shadow: 6px 6px 0 var(--shadow, var(--ink)); transform-origin: 50% 100%; transition: translate .2s var(--e-std), box-shadow .2s var(--e-std); } /* a card like the Testimonials page's video (owner, 2026-11-28) */
.vid-frame:hover { translate: 3px 3px; box-shadow: 3px 3px 0 var(--shadow, var(--ink)); }
.vid-play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: clamp(54px, 5vw, 70px); aspect-ratio: 1; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: var(--cu-a, pointer); transition: scale .3s cubic-bezier(.3,1.6,.5,1), box-shadow .2s var(--e-std), opacity .2s var(--e-std), visibility 0s; }
.vid-play svg { width: 40%; height: 40%; margin-left: 8%; fill: currentColor; }
.vid-play:hover { scale: 1.1; }
.vid-play:active { scale: .96; box-shadow: 1px 1px 0 var(--ink); }
.vid-frame.is-playing .vid-play { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--e-std), visibility 0s .2s; }
.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .pull { font: var(--hw) 19px/1.25 var(--hf); letter-spacing: -.02em; margin-top: 18px; }
.vid figcaption { font-size: 14px; color: var(--cmut); margin-top: 6px; }
.vid figcaption b { color: var(--cfg); }
.qs { display: grid; gap: 18px; }
.q { margin: 0; padding: 22px 26px 18px; border: 1.5px solid var(--cfg); border-radius: 4px; background: color-mix(in srgb, var(--cfg) 3%, var(--cbg)); position: relative; }
.q blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.q figcaption { margin-top: 14px; font-size: 14px; color: var(--cmut); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.q figcaption b { color: var(--cfg); }
.q figcaption a { margin-left: auto; }
.more { justify-self: start; margin-top: 10px; }

/* 5G · Why not just AI? (2026-11-23; reworked 2026-11-25): the visitor's question in a bubble,
   then five rows, each a quality: what AI does, and beside it what I add, which inks in as you
   scroll. AI gets full credit; nothing here says what it can't do. */
.aiq { position: relative; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 30px; padding: 22px 28px 24px; max-width: 30em; margin: 4px 0 30px; }
.aiq h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; max-width: none; margin: 0; }
.aiq .tl { position: absolute; right: 46px; top: calc(100% - 3px); width: 40px; height: 34px; overflow: visible; scale: -1 1; } /* the pointed end on the right (owner, 2026-11-28) */
.aiq .tl path { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.ai-lead { font-size: 20px; line-height: 1.5; margin: 0 0 8px; }
.vs { list-style: none; margin: 0; padding: 0; width: 100%; }
.vs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 28px; align-items: baseline; padding: 16px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--cfg) 22%, transparent); }
.vs .k { grid-column: 1 / -1; margin: 0 0 6px; font: 700 12.5px/1 var(--bf, inherit); letter-spacing: .14em; text-transform: uppercase; color: var(--cfg); }
.vs .can { font-size: 17.5px; line-height: 1.4; margin: 0; color: var(--cmut); }
.vs .cant { font: var(--hw) 21px/1.25 var(--hf); letter-spacing: -.015em; margin: 0; position: relative; padding-left: 26px; }
.vs .cant::before { content: "→"; position: absolute; left: 0; color: var(--yellow); }
#ai .ai-line { font: var(--hw) clamp(36px, 3.6vw, 56px)/1.02 var(--hf); letter-spacing: -.035em; max-width: 15ch; margin: 40px 0 0; }
.ai-close { font-size: 19px; line-height: 1.5; max-width: 34em; margin-top: 16px; color: var(--cmut); }
#ai .ai-close2 { font-size: 23px; line-height: 1.4; max-width: 30em; margin-top: 22px; color: var(--cfg); font-weight: 600; }
#ai .ai-close2 b { color: var(--cfg); font-weight: 800; text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .14em; }
#ai .mark { background-image: linear-gradient(var(--paper), var(--paper)); } /* H6 is yellow now (owner, 2026-11-28): the marker is paper */

/* 5D · When to bring me in (2026-11-23): four taped sticky notes in a 2 x 2 grid, picked by the
   owner from eight trials (the rest are in git): paper and soft yellow in a checker, the site's
   headline and body type, a thin outline and a solid 4px ink shadow like the comic panels. On
   hover a note straightens, lifts and its doodle wiggles. */
.wn-in { width: 100%; }
.ch .wn-sub { font-size: 20px; line-height: 1.5; max-width: 34em; margin: -6px 0 6px; }
.wn-list { list-style: none; margin: 24px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.wn-it { position: relative; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 36px 22px 26px; min-height: 186px;
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s cubic-bezier(.2, .8, .2, 1); }
.wn-it:nth-child(2), .wn-it:nth-child(3) { background: var(--soft); }
.wn-it:nth-child(1) { --tilt: -2deg; } .wn-it:nth-child(2) { --tilt: 1.5deg; } .wn-it:nth-child(3) { --tilt: 2deg; } .wn-it:nth-child(4) { --tilt: -1.5deg; }
.wn-it::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: color-mix(in srgb, var(--paper) 60%, transparent); border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); transform: rotate(-3deg); transition: transform .3s var(--e-std); }
.wn-it:hover { z-index: 1; transform: rotate(0deg) translate(-3px, -4px); box-shadow: 7px 8px 0 var(--ink); }
.wn-it:hover::before { transform: rotate(-7deg) translateY(-2px); }
.wn-t { font: var(--hw) 23px/1.1 var(--hf); letter-spacing: -.02em; margin: 0 0 8px; padding-right: 34px; }
.wn-d { font-size: 18px; line-height: 1.45; margin: 0; }
.wn-it a { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.wn-it:nth-child(2) a, .wn-it:nth-child(3) a { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.wn-ic { position: absolute; right: 14px; top: 14px; }
.wn-ic svg { display: block; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wn-ic svg .f { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) { .wn-it:hover .wn-ic svg { animation: wn-wig .5s ease-in-out; } }
@keyframes wn-wig { 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }

/* 5I's close (2026-11-25, from the retired Who I'm for): the agency line. The "not if" box came
   off on 2026-11-25 too (owner); its styles stay for now with the lines in site-copy. */
.agencies { font-size: 19px; line-height: 1.45; margin: 56px 0 0; max-width: 30em; }
.nope { margin-top: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: start; width: 100%; }
.nope .cap { transform: rotate(-2deg); white-space: nowrap; margin: 0; }
.nope ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nope li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 17px; line-height: 1.45; color: var(--cmut); }
.nope svg { width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: var(--cfg); stroke-width: 3; stroke-linecap: round; }
.nope svg path { stroke-dasharray: 1; }

.wlist { list-style: none; margin: 10px 0 0; padding: 0; width: 100%; }
.way { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 0; border-top: 1.5px solid var(--cfg); }
.way:last-child { border-bottom: 1.5px solid var(--cfg); }
.way .num { --fill: 100%; font: var(--hw) 124px/.82 var(--hf); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--cfg); background: linear-gradient(to top, var(--yellow) var(--fill), transparent var(--fill)); -webkit-background-clip: text; background-clip: text; text-align: center; }
.way h3 { font-size: clamp(32px, 3vw, 46px); }
.way p { font-size: 19px; color: var(--cmut); margin-top: 6px; }
/* The Tick Tech Toe line as a taped sticky note at about four o'clock of "A fractional lead"
   (owner, 2026-11-23, in place of the narrator bubble). It comes in as you scroll. */
.way-h { position: relative; display: inline-block; }
.t3-note { position: relative; z-index: 3; align-self: flex-end; margin: 48px 0 0; width: min(430px, 100%); box-sizing: border-box; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 20px 20px 18px; transform: rotate(4deg); }
.t3-note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: color-mix(in srgb, var(--paper) 60%, transparent); border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); transform: rotate(-4deg); }
.t3-note p { margin: 0; font: 700 20px/1.28 var(--lf); color: var(--ink); }
.t3-note a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.t3-note a:hover { text-decoration-thickness: 4px; }

#ask .q2 { font-size: clamp(64px, 6.4vw, 104px); line-height: .94; letter-spacing: -.045em; max-width: 9ch; margin-bottom: 30px; }
.email { --u: 1; font: var(--hw) clamp(52px, 5.4vw, 88px)/1.05 var(--hf); letter-spacing: -.04em; text-decoration: none; display: inline-block; position: relative; }
.email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--u, 1)); }
.links { margin-top: 34px; display: flex; gap: 22px; align-items: center; font-weight: 600; }
.foot { position: absolute; left: 44px; right: 128px; bottom: 84px; display: flex; justify-content: space-between; gap: 20px; font-size: 13.5px; color: var(--cmut); }
.foot > * { white-space: nowrap; } .foot .fl { display: flex; gap: 14px; } .foot .fl a { color: inherit; font-weight: 600; }

/* ---- Narrow screens (below 1100px; 2026-11-23): a plain responsive layout, the stand-in until the
   phone-app view. It is the static layout (the script runs only light reveals here), in one column:
   the narrator stage and the dots are hidden, so each chapter's line shows in the chapter itself,
   and the One path strip is swiped sideways. Nothing above this changes the desktop design. */
@media (max-width: 1099px) {
  .wrap { width: calc(100% - 64px); }
  .top .wrap { height: 64px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; }
  .top .who .logo-pb { height: 38px; }
  .top nav { justify-self: end; gap: 24px; font-size: 15px; }
  .dots, .stage { display: none; }
  .story { display: block; }

  /* The hero on its yellow, lines stacked in reading order, the portrait standing on its bottom edge. */
  .hero { padding: 108px 0 0; background: var(--yellow); color: var(--ink); --fg: var(--ink); --mkc: var(--paper); }
  .hero .grid { display: flex; flex-direction: column; align-items: flex-start; }
  .hc .tell, .hc .head, .hc .hd1, .hc .slot { display: contents; }
  .hc .hello { order: 1; font-size: clamp(46px, 11vw, 92px); }
  .hc .ln0 { order: 2; font-size: clamp(22px, 4.6vw, 34px); margin-top: 16px; }
  .hc .slot .sb:first-child { order: 3; margin-top: 28px; }
  .hc .slot .pitch { order: 4; font-size: clamp(19px, 2.6vw, 22px); }
  .hc .pnl { order: 5; margin-top: 28px; }
  
  .hc .slot .sb:last-child { order: 6; margin-top: 30px; }
  .portrait { order: 7; align-self: flex-end; width: min(100%, 440px); margin-top: 28px; }

  .ch { min-height: 0; padding: 88px 32px 80px; }
  .ch h2 { font-size: clamp(32px, 6.4vw, 48px); }
  #what h2 { font-size: clamp(38px, 8.4vw, 64px); }
  #what .body { font-size: 19px; }
  .say-inline { font-size: 17.5px; } #ask .say-inline { font-size: 19px; }

  /* One path: the strip scrolls sideways and snaps to each panel; the dashed line spans the strip. */
  #path .pv { min-height: 0; padding: 88px 0 56px; }
  #path .pv-head { padding: 0 32px; }
  #path .pv-clip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 36px 0 40px; }
  #path .pv-clip::-webkit-scrollbar { display: none; }
  .rail { flex-wrap: nowrap; width: max-content; gap: 30px; padding: 0 32px; }
  .rail > * { scroll-snap-align: center; }
  .pn, .pv-end { flex-basis: min(290px, 74vw); height: 340px; }

  .lgrid { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }

  /* The Tick Tech Toe note sits under the third way, in the flow. */
  .way { align-items: start; }
  .way > div { display: flex; flex-direction: column; align-items: flex-start; }
  .way-h { display: contents; }
  .t3-note { position: relative; left: auto; top: auto; order: 1; margin-top: 20px; width: min(300px, 100%); transform: rotate(2deg); }

  #ask .q2 { font-size: clamp(48px, 9.4vw, 84px); }
  .email { font-size: clamp(32px, 9vw, 64px); }
  .foot { position: static; width: 100%; margin-top: 72px; flex-wrap: wrap; }
}
/* Phones */
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .top nav { gap: 16px; font-size: 14.5px; }
  .ch { padding: 72px 16px 64px; }
  #path .pv { padding-top: 72px; }
  #path .pv-head { padding: 0 16px; }
  .rail { padding: 0 16px; gap: 26px; }
  .wn-list, .cards { grid-template-columns: minmax(0, 1fr); }
  .wn-list { gap: 30px; }
  .lgrid { grid-template-columns: minmax(0, 1fr); }
  .vid { max-width: 280px; position: relative; top: auto; }
  .q { padding: 20px 20px 16px; }
  .q figcaption a { margin-left: 0; }
  .vs li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nope { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nope .cap { justify-self: start; }
  .agencies { margin-top: 28px; }
  .way { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .way .num { font-size: 76px; }
  .way h3 { font-size: 28px; }
  .way p { font-size: 17.5px; }
}
/* Phones (a stand-in until the phone-app view): the logo stands in for Home, so the bar keeps
   three links on one line. Work with me is the contact page (owner, 2026-11-27). */
@media (max-width: 559px) {
  .top nav { gap: 14px; font-size: 14px; white-space: nowrap; }
  .top nav a[href="index.html"], .top nav a[href="#top"] { display: none; }
}
