/* Assay — design tokens */
:root {
  --bg: #F6F4EF;
  --bg-2: #EFECE5;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --sunken: #F1EEE8;
  --ink: #15171B;
  --ink-2: #474C54;
  --ink-3: #767B83;
  --ink-4: #A2A6AC;
  --line: #E6E2D9;
  --line-2: #D7D2C7;
  --accent: #1F5C4A;
  --accent-hover: #184B3C;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4EEE9;
  --accent-text: #1F5C4A;
  --mark: rgba(242, 201, 76, .38);
  --mark-strong: rgba(236, 182, 30, .62);
  --mark-ring: #C9960B;
  --ok: #1E7047; --ok-soft: #E3F1E8;
  --warn: #9A5B05; --warn-soft: #FBF0DA;
  --danger: #B3261E; --danger-soft: #F9E4E1;
  --info: #2D5C9E; --info-soft: #E6EDF8;
  --paper: #FFFFFF;
  --paper-ink: #1B1D21;
  --shadow-1: 0 1px 2px rgba(21, 23, 27, .05), 0 1px 1px rgba(21, 23, 27, .03);
  --shadow-2: 0 10px 30px -12px rgba(21, 23, 27, .18), 0 2px 6px rgba(21, 23, 27, .05);
  --shadow-3: 0 30px 80px -24px rgba(21, 23, 27, .28), 0 8px 20px -8px rgba(21, 23, 27, .10);
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1113; --bg-2: #14171A; --surface: #171A1D; --surface-2: #1B1F23; --sunken: #121417;
    --ink: #EDEBE6; --ink-2: #BABDC2; --ink-3: #8C9198; --ink-4: #5F646B;
    --line: #262A2F; --line-2: #343A40;
    --accent: #77C7A8; --accent-hover: #8FD5B9; --accent-ink: #0B1C16; --accent-soft: #17302A; --accent-text: #8ED3B7;
    --mark: rgba(242, 201, 76, .30); --mark-strong: rgba(242, 201, 76, .55); --mark-ring: #E9C04F;
    --ok: #6CCB98; --ok-soft: #16301F; --warn: #E8B45A; --warn-soft: #33270F;
    --danger: #F08A80; --danger-soft: #3A1A17; --info: #8AB0EA; --info-soft: #172438;
    --paper: #F4F2ED; --paper-ink: #1B1D21;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 30px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
    --shadow-3: 0 30px 80px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1113; --bg-2: #14171A; --surface: #171A1D; --surface-2: #1B1F23; --sunken: #121417;
  --ink: #EDEBE6; --ink-2: #BABDC2; --ink-3: #8C9198; --ink-4: #5F646B;
  --line: #262A2F; --line-2: #343A40;
  --accent: #77C7A8; --accent-hover: #8FD5B9; --accent-ink: #0B1C16; --accent-soft: #17302A; --accent-text: #8ED3B7;
  --mark: rgba(242, 201, 76, .30); --mark-strong: rgba(242, 201, 76, .55); --mark-ring: #E9C04F;
  --ok: #6CCB98; --ok-soft: #16301F; --warn: #E8B45A; --warn-soft: #33270F;
  --danger: #F08A80; --danger-soft: #3A1A17; --info: #8AB0EA; --info-soft: #172438;
  --paper: #F4F2ED; --paper-ink: #1B1D21;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 30px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
  --shadow-3: 0 30px 80px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--sans); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mark-strong); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 15px; height: 15px; }
svg.i.l { width: 22px; height: 22px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.row.fw { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }
.eyebrow { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 500; font-size: 14.5px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), color .18s;
  white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -8px rgba(31,92,74,.6); }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; }
.btn-ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn-ink:hover { opacity: .9; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunken); color: var(--ink); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.link { color: var(--accent-text); font-weight: 500; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }

/* Forms */
.field { display: block; }
.field + .field { margin-top: 16px; }
.label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23767B83' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input-sm { height: 36px; font-size: 14px; border-radius: 8px; }
.input-group { position: relative; }
.input-group .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-group .input { padding-left: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 2px 0 0; flex: none; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface); display: grid; place-content: center; transition: .15s; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }

.toggle { position: relative; width: 40px; height: 24px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s var(--ease); }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease-out); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: .15s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice {
  position: relative; display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.choice:hover { border-color: var(--ink-4); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { display: block; font-weight: 550; font-size: 14.5px; }
.choice small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface)); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: .15s;
}
button.chip:hover { border-color: var(--ink-4); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .x { opacity: .5; }

/* Badges & pills */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 550; white-space: nowrap; background: var(--sunken); color: var(--ink-2); }
.badge svg.i { width: 13px; height: 13px; stroke-width: 2.2; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; }
.pill .dot { color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.card-body { padding: 20px 22px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 18px; font-size: 14.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); }

.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sunken); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); overflow: hidden; }
.avatar.s { width: 28px; height: 28px; font-size: 11px; }
.avatar.l { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 88px; height: 88px; font-size: 26px; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--bg); margin-left: -10px; }
.avatars .avatar:first-child { margin-left: 0; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.logo svg { width: 26px; height: 26px; }

/* Toast */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-3); animation: toastIn .35s var(--ease-out) both; }
.toast svg.i { color: var(--accent); }
:root[data-theme="dark"] .toast svg.i { color: #1F5C4A; }
.toast.out { animation: toastOut .25s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* Overlay: modal, drawer, sheet */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15, 17, 19, .38); backdrop-filter: blur(2px); animation: fade .25s var(--ease) both; }
.scrim.out { animation: fadeOut .2s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal { position: fixed; z-index: 71; left: 50%; top: 50%; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; transform: translate(-50%, -50%); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-3); animation: modalIn .35s var(--ease-out) both; }
.modal.wide { width: min(760px, calc(100vw - 32px)); }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.modal-head { padding: 22px 24px 4px; display: flex; gap: 12px; align-items: flex-start; }
.modal-head h3 { font-size: 19px; }
.modal-body { padding: 14px 24px 22px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 20px 20px; }
.drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: drawerIn .4s var(--ease-out) both; }
.drawer.out { animation: drawerOut .25s var(--ease) both; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes drawerOut { to { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 22px; overscroll-behavior: contain; }

/* ========== Marketing site ========== */
.site-nav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; padding: 0 clamp(16px, 4vw, 40px); gap: 28px; transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.site-nav nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); }
.site-nav nav a:hover { color: var(--ink); }
.site-nav .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.wrap { width: min(1200px, calc(100% - clamp(32px, 8vw, 80px))); margin: 0 auto; }
.hero { position: relative; min-height: min(860px, 100svh); display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 120px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(1.04); animation: heroZoom 1.2s var(--ease-out) both; }
@keyframes heroZoom { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1.04); opacity: 1; } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 30%, color-mix(in srgb, var(--bg) 40%, transparent) 55%, transparent 75%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero p.lede { margin-top: 26px; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 520px; }
.hero .ctas { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .hero-note { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.fade-up { animation: fadeUp .9s var(--ease-out) both; }
.fade-up.d1 { animation-delay: .06s; } .fade-up.d2 { animation-delay: .12s; } .fade-up.d3 { animation-delay: .18s; } .fade-up.d4 { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.proof-card { position: absolute; z-index: 2; right: clamp(16px, 6vw, 80px); bottom: 64px; width: 360px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-3); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); animation: fadeUp 1s .5s var(--ease-out) both; }
.proof-card .q { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sunken); font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.proof-card .q mark { background: var(--mark-strong); color: inherit; padding: 1px 2px; border-radius: 3px; }

.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-head { max-width: 720px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.02em; margin-top: 16px; }
.section-head p { margin-top: 20px; font-size: 18px; color: var(--ink-2); line-height: 1.55; }

/* Story (sticky product) */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); margin-top: 64px; }
.story-steps { padding: 2vh 0 22vh; }
.story-step { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; opacity: .45; transition: opacity .6s var(--ease); }
.story-step.on { opacity: 1; }
.story-step .num { font: 500 13px/1 var(--mono); color: var(--accent-text); letter-spacing: .06em; }
.story-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; margin-top: 14px; letter-spacing: -.015em; }
.story-step p { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 440px; }
.story-step ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.story-step li { display: flex; gap: 9px; align-items: flex-start; }
.story-step li svg { color: var(--accent-text); margin-top: 2px; }
.story-stage { position: sticky; top: calc(var(--nav-h) + 6vh); height: min(600px, 76vh); }
.stage { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, var(--bg-2), var(--sunken)); border: 1px solid var(--line); }
.stage-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; opacity: 0; transform: translateY(8px); transition: opacity .55s var(--ease), transform .6s var(--ease-out); pointer-events: none; }
.stage-scene.on { opacity: 1; transform: none; }
.stage-inline { display: none; }

/* Scene components */
.mini-upload { width: min(400px, 100%); }
.mini-drop { border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 34px 24px; text-align: center; background: var(--surface); }
.mini-file { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.mini-file .ficon { width: 38px; height: 46px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; font: 700 10px var(--mono); }
.bar { height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); width: 0; transition: width 1.6s var(--ease-out); }
.on .bar > i { width: 100%; }
.mini-sec { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

.mini-extract { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; max-width: 620px; }
.mini-paper { background: var(--paper); color: var(--paper-ink); border-radius: 10px; padding: 18px 18px 22px; box-shadow: var(--shadow-3); font-size: 9.5px; line-height: 1.55; transform: rotate(-1.2deg); }
.mini-paper b { font-size: 13px; display: block; letter-spacing: .04em; }
.mini-paper .ln { display: block; height: 6px; border-radius: 3px; background: #E7E3DA; margin-top: 6px; }
.mini-paper mark { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; transition: background .5s var(--ease); }
.on .mini-paper mark { background: var(--mark-strong); }
.on .mini-paper mark:nth-of-type(2) { transition-delay: .25s; } .on .mini-paper mark:nth-of-type(3) { transition-delay: .5s; } .on .mini-paper mark:nth-of-type(4) { transition-delay: .75s; }
.mini-fields { display: grid; gap: 8px; }
.mini-field { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.on .mini-field { opacity: 1; transform: none; }
.on .mini-field:nth-child(2) { transition-delay: .3s; } .on .mini-field:nth-child(3) { transition-delay: .55s; } .on .mini-field:nth-child(4) { transition-delay: .8s; }
.mini-field small { display: block; font-size: 11px; color: var(--ink-3); }
.mini-field strong { display: block; font-size: 13.5px; font-weight: 550; margin-top: 1px; }
.mini-field .src { margin-top: 5px; font: 500 10.5px var(--mono); color: var(--warn); display: flex; gap: 5px; align-items: center; }

.mini-verify { width: min(420px, 100%); display: grid; gap: 10px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.mini-row .grow small { display: block; font-size: 11.5px; color: var(--ink-3); }
.mini-row .grow strong { font-size: 14px; font-weight: 550; }
.mini-row .tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: transparent; transition: background .4s var(--ease), border-color .4s, color .3s; }
.on .mini-row .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.on .mini-row:nth-child(2) .tick { transition-delay: .35s; } .on .mini-row:nth-child(3) .tick { transition-delay: .7s; } .on .mini-row:nth-child(4) .tick { transition-delay: 1.05s; }
.mini-row.edit { border-color: var(--info); }

.mini-fresh { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; width: min(520px, 100%); }
.phone { width: 230px; height: 440px; border-radius: 38px; background: #111316; padding: 10px; box-shadow: var(--shadow-3); }
.phone-screen { height: 100%; border-radius: 30px; background: #F3F1EC; padding: 44px 12px 12px; color: #15171B; position: relative; overflow: hidden; }
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px; border-radius: 99px; background: #111316; }
.sms { background: #fff; border-radius: 16px; padding: 10px 12px; font-size: 11.5px; line-height: 1.45; box-shadow: 0 2px 8px rgba(0,0,0,.06); opacity: 0; transform: translateY(8px); transition: .6s var(--ease-out); }
.sms + .sms { margin-top: 8px; }
.on .sms { opacity: 1; transform: none; transition-delay: .4s; }
.on .sms.me { transition-delay: 1.2s; }
.sms.me { background: #1F5C4A; color: #fff; margin-left: 40px; }
.sms .from { font-weight: 600; font-size: 10.5px; color: #767B83; margin-bottom: 3px; }
.sms u { color: #1F5C4A; }

.ring { --p: 0; --c: var(--accent); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--sunken) 0); position: relative; transition: --p 1.2s var(--ease-out); }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.ring > * { position: relative; text-align: center; }
.ring b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring small { font-size: 12px; color: var(--ink-3); }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.principle { background: var(--bg); padding: 34px 30px 38px; }
.principle .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.principle h3 { margin-top: 22px; font-size: 19px; font-weight: 600; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.principle blockquote { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--mark-ring); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--ink-2); }

.privacy-band { position: relative; border-radius: 28px; overflow: hidden; min-height: 560px; display: grid; grid-template-columns: 1.05fr 1fr; background: #0F1F1A; color: #EDEBE6; }
.privacy-band .media { position: relative; }
.privacy-band .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.privacy-band .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, #0F1F1A); }
.privacy-band .copy { padding: clamp(36px, 5vw, 64px); align-self: center; }
.privacy-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }
.privacy-band .eyebrow { color: #8ED3B7; }
.privacy-list { margin-top: 28px; display: grid; gap: 16px; }
.privacy-list > div { display: flex; gap: 14px; }
.privacy-list svg { color: #8ED3B7; margin-top: 2px; }
.privacy-list strong { display: block; font-weight: 550; }
.privacy-list span { color: #A8B3AE; font-size: 14.5px; }

.invite-band { text-align: center; padding: clamp(80px, 10vw, 120px) 0; }
.invite-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.02em; }
.invite-band p { margin: 20px auto 0; max-width: 560px; color: var(--ink-2); font-size: 18px; }
.invite-band .avatars { justify-content: center; margin-bottom: 28px; }
.invite-band .avatars .avatar { width: 52px; height: 52px; border-width: 3px; margin-left: -14px; }
.invite-band .avatars .avatar:first-child { margin-left: 0; }

.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 13.5px; color: var(--ink-3); }
.site-foot .cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--ink); }

/* ========== Auth / onboarding ========== */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-media { position: relative; overflow: hidden; background: #1a1d1f; }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,13,.2), transparent 30%, transparent 55%, rgba(10,12,13,.75)); }
.auth-media .over { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 40px; color: #fff; }
.auth-media .logo { position: absolute; z-index: 1; top: 32px; left: 40px; color: #fff; }
.auth-media blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.auth-media cite { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-style: normal; font-size: 14px; color: rgba(255,255,255,.85); }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.auth-top { display: flex; align-items: center; gap: 12px; }
.auth-form { width: min(420px, 100%); margin: auto; padding: 40px 0; }
.auth-form h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 44px); line-height: 1.05; letter-spacing: -.015em; }
.auth-form > p { margin-top: 12px; color: var(--ink-2); }
.inviter { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; font-size: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp { display: flex; gap: 8px; }
.otp input { width: 100%; max-width: 56px; height: 60px; text-align: center; font: 600 24px var(--mono); border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.strength i { height: 4px; border-radius: 2px; background: var(--line); transition: background .25s; }
.steps-bar { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
.steps-bar i { width: 26px; height: 4px; border-radius: 99px; background: var(--line-2); }
.steps-bar i.on { background: var(--accent); }

.onb { min-height: 100dvh; display: flex; flex-direction: column; }
.onb-top { position: sticky; top: 0; z-index: 30; height: var(--nav-h); display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3vw, 28px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.onb-top .steps { display: flex; gap: 4px; align-items: center; margin: 0 auto; font-size: 13.5px; }
.onb-top .steps span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 99px; color: var(--ink-3); }
.onb-top .steps span b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--sunken); border: 1px solid var(--line-2); }
.onb-top .steps span.on { color: var(--ink); font-weight: 500; }
.onb-top .steps span.on b { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.onb-top .steps span.done b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.onb-top .steps .sep { width: 24px; height: 1px; background: var(--line-2); padding: 0; }

.upload-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.upload-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.04; letter-spacing: -.015em; }
.upload-page > p { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 600px; }
.dropzone { display: block; margin-top: 36px; border: 1px dashed var(--line-2); border-radius: 22px; background: var(--surface); padding: 44px 24px; text-align: center; transition: border-color .2s, background .2s, transform .2s var(--ease); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); }
.dropzone .ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.dropzone h3 { margin-top: 18px; font-size: 18px; }
.dropzone p { margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.assure { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.assure div { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.assure svg { color: var(--accent-text); margin-top: 1px; }

.processing { margin-top: 36px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.proc-steps { margin-top: 22px; display: grid; gap: 14px; }
.proc-step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-3); transition: color .3s; }
.proc-step .st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; transition: .3s; }
.proc-step.run { color: var(--ink); }
.proc-step.run .st { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.proc-step.done { color: var(--ink-2); }
.proc-step.done .st { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.proc-step .meta { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Review (hero feature) ========== */
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); height: calc(100dvh - var(--nav-h)); }
.cv-pane { position: relative; overflow: auto; background: var(--bg-2); border-right: 1px solid var(--line); overscroll-behavior: contain; }
.cv-toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--bg-2) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cv-toolbar .fname { display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.cv-toolbar .fname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-pages { padding: 28px 28px 80px; display: grid; gap: 24px; justify-content: center; }
.cv-page {
  width: 680px; max-width: 100%; min-height: 880px; background: var(--paper); color: var(--paper-ink); border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 18px 40px -20px rgba(0,0,0,.25); padding: 56px 60px 60px;
  font-family: "Geist", system-ui, sans-serif; font-size: 12.5px; line-height: 1.6; position: relative; transform-origin: top center;
}
.cv-page .pno { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 10px; color: #9a9ea4; }
.cv-page .cv-name { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: 0; line-height: 1.05; color: #111; }
.cv-page .sub { font-size: 13px; color: #555; margin-top: 4px; }
.cv-page .contact { margin-top: 10px; font-size: 11.5px; color: #555; }
.cv-page .cv-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #1F5C4A; font-weight: 650; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #E5E1D8; }
.cv-page .role { margin-top: 12px; }
.cv-page .role-h { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: #111; }
.cv-page .role-h .when { font-weight: 400; color: #666; white-space: nowrap; }
.cv-page ul { margin: 4px 0 0; padding-left: 16px; }
.cv-page li { margin-top: 3px; color: #2a2d31; }
.cv-page p { color: #2a2d31; }
.ev { border-radius: 3px; padding: 1px 1px; margin: 0 -1px; transition: background .25s var(--ease), box-shadow .25s var(--ease); scroll-margin: 140px; }
.show-all .ev { background: rgba(242, 201, 76, .22); }
.ev.hl { background: rgba(242, 201, 76, .45); }
.ev.focus { background: rgba(236, 182, 30, .62); box-shadow: 0 0 0 2px #C9960B; }
.ev.pulse { animation: evPulse 1.1s var(--ease) 1; }
@keyframes evPulse { 0% { box-shadow: 0 0 0 2px #C9960B, 0 0 0 0 rgba(201,150,11,.5); } 70% { box-shadow: 0 0 0 2px #C9960B, 0 0 0 12px rgba(201,150,11,0); } 100% { box-shadow: 0 0 0 2px #C9960B; } }
.ev-tag { position: absolute; z-index: 3; transform: translate(-2px, -100%); margin-top: -6px; padding: 3px 8px; border-radius: 6px; background: #15171B; color: #fff; font: 500 11px var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ev-tag.on { opacity: 1; }
.scan-line { position: absolute; left: 0; right: 0; height: 80px; background: linear-gradient(180deg, transparent, rgba(31,92,74,.14), transparent); pointer-events: none; animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { from { top: -80px; } to { top: 100%; } }

.review-pane { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.rv-head { padding: 20px 22px 0; }
.rv-head h1 { font-size: 22px; letter-spacing: -.02em; }
.rv-head p { margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.rv-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.rv-progress .bar { flex: 1; height: 6px; }
.rv-progress .bar > i { transition: width .5s var(--ease-out); }
.rv-tabs { display: flex; gap: 4px; padding: 14px 22px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rv-tabs button { display: inline-flex; gap: 6px; align-items: center; height: 32px; padding: 0 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.rv-tabs button:hover { background: var(--sunken); color: var(--ink); }
.rv-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.rv-tabs button .n { font-size: 11.5px; padding: 1px 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 14%, transparent); }
.rv-list { flex: 1; overflow: auto; padding: 8px 14px 24px; overscroll-behavior: contain; }
.rv-group { margin-top: 14px; }
.rv-group > h4 { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 6px 8px; }
.item { position: relative; border: 1px solid transparent; border-radius: 14px; padding: 12px 12px 12px 14px; transition: background .2s, border-color .2s, box-shadow .2s; }
.item + .item { margin-top: 4px; }
.item:hover { background: var(--surface-2); border-color: var(--line); }
.item.active { background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.item-top { display: flex; align-items: flex-start; gap: 10px; }
.item .lbl { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.item .val { margin-top: 3px; font-size: 15px; font-weight: 550; color: var(--ink); line-height: 1.4; word-break: break-word; }
.item .val .was { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; margin-top: 2px; }
.item .sub { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.item .acts { display: flex; gap: 4px; flex: none; }
.item .acts .btn-icon { width: 32px; height: 32px; border-radius: 8px; color: var(--ink-3); }
.item .acts .btn-icon:hover { color: var(--ink); background: var(--sunken); }
.item .acts .confirm { color: var(--accent-text); border: 1px solid var(--line-2); }
.item .acts .confirm:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.evidence { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px 4px 7px; border-radius: 7px; background: var(--sunken); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); text-align: left; transition: .15s; }
.ev-chip:hover { border-color: var(--mark-ring); background: color-mix(in srgb, var(--mark) 50%, var(--surface)); }
.ev-chip .pg { font: 600 10.5px var(--mono); color: var(--warn); flex: none; }
.ev-chip q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; quotes: "\201C" "\201D"; }
.note { margin-top: 9px; display: flex; gap: 8px; padding: 9px 11px; border-radius: 10px; font-size: 13px; line-height: 1.45; background: var(--info-soft); color: var(--info); }
.note svg.i { margin-top: 1px; width: 15px; height: 15px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note b { font-weight: 600; }
.kind { display: inline-flex; align-items: center; gap: 4px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; }
.kind.exact { color: var(--ok); background: var(--ok-soft); }
.kind.interp { color: var(--info); background: var(--info-soft); }
.kind.needs { color: var(--warn); background: var(--warn-soft); }
.state-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 550; }
.state-chip.confirmed { color: var(--ok); }
.state-chip.edited { color: var(--info); }
.state-chip.removed { color: var(--ink-3); }
.item.is-confirmed .val, .item.is-edited .val { color: var(--ink); }
.item.is-removed .val { color: var(--ink-4); text-decoration: line-through; }
.item.is-removed .evidence, .item.is-removed .note { display: none; }
.item.is-confirmed::before, .item.is-edited::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ok); }
.item.is-edited::before { background: var(--info); }
.item.needs-attn::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn); }
.role-card { margin-top: 6px; }
.role-card .meta { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.role-card ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.role-card li { font-size: 13px; color: var(--ink-2); padding-left: 14px; position: relative; line-height: 1.45; }
.role-card li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.split-roles { display: grid; gap: 8px; margin-top: 8px; }
.split-roles > div { padding: 9px 11px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 13.5px; }
.inline-edit { margin-top: 10px; display: grid; gap: 10px; }
.inline-edit .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; background: var(--surface-2); }
.rv-foot .msg { font-size: 13px; color: var(--ink-3); flex: 1; min-width: 0; }
.cv-fab { display: none; }

/* Status / preferences */
.form-page { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 120px; }
.form-page > h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -.015em; }
.form-page > p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; max-width: 620px; }
.fsec { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.fsec:first-of-type { border-top: 0; padding-top: 0; }
.fsec > header h3 { font-size: 16px; }
.fsec > header p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.fsec .src-note { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money { position: relative; }
.money span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 15px; }
.money .input { padding-left: 28px; }
.sticky-foot { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 14px clamp(16px, 3vw, 28px); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.sticky-foot .msg { margin-right: auto; font-size: 13.5px; color: var(--ink-3); }

/* ========== Member app shell ========== */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.side .logo { padding: 4px 10px 18px; font-size: 24px; }
.side a.nav { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.side a.nav:hover { background: var(--sunken); color: var(--ink); }
.side a.nav.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.side a.nav .cnt { margin-left: auto; font-size: 11.5px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.side .sec-label { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); padding: 16px 10px 6px; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.side .me .grow strong { display: block; font-size: 13.5px; font-weight: 600; }
.side .me .grow small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center; gap: 12px; padding: 0 clamp(16px, 3vw, 32px); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .crumbs { font-size: 14px; color: var(--ink-3); }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar .mob-logo { display: none; }
.page { width: min(1120px, 100%); margin: 0 auto; padding: 32px clamp(16px, 3vw, 32px) 96px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.04; letter-spacing: -.015em; }
.page-head p { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }
.tabbar { display: none; }

.grid-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-12 { grid-column: span 12; } .col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; }

.fresh-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px; }
.fresh-card h2 { font-size: 22px; letter-spacing: -.02em; }
.fresh-card p { margin-top: 6px; color: var(--ink-2); }
.fresh-card .actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.sections-fresh { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sections-fresh > div { padding: 14px 18px; border-left: 1px solid var(--line); }
.sections-fresh > div:first-child { border-left: 0; }
.sections-fresh small { display: block; font-size: 12px; color: var(--ink-3); }
.sections-fresh strong { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13.5px; font-weight: 550; }

.status-card .now { font-size: 18px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.status-card .now .dot { color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.list-rows > * { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line); font-size: 14.5px; }
.list-rows > *:first-child { border-top: 0; }
a.lr:hover, button.lr:hover { background: var(--surface-2); }
button.lr { width: 100%; text-align: left; }
.timeline { position: relative; padding: 6px 22px 18px; }
.tl-item { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.tl-item .tl-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); flex: none; position: relative; z-index: 1; border: 3px solid var(--surface); box-sizing: content-box; margin: -3px; }
.tl-item .tl-ico svg.i { width: 14px; height: 14px; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 34px; bottom: -8px; width: 1.5px; background: var(--line); }
.tl-item .grow { padding-top: 4px; font-size: 14px; }
.tl-item .grow small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }

/* Profile page */
.profile-hero { display: flex; gap: 22px; align-items: center; padding: 26px; }
.profile-hero h2 { font-size: 26px; letter-spacing: -.02em; }
.profile-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.profile-hero .meta span { display: inline-flex; gap: 6px; align-items: center; }
.psec { margin-top: 18px; }
.psec .card-head .sub { font-size: 12.5px; color: var(--ink-3); margin-left: 6px; font-weight: 400; }
.psec .card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.xp { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 22px; border-top: 1px solid var(--line); }
.xp:first-child { border-top: 0; }
.xp .when { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.xp h4 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.xp .org { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.xp ul { margin: 10px 0 0; padding-left: 16px; color: var(--ink-2); font-size: 14px; }
.xp li + li { margin-top: 4px; }
.vtag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 550; color: var(--ok); }
.vtag svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.skill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.skill small { color: var(--ink-3); font-size: 12px; }

/* Messages */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 620px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); overflow: auto; }
.msg-row { display: flex; gap: 12px; width: 100%; text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.msg-row:hover { background: var(--surface-2); }
.msg-row.on { background: var(--sunken); }
.msg-row .ch { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.msg-row .ch.ch-sms { background: var(--info-soft); color: var(--info); }
.msg-row .grow strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row .grow small { display: block; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.msg-row time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.msg-row.unread .grow strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.msg-view { padding: 28px; overflow: auto; background: var(--bg-2); }
.email { max-width: 600px; margin: 0 auto; background: #fff; color: #1B1D21; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2); }
.email-meta { padding: 16px 22px; border-bottom: 1px solid #ECE8E0; font-size: 13px; color: #6a6f76; display: grid; gap: 3px; }
.email-meta b { color: #1B1D21; font-weight: 600; }
.email-body { padding: 30px 32px 34px; font-size: 15px; line-height: 1.6; }
.email-body .elogo { font-family: var(--serif); font-size: 24px; color: #15171B; display: flex; gap: 8px; align-items: center; }
.email-body h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 26px 0 12px; color: #15171B; }
.email-body p + p { margin-top: 12px; }
.email-body .ebtns { display: grid; gap: 10px; margin: 24px 0 8px; }
.email-body .ebtn { display: block; text-align: center; padding: 13px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; background: #1F5C4A; color: #fff; }
.email-body .ebtn.sec { background: #fff; color: #15171B; border: 1px solid #D7D2C7; }
.email-body .summary { margin: 20px 0; border: 1px solid #ECE8E0; border-radius: 12px; overflow: hidden; }
.email-body .summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid #ECE8E0; }
.email-body .summary div:first-child { border-top: 0; }
.email-body .summary span { color: #6a6f76; }
.email-foot { padding: 18px 32px; background: #F6F4EF; font-size: 12px; color: #767B83; line-height: 1.5; }
.sms-view { max-width: 360px; margin: 0 auto; }
.sms-view .phone { width: 100%; max-width: 330px; height: 560px; margin: 0 auto; }
.sms-view .sms { opacity: 1; transform: none; font-size: 13.5px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover { background: var(--surface-2); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person strong { display: block; font-weight: 550; font-size: 14px; white-space: nowrap; }
.person small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel { display: flex; gap: 4px; align-items: center; }
.funnel i { width: 22px; height: 6px; border-radius: 3px; background: var(--line-2); }
.funnel i.on { background: var(--accent); }

/* Privacy */
.setting { display: flex; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.setting:first-child { border-top: 0; }
.setting .grow strong { display: block; font-size: 14.5px; font-weight: 550; }
.setting .grow small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.setting .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); flex: none; }

/* Secure link page */
.link-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 60px; background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.link-card { width: min(540px, 100%); margin-top: 6vh; }
.link-card h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 50px); line-height: 1.03; text-align: center; letter-spacing: -.015em; }
.link-card > p { text-align: center; margin-top: 12px; color: var(--ink-2); font-size: 16.5px; }
.secure-note { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.summary-card { margin-top: 28px; }
.summary-card .srow { display: flex; gap: 14px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line); }
.summary-card .srow:first-child { border-top: 0; }
.summary-card .srow small { display: block; font-size: 12.5px; color: var(--ink-3); }
.summary-card .srow strong { display: block; font-size: 15px; font-weight: 550; margin-top: 1px; }
.big-actions { margin-top: 20px; display: grid; gap: 10px; }
.big-actions .btn { height: 54px; font-size: 16px; border-radius: 14px; }
.success-mark { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: pop .6s var(--ease-out) both; }
.success-mark svg.i { width: 34px; height: 34px; stroke-width: 2.4; }
.success-mark svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Reconfirm flow */
.rc { width: min(640px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.rc-step { animation: fadeUp .5s var(--ease-out) both; }
.rc-q { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 42px); line-height: 1.08; letter-spacing: -.012em; margin-top: 14px; }
.rc-card { margin-top: 24px; }
.rc-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-actions .btn { height: 52px; font-size: 15.5px; border-radius: 14px; }

/* ========== Admin ========== */
.admin .side { background: #121518; border-right-color: #22272c; color: #C9CCD0; }
.admin .side .logo { color: #EDEBE6; }
.admin .side .logo small { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8ED3B7; padding: 3px 6px; border: 1px solid #2b4a40; border-radius: 5px; margin-left: 2px; }
.admin .side a.nav { color: #A9AEB4; }
.admin .side a.nav:hover { background: #1B1F23; color: #EDEBE6; }
.admin .side a.nav.on { background: #1E2327; color: #fff; border-color: #2A3036; box-shadow: none; }
.admin .side .sec-label { color: #5D636A; }
.admin .side .me { background: #171B1E; border-color: #262B30; }
.admin .side .me strong { color: #EDEBE6; }
.admin .side a.nav .cnt { background: #77C7A8; color: #0B1C16; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi small { display: block; font-size: 13px; color: var(--ink-3); }
.kpi b { display: block; margin-top: 8px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi .delta { margin-top: 10px; font-size: 12.5px; color: var(--ok); display: flex; align-items: center; gap: 4px; }
.kpi .delta.neg { color: var(--danger); }
.chart { width: 100%; height: 220px; display: block; }
.chart text { font: 11px var(--sans); fill: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.stackbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.stackbar i { display: block; height: 100%; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters .input-group { flex: 1; min-width: 200px; max-width: 320px; }
.journey { display: flex; gap: 0; align-items: stretch; overflow-x: auto; padding: 4px 0 6px; }
.jstep { flex: 1; min-width: 150px; position: relative; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.jstep + .jstep { margin-left: 22px; }
.jstep + .jstep::before { content: ""; position: absolute; left: -22px; top: 50%; width: 22px; height: 1.5px; background: var(--line-2); }
.jstep small { display: block; font: 500 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.jstep strong { display: flex; gap: 6px; align-items: center; margin-top: 5px; font-weight: 550; font-size: 13.5px; }
.jstep span { display: block; color: var(--ink-3); margin-top: 3px; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.composer > div { padding: 22px; }
.composer > div + div { border-left: 1px solid var(--line); background: var(--bg-2); }
.merge { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.merge button { font: 500 12px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--line); color: var(--ink-2); }
.merge button:hover { border-color: var(--accent); color: var(--accent-text); }
.sla { font-variant-numeric: tabular-nums; }

/* Responsive */
@media (max-width: 1100px) {
  .review { grid-template-columns: minmax(0, 1fr) 440px; }
  .cv-page { padding: 44px 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .site-nav nav { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 34px 0; border-top: 1px solid var(--line); }
  .story-steps { padding: 0; }
  .stage-inline { display: block; position: relative; margin-top: 26px; height: 420px; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--bg-2), var(--sunken)); border: 1px solid var(--line); }
  .stage-inline .stage-scene { position: absolute; }
  .principles { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; }
  .privacy-band .media { height: 260px; }
  .privacy-band .media::after { background: linear-gradient(180deg, transparent 40%, #0F1F1A); }
  .auth { grid-template-columns: 1fr; }
  .auth-media { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar .mob-logo { display: inline-flex; }
  .topbar .crumbs { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--ink-3); border-radius: 10px; }
  .tabbar a.on { color: var(--accent-text); }
  .tabbar a svg.i { width: 21px; height: 21px; }
  .page { padding-bottom: 120px; }
  .grid-dash > * { grid-column: span 12; }
  .review { grid-template-columns: 1fr; height: auto; }
  .cv-pane { display: none; }
  .cv-pane.sheet { display: block; position: fixed; z-index: 75; left: 0; right: 0; bottom: 0; top: 12vh; border-radius: 20px 20px 0 0; border: 0; box-shadow: var(--shadow-3); animation: sheetIn .4s var(--ease-out) both; }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
  .cv-pages { padding: 16px 12px 60px; }
  .cv-page { width: 100%; min-height: 0; padding: 28px 22px 44px; font-size: 12px; }
  .cv-page .cv-name { font-size: 28px; }
  .review-pane { min-height: calc(100dvh - var(--nav-h)); }
  .rv-list { overflow: visible; padding-bottom: 110px; }
  .rv-foot { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; }
  .cv-fab { display: inline-flex; }
  .fsec { grid-template-columns: 1fr; gap: 16px; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.viewing .inbox-list { display: none; }
  .inbox:not(.viewing) .msg-view { display: none; }
  .composer { grid-template-columns: 1fr; }
  .composer > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .onb-top .steps span:not(.on) .t { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .site-nav .right .btn-ghost { display: none; }
  .hero { min-height: 0; padding: calc(var(--nav-h) + 24px) 0 24px; display: flex; flex-direction: column; align-items: stretch; }
  .hero > .wrap { order: 1; }
  .hero-media { position: relative; inset: auto; height: 460px; margin-top: 28px; order: 2; }
  .proof-card { order: 3; }
  .hero-media::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 35%, transparent 70%, var(--bg)); }
  .hero-media img { object-position: 50% 30%; }
  .hero-copy { padding: 0 0 8px; }
  .proof-card { position: relative; right: auto; bottom: auto; width: auto; margin: -70px 16px 0; }
  .assure { grid-template-columns: 1fr; }
  .mini-extract { grid-template-columns: 1fr; }
  .mini-extract .mini-paper { display: none; }
  .mini-fresh { grid-template-columns: 1fr; justify-items: center; }
  .mini-fresh .ring { display: none; }
  .fresh-card { grid-template-columns: 1fr; justify-items: start; gap: 18px; padding: 22px; }
  .sections-fresh { grid-template-columns: 1fr 1fr; }
  .sections-fresh > div:nth-child(3) { border-left: 0; }
  .sections-fresh > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .profile-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .xp { grid-template-columns: 1fr; gap: 6px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .range-row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 24px; }
  .rc-actions { grid-template-columns: 1fr; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .card-pad, .card-body { padding: 18px; }
  .card-head { padding: 16px 18px; }
  .list-rows > * { padding: 12px 18px; }
  .setting { padding: 14px 18px; }
  .email-body { padding: 24px 20px; }
  .msg-view { padding: 16px 12px; }
  .onb-top .steps { display: none; }
  .table-wrap table.t .hide-sm { display: none; }
  .drawer-body { padding: 18px; }
  .sticky-foot .msg { display: none; }
  .modal-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Utilities added late */
.mob-only { display: none; }
h1[tabindex="-1"]:focus { outline: none; }
.seg a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: .15s; white-space: nowrap; }
.seg a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.lr { color: inherit; }
@media (max-width: 960px) { .mob-only { display: inline-flex; } }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.site-nav .right .btn-ghost { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-nav .right .btn-ghost:hover { background: var(--surface); }
@media (max-width: 960px) {
  .cv-pages { grid-template-columns: minmax(0, 1fr); }
  .cv-page .contact { overflow-wrap: anywhere; }
  .cv-page .role-h { flex-wrap: wrap; gap: 2px 12px; }
}
@media (max-width: 960px) {
  .review { grid-template-columns: minmax(0, 1fr); }
  .review-pane, .rv-list { min-width: 0; }
  .rv-list .item { padding-right: 8px; }
}
@media (max-width: 640px) {
  .item-top { flex-wrap: wrap; }
  .item .acts { width: 100%; justify-content: flex-end; margin-top: 6px; }
  .item .acts .btn-icon { width: 40px; height: 36px; }
}
@media (max-width: 640px) {
  .rv-foot { flex-wrap: wrap; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .rv-foot .msg { flex-basis: 100%; }
  .rv-foot .btn { flex: 1; }
}
.import-row { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; }
.pick-list { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); transition: background .15s; }
.pick:first-child { border-top: 0; }
.pick:hover { background: var(--surface-2); }
.pick .ficon { width: 36px; height: 44px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; font: 700 9.5px var(--mono); flex: none; }
.pick strong { display: block; font-weight: 550; font-size: 14px; }
.pick small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* ---- Review round 1 ---- */
.stage-inline .stage-scene { opacity: 1; transform: none; }
/* calmer review rows: confirm always visible, other actions on hover/active (desktop) */
@media (hover: hover) and (min-width: 961px) {
  .item .acts .btn-icon:not(.confirm) { opacity: 0; transition: opacity .15s var(--ease); }
  .item:hover .acts .btn-icon, .item.active .acts .btn-icon, .item:focus-within .acts .btn-icon { opacity: 1; }
}
.item .acts .confirm { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.item.is-confirmed::before, .item.is-edited::before { animation: barIn .2s var(--ease-out) both; }
@keyframes barIn { from { transform: scaleY(0); } }
.method { font-size: 12px; color: var(--ink-4); }
.method::before { content: "·"; margin-right: 6px; }
.prov { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--info); }
.prov .reasons { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.prov .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.opt-list { display: grid; gap: 6px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; text-align: left; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--ink-4); }
.opt .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: .15s; }
.opt[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); }
.opt[aria-checked="true"] .radio { border: 5px solid var(--accent); }
.kind.ocr { color: var(--warn); background: var(--warn-soft); }
.cv-pages.dim .cv-page * { color: #CFCBC2 !important; border-color: #EEEBE4 !important; }
.cv-pages.dim .cv-page .ev, .cv-pages.dim .cv-page .ev * { color: #1B1D21 !important; background: rgba(242, 201, 76, .3); }
.cv-pages .cv-page * { transition: color .3s var(--ease); }
.rules { display: grid; gap: 14px; }
.rules > div { display: grid; gap: 6px; }
.rules p { font-size: 14px; color: var(--ink-2); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); font: 600 11.5px var(--mono); color: var(--ink-2); }
.kbd-hint { flex: none; }
.keys { grid-template-columns: 80px 1fr; align-items: center; }
.rv-head .link { font-size: 14px; }
.rv-foot .btn-ink[disabled] { opacity: .35; }
/* editorial band (replaces principles grid) */
.editorial { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.editorial blockquote { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.015em; max-width: 980px; }
.editorial blockquote mark { background: linear-gradient(transparent 58%, var(--mark) 58%); color: inherit; padding: 0 .05em; }
.editorial .cap { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-3); font-size: 14.5px; }
.editorial .cap span { display: inline-flex; align-items: center; gap: 8px; }
.editorial .cap svg { color: var(--accent-text); }
/* invitations as stacked rows on phones */
@media (max-width: 640px) {
  .ref-table thead { display: none; }
  .ref-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .ref-table td { padding: 0; border: 0; }
  .ref-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ref-table td:last-child { grid-row: 1; grid-column: 2; align-self: center; }
  .ref-table .funnel i { flex: 1; width: auto; }
  .ref-table .funnel { width: 100%; }
  .rv-foot { display: grid; grid-template-columns: 1fr 1fr; }
  .rv-foot .msg { grid-column: 1 / -1; font-size: 13px; }
  .item-top { flex-wrap: nowrap; }
  .item .acts { width: auto; margin-top: 0; }
  .item .acts .btn-icon { width: 34px; height: 34px; }
}
.hero-media picture { display: contents; }
/* dark-mode refinements */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-nav .right .btn-ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); } }
:root[data-theme="dark"] .site-nav .right .btn-ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ladder { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; border-left: 1.5px solid var(--line-2); }
.ladder li { position: relative; padding: 4px 0 10px 18px; font-size: 13.5px; display: grid; gap: 1px; }
.ladder li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink-4); }
.ladder li:last-child::before { border-color: var(--warn); }
.ladder b { font-weight: 550; }
.ladder span { color: var(--ink-3); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mini-kpis > div { background: var(--surface-2); padding: 12px 14px; }
.mini-kpis b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.mini-kpis small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.hero-media { overflow: hidden; }
.kind, .state-chip { white-space: nowrap; }
.item .lbl { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 640px) {
  table.t.ref-table td { border: 0; padding: 0; }
  .item .method { display: none; }
}

/* ---- Motion / mobile round 2 ---- */
.stage-scene:not(.on) { transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.stage-scene.on { transition: opacity .5s .08s var(--ease), transform .6s .08s var(--ease-out); }
.stage[data-dir="up"] .stage-scene:not(.on) { transform: translateY(-8px); }
.hero.seen .fade-up, .hero.seen .proof-card, .hero.seen .hero-media img { animation: none; }
.sheet-scrim { z-index: 74; }
@media (min-width: 961px) { .sheet-scrim { display: none; } }
.cv-pane.sheet .cv-fab { min-height: 44px; }
.toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (max-width: 960px) {
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sticky-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .rv-list { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
  .cv-pane.sheet .cv-pages { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) {
  .btn-sm, .rv-tabs button, .seg button, .seg a, .chip, .btn-icon { min-height: 44px; }
  .btn-icon, .btn-icon.btn-sm { min-width: 44px; }
  .item .acts .btn-icon { width: 44px; height: 44px; }
  .ev-chip { min-height: 36px; }
  .toggle { width: 48px; height: 28px; }
  .toggle span::after { width: 22px; height: 22px; }
  .toggle input:checked + span::after { transform: translateX(20px); }
  .choice, .opt { min-height: 48px; }
  .check input { width: 22px; height: 22px; margin-top: 0; }
  .modal-foot .btn, .rc-actions .btn { min-height: 48px; }
  .tabbar a { font-size: 11.5px; min-height: 52px; }
  .skill .btn-icon { min-width: 32px; min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-scene, .stage-scene.on, .stage-scene:not(.on) { transition: opacity .2s linear !important; transform: none !important; }
}
