/* Loom website — same tokens as the app (docs/DESIGN.md §2–4). */

@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F4F3EF; --surface: #FBFAF8; --raised: #FFFFFF; --sunk: #ECEBE6;
  --ink: #22232A; --soft: #575862; --faint: #6C6D77; --line: #E2E1DB;
  --tint: #E7E8F0; --code: #EFEEE9;
  --accent: #4C5A9E; --accent-press: #3E4B88; --on-accent: #FFFFFF; --wash: rgba(76, 90, 158, .10);
  --madder: #B86B4B; --ochre: #A07A3E; --moss: #6F8A6A; --slate: #6E7A80; --plum: #8A6A86;
  --rim: #22232A;
  --shadow: 0 40px 70px -40px rgba(34, 35, 42, .45);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section: clamp(88px, 15vh, 176px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1C1D22; --surface: #25262D; --raised: #2D2E36; --sunk: #18191D;
  --ink: #E6E6EA; --soft: #A9AAB5; --faint: #8C8D97; --line: #383943;
  --tint: #2C2E3C; --code: #202127;
  --accent: #9AA4DA; --accent-press: #B3BBE5; --on-accent: #1C1D22; --wash: rgba(154, 164, 218, .12);
  --madder: #D08A6C; --ochre: #C9A162; --moss: #93AE8E; --slate: #98A3A9; --plum: #B092AC;
  --rim: #3A3B45;
  --shadow: 0 40px 70px -40px rgba(0, 0, 0, .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1C1D22; --surface: #25262D; --raised: #2D2E36; --sunk: #18191D;
    --ink: #E6E6EA; --soft: #A9AAB5; --faint: #8C8D97; --line: #383943;
    --tint: #2C2E3C; --code: #202127;
    --accent: #9AA4DA; --accent-press: #B3BBE5; --on-accent: #1C1D22; --wash: rgba(154, 164, 218, .12);
    --madder: #D08A6C; --ochre: #C9A162; --moss: #93AE8E; --slate: #98A3A9; --plum: #B092AC;
    --rim: #3A3B45;
    --shadow: 0 40px 70px -40px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
::selection { background: var(--wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type */
.display {
  font: 400 clamp(2.9rem, 7.4vw, 6.6rem)/1.02 var(--serif);
  letter-spacing: -.025em; text-wrap: balance;
}
.h2 { font: 400 clamp(2rem, 4.4vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--soft); max-width: 34em; }
.prose { color: var(--soft); max-width: 31em; }
.serif { font-family: var(--serif); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
/* The mark sits on the text baseline, like a letter in the word. */
.brand { display: inline-flex; align-items: baseline; gap: .42em; font: 500 1.45rem/1 var(--serif); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand svg { height: .86em; width: auto; overflow: visible; transform: translateY(.03em); }
.nav-right { display: flex; align-items: center; gap: 18px; color: var(--soft); font-size: .95rem; letter-spacing: .005em; }
.theme {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.theme:hover { transform: rotate(18deg); border-color: var(--accent); }
.theme svg { width: 18px; height: 18px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; padding-block: 110px 64px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 80px); align-items: center; position: relative; z-index: 2; }
.hero .lede { margin-top: 28px; max-width: 29em; }
.soon { margin-top: 36px; display: inline-flex; align-items: center; gap: 12px; color: var(--soft); font-size: 1rem; }
.soon i { width: 36px; height: 1.5px; background: var(--accent); display: block; }
.hero-mark { position: absolute; z-index: -1; --mw: clamp(520px, 58vw, 860px); width: var(--mw); height: auto; left: calc(50% - 190px - var(--mw) * .44); top: calc(50% - var(--mw) * .46); pointer-events: none; overflow: visible; }
.hero-mark path { fill: none; stroke: var(--accent); stroke-width: .13; stroke-linecap: round; stroke-linejoin: round; opacity: .34; }
.phone-wrap { position: relative; justify-self: center; perspective: 1200px; text-align: center; }
.phone-tilt { transition: transform .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
.replay { margin-top: 22px; background: none; border: 0; color: var(--faint); font: inherit; font-size: .92rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: color .2s; }
.replay:hover { color: var(--accent); }

/* Hero entrance — one orchestrated moment */
.js .reveal-w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.18em); }
.js.go .reveal-w { opacity: 1; filter: none; transform: none; transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms + 500ms); }
.js .fade-in { opacity: 0; transform: translateY(14px); }
.js.go .fade-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 1.4s); }

/* ── Phone (an HTML rendering of the app, same tokens) ─ */
.phone {
  position: relative; width: 296px; height: 604px; flex: none;
  border-radius: 44px; background: var(--bg); border: 9px solid var(--rim);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.app-top { height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: var(--soft); }
.app-top b { font: 400 15px/1 var(--serif); color: var(--ink); }
.app-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.app-body { position: absolute; inset: 52px 0 96px 0; padding: 6px 14px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.bubble { align-self: flex-end; max-width: 86%; background: var(--tint); border-radius: 16px 16px 5px 16px; padding: 9px 13px; font-size: 13.5px; line-height: 1.45; }
.reply { border-left: 2px solid var(--madder); padding-left: 11px; font: 400 15px/1.58 var(--serif); min-height: 24px; }
.reply .tag { display: block; margin-top: 8px; font: 400 11px/1 var(--sans); color: var(--faint); }
.w { opacity: 0; filter: blur(5px); transition: opacity .18s linear, filter .18s linear; }
.w.on { opacity: 1; filter: none; }
.weave { display: grid; gap: 7px; padding: 4px 0 0 13px; }
.weave i { display: block; height: 7px; border-radius: 4px; width: 100%;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 35%, var(--accent) 50%, var(--line) 65%, var(--line) 100%);
  background-size: 300% 100%; animation: thread 1.6s linear infinite; opacity: .85; }
.weave i:nth-child(2) { width: 78%; animation-delay: -.3s; }
.weave i:nth-child(3) { width: 52%; animation-delay: -.6s; }
@keyframes thread { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.composer { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 11px 13px 10px; box-shadow: 0 8px 20px -14px rgba(34,35,42,.35); transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.composer .ph { font-size: 13.5px; color: var(--faint); }
.composer .row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--soft); font-size: 16px; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); }
.chip em { width: 7px; height: 7px; border-radius: 50%; background: var(--madder); display: block; }
.send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.send svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Models: the braid ───────────────────────────────── */
.braid { position: relative; height: 300vh; }
.braid-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 48px); padding-block: 80px 24px; }
.braid-copy { display: grid; gap: 18px; }
.braid-fig { position: relative; aspect-ratio: 1000 / 560;
  /* as wide as the screen allows, but never taller than what is left under the heading */
  width: max(min(100%, 420px), min(1100px, 100%, calc((100vh - 340px) * 1.7857)));
  width: max(min(100%, 420px), min(1100px, 100%, calc((100svh - 340px) * 1.7857))); }
.braid-fig svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.strand { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.strand.ghost { stroke: var(--line); stroke-width: 1.5; }
.strand.one { stroke: var(--accent); stroke-width: 3.2; }
.bl { position: absolute; left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; font-size: clamp(.72rem, 1.5vw, 1rem); color: var(--soft); white-space: nowrap; transition: opacity .6s var(--ease); }
.bl i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.js .bl { opacity: .25; }
.js .bl.on { opacity: 1; }
.braid-end { position: absolute; right: 0; top: 36%; font: italic 400 clamp(.95rem, 2vw, 1.5rem)/1.2 var(--serif); color: var(--accent); text-align: right; transition: opacity .6s var(--ease); }
.js .braid-end { opacity: 0; }
.js .braid-end.on { opacity: 1; }

/* ── Privacy ─────────────────────────────────────────── */
.privacy { padding-block: var(--section) calc(var(--section) * .7); }
.manifesto { font: 400 clamp(1.9rem, 4.6vw, 4rem)/1.16 var(--serif); letter-spacing: -.018em; max-width: 21em; }
.manifesto .mw { color: var(--ink); transition: opacity .2s linear; }
.js .manifesto .mw { opacity: .18; }
.diagram { width: 100%; margin: clamp(48px, 9vh, 110px) 0 0; aspect-ratio: 1000 / 320; position: relative; }
.diagram svg { width: 100%; height: 100%; overflow: visible; }
.diagram .dg-tall { display: none; }
.dg-node { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.dg-line { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; fill: none; }
.dg-ghost { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 7 8; opacity: .55; }
.dg-t { font: 500 25px var(--sans); fill: var(--ink); }
.dg-s { font: 400 21px var(--sans); fill: var(--soft); }
.dg-dot { fill: var(--accent); }
.facts { margin-top: clamp(40px, 8vh, 90px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.facts h3 { font: 500 1.35rem/1.2 var(--serif); margin-bottom: 8px; }
.facts p { color: var(--soft); font-size: 1rem; }

/* ── Story: sticky phone + steps ─────────────────────── */
.story { padding-block: calc(var(--section) * .7) var(--section); }
.story-head { display: grid; gap: 18px; margin-bottom: clamp(24px, 6vh, 64px); }
.story-grid { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: clamp(48px, 9vw, 140px); }
.story-phone { position: sticky; top: calc(50vh - 302px); align-self: start; width: 296px; height: 604px; }
.steps { display: grid; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .35; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step h3 { font: 400 clamp(1.7rem, 3.4vw, 3.1rem)/1.1 var(--serif); letter-spacing: -.015em; max-width: 14em; }
.step p { color: var(--soft); max-width: 33em; font-size: clamp(1.02rem, 1.25vw, 1.18rem); }
.step .inline-phone { display: none; }
.screen { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease); pointer-events: none; }
.screen.on { opacity: 1; }
.story-phone .phone { position: relative; }
.story-phone .phone .screen { position: absolute; inset: 0; }

.sheet-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; font-size: 13.5px; }
.sheet-row small { display: block; color: var(--faint); font-size: 11.5px; }
.sheet-row .ico { width: 18px; text-align: center; color: var(--soft); }
.att { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.att span { display: inline-flex; align-items: center; gap: 7px; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; font-size: 11.5px; color: var(--soft); }
.att .th { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--madder), var(--ochre)); }
.att .pdf { font: 600 8px/1 var(--sans); background: var(--accent); color: var(--on-accent); padding: 4px 3px; border-radius: 4px; }
.tile { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 12px; font-size: 13px; display: grid; gap: 10px; }
.tile.ask { border-color: var(--accent); }
.tile .t { display: flex; gap: 9px; align-items: center; }
.tile .t svg { width: 15px; height: 15px; stroke: var(--soft); fill: none; stroke-width: 1.7; flex: none; }
.tile code { font: 400 11px var(--mono); color: var(--soft); background: var(--code); padding: 3px 6px; border-radius: 6px; }
.btns { display: flex; gap: 14px; align-items: center; font-size: 12.5px; }
.btns b { background: var(--accent); color: var(--on-accent); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.btns span { color: var(--accent); }
.btns u { color: var(--soft); text-decoration: none; }
.style-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--raised); border-radius: 22px 22px 0 0; padding: 14px 18px 18px; box-shadow: 0 -10px 30px -18px rgba(0,0,0,.35); }
.style-sheet h4 { margin: 4px 0 2px; font: 400 17px var(--serif); }
.style-sheet .sub { color: var(--faint); font-size: 11.5px; margin-bottom: 8px; }
.style-sheet .opt { padding: 7px 0; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.style-sheet .opt small { display: block; color: var(--faint); font-size: 11px; }
.style-sheet .opt.sel::after { content: "✓"; color: var(--accent); }
.dim { position: absolute; inset: 0; background: rgba(34, 35, 42, .28); }

/* ── Everywhere ──────────────────────────────────────── */
.everywhere { padding-block: var(--section); overflow: hidden; }
.shots { margin-top: clamp(40px, 8vh, 90px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); will-change: transform; }
.shot .bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--sunk); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: .88rem; color: var(--faint); }

/* ── Good to know ────────────────────────────────────── */
.know { padding-block: calc(var(--section) * .4) var(--section); }
.know .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.know .h2 { position: sticky; top: 120px; }
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font: 400 clamp(1.2rem, 2vw, 1.5rem)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.6px solid var(--soft); border-bottom: 1.6px solid var(--soft); transform: rotate(45deg) translate(-2px, -2px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 24px; color: var(--soft); max-width: 36em; animation: open .45s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Close ───────────────────────────────────────────── */
.close { padding-block: calc(var(--section) * .6) 24px; text-align: center; }
.close svg { width: clamp(120px, 20vw, 220px); height: auto; overflow: visible; }
.close svg path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.close h2 { margin-top: 28px; }
.close p { margin: 14px auto 0; color: var(--soft); }
.foot { padding: 40px var(--gutter) 48px; text-align: center; color: var(--faint); font-size: .85rem; line-height: 1.7; }
.foot span { display: block; }

/* ── Small screens ───────────────────────────────────── */
/* ─── Thrift ─── */
.thrift { padding-block: calc(var(--section) * .4) var(--section); }
.thrift-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
.tw { margin-top: 36px; overflow-x: auto; }
.thrift-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.thrift-table caption { text-align: left; color: var(--faint); font-size: .88rem; padding-bottom: 12px; }
.thrift-table th, .thrift-table td { padding: 16px 14px 16px 0; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.thrift-table thead th { white-space: nowrap; color: var(--faint); font-weight: 400; font-size: .88rem; border-top: 0; }
.thrift-table tbody th { text-align: left; font: 400 clamp(1.05rem, 1.6vw, 1.25rem)/1.3 var(--serif); color: var(--ink); }
.thrift-table td { color: var(--accent); font: 500 1.15rem/1.2 var(--sans); }
.thrift-table th:first-child, .thrift-table td:first-child { text-align: left; }
.thrift-table tbody tr:last-child th, .thrift-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.fine { margin-top: 22px; max-width: 36em; color: var(--faint); font-size: .92rem; line-height: 1.55; }

/* short windows (a laptop with a tall toolbar, a landscape phone): give the figures the room */
@media (max-height: 700px) and (min-width: 881px) {
  .braid-stage { padding-top: 72px; gap: 12px; }
  .braid-copy .prose { display: none; }
  .braid-copy .h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
  .braid-fig { margin-inline: auto; }
  .braid-fig {
    width: max(min(100%, 420px), min(1100px, 100%, calc((100vh - 190px) * 1.7857)));
    width: max(min(100%, 420px), min(1100px, 100%, calc((100svh - 190px) * 1.7857))); }
}
@media (max-height: 700px) and (min-width: 881px) {
  .story-phone { top: 76px; transform-origin: top center; transform: scale(.85); }
}
@media (max-height: 620px) and (min-width: 881px) { .story-phone { transform: scale(.72); } }
@media (max-height: 540px) and (min-width: 881px) { .story-phone { transform: scale(.62); } }
@media (max-height: 520px) {
  .braid { height: auto; padding-block: 72px; }
  .braid-stage { position: static; height: auto; padding-block: 0; }
  .braid-fig { width: min(100%, 760px); }
}

/* the figure: two lines, one climbing, one held down */
.tfig { margin: 0; position: sticky; top: max(88px, calc(50vh - 290px)); }
.tfig svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 300px); max-height: calc(100svh - 300px); overflow: visible; }
.tf-grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; }
.tf-tick { font: 400 10.5px/1 var(--mono); fill: var(--faint); opacity: .85; }
.tf-val { font: 500 12px/1 var(--mono); }
.tf-val-n { fill: var(--faint); }
.tf-val-l { fill: var(--accent); }
.tf-saved { font: italic 400 22px/1 var(--serif); fill: var(--accent); opacity: 0; transition: opacity .8s var(--ease); }
.tf-saved.on { opacity: 1; }
.tf-t { font: 400 11px/1 var(--mono); fill: var(--faint); letter-spacing: .02em; }
.tf-fill { fill: var(--wash); }
.tf-naive { fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.tf-loom { fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.tf-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.tf-dot-n { fill: var(--faint); stroke-width: 2.5; }
.tf-end { font: 400 15px/1 var(--serif); opacity: 0; transition: opacity .6s var(--ease); }
.tf-end-n { fill: var(--faint); }
.tf-end-l { fill: var(--accent); font-weight: 500; }
.tf-end.on { opacity: 1; }
.tf-mark circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.tf-mark text { font: 500 12px/1 var(--sans); fill: var(--accent); text-anchor: middle; }
.tf-mark { opacity: 0; transform-box: fill-box; transition: opacity .5s var(--ease); }
.tf-mark.on { opacity: 1; }
.tf-legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.tf-step { display: flex; gap: 14px; align-items: baseline; color: var(--faint); font-size: .98rem; line-height: 1.4; opacity: .45; transition: opacity .5s var(--ease), color .5s var(--ease); }
.tf-step b { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font: 500 .78rem/1 var(--sans); transform: translateY(5px); }
.tf-step.on { opacity: 1; color: var(--ink); }
.tf-step.on b { color: var(--accent); }
.tf-cap { margin-top: 16px; color: var(--faint); font-size: .84rem; }

@media (max-width: 880px) {
  .thrift-grid { grid-template-columns: minmax(0, 1fr); }
  .tfig { position: static; max-width: 460px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  .phone-wrap { margin-top: 12px; }
  .hero-mark { display: none; }
  .braid-fig { aspect-ratio: 1000 / 840; }
  .braid-end { top: 57%; }
  .know .wrap { grid-template-columns: minmax(0, 1fr); }
  .know .h2 { position: static; }
  .faq { margin-top: 24px; }
  .bl { font-size: .8rem; }
  .facts { grid-template-columns: 1fr; }
  .diagram { aspect-ratio: 340 / 450; width: min(340px, 100%); }
  .diagram .dg-wide { display: none; }
  .diagram .dg-tall { display: block; }
  .story-grid { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .step { min-height: 0; padding-block: 44px; opacity: 1; }
  .step .inline-phone { display: grid; place-items: center; margin-top: 18px; }
  .shots { grid-template-columns: 1fr; }
  .shots .shot { transform: none !important; }
  .braid { height: 260vh; }
  .nav-right .soon-label { display: none; }
}

/* ── Reduced motion: everything at rest, nothing hidden ─ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal-w, .js .fade-in, .js .bl, .js .braid-end, .js .manifesto .mw { opacity: 1 !important; filter: none !important; transform: none !important; }
  .w { opacity: 1; filter: none; }
}

.nav-link { color: var(--soft); text-decoration: none; font-size: .95rem; padding: 6px 4px; border-radius: 6px; }
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); }
.foot a { color: inherit; text-underline-offset: 3px; }
.foot a:hover { color: var(--accent); }
details a { color: var(--accent); text-underline-offset: 3px; }
