/* Qited: a manual on a cutting mat. Paper, ink, the product's teal, and the yellow the assistant
   draws over a quoted line. Motion is stop-motion: poses held for a frame (step-end), never eased,
   and paper pieces that "boil" a little the way hand-animated cutouts do. One deliberate light look,
   like a printed page. */
:root {
  --paper: #f5f2e9;
  --paper-2: #ece7da;
  --card: #fffdf8;
  --ink: #121c22;
  --ink-2: #3b4850;
  --ink-3: #5a676e;
  --rule: #d9d2c2;
  --rule-2: #c7bea9;
  --teal: #0b5a7a;
  --teal-deep: #083a4e;
  --teal-soft: #e2edf0;
  --mat: #173f3b;
  --mat-line: rgba(214, 236, 226, 0.07);
  --mat-line-2: rgba(214, 236, 226, 0.16);
  --mat-ink: rgba(214, 236, 226, 0.5);
  --hl: rgba(255, 199, 0, 0.46);
  --hl-solid: #ffd43b;
  --hl-line: #d99a00;
  --stamp: #1e6a58;
  --card-rule: #e05a4f;
  --card-line: #cfe0ea;
  --ok: #1d6b3c;
  --dark: #121c22;
  --dark-2: #1a272e;
  --dark-rule: #2c3a41;
  --dark-text: #b7c4ca;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --lift: 0 1px 0 rgba(18, 28, 34, 0.04), 0 18px 40px -22px rgba(18, 28, 34, 0.45);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper) var(--grain); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The wordmark: the bracketed part of the mark is highlighted, the way the product marks a quoted line. */
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; }
.wm-hl { background: linear-gradient(transparent 18%, var(--hl) 18%, var(--hl) 88%, transparent 88%); padding: 0 0.06em; margin-right: 0.02em; box-shadow: inset 0 -2px 0 var(--hl-line); }

/* The logo's Q: an O whose tail is a highlighter stroke (tools/site-icons.mjs draws the same Q). */
.wm-q { position: relative; display: inline-block; margin-right: 0.06em; }
.wm-q i { position: absolute; width: 0.46em; height: 0.15em; right: -0.15em; bottom: 0.02em; background: var(--hl-solid); transform: rotate(38deg); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); mix-blend-mode: multiply; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 0.9rem 1.3rem; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--teal); color: #fff; box-shadow: 0 2px 0 var(--teal-deep); }
.btn-primary:hover { background-color: var(--teal-deep); }
.btn-ghost { border-color: var(--rule-2); color: var(--ink); background-color: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); background-color: var(--card); }
.btn .arrow { font-family: var(--mono); }

/* The highlighter, swiped over whatever the pointer is on, in three held frames: a stroke under a
   filled button's label, a band across an outlined button or a nav link. */
.btn-primary { background-image: linear-gradient(var(--swipe, var(--hl-solid)), var(--swipe, var(--hl-solid))); background-repeat: no-repeat; background-origin: content-box; background-position: 0 calc(100% + 5px); background-size: 0% 3px; }
.btn-primary:hover, .btn-primary:focus-visible { background-size: 100% 3px; animation: swipe-line 0.27s step-end; }
.btn-ghost { background-image: linear-gradient(transparent 22%, var(--hl) 22%, var(--hl) 80%, transparent 80%); background-repeat: no-repeat; background-size: 0% 100%; }
.top nav a { background-image: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%); background-repeat: no-repeat; background-size: 0% 100%; padding-inline: 2px; }
.btn-ghost:hover, .btn-ghost:focus-visible, .top nav a:hover, .top nav a:focus-visible { background-size: 100% 100%; animation: swipe 0.27s step-end; }
@keyframes swipe { 0% { background-size: 0% 100%; } 33% { background-size: 42% 100%; } 66% { background-size: 80% 100%; } }
@keyframes swipe-line { 0% { background-size: 0% 3px; } 33% { background-size: 42% 3px; } 66% { background-size: 80% 3px; } }
.paused .btn:hover, .paused .btn:focus-visible, .paused .top nav a:hover, .paused .top nav a:focus-visible { animation-play-state: running !important; }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 13px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.94rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top .btn { padding: 0.62rem 1rem; font-size: 0.94rem; }
@media (max-width: 1120px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Manual-style section labels: number, rule, title in mono */
.sec-label { display: flex; align-items: center; gap: 14px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.sec-label b { color: var(--teal); font-weight: 500; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------------- Hero ---------------- */
.hero { padding-block: 56px 64px; }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.025em; }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 94%, transparent 94%); }
.hero .lede { font-size: 1.2rem; color: var(--ink-2); margin-top: 24px; max-width: 33em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 0.9rem; color: var(--ink-3); }
@media (max-width: 960px) { .hero > .wrap { grid-template-columns: 1fr; gap: 40px; } .scene-wrap { width: 100%; max-width: 600px; justify-self: center; } }

/* The scene: a manual page on a cutting mat. Everything inside is sized in container units, so the
   whole set scales as one piece. */
.scene-wrap { display: flex; flex-direction: column; gap: 12px; }
.stage { position: relative; container-type: inline-size; aspect-ratio: 1 / 0.9; border-radius: 2.6cqw; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 30, 30, 0.65); }
.mat {
  position: absolute; inset: 0; border-radius: 2.6cqw; overflow: hidden;
  background-color: var(--mat);
  background-image:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--mat-line-2) calc(50% - 1px), var(--mat-line-2) calc(50% + 0px), transparent calc(50% + 0px)),
    linear-gradient(var(--mat-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line-2) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 100% 100%, 20cqw 20cqw, 20cqw 20cqw, 4cqw 4cqw, 4cqw 4cqw;
  background-position: 0 0, 3cqw 3cqw, 3cqw 3cqw, 3cqw 3cqw, 3cqw 3cqw;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.ruler { position: absolute; font: 500 1.25cqw/1 var(--mono); color: var(--mat-ink); letter-spacing: 0.04em; }
.ruler.x { top: 0.9cqw; }
.ruler.y { left: 0.9cqw; }
.mat .brand-ink { position: absolute; right: 2.4cqw; bottom: 1.8cqw; font: 500 1.2cqw/1 var(--mono); letter-spacing: 0.14em; color: var(--mat-ink); text-transform: uppercase; }

.piece { position: absolute; transform: var(--rest, none); }
.boil { animation: boil 0.5s step-end infinite; animation-delay: var(--bd, 0s); }
@keyframes boil {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(0.35px, -0.3px) rotate(0.22deg); }
  50% { transform: translate(-0.3px, 0.25px) rotate(-0.18deg); }
  75% { transform: translate(0.2px, 0.35px) rotate(0.12deg); }
}

/* The page */
.page { left: 7cqw; top: 8.5cqw; width: 54cqw; height: 73cqw; --rest: rotate(-2.2deg); --c: 0cqw; z-index: 2; filter: drop-shadow(0 0.4cqw 0 rgba(0, 0, 0, 0.05)) drop-shadow(0 2.4cqw 2cqw rgba(0, 0, 0, 0.42)); }
.page.under { z-index: 1; }
.page .sheet { position: absolute; inset: 0; background: var(--card) var(--grain); border-radius: 0.5cqw; padding: 4cqw 4.4cqw 3cqw; display: flex; flex-direction: column; gap: 1.5cqw; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }
/* The page turn: --c of the corner is cut from the page and folded over it, its back shaded toward
   the fold. The script grows --c a frame at a time, then lifts the page away. */
.page .curl { position: absolute; right: 0; bottom: 0; width: var(--c); height: var(--c); filter: drop-shadow(-0.3cqw -0.3cqw 0.5cqw rgba(0, 0, 0, 0.18)); }
.page .curl i { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 0 100%); background: linear-gradient(to top left, #c9bc9f 50%, #e6dfcd 66%, #f7f3e8 100%); }
.sheet .running { font: 500 1.25cqw/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 0.15cqw solid var(--rule); padding-bottom: 1.1cqw; display: flex; justify-content: space-between; gap: 2cqw; }
.sheet h4 { font: 700 2.45cqw/1.15 var(--display); margin-top: 0.6cqw; }
.sheet .bar { height: 1cqw; background: #e4ded1; border-radius: 1cqw; }
.sheet .quote { font: 400 1.95cqw/1.55 var(--body); color: var(--ink); margin-block: 0.3cqw; }
.sheet .quote span { background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat; background-size: var(--sweep, 100%) 100%; padding-block: 0.1em; }
.sheet .folio { margin-top: auto; text-align: center; font: 500 1.35cqw/1 var(--mono); color: var(--ink-3); }

/* The tab that sticks out of the page at the cited section */
.tab { left: 55cqw; top: 25cqw; z-index: 1; --rest: rotate(-2.2deg); }
.tab .boil { background: var(--hl-solid); color: var(--ink); font: 600 1.55cqw/1.15 var(--mono); padding: 1.1cqw 1.4cqw 1.1cqw 7.5cqw; border-radius: 0 0.8cqw 0.8cqw 0; box-shadow: 0 1.2cqw 2cqw -1cqw rgba(0, 0, 0, 0.5); white-space: nowrap; }

/* The question, a cut-paper speech card */
.ask { right: 3cqw; top: 3.5cqw; width: 43cqw; z-index: 4; --rest: rotate(1.6deg); filter: drop-shadow(0 1.4cqw 1.4cqw rgba(0, 0, 0, 0.35)); }
.ask .boil { background: #fff; padding: 2.2cqw 2.4cqw 2.6cqw; clip-path: polygon(0.8% 2%, 22% 0, 58% 1.2%, 99% 0, 100% 46%, 99.2% 97%, 30% 100%, 22% 100%, 15% 112%, 14% 100%, 1% 99%, 0 54%); display: grid; gap: 1cqw; }
.ask .who { font: 500 1.25cqw/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 1cqw; }
.ask .who i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--teal); color: #fff; font: 700 1.5cqw/2.6cqw var(--display); text-align: center; font-style: normal; }
.ask .q { font: 600 2.5cqw/1.3 var(--body); color: var(--ink); min-height: 6.5cqw; }

/* The answer, an index card */
.ans { right: 2.5cqw; bottom: 4.5cqw; width: 50cqw; z-index: 5; --rest: rotate(-1.4deg); }
.ans .boil { background: #fffefa; border-radius: 0.4cqw; padding: 2.4cqw 2.6cqw 2.4cqw; box-shadow: 0 2cqw 3cqw -1.5cqw rgba(0, 0, 0, 0.55);
  background-image: linear-gradient(var(--card-rule), var(--card-rule)), repeating-linear-gradient(transparent 0 3.4cqw, var(--card-line) 3.4cqw calc(3.4cqw + 1px));
  background-size: 100% 1px, 100% 100%; background-position: 0 5.4cqw, 0 5.6cqw; background-repeat: no-repeat, no-repeat; display: grid; gap: 1.3cqw; }
.ans .pill { justify-self: start; font: 600 1.15cqw/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); background: #e3f1e6; padding: 0.6cqw 1cqw; border-radius: 0.5cqw; }
.ans .a { font: 700 2.6cqw/1.25 var(--display); color: var(--ink); }
.ans .cite { display: flex; flex-wrap: wrap; gap: 0.8cqw; font: 500 1.35cqw/1 var(--mono); }
.ans .cite span { background: var(--teal-soft); color: var(--teal-deep); padding: 0.7cqw 1cqw; border-radius: 0.5cqw; }
.ans .cite .ok { background: #e3f1e6; color: var(--ok); }

/* The rubber stamp */
.stamp { left: 2cqw; bottom: 1.5cqw; width: 18cqw; z-index: 3; --rest: rotate(-14deg); color: var(--stamp); }
.stamper { left: 9cqw; top: 54.5cqw; width: 20cqw; z-index: 7; transform-origin: 50% 94%; pointer-events: none; }
.stamper svg { display: block; width: 100%; height: auto; filter: drop-shadow(0.8cqw 1.2cqw 1cqw rgba(0, 0, 0, 0.35)); }
.stamper-shadow { left: 10cqw; top: 68.6cqw; width: 18cqw; height: 6cqw; z-index: 3; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
.stamp svg { display: block; width: 100%; height: auto; opacity: 0.88; mix-blend-mode: multiply; }

/* The highlighter */
.marker { width: 6.5cqw; z-index: 6; left: 0; top: 0; pointer-events: none; }
.marker svg { display: block; width: 100%; height: auto; transform: translate(-45%, -98.5%) rotate(28deg); transform-origin: 45% 98.5%; filter: drop-shadow(0.6cqw 1.2cqw 0.8cqw rgba(0, 0, 0, 0.35)); }

/* Which pieces are on set. Without the script (or with reduced motion) every piece shows: the
   finished frame. The script plays the frames by switching these classes. */
.scene.play .ask, .scene.play .tab, .scene.play .ans, .scene.play .stamp, .scene.play .marker, .scene.play .page, .scene.play .stamper, .scene.play .stamper-shadow { visibility: hidden; }
.scene.play.s-page .page.top, .scene.play.s-under .page.under, .scene.play.s-ask .ask, .scene.play.s-tab .tab, .scene.play.s-ans .ans, .scene.play.s-stamp .stamp, .scene.play.s-marker .marker, .scene.play.s-stamp .stamper, .scene.play.s-stamp .stamper-shadow { visibility: visible; }
.scene:not(.play) .marker, .scene:not(.play) .stamper, .scene:not(.play) .stamper-shadow, .scene:not(.play) .page.under { display: none; }
/* Before the first frame: the page waits on the mat and the other pieces wait off set, so the
   finished frame never flashes. If the script never arrives, they appear after a moment. */
.js:not(.reduce) .scene:not(.play) .piece:not(.page) { visibility: hidden; }
.js:not(.motion-ready):not(.reduce) .scene .piece:not(.page) { animation: late-show 0s 2.5s forwards; }
@keyframes late-show { to { visibility: visible; } }
.scene.s-ask .ask { animation: pop-in 0.44s step-end both; }
.scene.s-ans .ans { animation: drop-in 0.48s step-end both; }
.scene.s-tab .tab { animation: tab-out 0.4s step-end both; }
.scene.s-stamp .stamp { animation: ink-in 1.05s step-end both; }
.scene.s-stamp .stamper { animation: press 1.05s step-end both; }
.scene.s-stamp .stamper-shadow { animation: press-shadow 1.05s step-end both; }
.scene .page.leave { animation: page-out 0.42s step-end both; }
.scene.out .ask, .scene.out .ans { animation: lift-off 0.4s step-end both; animation-delay: var(--od, 0s); }
.scene.out .tab { animation: tab-in 0.3s step-end both; }
.scene.out .ans { --od: 0.08s; }
@keyframes ink-in {
  0%, 44% { opacity: 0; transform: var(--rest); }
  45% { opacity: 1; transform: var(--rest) scale(1.04); }
  60%, 100% { opacity: 1; transform: var(--rest); }
}
@keyframes press {
  0% { transform: translate(15cqw, -36cqw) rotate(12deg) scale(1.14); opacity: 1; }
  15% { transform: translate(8cqw, -19cqw) rotate(6deg) scale(1.08); }
  30% { transform: translate(2.5cqw, -6cqw) rotate(2deg) scale(1.03); }
  45% { transform: translateY(0.4cqw) scale(1.03, 0.94); }
  58% { transform: none; }
  70% { transform: translate(3cqw, -9cqw) rotate(-3deg) scale(1.04); }
  84% { transform: translate(9cqw, -25cqw) rotate(-7deg) scale(1.09); opacity: 1; }
  100% { transform: translate(16cqw, -42cqw) rotate(-10deg) scale(1.13); opacity: 0; }
}
@keyframes press-shadow {
  0% { transform: translate(7cqw, -3cqw) scale(1.6); opacity: 0.2; }
  15% { transform: translate(4cqw, -1.5cqw) scale(1.35); opacity: 0.3; }
  30% { transform: translate(1cqw, 0) scale(1.12); opacity: 0.45; }
  45% { transform: none; opacity: 0.6; }
  70% { transform: translate(1.5cqw, -0.5cqw) scale(1.15); opacity: 0.4; }
  84% { transform: translate(4.5cqw, -1.5cqw) scale(1.4); opacity: 0.25; }
  100% { opacity: 0; }
}

@keyframes pop-in {
  0% { transform: var(--rest) translate(4%, 10%) scale(0.55) rotate(-9deg); opacity: 0; }
  20% { transform: var(--rest) translate(1%, 2%) scale(1.1) rotate(4deg); opacity: 1; }
  40% { transform: var(--rest) scale(0.95) rotate(-2deg); }
  60% { transform: var(--rest) scale(1.03) rotate(0.8deg); }
  80% { transform: var(--rest) scale(0.99); }
  100% { transform: var(--rest); opacity: 1; }
}
@keyframes drop-in {
  0% { transform: var(--rest) translate(6%, -40%) rotate(8deg); opacity: 0; }
  20% { transform: var(--rest) translate(3%, -16%) rotate(5deg); opacity: 1; }
  40% { transform: var(--rest) translate(0, 3%) rotate(-2.5deg); }
  60% { transform: var(--rest) translate(0, -1.5%) rotate(1deg); }
  80% { transform: var(--rest) translate(0, 0.5%); }
  100% { transform: var(--rest); opacity: 1; }
}
@keyframes tab-out {
  0% { transform: var(--rest) translateX(-60%); }
  25% { transform: var(--rest) translateX(-38%); }
  50% { transform: var(--rest) translateX(-14%); }
  75% { transform: var(--rest) translateX(3%); }
  100% { transform: var(--rest); }
}
@keyframes tab-in {
  0% { transform: var(--rest); }
  33% { transform: var(--rest) translateX(-25%); }
  66% { transform: var(--rest) translateX(-50%); }
  100% { transform: var(--rest) translateX(-70%); opacity: 0; }
}
@keyframes thump {
  0% { transform: var(--rest) scale(1.9) rotate(12deg); opacity: 0; }
  25% { transform: var(--rest) scale(1.35) rotate(5deg); opacity: 0.5; }
  50% { transform: var(--rest) scale(0.92) rotate(-2deg); opacity: 1; }
  75% { transform: var(--rest) scale(1.03) rotate(0.6deg); }
  100% { transform: var(--rest); opacity: 1; }
}
@keyframes page-in {
  0% { transform: var(--rest) translate(30%, 24%) rotate(10deg); opacity: 0; }
  20% { transform: var(--rest) translate(18%, 12%) rotate(6deg); opacity: 1; }
  40% { transform: var(--rest) translate(6%, 3%) rotate(2deg); }
  60% { transform: var(--rest) translate(-1%, -1%) rotate(-1deg); }
  80% { transform: var(--rest) translate(0.4%, 0.3%); }
  100% { transform: var(--rest); opacity: 1; }
}
@keyframes page-out {
  0% { transform: var(--rest); }
  25% { transform: var(--rest) translate(-4%, -3%) rotate(-4deg) scale(1.02); }
  50% { transform: var(--rest) translate(-26%, 6%) rotate(-12deg); }
  75% { transform: var(--rest) translate(-60%, 18%) rotate(-22deg); opacity: 1; }
  100% { transform: var(--rest) translate(-90%, 30%) rotate(-30deg); opacity: 0; }
}
@keyframes lift-off {
  0% { transform: var(--rest); }
  33% { transform: var(--rest) translate(3%, -5%) rotate(3deg); }
  66% { transform: var(--rest) translate(22%, -16%) rotate(9deg); opacity: 1; }
  100% { transform: var(--rest) translate(60%, -30%) rotate(16deg); opacity: 0; }
}

/* On a phone the set is small, so its words are set larger relative to it. */
@container (max-width: 520px) {
  .ask { width: 50cqw; }
  .ask .who { font-size: 1.9cqw; }
  .ask .q { font-size: 3.5cqw; }
  .ans { width: 58cqw; }
  .ans .pill { font-size: 1.8cqw; }
  .ans .a { font-size: 3.6cqw; }
  .ans .cite { font-size: 2cqw; }
  .tab .boil { font-size: 2.1cqw; }
  .sheet .running { font-size: 1.7cqw; }
  .sheet h4 { font-size: 3.1cqw; }
  .sheet .quote { font-size: 2.65cqw; }
  .sheet .folio { font-size: 1.8cqw; }
  .mat .brand-ink { display: none; }
}

.scene-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-3); }
.motion-toggle { font: 500 0.82rem/1 var(--mono); color: var(--ink-2); background: var(--card); border: 1px solid var(--rule-2); border-radius: 999px; padding: 0.5rem 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.motion-toggle:hover { border-color: var(--ink-3); }
.reduce .motion-toggle { display: none; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
html:not(.js) .doc-tabs { display: none; }
.doc-tab { font: 500 0.85rem/1 var(--body); color: var(--ink-2); background: var(--card); border: 1px solid var(--rule-2); border-radius: 999px; padding: 0.5rem 0.85rem; cursor: pointer; }
.doc-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.doc-tab[aria-pressed="true"] { background: var(--hl-solid); border-color: var(--hl-line); color: var(--ink); }
.scene-note { font-size: 0.86rem; color: var(--ink-3); }
html:not(.js) .tap-hint, .reduce .tap-hint { display: none; }
.scene.holding .ans { cursor: pointer; }

/* ---------------- Document strip: paper tabs gliding past, paused while the pointer is on them ---------------- */
.docs { border-block: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; padding-block: 16px; }
.docs .row { display: flex; align-items: center; gap: 14px; }
.docs .lead { flex: none; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-left: max(20px, (100% - 1180px) / 2); }
.docs .viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.docs .track { display: flex; width: max-content; animation: ticker 60s linear infinite; will-change: transform; }
.docs:hover .track { animation-play-state: paused; }
.docs .track span { flex: none; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--hl-solid); border-radius: 4px; padding: 7px 12px; font-size: 0.92rem; color: var(--ink-2); white-space: nowrap; margin-right: 12px; }
/* The track holds the list twice, and each tab carries its own gap, so -50% is exactly one copy and the loop has no seam. */
@keyframes ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 640px) { .docs .lead { display: none; } }

/* ---------------- Sections ---------------- */
section.block { padding-block: 84px; }
section.block h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; max-width: 17em; }
section.block .intro { font-size: 1.14rem; color: var(--ink-2); margin-top: 18px; max-width: 40em; }

/* The problem: three index cards */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; align-items: stretch; }
.icard { position: relative; background: #fffefa; border-radius: 6px; padding: 30px 26px 26px; box-shadow: var(--lift);
  background-image: linear-gradient(var(--card-rule), var(--card-rule)), repeating-linear-gradient(transparent 0 30px, var(--card-line) 30px 31px);
  background-size: 100% 1px, 100% 100%; background-position: 0 94px, 0 94px; background-repeat: no-repeat; display: flex; flex-direction: column; gap: 12px; }
.icard:nth-child(1) { transform: rotate(-0.8deg); }
.icard:nth-child(2) { transform: rotate(0.6deg); }
.icard:nth-child(3) { transform: rotate(-0.4deg); }
.icard .k { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.icard h3 { font-size: 1.55rem; margin-top: 4px; }
.icard p { color: var(--ink-2); line-height: 30px; }
.icard.win h3 span { background: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%); }
.icard.win { outline: 2px solid var(--teal); outline-offset: -2px; }
.icard .mini-stamp { position: absolute; right: 16px; top: 14px; width: 74px; color: var(--stamp); transform: rotate(-12deg); opacity: 0.85; mix-blend-mode: multiply; }
.pullquote { margin-top: 40px; font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.35 var(--display); max-width: 30em; color: var(--ink); }
.pullquote em { font-style: normal; background: linear-gradient(transparent 60%, var(--hl) 60%, var(--hl) 94%, transparent 94%); }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* How it works: three steps, each with a little stop-motion loop */
/* How it works: three steps, each with a short stop-motion loop. The step that's playing is outlined
   and plays its loop; the others fade back and hold their last pose. A line along the playing card's
   bottom edge fills in held steps until the next one starts. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.step { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.frame { position: relative; }
.flow.running .step.on { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 20px 40px -26px rgba(11, 90, 122, 0.55); }
.flow.running .step:not(.on) .vig { filter: saturate(0.3) brightness(0.92); }
.flow.running .step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--teal); }
.flow.running .step.on::after { animation: progress 3.3s steps(12, end) forwards; }
@keyframes progress { to { width: 100%; } }
.flow.running .step.on .n { background: var(--hl); box-shadow: 0 0 0 3px var(--hl); color: var(--ink); }
.step .vig { position: relative; height: 170px; background: var(--mat); background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px); background-size: 16px 16px; overflow: hidden; }
.step .txt { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.step .n { align-self: flex-start; font: 500 0.85rem/1 var(--mono); color: var(--teal); }
.step h3 { font-size: 1.4rem; }
.step p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* 3.1: a PDF drops into the tray and comes out as passages */
.v-add .tray { position: absolute; left: 50%; bottom: 22px; width: 150px; height: 46px; margin-left: -75px; background: #e9e3d4; border-radius: 4px 4px 8px 8px; box-shadow: inset 0 8px 0 rgba(0, 0, 0, 0.08), 0 10px 18px -8px rgba(0, 0, 0, 0.5); z-index: 2; }
.v-add .tray::after { content: "Indexed"; position: absolute; inset: 14px 0 0; text-align: center; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.v-add .pdf { position: absolute; left: 50%; top: 14px; width: 64px; height: 82px; margin-left: -32px; background: #fff; border-radius: 3px; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, 0.5); padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; z-index: 1; transform: translateY(170px); }
.v-add .pdf i { height: 4px; background: #e2dccf; border-radius: 2px; }
.v-add .pdf b { font: 700 0.62rem/1 var(--mono); color: #b33a2f; }
.v-add .chips { position: absolute; right: 18px; top: 18px; display: grid; gap: 5px; z-index: 3; }
.v-add .chips span { font: 500 0.66rem/1 var(--mono); background: var(--hl-solid); color: var(--ink); padding: 4px 6px; border-radius: 3px; }
.step.on .v-add .pdf { animation: pdf-drop 2.6s step-end both; }
.step.on .v-add .chips span { animation: chip 2.6s step-end both; }
.step.on .v-add .chips span:nth-child(2) { animation-name: chip2; }
.step.on .v-add .chips span:nth-child(3) { animation-name: chip3; }
@keyframes pdf-drop { 0% { transform: translateY(-110px) rotate(-10deg); } 12% { transform: translateY(-40px) rotate(6deg); } 24% { transform: translateY(0) rotate(-3deg); } 36% { transform: translateY(30px) rotate(1deg); } 48% { transform: translateY(70px); } 60%, 100% { transform: translateY(170px); } }
@keyframes chip { 0%, 52% { opacity: 0; transform: translateX(-8px); } 58%, 100% { opacity: 1; transform: none; } }
@keyframes chip2 { 0%, 64% { opacity: 0; transform: translateX(-8px); } 70%, 100% { opacity: 1; transform: none; } }
@keyframes chip3 { 0%, 76% { opacity: 0; transform: translateX(-8px); } 82%, 100% { opacity: 1; transform: none; } }

/* 3.2: a question typed into a speech card, a character a frame */
.v-ask .bubble { position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%) rotate(-1.5deg); background: #fff; border-radius: 10px; padding: 16px 16px 18px; box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.55); }
.v-ask .bubble::after { content: ""; position: absolute; left: 26px; bottom: -12px; border: 7px solid transparent; border-top: 8px solid #fff; border-left: 9px solid #fff; }
.v-ask .who { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.v-ask .type { font: 500 0.95rem/1.3 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; width: 30ch; border-right: 2px solid var(--teal); max-width: 100%; }
.step.on .v-ask .type { animation: type 2.6s steps(30, end) both; }
@keyframes type { 0% { width: 0; } 70%, 100% { width: 30ch; } }

/* 3.3: the page opens with the quoted line highlighted and a tab at the section */
.v-page .pg { position: absolute; left: 50%; top: 18px; width: 150px; height: 134px; margin-left: -90px; background: #fff; border-radius: 3px; padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.5); transform: rotate(-2deg); }
.v-page .pg i { height: 5px; background: #e2dccf; border-radius: 3px; }
.v-page .pg .line { height: 7px; background: #cfc8b8; position: relative; }
.v-page .pg .line::after { content: ""; position: absolute; inset: -3px 0; background: var(--hl); width: 100%; }
.step.on .v-page .pg .line::after { animation: sweep 2.6s step-end both; }
.v-page .ptab { position: absolute; left: 50%; top: 48px; margin-left: 50px; background: var(--hl-solid); font: 600 0.68rem/1 var(--mono); padding: 6px 8px; border-radius: 0 4px 4px 0; transform: rotate(-2deg); }
.step.on .v-page .ptab { animation: ptab 2.6s step-end both; }
@keyframes sweep { 0%, 18% { width: 0; } 26% { width: 25%; } 34% { width: 50%; } 42% { width: 75%; } 50%, 100% { width: 100%; } }
@keyframes ptab { 0%, 54% { transform: rotate(-2deg) translateX(-44px); opacity: 0; } 60% { transform: rotate(-2deg) translateX(-20px); opacity: 1; } 66%, 100% { transform: rotate(-2deg); opacity: 1; } }

/* Feature rows: copy beside a product screen */
.rows { display: flex; flex-direction: column; gap: 64px; margin-top: 52px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.row:nth-child(even) .copy { order: 2; }
.row .copy { display: flex; flex-direction: column; gap: 14px; }
.row h3 { font-size: 1.85rem; }
.row p { color: var(--ink-2); max-width: 30em; }
.row .ref { font: 500 0.82rem/1.4 var(--mono); color: var(--ink-3); }
@media (max-width: 880px) { .row { grid-template-columns: 1fr; gap: 26px; } .row:nth-child(even) .copy { order: 0; } }

/* Product UI, drawn in HTML with sample documents (the answer rows and the admin tiles). */
.ui { background: #fff; border: 1px solid #dfe5e8; border-radius: 10px; font: 14px/1.45 var(--body); color: var(--ink); overflow: hidden; text-align: left; }
.ui b { font-weight: 600; }
.pill { display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.pill.ok { background: #e3f1e6; color: var(--ok); }
.pill.warn { background: #fdf0d5; color: #7a4f00; }
.pill.none { background: #eceff1; color: #45525a; }
.pill.open { background: #fde5e1; color: #a3261a; }
.ui-btn { display: inline-flex; align-items: center; font: 500 12px/1 var(--body); color: var(--teal); border: 1px solid #c9d6dc; border-radius: 6px; padding: 6px 8px; white-space: nowrap; background: #fff; }
.ui-btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.ui-dim { color: #5f6b71; font-size: 12px; }
.ui-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px 8px; }
.ui-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e3e8ea; background: #fafbfb; }
.ui-bar > div { flex: 1; min-width: 0; }
.ui-bar b { display: block; font-size: 13px; line-height: 1.3; }
.ui-bar small { color: #5f6b71; font-size: 11.5px; }
.ui-back { font: 600 18px/1 var(--body); color: #5f6b71; }
.ui-sheet { margin: 14px; background: #fff; box-shadow: 0 0 0 1px #e3e8ea, 0 8px 16px -10px rgba(0, 0, 0, 0.35); padding: 22px 24px 14px; display: flex; flex-direction: column; gap: 8px; }
.ui-sheet .b { display: block; height: 7px; background: #e8e4da; border-radius: 4px; }
.ui-sheet h5 { font: 700 13.5px/1.3 var(--body); margin: 6px 0 0; }
.ui-sheet p { font-size: 12.5px; line-height: 1.6; color: #2b363b; }
.ui-sheet mark { background: var(--hl); color: inherit; box-shadow: 0 0 0 1.5px var(--hl-line); border-radius: 1px; }
.ui-sheet.drawing { padding: 10px; }
.ui-sheet.drawing svg { display: block; width: 100%; height: auto; }
.ui-folio { text-align: center; font: 500 11px var(--mono); color: #6b777d; margin-top: 6px; }
.ui-foot { padding: 0 14px 12px; font-size: 11.5px; color: #5f6b71; }
.ui-chat { background: #f3f5f6; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ui-q { align-self: flex-end; background: var(--teal); color: #fff; border-radius: 14px 14px 4px 14px; padding: 9px 13px; max-width: 85%; font-weight: 500; }
.ui-card { background: #fff; border: 1px solid #dfe5e8; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ui-h { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.ui-cases { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; width: 100%; border-top: 1px solid #eef1f2; padding-top: 10px; }
.ui-cases dt { color: #45525a; }
.ui-cases dd { margin: 0; font-weight: 600; }
.ui-cases small { display: block; font: 500 11px/1.4 var(--mono); color: var(--teal-deep); }
.ui-small { font-size: 13px; color: #45525a; }
.ui-src { font-size: 12px; color: #5f6b71; border-top: 1px solid #e3e8ea; padding-top: 8px; width: 100%; }
.ui-src u { color: var(--teal); }
.ui-help { background: #e8f0f3; border-radius: 8px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; width: 100%; }
.ui-dl { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 8px 12px; margin: 0; padding: 4px 14px 10px; font-size: 13px; }
.ui-dl dt { color: #5f6b71; }
.ui-dl dd { margin: 0; }
.ui-dl.tight { grid-template-columns: 6.6em minmax(0, 1fr); font-size: 12.5px; }
.ui-dl .quote-box { background: #f2f5f6; border-left: 3px solid #b7c6cc; padding: 6px 10px; }
.ui-sub { font-weight: 600; font-size: 13px; padding: 4px 14px 6px; }
.ui-sub0 { font-weight: 600; font-size: 12.5px; }
.ui-trace { list-style: none; margin: 0; padding: 0 14px 8px; display: grid; gap: 6px; font-size: 12.5px; }
.ui-trace li { display: flex; gap: 8px; align-items: center; }
.ui-trace span { font: 500 11px/1 var(--mono); background: var(--teal-soft); color: var(--teal-deep); padding: 4px 6px; border-radius: 4px; }
.ui-trace em { margin-left: auto; font-style: normal; color: #5f6b71; font-size: 11.5px; }
.ui-actions { display: flex; gap: 8px; padding: 6px 14px 14px; flex-wrap: wrap; }
.ui-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 2px 14px 10px; margin: 0; font-size: 12.5px; color: var(--ok); }
.ui-steps li::before { content: "✓"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 10px; margin-right: 6px; vertical-align: -2px; }
.ui-steps li.now { color: var(--teal-deep); font-weight: 600; }
.ui-steps li.now::before { content: "4"; background: #fff; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); font-weight: 600; }
.ui-box { margin: 0 14px 10px; border: 1px solid #ecd9a6; background: #fffaf0; border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.ui-input { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid #d6dde0; background: #fff; border-radius: 6px; padding: 6px 6px 6px 10px; font-size: 13px; }
.ui-ans { background: #fff; border: 1px solid #e3e8ea; border-radius: 6px; padding: 8px 10px; display: grid; gap: 5px; justify-items: start; font-size: 13px; }
.ui-ans small { color: #5f6b71; }
.ui-scroll { overflow: hidden; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 12px; }
@media (max-width: 480px) { .ui-table { font-size: 11px; } .ui-table th, .ui-table td { padding: 6px 5px; } }
.ui-table th { text-align: left; font: 600 10px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: #5f6b71; padding: 7px 8px; border-block: 1px solid #e3e8ea; background: #fafbfb; }
.ui-table td { padding: 8px; vertical-align: top; border-bottom: 1px solid #eef1f2; }
.ui-table td small { display: block; color: #5f6b71; font-size: 11px; margin-top: 2px; }
.ui-table tr.chg td { background: #fff8e6; }
.ui-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-two > div + div { border-left: 1px solid #e3e8ea; }
.ui-big { font: 700 26px/1 var(--display); padding: 4px 14px 12px; }
.ui-big small { font: 500 13px var(--body); color: #5f6b71; margin-left: 4px; }
.ui-meter { position: relative; height: 8px; background: #e8edef; border-radius: 4px; margin: 0 14px 12px; }
.ui-meter i { position: absolute; inset: 0 auto 0 0; background: var(--ok); border-radius: 4px; }
.ui-meter b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.ui-note { padding: 0 14px 14px; font-size: 12px; color: #5f6b71; }
@media (max-width: 560px) { .ui-two { grid-template-columns: 1fr; } .ui-two > div + div { border-left: 0; border-top: 1px solid #e3e8ea; } }

/* Admin console (dark) */
.admin { background: var(--dark) var(--grain); color: #e9eef0; }
.admin .sec-label { color: #93a3aa; }
.admin .sec-label b { color: #8fd3df; }
.admin .sec-label::after { background: var(--dark-rule); }
.admin h2 { color: #fff; }
section.admin .intro { color: var(--dark-text); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 50px; }
.tile { background: var(--dark-2); border: 1px solid var(--dark-rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tile .pic { background: #e9eef0; flex: 1; padding: 18px; overflow: hidden; }  /* grows, so tiles in a row keep their text level */
.tile .pic img { width: 100%; }
.tile .txt { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.tile .txt h3 { font-size: 1.3rem; color: #fff; }
.tile .txt p { color: var(--dark-text); font-size: 0.98rem; }
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.also div { border-top: 1px solid var(--dark-rule); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.also b { font-family: var(--display); font-size: 1.15rem; color: #fff; }
.also span { color: var(--dark-text); font-size: 0.96rem; }
@media (max-width: 860px) { .grid, .also { grid-template-columns: 1fr; } }

/* The admin film: three workflows acted out on a cutting mat, a step at a time, with the step
   lit in the list beside it. Pieces are sized in --u (1% of the stage's width, more on a phone). */
.film { display: grid; grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr); gap: 40px; margin-top: 52px; align-items: center; }
@media (max-width: 980px) { .film { grid-template-columns: 1fr; gap: 28px; } }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { font: 500 0.92rem/1 var(--body); color: var(--dark-text); background: transparent; border: 1px solid var(--dark-rule); border-radius: 999px; padding: 0.62rem 0.95rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; }
.ch:hover { border-color: #51636b; color: #fff; }
.ch span { font: 500 0.75rem/1 var(--mono); color: #8fd3df; }
.ch[aria-pressed="true"] { background: var(--hl-solid); color: var(--ink); border-color: var(--hl-solid); }
.ch[aria-pressed="true"] span { color: var(--ink); }
.beats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: beat; }
.beats li { counter-increment: beat; display: grid; grid-template-columns: 1.8em minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-radius: 8px; color: var(--dark-text); }
.beats li::before { content: counter(beat); font: 500 0.8rem/1.75 var(--mono); color: #8c9ba2; }
.js:not(.reduce) .beats li { color: #8c9ba2; }
.beats li.done { color: var(--dark-text) !important; }
.beats li.done::before { content: "✓"; color: #7fd1a0; }
.beats li.cur { background: var(--dark-2); color: #fff !important; box-shadow: inset 3px 0 0 var(--hl-solid); }
.beats li.cur::before { color: var(--hl-solid); }
.no-ch .chapters { display: none; }

.astage { position: relative; container-type: inline-size; aspect-ratio: 1 / 0.68; border-radius: 2.6cqw; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85); }
@media (max-width: 600px) { .astage { aspect-ratio: 1 / 1.05; } }
.astage .mat { box-shadow: none; }
.aset { position: absolute; inset: 0; --u: 1cqw; color: var(--ink); }
@container (max-width: 560px) { .aset { --u: 1.55cqw; } }
.pc { position: absolute; transform: var(--rest, none); }
.aset .pc[data-out] { display: none; }
.js .aset .pc[data-out] { display: block; }
.js .aset .pc { visibility: hidden; }
.js .aset .pc.on { visibility: visible; animation: var(--anim, pop-in) 0.44s step-end both; animation-delay: var(--d, 0s); }
.js .aset .pc.leave { animation: lift-off 0.4s step-end both; }
.js .aset .pc.hlbar.on { animation: sweep-in 0.6s steps(6, end) both; animation-delay: var(--d, 0s); }
@keyframes sweep-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.pp { background: #fff; border-radius: calc(var(--u) * 0.6); box-shadow: 0 calc(var(--u) * 1.2) calc(var(--u) * 2) calc(var(--u) * -1) rgba(0, 0, 0, 0.6); padding: calc(var(--u) * 1.6) calc(var(--u) * 1.8); font: 400 calc(var(--u) * 1.65)/1.35 var(--body); color: var(--ink); display: grid; gap: calc(var(--u) * 0.9); justify-items: start; }
.pp.sm { padding: calc(var(--u) * 1.2) calc(var(--u) * 1.4); font-size: calc(var(--u) * 1.45); gap: calc(var(--u) * 0.7); box-shadow: 0 calc(var(--u) * 0.6) calc(var(--u) * 1) calc(var(--u) * -0.5) rgba(0, 0, 0, 0.35); }
.pp b { font-weight: 600; }
.pp .qline { font-weight: 600; font-size: calc(var(--u) * 1.45); color: var(--ink-2); }
.pp .big { font: 700 calc(var(--u) * 2.2)/1.2 var(--display); }
.astage .pill { font-size: calc(var(--u) * 1.1); padding: calc(var(--u) * 0.45) calc(var(--u) * 0.7); }
.astage .cite { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 0.6); font: 500 calc(var(--u) * 1.2)/1 var(--mono); }
.astage .cite span { background: var(--teal-soft); color: var(--teal-deep); padding: calc(var(--u) * 0.55) calc(var(--u) * 0.8); border-radius: calc(var(--u) * 0.4); }
.astage .cite .ok { background: #e3f1e6; color: var(--ok); }
.mono-s { font-family: var(--mono); font-size: 0.9em; }
.sticker { width: calc(var(--u) * 10.5); aspect-ratio: 1; border-radius: 50%; background: #b8382d; color: #fff; display: grid; place-items: center; text-align: center; font: 700 calc(var(--u) * 1.45)/1.15 var(--body); box-shadow: 0 calc(var(--u) * 0.8) calc(var(--u) * 1.4) calc(var(--u) * -0.6) rgba(0, 0, 0, 0.6); }
.box { background: #e9e3d4; border-radius: calc(var(--u) * 0.8); padding: calc(var(--u) * 1.4); box-shadow: inset 0 calc(var(--u) * 0.6) 0 rgba(0, 0, 0, 0.07), 0 calc(var(--u) * 1.4) calc(var(--u) * 2.4) calc(var(--u) * -1.2) rgba(0, 0, 0, 0.6); display: grid; gap: calc(var(--u) * 1); }
.box-label { font: 600 calc(var(--u) * 1.15)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.trace { font-size: calc(var(--u) * 1.25); color: var(--ink-3); display: flex; gap: calc(var(--u) * 0.6); align-items: center; }
.trace span { font: 500 calc(var(--u) * 1.1)/1 var(--mono); background: var(--teal-soft); color: var(--teal-deep); padding: calc(var(--u) * 0.45) calc(var(--u) * 0.6); border-radius: calc(var(--u) * 0.35); }
.snote { background: var(--hl-solid); padding: calc(var(--u) * 1.6); box-shadow: 0 calc(var(--u) * 1.2) calc(var(--u) * 2) calc(var(--u) * -1) rgba(0, 0, 0, 0.6); display: grid; gap: calc(var(--u) * 0.7); }
.snote small { font: 600 calc(var(--u) * 1.05)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #5a4a10; }
.snote b { font: 700 calc(var(--u) * 2.4)/1.1 var(--display); }
.rstamp { font: 700 calc(var(--u) * 2.8)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp); border: calc(var(--u) * 0.45) solid currentColor; border-radius: calc(var(--u) * 0.6); padding: calc(var(--u) * 0.6) calc(var(--u) * 1.2); filter: url(#ink); background: rgba(255, 255, 255, 0.55); }
.slip { background: #fffefa; font: 400 calc(var(--u) * 1.3)/1.45 var(--mono); padding: calc(var(--u) * 1.2) calc(var(--u) * 1.4); box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 1.6) calc(var(--u) * -0.8) rgba(0, 0, 0, 0.6); color: var(--ink-2); }
.slip b { display: block; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: calc(var(--u) * 1.05); color: var(--ink-3); margin-bottom: calc(var(--u) * 0.4); }
.pdfc, .sheetc, .edp { background: #fffdf8; aspect-ratio: 0.77; box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 1.8) calc(var(--u) * -0.8) rgba(0, 0, 0, 0.6); padding: calc(var(--u) * 1.5); display: grid; align-content: start; gap: calc(var(--u) * 0.8); border-radius: calc(var(--u) * 0.3); }
.pdfc .tag { font: 700 calc(var(--u) * 1.15)/1 var(--mono); color: #b33a2f; }
.pdfc b { font: 700 calc(var(--u) * 1.7)/1.15 var(--display); }
.pdfc .mono-s { font-size: calc(var(--u) * 1.15); color: var(--ink-3); }
.pdfc i, .sheetc i, .edp i { display: block; height: calc(var(--u) * 0.65); background: #e2dccf; border-radius: calc(var(--u) * 0.4); }
.sheetc { padding-top: calc(var(--u) * 2.4); }
.chip { display: inline-block; font: 500 calc(var(--u) * 1.3)/1 var(--mono); background: var(--hl-solid); color: var(--ink); padding: calc(var(--u) * 0.7) calc(var(--u) * 0.9); border-radius: calc(var(--u) * 0.4); box-shadow: 0 calc(var(--u) * 0.6) calc(var(--u) * 1) calc(var(--u) * -0.5) rgba(0, 0, 0, 0.6); white-space: nowrap; }
.flbl { font: 500 calc(var(--u) * 1.3)/1.35 var(--mono); color: #d6ece2; }
.flbl b { color: #fff; font-weight: 600; font-size: 1.25em; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 1.2); background: #fff; padding: calc(var(--u) * 1.2) calc(var(--u) * 1.5); border-radius: calc(var(--u) * 0.8); font: 600 calc(var(--u) * 1.5)/1 var(--body); color: var(--ink); box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 1.6) calc(var(--u) * -0.8) rgba(0, 0, 0, 0.6); }
.toggle i { position: relative; flex: none; width: calc(var(--u) * 5); height: calc(var(--u) * 2.7); border-radius: 99px; background: var(--ok); }
.toggle i::after { content: ""; position: absolute; top: calc(var(--u) * 0.35); right: calc(var(--u) * 0.35); width: calc(var(--u) * 2); height: calc(var(--u) * 2); border-radius: 50%; background: #fff; }
.edp .run { font: 500 calc(var(--u) * 1.05)/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: calc(var(--u) * 0.7); }
.edp b { font: 700 calc(var(--u) * 1.7)/1.15 var(--display); }
.etag { display: inline-block; font: 600 calc(var(--u) * 1.15)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: calc(var(--u) * 0.6) calc(var(--u) * 0.9); border-radius: calc(var(--u) * 0.4); white-space: nowrap; box-shadow: 0 calc(var(--u) * 0.5) calc(var(--u) * 0.8) calc(var(--u) * -0.4) rgba(0, 0, 0, 0.5); }
.etag.live { background: #2f8a55; color: #fff; }
.etag.staged { background: #f0b90b; color: var(--ink); }
.etag.arch { background: #d3d9dc; color: var(--ink-2); }
.runs { color: #d6ece2; font: 500 calc(var(--u) * 1.3)/1 var(--mono); text-align: center; letter-spacing: 0.04em; }
.rowc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: center; gap: calc(var(--u) * 1.2); background: #fff; height: calc(var(--u) * 4.6); padding: 0 calc(var(--u) * 1.4); border-radius: calc(var(--u) * 0.5); font: 400 calc(var(--u) * 1.4)/1.2 var(--body); color: var(--ink); box-shadow: 0 calc(var(--u) * 0.6) calc(var(--u) * 1) calc(var(--u) * -0.5) rgba(0, 0, 0, 0.55); }
.rowc .mono-s { color: var(--ink-3); }
.hlbar { height: calc(var(--u) * 4.6); background: rgba(255, 199, 0, 0.42); outline: calc(var(--u) * 0.25) solid var(--hl-line); border-radius: calc(var(--u) * 0.5); mix-blend-mode: multiply; pointer-events: none; }
.rtab { display: inline-block; background: #b8382d; color: #fff; font: 600 calc(var(--u) * 1.15)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: calc(var(--u) * 0.9) calc(var(--u) * 1); border-radius: 0 calc(var(--u) * 0.5) calc(var(--u) * 0.5) 0; }
.screens-h { color: #fff; font-size: 1.4rem; margin-top: 64px; }
.screens-h + .grid { margin-top: 22px; }

/* Knowledge base: a pipeline of index cards with marching dashes between them */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 52px; align-items: stretch; }
.node { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 16px 18px; display: flex; flex-direction: column; gap: 6px; margin-inline: 14px; box-shadow: var(--lift); }
.node:first-child { margin-left: 0; }
.node:last-child { margin-right: 0; background: #fffbe6; border-color: var(--hl-line); }
.node + .node::before { content: ""; position: absolute; left: -29px; top: 50%; width: 30px; height: 2px; background-image: linear-gradient(90deg, var(--teal) 50%, transparent 50%); background-size: 8px 2px; animation: march 1.2s steps(4) infinite; }
.node .k { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.node b { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; }
.node span { font-size: 0.9rem; color: var(--ink-2); }
.node .fig { font: 600 1.6rem/1 var(--display); color: var(--ink); margin-top: 4px; }
@keyframes march { to { background-position: 8px 0; } }
@media (max-width: 1000px) {
  .pipe { grid-template-columns: 1fr; gap: 22px; }
  .node, .node:first-child, .node:last-child { margin: 0; }
  .node + .node::before { left: 28px; top: -23px; width: 2px; height: 24px; background-image: linear-gradient(var(--teal) 50%, transparent 50%); background-size: 2px 8px; animation-name: march-y; }
}
@keyframes march-y { to { background-position: 0 8px; } }
.kb-note { margin-top: 28px; font-size: 0.95rem; color: var(--ink-3); max-width: 46em; }

/* Measured: numbers that count up a frame at a time */
.measured { background: var(--paper-2); border-block: 1px solid var(--rule); }
.measured .wrap { padding-block: 64px; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 8px; }
.num { padding: 8px 26px 8px 0; border-left: 1px solid var(--rule-2); padding-left: 26px; display: flex; flex-direction: column; gap: 10px; }
.num:first-child { border-left: 0; padding-left: 0; }
.num .v { display: flex; align-items: flex-end; gap: 0.12em; font: 700 clamp(2.6rem, 5vw, 3.8rem)/1 var(--display); letter-spacing: -0.03em; }
.num .v small { font-size: 0.42em; letter-spacing: 0; color: var(--ink-3); margin-bottom: 0.08em; }
/* Departure-board digits: split flaps that clack over a few digits before they settle. */
.flap { display: inline-flex; gap: 0.08em; font: 600 0.72em/1 var(--mono); letter-spacing: 0; }
.flap b { position: relative; display: inline-grid; place-items: center; width: 1em; height: 1.34em; border-radius: 0.1em; background: linear-gradient(#2b3237 0 50%, #232a2e 50% 100%); color: #f5f2e9; font-weight: 600; box-shadow: 0 0.06em 0 rgba(18, 28, 34, 0.35); overflow: hidden; }
.flap b::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 0.025em); height: 0.05em; background: rgba(0, 0, 0, 0.6); }
.flap b.dot { width: 0.45em; }
.flap b.fl::before { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(#3b444a, #2e363b); border-bottom: 0.03em solid rgba(0, 0, 0, 0.5); z-index: 1; }
.num > span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .nums { grid-template-columns: 1fr 1fr; gap: 28px 0; } .num:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .nums { grid-template-columns: 1fr; } .num { border-left: 0; padding-left: 0; } }

/* Deployment list */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 46px; border-top: 2px solid var(--ink); }
.specs div { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.specs b { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.specs p { color: var(--ink-2); }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } }

/* Who it's for */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 46px; }
.use { border-top: 4px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.use .n { font: 500 0.8rem/1 var(--mono); color: var(--teal); }
.use h3 { font-size: 1.3rem; min-height: 2.2em; }
.use p { color: var(--ink-2); font-size: 0.98rem; }
.use .docs-list { font: 500 0.8rem/1.6 var(--mono); color: var(--ink-3); }
@media (max-width: 960px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .use h3 { min-height: 0; } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* FAQ, set like a manual's index */
.faq { margin-top: 40px; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 18px; align-items: baseline; padding: 20px 0; font: 600 1.2rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { font: 500 0.8rem/1 var(--mono); color: var(--teal); flex: none; width: 2.6em; }
.faq summary::after { content: "+"; margin-left: auto; font: 500 1.2rem/1 var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px calc(2.6em + 18px); color: var(--ink-2); max-width: 46em; }

/* Demo call to action */
.cta { padding-block: 92px; }
.cta .box { position: relative; background: var(--mat); color: #eaf2ef; border-radius: 18px; padding: 52px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; overflow: hidden;
  background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px); background-size: 24px 24px; }
.cta .sec-label { color: var(--mat-ink); }
.cta .sec-label b { color: var(--hl-solid); }
.cta .sec-label::after { background: rgba(214, 236, 226, 0.2); }
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; }
.cta p { color: #c9dbd6; margin-top: 12px; }
.cta ul { margin: 14px 0 0; padding-left: 1.1rem; color: #c9dbd6; display: flex; flex-direction: column; gap: 4px; }
.cta .side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta .btn-primary { background-color: var(--hl-solid); color: var(--ink); box-shadow: 0 2px 0 var(--hl-line); --swipe: var(--ink); }
.cta .btn-primary:hover { background-color: #ffe066; }
.cta .note { font-size: 0.88rem; color: #a9c2bc; }
@media (max-width: 820px) { .cta .box { grid-template-columns: 1fr; padding: 30px; } }

/* Product screens, in a plain browser window. */
.browser { width: 100%; max-width: 540px; justify-self: center; background: #fff; border: 1px solid #d5dbde; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(18, 28, 34, 0.04), 0 26px 50px -26px rgba(18, 28, 34, 0.4); }
.chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef1f2; border-bottom: 1px solid #dde2e4; }
.chrome i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #cfd5d8; }
.chrome span { flex: 1; min-width: 0; margin-right: 42px; text-align: center; font: 500 11.5px/1 var(--mono); color: #5f6b71; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser > .ui { border: 0; border-radius: 0; }
.tile .pic .browser { max-width: none; box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.5); }

/* The footer: brand, the site's pages, and the fine print. */
footer.foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: 56px 36px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-brand p { color: var(--ink-2); max-width: 22em; }
footer .wordmark { font-size: 1.5rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-h { font: 600 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.foot-cols a:hover, .foot-cols a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.86rem; color: var(--ink-3); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The trust and update pages, set like a chapter of a manual with its contents beside it. */
.doc-hero { padding-block: 56px 32px; border-bottom: 1px solid var(--rule); }
.doc-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
.doc-hero .lede { font-size: 1.15rem; color: var(--ink-2); margin-top: 16px; max-width: 40em; }
.doc-hero .meta { margin-top: 14px; font: 500 0.8rem/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 44px 88px; }
.doc.doc-single { grid-template-columns: minmax(0, 1fr); }
.doc-toc { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.doc-toc a { color: var(--ink-2); text-decoration: none; display: flex; gap: 12px; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc b { font: 500 0.8rem/1.6 var(--mono); color: var(--teal); }
.doc-body { max-width: 46em; display: flex; flex-direction: column; gap: 44px; }
.doc-body section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.doc-body h2 { font-size: 1.6rem; display: flex; gap: 14px; align-items: baseline; }
.doc-body h2 b { font: 500 0.95rem/1 var(--mono); color: var(--teal); }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 8px; }
.doc-scroll { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; border-top: 2px solid var(--ink); }
.doc-table th { text-align: left; font: 600 0.74rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px 10px 0; border-bottom: 1px solid var(--rule-2); }
.doc-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.doc-table td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 28px; } .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; } }

/* What's new: a changelog. */
.doc-body .log { gap: 0; }
.doc-body .log-month { display: block; font: 600 0.8rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.log-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.log-item h3 { font-size: 1.25rem; }
.log-item p { margin-top: 6px; }
.log-tag { justify-self: start; align-self: start; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-radius: 5px; }
.log-tag.new { background: #e3f1e6; color: var(--ok); }
.log-tag.improved { background: var(--teal-soft); color: var(--teal-deep); }
@media (max-width: 600px) { .log-item { grid-template-columns: 1fr; gap: 10px; } }

/* Paused (the button) or reduced motion: everything holds its finished frame. */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
.reduce *, .reduce *::before, .reduce *::after { animation: none !important; }

/* Contact: the form beside what happens next. */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; padding-block: 44px 88px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; box-shadow: var(--lift); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; width: 100%; padding: 0.7rem 0.8rem; border: 1.5px solid var(--rule-2); border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.notice { display: none; margin-bottom: 18px; padding: 16px 18px; border-radius: 12px; }
.notice.ok { background: #e3f1e6; color: #134d2b; flex-direction: column; gap: 4px; }
.notice.bad { background: #fde5e1; color: #8a2216; }
[data-state="sent"] .notice[data-show="sent"] { display: flex; }
[data-state="error"] .notice[data-show="error"], [data-state="limited"] .notice[data-show="limited"] { display: block; }
[data-state="sent"] .contact-form { display: none; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-side h2 { font-size: 1.5rem; }
.next { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.next b { color: var(--ink); }
.side-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper-2); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } .field-row { grid-template-columns: 1fr; } }
.cta .note a { color: var(--hl-solid); }

/* Login page */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(28rem, 100%); background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px -30px rgba(19, 29, 35, 0.35); }
.login h1 { font-size: 1.9rem; }
.login form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.login label { font-weight: 600; }
.login input { font: inherit; padding: 0.75rem 0.85rem; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); }
.login input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.login .btn { margin-top: 8px; justify-content: center; }
.login-error { color: #9c2a1e; font-weight: 600; }
