/* ============================================================
   LocusQuant v2 — parchment & ink, set like a ledger.
   Blackletter is a seal · ink means evidence · colour is status
   The quill follows, never gates · tabular figures · type leads
   ============================================================ */

:root {
    --bg: #efe6d1;
    --paper: #f7f0e0;
    --sunken: #e2d5b6;
    --ink: #17140d;
    --ink-2: #221e15;
    --ink-soft: #4c4840;
    --ink-mute: #666052;
    --line: rgba(23, 20, 13, 0.12);
    --line-soft: rgba(23, 20, 13, 0.06);
    --line-strong: rgba(23, 20, 13, 0.5);

    --cream: #f5f2ea;
    --cream-soft: rgba(245, 242, 234, 0.74);
    --cream-mute: rgba(245, 242, 234, 0.52);
    --cream-line: rgba(245, 242, 234, 0.14);

    --pass: #1f7a48;
    --held: #b02a1e;
    --pass-on-ink: #8cc5a0;
    --held-on-ink: #e3968a;
    --gold: #a8812f;
    --bg-elevated: var(--paper);
    --bg-sunken: var(--sunken);
    --cream-bright: #f7f4ee;
    --radius: 18px;

    --shadow-paper: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 1px 2px rgba(60, 44, 14, 0.06), 0 24px 48px -22px rgba(60, 44, 14, 0.28);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 2px 4px rgba(60, 44, 14, 0.06), 0 40px 80px -30px rgba(60, 44, 14, 0.38);

    --r: 22px;
    --r-lg: 32px;
    --maxw: 1240px;
    --gutter: 32px;
    --folio: 176px;

    --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --frak: "UnifrakturCook", "Pinyon Script", serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: 16px;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: clip;
    font-feature-settings: "ss01", "cv11";
}

/* Paper fibre: slow mottling (5%) + fine grain (12%), multiplied over
   everything including the ink panels so the site reads as one sheet.
   Absolute, not fixed: composited once rather than on every scroll frame. */
body::before,
body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

body::before {
    z-index: 9997;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='600'%20height='600'%3E%3Cfilter%20id='f'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.008'%20numOctaves='3'%20seed='7'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.35%200%200%200%200%200.28%200%200%200%200%200.14%200%200%200%201%200'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
    background-size: 600px 600px;
}

body::after {
    z-index: 9998;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.75'%20numOctaves='4'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%201.3%200'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 130px 130px;
}

a { color: inherit; }
svg { display: block; max-width: 100%; }
.num, table, time { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.ink :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

.skip-link {
    position: fixed; top: -60px; left: 12px; z-index: 3000;
    background: var(--ink); color: var(--paper);
    padding: 10px 18px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; text-decoration: none;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The seal: blackletter only for the marks and one word a page */
.wordmark, .loqos-mark, .seal-word { font-family: var(--frak); font-weight: 700; letter-spacing: 0; }
.loqos-mark { font-size: 1.1em; }
.seal-word { font-size: 1.04em; }

/* ------------------------------------------------------------
   HEADER — a floating instrument bar
   ------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 0;
    pointer-events: none;
}

.nav {
    max-width: calc(var(--maxw) - 2 * var(--gutter) + 24px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
    padding: 0 8px 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    pointer-events: auto;
    transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.site-header.scrolled .nav {
    background: rgba(247, 240, 224, 0.72);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    border-color: rgba(23, 20, 13, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 32px -16px rgba(60, 44, 14, 0.3);
}

.nav .wordmark {
    font-size: 1.7rem;
    line-height: 1;
    text-decoration: none;
    color: var(--ink);
    display: inline-grid;
}

.wm-full, .wm-short { grid-area: 1 / 1; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.wm-short { opacity: 0; transform: translateX(-6px); pointer-events: none; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links:focus { outline: none; }

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 8px 13px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover { color: var(--ink); background: rgba(23, 20, 13, 0.055); }
.nav-link[aria-current="page"] { color: var(--ink); }

.nav-cta { margin-left: 8px; }
.nav-note { display: none; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    position: relative;
    z-index: 2;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px 9px 14px;
    font: 500 0.85rem var(--sans);
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.bars { position: relative; display: inline-block; width: 16px; height: 10px; }
.bars i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.bars i:first-child { top: 1.5px; }
.bars i:last-child { top: 7px; }
.menu-open .bars i { top: 4.25px; }
.menu-open .bars i:first-child { transform: rotate(45deg); }
.menu-open .bars i:last-child { transform: rotate(-45deg); }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 0.92rem/1 var(--sans);
    letter-spacing: -0.01em;
    border-radius: 999px;
    padding: 15px 24px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.45s var(--spring), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
    will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.98) !important; }

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px -12px rgba(23, 20, 13, 0.55);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 32px -14px rgba(23, 20, 13, 0.6); }

.btn-ghost { background: rgba(247, 240, 224, 0.4); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--paper); }

.btn-sm { padding: 11px 18px; font-size: 0.85rem; }

.btn-meta { font: 500 0.78rem var(--mono); color: var(--ink-mute); }

.play-glyph {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--ink);
    position: relative;
    flex: none;
    margin-left: -6px;
}
.play-glyph::after {
    content: "";
    position: absolute;
    left: 8.5px; top: 6.5px;
    border-left: 7px solid var(--paper);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}

.ink .btn-primary { background: var(--cream); color: var(--ink); }
.ink .btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream-line); }
.ink .btn-ghost:hover { border-color: var(--cream-mute); background: rgba(245, 242, 234, 0.05); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reply-note { font-size: 0.8rem; color: var(--ink-mute); }

.text-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 1px;
    transition: background-size 0.4s var(--ease);
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.ink .text-link { color: var(--cream); }

/* ------------------------------------------------------------
   TYPE
   ------------------------------------------------------------ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.ink .eyebrow { color: var(--cream-mute); }

.display {
    font-size: clamp(2.6rem, 5.6vw, 4.9rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-wrap: balance;
}

.h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.042em;
    line-height: 1.04;
    text-wrap: balance;
}

.h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }

.lede { font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); max-width: 50ch; }
.body { font-size: 1rem; line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.small { font-size: 0.86rem; color: var(--ink-mute); }
.muted { color: var(--ink-mute); }
.ink .h2, .ink .h3 { color: var(--cream); }
.ink .body { color: var(--cream-soft); }
.ink .muted { color: var(--cream-mute); }

/* ------------------------------------------------------------
   SECTIONS — a ledger: folio column + content
   ------------------------------------------------------------ */
.sec { padding: 120px 0 0; position: relative; }

.sec-grid {
    display: grid;
    grid-template-columns: var(--folio) minmax(0, 1fr);
    gap: 0 48px;
    padding-top: 44px;
}

.folio { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.folio .no { font: 500 0.82rem var(--mono); color: var(--ink); letter-spacing: 0.04em; }
.folio .no::after { content: ""; display: block; width: 28px; height: 1px; background: var(--ink); margin-top: 10px; }

.sec-head .h2 { max-width: 20ch; }
.sec-head:not(:last-child) { margin-bottom: 52px; }
.sec-head .body { margin-top: 20px; }

.ledger {
    border: 0;
    height: 5px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    opacity: 0.55;
}
.ink .ledger { border-color: var(--cream); opacity: 0.4; }

/* Reveals: content is always on the page; motion nudges, never hides */
.has-motion [data-reveal] {
    transform: translateY(26px);
    filter: blur(3px);
    transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.has-motion [data-reveal].in { transform: none; filter: none; }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
    position: relative;
    padding: calc(150px + env(safe-area-inset-top, 0px)) 0 0;
    min-height: min(100dvh, 980px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.hero > .wrap { width: 100%; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 72px;
    align-items: center;
    width: 100%;
}

.hero .eyebrow .live-dot { margin-right: 2px; }
.hero .display { margin-top: 26px; max-width: 13ch; }
.hero .lede { margin-top: 30px; }
.hero .cta-row { margin-top: 40px; }
.hero .reply-note { margin-top: 16px; }

.underlined { position: relative; display: inline-block; white-space: nowrap; }
.scribble {
    position: absolute;
    left: -2%;
    bottom: -0.1em;
    width: 104%;
    height: 0.24em;
    overflow: visible;
    pointer-events: none;
}
.scribble path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
    vector-effect: non-scaling-stroke;
}
.has-motion .scribble path { stroke-dashoffset: 1; animation: draw 1.1s var(--ease) 1.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.quill-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

.hero-object { position: relative; perspective: 1400px; }
.hero-object .panel { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.9s var(--ease); transform-style: preserve-3d; }

.float-chip {
    position: absolute;
    left: -44px;
    bottom: -58px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(247, 240, 224, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(23, 20, 13, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 40px -20px rgba(60, 44, 14, 0.4);
    animation: float 7s ease-in-out infinite;
    z-index: 2;
}
.chip-k { font-size: 0.78rem; font-weight: 600; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* stats: the line under a total */
.hero .ledger { margin-top: 96px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 30px 0 8px; }
.stat { padding-right: 24px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat .num {
    font-size: clamp(2.2rem, 3.6vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}
.stat .num small { font-size: 0.5em; letter-spacing: -0.02em; margin-left: 2px; color: var(--ink-soft); }
.stat .label { margin-top: 10px; font-size: 0.86rem; color: var(--ink-mute); line-height: 1.4; max-width: 20ch; }

/* ------------------------------------------------------------
   PANELS & AUDIT TRAIL
   ------------------------------------------------------------ */
.panel {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    padding: 22px 24px 18px;
    box-shadow: var(--shadow-lift);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}
.panel-title { font-size: 0.95rem; font-weight: 600; }

.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--pass); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.log {
    display: grid;
    grid-template-columns: 66px 80px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.8rem;
}
.lqm-logview .log:last-child, .audit-log > .log:last-child { border-bottom: 0; }
.log .t { color: var(--ink-mute); font: 0.74rem var(--mono); font-variant-numeric: tabular-nums; }
.log .ag { font-weight: 600; }
.log .desc { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel-foot { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--ink-mute); }

.st { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.st-pass { color: var(--pass); }
.st-held { color: var(--held); }
.st-neutral { color: var(--ink-mute); }
.ink .st-pass { color: var(--pass-on-ink); }
.ink .st-held { color: var(--held-on-ink); }

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    background: rgba(247, 240, 224, 0.6);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-available { color: var(--pass); border-color: rgba(31, 122, 72, 0.28); }
.status-pilot { color: var(--ink); }
.status-build { border-style: dashed; border-color: var(--line-strong); }
.status-build::before { background: transparent; border: 1px dashed currentColor; }

/* ------------------------------------------------------------
   03 · PROBLEM — words take ink as you read
   ------------------------------------------------------------ */
.sec-problem { padding-top: 140px; }
.sec-problem .sec-grid { padding-top: 0; }

.illuminate {
    font-size: clamp(1.7rem, 3.4vw, 2.9rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.16;
    max-width: 24ch;
    color: var(--ink);
}
.illuminate .w { color: rgba(23, 20, 13, var(--a, 1)); transition: color 0.3s linear; }

.answer {
    margin-top: 40px;
    font-size: clamp(1.7rem, 3.4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.seal-stamp { font-family: var(--frak); font-weight: 700; letter-spacing: 0; font-size: 1.08em; }

/* ------------------------------------------------------------
   04 · INSTRUMENTS — an asymmetric bento
   ------------------------------------------------------------ */
.bento {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 64px;
}

.inst {
    --mx: 50%; --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 32px 26px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-paper);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.6s var(--spring), box-shadow 0.6s var(--ease);
}
/* spotlight: the paper catches light under the cursor */
.inst::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 252, 240, 0.95), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.inst::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(23, 20, 13, 0.4), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}
.inst:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.inst:hover::before, .inst:hover::after { opacity: 1; }
.inst:active { transform: translateY(-1px) scale(0.995); }

.inst-lead { grid-row: span 2; padding: 40px 40px 30px; }

.inst .lqm-mark { width: 56px; height: 56px; margin: 0 0 6px -4px; }
.inst-lead .lqm-mark { width: 72px; height: 72px; }

.inst-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inst-for { font-size: 0.78rem; color: var(--ink-mute); }

.inst-name { font-size: clamp(1.8rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-top: 8px; }
.inst-lead .inst-name { font-size: clamp(2.6rem, 4vw, 3.6rem); }
.inst-name sub { display: block; margin-top: 10px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--ink-mute); vertical-align: baseline; }

.inst-line { font-size: 1rem; color: var(--ink-soft); line-height: 1.55; max-width: 36ch; }
.inst-lead .inst-line { font-size: 1.18rem; max-width: 30ch; color: var(--ink); }

.sharpe { margin-top: auto; padding-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sharpe-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--ink-soft); }
.sharpe-row b { font-size: 1.1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.sharpe-row .bar {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--ink);
    width: calc(var(--w) * 100%);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 1.4s var(--ease) 0.2s;
}
.sharpe-row.is-true .bar { background: var(--gold); }
.has-motion .bento:not(.in) .sharpe-row .bar { transform: scaleX(0); }
.sharpe-row.is-true b { color: var(--ink); }

.mini-cap { font-size: 0.74rem; color: var(--ink-mute); }

.inst-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
    font-weight: 500;
}
.inst-lead .inst-foot { margin-top: 10px; }
.inst-foot .arrow {
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    transition: transform 0.5s var(--spring), background 0.3s var(--ease), color 0.3s var(--ease);
}
.inst:hover .inst-foot .arrow { transform: translateX(4px); background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* In build: dashed outlines only */
.peek-rail {
    margin-top: 20px;
    padding: 24px 28px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px 36px;
}
.peek-rail-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.peek-marks { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.peek-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px 10px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--spring);
}
.peek-chip:hover { background: rgba(247, 240, 224, 0.8); color: var(--ink); transform: translateY(-2px); }
.peek-chip .lqm-mark { width: 44px; height: 44px; margin: 0; }

/* ------------------------------------------------------------
   05 · THE FILM — the lights go down
   ------------------------------------------------------------ */
.film-head .body { max-width: 52ch; }

.theater {
    --dim: 0;
    position: relative;
    margin-top: 56px;
    padding: 72px 0 64px;
    isolation: isolate;
}
.theater-dim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70% 60% at 50% 40%, var(--ink-2), var(--ink));
    opacity: var(--dim);
}

.theater-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

.screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 50px 100px -40px rgba(23, 20, 13, calc(0.35 + var(--dim) * 0.4)),
        0 0 0 calc(var(--dim) * 10px) rgba(245, 242, 234, calc(var(--dim) * 0.04));
    transform: scale(calc(0.94 + var(--dim) * 0.06));
    transition: transform 0.2s linear;
}
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity 0.8s var(--ease); }
.screen.is-ready iframe { opacity: 1; }

.screen-skeleton { position: absolute; inset: 0; padding: 9% 7%; display: grid; align-content: start; gap: 18px; }
.screen-skeleton span { display: block; height: 22px; border-radius: 8px; background: linear-gradient(100deg, var(--sunken) 30%, var(--paper) 50%, var(--sunken) 70%); background-size: 300% 100%; animation: shimmer-sk 1.6s linear infinite; opacity: 0.7; }
.screen-skeleton span:nth-child(1) { width: 18%; height: 18px; }
.screen-skeleton span:nth-child(2) { width: 56%; height: 64px; margin-top: 40px; }
.screen-skeleton span:nth-child(3) { width: 38%; }
.screen.is-ready .screen-skeleton { display: none; }
@keyframes shimmer-sk { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* console: one paper pill, legible whether the room is lit or dark */
.console {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 8px 10px 8px 8px;
    border-radius: 999px;
    background: rgba(247, 240, 224, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(23, 20, 13, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 20px 40px -24px rgba(23, 20, 13, 0.5);
    max-width: 880px;
    width: 100%;
    margin: 6px auto 0;
}

.console-play, .console-full {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    transition: transform 0.4s var(--spring), background 0.25s var(--ease);
}
.console-play { background: var(--ink); color: var(--paper); }
.console-full { background: transparent; color: var(--ink); }
.console-full:hover { background: rgba(23, 20, 13, 0.06); }
.console-play:active, .console-full:active { transform: scale(0.92); }
.console-play svg, .console-full svg { width: 18px; height: 18px; }
.console-play path, .console-full path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.console-play .i-play { fill: currentColor; stroke-width: 1.5; display: none; }
.console-play.is-paused .i-play { display: block; }
.console-play.is-paused .i-pause { display: none; }

.console-track { position: relative; height: 26px; cursor: pointer; touch-action: none; }
.console-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--sunken); }
.track-fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--ink); width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); }
.track-ticks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.track-ticks i { position: absolute; top: 50%; width: 2px; height: 10px; margin: -5px 0 0 -1px; background: var(--bg); border-radius: 1px; }
.console-track:focus-visible { outline-offset: 2px; }

.console-time { font: 500 0.78rem var(--mono); color: var(--ink-mute); white-space: nowrap; min-width: 92px; text-align: right; }

.chapters { max-width: 880px; width: 100%; margin: 0 auto; }
.chapters ol {
    list-style: none;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    scroll-padding-inline: 40%;
}
.chapters ol::-webkit-scrollbar { display: none; }
.chapters li:first-child { margin-left: 16px; }
.chapters li:last-child { margin-right: 16px; }
.chapters button {
    position: relative;
    font: 500 0.8rem var(--sans);
    letter-spacing: -0.005em;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: color-mix(in oklab, var(--ink-soft) calc((1 - var(--dim)) * 100%), var(--cream-mute));
    cursor: pointer;
    transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chapters button:hover { color: color-mix(in oklab, var(--ink) calc((1 - var(--dim)) * 100%), var(--cream)); }
.chapters button[aria-current="true"] { background: var(--paper); color: var(--ink); border-color: rgba(23, 20, 13, 0.08); }
.chapters .no { font-family: var(--mono); font-size: 0.7rem; opacity: 0.6; margin-right: 6px; }

/* the stack beneath */
.stack { margin-top: 72px; }
.stack-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stack-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 108px;
    padding: 18px 20px;
    border-radius: 20px 20px 8px 8px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-paper);
    text-decoration: none;
    color: inherit;
}
.stack-block .k { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.03em; }
.stack-block .v { font: 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
.stack-block.ghost { background: transparent; border: 1px dashed var(--line-strong); box-shadow: none; transition: background 0.3s var(--ease); }
.stack-block.ghost:hover { background: rgba(247, 240, 224, 0.6); }
.stack-block.ghost .k { color: var(--ink-soft); }
.stack-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 22px 30px;
    border-radius: 8px 8px 22px 22px;
    background: var(--ink);
    color: var(--cream);
}
.stack-base .loqos-mark { font-size: 2rem; line-height: 1; }
.stack-base span + span { font-size: 0.86rem; color: var(--cream-mute); }
.stack-caption { margin-top: 24px; }

/* ------------------------------------------------------------
   06 · EVIDENCE — ink means evidence
   ------------------------------------------------------------ */
.ink {
    background: var(--ink);
    color: var(--cream);
    border-radius: 40px;
    padding: 88px 72px 72px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.ink::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(900px 500px at 85% -10%, rgba(245, 242, 234, 0.07), transparent 60%);
}
.ink-head .h2 { margin-top: 18px; max-width: 18ch; }

.evidence {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.ev {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    border-radius: 26px;
    background: rgba(245, 242, 234, 0.04);
    border: 1px solid var(--cream-line);
    box-shadow: inset 0 1px 0 rgba(245, 242, 234, 0.06);
}
.ev-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-mute); }
.ev .body { color: var(--cream-soft); font-size: 0.95rem; }
.ev-foot { margin-top: auto; padding-top: 6px; font-size: 0.9rem; }

.report {
    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    padding: 24px 24px 0;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    transform: rotate(-1.2deg);
    transition: transform 0.8s var(--spring);
}
.ev-report:hover .report { transform: rotate(0deg) translateY(-4px); }
.report-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 3px double var(--ink); font-size: 0.72rem; color: var(--ink-mute); }
.report-head .wordmark { font-size: 1.3rem; color: var(--ink); }
.report h3 { margin-top: 16px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.report .sub { font-size: 0.8rem; color: var(--ink-mute); margin-top: 2px; }
.report table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.86rem; }
.report td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.report td:last-child { text-align: right; font-weight: 600; }
.report .st-held { color: var(--held); }
.report .verdict { margin: 14px -24px 0; padding: 14px 24px 18px; background: var(--sunken); border-radius: 0 0 14px 14px; font-size: 0.84rem; color: var(--ink-soft); }
.specimen-note { font-size: 0.76rem; color: var(--cream-mute); }

.ev-big { display: flex; align-items: baseline; gap: 12px; }
.ev-big .num { font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; }
.ev-big small { font-size: 1rem; color: var(--cream-mute); }

.neff-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 34px; }
.neff-dots i {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--ink);
    animation: dot-in 0.5s var(--spring) both;
    animation-delay: calc(var(--i, 0) * 30ms);
}
@keyframes dot-in { from { transform: scale(0.3); } to { transform: none; } }
.neff-dots .eq { color: var(--ink-mute); font-size: 0.9rem; margin: 0 6px; }
.neff-dots i.part { background: linear-gradient(to right, var(--ink) var(--f, 50%), transparent var(--f, 50%)); border: 1px solid var(--line-strong); }
.ink .neff-dots i { background: var(--cream); }
.ink .neff-dots .eq { color: var(--cream-mute); }
.ink .neff-dots i.part { background: linear-gradient(to right, var(--cream) var(--f, 50%), transparent var(--f, 50%)); border-color: var(--cream-mute); }

.neff-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 14px 0 4px; border-top: 1px solid var(--cream-line); }
.slider { display: grid; gap: 8px; font-size: 0.8rem; color: var(--cream-mute); }
.slider span { display: flex; justify-content: space-between; }
.slider b { color: var(--cream); font-weight: 600; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--cream-line); }
.slider input::-moz-range-track { height: 3px; border-radius: 2px; background: var(--cream-line); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: var(--cream); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--spring); }
.slider input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 0; }
.slider input:active::-webkit-slider-thumb { transform: scale(1.2); }

.ev-quote {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 40px 6px 0;
    border-top: 1px solid var(--cream-line);
    margin-top: 16px;
}
.ev-quote p { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; }

/* ------------------------------------------------------------
   07 · OUR OWN FUND
   ------------------------------------------------------------ */
.fund-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    margin-top: 56px;
    padding-left: calc(var(--folio) + 48px);
}
.mock-ticker { font: 0.78rem var(--mono); color: var(--ink-mute); padding: 12px 0; }
.desk { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 0.92rem; }
.verdict-line { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.conf { height: 4px; background: var(--sunken); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.conf i { display: block; height: 100%; width: 54%; background: var(--ink); border-radius: 2px; animation: confidence 5s var(--ease) infinite alternate; }
@keyframes confidence { from { width: 40%; } to { width: 58%; } }

.pipeline { position: relative; padding-left: 34px; }
.pipeline-line { position: absolute; left: 7px; top: 14px; bottom: 74px; width: 2px; height: calc(100% - 88px); overflow: visible; }
.pipeline-line path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.pipeline::before { content: ""; position: absolute; left: 7px; top: 14px; height: calc(100% - 88px); width: 0; border-left: 2px dotted var(--line-strong); opacity: 0.4; }

.stages { list-style: none; counter-reset: st; }
.stages li {
    position: relative;
    counter-increment: st;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink-soft);
}
.stages li::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 50%;
    width: 12px; height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--ink-mute);
}
.stages li.is-live { color: var(--ink); font-weight: 600; }
.stages li.is-live::before { background: var(--pass); border-color: var(--pass); box-shadow: 0 0 0 5px rgba(31, 122, 72, 0.14); }
.stages .tag { font: 500 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.stages .tag.on { color: var(--pass); }
.stages-note { margin-top: 20px; max-width: 48ch; }

/* ------------------------------------------------------------
   08 · WHO
   ------------------------------------------------------------ */
.rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 56px;
    padding-left: calc(var(--folio) + 48px);
    border-top: 1px solid var(--line);
}
.row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 28px 28px 28px 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.4s var(--ease);
}
.row:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.row-no { font: 500 0.78rem var(--mono); color: var(--ink-mute); padding-top: 4px; }
.row p { grid-column: 2; color: var(--ink-soft); font-size: 0.95rem; }

.founders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 72px;
    padding-left: calc(var(--folio) + 48px);
}
.founder {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
    border-radius: var(--r);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-paper);
}
.monogram {
    display: grid; place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(245, 242, 234, 0.4);
}
.founder .name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.025em; }
.founder .role { font-size: 0.8rem; color: var(--ink-mute); margin-top: 2px; }
.founder p { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }
.founder .btn { margin-top: 18px; }

/* ------------------------------------------------------------
   09 · CLOSE + FAQ
   ------------------------------------------------------------ */
.sec-close, main > .sec:last-child { padding-bottom: 140px; }
.close {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    padding-top: 64px;
}
.close .display { max-width: 11ch; font-size: clamp(2.4rem, 5vw, 4.3rem); }
.close .cta-row { margin-top: 36px; }
.close .reply-note { margin-top: 14px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex: none;
    width: 12px; height: 12px;
    background:
        linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
    transition: transform 0.5s var(--spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 58ch; }
.faq details[open] p { animation: faq-in 0.5s var(--ease); }
@keyframes faq-in { from { transform: translateY(-6px); } to { transform: none; } }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--cream); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 88px; }
.foot-top p { max-width: 44ch; color: var(--cream-soft); font-size: 0.95rem; }
.foot-col h3 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-mute); margin-bottom: 14px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: var(--cream); text-decoration: none; font-size: 0.95rem; opacity: 0.85; transition: opacity 0.2s var(--ease); }
.foot-col a:hover { opacity: 1; }

.foot-wordmark {
    display: block;
    text-align: center;
    font-family: var(--frak);
    font-weight: 700;
    white-space: nowrap;
    line-height: 0.9;
    letter-spacing: -0.015em;
    font-size: clamp(4.4rem, 16vw, 15.5rem);
    padding: 56px 0 0.16em;
    user-select: none;
    background: linear-gradient(100deg, rgb(150, 128, 204) 0%, rgb(110, 178, 200) 22%, rgb(150, 196, 132) 44%, rgb(220, 156, 120) 66%, rgb(212, 142, 184) 84%, rgb(150, 128, 204) 100%);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 18s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% center; } to { background-position: 100% center; } }
.foot-wordmark .short { display: none; }
.foot-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 0 44px; border-top: 1px solid var(--cream-line); font-size: 0.82rem; color: var(--cream-mute); }

/* ------------------------------------------------------------
   SUB-PAGES — page hero, with an instrument plate when there is one
   ------------------------------------------------------------ */
.page-hero {
    position: relative;
    padding: calc(160px + env(safe-area-inset-top, 0px)) 0 40px;
    isolation: isolate;
}
.page-hero .eyebrow { margin-bottom: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.page-hero .display { max-width: 17ch; }
.page-hero .lede { margin-top: 28px; }
.page-hero .cta-row { margin-top: 38px; }
.page-hero .reply-note { margin-top: 14px; }

.page-hero-grid {
    perspective: 1400px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 72px;
    align-items: center;
}

.crumb {
    font-size: 0.82rem;
    color: var(--ink-mute);
    text-decoration: none;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.crumb:hover { color: var(--ink); border-color: var(--ink); }

/* the plate: one instrument mark, set like a coin in a case */
.hero-plate {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: 44px 36px 30px;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lift);
    cursor: default;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.9s var(--ease);
}
.hero-plate::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--r-lg) - 12px);
    border: 1px solid var(--line-soft);
    pointer-events: none;
}
.hero-plate .lqm-mark { width: min(240px, 70%); height: auto; aspect-ratio: 1; margin: 0; }
.hero-plate.is-wide .lqm-mark { aspect-ratio: 120 / 72; width: min(300px, 86%); }
.plate-cap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--ink-mute);
}
.plate-cap b { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* the cabinet: every mark at once, a wave running through them */
.cabinet {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lift);
}
.cab-cell {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 14px 6px 10px;
    border-radius: 16px;
    background: var(--bg);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.3s var(--ease), transform 0.5s var(--spring);
}
.cab-cell:hover { background: rgba(255, 252, 240, 0.9); transform: translateY(-2px); }
.cab-cell.is-build { background: transparent; border: 1px dashed var(--line-strong); }
.cab-cell.is-wide { grid-column: span 2; }
.cab-cell .lqm-mark { width: 52px; height: 52px; margin: 0; }
.cab-cell.is-wide .lqm-mark { width: 86px; height: 52px; }

/* product page: the buyer's question, quoted */
.buyer-q {
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.12;
    max-width: 26ch;
    text-indent: -0.42em;
}
.buyer-q-cite { margin-top: 20px; font-size: 0.86rem; color: var(--ink-mute); }

.ink .receive {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}
.receive .h2 { max-width: 14ch; }
.receive .body { margin-top: 18px; }
.receive .report { transform: rotate(1deg); }
.receive .report:hover { transform: none; }

.verbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.verb { padding: 30px 24px 8px 0; }
.verb + .verb { padding-left: 24px; border-left: 1px solid var(--line); }
.verb .no { font: 500 0.76rem var(--mono); color: var(--ink-mute); }
.verb .k { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.045em; margin: 14px 0 8px; }
.verb p { font-size: 0.94rem; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }

.claim {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.22;
    padding-top: 24px;
    border-top: 1px solid var(--ink);
    max-width: 34ch;
}
.claim + .claim { margin-top: 36px; }

.list { list-style: none; border-top: 1px solid var(--line); }
.list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.98rem;
}
.list li::before { content: "\2014"; color: var(--ink-mute); }
.list-title { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }

a.seal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    text-decoration: none;
    font-size: 0.82rem;
    color: var(--ink-soft);
    box-shadow: var(--shadow-paper);
    transition: border-color 0.2s var(--ease);
}
a.seal:hover { border-color: var(--line-strong); }
a.seal .loqos-mark { font-size: 1.3rem; color: var(--ink); line-height: 1; }
.sec-tight { padding: 64px 0 120px; }

/* scribe specimen */
.claim-check { border: 1px solid var(--cream-line); border-radius: 18px; padding: 20px 22px; background: rgba(245, 242, 234, 0.03); }
.claim-check + .claim-check { margin-top: 12px; }
.claim-check .cc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-mute); margin-bottom: 10px; }
.claim-check .cc-claim { color: var(--cream-bright); font-size: 1rem; font-weight: 600; }
.claim-check .cc-src { margin-top: 10px; font-size: 0.88rem; color: var(--cream-soft); padding-left: 14px; border-left: 2px solid var(--cream-line); }
.claim-check mark {
    color: var(--cream-bright);
    border-radius: 3px;
    padding: 0 2px;
    background: linear-gradient(rgba(245, 242, 234, 0.16), rgba(245, 242, 234, 0.16)) no-repeat 0 0 / 100% 100%;
    transition: background-size 1.1s var(--ease) 0.3s;
}
.has-motion .claim-check:not(.is-in) mark { background-size: 0% 100%; }
.claim-check .st { opacity: 1; transition: opacity 0.4s var(--ease) 1.2s; }
.has-motion .claim-check:not(.is-in) .st { opacity: 0; }

/* tare specimen bars */
.feed {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 54px;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.82rem;
    color: var(--ink-soft);
}
.feed .bar { height: 6px; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.feed .bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transform-origin: left; transition: transform 1.3s var(--ease); }
.feed:nth-of-type(2) .bar i { transition-delay: 0.08s; }
.feed:nth-of-type(3) .bar i { transition-delay: 0.16s; }
.feed:nth-of-type(4) .bar i { transition-delay: 0.24s; }
.feed:nth-of-type(5) .bar i { transition-delay: 0.32s; }
.feed:nth-of-type(6) .bar i { transition-delay: 0.4s; }
.feed:nth-of-type(7) .bar i { transition-delay: 0.48s; }
.has-motion .report:not(.is-in) .feed .bar i { transform: scaleX(0); }
.feed b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.report table tr td { transition: transform 0.8s var(--ease); }

/* instruments index */
.inst-rows { border-top: 1px solid var(--ink); }
.inst-row {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
    gap: 32px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    isolation: isolate;
}
.inst-row::before {
    content: "";
    position: absolute;
    inset: 0 -24px;
    z-index: -1;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-paper);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s var(--ease), transform 0.6s var(--spring);
}
.inst-row:hover::before { opacity: 1; transform: none; }
.inst-row .lqm-mark { width: 72px; height: 72px; margin: 0; }
.inst-row .inst-name { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: 0; }
.inst-row .inst-for { display: block; margin-top: 10px; }
.inst-row .inst-line { margin-top: 0; max-width: 44ch; }
.inst-row .go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--spring);
}
.inst-row:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateX(4px); }

/* in build: dashed, never inked */
.peek-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.peek {
    display: flex;
    flex-direction: column;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r);
    padding: 28px 28px 24px;
    transition: background 0.3s var(--ease), transform 0.6s var(--spring);
}
.peek:hover { background: rgba(247, 240, 224, 0.6); transform: translateY(-2px); }
.peek:last-child:nth-child(odd) { grid-column: 1 / -1; }
.peek .lqm-mark { width: 56px; height: 56px; margin: 0 0 18px -4px; }
.peek-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.peek-kind { font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.peek-name { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink-soft); }
.peek-line { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
.redact { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 0.74rem; color: var(--ink-mute); }
.redact i { flex: 0 0 auto; width: 38%; max-width: 180px; height: 10px; border-radius: 2px; background: repeating-linear-gradient(135deg, rgba(23, 20, 13, 0.16) 0 2px, transparent 2px 6px); background-size: 200% 100%; animation: hatch 6s linear infinite; }
@keyframes hatch { to { background-position: -48px 0; } }
.peek-foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.peek-foot .small { font-size: 0.8rem; }

/* specimen report sheet */
.specimen-banner { max-width: 820px; margin: 0 auto 18px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 0.86rem; color: var(--ink-soft); }
.specimen-banner strong { color: var(--ink); }
.sheet {
    max-width: 820px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 60px 68px 44px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 2px 4px rgba(60, 44, 14, 0.05), 0 60px 100px -50px rgba(60, 44, 14, 0.5);
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 3px double var(--ink); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.sheet-head .wordmark { font-size: 1.9rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sheet-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 6px 0 8px; }
.sheet-meta div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet-meta dt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.sheet-meta dd { margin-top: 3px; font-size: 0.95rem; }
.sheet-sec { padding-top: 36px; }
.sheet-sec h2 { display: flex; gap: 14px; align-items: baseline; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 12px; }
.sheet-sec h2 .num { font: 500 0.76rem var(--mono); color: var(--ink-mute); }
.sheet-sec > p { font-size: 0.98rem; color: var(--ink-soft); max-width: 62ch; }
.sheet-verdict { font-size: 1.15rem !important; line-height: 1.55; color: var(--ink) !important; }
.sheet .ledger-table td.r { text-align: right; padding-right: 0; color: var(--ink); }
.sheet-fig { margin-top: 18px; }
.sheet-fig svg { width: 100%; height: auto; }
.sheet-fig figcaption { margin-top: 8px; font-size: 0.76rem; color: var(--ink-mute); }
.sheet-fig rect { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 22ms); }
.has-motion .sheet-fig:not(.is-in) rect { transform: scaleY(0); }
.sheet-foot { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-mute); }

/* LoQOS page */
.spec-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 1px solid var(--ink); }
.spec { padding: 28px 0; border-bottom: 1px solid var(--line); }
.spec .k { font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.spec .h3 { margin-bottom: 6px; }
.spec p { font-size: 0.97rem; color: var(--ink-soft); }

.promises { list-style: none; counter-reset: p; }
.promises li {
    counter-increment: p;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.28;
}
.promises li:first-child { border-top-color: var(--ink); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises li::before { content: counter(p, decimal-leading-zero); font: 500 0.78rem var(--mono); color: var(--ink-mute); padding-top: 0.55em; }
.promises li span { display: block; margin-top: 8px; font-size: 0.97rem; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-soft); }

.phases { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.phases li { padding: 28px 24px 8px 0; }
.phases li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.phases .no { font: 500 0.76rem var(--mono); color: var(--ink-mute); }
.phases .h3 { margin: 12px 0 6px; }
.phases p { font-size: 0.94rem; color: var(--ink-soft); }

.stack-drawing { margin-top: 8px; }
.stack-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stack-block.fund { background: var(--sunken); }
.stack-drawing .stack-block, .stack .stack-block { transition: transform 0.9s var(--spring); }
.has-motion .stack-drawing:not(.is-in) .stack-block, .has-motion .stack:not(.is-in) .stack-block { transform: translateY(-14px); }
.stack-drawing .stack-block:nth-child(2), .stack .stack-block:nth-child(2) { transition-delay: 0.06s; }
.stack-drawing .stack-block:nth-child(3), .stack .stack-block:nth-child(3) { transition-delay: 0.12s; }
.stack-drawing .stack-block:nth-child(4), .stack .stack-block:nth-child(4) { transition-delay: 0.18s; }
.stack-drawing .stack-block:nth-child(5) { transition-delay: 0.24s; }

/* roadmap */
.timeline { list-style: none; border-top: 1px solid var(--ink); }
.timeline li {
    display: grid;
    grid-template-columns: 56px minmax(0, 0.8fr) minmax(0, 1.4fr) 120px;
    gap: 24px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.timeline .no { font: 500 0.78rem var(--mono); color: var(--ink-mute); }
.timeline .h3 { font-size: 1.35rem; }
.timeline p { color: var(--ink-soft); font-size: 0.97rem; }
.timeline .when { font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); text-align: right; }
.timeline .when.now { color: var(--pass); display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.timeline .when.now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); animation: ping-dot 2.4s var(--ease) infinite; }
@keyframes ping-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 72, 0.35); } 60% { box-shadow: 0 0 0 7px rgba(31, 122, 72, 0); } }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.97rem; }
.ledger-table th, .ledger-table td { text-align: left; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ledger-table thead th { font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); border-bottom: 1px solid var(--ink); }
.ledger-table td { color: var(--ink-soft); }
.ledger-table td.who { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.ledger-table tr.human td { background: rgba(226, 213, 182, 0.55); }
.ledger-table tr.human td:first-child { padding-left: 12px; }

/* research */
.notes { list-style: none; border-top: 1px solid var(--ink); }
.note-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 150px;
    gap: 24px;
    align-items: baseline;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.note-row .no { font: 500 0.78rem var(--mono); color: var(--ink-mute); }
.note-row .h3 { font-size: 1.35rem; }
.note-row .h3 a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.5s var(--ease); }
.note-row:hover .h3 a { background-size: 100% 1px; }
.note-row p { margin-top: 8px; font-size: 0.95rem; color: var(--ink-soft); max-width: 60ch; }
.note-row .when { font: 0.76rem var(--mono); color: var(--ink-mute); text-align: right; }

.article { max-width: 68ch; }
.article p { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.article p + p { margin-top: 20px; }
.article h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; margin: 44px 0 12px; }
.article strong { color: var(--ink); font-weight: 600; }
.byline { display: flex; gap: 18px; flex-wrap: wrap; font: 0.78rem var(--mono); color: var(--ink-mute); margin-bottom: 40px; }

/* reading progress: a ledger rule under the header */
.read-progress {
    position: fixed;
    left: 0;
    top: 0;
    height: 2px;
    width: 100%;
    z-index: 1001;
    background: var(--ink);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    pointer-events: none;
}

/* maths page */
.maths-item { padding: 56px 0; border-bottom: 1px solid var(--line); }
.maths-item:first-child { padding-top: 0; }
.maths-item .tag { font: 500 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.maths-item .h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 26ch; margin-bottom: 16px; }
.formula-box {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-paper);
    border-radius: var(--r);
    padding: 26px 28px;
    margin: 26px 0;
    overflow-x: auto;
    text-align: center;
    max-width: 680px;
}
.formula-note { font-size: 0.86rem; color: var(--ink-mute); margin-top: 10px; max-width: 65ch; }
.slider-row { margin: 20px 0 6px; max-width: 520px; }
.slider-row label { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.slider-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.slider-row input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--line-strong); }
.slider-row input::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line-strong); }
.slider-row input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 2px 8px rgba(23, 20, 13, 0.3); transition: transform 0.3s var(--spring); }
.slider-row input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); }
.slider-row input:active::-webkit-slider-thumb { transform: scale(1.2); }
.slider-out { margin: 22px 0 6px; }
.slider-out .num { font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.slider-out .label { margin-top: 6px; font-size: 0.82rem; color: var(--ink-mute); }
[data-neff] > .neff-dots { margin: 18px 0 4px; }
.worked { background: var(--sunken); border-radius: var(--r); padding: 22px 24px; margin: 24px 0; max-width: 760px; }
.worked .ledger-table { min-width: 480px; font-size: 0.9rem; }
.quote-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; max-width: 760px; }
.quote-card { border-radius: 16px; padding: 20px 22px; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); border: 1px solid var(--line); background: rgba(247, 240, 224, 0.5); }
.quote-card .st { display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.what-this-means { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--ink-mute); max-width: 65ch; }
.used-by { margin-top: 16px; font-size: 0.88rem; color: var(--ink-soft); }

/* the close on sub-pages: statement left, words right */
.close > div:only-child, .close > div + div { align-self: end; }

/* staggered lists: each row arrives a beat after the last */
.has-motion [data-stagger] > * { transform: translateY(18px); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.has-motion [data-stagger].is-in > * { transform: none; }

@media (max-width: 1100px) {
    .page-hero-grid { gap: 48px; }
    .phases { grid-template-columns: minmax(0, 1fr); }
    .phases li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
    .page-hero { padding-top: 130px; }
    .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-plate { max-width: 420px; }
    .cabinet { max-width: 520px; }
    .ink .receive { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .verbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .verb:nth-child(3) { padding-left: 0; border-left: 0; }
    .verb:nth-child(n+3) { border-top: 1px solid var(--line); }
    .stack-row.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline li { grid-template-columns: 44px minmax(0, 1fr); }
    .timeline li > p, .timeline .when { grid-column: 2; text-align: left; }
    .timeline .when.now { justify-content: flex-start; }
    .inst-row { grid-template-columns: 64px minmax(0, 1fr); gap: 16px 20px; }
    .inst-row > :nth-child(3), .inst-row .go { grid-column: 2; justify-self: start; }
    .inst-row::before { inset: 0 -12px; }
}

@media (max-width: 680px) {
    .page-hero { padding-top: 110px; padding-bottom: 24px; }
    .verbs, .split, .peek-grid, .spec-rows, .quote-pair, .sheet-meta { grid-template-columns: minmax(0, 1fr); }
    .verb, .verb + .verb { padding-left: 0; border-left: 0; }
    .verb + .verb { border-top: 1px solid var(--line); }
    .stack-row.five { grid-template-columns: minmax(0, 1fr); }
    .note-row { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
    .note-row .when { grid-column: 2; text-align: left; }
    .promises li { grid-template-columns: 40px minmax(0, 1fr); }
    .buyer-q { text-indent: 0; }
    .peek { padding: 24px 22px 20px; }
    .sheet { padding: 32px 20px 26px; margin: 0 -8px; }
    .cabinet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cab-cell.is-wide { grid-column: span 3; }
    .sec-tight { padding: 48px 0 88px; }
}

@media print {
    body { background: #fff; }
    body::before, body::after, .site-header, .site-footer, .page-hero, .close, .close + *, .ledger, .quill-canvas, .modal-overlay, .read-progress { display: none !important; }
    .sec { padding: 0 !important; }
    .sheet { box-shadow: none; border: 0; padding: 0; max-width: none; }
    .specimen-banner { border-style: solid; }
    .sheet-sec { break-inside: avoid; }
}

/* ------------------------------------------------------------
   CONTACT MODAL (markup injected by app.js)
   ------------------------------------------------------------ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(23, 20, 13, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.modal-overlay.open { display: flex; animation: fade 0.3s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    position: relative; width: 100%; max-width: 480px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 32px 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 40px 90px rgba(23, 20, 13, 0.28);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    animation: pop 0.55s var(--spring);
}
@keyframes pop { from { transform: translateY(16px) scale(0.97); } to { transform: none; } }
.modal-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: transparent; border: none; color: var(--ink-mute); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--ink); background: rgba(23, 20, 13, 0.05); }
.modal-heading { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.035em; margin-bottom: 4px; }
.modal-recipient { font-size: 0.86rem; color: var(--ink-mute); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); }
.modal-input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font: 0.95rem var(--sans); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.modal-input::placeholder { color: var(--ink-mute); opacity: 0.8; }
.modal-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 20, 13, 0.08); }
.modal-input[aria-invalid="true"] { border-color: var(--held); }
.modal-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.modal-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.modal-submit { width: 100%; margin-top: 22px; background: var(--ink); color: var(--paper); border: none; padding: 15px 24px; font: 600 0.95rem var(--sans); border-radius: 999px; cursor: pointer; transition: transform 0.4s var(--spring), opacity 0.2s var(--ease); }
.modal-submit:hover:not(:disabled) { transform: translateY(-1px); }
.modal-submit:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.modal-submit:disabled { opacity: 0.5; cursor: progress; }
.modal-promise { margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--ink-mute); }
.modal-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.modal-status.pending { color: var(--ink-soft); }
.modal-status.success { color: var(--pass); font-weight: 600; }
.modal-status.failure { color: var(--held); font-weight: 600; }
.modal-status-sub { display: block; margin-top: 6px; font-size: 0.84rem; color: var(--ink-mute); font-weight: 400; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    :root { --folio: 128px; }
    .sec-grid { gap: 0 32px; }
    .fund-grid, .rows, .founders { padding-left: calc(var(--folio) + 32px); }
    .ink { padding: 72px 44px 56px; }
    .peek-rail { grid-template-columns: minmax(0, 1fr); }
    .float-chip { left: -12px; }
}

@media (max-width: 900px) {
    :root { --gutter: 24px; }

    .site-header { padding-left: 12px; padding-right: 12px; }
    .menu-toggle { display: inline-flex; }
    .nav .wordmark { position: relative; z-index: 2; }
    .site-header.menu-open .nav { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: calc(100px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        overflow-y: auto;
        overscroll-behavior: contain;
        counter-reset: nav;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
    }
    .nav-links.open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }

    .nav-link {
        counter-increment: nav;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: baseline;
        padding: 18px 0 17px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.75rem;
        font-weight: 600;
        letter-spacing: -0.04em;
        line-height: 1.15;
        color: var(--ink);
        white-space: normal;
        transform: translateY(14px);
        transition: transform 0.7s var(--ease), color 0.2s var(--ease);
    }
    .nav-link:first-child { border-top: 3px double var(--ink); }
    .nav-links.open .nav-link { transform: none; }
    .nav-links.open .nav-link:nth-child(2) { transition-delay: 0.04s; }
    .nav-links.open .nav-link:nth-child(3) { transition-delay: 0.08s; }
    .nav-links.open .nav-link:nth-child(4) { transition-delay: 0.12s; }
    .nav-links.open .nav-link:nth-child(5) { transition-delay: 0.16s; }
    .nav-link::before { content: counter(nav, decimal-leading-zero); font: 500 0.74rem var(--mono); color: var(--ink-mute); }
    .nav-link::after { content: attr(data-sub); grid-column: 2; display: block; margin-top: 5px; font-size: 0.86rem; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-mute); }
    .nav-link:hover { background: none; }
    .nav-cta { margin: 32px 0 0; justify-content: center; padding: 16px 22px; font-size: 0.95rem; }
    .nav-note { display: block; margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--ink-mute); }

    .sec { padding-top: 96px; }
    .sec-grid { grid-template-columns: minmax(0, 1fr); }
    .folio { flex-direction: row; align-items: baseline; gap: 14px; margin-bottom: 24px; padding-top: 0; }
    .folio .no::after { display: none; }

    .hero { min-height: 0; padding-top: 120px; }
    .hero-grid, .close, .fund-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .fund-grid, .rows, .founders { padding-left: 0; }
    .hero .ledger { margin-top: 72px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }

    .bento { grid-template-columns: minmax(0, 1fr); }
    .inst-lead { grid-row: auto; }
    .peek-marks { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .evidence { grid-template-columns: minmax(0, 1fr); }
    .stack-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    :root { --gutter: 20px; }
    .nav { height: 56px; padding-left: 16px; }
    .nav .wordmark { font-size: 1.5rem; }
    .brand-collapsed .wm-full { opacity: 0; transform: translateX(-6px); }
    .brand-collapsed .wm-short { opacity: 1; transform: none; }

    .sec { padding-top: 80px; }
    .sec-problem { padding-top: 96px; }
    .hero { padding-top: 104px; }
    .hero .display { max-width: none; }
    .float-chip { left: 12px; bottom: -58px; }
    .hero-object { margin-bottom: 36px; }
    .log { grid-template-columns: 56px 66px minmax(0, 1fr) auto; gap: 8px; font-size: 0.76rem; }

    .inst, .inst-lead { padding: 28px 24px 22px; border-radius: 26px; }
    .peek-rail { padding: 20px; }
    .peek-marks { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .theater { padding: 40px 0; margin-top: 40px; }
    .screen { border-radius: 16px; transform: none; }
    .console { gap: 10px; }
    .console-time { min-width: 0; font-size: 0.72rem; }

    .stack-row { grid-template-columns: minmax(0, 1fr); }
    .stack-block { min-height: 0; flex-direction: row; align-items: baseline; gap: 12px; }
    .stack-base { flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; }

    .ink { padding: 56px 22px 40px; border-radius: 28px; margin: 0 -8px; }
    .ev { padding: 22px; }
    .report { padding: 20px 18px 0; transform: none; }
    .report .verdict { margin: 14px -18px 0; padding: 14px 18px 18px; }
    .neff-controls { grid-template-columns: minmax(0, 1fr); }

    .rows, .founders { grid-template-columns: minmax(0, 1fr); }
    .row:nth-child(even) { padding-left: 0; border-left: 0; }
    .founder { grid-template-columns: minmax(0, 1fr); }

    .foot-top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 64px; }
    .foot-wordmark { font-size: clamp(5rem, 30vw, 9rem); }
    .foot-wordmark .full { display: none; }
    .foot-wordmark .short { display: inline; }
    .foot-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.screen:fullscreen { border-radius: 0; transform: none; border: 0; }
.screen:-webkit-full-screen { border-radius: 0; transform: none; border: 0; }
