/* StanAutomate v7. Distinct bands, one cinematic move, then calm.
   Modelled on Mercury (stanautomate/research/landing-study-2026-10-30.md).
   Performance rule for this file: only transform and opacity ever animate,
   no blend modes, no large filters, no backdrop blur over the page. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F6F5F1;  --paper-2: #EEECE6;  --card: #FFFFFF;
  --ink: #10181D;    --ink-2: #3D4A50;    --ink-3: #5F6C71;   --line: rgba(16, 24, 29, .1);
  --night: #0C1317;  --night-2: #141D22;  --night-3: #1B262C;
  --on-night: #EEF1EF; --on-night-2: #A9B6B6; --line-n: rgba(238, 241, 239, .12);
  --teal: #2DBFAA;   --teal-deep: #0B6B5F;
  --amber: #F2A93B;  --amber-deep: #8F5508;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(16, 24, 29, .06), 0 12px 32px -12px rgba(16, 24, 29, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 480; letter-spacing: -0.022em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--night); }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--card); color: var(--ink); padding: .6rem .9rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 500 .98rem/1 var(--font); letter-spacing: -0.005em; white-space: nowrap;
  padding: .9rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #22323A; }
.btn:active { transform: scale(.98); }
.btn--sm { font-size: .9rem; padding: .62rem 1rem; }
.btn--glass { background: rgba(255, 255, 255, .72); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(16, 24, 29, .08); }
.btn--glass:hover { background: #fff; }
.band--dark .btn { background: #fff; color: var(--ink); }
.band--dark .btn:hover { background: #E3E8E6; }
.btn:focus-visible { border-radius: 999px; }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: currentColor; }
.link:hover { text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 2rem; padding-inline: var(--gutter);
  color: var(--ink); background: rgba(246, 245, 241, .8); box-shadow: 0 1px 0 rgba(16, 24, 29, 0);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 24px; width: auto; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .92rem; }
.nav__links a { text-decoration: none; opacity: .82; }
.nav__links a:hover { opacity: 1; }
.nav.is-solid { background: rgba(246, 245, 241, .94); box-shadow: 0 1px 0 var(--line); }
.nav.is-dark { color: var(--on-night); background: rgba(12, 19, 23, .9); box-shadow: 0 1px 0 var(--line-n); }
.nav.is-dark .nav__logo { filter: brightness(0) invert(1); }
.nav.is-dark .btn { background: #fff; color: var(--ink); }

/* ------------------------------------------- 1 + 2: office, then laptop -- */
.zoom { position: relative; height: 420vh; background: var(--night); }
.zoom__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.zoom__photo { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.zoom__photo img { width: 100%; height: 100%; object-fit: cover; }
.zoom__shade { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; will-change: opacity; }

.hero {
  position: absolute; left: var(--gutter); top: clamp(6.5rem, 16vh, 10rem);
  width: min(42rem, 54vw); padding: clamp(1.25rem, 2.4vw, 2.1rem);
  text-align: left; border-radius: 18px;
  background: linear-gradient(100deg, rgba(246, 245, 241, .98), rgba(246, 245, 241, .94) 68%, rgba(246, 245, 241, .78));
  box-shadow: 0 18px 45px -30px rgba(12, 19, 23, .75);
  will-change: opacity, transform;
}
.hero__title { font-size: clamp(2.3rem, 1.4rem + 2.7vw, 3.6rem); line-height: 1.06; font-weight: 470; letter-spacing: -0.03em; color: var(--ink); }
.hero__sub { margin: 1.1rem 0 0; max-width: 34rem; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.55; color: #17242A; }
.hero__actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
/* the laptop's screen, lifted off the photograph */
.win {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity;
  width: var(--win-w, 1200px); height: var(--win-h, 720px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #0E171C; color: #DCE6E5; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 120px -30px rgba(0, 0, 0, .7);
  opacity: 0;
}
.win__bar { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.1rem; border-bottom: 1px solid rgba(220, 230, 229, .1); font: 500 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(220, 230, 229, .18); }
.win__title { color: #DCE6E5; }
.win__tag { margin-left: auto; color: #8DA2A2; font-size: .72rem; }
.win__body { flex: 1; display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); gap: 1.4rem; padding: 1.4rem; min-height: 0; }
.inbox { display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
.inbox__label { font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8DA2A2; }
.sheet { min-width: 0; display: flex; flex-direction: column; }
.sheet__note { margin-top: auto; padding-top: .8rem; font: 500 .8rem var(--mono); color: #8DA2A2; min-height: 1.4em; }

/* the document on the screen: same markup page.js renders and parses */
.doc { background: #FBFAF6; color: #1C252A; border-radius: 4px; padding: 1.1rem 1.2rem; font-size: .8rem; line-height: 1.35; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.doc.is-leaving { opacity: 0; transform: translateY(-8px); }
.doc .doc-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #1C252A; padding-bottom: .55rem; margin-bottom: .6rem; }
.doc .doc-kind { font-weight: 650; font-size: 1.12em; }
.doc .doc-from { font-size: .78em; color: #5D6B70; text-align: right; line-height: 1.3; }
.doc .line { display: grid; grid-template-columns: 7.6em 1fr; gap: .4em; padding: .2em 0; }
.doc .k { color: #5D6B70; }
.doc .v { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc .blank { display: inline-block; width: 6em; border-bottom: 1px dashed #8A979C; height: .9em; }
.doc .doc-foot { margin-top: .7rem; font-size: .68em; color: #6B787D; }
.doc mark { background: transparent; color: inherit; border-radius: 2px; padding: 0 .12em; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.doc mark.is-lit { background: rgba(45, 191, 170, .28); box-shadow: inset 0 -2px 0 var(--teal); }
.doc mark.is-missing { display: inline-block; min-width: 6em; }
.doc mark.is-missing.is-lit { background: rgba(242, 169, 59, .32); box-shadow: inset 0 -2px 0 var(--amber); }

.grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .86rem; }
.grid th { text-align: left; font: 500 .7rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #8DA2A2; padding: 0 .5rem .6rem; border-bottom: 1px solid rgba(220, 230, 229, .1); }
.grid th:nth-child(1) { width: 15%; } .grid th:nth-child(2) { width: 10%; } .grid th:nth-child(4) { width: 12%; } .grid th:nth-child(5) { width: 15%; } .grid th:nth-child(6) { width: 21%; }
.grid td { padding: .75rem .5rem; border-bottom: 1px solid rgba(220, 230, 229, .06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid tr.row { opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.grid tr.row.is-in { opacity: 1; transform: none; }
.grid td.cell > * , .grid td.cell { transition: opacity .2s var(--ease); }
.grid td.cell:not(.is-set) { opacity: 0; }
.grid .miss { color: var(--amber); font-style: italic; }
.grid .na { color: #6F8585; }
.st { display: inline-block; font: 500 .74rem/1 var(--font); padding: .38rem .6rem; border-radius: 999px; }
.st-ok { background: rgba(45, 191, 170, .16); color: #84E3D4; }
.st-flag { background: rgba(242, 169, 59, .18); color: #F6C27A; }

.zoom__caption {
  position: absolute; left: 50%; bottom: clamp(1.2rem, 4vh, 2.4rem); translate: -50% 0;
  width: min(44rem, calc(100% - 2 * var(--gutter))); text-align: center;
  font-size: .95rem; color: var(--on-night-2); opacity: 0; will-change: opacity;
}

/* ----------------------------------------------------------------- bands -- */
.band { padding-block: clamp(5rem, 11vw, 9rem); }
.band--dark { background: var(--night); color: var(--on-night); }
.band--light { background: var(--paper); color: var(--ink); }
.title { font-size: clamp(2rem, 1.4rem + 1.9vw, 3.1rem); line-height: 1.08; letter-spacing: -0.028em; }
.title--sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.title--center { text-align: center; margin-inline: auto; max-width: 20ch; }
.lede { margin-top: 1rem; font-size: clamp(1.02rem, .98rem + .2vw, 1.15rem); color: var(--ink-3); max-width: 38rem; }
.band--dark .lede { color: var(--on-night-2); }

/* 3 · what we build: the band holds still while the list moves, so the
   heading, the list and the panel are always all on screen together */
.what { height: 300vh; padding: 0; }
.what__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 64px; }
.what__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.what__text .title { max-width: 16ch; }
.feats { list-style: none; padding: 0; margin: 2.4rem 0 0; border-top: 1px solid var(--line-n); }
.feat { border-bottom: 1px solid var(--line-n); }
.feat__head {
  width: 100%; text-align: left; background: none; border: 0; color: var(--on-night-2); cursor: pointer;
  font: 480 1.12rem/1.3 var(--font); letter-spacing: -0.01em; padding: 1.1rem 0; display: flex; align-items: center; gap: .8rem;
}
.feat__head::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; flex: none; }
.feat.is-on .feat__head { color: var(--on-night); }
.feat.is-on .feat__head::before { background: var(--teal); opacity: 1; }
.feat p { color: var(--on-night-2); font-size: .97rem; max-width: 34rem; display: grid; grid-template-rows: 0fr; overflow: hidden; padding-left: calc(7px + .8rem); }
.feat p { max-height: 0; opacity: 0; transition: max-height .35s var(--ease), opacity .3s var(--ease), padding .35s var(--ease); }
.feat.is-on p { max-height: 8rem; opacity: 1; padding-bottom: 1.2rem; }
.what__shot { position: relative; aspect-ratio: 7 / 5; border-radius: 16px; background: linear-gradient(160deg, #18242A, #0F181C); box-shadow: inset 0 0 0 1px var(--line-n); }
.panel {
  position: absolute; inset: 9% 8%; border-radius: 10px; background: #0B1316; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -24px rgba(0, 0, 0, .7);
  padding: 1.1rem 1.2rem; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.panel.is-on { opacity: 1; transform: none; }
.panel__bar { display: flex; justify-content: space-between; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #DCE6E5; padding-bottom: .8rem; border-bottom: 1px solid var(--line-n); }
.panel__bar span { color: #8DA2A2; font-size: .68rem; }
.mini-rows { display: grid; }
.mrow { display: grid; grid-template-columns: 1.1fr 2fr 1.2fr 1.4fr; gap: .6rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid rgba(238, 241, 239, .06); font-size: .86rem; color: #C6D2D1; }
.mrow b { font-weight: 500; color: #EEF1EF; }
.mrow em { font-style: normal; font-size: .74rem; padding: .34rem .55rem; border-radius: 999px; justify-self: start; }
.mrow .ok { background: rgba(45, 191, 170, .16); color: #84E3D4; }
.mrow .flag { background: rgba(242, 169, 59, .18); color: #F6C27A; }
.timeline { list-style: none; margin: 0; padding: .6rem 0 0; display: grid; gap: .2rem; }
.timeline li { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(238, 241, 239, .06); font-size: .92rem; color: #C6D2D1; }
.timeline .t { font: 500 .8rem/1.5 var(--mono); color: #8DA2A2; }
.timeline .done span:last-child { color: #84E3D4; }
.timeline .soft span:last-child { color: #EEF1EF; }
.draft { padding-top: 1rem; font-size: .95rem; line-height: 1.6; color: #D5DFDE; }
.draft__to { font: 500 .78rem var(--mono); color: #8DA2A2; margin-bottom: .8rem; }
.draft__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line-n); }
.wait { font-size: .8rem; color: #F6C27A; }
.approve { font-size: .82rem; font-weight: 500; background: #fff; color: var(--ink); padding: .5rem .9rem; border-radius: 999px; }

/* 4 · the week */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.card { background: var(--card); border-radius: 18px; padding: 1.3rem 1.3rem 1.6rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-top: 1.2rem; }
.card p { margin-top: .4rem; color: var(--ink-3); font-size: .97rem; max-width: 32rem; }
.card__art { height: 13rem; border-radius: 12px; background: linear-gradient(180deg, #F3F2EE, #ECEAE4); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; }
.paper { background: #fff; border-radius: 4px; padding: .8rem .9rem; font: 500 .78rem/1.6 var(--mono); color: var(--ink-2); box-shadow: var(--shadow); rotate: -3deg; }
.arrow { width: 2.4rem; height: 2px; background: var(--ink-3); position: relative; flex: none; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink-3); border-right: 0; }
.row { background: var(--night); color: #DCE6E5; border-radius: 8px; padding: .6rem .8rem; font: 500 .74rem var(--mono); white-space: nowrap; }
.art-chase { flex-direction: column; }
.chip { background: #fff; border-radius: 999px; padding: .55rem 1rem; font-size: .86rem; box-shadow: var(--shadow); }
.chip--ok { background: var(--night); color: #84E3D4; }
.art-report { flex-wrap: wrap; align-content: center; gap: .5rem; }
.file { background: #fff; border-radius: 8px; padding: .45rem .7rem; font: 500 .74rem var(--mono); color: var(--ink-2); box-shadow: var(--shadow); }
.file--out { background: var(--night); color: #DCE6E5; flex-basis: 100%; text-align: center; max-width: 13rem; }
.art-flag { flex-direction: column; }
.flagrow { background: #fff; border-radius: 8px; padding: .65rem .9rem; font-size: .86rem; box-shadow: var(--shadow); }
.flagrow b { font-weight: 600; margin-right: .4rem; }
.tag { background: var(--amber); color: #3A2504; border-radius: 6px; padding: .4rem .7rem; font: 600 .74rem var(--mono); letter-spacing: .04em; }

/* 5 · case */
.case { padding-top: 0; }
.case__inner { text-align: center; max-width: 54rem; border-top: 1px solid var(--line); padding-top: clamp(4rem, 9vw, 7rem); }
.case__kicker { font: 500 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.case__line { margin-top: 1.2rem; font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.5rem); line-height: 1.22; letter-spacing: -0.022em; }
.case__who { margin: 1.4rem auto 1.6rem; max-width: 36rem; color: var(--ink-3); }
.case__proof { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 auto 1.8rem; padding: 0; max-width: 54rem; text-align: left; }
.case__proof li { display: grid; gap: .3rem; padding: 1rem; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.case__proof strong { color: var(--teal-deep); font: 560 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.case__proof span { color: var(--ink-2); font-size: .93rem; line-height: 1.4; }

/* 6 · how */
.how { padding-top: 0; }
.how .wrap { border-top: 1px solid var(--line); padding-top: clamp(4rem, 9vw, 7rem); }
.steps { list-style: none; padding: 0; margin: clamp(2.2rem, 4vw, 3.2rem) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.steps li { background: var(--card); border-radius: 16px; padding: 1.2rem 1.15rem 1.4rem; box-shadow: var(--shadow); }
.steps .n { font: 500 .8rem var(--mono); color: var(--teal-deep); }
.steps h3 { font-size: 1.02rem; margin-top: 1.6rem; letter-spacing: -0.012em; }
.steps p { margin-top: .4rem; font-size: .9rem; color: var(--ink-3); }

/* 7 · close */
.close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.close__person { max-width: 37rem; margin-top: 1.3rem; padding-left: 1rem; border-left: 2px solid var(--teal); color: var(--on-night-2); font-size: .96rem; }
.stan-launcher { position: fixed; right: clamp(1rem, 2.5vw, 1.7rem); bottom: clamp(1rem, 2.5vw, 1.7rem); z-index: 70; display: inline-flex; align-items: center; gap: .55rem; min-height: 3.75rem; padding: .45rem .85rem .45rem .45rem; border: 0; border-radius: 999px; background: var(--teal); color: #06231D; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); cursor: pointer; font: 600 .9rem/1 var(--font); }
.stan-launcher:hover { background: #5BD2C0; }
.stan-launcher span:first-child { display: grid; place-items: center; width: 2.85rem; height: 2.85rem; border-radius: 50%; background: var(--night); color: #E8FFFA; font: 600 1.1rem/1 var(--font); }
.stan { position: fixed; right: clamp(1rem, 2.5vw, 1.7rem); bottom: calc(clamp(1rem, 2.5vw, 1.7rem) + 4.5rem); z-index: 70; width: min(28rem, calc(100vw - 2rem)); height: min(40rem, calc(100svh - 7rem)); display: flex; flex-direction: column; overflow: hidden; padding: clamp(1.1rem, 2.5vw, 1.55rem); border: 1px solid var(--line-n); border-radius: 18px; background: #111A1E; color: var(--on-night); box-shadow: 0 24px 55px -20px rgba(0, 0, 0, .75); }
.stan[hidden] { display: none; }
.stan > * { flex: none; }
.stan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.stan__head h2 { margin-top: .35rem; color: var(--on-night); font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); }
.stan__intro { margin-top: .55rem; color: var(--on-night-2); font-size: .94rem; }
.stan__kicker { color: #84E3D4; font: 550 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.stan__close { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: #223138; color: var(--on-night); cursor: pointer; font: 400 1.5rem/1 var(--font); }
.stan__close:hover { background: #30434B; }
.stan__messages { display: grid; align-content: start; gap: .7rem; flex: 1 1 auto !important; min-height: 5rem; overflow-y: auto; margin: 1rem 0; padding-right: .25rem; }
.stan__message { width: fit-content; max-width: 92%; padding: .75rem .9rem; border-radius: 12px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; }
.stan__message--assistant { background: #1D2A2F; color: var(--on-night); border-top-left-radius: 3px; }
.stan__message--user { justify-self: end; background: var(--teal); color: #06231D; border-top-right-radius: 3px; }
.stan__form { display: grid; gap: .65rem; }
.stan__form label { font-size: .88rem; font-weight: 500; }
.stan__form textarea { width: 100%; resize: none; height: 4.6rem; padding: .75rem .85rem; border: 1px solid rgba(238, 241, 239, .18); border-radius: 10px; background: #0C1418; color: var(--on-night); font: 400 .95rem/1.45 var(--font); }
.stan__form textarea::placeholder { color: #829595; }
.stan__form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.stan__actions { display: flex; align-items: center; gap: .85rem; }
.stan__actions .btn { flex: none; background: #fff; color: var(--ink); }
.stan__actions .btn:hover { background: #E3E8E6; }
.stan__actions p, .stan__status { color: var(--on-night-2); font-size: .78rem; line-height: 1.45; }
.stan__status { min-height: 1.2em; margin: 0; }
.stan__status.is-error { color: #F6A98A; }
.formcard { margin-top: 2rem; background: var(--night-2); border-radius: 18px; padding: clamp(1.2rem, 2.4vw, 1.8rem); box-shadow: inset 0 0 0 1px var(--line-n); }
.faq { margin-top: 1.4rem; border-top: 1px solid var(--line-n); }
.faq details { border-bottom: 1px solid var(--line-n); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-weight: 480; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .9rem; color: var(--on-night-2); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; color: var(--on-night-2); font-size: .95rem; }
.close .link { color: var(--on-night); }

/* composer (built by page.js) on the dark card */
.composer { display: grid; gap: .8rem; }
.composer .field { display: grid; gap: .35rem; }
.composer label { font-size: .88rem; font-weight: 500; color: var(--on-night); }
.composer .opt { font-weight: 400; color: var(--on-night-2); }
.composer input:not([type=checkbox]), .composer textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--on-night); background: #0C1418;
  border: 1px solid rgba(238, 241, 239, .16); border-radius: 10px; padding: .7rem .8rem;
}
.composer input::placeholder, .composer textarea::placeholder { color: #75898A; }
.composer textarea { resize: vertical; min-height: 6rem; }
.composer input:focus, .composer textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.composer .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.composer .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.composer .check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .9rem; font-weight: 400; line-height: 1.5; align-items: start; color: var(--on-night-2); }
.composer .check input { margin-top: .22rem; width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }
.composer .privacy { font-size: .8rem; line-height: 1.55; color: var(--on-night-2); }
.composer .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .3rem; }
.composer .btn { background: #fff; color: var(--ink); }
.composer .direct { font-size: .88rem; color: var(--on-night-2); }
.composer .direct a { color: var(--on-night); }
.composer .status { font-size: .9rem; min-height: 1.2em; color: var(--on-night-2); }
.composer .status.is-error { color: #F6A98A; }
.composer .status a { color: var(--on-night); }
.sent h4 { margin: 0 0 .4rem; font: 500 1.4rem/1.2 var(--font); }
.sent p { color: var(--on-night-2); }

/* footer */
.foot { background: var(--night); color: var(--on-night-2); padding: 4rem 0 2.5rem; border-top: 1px solid var(--line-n); font-size: .92rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 2rem; }
.foot__brand { display: flex; align-items: center; gap: .6rem; color: var(--on-night); font-weight: 500; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.foot__cols div { display: grid; gap: .45rem; align-content: start; }
.foot__h { font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8DA2A2; margin-bottom: .3rem; }
.foot a { text-decoration: none; color: var(--on-night); }
.foot a:hover { text-decoration: underline; }
.foot__fine { display: grid; gap: .3rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-n); font-size: .8rem; color: #93A3A3; }

/* things that arrive as they come into view: opacity and a short rise only */
[data-in] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-in].is-in { opacity: 1; transform: none; }
.steps li[data-in]:nth-child(2) { transition-delay: .06s; } .steps li[data-in]:nth-child(3) { transition-delay: .12s; }
.steps li[data-in]:nth-child(4) { transition-delay: .18s; } .steps li[data-in]:nth-child(5) { transition-delay: .24s; }
.cards .card[data-in]:nth-child(2) { transition-delay: .08s; } .cards .card[data-in]:nth-child(4) { transition-delay: .08s; }

/* ---------------------------------------------------------------- phones -- */
@media (max-width: 900px) {
  .nav { gap: 1rem; height: 58px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav__logo { height: 21px; }
  .what__grid, .close__grid { grid-template-columns: 1fr; }
  .what__pin { padding-top: 58px; }
  .what__grid { gap: 1.1rem; }
  .what__text .title { font-size: clamp(1.45rem, 6.2vw, 1.85rem); max-width: none; }
  .feats { margin-top: .9rem; }
  .feat__head { font-size: 1rem; padding: .7rem 0; }
  .feat p { font-size: .88rem; }
  .feat.is-on p { padding-bottom: .8rem; }
  .what__shot { aspect-ratio: auto; height: min(17.5rem, 38svh); }
  .panel { inset: 5%; padding: .8rem .9rem; overflow: hidden; }
  .panel__bar { padding-bottom: .55rem; }
  .timeline { padding-top: .3rem; }
  .timeline li { padding: .38rem 0; font-size: .78rem; line-height: 1.35; grid-template-columns: 4.2rem 1fr; }
  .draft { font-size: .84rem; padding-top: .6rem; }
  .draft__foot { margin-top: .7rem; padding-top: .6rem; }
  .panel { inset: 6%; padding: .9rem; }
  .mrow { grid-template-columns: 1fr auto; padding: .55rem 0; font-size: .8rem; }
  .mrow span { display: none; }
  .mrow em { justify-self: end; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .case__proof { grid-template-columns: 1fr; max-width: 32rem; }
  .card__art { height: 10.5rem; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: .6rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .composer .row2 { grid-template-columns: 1fr; }
  .stan__actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .stan-launcher__label { display: none; }
  .stan-launcher { width: 3.75rem; padding: .45rem; }
  .stan { bottom: calc(clamp(1rem, 2.5vw, 1.7rem) + 4.4rem); }
}
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .hero { top: 5.6rem; left: 50%; translate: -50% 0; width: calc(100% - 2 * var(--gutter)); padding: 1.25rem 1rem; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__title { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero__sub { font-size: .98rem; }
  .win__body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: .9rem; padding: .9rem; }
  .doc { font-size: .72rem; padding: .8rem .9rem; }
  .doc .line { grid-template-columns: 7em 1fr; }
  .doc .line:nth-of-type(n+4):not(:has(mark)) { display: none; }
  .grid { font-size: .78rem; }
  .grid .c-date, .grid .c-party, .grid .c-amt, .grid td:nth-child(2), .grid td:nth-child(3), .grid td:nth-child(5) { display: none; }
  .grid th:nth-child(1) { width: 30%; } .grid th:nth-child(4) { width: 28%; } .grid th:nth-child(6) { width: 42%; }
  .zoom__caption { font-size: .86rem; }
}

/* ---------------------------------------------------------- less motion -- */
/* The office, then the laptop's screen as an ordinary block: nothing zooms. */
@media (prefers-reduced-motion: reduce) {
  .zoom { height: auto; }
  .what { height: auto; padding-block: clamp(5rem, 11vw, 9rem); }
  .what__pin { position: static; height: auto; padding-top: 0; display: block; }
  .zoom__stage { position: relative; height: auto; overflow: visible; }
  .zoom__photo { position: relative; transform: none !important; width: 100% !important; height: 100vh !important; height: 100svh !important; }
  .zoom__shade { display: none; }
  .hero { will-change: auto; }
  .win { position: relative; transform: none !important; opacity: 1 !important; margin: 0 auto; width: min(1200px, calc(100% - 2 * var(--gutter))) !important; height: auto !important; min-height: 32rem; }
  .zoom__stage .win { margin-block: 4rem 2rem; }
  .zoom__caption { position: relative; left: auto; bottom: auto; translate: none; margin: 0 auto 4rem; opacity: 1 !important; }
  [data-in], .panel, .grid tr.row, .doc, .feat p, .nav, .btn { transition: none !important; }
  [data-in] { opacity: 1; transform: none; }
}

/* short windows: keep the input in view, give the chat the spare room */
@media (max-height: 680px) {
  .stan__intro { display: none; }
  .stan__form label { display: none; }
  .stan__form textarea { height: 3.4rem; }
  .stan__actions p { display: none; }
  .stan { padding: 1rem; }
  .stan__messages { margin: .7rem 0; }
}

@media (max-width: 400px) {
  .card__art .row { white-space: normal; max-width: 100%; overflow-wrap: anywhere; font-size: .68rem; }
}
