/* ============================================================
   APPDEN — brutalist / editorial system
   ============================================================ */

:root {
    --bg: #f1ede4;
    --fg: #0f0e0c;
    --ink: #0f0e0c;
    --paper: #f1ede4;
    --muted: #6c655a;
    --line: rgba(15, 14, 12, 0.14);
    --line-soft: rgba(15, 14, 12, 0.08);
    --accent: #ff3b14;
    --accent-ink: #0f0e0c; /* readable text on accent bg */

    --font-display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
    --font-body: "Space Grotesk", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --display-scale: 1;
    --max: 1440px;
    --pad: clamp(20px, 3.5vw, 56px);

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0c0b09;
    --fg: #f1ede4;
    --ink: #f1ede4;
    --paper: #0c0b09;
    --muted: #948a78;
    --line: rgba(241, 237, 228, 0.18);
    --line-soft: rgba(241, 237, 228, 0.1);
    color-scheme: dark;
}

[data-display="serif"] {
    --font-display: "Fraunces", "Times New Roman", Georgia, serif;
}
[data-display="mono"] {
    --font-display: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   TOP RAIL — fixed meta strip
   ============================================================ */
.rail {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0;
    height: 28px;
    padding: 0 var(--pad);
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rail-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-right: 1px solid rgba(241, 237, 228, 0.22);
    height: 100%;
}
.rail-cell:first-child { padding-left: 0; }
.rail-cell:last-child { border-right: 0; padding-right: 0; }
.rail-grow { flex: 1; padding: 0; border-right: 0; }

.dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.nav {
    position: sticky;
    top: 28px;
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px var(--pad);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.025em;
    line-height: 1;
}

/* Underlined "a" — the brand mark, lives inside the wordmark */
.brand-a {
    position: relative;
    display: inline-block;
    margin-right: 0.02em;
}
.brand-a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.06em;
    height: 0.1em;
    background: var(--accent);
    transition: transform 0.2s cubic-bezier(.2,.6,.2,1);
    transform-origin: left center;
}
.brand:hover .brand-a::after {
    transform: scaleX(1.4);
}

.mono-bg { fill: var(--ink); }
.mono-fg { fill: var(--paper); }
.mono-accent { fill: var(--accent); }

.brand-word { line-height: 1; }
.brand-dot { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-links a {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-links a:hover { background: var(--ink); color: var(--paper); }
.nav-links .num { opacity: 0.5; font-weight: 500; }
.nav-links .nav-cta {
    border: 1px solid var(--ink);
    margin-left: 12px;
    background: var(--ink);
    color: var(--paper);
}
.nav-links .nav-cta:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

/* ============================================================
   SECTIONS — base
   ============================================================ */
.section {
    padding: clamp(64px, 8vw, 120px) var(--pad);
    border-bottom: 1px solid var(--line);
    position: relative;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 22px;
    margin-bottom: clamp(40px, 6vw, 72px);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    gap: 16px;
    flex-wrap: wrap;
}
.section-code {
    color: var(--ink);
    font-weight: 500;
}

/* ============================================================
   DISPLAY TYPE
   ============================================================ */
.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.88;
    font-size: calc(clamp(72px, 14vw, 220px) * var(--display-scale));
    text-wrap: balance;
}
.display-lg {
    font-size: calc(clamp(56px, 9vw, 140px) * var(--display-scale));
    line-height: 0.92;
    letter-spacing: -0.03em;
}
.display-md {
    font-size: calc(clamp(28px, 3.6vw, 56px) * var(--display-scale));
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
    max-width: 22ch;
    text-wrap: balance;
}

[data-display="serif"] .display { letter-spacing: -0.045em; font-weight: 700; }
[data-display="mono"] .display { letter-spacing: -0.05em; font-weight: 700; }

.accent-line { color: var(--accent); }
.period { color: var(--accent); }
.accent-line .period { color: inherit; }

.strike {
    text-decoration: line-through;
    text-decoration-thickness: 5px;
    text-decoration-color: var(--accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding-top: clamp(40px, 5vw, 80px);
}
.hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: end;
    margin-bottom: clamp(48px, 7vw, 96px);
}
.hl-line {
    display: block;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-self: end;
    padding-bottom: 12px;
}
.lede {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.4;
    color: var(--fg);
    max-width: 32ch;
}

.block-cta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 28px;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    transition: background 0.18s ease, color 0.18s ease;
    max-width: 320px;
}
.block-cta:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}
.block-cta-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
}
.block-cta-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* META GRID */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.meta-grid-tight {
    grid-template-columns: repeat(2, 1fr);
}
.meta-cell {
    padding: 18px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.meta-cell dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.meta-cell dd {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.01em;
}

/* MARQUEE */
.marquee {
    margin-top: clamp(48px, 7vw, 96px);
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding: 18px 0;
    background: var(--accent);
    color: var(--accent-ink);
    overflow: hidden;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    position: relative;
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marquee 36s linear infinite;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 40px);
    letter-spacing: -0.02em;
    padding-left: 32px;
}
.marquee-track > span:not([aria-hidden]) {}
.marquee-track > [aria-hidden] {
    color: var(--ink);
    opacity: 0.7;
    font-size: 0.6em;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   DOCTRINE
   ============================================================ */
.doctrine .display-md {
    margin-bottom: clamp(56px, 7vw, 96px);
    max-width: 26ch;
}

.tenets {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.tenet {
    padding: 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 240px;
    position: relative;
    transition: background 0.2s ease;
}
.tenet:hover { background: var(--paper); }
[data-theme="dark"] .tenet:hover { background: rgba(241, 237, 228, 0.04); }
.tenet-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.tenet h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 2vw, 30px);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.tenet p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 38ch;
}
.tenet:nth-child(5) {
    grid-column: span 2;
    background: var(--ink);
    color: var(--paper);
}
.tenet:nth-child(5) .tenet-num,
.tenet:nth-child(5) p { color: rgba(241, 237, 228, 0.6); }
.tenet:nth-child(5) h3 { font-size: clamp(28px, 3vw, 48px); }
.tenet:nth-child(5):hover { background: var(--accent); color: var(--accent-ink); }
.tenet:nth-child(5):hover .tenet-num,
.tenet:nth-child(5):hover p { color: var(--accent-ink); }

/* ============================================================
   DISCIPLINES (invert section)
   ============================================================ */
.invert {
    background: var(--ink);
    color: var(--paper);
    --line: rgba(241, 237, 228, 0.18);
    --muted: rgba(241, 237, 228, 0.55);
}
.invert .section-head { color: rgba(241, 237, 228, 0.55); }
.invert .section-code { color: var(--paper); }

.disciplines .display-md {
    margin-bottom: clamp(56px, 7vw, 96px);
    max-width: 28ch;
}

.disc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.disc {
    padding: 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.disc header { display: flex; align-items: baseline; gap: 18px; }
.disc-num {
    font-family: var(--font-mono);
    font-size: 60px;
    font-weight: 500;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
}
.disc h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 36px);
    letter-spacing: -0.02em;
    line-height: 1;
}
.disc-pitch {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(241, 237, 228, 0.75);
    max-width: 36ch;
}
.disc-list {
    list-style: none;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
.disc-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--paper);
    display: flex;
    align-items: center;
    gap: 12px;
}
.disc-list li::before {
    content: "→";
    color: var(--accent);
}

/* ============================================================
   METHOD
   ============================================================ */
.method .display-md {
    margin-bottom: clamp(56px, 7vw, 96px);
    max-width: 30ch;
}

.method-list {
    list-style: none;
    border-top: 1px solid var(--line);
}
.step {
    display: grid;
    grid-template-columns: 220px 1.4fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    transition: background 0.2s ease;
}
.step:hover { background: rgba(15, 14, 12, 0.03); }
[data-theme="dark"] .step:hover { background: rgba(241, 237, 228, 0.04); }
.step-meta { display: flex; flex-direction: column; gap: 6px; }
.step-num {
    font-family: var(--font-mono);
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
}
.step-weeks {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.step h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 3.5vw, 54px);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 14px;
}
.step > p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 40ch;
    grid-column: 2;
}
.step-deliv {
    list-style: none;
    grid-column: 3;
    border-left: 1px solid var(--line);
    padding-left: 24px;
}
.step-deliv li {
    padding: 8px 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.step-deliv li::before {
    content: "■";
    color: var(--accent);
    font-size: 8px;
}

/* Re-layout step h3+p into one column */
.step h3 { grid-column: 2; }

/* ============================================================
   SHIPPING / OWN WORK
   ============================================================ */
.ship-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.ship {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.ship-shot {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.ship-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.ship:hover .ship-shot img { transform: scale(1.02); }
.ship-shot-chnks { background: #1a0f2e; }
.ship-shot-caster { background: #002b29; }

.ship-info {
    padding: 28px 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ship-row {
    display: flex;
    gap: 20px;
}
.ship-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.ship h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 5vw, 72px);
    letter-spacing: -0.03em;
    line-height: 1;
}
.ship p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--fg);
    max-width: 44ch;
}
.ghost-link {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
    padding-bottom: 2px;
    transition: color 0.15s ease;
}
.ghost-link:hover { color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: clamp(80px, 10vw, 160px); }
.contact .display { margin-bottom: clamp(48px, 6vw, 80px); }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.big-mail {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 56px);
    letter-spacing: -0.03em;
    line-height: 1;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent);
    transition: color 0.2s ease;
}
.big-mail:hover { color: var(--accent); }

.contact-note {
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 48ch;
}

.contact-side .meta-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
    background: var(--ink);
    color: var(--paper);
    padding: 60px var(--pad) 32px;
    border-top: 1px solid var(--line);
}
.foot-mark {
    margin-bottom: 32px;
    /* no overflow clip — the brand-a underline tick lives just below the
       baseline and would otherwise be clipped at the giant footer scale */
}
.foot-word .brand-a::after {
    /* nudge the tick up at the giant scale so it sits inside the squeezed
       line-box (foot-word uses line-height: 0.85) and stays visible */
    bottom: 0.04em;
    height: 0.07em;
}
.foot-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(60px, 16vw, 220px);
    letter-spacing: -0.06em;
    line-height: 0.9;
    display: inline-block;
    max-width: 100%;
}
.foot-word .period { color: var(--accent); }

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(241, 237, 228, 0.18);
}
.foot-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(241, 237, 228, 0.7);
}
.foot-cell a { color: var(--paper); }
.foot-cell a:hover { color: var(--accent); }
.foot-label {
    text-transform: uppercase;
    color: rgba(241, 237, 228, 0.4);
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.foot-meta {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(241, 237, 228, 0.55);
}
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.foot-cell-right { text-align: right; align-items: flex-end; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 260px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--ink);
    z-index: 200;
    font-family: var(--font-mono);
    font-size: 11px;
    box-shadow: 8px 8px 0 var(--ink);
}
.tweaks[hidden] { display: none; }
.tweaks-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tweaks-head button {
    background: none;
    border: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.tweaks-section {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tweaks-section:last-child { border-bottom: 0; }
.tweaks-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.tweaks-row {
    display: flex;
    gap: 6px;
}
.tweaks-row button {
    flex: 1;
    padding: 8px 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tweaks-row button:hover { background: var(--ink); color: var(--paper); }
.tweaks-row button[aria-current="true"] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.tweaks-row-swatches button {
    height: 32px;
    padding: 0;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
}
.tweaks-row-swatches button[aria-current="true"] {
    border-color: var(--ink);
    transform: scale(1.06);
}
.tweaks input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

/* ============================================================
   LEGAL PAGES — privacy, terms
   ============================================================ */
.legal {
    padding: clamp(64px, 8vw, 120px) var(--pad) clamp(80px, 10vw, 140px);
    border-bottom: 1px solid var(--line);
}
.legal-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(56px, 7vw, 96px);
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}
.legal-head .display {
    font-size: calc(clamp(80px, 13vw, 200px) * var(--display-scale));
}
.legal-lede {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.4;
    color: var(--fg);
    max-width: 36ch;
    padding-bottom: 8px;
}

.legal-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: clamp(32px, 6vw, 96px);
    max-width: 1200px;
}

.legal-toc {
    position: sticky;
    top: 90px;
    align-self: start;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}
.legal-toc-label {
    color: var(--muted);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
}
.legal-toc a {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 10px;
    transition: color 0.15s;
}
.legal-toc a:last-child { border-bottom: 1px solid var(--line); }
.legal-toc a:hover { color: var(--accent); }
.legal-toc a .num { color: var(--muted); font-weight: 500; }

.legal-content {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 5vw, 72px);
    max-width: 64ch;
}
.legal-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-margin-top: 100px;
}
.legal-section-code {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.legal-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 38px);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.legal-section p, .legal-section li {
    font-size: 17px;
    line-height: 1.55;
}
.legal-section p + p { margin-top: 4px; }
.legal-section a:not(.btn-back) {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: color 0.15s;
}
.legal-section a:not(.btn-back):hover { color: var(--accent); }
.legal-section ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}
.legal-section ul li {
    padding-left: 1.4em;
    position: relative;
}
.legal-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}
.legal-section dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 24px;
    margin-top: 6px;
}
.legal-section dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 4px;
}
.legal-section dd { font-size: 17px; line-height: 1.5; }

/* footer fine-print row */
.foot-fine {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(241, 237, 228, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(241, 237, 228, 0.55);
}
.foot-fine-links {
    display: flex;
    gap: 18px;
}
.foot-fine-links a { color: var(--paper); }
.foot-fine-links a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .legal-head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
    .legal-body { grid-template-columns: 1fr; }
    .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 16px; }
    .legal-toc-label { width: 100%; }
    .legal-toc a { border-top: 0; padding: 4px 0; }
    .legal-toc a:last-child { border-bottom: 0; }
    .legal-section dl { grid-template-columns: 1fr; gap: 4px; }
    .legal-section dt { padding-top: 0; }
    .meta-grid { grid-template-columns: repeat(2, 1fr); }
    .meta-grid-tight { grid-template-columns: repeat(2, 1fr); }
    .ship-grid { grid-template-columns: 1fr; }
    .disc-grid { grid-template-columns: 1fr; }
    .tenets { grid-template-columns: 1fr; }
    .tenet:nth-child(5) { grid-column: auto; }
    .step { grid-template-columns: 140px 1fr; }
    .step h3, .step > p { grid-column: 2; }
    .step-deliv {
        grid-column: 1 / -1;
        margin-top: 12px;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }
}

@media (max-width: 760px) {
    .rail { font-size: 10px; height: 26px; }
    .rail-cell { padding: 0 10px; }
    .rail-cell:nth-child(1) { display: none; }
    .nav { top: 26px; padding: 14px var(--pad); }
    .nav-links { gap: 0; }
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-links .nav-cta { margin-left: 0; }
    .hero-body { grid-template-columns: 1fr; gap: 36px; }
    .contact-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .foot-cell-right { text-align: left; align-items: flex-start; }
    .meta-grid, .meta-grid-tight { grid-template-columns: 1fr 1fr; }
    .display { font-size: calc(clamp(64px, 18vw, 110px) * var(--display-scale)); }
    .display-lg { font-size: calc(clamp(48px, 14vw, 88px) * var(--display-scale)); }
    .display-md { font-size: calc(clamp(24px, 6vw, 36px) * var(--display-scale)); }
    .foot-word { font-size: clamp(48px, 18vw, 110px); }
    .step-deliv { grid-template-columns: 1fr; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .dot { animation: none; }
    html { scroll-behavior: auto; }
}
