:root {
    --paper: #faf6ee;
    --paper-soft: #f4ebd9;
    --ink: #181614;
    --ink-soft: #4d473f;
    --ink-mute: #7a7268;
    --rule: #e7dcc4;
    --sage: #6b8068;
    --sage-soft: #c5d2bd;
    --peach: #ee8161;
    --peach-soft: #f8c6b3;
    --lemon: #efc94c;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --content: 760px;
    --gutter: clamp(20px, 5vw, 44px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* ------------------------------------------------------------------
   Animated gradient blobs in the background. Pure CSS, no JS, no images.
   They drift slowly so the page feels alive without ever shouting.
   ------------------------------------------------------------------ */
.bg-blobs {
    position: fixed;
    inset: -10vmax;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}
.blob-1 {
    background: radial-gradient(circle at 30% 30%, var(--peach-soft), transparent 65%);
    top: -10vmax; left: -8vmax;
    animation: drift1 28s ease-in-out infinite alternate;
}
.blob-2 {
    background: radial-gradient(circle at 70% 30%, var(--sage-soft), transparent 65%);
    top: 30vmax; right: -10vmax;
    animation: drift2 34s ease-in-out infinite alternate;
}
.blob-3 {
    background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--lemon) 50%, transparent), transparent 60%);
    bottom: -15vmax; left: 25vmax;
    animation: drift3 40s ease-in-out infinite alternate;
    opacity: 0.4;
}
@keyframes drift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vmax, 6vmax) scale(1.15); }
}
@keyframes drift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10vmax, 5vmax) scale(1.1); }
}
@keyframes drift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6vmax, -8vmax) scale(0.9); }
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: -0.01em;
}
.brand img { display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--gutter);
    background: color-mix(in oklab, var(--paper) 80%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: var(--ink-soft);
    font-weight: 500;
}

.cta {
    background: var(--ink);
    color: var(--paper);
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 500;
    transition: transform .2s ease, background-color .2s ease;
}
.cta:hover { background: var(--peach); transform: translateY(-1px); }

main {
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
    max-width: var(--content);
    margin: 0 auto;
    padding: clamp(60px, 12vw, 140px) 0 80px;
    text-align: left;
}

.eyebrow {
    margin: 0 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
}
.eyebrow .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--peach);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--peach) 25%, transparent);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    50% { transform: scale(1.25); }
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(54px, 10vw, 112px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 32px;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(120deg, var(--peach) 0%, var(--sage) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    max-width: 580px;
    margin: 0 0 40px;
    font-size: clamp(18px, 1.65vw, 22px);
    line-height: 1.55;
    color: var(--ink-soft);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 90px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    transition: transform .18s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn .btn-meta {
    font-size: 12px;
    font-weight: 400;
    color: color-mix(in oklab, currentColor 60%, transparent);
    letter-spacing: 0.02em;
}

.btn.primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 4px 20px -4px color-mix(in oklab, var(--ink) 50%, transparent);
}
.btn.primary:hover {
    background: linear-gradient(135deg, var(--ink), color-mix(in oklab, var(--peach) 30%, var(--ink)));
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -6px color-mix(in oklab, var(--peach) 35%, var(--ink));
}

.btn.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
}
.btn.ghost:hover {
    border-color: var(--ink);
    background: color-mix(in oklab, var(--paper-soft) 80%, transparent);
}

.btn.big { padding: 18px 28px; font-size: 17px; }

.hero-shot {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}
.hero-shot img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 22px;
    transform: rotate(-1.5deg);
    transition: transform .4s ease;
    filter: drop-shadow(0 30px 60px rgba(20, 20, 20, 0.18))
            drop-shadow(0 4px 8px rgba(20, 20, 20, 0.06));
}
.hero-shot:hover img {
    transform: rotate(0deg) scale(1.02);
}

/* ------------------------------------------------------------------
   Section primitives
   ------------------------------------------------------------------ */
.section-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--peach);
}

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 56px;
    max-width: 640px;
}
.section-title em {
    font-style: italic;
    color: var(--sage);
}

/* ------------------------------------------------------------------
   Features
   ------------------------------------------------------------------ */
.features {
    max-width: var(--content);
    margin: 0 auto;
    padding: 80px 0;
    border-top: 1px solid var(--rule);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 64px;
}
@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr; gap: 40px; }
}

.feature {
    position: relative;
    padding-left: 56px;
}
.feature-num {
    position: absolute;
    left: 0;
    top: 4px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 28px;
    color: var(--peach);
    letter-spacing: -0.02em;
}
.feature h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.feature p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
}

kbd {
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--paper-soft);
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink);
}

/* ------------------------------------------------------------------
   Why
   ------------------------------------------------------------------ */
.why {
    max-width: var(--content);
    margin: 0 auto;
    padding: 80px 0;
    border-top: 1px solid var(--rule);
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 22px;
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--ink-soft);
}
.why-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}
.why-list strong {
    color: var(--ink);
    font-weight: 600;
}
.why-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: color-mix(in oklab, var(--sage-soft) 70%, transparent);
    color: var(--sage);
}
.why-list li:nth-child(2) .why-pill {
    background: color-mix(in oklab, var(--peach-soft) 70%, transparent);
    color: var(--peach);
}
.why-list li:nth-child(3) .why-pill {
    background: color-mix(in oklab, var(--lemon) 30%, transparent);
    color: #8c6e00;
}
.why-list li:nth-child(4) .why-pill {
    background: var(--paper-soft);
    color: var(--ink-mute);
}

/* ------------------------------------------------------------------
   Research / Science of Focus
   ------------------------------------------------------------------ */
.research {
    max-width: var(--content);
    margin: 0 auto;
    padding: 80px 0;
    border-top: 1px solid var(--rule);
}
.research-lede {
    max-width: 60ch;
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 40px;
}
.research-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.research-list li {
    padding: 28px 26px 24px;
    border-radius: 18px;
    background: color-mix(in oklab, var(--paper-soft) 70%, transparent);
    border: 1px solid color-mix(in oklab, var(--rule) 70%, transparent);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.research-stat {
    font-family: var(--serif);
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1;
    color: var(--peach);
    letter-spacing: -0.02em;
}
.research-list p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
}
.research-list cite {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    font-style: normal;
    color: var(--ink-mute);
    letter-spacing: 0.01em;
    border-top: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}
.research-list cite em {
    font-style: italic;
}

/* ------------------------------------------------------------------
   Footnotes (paper style)
   ------------------------------------------------------------------ */
sup.fn {
    font-size: 0.65em;
    line-height: 1;
    vertical-align: super;
    margin-left: 1px;
}
sup.fn a {
    color: var(--peach);
    text-decoration: none;
    padding: 0 1px;
    font-feature-settings: "tnum" 1;
}
sup.fn a:hover { text-decoration: underline; }

.footnotes {
    max-width: var(--content);
    margin: 0 auto;
    padding: 48px 0 20px;
    border-top: 1px solid var(--rule);
}
.footnotes ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fn;
    display: grid;
    gap: 10px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--ink-mute);
    font-family: "Inter", system-ui, sans-serif;
    max-width: 78ch;
}
.footnotes li {
    counter-increment: fn;
    padding-left: 28px;
    position: relative;
    text-indent: 0;
}
.footnotes li::before {
    content: "[" counter(fn) "]";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--peach);
    font-feature-settings: "tnum" 1;
    font-weight: 500;
    font-size: 11px;
}
.footnotes li strong {
    color: var(--ink);
    font-weight: 600;
}
.footnotes code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    background: color-mix(in oklab, var(--paper-soft) 70%, transparent);
    padding: 0 4px;
    border-radius: 3px;
    color: var(--ink-soft);
}
.footnotes em { font-style: italic; }
.footnotes a { color: var(--peach); }
.footnotes :target {
    background: color-mix(in oklab, var(--peach-soft) 30%, transparent);
    border-radius: 8px;
    padding: 8px 10px 8px 36px;
    margin-left: -10px;
}

/* ------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------ */
.cta-band {
    max-width: var(--content);
    margin: 80px auto;
    padding: 60px 48px;
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(135deg,
        color-mix(in oklab, var(--peach-soft) 70%, var(--paper)) 0%,
        color-mix(in oklab, var(--sage-soft) 70%, var(--paper)) 100%);
    border: 1px solid color-mix(in oklab, var(--rule) 80%, transparent);
}
.cta-band h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin: 0 0 28px;
    color: var(--ink);
}

/* ------------------------------------------------------------------
   Beta + footer
   ------------------------------------------------------------------ */
.beta {
    max-width: var(--content);
    margin: 0 auto;
    padding: 60px 0 120px;
    color: var(--ink-soft);
}

.beta p { margin: 0 0 16px; max-width: 640px; }
.beta a {
    color: var(--peach);
    border-bottom: 1px solid color-mix(in oklab, var(--peach) 50%, transparent);
}
.beta a:hover { border-bottom-color: var(--peach); }
.beta code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    background: var(--paper-soft);
    padding: 2px 6px;
    border-radius: 4px;
}

.site-footer {
    border-top: 1px solid var(--rule);
    padding: 36px var(--gutter) 60px;
    background: color-mix(in oklab, var(--paper-soft) 65%, var(--paper));
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--content);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: var(--ink-soft);
}

.fineprint {
    max-width: var(--content);
    margin: 32px auto 0;
    font-size: 13px;
    color: var(--ink-mute);
    text-align: center;
    font-style: italic;
}

/* ------------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .cta { transition: none; }
    .blob, .eyebrow .dot { animation: none; }
    .hero-shot img { transform: none; }
}
