:root {
    --paper: oklch(0.98 0.025 103);
    --paper-2: oklch(0.96 0.022 100);
    --ink: oklch(0.16 0.012 95);
    --ink-2: oklch(0.22 0.012 95);
    --mute: oklch(0.51 0.014 95);
    --mute-on-ink: oklch(0.98 0.025 103 / 0.62);
    --line: oklch(0.16 0.012 95 / 0.12);
    --line-on-ink: oklch(0.98 0.025 103 / 0.14);
    --lavender: oklch(0.86 0.07 305);
    --lavender-line: oklch(0.74 0.1 305);
    --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1180px;
    --pad-x: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ─── Top bar ─────────────────────────────── */
.topbar {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px var(--pad-x);
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.topbar-link {
    color: var(--mute-on-ink);
    font-weight: 500;
}
.topbar-link--active {
    color: var(--paper);
    font-weight: 700;
    border-bottom: 1px solid var(--paper);
    padding-bottom: 1px;
}
.topbar-sep { color: var(--mute-on-ink); }

/* ─── Nav ─────────────────────────────────── */
.nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: oklch(0.98 0.025 103 / 0.92);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px var(--pad-x);
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}
.brand-mark {
    height: 26px;
    width: auto;
    opacity: 0.95;
}
.brand-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    gap: 36px;
    justify-self: center;
}
.nav-links a {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--mute);
    transition: color 180ms ease;
}
.nav-links a:hover { color: var(--ink); }

.pill {
    justify-self: end;
    display: inline-block;
    background: var(--lavender);
    color: var(--ink);
    border: 1px solid var(--lavender-line);
    border-radius: 999px;
    padding: 9px 18px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px oklch(0.74 0.1 305 / 0.28);
    background: oklch(0.88 0.075 305);
}

/* ─── Hero ────────────────────────────────── */
.hero {
    background: var(--paper);
    padding: 88px 0 96px;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    text-align: center;
}

.eyebrow {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--mute);
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.display {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--ink);
    font-size: clamp(40px, 5.6vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.012em;
    margin: 0 auto 28px;
    max-width: 22ch;
    min-height: 2.3em;
}
.display .caret {
    display: inline-block;
    width: 0.06em;
    height: 0.95em;
    background: var(--ink);
    vertical-align: -0.08em;
    margin-left: 0.04em;
    animation: caret-blink 800ms steps(1) infinite;
}
@keyframes caret-blink {
    50% { opacity: 0; }
}

.lede {
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.55;
    color: var(--mute);
    max-width: 56ch;
    margin: 0 auto;
}

.stats {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}
.stats > div {
    text-align: center;
}
.stats dt {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 44px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 8px;
}
.stats dd {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ─── Bands (alternating sections) ────────── */
.band {
    padding: 120px 0;
}
.band--paper {
    background: var(--paper);
    color: var(--ink);
}
.band--ink {
    background: var(--ink);
    color: var(--paper);
}

.band-inner {
    max-width: 1100px;
}

.label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 28px;
}
.band--ink .label { color: var(--mute-on-ink); }

.serif-h {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    max-width: 18ch;
    margin-bottom: 28px;
}
.serif-h em {
    font-style: italic;
}

.body {
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    max-width: 56ch;
    color: var(--mute);
    margin-bottom: 56px;
}
.band--ink .body { color: var(--mute-on-ink); }

.body q {
    quotes: "\201C" "\201D";
    font-style: italic;
    color: inherit;
}

/* ─── Demo frame (browser chrome) ─────────── */
.frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-on-ink);
    background: oklch(0.22 0.012 95);
    box-shadow: 0 24px 80px oklch(0 0 0 / 0.4);
}
.frame-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: oklch(0.20 0.012 95);
    border-bottom: 1px solid var(--line-on-ink);
}
.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--mute-on-ink);
    opacity: 0.6;
}
.dot:nth-child(1) { background: oklch(0.78 0.15 25); opacity: 0.85; }
.dot:nth-child(2) { background: oklch(0.85 0.14 85); opacity: 0.85; }
.dot:nth-child(3) { background: oklch(0.82 0.16 145); opacity: 0.85; }
.frame-url {
    margin-left: 14px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--mute-on-ink);
    letter-spacing: 0.01em;
}
.frame-stage {
    background: oklch(0.13 0.01 95);
}
.loom-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.loom-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── Trio (data section feature blocks) ──── */
.trio {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.trio li {
    padding-top: 28px;
}
.trio h3 {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.005em;
}
.trio p {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--mute);
}

/* ─── Cases (use cases editorial 2x2) ─────── */
.cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    row-gap: 48px;
    border-top: 1px solid var(--line-on-ink);
    padding-top: 40px;
}
.cases article {
    padding-right: 12px;
}
.cases h3 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute-on-ink);
    margin-bottom: 14px;
}
.case-q {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.25;
    color: var(--paper);
    max-width: 32ch;
}
.case-q q {
    quotes: "\201C" "\201D";
}

/* ─── Form ────────────────────────────────── */
.form-card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    max-width: 680px;
    box-shadow: 0 18px 60px oklch(0.16 0.012 95 / 0.06);
}
.form-card iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* ─── Footer ──────────────────────────────── */
.foot {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 36px 0;
}
.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.foot-brand {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.foot-meta {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--mute);
}

/* ─── Reveal on scroll ────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 880px) {
    .nav-inner {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }
    .nav-links { display: none; }
    .pill { padding: 8px 14px; font-size: 13px; }

    .hero { padding: 60px 0 72px; }
    .display { font-size: clamp(54px, 14vw, 92px); }
    .stats { grid-template-columns: 1fr; gap: 22px; padding: 22px 0; }
    .stats dt { font-size: 36px; }

    .band { padding: 88px 0; }
    .serif-h { font-size: clamp(34px, 8vw, 50px); }
    .body { font-size: 16px; margin-bottom: 40px; }

    .trio { grid-template-columns: 1fr; gap: 28px; }
    .trio li { padding-top: 20px; }

    .cases {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 32px;
    }
    .case-q { font-size: 22px; }
}

@media (max-width: 480px) {
    :root { --pad-x: 20px; }
    .topbar-inner { font-size: 12px; gap: 10px; }
    .display { font-size: clamp(46px, 16vw, 72px); }
    .lede { font-size: 16px; }
    .label { font-size: 11px; letter-spacing: 0.18em; }
}

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