/* ══════════════════════════════════════════
   TOKENS
   ══════════════════════════════════════════ */
:root {
    --void: #08080a;
    --void-backdrop: rgba(8, 8, 10, 0.92);
    --void-overlay: rgba(8, 8, 10, 0.25);
    --surface: #0e0e12;
    --elevated: #14141a;
    --edge: rgba(255, 255, 255, 0.06);
    --edge-strong: rgba(255, 255, 255, 0.1);

    --ink-ghost: #2a2a34;
    --ink-faint: #3d3d48;
    --ink-muted: #7a7a88;
    --ink-secondary: #8a8a98;
    --ink-primary: #c8c2b4;
    --ink-bright: #ece6d8;

    --craft: #c49a3c;
    --craft-light: #d4ad52;
    --craft-dim: rgba(196, 154, 60, 0.15);
    --craft-glow: rgba(196, 154, 60, 0.05);

    --error: #d55;

    --font-mono: 'JetBrains Mono', 'Menlo', monospace;
    --font-serif: 'Instrument Serif', Georgia, serif;

    --s1: 0.25rem; --s2: 0.5rem; --s3: 1rem; --s4: 1.5rem;
    --s5: 2rem; --s6: 3rem; --s7: 4rem; --s8: 6rem;
    --s9: 8rem; --s10: 12rem;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --type-xs: 0.6875rem;
    --type-sm: 0.8125rem;
    --type-base: 0.9375rem;
    --type-md: 1.125rem;
    --type-lg: clamp(1.25rem, 2vw, 1.5rem);
    --type-xl: clamp(1.5rem, 3vw, 2.25rem);
    --type-display: clamp(2.5rem, 8vw, 7rem);
}

/* ══════════════════════════════════════════
   RESET
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-mono);
    background: var(--void);
    color: var(--ink-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--type-base);
    font-weight: 300;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--craft-dim); color: var(--ink-bright); }

/* Utility */
.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;
}

/* Layout utilities */
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mb-2 { margin-bottom: var(--s2); }
.mb-4 { margin-bottom: var(--s4); }
.mb-5 { margin-bottom: var(--s5); }
.mb-6 { margin-bottom: var(--s6); }
.d-block { display: block; }
.text-center { text-align: center; }

/* Focus & skip link */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--craft);
    outline-offset: 4px;
}
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--s4);
    z-index: 200;
    padding: var(--s2) var(--s4);
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-bright);
    background: var(--surface);
    border: 1px solid var(--edge-strong);
}
.skip-link:focus-visible {
    top: var(--s3);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════ */
.label {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.display {
    font-family: var(--font-mono);
    font-size: var(--type-display);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--ink-bright);
}
.display .serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--craft);
    letter-spacing: -0.02em;
}
.display .cross {
    color: var(--ink-muted);
    font-weight: 300;
    font-size: 0.6em;
    vertical-align: 0.1em;
    margin: 0 0.05em;
}

/* ══════════════════════════════════════════
   OVERLAYS — CANVAS + NOISE
   ══════════════════════════════════════════ */
#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.noise {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: var(--s4) var(--s6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    background: var(--void-backdrop);
    border-bottom-color: var(--edge);
}
.nav-mark {
    font-family: var(--font-mono);
    font-size: var(--type-sm);
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-bright);
}
.nav-links {
    display: flex;
    gap: var(--s6);
    list-style: none;
}
.nav-links a {
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.25s var(--ease-out);
    position: relative;
    padding: var(--s2) 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 1px;
    background: var(--craft);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink-bright); }
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--s10) var(--s6);
}
.hero-content { position: relative; z-index: 3; }
.hero-subtitle {
    margin: var(--s5) auto 0;
    font-size: var(--type-md);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--ink-secondary);
    max-width: 34ch;
    line-height: 1.8;
}

/* Instrument SVG */
.instrument-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    z-index: 1;
    opacity: 0.6;
}
.instrument { width: 100%; height: 100%; overflow: visible; }
.instrument g { transform-origin: 200px 200px; }
/* Instrument rings driven by JS (scroll + drift) */
.ring-outer, .ring-mid, .ring-inner, .ring-dashed, .crosshair {
    will-change: transform;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: var(--s7);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s3);
    z-index: 3;
}
.scroll-hint span {
    font-size: var(--type-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.scroll-track {
    width: 1px;
    height: 48px;
    background: var(--ink-ghost);
    position: relative;
    overflow: hidden;
}
.scroll-track::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(to bottom, var(--craft), transparent);
    animation: scrollPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollPulse {
    0%   { transform: translateY(-100%); }
    50%  { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* ══════════════════════════════════════════
   SECTION DIVIDERS
   ══════════════════════════════════════════ */
.divider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s5) 0;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: var(--edge);
    max-width: 200px;
}
.divider-mark {
    margin: 0 var(--s5);
    font-family: var(--font-mono);
    font-size: var(--type-md);
    color: var(--craft);
    display: inline-block;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ══════════════════════════════════════════
   SECTIONS — SHARED
   ══════════════════════════════════════════ */
section { position: relative; z-index: 2; }
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--s6);
}

/* ══════════════════════════════════════════
   TENETS
   ══════════════════════════════════════════ */
.tenets {
    padding: var(--s7) 0 var(--s8);
}
.tenets-label {
    display: block;
    margin-bottom: var(--s7);
}
.tenet {
    padding: var(--s5) 0;
}
.tenet-number {
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--craft);
    display: block;
    margin-bottom: var(--s3);
}
.tenet-title {
    font-family: var(--font-mono);
    font-size: var(--type-lg);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink-bright);
    margin-bottom: var(--s3);
    line-height: 1.3;
}
.tenet-desc {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink-secondary);
    max-width: 50ch;
}
.divider-mark--reverse { animation-direction: reverse; }

.tenet {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.tenet:hover {
    transform: translateX(4px);
}
.tenet:hover .tenet-number {
    color: var(--craft-light);
}
.tenet:hover .tenet-title {
    color: var(--craft);
    transition: color 0.3s var(--ease-out);
}
.tenet-rule {
    height: 1px;
    background: var(--edge);
}

/* ══════════════════════════════════════════
   THESIS
   ══════════════════════════════════════════ */
.thesis {
    padding: var(--s8) 0 var(--s9);
    text-align: center;
}
.thesis-text {
    font-size: var(--type-lg);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-primary);
    max-width: 42ch;
    margin: 0 auto;
    letter-spacing: -0.01em;
}
.thesis-text em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--craft);
}
.thesis-attribution {
    margin-top: var(--s6);
    font-size: var(--type-sm);
    color: var(--ink-muted);
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   MANIFESTO LINK
   ══════════════════════════════════════════ */
.manifesto-link {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--s5) 0 var(--s6);
}
.manifesto-link a {
    font-family: var(--font-mono);
    font-size: var(--type-base);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--craft);
    border-bottom: 1px solid var(--craft-dim);
    padding-bottom: 2px;
    transition: border-color 0.3s var(--ease-out),
                color 0.3s var(--ease-out);
}
.manifesto-link a:hover {
    color: var(--craft-light);
    border-color: var(--craft);
}

/* ══════════════════════════════════════════
   WHAT I DO
   ══════════════════════════════════════════ */
.what-i-do {
    padding: var(--s7) 0 var(--s8);
}

/* ══════════════════════════════════════════
   TOPIC NAV (writing page)
   ══════════════════════════════════════════ */
.topic-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s2) var(--s5);
    padding: var(--s4) 0 var(--s6);
    position: relative;
    z-index: 2;
}
.topic-nav a {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.25s var(--ease-out);
}
.topic-nav a:hover {
    color: var(--craft);
}

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
.testimony {
    padding: var(--s8) 0;
    position: relative;
    z-index: 2;
}
.testimony .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--s6);
}
.testimony-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s7);
    align-items: start;
}
.testimony-feature {
    position: sticky;
    top: calc(var(--s9) + 60px);
}
.testimony-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--ink-bright);
    line-height: 1.35;
}
.testimony-credit {
    margin-top: var(--s4);
    display: flex;
    align-items: center;
    gap: var(--s3);
}
.testimony-rule {
    width: 24px;
    height: 1px;
    background: var(--craft);
}
.testimony-name {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-primary);
}
.testimony-role {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 300;
    color: var(--ink-muted);
}
.testimony-stack {
    display: flex;
    flex-direction: column;
}
.testimony-card {
    padding: var(--s4) 0;
    border-top: 1px solid var(--edge);
}
.testimony-card:last-child {
    border-bottom: 1px solid var(--edge);
}
.testimony-card p {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
    margin-bottom: var(--s3);
}
.testimony-card footer {
    display: flex;
    flex-direction: column;
    gap: var(--s1);
}

/* ══════════════════════════════════════════
   NEWSLETTER HERO FORM
   ══════════════════════════════════════════ */
.nl-hero-form {
    margin-top: var(--s5);
    max-width: 480px;
}
.nl-hero-row {
    display: flex;
    gap: var(--s3);
}
.nl-hero-row .lm-input {
    flex: 1;
}
.nl-hero-row .lm-submit {
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   NEWSLETTER TRACKS
   ══════════════════════════════════════════ */
.nl-tracks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}
.nl-track {
    padding: var(--s5) 0;
    border-top: 1px solid var(--edge);
}
.nl-track-number {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--craft);
    display: block;
    margin-bottom: var(--s3);
}
.nl-track-name {
    font-family: var(--font-mono);
    font-size: var(--type-base);
    font-weight: 500;
    color: var(--ink-bright);
    margin-bottom: var(--s2);
}
.nl-track-desc {
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.8;
}

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact {
    padding: var(--s10) 0;
    text-align: center;
}
.contact-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--ink-bright);
    margin-bottom: var(--s4);
}
.contact-link {
    font-size: var(--type-base);
    color: var(--craft);
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--craft-dim);
    transition: border-color 0.3s var(--ease-out),
                color 0.3s var(--ease-out);
}
.contact-link:hover {
    color: var(--craft-light);
    border-color: var(--craft);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--edge);
}

/* Newsletter band */
.footer-newsletter {
    padding: var(--s8) var(--s6);
    border-bottom: 1px solid var(--edge);
}
.footer-newsletter .container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s7);
    align-items: start;
}
.footer-nl-text {
    max-width: 38ch;
}
.footer-nl-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--type-xl);
    font-weight: 400;
    color: var(--ink-bright);
    line-height: 1.2;
    margin-bottom: var(--s3);
}
.footer-nl-desc {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
}
.footer-nl-form {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    padding-top: var(--s2);
}
.footer-nl-row {
    display: flex;
    gap: var(--s3);
}
.footer-nl-row .lm-input {
    flex: 1;
}
.footer-nl-row .lm-submit {
    flex-shrink: 0;
    align-self: stretch;
}
.footer-nl-success {
    font-size: var(--type-sm);
    color: var(--craft);
    display: none;
}
.footer-nl-success.visible { display: block; }
.footer-nl-error {
    font-size: var(--type-xs);
    color: var(--error);
    display: none;
}
.footer-nl-note {
    font-size: var(--type-xs);
    color: var(--ink-muted);
}

/* Footer nav + colophon */
.footer-bottom {
    padding: var(--s5) var(--s6);
}
.footer-bottom .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--s4);
}
.footer-links {
    display: flex;
    gap: var(--s5);
    list-style: none;
}
.footer-links a {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.25s var(--ease-out);
}
.footer-links a:hover { color: var(--craft); }
.footer-colophon {
    display: flex;
    gap: var(--s5);
}
.footer-colophon span {
    font-size: var(--type-xs);
    color: var(--ink-muted);
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════
   ANIMATIONS — STAGGERED HERO REVEAL
   ══════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-reveal {
    opacity: 0;
    animation: fadeInUp 1.1s var(--ease-out) both;
}
.hero-reveal-1 { animation-delay: 0.2s; }
.hero-reveal-2 { animation-delay: 0.5s; }
.hero-reveal-3 { animation-delay: 0.85s; }
.hero-reveal-4 { animation-delay: 1.2s; }

@keyframes fadeInInstrument {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
    to   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
}
.instrument-wrap {
    opacity: 0;
    animation: fadeInInstrument 2s var(--ease-out) 0.3s both;
    will-change: transform;
}
.hero-content {
    will-change: transform;
}

/* ══════════════════════════════════════════
   SCROLL REVEALS
   ══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 1s var(--ease-out),
                transform 1s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ══════════════════════════════════════════
   PAGE HEADER (non-home pages)
   ══════════════════════════════════════════ */
.page-header {
    padding: var(--s10) var(--s6) var(--s7);
    text-align: center;
    position: relative;
    z-index: 2;
}
.page-header-title {
    font-family: var(--font-mono);
    font-size: var(--type-xl);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--ink-bright);
    margin-bottom: var(--s3);
}
.page-header-subtitle {
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-secondary);
    max-width: 44ch;
    margin: 0 auto;
    line-height: 1.8;
}

/* ══════════════════════════════════════════
   PROSE (long-form text)
   ══════════════════════════════════════════ */
.prose {
    font-size: var(--type-base);
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink-primary);
    max-width: 54ch;
}
.prose p + p {
    margin-top: var(--s4);
}
.prose em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--craft);
}
.prose strong {
    font-weight: 500;
    color: var(--ink-bright);
}

/* ══════════════════════════════════════════
   ABOUT — SECTIONS
   ══════════════════════════════════════════ */
.about-section {
    padding: var(--s7) 0 var(--s8);
}
.about-section .label {
    display: block;
    margin-bottom: var(--s6);
}
.practices-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s7);
}
/* Founder row — photo + text side by side */
.founder-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--s7);
    align-items: start;
}
.founder-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--void);
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.75) contrast(1.1) sepia(0.3) hue-rotate(-8deg) saturate(0.45);
}
.founder-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 2px,
            var(--void-overlay) 2px,
            var(--void-overlay) 4px
        ),
        radial-gradient(
            ellipse 75% 85% at 50% 35%,
            transparent 40%,
            var(--void) 100%
        );
    pointer-events: none;
}
.founder-text {
    padding-top: var(--s2);
}
.founder-text .label {
    display: block;
    margin-bottom: var(--s5);
}

.practice-card .label {
    margin-bottom: var(--s3);
}
.practice-card-name {
    font-family: var(--font-mono);
    font-size: var(--type-lg);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink-bright);
    margin-bottom: var(--s2);
    line-height: 1.3;
}
.practice-card-name .serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
}
.practice-card-type {
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--s4);
}
.practice-card-desc {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink-secondary);
    max-width: 42ch;
}

/* ══════════════════════════════════════════
   WRITING — POST LIST
   ══════════════════════════════════════════ */
.writing-section {
    padding: var(--s5) 0 var(--s9);
}
.post-list {
    display: flex;
    flex-direction: column;
}
.post-item {
    display: block;
    padding: var(--s5) 0 var(--s5) var(--s4);
    border-bottom: 1px solid var(--edge);
    transition: border-color 0.3s var(--ease-out);
    position: relative;
}
.post-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: var(--s5);
    bottom: var(--s5);
    width: 2px;
    background: var(--craft);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.post-item:hover::before {
    transform: scaleY(1);
}
.post-item:first-child {
    border-top: 1px solid var(--edge);
}
.post-item:hover {
    border-color: var(--edge-strong);
}
.post-date {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    display: block;
    margin-bottom: var(--s2);
}
.post-title {
    font-family: var(--font-mono);
    font-size: var(--type-lg);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink-bright);
    margin-bottom: var(--s2);
    line-height: 1.3;
    transition: color 0.25s var(--ease-out);
}
.post-item:hover .post-title {
    color: var(--craft);
}
.post-excerpt {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
    max-width: 60ch;
}

/* ══════════════════════════════════════════
   WRITING — COLLECTIONS
   ══════════════════════════════════════════ */
.collection {
    padding: var(--s6) 0 var(--s7);
}
.collection-intro {
    margin-bottom: var(--s5);
    max-width: 54ch;
}
.collection-intro .label {
    display: block;
    margin-bottom: var(--s3);
}
.collection-desc {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
    max-width: 54ch;
}
.collection-essays {
    display: flex;
    flex-direction: column;
}
.collection-essays .post-item:first-child {
    border-top: none;
}
.writing-intro {
    padding: 0 0 var(--s6);
}
.writing-intro .prose {
    max-width: 50ch;
}

/* ══════════════════════════════════════════
   POST — SINGLE ARTICLE
   ══════════════════════════════════════════ */
.post-header {
    padding: var(--s10) var(--s6) var(--s5);
    position: relative;
    z-index: 2;
}
.post-header .container { max-width: 680px; }
.post-back {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.25s var(--ease-out);
    display: inline-block;
    margin-bottom: var(--s5);
}
.post-back:hover { color: var(--craft); }
.post-back::before { content: '← '; }
.post-meta {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    margin-bottom: var(--s4);
    display: block;
}
.post-header-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 400;
    color: var(--ink-bright);
    line-height: 1.15;
}

/* Post body — mono for reading, serif for writing voice */
.post-body {
    padding: var(--s5) 0 var(--s9);
    position: relative;
    z-index: 2;
}
.post-body .container { max-width: 680px; }
.post-body p {
    font-family: var(--font-mono);
    font-size: var(--type-base);
    font-weight: 300;
    line-height: 2.15;
    letter-spacing: 0.005em;
    color: var(--ink-primary);
    margin-bottom: var(--s4);
}
.post-body .lead {
    font-size: var(--type-base);
    color: var(--ink-bright);
    line-height: 2;
}
.post-body h2 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--craft);
    margin: var(--s8) 0 var(--s4);
    line-height: 1.2;
}
.post-body h3 {
    font-family: var(--font-serif);
    font-size: var(--type-md);
    font-weight: 400;
    color: var(--ink-bright);
    margin: var(--s6) 0 var(--s3);
    line-height: 1.25;
}

/* Pull quotes — centered, serif italic, × motif */
.post-body blockquote {
    margin: var(--s8) auto;
    padding: var(--s6) var(--s4);
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.65;
    color: var(--ink-bright);
    max-width: 36ch;
    position: relative;
}
.post-body blockquote::before {
    content: '×';
    display: block;
    color: var(--craft);
    font-family: var(--font-mono);
    font-style: normal;
    font-size: var(--type-xs);
    letter-spacing: 0.4em;
    margin-bottom: var(--s4);
}
.post-body blockquote::after {
    content: '×';
    display: block;
    color: var(--craft);
    font-family: var(--font-mono);
    font-style: normal;
    font-size: var(--type-xs);
    letter-spacing: 0.4em;
    margin-top: var(--s4);
}

.post-body em {
    font-family: var(--font-serif);
    font-style: italic;
}
.post-body strong {
    font-weight: 500;
    color: var(--ink-bright);
}
.post-body ul, .post-body ol {
    font-family: var(--font-mono);
    font-size: var(--type-base);
    line-height: 2.15;
    color: var(--ink-primary);
    margin: var(--s4) 0;
    padding-left: var(--s5);
}
.post-body li + li { margin-top: var(--s2); }
.post-body li::marker { color: var(--craft); }
.post-body .section-break {
    text-align: center;
    padding: var(--s6) 0;
    color: var(--craft);
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    letter-spacing: 0.5em;
}
.post-body a {
    color: var(--craft);
    border-bottom: 1px solid var(--craft-dim);
    transition: border-color 0.25s var(--ease-out);
}
.post-body a:hover { border-color: var(--craft); }

/* Post footer nav */
.post-footer-nav {
    padding: var(--s6) 0 var(--s8);
    position: relative;
    z-index: 2;
}
.post-footer-nav .container {
    max-width: 680px;
    border-top: 1px solid var(--edge);
    padding-top: var(--s5);
}

/* ══════════════════════════════════════════
   LEAD MAGNET / RESOURCE PAGES
   ══════════════════════════════════════════ */
.lm-hero {
    padding: var(--s10) 0 var(--s7);
    position: relative;
    z-index: 2;
}
.lm-hero .container { max-width: 680px; }
.lm-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--craft);
    display: block;
    margin-bottom: var(--s4);
}
.lm-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 400;
    color: var(--ink-bright);
    line-height: 1.12;
    margin-bottom: var(--s4);
}
.lm-subtitle {
    font-size: var(--type-base);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.8;
    max-width: 48ch;
}

.lm-section {
    padding: var(--s7) 0;
    position: relative;
    z-index: 2;
}
.lm-section .container { max-width: 680px; }
.lm-section--wide .container { max-width: 960px; }

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    counter-reset: check;
}
.checklist li {
    counter-increment: check;
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--edge);
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-primary);
    display: flex;
    gap: var(--s4);
    align-items: baseline;
}
.checklist li:first-child { border-top: 1px solid var(--edge); }
.checklist li::before {
    content: counter(check, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--craft);
    flex-shrink: 0;
    width: 2ch;
}
.checklist-name {
    font-weight: 500;
    color: var(--ink-bright);
}

/* Form */
.lm-form {
    padding: var(--s7) 0 var(--s9);
    position: relative;
    z-index: 2;
}
.lm-form .container { max-width: 680px; }
.lm-form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    margin-top: var(--s5);
}
.lm-input {
    font-family: var(--font-mono);
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-bright);
    background: var(--surface);
    border: 1px solid var(--edge-strong);
    padding: var(--s3) var(--s4);
    width: 100%;
    transition: border-color 0.25s var(--ease-out);
}
.lm-input::placeholder {
    color: var(--ink-muted);
}
.lm-input:focus-visible {
    outline: none;
    border-color: var(--craft);
}
.lm-select {
    font-family: var(--font-mono);
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-bright);
    background: var(--surface);
    border: 1px solid var(--edge-strong);
    padding: var(--s3) var(--s4);
    width: 100%;
    transition: border-color 0.25s var(--ease-out);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a88' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--s4) center;
    padding-right: var(--s7);
    cursor: pointer;
}
.lm-select:focus-visible {
    outline: none;
    border-color: var(--craft);
}
.lm-select option {
    background: var(--surface);
    color: var(--ink-bright);
}
.lm-submit {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--void);
    background: var(--craft);
    border: none;
    padding: var(--s3) var(--s5);
    cursor: pointer;
    transition: background 0.25s var(--ease-out);
    align-self: flex-start;
}
.lm-submit:hover {
    background: var(--craft-light);
}
.lm-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.lm-form-note {
    font-size: var(--type-xs);
    color: var(--ink-muted);
    margin-top: var(--s3);
}
.lm-form-success {
    padding: var(--s5);
    border: 1px solid var(--craft);
    background: var(--craft-glow);
    display: none;
}
.lm-form-success.visible { display: block; }
.lm-form-success.visible[hidden] { display: block; }
.lm-form-success p {
    font-size: var(--type-sm);
    color: var(--ink-bright);
    line-height: 1.7;
}
.lm-github-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-bright);
    background: transparent;
    border: 1px solid var(--craft);
    padding: var(--s3) var(--s5);
    text-decoration: none;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
    margin-top: var(--s5);
}
.lm-github-btn:hover {
    background: var(--craft);
    color: var(--void);
}
.lm-github-btn svg {
    flex-shrink: 0;
}
.lm-form-error {
    font-size: var(--type-xs);
    color: var(--error);
    margin-top: var(--s2);
    display: none;
}
.lm-section-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--ink-bright);
    line-height: 1.15;
    margin-top: var(--s3);
}
.lm-section-title--lg {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.lm-cta-section {
    text-align: center;
    padding: var(--s8) 0 var(--s9);
}
.lm-cta-section .prose {
    margin: var(--s4) auto 0;
    max-width: 48ch;
}
.lm-cta-section .contact-link {
    display: inline-block;
}

/* Before/After comparison */
.ba-panel {
    border: 1px solid var(--edge);
    padding: var(--s5);
    margin-bottom: var(--s4);
}
.ba-before { border-color: var(--edge); }
.ba-after { border-color: var(--craft-dim); }
.ba-label {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--s4);
}
.ba-before .ba-label { color: var(--ink-muted); }
.ba-after .ba-label { color: var(--craft); }
.ba-content p {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink-primary);
}
.ba-verdict {
    margin-top: var(--s4);
    font-style: italic;
    color: var(--ink-muted);
}
.ba-claim {
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--edge);
}
.ba-claim:last-child { border-bottom: none; }
.ba-confidence {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    color: var(--craft);
    display: block;
    margin-bottom: var(--s2);
}
.ba-flag {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    color: var(--craft);
    background: var(--craft-dim);
    display: inline-block;
    padding: 2px var(--s2);
    margin-bottom: var(--s2);
}
.ba-source {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 300;
    color: var(--ink-muted);
    display: block;
    margin-top: var(--s2);
}

/* Role-based scenarios */
.scenarios {
    display: flex;
    flex-direction: column;
}
.scenario {
    padding: var(--s5) 0;
    border-bottom: 1px solid var(--edge);
}
.scenario:first-child { border-top: 1px solid var(--edge); }
.scenario-role {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--craft);
    display: block;
    margin-bottom: var(--s3);
}
.scenario-q {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--type-md);
    color: var(--ink-bright);
    line-height: 1.5;
    margin-bottom: var(--s3);
}
.scenario-a {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
    max-width: 54ch;
}
.scenario-a em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--craft);
}

/* Gated content */
.gated-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.8s var(--ease-out),
                opacity 0.6s var(--ease-out) 0.2s;
}
.gated-content > .gated-inner {
    overflow: hidden;
}
.gated-content.revealed {
    grid-template-rows: 1fr;
    opacity: 1;
}
.gated-content.revealed > .gated-inner {
    overflow: visible;
    transition: overflow 0s 0.8s;
}

/* Resource list (hub page) */
.resource-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}
.resource-item {
    display: block;
    padding: var(--s5) 0 var(--s5) var(--s4);
    border-top: 1px solid var(--edge);
    position: relative;
    transition: border-color 0.3s var(--ease-out);
}
.resource-item::before {
    content: '';
    position: absolute;
    left: 0; top: var(--s5); bottom: var(--s5);
    width: 2px;
    background: var(--craft);
    transform: scaleY(0.3);
    opacity: 0.3;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.resource-item:hover::before { transform: scaleY(1); opacity: 1; }
.resource-item:hover { border-color: var(--edge-strong); }
.resource-type {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--craft);
    display: block;
    margin-bottom: var(--s2);
}
.resource-title {
    font-family: var(--font-mono);
    font-size: var(--type-lg);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink-bright);
    margin-bottom: var(--s2);
    line-height: 1.3;
    transition: color 0.25s var(--ease-out);
}
.resource-item:hover .resource-title { color: var(--craft); }
.resource-desc {
    font-size: var(--type-sm);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
    max-width: 54ch;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 960px) {
    .nl-tracks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav { padding: var(--s3) var(--s4); }
    .nav-links { gap: var(--s4); }

    .hero { padding: var(--s9) var(--s4); }
    .instrument-wrap { width: 90vw; height: 90vw; }

    .container { padding: 0 var(--s4); }
    .footer-newsletter .container { grid-template-columns: 1fr; gap: var(--s5); }
    .footer-newsletter { padding: var(--s6) var(--s4); }
    .footer-nl-row { flex-direction: column; }
    .footer-bottom { padding: var(--s4); }
    .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: var(--s3); }

    .page-header { padding: var(--s9) var(--s4) var(--s6); }
    .founder-row { grid-template-columns: 1fr; }
    .founder-photo { max-width: 280px; }
    .practices-overview { grid-template-columns: 1fr; }

    .ba-panel { padding: var(--s4); }
    .lm-hero .container,
    .lm-section .container,
    .lm-form .container { padding: 0 var(--s4); }
    .lm-hero { padding: var(--s9) 0 var(--s6); }

    .testimony .container { padding: 0 var(--s4); }
    .testimony-layout { grid-template-columns: 1fr; }
    .testimony-feature { position: static; margin-bottom: var(--s5); }
    .testimony-quote { font-size: var(--type-lg); }

    .nl-tracks { grid-template-columns: 1fr; }
    .nl-hero-row { flex-direction: column; }
    .resource-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .display { letter-spacing: -0.02em; }
    .hero-subtitle { font-size: var(--type-sm); }
    .nav-links { gap: var(--s3); }
    .nav-links a { font-size: var(--type-xs); letter-spacing: 0.12em; }

    .ba-panel { padding: var(--s3); }
    .ba-flag { display: block; }
    .ba-source { word-break: break-word; }
    .scenario-q { font-size: var(--type-base); }
}

/* ══════════════════════════════════════════
   ASSESSMENT PAGE
   ══════════════════════════════════════════ */
.assess-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s10) 0 var(--s7);
}
.assess-wrap .container {
    max-width: 680px;
}

.assess-screen {
    display: none;
}
.assess-screen.active {
    display: block;
}

/* Screen 1: Hero */
.assess-stats {
    display: flex;
    gap: var(--s6);
    margin-top: var(--s6);
    margin-bottom: var(--s6);
    padding-top: var(--s5);
    border-top: 1px solid var(--edge);
}
.assess-stat {
    text-align: center;
}
.assess-stat-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--type-xl);
    color: var(--craft);
    display: block;
    line-height: 1.2;
}
.assess-stat-label {
    font-size: var(--type-xs);
    color: var(--ink-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.assess-start {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--void);
    background: var(--craft);
    border: none;
    padding: var(--s3) var(--s5);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.25s var(--ease-out);
}
.assess-start:hover {
    background: var(--craft-light);
}

/* Screen 2: Questions */
.assess-progress {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--s5);
}
.assess-progress span {
    color: var(--craft);
}
.assess-question-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--ink-bright);
    line-height: 1.25;
    margin-bottom: var(--s5);
}
.assess-options {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}
.assess-option {
    font-family: var(--font-mono);
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-primary);
    background: var(--surface);
    border: 1px solid var(--edge-strong);
    padding: var(--s3) var(--s4);
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
    line-height: 1.7;
    transition: border-color 0.25s var(--ease-out),
                color 0.25s var(--ease-out),
                background 0.25s var(--ease-out);
}
.assess-option:hover {
    border-color: var(--craft);
    color: var(--ink-bright);
}
.assess-option:focus-visible {
    outline: 2px solid var(--craft);
    outline-offset: 2px;
}
.assess-option[aria-checked="true"] {
    border-color: var(--craft);
    color: var(--ink-bright);
    background: var(--craft-dim);
}

.assess-question-inner {
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.assess-question-inner.exiting {
    opacity: 0;
    transform: translateY(-20px);
}
.assess-question-inner.entering {
    opacity: 0;
    transform: translateY(20px);
}

/* Screen 3: Email Gate */
.assess-gate-score {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--craft);
    line-height: 1;
    margin-bottom: var(--s2);
}
.assess-gate-label {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--s5);
}
.assess-gate-copy {
    font-size: var(--type-base);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.8;
    max-width: 48ch;
    margin-bottom: var(--s5);
}
.assess-gate-note {
    font-size: var(--type-xs);
    color: var(--ink-muted);
    margin-top: var(--s3);
}

/* Screen 4: Results */
.results-score {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--craft);
    line-height: 1;
}
.results-score-total {
    font-size: 0.4em;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-style: normal;
}
.results-level {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: var(--s3);
    margin-bottom: var(--s7);
    padding-top: var(--s3);
    border-top: 1px solid var(--edge);
}
.results-level strong {
    color: var(--craft);
}
.results-summary {
    font-size: var(--type-base);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.8;
    max-width: 48ch;
    margin-bottom: var(--s7);
}
.results-summary strong {
    font-weight: 500;
    color: var(--ink-bright);
}

.results-dimensions {
    margin-bottom: var(--s7);
}
.results-dim {
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--edge);
}
.results-dim:first-child {
    border-top: 1px solid var(--edge);
}
.results-dim-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--s2);
}
.results-dim-name {
    font-family: var(--font-mono);
    font-size: var(--type-sm);
    font-weight: 400;
    color: var(--ink-bright);
}
.results-dim-score {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
}
.results-dim-track {
    height: 2px;
    background: var(--edge);
    position: relative;
}
.results-dim-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--craft);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
    transition: transform 0.8s var(--ease-out);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
    margin-bottom: var(--s8);
}
.results-grid-section {
    padding: var(--s4);
    border: 1px solid var(--edge);
    background: var(--surface);
}
.results-grid-title {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--craft);
    margin-bottom: var(--s3);
}
.results-grid-item {
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-primary);
    line-height: 1.7;
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--edge);
}
.results-grid-item:last-child {
    border-bottom: none;
}
.results-grid-item strong {
    font-weight: 500;
    color: var(--ink-bright);
    display: block;
}
.results-grid-item span {
    font-size: var(--type-xs);
    color: var(--ink-muted);
}

.results-cta {
    padding: var(--s5);
    border: 1px solid var(--edge);
    background: var(--surface);
    margin-bottom: var(--s6);
}
.results-cta-headline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--type-lg);
    font-weight: 400;
    color: var(--ink-bright);
    line-height: 1.25;
    margin-bottom: var(--s3);
}
.results-cta-body {
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.8;
    margin-bottom: var(--s4);
}
.results-cta-price {
    font-family: var(--font-mono);
    font-size: var(--type-sm);
    color: var(--ink-primary);
    margin-bottom: var(--s2);
}
.results-cta-price del {
    color: var(--ink-muted);
    margin-right: var(--s2);
}
.results-cta-price strong {
    font-weight: 500;
    color: var(--craft);
}
.results-cta-urgency {
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 400;
    color: var(--craft);
    letter-spacing: 0.02em;
    margin-bottom: var(--s4);
}
.results-cta-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: var(--type-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--void);
    background: var(--craft);
    border: none;
    padding: var(--s3) var(--s5);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s var(--ease-out);
}
.results-cta-btn:hover {
    background: var(--craft-light);
}
.results-cta-secondary {
    margin-top: var(--s4);
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.7;
}
.results-cta-secondary a {
    color: var(--craft);
    border-bottom: 1px solid var(--craft-dim);
    padding: var(--s2) 0;
    transition: border-color 0.25s var(--ease-out);
}
.results-cta-secondary a:hover {
    border-color: var(--craft);
}
.results-inbox-note {
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-primary);
    line-height: 1.7;
    padding: var(--s4);
    border: 1px solid var(--craft);
    background: var(--craft-glow);
    margin-bottom: var(--s4);
}
.results-course-confirm {
    font-size: var(--type-sm);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .assess-wrap .container { padding: 0 var(--s4); }
    .assess-stats { gap: var(--s4); }
}

@media (max-width: 640px) {
    .assess-wrap { padding: var(--s9) 0 var(--s6); }
    .assess-wrap .container { padding: 0 var(--s4); }
    .assess-stats { gap: var(--s4); }
    .results-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .assess-question-inner,
    .assess-question-inner.exiting,
    .assess-question-inner.entering,
    .results-dim-fill {
        transition: none;
    }
}

/* ════════════════════════════════════════════════════════════════
   ASSESSMENT — CINEMATIC RESULTS REVEAL
   ════════════════════════════════════════════════════════════════ */

/* Ring container — holds the SVG gauge and the score number */
.results-score-ring {
    position: relative;
    width: clamp(15rem, 28vw, 21rem);
    aspect-ratio: 1 / 1;
    margin: 0 0 var(--s3);
}
.results-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}
.results-ring-track {
    fill: none;
    stroke: var(--edge-strong);
    stroke-width: 1;
    opacity: 0.8;
}
.results-ring-fill {
    fill: none;
    stroke: var(--craft);
    stroke-width: 2;
    stroke-linecap: butt;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}
.results-ring-ticks line {
    stroke: var(--edge-strong);
    stroke-width: 1;
    transition: stroke 0.18s var(--ease-out),
                stroke-width 0.18s var(--ease-out);
}
.results-ring-ticks line.active {
    stroke: var(--craft);
}
.results-ring-ticks line.major {
    stroke-width: 2;
}
.results-ring-ticks line.active.major {
    stroke: var(--craft-light, var(--craft));
}

/* Score sits centered over the ring, inheriting prior typography */
.results-score-ring .results-score {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.06em;
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-size: clamp(3.5rem, 8.5vw, 6rem);
    letter-spacing: -0.01em;
    line-height: 1;
}
.results-score-ring #results-score-num {
    display: inline-block;
    line-height: 0.85;
}
.results-score-ring .results-score-total {
    font-size: 0.3em;
    font-family: var(--font-mono);
    font-style: normal;
    font-weight: 400;
    color: var(--ink-muted);
    align-self: flex-end;
    padding-bottom: 0.8em;
    letter-spacing: 0.02em;
}

/* Level stamp — drops from above with a serif italic imprint */
.results-level {
    opacity: 0;
    transform: translateY(-22px) scale(0.94);
    filter: blur(6px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.8s cubic-bezier(0.22, 1.2, 0.36, 1),
                filter 0.7s var(--ease-out);
}
.results-level.landed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.results-level .results-level-stamp {
    display: inline-block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4em;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--craft);
    margin-left: 0.4em;
    transform-origin: left center;
}

/* Streaming summary — starts invisible, script fills it character by character */
.results-summary {
    min-height: 3lh;
}
.results-summary.streaming,
.results-summary.streamed {
    opacity: 1;
}
.stream-cursor {
    display: inline-block;
    width: 0.08em;
    height: 1.05em;
    background: var(--craft);
    vertical-align: -0.15em;
    margin-left: 0.06em;
    animation: stream-blink 0.9s steps(2, start) infinite;
}
.stream-cursor.done {
    animation: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
@keyframes stream-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* Dimensions, grid, CTA — start hidden, revealed via .revealed class */
.results-stage {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}
.results-stage.revealed {
    opacity: 1;
    transform: translateY(0);
}
.results-stage.revealed .results-dimensions { transition-delay: 0s; }
.results-stage.revealed .results-grid       { transition-delay: 0.08s; }
.results-stage.revealed .results-cta        { transition-delay: 0.16s; }

/* ════════════════════════════════════════════════════════════════
   ASSESSMENT — VIEW TRANSITIONS (question flow)
   ════════════════════════════════════════════════════════════════ */
.assess-question-inner {
    view-transition-name: assess-question;
}
.assess-progress {
    view-transition-name: assess-progress;
}

::view-transition-old(assess-question) {
    animation: q-exit 380ms cubic-bezier(0.7, 0, 0.84, 0) forwards;
}
::view-transition-new(assess-question) {
    animation: q-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) 60ms backwards;
}
::view-transition-old(assess-progress) {
    animation: q-fade-out 240ms var(--ease-out) forwards;
}
::view-transition-new(assess-progress) {
    animation: q-fade-in 320ms var(--ease-out) 80ms backwards;
}

@keyframes q-exit {
    to {
        opacity: 0;
        transform: translateX(-52px) scale(0.98);
        filter: blur(6px);
    }
}
@keyframes q-enter {
    from {
        opacity: 0;
        transform: translateX(64px) scale(0.985);
        filter: blur(6px);
    }
}
@keyframes q-fade-out {
    to { opacity: 0; transform: translateY(-4px); }
}
@keyframes q-fade-in {
    from { opacity: 0; transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .results-score-ring .results-score { transform: none; }
    .results-level,
    .results-level.landed,
    .results-stage,
    .results-stage.revealed {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
    .stream-cursor { display: none; }
    ::view-transition-old(assess-question),
    ::view-transition-new(assess-question),
    ::view-transition-old(assess-progress),
    ::view-transition-new(assess-progress) {
        animation: none;
    }
}
