/* Lead Outreach Agent — public homepage.
   Sober and editorial: warm paper, one deep green, beige action buttons.
   No pills or badges; buttons are rectangles with softly rounded corners.
   Fonts are self-hosted because the CSP only allows same-origin fonts. */

@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F5F0E6;
  --paper-2: #FAF7F1;
  --white: #FFFFFF;
  --ink: #171511;
  --ink-2: #3B372F;
  --soft: #6F695D;
  --faint: #A39D90;
  --line: rgba(23, 21, 17, .10);
  --line-2: rgba(23, 21, 17, .18);
  --pine: #173B30;
  --pine-2: #22503F;
  --mint: #DCEBDD;
  --peach: #EFCFBF;
  --sand: #E8E0D0;
  --stone: #D9D3C7;
  --action: #DDD0B9;
  --action-2: #D1C2A7;
  --action-line: #C6B596;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(23, 21, 17, .04), 0 18px 40px -20px rgba(23, 21, 17, .22);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
main { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--pine); color: var(--paper); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.display { margin: 0; font: 400 clamp(48px, 7.6vw, 108px)/.96 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.display em, .h2 em { color: var(--soft); }
.display-sm { font-size: clamp(44px, 6.2vw, 88px); }
.h2 { margin: 0; font: 400 clamp(36px, 4.6vw, 62px)/1.03 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.h3 { margin: 0; font: 400 clamp(26px, 2.8vw, 36px)/1.1 var(--serif); letter-spacing: -0.012em; }
.h3 a { text-decoration: none; }
.h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); }
.soft { color: var(--soft); }
.on-dark { color: var(--paper); }
.on-dark-soft { max-width: 600px; margin: 22px 0 0; color: rgba(245, 240, 230, .72); }

/* ---------- Buttons: rectangles with rounded corners ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--action); color: var(--ink); border-color: var(--action-line); }
.btn-primary:hover { background: var(--action-2); border-color: var(--action-line); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- Nav: a short bar, links live in a dropdown ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav-wrap { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.nav-bar {
  pointer-events: auto; display: flex; align-items: center; gap: 18px; height: 52px; padding: 0 8px 0 16px;
  background: rgba(250, 247, 241, .86); border: 1px solid var(--line); border-radius: 12px;
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled .nav-bar { box-shadow: var(--shadow); }
.nav { transition: transform .4s var(--ease), opacity .3s var(--ease); }
.nav.is-tucked { transform: translateY(calc(-100% - 16px)); opacity: 0; }
.nav.is-tucked .nav-bar { pointer-events: none; }
.nav.is-tucked:focus-within { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--pine); flex-shrink: 0; }
.brand-mark { width: 20px; height: 20px; }
.brand-name { font: 400 20px/1 var(--serif); color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: border-color .2s var(--ease), color .2s var(--ease);
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--line-2); color: var(--ink); }
.menu-chev { transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-chev { transform: rotate(180deg); }
.menu-lines { display: none; position: relative; width: 18px; height: 10px; }
.menu-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-lines i:first-child { top: 1px; } .menu-lines i:last-child { bottom: 1px; }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }
.nav .btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

.menu {
  pointer-events: auto; position: absolute; left: 50%; top: calc(100% + 8px); width: 280px; transform: translateX(-50%);
  display: grid; padding: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.menu[hidden] { display: none; }
.menu > a { padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.menu > a:hover { background: rgba(23, 21, 17, .05); color: var(--ink); }
.lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 12px 12px 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.lang select {
  appearance: none; -webkit-appearance: none; height: 32px; max-width: 140px; padding: 0 26px 0 10px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236F695D' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center;
  font: 500 13px var(--sans); color: var(--ink-2);
}
.menu-auth { display: none; }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(118px, 15vh, 150px) var(--gutter) 0; overflow: hidden; }
.hero-copy { max-width: var(--maxw); margin: 0 auto; }
.hero .display { font-size: clamp(54px, 10.6vw, 164px); line-height: .9; letter-spacing: -0.035em; text-wrap: initial; }
.hero-line { display: block; padding-bottom: .06em; margin-bottom: -.06em; }
/* P-06: the headline is readable from the first frame; it only drifts into place. */
.hero-line > span { display: inline-block; transform: translateY(.12em); transition: transform .6s var(--ease); }
.hero-line + .hero-line > span { font-style: italic; color: var(--soft); transition-delay: .12s; }
.hero.is-in .hero-line > span { transform: none; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(28px, 4vh, 44px); }
.hero .lede { margin: 0; max-width: 600px; }
.hero-row, .hero .flow { transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s; }
.hero.is-split:not(.is-in) .hero-row, .hero.is-split:not(.is-in) .flow { opacity: .85; transform: translateY(8px); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero .hero-cta { margin: 0; flex-shrink: 0; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--soft); }
.hero-note a { color: var(--ink); }

.flow { position: relative; text-align: center; max-width: 1240px; margin: clamp(64px, 9vh, 96px) auto 0; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-lines path { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.6s var(--ease); }
.flow.is-on .flow-lines path { stroke-dashoffset: 0; }
.flow-lines path:nth-child(2) { transition-delay: .1s; } .flow-lines path:nth-child(3) { transition-delay: .2s; }
.flow-lines path:nth-child(4) { transition-delay: .3s; } .flow-lines path:nth-child(5) { transition-delay: .4s; }
.flow-pulses circle { fill: var(--pine); opacity: 0; }
.flow-nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.flow-goal {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: min(640px, 92%); padding: 18px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font: 400 clamp(19px, 2vw, 26px)/1.3 var(--serif); color: var(--ink);
}
.caret { display: inline-block; width: 1.5px; height: .95em; margin-left: 3px; vertical-align: -2px; background: var(--pine); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.flow-channels {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: relative; margin-top: 6px;
}
.flow-channels li { display: grid; gap: 4px; justify-items: center; padding: 0 8px; }
.flow-channels b { font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--serif); }
.flow-channels span { min-height: 2.8em; max-width: 190px; font-size: 13.5px; line-height: 1.4; color: var(--soft); transition: opacity .4s var(--ease), color .4s var(--ease); }
.flow-channels span.is-live { color: var(--ink); }
.flow-channels span.is-swap { opacity: 0; }

/* ---------- JARVIS vs by hand ---------- */

@keyframes fill { 0% { width: 0; } 30% { width: 100%; } 100% { width: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Speed: by hand vs JARVIS ----------
   Full-bleed pine band. On desktop it pins while you scroll: JARVIS starts
   alone, the by-hand card slides in beside it, then JARVIS grows over it.
   home.js sets --j-l, --j-r, --m-o and --m-x; the defaults are the split. */
.speed { position: relative; margin-top: clamp(96px, 12vw, 160px); background: var(--pine); color: var(--paper); }
.speed-sticky { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.speed-head { max-width: 760px; }
.speed .h2 em { color: rgba(245, 240, 230, .62); }
.speed-stage { position: relative; height: clamp(420px, 56vh, 560px); margin-top: clamp(32px, 4vw, 48px); }
.speed-card { position: absolute; top: 0; bottom: 0; margin: 0; overflow: hidden; border-radius: 22px; }
.speed-manual { left: 0; width: calc(30% - 12px); display: flex; flex-direction: column; padding: 24px 22px 20px; background: rgba(245, 240, 230, .05); border: 1px solid rgba(245, 240, 230, .16); opacity: var(--m-o, 1); transform: translateX(var(--m-x, 0px)); }
.speed-jarvis { left: var(--j-l, 30%); right: var(--j-r, 0%); display: flex; flex-direction: column; align-items: center; padding: 24px 28px 22px; background: radial-gradient(80% 90% at 50% 45%, #1C1530 0%, #0B0A10 74%); border: 1px solid rgba(226, 170, 110, .22); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .7); }
.speed-cap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; text-align: center; }
.speed-cap span { font-size: 13px; letter-spacing: .02em; color: rgba(245, 240, 230, .66); }
.speed-cap strong { font: 400 clamp(40px, 4vw, 56px)/1 var(--serif); color: var(--paper); font-variant-numeric: tabular-nums; }
.speed-cap small { font-size: 13px; color: rgba(245, 240, 230, .6); }
.speed .footnote { margin: 22px 0 0; font-size: 12.5px; color: rgba(245, 240, 230, .5); }
.speed .footnote a { color: rgba(245, 240, 230, .82); }

/* By hand: tabs, a search box, a spreadsheet filled one cell at a time, a slow clock. */
.hand { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; margin-top: 22px; font-size: 12px; color: rgba(245, 240, 230, .78); }
.hand-tabs { display: flex; gap: 4px; overflow: hidden; }
.hand-tabs i { flex: 0 1 auto; min-width: 0; padding: 5px 8px; overflow: hidden; border-radius: 7px 7px 0 0; background: rgba(245, 240, 230, .06); font-style: normal; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; color: rgba(245, 240, 230, .5); transition: background-color .3s, color .3s; }
.hand-tabs i.is-on { background: rgba(245, 240, 230, .18); color: var(--paper); }
.hand-bar { display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 8px; background: rgba(245, 240, 230, .08); white-space: nowrap; overflow: hidden; }
.hand-caret { width: 1.5px; height: 14px; margin-left: 2px; background: var(--paper); animation: blink 1s steps(1) infinite; }
.hand-sheet { display: grid; border: 1px solid rgba(245, 240, 230, .14); border-radius: 8px; overflow: hidden; }
.hand-row { display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 30px; border-top: 1px solid rgba(245, 240, 230, .1); }
.hand-row:first-child { border-top: 0; }
.hand-row span { min-width: 0; padding: 7px 8px; overflow: hidden; border-left: 1px solid rgba(245, 240, 230, .1); white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.hand-row span:first-child { border-left: 0; }
.hand-th span { color: rgba(245, 240, 230, .5); font-weight: 500; }
.hand-row span.is-typing { background: rgba(231, 164, 96, .12); box-shadow: inset 0 0 0 1px rgba(231, 164, 96, .55); }
.hand-clock { margin: auto 0 0; font-size: 12px; color: rgba(245, 240, 230, .6); }
.hand-clock span { font: 400 30px/1 var(--serif); color: var(--paper); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* JARVIS: the orb behind a fast stream of finished leads. */
.speed-jarvis .orb { position: absolute; left: 50%; top: 50%; width: min(520px, 90%); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .9; }
.auto-feed { position: relative; z-index: 1; width: min(520px, 100%); margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.auto-feed li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(20, 16, 30, .72); border: 1px solid rgba(245, 240, 230, .1); backdrop-filter: blur(6px); font-size: 13px; color: var(--paper); animation: feed-in .35s var(--ease) both; }
.auto-feed li small { color: rgba(245, 240, 230, .55); }
.auto-feed li em { font-style: normal; font-size: 11.5px; color: #F2C48F; }
@keyframes feed-in { from { opacity: 0; transform: translateY(10px); } }
.auto-count { position: relative; z-index: 1; margin: 12px 0 0; font-size: 13px; color: rgba(245, 240, 230, .66); text-align: center; }
.auto-count strong { font: 400 22px/1 var(--serif); color: var(--paper); margin-right: 4px; font-variant-numeric: tabular-nums; }

/* Pinned scroll version (desktop with motion). */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .speed.is-pinned { height: 320vh; }
  .speed.is-pinned .speed-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 84px; padding-bottom: 32px; }
}
@media (max-width: 860px) {
  .speed-stage { height: auto; display: grid; gap: 12px; }
  .speed-card { position: relative; left: auto; right: auto; width: auto; }
  .speed-manual { min-height: 360px; }
  .speed-jarvis { min-height: 460px; }
  .auto-feed li { grid-template-columns: 1fr auto; }
  .auto-feed li > small, .auto-feed li:nth-child(n+4) { display: none; }
}

/* ---------- Scroll-scale mission control ---------- */
.scale { position: relative; height: 340vh; margin-top: clamp(40px, 6vw, 80px); }
.scale-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scale-title { position: absolute; left: 0; right: 0; top: clamp(96px, 14vh, 130px); max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.window {
  position: absolute; left: 50%; top: 50%; width: min(1160px, calc(100vw - 2 * var(--gutter)));
  display: flex; flex-direction: column; aspect-ratio: 16 / 10;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--win-r, 16px); box-shadow: var(--shadow);
  overflow: hidden; transform: translate(-50%, -50%); transform-origin: 50% 50%;
}
/* Only while it moves: a will-change layer keeps its first raster, so text
   blurs once scaled up. Dropping it at rest lets the browser redraw it sharp. */
.window.is-moving { will-change: transform; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #F2EDE3; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DAD2C2; }
.window-bar span { margin: 0 auto; font-size: 12px; color: var(--soft); }
.window-body { flex: 1; display: grid; grid-template-columns: 180px 1fr 280px; min-height: 0; }
.app-nav { display: flex; flex-direction: column; gap: 2px; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--paper-2); font-size: 13.5px; color: var(--soft); }
.app-nav b { font: 400 22px var(--serif); color: var(--ink); margin: 0 8px 14px; letter-spacing: .02em; }
.app-nav small { margin: 16px 8px 4px; font-size: 11.5px; color: var(--faint); }
.app-nav span { padding: 7px 8px; border-radius: 6px; }
.app-nav .on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 21, 17, .08); }
.app-main { padding: 24px 28px; display: flex; flex-direction: column; }
.app-mission { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.app-mission small, .app-side small { font-size: 12px; color: var(--soft); }
.app-mission p { margin: 4px 0 14px; font: 400 26px/1.2 var(--serif); }
.app-progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.app-progress i { display: block; width: 44%; height: 100%; background: var(--pine); }
.app-plan { list-style: none; margin: 0; padding: 0; counter-reset: plan; }
.app-plan li { counter-increment: plan; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.app-plan li::before { content: counter(plan, decimal-leading-zero); font-size: 12px; color: var(--faint); }
.app-plan em { font-style: normal; font-size: 12.5px; color: var(--soft); }
.app-plan .done span { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--line-2); }
.app-plan .now span { color: var(--ink); font-weight: 600; }
.app-plan .now em { color: var(--pine); }
.app-side { padding: 24px 20px; border-left: 1px solid var(--line); background: var(--paper-2); display: grid; align-content: start; gap: 10px; }
.app-approve { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.app-approve p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.4; }
.app-approve span { display: inline-block; padding: 6px 12px; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 600; }
.app-feed { margin-top: auto; padding-top: 18px; }
.app-feed small { font-size: 12px; color: var(--soft); }
.app-feed p { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.app-feed em { font-style: normal; font-size: 12.5px; color: var(--faint); }
.scale-caption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 56px); margin: 0 auto; max-width: 560px; padding: 0 var(--gutter); text-align: center; color: var(--soft); opacity: 0; transition: opacity .6s var(--ease); }
.scale-caption.is-on { opacity: 1; }

/* ---------- Video synced with steps ---------- */
.sync { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { width: 100%; display: grid; grid-template-columns: 44px 1fr; column-gap: 6px; padding: 20px 4px 18px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.steps li:last-child .step { border-bottom: 1px solid var(--line); }
.step-n { grid-row: span 3; padding-top: 8px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.step-t { font: 400 30px/1.1 var(--serif); color: var(--faint); transition: color .35s var(--ease); }
.step:hover .step-t { color: var(--soft); }
.step.is-active .step-t { color: var(--ink); }
.step-d { max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; color: var(--soft); transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s var(--ease); }
.step.is-active .step-d { max-height: 120px; opacity: 1; margin-top: 8px; }
.step-bar { height: 1.5px; margin-top: 14px; background: var(--line); opacity: 0; }
.step.is-active .step-bar { opacity: 1; }
.step-bar i { display: block; width: 0; height: 100%; background: var(--ink); }
.player { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.player-video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Features ---------- */
.feat { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: start; }
.feat-visual { position: sticky; top: 110px; aspect-ratio: 1; max-height: calc(100vh - 150px); border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.art { position: absolute; inset: 0; display: grid; place-items: center; padding: 9%; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.art.is-active { opacity: 1; transform: none; }
.feat-list { display: grid; }
.feat-item { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.feat-item.is-active { opacity: 1; }
.feat-item h3 { margin: 0 0 14px; font: 400 clamp(32px, 3.3vw, 46px)/1.06 var(--serif); letter-spacing: -0.015em; }
.feat-item p { margin: 0; max-width: 460px; font-size: 17px; color: var(--ink-2); }

.art-list, .art-thread, .art-inbox { width: 100%; display: grid; gap: 0; }
.art-list p, .art-inbox p { margin: 0; display: grid; gap: 2px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.art-list p:first-child, .art-inbox p:first-child { border-top: 1px solid var(--line); }
.art-list b, .art-inbox b { font: 400 22px/1.2 var(--serif); }
.art-list span, .art-inbox span { font-size: 14px; color: var(--soft); }
.art-muted b, .art-muted span { color: var(--faint); }
.art-thread { gap: 12px; }
.art-mail { margin: 0; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); }
.art-mail b { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.art-reply { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.art-reply b { color: rgba(245, 240, 230, .7); }
.art-call { text-align: center; display: grid; gap: 22px; justify-items: center; }
.art-call p { margin: 0; max-width: 360px; font: 400 26px/1.25 var(--serif); }
.art-call span { font-size: 13px; color: var(--soft); }
.call-card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-width: 260px; padding: 16px 20px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.call-card b { font: 400 22px/1.2 var(--serif); }
.call-card em { grid-column: 2; font-style: normal; font-size: 13px; color: var(--soft); }
.call-live { grid-row: span 2; position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--pine); }
.call-live::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--pine); animation: live 1.8s var(--ease) infinite; }
@keyframes live { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.art-langs { text-align: center; }
.art-lang { margin: 0; font: 400 clamp(46px, 5.6vw, 76px)/1 var(--serif); transition: opacity .35s; }
.art-line { max-width: 380px; margin: 22px auto 28px; font-size: 15.5px; color: var(--ink-2); transition: opacity .35s; }
.art-langs.is-swap .art-lang, .art-langs.is-swap .art-line { opacity: 0; }
.art-tones { margin: 0; display: inline-flex; gap: 26px; font-size: 14px; color: var(--faint); }
.art-tones .on { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Case studies ---------- */
.cases { max-width: none; padding-left: 0; padding-right: 0; }
.cases .section-head, .cases-all { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.cases-ctrl { display: flex; gap: 8px; }
.arrow { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; font-size: 18px; cursor: pointer; transition: border-color .2s; }
.arrow:hover { border-color: var(--ink); }
.cases-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(940px, 86vw); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.cases-track::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; display: grid; grid-template-columns: 1.08fr 1fr; min-height: 440px; border-radius: 20px; overflow: hidden; }
.case-a { background: var(--mint); } .case-b { background: var(--peach); } .case-c { background: var(--sand); } .case-d { background: var(--pine); color: var(--paper); }
.case-art { position: relative; display: grid; place-items: center; padding: 32px; overflow: hidden; }
.case-body { display: flex; flex-direction: column; justify-content: center; padding: 40px 40px 40px 12px; }
.case-kicker { margin: 0 0 12px; font-size: 13px; opacity: .6; }
.case h3 { margin: 0 0 14px; font: 400 clamp(30px, 3vw, 40px)/1.05 var(--serif); letter-spacing: -0.012em; }
.case-body p { margin: 0; font-size: 15.5px; opacity: .85; }
.case-body .case-by { margin-top: 26px; padding-top: 16px; display: grid; gap: 2px; border-top: 1px solid rgba(23, 21, 17, .14); font-size: 13.5px; opacity: 1; }
.case-d .case-by { border-color: rgba(245, 240, 230, .18); }
.case-by b { font-weight: 600; }
.case-by span { opacity: .65; }
.case-link { align-self: flex-start; margin-top: 20px; font-size: 14.5px; font-weight: 600; text-underline-offset: 5px; }
.cases-all { margin-top: 28px; }
.cases-all a { font-weight: 600; text-underline-offset: 5px; }

/* Case pictures: small screens of the work, animated on a loop */
.shot { width: 100%; max-width: 420px; background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: 0 1px 2px rgba(23, 21, 17, .06), 0 24px 44px -24px rgba(23, 21, 17, .35); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F2EDE3; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #DAD2C2; }
.shot-bar span { margin-left: 8px; font-size: 11.5px; color: var(--soft); }
.shot-body { position: relative; min-height: 262px; padding: 16px 18px 18px; }
.shot-title { margin: 0 0 8px; font: 400 19px/1.2 var(--serif); opacity: 1; }
.shot-row { margin: 0; display: grid; grid-template-columns: 1fr auto 16px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; opacity: 0; animation: row 9s var(--ease) infinite; }
.shot-row b { font-weight: 550; }
.shot-row span { color: var(--soft); font-size: 12px; }
.shot-row.miss b, .shot-row.miss span { color: var(--faint); }
.shot-row .ok { width: 14px; height: 14px; border-radius: 50%; background: var(--pine); position: relative; }
.shot-row .ok::after { content: ""; position: absolute; left: 4.6px; top: 2.6px; width: 3.5px; height: 6.5px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.r2 { animation-delay: .5s; } .r3 { animation-delay: 1s; } .r4 { animation-delay: 1.5s; }
@keyframes row { 0% { opacity: 0; transform: translateY(6px); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.shot-mail, .shot-slot { position: absolute; right: 14px; bottom: 14px; width: 74%; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; animation: pop 9s var(--ease) infinite; animation-delay: 2.6s; }
.shot-mail small, .shot-slot small { display: block; margin-bottom: 4px; font-size: 11px; color: var(--soft); }
.shot-mail p, .shot-slot p { margin: 0; font-size: 13px; opacity: 1; }
.shot-slot { border-left: 3px solid var(--pine); animation-delay: 4.6s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(14px); } 8%, 60% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: none; } }
.shot-call { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; opacity: 1; }
.shot-call b { font: 400 19px/1.2 var(--serif); }
.shot-call em { font-style: normal; font-size: 12px; color: var(--soft); }
.shot-call .call-live { grid-row: auto; }
.bubble { max-width: 82%; margin: 0 0 8px; padding: 8px 11px; border-radius: 10px; background: #F3EEE5; font-size: 12.5px; line-height: 1.4; opacity: 0; animation: row 9s var(--ease) infinite; }
.bubble.them { margin-left: auto; background: var(--pine); color: var(--paper); }
.b1 { animation-delay: .4s; } .b2 { animation-delay: 1.6s; } .b3 { animation-delay: 2.8s; }
.shot-chart { display: grid; gap: 10px; margin-top: 12px; }
.shot-chart p { margin: 0; display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; font-size: 12.5px; opacity: 1; }
.shot-chart i { display: block; height: 12px; border-radius: 3px; background: var(--pine); transform-origin: 0 50%; animation: bar 7s var(--ease) infinite; }
.shot-chart .w1 { width: 88%; } .shot-chart .w2 { width: 72%; animation-delay: .2s; } .shot-chart .w3 { width: 54%; animation-delay: .4s; } .shot-chart .w4 { width: 64%; animation-delay: .6s; } .shot-chart .w5 { width: 80%; animation-delay: .8s; }
@keyframes bar { 0% { transform: scaleX(0); } 18%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.shot-note { margin: 16px 0 0; font-size: 11.5px; color: var(--soft); opacity: 1; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product { display: flex; flex-direction: column; min-height: 300px; padding: 28px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .25s var(--ease), background-color .25s var(--ease), opacity .9s var(--ease), transform .9s var(--ease); }
.product:hover { border-color: var(--line-2); background: var(--white); }
.product svg { width: 40px; height: 40px; fill: none; stroke: var(--pine); stroke-width: 1.5; stroke-linecap: round; }
.product h3 { margin: 26px 0 10px; font: 400 30px/1.05 var(--serif); letter-spacing: -0.01em; }
.product p { margin: 0; font-size: 15px; color: var(--ink-2); }
.product span { margin-top: auto; padding-top: 22px; font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Support assistant ---------- */
.ask { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.ask-copy .soft { max-width: 420px; margin: 20px 0 0; font-size: 17px; }
.ask-list { list-style: none; margin: 30px 0 0; padding: 0; }
.ask-list button { width: 100%; padding: 15px 2px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); font-size: 15.5px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.ask-list li:last-child button { border-bottom: 1px solid var(--line); }
.ask-list button::after { content: "\2192"; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.ask-list button:hover::after { transform: translateX(4px); color: var(--ink); }
.chat { display: flex; flex-direction: column; height: 520px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat-head p { margin: 0; display: grid; line-height: 1.35; }
.chat-head b { font-weight: 600; }
.chat-head span { font-size: 12.5px; color: var(--soft); }
.chat-orb { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFD7A6, #E7A460 40%, #8A55C8 85%); }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.msg { margin: 0; max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: #F3EEE5; }
.msg-user { align-self: flex-end; background: var(--pine); color: var(--paper); }
.msg-wait { color: var(--soft); }
.msg a { color: inherit; }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper-2); font: 15px var(--sans); color: var(--ink); }
.chat-form input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.chat-form .btn { min-height: 44px; }

/* ---------- Research, final, footer ---------- */
.home-research-band { max-width: var(--maxw); margin: clamp(96px, 11vw, 140px) auto 0; padding: 40px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-research-band .soft { margin: 10px 0 0; }
.final { max-width: 1100px; margin: 0 auto; padding: clamp(110px, 15vw, 190px) var(--gutter); text-align: center; }
.footer { background: var(--ink); color: rgba(245, 240, 230, .7); padding: 72px var(--gutter) 32px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 2.4fr; gap: 48px; }
.footer-brand .brand-name { color: var(--paper); font-size: 28px; }
.footer-brand p { margin: 16px 0 0; max-width: 300px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer-cols h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: rgba(245, 240, 230, .45); }
.footer-cols a { display: block; padding: 5px 0; font-size: 14px; text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer-bottom { max-width: var(--maxw); margin: 56px auto 0; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(245, 240, 230, .12); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .window-body { grid-template-columns: 170px 1fr; }
  .app-side { display: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .hero-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .nav-wrap { width: 100%; }
  .nav-bar { height: 52px; justify-content: space-between; }
  .nav-actions { display: none; }
  .menu-btn { border: 0; padding: 0 8px; }
  .menu-word, .menu-chev { display: none; }
  .menu-lines { display: block; }
  .menu { left: 0; right: 0; width: auto; transform: none; padding: 10px; }
  .menu > a { padding: 13px 10px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu-auth { display: grid; gap: 10px; margin-top: 12px; }
  .lang { border-top: 0; margin-top: 0; }
  .hero { padding-top: 132px; }
  .flow-svg { display: none; }
  .flow { margin-top: 48px; }
  .flow-goal { position: static; transform: none; width: 100%; font-size: 21px; text-align: left; }
  .flow-channels { margin-top: 20px; grid-template-columns: 1fr; text-align: left; }
  .flow-channels li { grid-template-columns: 110px 1fr; justify-items: start; align-items: baseline; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .flow-channels span { min-height: 0; max-width: none; }
  .player { order: -1; }
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .app-nav { display: none; }
  .app-plan li:nth-child(n+4) { display: none; }
  .app-mission p { font-size: 21px; }
  .scale { height: 240vh; }
  .window { aspect-ratio: auto; }
  .app-feed { display: none; }
  .case { grid-template-columns: 1fr; min-height: 0; }
  .case-art { padding: 24px 20px 8px; }
  .case-body { padding: 24px 24px 28px; }
  .shot-body { min-height: 236px; }
  .feat-visual { top: 80px; z-index: 1; aspect-ratio: auto; height: min(46vh, 360px); box-shadow: var(--shadow); }
  .art { padding: 6%; }
  .art > * { transform: scale(.86); }
  .feat-item { min-height: 62vh; justify-content: flex-end; padding-bottom: 8vh; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .home-research-band { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .chat { height: 460px; }
}
@media (max-width: 520px) {
  .btn { width: 100%; }
  .hero-cta, .hero .hero-cta { flex-direction: column; width: 100%; }
  .products { grid-template-columns: 1fr; }
  .product { min-height: 0; }
  .flow-channels li { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-line > span { transform: none; }
  .shot-row, .bubble, .shot-mail, .shot-slot { animation: none; opacity: 1 !important; }
}

/* ---------- Email unsubscribe page ---------- */
.unsub { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); }
.unsub-card { width: min(480px, 100%); padding: 40px 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.unsub-card .soft { margin: 14px 0 26px; font-size: 16px; }
.unsub-card form { margin: 0; }

/* Scroll-scrubbed product video: the section pins while scroll drives the timeline. */
.sync-track.is-scrubbing { height: 360vh; position: relative; }
.sync-track.is-scrubbing .sync { position: sticky; top: max(80px, calc(50vh - 250px)); }
.scrub-progress { position: absolute; left: 18px; right: 18px; bottom: 14px; height: 2px; background: rgba(23, 21, 17, .12); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.sync-track.is-scrubbing .scrub-progress { opacity: 1; }
.scrub-progress i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* Reply ribbon (Wispr-style): pinned while scroll moves the text through the agents */
.ribbon-track { height: 260vh; position: relative; }
.ribbon-stage { position: sticky; top: max(64px, calc(50vh - 330px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ribbon-head { text-align: center; margin: 0 auto; }
.ribbon-lede { max-width: 560px; margin: 14px auto 0; color: var(--soft); font-size: 17px; line-height: 1.55; }
.ribbon-section { overflow: hidden; overflow: clip; }
@media (max-width: 860px) {
  .ribbon-track { height: auto; }
  .ribbon-stage { position: static; }
}
@media (prefers-reduced-motion: reduce) { .ribbon-track { height: auto; } .ribbon-stage { position: static; } }

/* One reply, everything handled: fibres, the JARVIS core and what follows */
.flow-art { position: relative; width: 100%; max-width: 1200px; margin: 8px auto 0; height: clamp(420px, 44vw, 520px); }
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flow-card, .flow-agents li, .flow-outs li { position: absolute; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.flow-in { width: min(290px, 26%); padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); opacity: 0; transform: translateX(-10px); }
.flow-in.is-on { opacity: 1; transform: none; }
.flow-in small { display: block; color: var(--soft); font-size: 12px; margin-bottom: 6px; }
.flow-in p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.flow-agents, .flow-outs { list-style: none; margin: 0; padding: 0; }
.flow-agents li { transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; gap: 2px; width: 150px; opacity: .35; }
.flow-agents li b { font: 400 22px/1 var(--serif); color: var(--ink); }
.flow-agents li.is-above { transform: translate(-50%, calc(-100% - 10px)); }
.flow-agents li.is-below { transform: translate(-50%, 10px); }
.flow-agents li span { font-size: 12px; color: var(--soft); line-height: 1.35; }
.flow-agents li.is-on { opacity: .75; }
.flow-agents li.is-current { opacity: 1; }
.flow-agents li.is-warn.is-current b { color: #8A5A2B; }
.flow-outs li { width: min(250px, 24%); padding: 10px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 2px; opacity: 0; transform: translateX(10px); }
.flow-outs li b { font-size: 14px; font-weight: 600; color: var(--pine); }
.flow-outs li span { font-size: 12.5px; color: var(--soft); }
.flow-outs li.is-on { opacity: 1; transform: none; }
@media (max-width: 759px) {
  .flow-art { height: 860px; }
  .flow-in { width: 100%; }
  .flow-agents li { width: 46%; }
  .flow-agents li b { font-size: 19px; }
  .flow-agents li span { font-size: 11.5px; }
  .flow-outs li { width: 76%; }
}
@media (prefers-reduced-motion: reduce) { .flow-in, .flow-agents li, .flow-outs li { opacity: 1; transform: none; } .flow-agents li.is-above { transform: translate(-50%, calc(-100% - 10px)); } .flow-agents li.is-below { transform: translate(-50%, 10px); } }

/* ---------- Sign in / sign up dialog ---------- */
.auth { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.auth[hidden] { display: none; }
.auth-open, .auth-open body { overflow: hidden; }
.auth-scrim { position: absolute; inset: 0; background: rgba(23, 21, 17, .38); backdrop-filter: blur(6px); }
.auth-card { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 32px 28px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(23, 21, 17, .45); animation: auth-in .35s var(--ease); }
@keyframes auth-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.auth-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.auth-x:hover { background: var(--sand); color: var(--ink); }
.auth-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; color: var(--soft); }
.auth-title { margin: 0; font: 400 34px/1.05 var(--serif); color: var(--ink); }
.auth-sub { margin: 10px 0 20px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; background: var(--sand); border-radius: 10px; }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--soft); font: 500 14px var(--sans); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 21, 17, .08); }
.auth-social { display: grid; gap: 8px; }
.auth-social[hidden], .auth-provider[hidden] { display: none; }
.auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.auth-provider:hover { border-color: var(--ink-2); }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; font-size: 12px; color: var(--faint); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 12px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.auth-opt { font-weight: 400; color: var(--faint); }
.auth-form input:not([type="checkbox"]) { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--ink); font: 15px var(--sans); }
.auth-form input:focus-visible { outline: 2px solid var(--pine); outline-offset: 1px; }
.auth-form .auth-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; color: var(--soft); }
.auth-check input { margin-top: 3px; accent-color: var(--pine); }
.auth-check a { color: var(--ink); }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-link { justify-self: center; border: 0; background: none; color: var(--soft); font: 13.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: #9A3B24; }
.auth-msg.is-ok { color: var(--pine); }
#questions { scroll-margin-top: 84px; }

/* Phones: nothing may widen the page (a wider page pushed the Menu, and
   Sign in with it, off-screen), and Sign in stays in the header (C-09). */
html, body { overflow-x: clip; }
@media (max-width: 860px) {
  .sync { grid-template-columns: minmax(0, 1fr); }
  .sync > * { min-width: 0; }
  .nav-bar { gap: 12px; }
  .nav-actions { display: flex; margin-left: auto; order: 2; }
  .nav-actions .btn { display: none; }
  .menu-btn { order: 3; }
}
.case { max-width: 100%; }
.case > *, .case-art > *, .case-body > * { min-width: 0; }
.shot, .shot-call { max-width: 100%; overflow-wrap: anywhere; }
