/* testimonials.css. Built by scripts/build-site.mjs from scripts/website/testimonials.mjs. Edit the source, not this file. */
/* H1-Le · the hero: About's comic cover (issue line, masthead, stamp, burst, dots) with lab A's
   logos in a strip along the bottom; the drawing floats above the strip, its shadow on it. */
.lx { height: 100vh; min-height: 640px; padding: 0; display: block; overflow: hidden; --strip: clamp(96px, 13vh, 128px); --gap: 2.5vh; --ah: min(calc(100vh - var(--strip) - var(--gap) - 150px), 42vw); }
.lx { --rl: clamp(46px, 3.5vw, 60px); } /* the ruled line grows with the headline on bigger screens (owner, 2026-11-28) */
/* The notebook page (LH2b in the labs, owner 2026-11-28: "use LH2B on the build for now"; the left
   side will evolve): punched holes the yellow shows through, a yellow margin rule, ruled lines the
   headline sits on, a note in the margin, "whole picture" highlighted, a doodled heart. */
.lx-nb { position: absolute; z-index: 3; left: var(--gut); top: max(120px, calc((100vh - var(--strip)) / 2 - 160px)); width: min(45vw, 720px); color: var(--ink); /* wider (owner, 2026-11-28; was min(40vw, 600px)) */
  padding: calc(var(--rl) * 1.5) clamp(34px, 3vw, 52px) var(--rl) clamp(92px, 7.5vw, 116px); rotate: -1.5deg; background-color: var(--paper); background-image: repeating-linear-gradient(transparent 0 calc(var(--rl) - 1.5px), color-mix(in srgb, var(--ink) 12%, transparent) calc(var(--rl) - 1.5px) var(--rl)); background-position: 0 calc(var(--rl) * .5 + 6px); border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.lx-nb::before { content: ""; position: absolute; left: clamp(70px, 5.8vw, 92px); top: 0; bottom: 0; width: 2.5px; background: var(--yellow); }
.lx-holes { position: absolute; left: 20px; top: 26px; bottom: 26px; width: 30px; background: radial-gradient(circle at 50% 50%, var(--yellow) 9px, var(--ink) 9.5px 11.5px, transparent 12px) 0 0 / 30px 76px repeat-y; }
.lx-nb h1 { font-size: clamp(40px, 3.6vw, 60px); line-height: var(--rl); letter-spacing: -.04em; max-width: 13ch; margin: 0 0 calc(var(--rl) * .5); }
.lx-hl { background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 100% .32em no-repeat; color: inherit; padding: 0 .04em; }
.lx-under { font-size: clamp(16px, 1.25vw, 20px); line-height: calc(var(--rl) / 2); font-weight: 500; margin: 0; max-width: 26em; }
.lx-sign { margin: calc(var(--rl) * .5) 0 0; font: 400 clamp(18px, 1.4vw, 22px)/var(--rl) var(--lf); }
.lx-heart { position: absolute; right: 26px; bottom: 20px; width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; rotate: 10deg; }
/* The floating cards round the drawing: each a link to its letter. The card floats and scrolls; its
   face reacts to the pointer; a tip says what a click does. */
.lx-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lx-card { position: absolute; left: var(--x); top: var(--y); width: clamp(132px, 10.5vw, 172px); rotate: var(--r); pointer-events: auto; color: var(--ink); text-decoration: none; cursor: var(--cu-a, pointer); }
.lx-face { position: relative; display: block; padding: 28px 30px 14px 14px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 700 15px/1.3 var(--lf); will-change: transform; }
.lx-stp { position: absolute; right: 8px; top: 8px; width: 22px; height: 26px; background: var(--yellow); outline: 1.5px solid var(--ink); outline-offset: 2px; }
.lx-card::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 6px; rotate: calc(var(--r) * -1); padding: 7px 11px 8px; border-radius: 8px; background: var(--ink); color: var(--yellow); font: 600 13px/1 var(--bf); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s var(--e-std), translate .25s var(--e-std); }
.lx-card:hover::after, .lx-card:focus-visible::after { opacity: 1; translate: -50% 0; }
.lx-card:focus-visible { outline: none; } .lx-card:focus-visible .lx-face { outline: 3px solid var(--ink); outline-offset: 4px; }
.lx-art { position: absolute; z-index: 2; right: max(30px, 5vw); bottom: calc(var(--strip) + var(--gap)); height: var(--ah); aspect-ratio: 1100 / 1302; }
.lx-art img { position: relative; display: block; width: 100%; height: auto; max-width: none; will-change: transform; }
/* the floating: his shadow on the strip breathes with the bob; three sparks twinkle round him */
.lx-shadow { position: absolute; left: 14%; right: 14%; top: calc(100% + var(--gap) - 16px); height: 26px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 30%, transparent), transparent); }
.lx-spark { position: absolute; width: clamp(18px, 1.8vw, 30px); color: var(--ink); opacity: 0; }
.lx-spark svg { display: block; width: 100%; fill: currentColor; }
.lx-spark.s1 { left: 2%; top: 30%; }
.lx-spark.s2 { right: 4%; top: 18%; width: clamp(14px, 1.3vw, 22px); }
.lx-spark.s3 { right: -2%; top: 52%; width: clamp(12px, 1.1vw, 18px); }
.pr-dots { position: absolute; z-index: 1; right: 0; bottom: var(--strip); width: 62vw; height: 82vh; background: radial-gradient(color-mix(in srgb, var(--cfg) 22%, transparent) 1.6px, transparent 2.1px) 0 0 / 13px 13px; -webkit-mask: radial-gradient(ellipse 70% 90% at 60% 100%, #000 20%, transparent 70%); mask: radial-gradient(ellipse 70% 90% at 60% 100%, #000 20%, transparent 70%); }
/* The client logos (lab A, twice the size), ink on the yellow, sliding sideways as you scroll. */
/* The strip: a label in its left third (owner, 2026-11-28), the logos sliding by in the other two. */
.lx-strip { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--strip); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; overflow: hidden; background: var(--yellow); }
.lx-gl { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0 28px 0 var(--gut); border-right: 2.5px solid var(--ink); font: var(--hw) clamp(18px, 1.55vw, 24px)/1.12 var(--hf); letter-spacing: -.025em; color: var(--ink); }
.lx-gl svg { flex: none; width: 26px; height: 26px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lg-win { position: relative; overflow: hidden; display: flex; align-items: center; }
/* The logos a size smaller and a little closer (owner, 2026-11-28): 42 for 54, so more fit, not crowded. */
.lg-track { display: flex; align-items: center; gap: clamp(40px, 3.6vw, 60px); width: max-content; padding: 0 clamp(32px, 3vw, 48px); color: var(--ink); will-change: transform; }
.lg { display: flex; flex: none; }

/* V1-Le · Neil's video rises into place beside the excerpt. */
.lv { min-height: 0; padding: 130px calc(var(--gut) + 9vw) 24px; } /* well in from both edges (owner, 2026-11-28: more than the old var(--gut) alone), closer to the centre, and no full-screen height: the letters follow right after (owner, 2026-11-28) */
.lv-in { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(36px, 4.5vw, 84px); align-items: center; width: 100%; max-width: 1040px; margin: 0 auto; } /* width: 100% keeps the auto margins from shrinking the grid to its content (the .a-ch is a flex column) */
.lv + .ll { padding-top: 24px; }
/* The video is a card like E1-Wm's and the ask panel's (owner, 2026-11-28): square corners, a 3px edge, a hard shadow, and on hover it sinks onto it. The edge and shadow follow the page's line and shadow colours, so they show in dark mode too. */
.lv-vid { position: relative; margin: 0; aspect-ratio: 9 / 16; border: 3px solid var(--line, var(--ink)); border-radius: 0; overflow: hidden; background: #000; box-shadow: 6px 6px 0 var(--shadow, var(--ink)); transform-origin: 50% 80%; transition: translate .2s var(--e-std), box-shadow .2s var(--e-std); }
.lv-vid:hover { translate: 3px 3px; box-shadow: 3px 3px 0 var(--shadow, var(--ink)); }
.lv-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A big play button in the middle, as on YouTube, in the site's own look: a yellow disc with an ink edge and a hard shadow. It goes while the video plays and returns on pause. */
.vid-play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: clamp(72px, 7vw, 96px); 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: 5px 5px 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); }
.lv-vid.is-playing .vid-play { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--e-std), visibility 0s .2s; }
.lv-q { margin: 0 0 30px; }
.lv-q p { font: var(--hw) clamp(36px, 3.7vw, 62px)/1.06 var(--hf); letter-spacing: -.04em; max-width: 14em; text-indent: -.42em; }
.lv-ex { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; max-width: 32em; margin: 0 0 30px; }
.lv-who { font-size: 15.5px; color: var(--cmut); }
.lv-who b { display: block; font: var(--hw) 21px/1.2 var(--hf); letter-spacing: -.02em; color: var(--cfg); margin-bottom: 2px; }
/* The highlighter (lab C), drawn as you scroll; a thick underline on dark grounds, as on About. */
.hl { --hl: 0%; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / var(--hl) 40%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
 [data-tone="night"] .hl { background-size: var(--hl) .12em; background-position: 0 100%; }

/* L1-L6 · the letters. A rule over each; the lead, name and role on the left, docked while the
   letter scrolls; the letter on the right with a drop cap. */
.ll { display: block; min-height: 0; padding: 130px var(--gut) 40px; }
.ll > .label { margin-bottom: 34px; }
.lt { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); padding: 34px 0 clamp(90px, 12vh, 140px); scroll-margin-top: 90px; }
.lt-rule { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cfg); transform-origin: 0 50%; }
.lt-dock { position: sticky; top: 116px; }
.ease-dock .lt-dock { position: relative; top: 0; will-change: transform; }
.lt-lead { font: var(--hw) clamp(30px, 2.8vw, 46px)/1.08 var(--hf); letter-spacing: -.035em; margin: 0 0 28px; text-indent: -.42em; max-width: 13em; }
.lt.long .lt-lead { font-size: clamp(26px, 2.25vw, 36px); max-width: 15em; }
.lt .lt-name { font-size: clamp(20px, 1.55vw, 24px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 5px; max-width: none; }
.lt-role { font-size: 15.5px; line-height: 1.4; color: var(--cmut); margin: 0; }
.lt-body { position: relative; }
.lt-body p { font-size: 18.5px; line-height: 1.7; margin: 0 0 1.05em; max-width: 36em; }
.lt-body p.dc::first-letter { float: left; font: 800 5.5em/.74 var(--hf); margin: .07em .09em 0 -.03em; letter-spacing: -.04em; } /* three lines deep */
/* Read more: the rest of the letter is in the page (for search and for anyone without the
   script) and folds away only once the script runs. */
.lt-btn { display: none; border: 0; cursor: var(--cu-a, pointer); margin-top: 4px; }
.lt-btn .ar svg { rotate: 90deg; transition: rotate .5s var(--e-std); }
.lt.open .lt-btn .ar svg { rotate: -90deg; }
.folds .lt-btn { display: inline-flex; }
.folds .lt:not(.open) .lt-more { display: none; }
/* The folded letter fades out over its last three lines, reaching nothing at the foot of the last
   paragraph's margin, so the last line still shows faintly and leads the eye to Read more. A mask on the words themselves, eased, so it matches any
   ground and no line under the fade shows at full strength (2026-11-28; was an overlay in the
   section's colour that stopped a line short). */
.folds .lt:not(.open) .lt-main:has(.lt-btn) .lt-body {
  --fe: 100%; --fade: linear-gradient(#000 calc(var(--fe) - 5.2em), rgb(0 0 0 / .82) calc(var(--fe) - 3.9em), rgb(0 0 0 / .5) calc(var(--fe) - 2.6em), rgb(0 0 0 / .2) calc(var(--fe) - 1.3em), transparent var(--fe));
  -webkit-mask-image: var(--fade); mask-image: var(--fade); }

/* A1-Le · the ask: the shared inner-pages ask (ask.mjs), running the full width of the page. */
.d-ask { justify-content: center; }
.d-ask .d-ask-pn { margin-left: calc(44px - var(--gut)); width: calc(100vw - 88px); }
.d-ask .a-foot { left: 44px; right: 44px; }

/* ---- Narrow screens: a plain one-column layout, the stand-in until the phone view (as on About).
   Below 820px the cover stacks, the video sits over its excerpt, the letters lose their columns
   and nothing docks. */
@media (max-width: 819px) {
  :root { --gut: 22px; }
  .a-ch { padding: 104px var(--gut) 96px; min-height: 0; }
  .lx { height: auto; min-height: 100svh; padding: 92px 0 0; display: flex; flex-direction: column; --ah: auto; }
  .lx-nb { position: relative; left: auto; top: auto; width: auto; margin: 22px var(--gut) 0; padding-left: 74px; rotate: -1deg; }
  .lx-nb::before { left: 56px; } .lx-holes { left: 12px; }
  .lx-nb h1 { font-size: 32px; } .lx-heart { display: none; }
  .lx-cards { display: none; }
  .lx { --gap: 24px; }
  .lx-art { position: relative; right: auto; bottom: auto; align-self: center; height: auto; width: min(84%, 380px); margin: 30px 0 var(--gap); }
  .pr-dots { width: 100%; height: 60vh; bottom: var(--strip); }
  .lx-strip { position: relative; flex: none; grid-template-columns: 1fr; height: auto; }
  .lx-gl { padding: 14px var(--gut); border-right: 0; border-bottom: 2px solid var(--ink); font-size: 17px; }
  .lx-gl svg { display: none; }
  .lg-win { height: 96px; }
  .lv { padding: 104px var(--gut) 8px; }
  .lv + .ll { padding-top: 8px; }
  .lv-in { grid-template-columns: 1fr; gap: 40px; }
  .lv-vid { width: min(100%, 300px); }
  .lv-q p { font-size: 32px; }
  .ll { padding: 96px var(--gut) 20px; }
  .lt { grid-template-columns: 1fr; gap: 22px; padding-bottom: 72px; }
  .lt-dock { position: static; }
  .lt-lead, .lt.long .lt-lead { font-size: 28px; }
  .lt-body p { font-size: 17.5px; }
  .d-ask .d-ask-pn { margin-left: calc(16px - var(--gut)); width: calc(100vw - 32px); }
  .a-foot { position: static; margin-top: 40px; }
  .d-ask .a-foot { padding: 0 2px; }
}
