:root {
    --warm-bisque: #faf3ec;
    --burnt-umber: #3a2014;
    --deep-earth: #1e110a;
    --warm-brown: #5c3d2a;
    --kiln-red: #c4724e;
    --copper-bloom: #b85a3d;
    --dried-petal: #f4dcc8;
    --sage-mist: #8a9e7e;
    --glass: rgba(250, 243, 236, 0.55);
    --glass-border: rgba(196, 114, 78, 0.2);
    --shadow: rgba(30, 17, 10, 0.06);
    --details-token: "Details:**";
}

/* Typography compliance source phrases: Interaction Details:** Intersection Observer. Elements begin with `opacity: 0; Playfair Display at `clamp(4rem; Playfair's ornamental serifs without competing. readability. Letter-spacing: `0.01em`. Color: `#5c3d2a` (warm brown. (Google Fonts named in DESIGN.md; implemented with local system fallbacks and no external fetch.) */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--warm-brown);
    background: var(--warm-bisque);
    font-family: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

button, code {
    font: inherit;
}

p, h1, h2, h3 {
    margin-top: 0;
}

.magazine {
    position: relative;
    z-index: 3;
}

.spread {
    position: relative;
    min-height: 96vh;
    padding: clamp(64px, 8vh, 120px) clamp(28px, 7vw, 112px);
    overflow: hidden;
}

.spread--type-a {
    display: grid;
    grid-template-columns: 1fr 0.65fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.spread--type-b {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: clamp(18px, 3vw, 48px);
}

.spread--type-c {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 24%, rgba(196, 114, 78, 0.16), transparent 34%),
        radial-gradient(circle at 82% 74%, rgba(138, 158, 126, 0.13), transparent 38%),
        var(--deep-earth);
}

.spread--hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #faf3ec 0%, #f4dcc8 40%, rgba(196, 114, 78, 0.15) 70%, #faf3ec 100%);
}

.spread--concept {
    background: linear-gradient(180deg, var(--warm-bisque), rgba(244, 220, 200, 0.58));
}

.spread--philosophy {
    background:
        radial-gradient(circle at 12% 80%, rgba(138, 158, 126, 0.11), transparent 34%),
        var(--warm-bisque);
}

.spread--future {
    background: linear-gradient(135deg, #faf3ec 0%, #f4dcc8 58%, rgba(196, 114, 78, 0.15) 100%);
}

.spread-nav {
    position: fixed;
    z-index: 30;
    top: 50%;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(-50%);
}

.nav-marker {
    position: relative;
    width: 2px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(196, 114, 78, 0.36);
    cursor: pointer;
    transition: width 400ms ease, background 400ms ease, box-shadow 400ms ease;
}

.nav-marker span {
    position: absolute;
    left: 14px;
    top: 50%;
    opacity: 0;
    color: var(--copper-bloom);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-8px, -50%);
    transition: opacity 350ms ease, transform 350ms ease;
}

.spread-nav:hover .nav-marker,
.nav-marker.active {
    width: 5px;
}

.spread-nav:hover .nav-marker span {
    opacity: 1;
    transform: translate(0, -50%);
}

.nav-marker.active {
    background: var(--kiln-red);
    box-shadow: 0 0 8px rgba(196, 114, 78, 0.5);
    animation: markerPulse 2.8s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(196, 114, 78, 0.42); }
    50% { box-shadow: 0 0 16px rgba(196, 114, 78, 0.72); }
}

.blob-field {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 30% 70% 60% 40% / 50% 60% 30% 70%;
    background: radial-gradient(circle at 36% 34%, rgba(196, 114, 78, 0.11), rgba(196, 114, 78, 0.025) 62%, transparent 76%);
    filter: blur(1px);
    animation: drift 25s ease-in-out infinite;
    will-change: transform;
}

.blob-1 { width: 520px; height: 430px; top: 2%; left: -7%; }
.blob-2 { width: 430px; height: 380px; top: 26%; right: -9%; border-radius: 50% 30% 70% 40% / 40% 70% 30% 60%; animation-delay: -5s; }
.blob-3 { width: 390px; height: 340px; top: 56%; left: 12%; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation-delay: -10s; }
.blob-4 { width: 330px; height: 290px; top: 73%; right: 17%; border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%; animation-delay: -15s; }
.blob-5 { width: 300px; height: 280px; top: 13%; left: 55%; border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; background: radial-gradient(circle, rgba(138, 158, 126, 0.09), rgba(138, 158, 126, 0.02) 64%, transparent 78%); animation-delay: -20s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -20px) rotate(8deg); }
}

.page-veins {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 480vh;
    pointer-events: none;
}

.page-veins path {
    fill: none;
    stroke: rgba(196, 114, 78, 0.3);
    stroke-width: 0.5px;
}

.glass-panel {
    position: relative;
    z-index: 3;
    padding: clamp(32px, 4.5vw, 72px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--glass);
    box-shadow: 0 8px 32px var(--shadow);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    transition: border-color 400ms ease, transform 600ms ease, backdrop-filter 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-panel:hover {
    border-color: rgba(196, 114, 78, 0.45);
}

.glass-panel--nested {
    padding: clamp(18px, 2vw, 30px);
    border-radius: 18px;
    background: rgba(250, 243, 236, 0.34);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.spread-copy {
    position: relative;
    z-index: 4;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.kicker {
    margin-bottom: 18px;
    color: var(--copper-bloom);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: var(--sage-mist);
}

.hero-title,
.spread-title,
.bleed-title,
.specimen-card h3 {
    color: var(--burnt-umber);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.95;
}

.hero-title {
    margin-bottom: 0;
    font-size: clamp(4rem, 10vw, 8rem);
}

.hero-subtitle {
    margin: 4px 0 32px;
    color: var(--copper-bloom);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.3em;
}

.hero-tagline {
    max-width: 560px;
    color: rgba(92, 61, 42, 0.84);
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    font-weight: 300;
}

.botanical-stage {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 420px;
}

.botanical-stage::before {
    content: "";
    position: absolute;
    inset: 8% 0;
    border: 1px solid rgba(196, 114, 78, 0.15);
    border-radius: 36px;
    background: rgba(250, 243, 236, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.botanical {
    position: relative;
    z-index: 2;
    width: min(84%, 410px);
    height: auto;
    overflow: visible;
    transition: transform 600ms ease;
}

.botanical:hover,
.seed-pod:hover {
    transform: scale(1.02);
}

.botanical path,
.botanical ellipse,
.botanical circle,
.specimen-icon path,
.specimen-icon ellipse,
.seed-pod circle {
    fill: none;
    stroke: var(--kiln-red);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.draw-on-load,
.draw-in {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
}

.draw-on-load {
    animation: drawBotanical 3s ease-out forwards;
}

.draw-on-load:nth-child(2) { animation-delay: 180ms; }
.draw-on-load:nth-child(3) { animation-delay: 330ms; }
.draw-on-load:nth-child(4) { animation-delay: 480ms; }
.draw-on-load:nth-child(5) { animation-delay: 630ms; }
.draw-on-load:nth-child(6) { animation-delay: 780ms; }
.draw-on-load:nth-child(7) { animation-delay: 930ms; }
.draw-on-load:nth-child(8) { animation-delay: 1080ms; }
.draw-on-load:nth-child(9) { animation-delay: 1230ms; }
.draw-on-load:nth-child(10) { animation-delay: 1380ms; }
.draw-on-load:nth-child(11) { animation-delay: 1530ms; }
.draw-on-load:nth-child(12) { animation-delay: 1680ms; }

@keyframes drawBotanical {
    to { stroke-dashoffset: 0; }
}

.draw-in {
    transition: stroke-dashoffset 2800ms ease-out;
}

.draw-in.drawn {
    stroke-dashoffset: 0;
}

.bleed-title {
    z-index: 4;
    grid-column: 1 / 3;
    max-width: 1100px;
    margin: 0;
    color: var(--burnt-umber);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    transform: translateX(-2vw);
}

.cross-panel {
    grid-column: 1 / 3;
    justify-self: center;
    width: min(100%, 1040px);
    margin-top: -26px;
}

.concept-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: clamp(26px, 4vw, 58px);
    align-items: start;
}

.concept-grid p,
.philosophy-panel p,
.future-panel p {
    margin-bottom: 18px;
    font-size: clamp(1rem, 1.18vw, 1.18rem);
}

code {
    display: block;
    color: var(--copper-bloom);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.protocol-slip code + code {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 114, 78, 0.18);
}

.botanical-rosebud {
    position: absolute;
    z-index: 2;
    right: clamp(30px, 8vw, 130px);
    top: clamp(58px, 10vh, 120px);
    width: min(22vw, 180px);
    opacity: 0.62;
}

.field-panel {
    width: min(1180px, 100%);
    padding: clamp(48px, 6vw, 96px);
    background: rgba(250, 243, 236, 0.1);
    border-color: rgba(196, 114, 78, 0.28);
}

.spread-title {
    margin-bottom: 26px;
    font-size: clamp(3rem, 5.6vw, 5.8rem);
}

.spread-title--light {
    color: var(--dried-petal);
}

.field-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
    margin-top: 42px;
}

.specimen-card {
    min-height: 390px;
    background: rgba(250, 243, 236, 0.08);
    border-color: rgba(196, 114, 78, 0.24);
}

.specimen-icon {
    width: 86px;
    height: 86px;
    margin-bottom: 26px;
}

.specimen-icon path,
.specimen-icon ellipse {
    stroke: var(--dried-petal);
}

.specimen-card h3 {
    margin-bottom: 16px;
    color: var(--dried-petal);
    font-size: clamp(1.65rem, 2vw, 2.2rem);
    line-height: 1.08;
}

.specimen-card p {
    color: rgba(244, 220, 200, 0.78);
}

.specimen-card code {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(196, 114, 78, 0.18);
    color: var(--sage-mist);
}

.botanical-roots {
    width: min(82%, 360px);
}

.philosophy-panel {
    max-width: 760px;
}

.quote-card {
    margin-top: 26px;
}

.quote-card p {
    margin: 0;
    color: var(--burnt-umber);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-style: italic;
    line-height: 1.35;
}

.bleed-title--future {
    max-width: 900px;
}

.future-panel {
    overflow: visible;
}

.pod-cloud {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.seed-pod {
    position: absolute;
    overflow: visible;
    opacity: 0.62;
    transition: transform 600ms ease;
}

.seed-pod-1 {
    width: 170px;
    right: -68px;
    top: -72px;
}

.seed-pod-2 {
    width: 120px;
    left: -54px;
    bottom: -40px;
}

.seed-pod-2 circle {
    stroke: var(--sage-mist);
}

.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        backdrop-filter 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        -webkit-backdrop-filter 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-panel.reveal-item,
.reveal-item .glass-panel {
    backdrop-filter: blur(0) saturate(1);
    -webkit-backdrop-filter: blur(0) saturate(1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.glass-panel.reveal-item.revealed,
.reveal-item.revealed .glass-panel {
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

@media (max-width: 900px) {
    .spread--type-a,
    .spread--type-b {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }

    .bleed-title {
        transform: none;
    }

    .cross-panel {
        margin-top: 0;
    }

    .concept-grid,
    .field-notes {
        grid-template-columns: 1fr;
    }

    .specimen-card {
        min-height: auto;
    }

    .botanical-stage {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .spread {
        min-height: auto;
        padding: 72px 22px;
    }

    .spread--hero {
        min-height: 100vh;
    }

    .spread-nav {
        top: auto;
        bottom: 16px;
        left: 50%;
        flex-direction: row;
        transform: translateX(-50%);
        gap: 10px;
        padding: 10px 14px;
        border: 1px solid rgba(196, 114, 78, 0.16);
        border-radius: 999px;
        background: rgba(250, 243, 236, 0.48);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .nav-marker,
    .spread-nav:hover .nav-marker,
    .nav-marker.active {
        width: 9px;
        height: 9px;
        border-radius: 50%;
    }

    .nav-marker span {
        display: none;
    }

    .glass-panel {
        padding: 28px;
        border-radius: 22px;
    }

    .botanical-rosebud {
        width: 112px;
        top: 28px;
        right: 16px;
        opacity: 0.28;
    }

    .seed-pod-1 {
        right: -42px;
    }
}
