:root {
    /* DESIGN.md terms: stamp enters with blur-focus subtle `transform: scale(0.9 They scattered slight rotations using `transform: (Google Fonts Interactive Intersection Observer API with `threshold: [0 */
    --parchment: #e8e0d4;
    --sage: #8a9e7c;
    --rose: #c4a89b;
    --olive: #3b4a34;
    --bark: #5c4a3a;
    --cream: #f5f0e8;
    --gold: #c9a84c;
    --copper: #b07d4f;
    --muted-olive: #5a6b52;
    --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
    --body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    background: var(--parchment);
    color: var(--olive);
    font-family: var(--body);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
}

main { overflow-x: hidden; }

h1,
h2,
h3 {
    font-family: var(--display);
    letter-spacing: 0.02em;
    line-height: 0.98;
    margin: 0;
    font-weight: 700;
}

p { margin: 0; }

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

.diagonal-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.diagonal-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.specimen-hero {
    background: var(--parchment);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%);
    z-index: 1;
}

.specimen-hero::before {
    background:
        radial-gradient(circle at 18% 23%, rgba(201, 168, 76, 0.16), transparent 20rem),
        repeating-linear-gradient(0deg, rgba(59, 74, 52, 0.035) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(59, 74, 52, 0.025) 0 1px, transparent 1px 24px);
}

.mounting-border {
    position: absolute;
    inset: 40px;
    border: 1px solid rgba(59, 74, 52, 0.46);
    border-radius: 10px;
}

.hero-label {
    position: absolute;
    left: clamp(2rem, 10vw, 8rem);
    bottom: clamp(7rem, 16vh, 11rem);
    width: min(35rem, 72vw);
    transform: rotate(-3deg);
    transform-origin: left center;
    padding: 1.25rem 1.4rem 1.5rem;
    border: 1px solid rgba(138, 158, 124, 0.9);
    border-radius: 8px;
    background: rgba(245, 240, 232, 0.72);
    box-shadow: 0 20px 45px rgba(92, 74, 58, 0.12);
}

.hero-label h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--olive);
}

.mono-kicker,
.latin-name,
dl {
    font-family: var(--mono);
    color: var(--muted-olive);
    font-size: 0.85rem;
}

.mono-kicker { text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.65rem; }
.latin-name { margin-top: 0.35rem; }
.hero-note { max-width: 28rem; margin-top: 1.15rem; color: var(--bark); }

.fern-controller {
    position: absolute;
    right: clamp(-2rem, 6vw, 7rem);
    top: clamp(3rem, 9vh, 7rem);
    width: min(58vw, 720px);
    min-width: 320px;
    filter: drop-shadow(0 18px 26px rgba(59, 74, 52, 0.12));
}

.fern-lines path,
.fern-lines rect,
.fern-lines circle {
    fill: none;
    stroke: var(--olive);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.draw,
.controller * {
    stroke-dasharray: 780;
    stroke-dashoffset: 780;
    animation: draw-line 3s ease forwards;
}

.f1 { animation-delay: .12s; } .f2 { animation-delay: .24s; } .f3 { animation-delay: .36s; }
.f4 { animation-delay: .48s; } .f5 { animation-delay: .6s; } .f6 { animation-delay: .72s; } .f7 { animation-delay: .84s; }
.controller * { animation-delay: 1.1s; }

.license-stamp {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    color: var(--gold);
    filter: blur(0.3px);
    opacity: 0.78;
}

.license-stamp circle + circle { stroke-width: 1; }
.license-stamp text { fill: var(--gold); stroke: none; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; }
.license-stamp path { stroke-width: 1.5; }
.hero-stamp { position: absolute; right: 12vw; bottom: 12vh; width: 120px; transform: rotate(13deg); }

.taxonomy-section {
    margin-top: -6vw;
    padding: 13vw 8vw 12vw;
    background: var(--sage);
    clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 calc(100% - 6vw));
    z-index: 2;
}

.growth-section {
    margin-top: -6vw;
    padding: 13vw 7vw 11vw;
    background: var(--cream);
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
    z-index: 3;
}

.herbarium-section {
    margin-top: -6vw;
    padding: 13vw 7vw 12vw;
    background: var(--rose);
    clip-path: polygon(0 0, 100% 7vw, 100% 100%, 0 calc(100% - 7vw));
    z-index: 4;
}

.root-section {
    margin-top: -7vw;
    padding: 14vw 7vw 8vw;
    background: var(--parchment);
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
    z-index: 5;
}

.pattern-checker::before { background: repeating-conic-gradient(var(--olive) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px; opacity: 0.05; }
.pattern-dots::before { background: radial-gradient(circle, var(--olive) 1px, transparent 1px); background-size: 6px 6px; opacity: 0.06; }
.pattern-hatch::before { background: repeating-linear-gradient(45deg, var(--olive) 0 1px, transparent 1px 8px), repeating-linear-gradient(-45deg, var(--olive) 0 1px, transparent 1px 8px); opacity: 0.04; }
.pattern-brick::before { background: repeating-linear-gradient(0deg, rgba(59,74,52,.22) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(59,74,52,.22) 0 1px, transparent 1px 46px); opacity: 0.05; }

.section-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.split-left {
    display: grid;
    grid-template-columns: minmax(15rem, 0.9fr) minmax(20rem, 1.55fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: start;
}

.section-heading h2,
.growth-copy h2,
.root-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--olive);
}

.section-heading p:not(.mono-kicker),
.growth-copy p:not(.mono-kicker),
.root-copy p:not(.mono-kicker) {
    margin-top: 1.2rem;
    color: var(--bark);
    max-width: 32rem;
}

.field-notes { display: grid; gap: 1.6rem; transform: rotate(1deg); }
.note-row { display: grid; grid-template-columns: 24px 1fr; gap: 1rem; color: var(--bark); }

.pattern-swatch {
    width: 14px;
    height: 14px;
    margin-top: .45rem;
    border: 1px solid rgba(59, 74, 52, .48);
    border-radius: 3px;
    background-color: var(--cream);
}

.pattern-swatch.checker { background: repeating-conic-gradient(var(--olive) 0 25%, transparent 0 50%) 0 0 / 8px 8px var(--cream); }
.pattern-swatch.dots { background: radial-gradient(circle, var(--olive) 1px, transparent 1px) 0 0 / 5px 5px var(--cream); }
.pattern-swatch.hatch { background: repeating-linear-gradient(45deg, var(--olive) 0 1px, transparent 1px 5px) var(--cream); }
.pattern-swatch.brick { background: repeating-linear-gradient(0deg, var(--olive) 0 1px, transparent 1px 7px), repeating-linear-gradient(90deg, var(--olive) 0 1px, transparent 1px 10px), var(--cream); }

.vine {
    position: absolute;
    left: 0;
    right: 0;
    top: -1rem;
    width: 100%;
    height: 9rem;
    fill: none;
    stroke: var(--muted-olive);
    stroke-width: 1;
    opacity: .65;
}

.vine circle { fill: var(--sage); stroke: var(--muted-olive); }
.section-stamp { position: absolute; width: 112px; z-index: 3; }
.stamp-one { right: 8vw; bottom: 5vw; transform: rotate(-16deg); }
.stamp-two { left: 6vw; top: 11vw; transform: rotate(12deg); }

.growth-layout {
    display: grid;
    grid-template-columns: minmax(16rem, .55fr) minmax(28rem, 1.35fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.vine-diagram { width: 100%; min-height: 420px; }
.vine-path { fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; }
.vine-node { filter: blur(3px); opacity: .62; transition: filter .6s cubic-bezier(.4,0,.2,1), opacity .6s ease, transform .6s ease; }
.vine-node.active { filter: blur(0); opacity: 1; }
.vine-node circle { fill: var(--parchment); stroke: var(--gold); stroke-width: 2; }
.vine-node text { font-family: var(--mono); font-size: 13px; text-anchor: middle; fill: var(--muted-olive); stroke: none; }

.herbarium-layout { display: grid; grid-template-columns: .78fr 1.42fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.specimen-board { position: relative; min-height: 610px; }

.license-card {
    position: absolute;
    width: min(310px, 48%);
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(138, 158, 124, 0.95);
    border-radius: 8px;
    background: rgba(245, 240, 232, 0.88);
    box-shadow: 0 14px 25px rgba(92, 74, 58, 0.16);
    color: var(--bark);
}

.license-card h3 { font-size: 1.35rem; color: var(--olive); margin: .55rem 0 .65rem; }
.license-card p { font-size: .96rem; line-height: 1.55; }
.license-card dl { display: grid; grid-template-columns: 5rem 1fr; gap: .25rem .55rem; margin: 1rem 0 0; }
.license-card dt { color: var(--olive); }
.license-card dd { margin: 0; color: var(--muted-olive); }
.rotate-neg { left: 2%; top: 2%; transform: rotate(-3deg); }
.rotate-pos { right: 4%; top: 11%; transform: rotate(3.5deg); }
.rotate-soft { left: 11%; bottom: 8%; transform: rotate(2deg); }
.rotate-alt { right: 0; bottom: 1%; transform: rotate(-2.5deg); }

.root-layout { display: grid; grid-template-columns: minmax(18rem, .75fr) minmax(27rem, 1.25fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.root-network { position: relative; min-height: 520px; }
.root-network svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--muted-olive); stroke-width: 2; stroke-linecap: round; opacity: .78; }

.root-node {
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cream);
    border: 1px solid var(--sage);
    color: var(--muted-olive);
    font-family: var(--mono);
    font-size: .82rem;
    box-shadow: 0 10px 22px rgba(92, 74, 58, .12);
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.root-node:hover { transform: scale(1.08) rotate(-4deg); background: var(--gold); color: var(--cream); }
.n1 { left: 10%; bottom: 7%; } .n2 { left: 48%; bottom: 20%; } .n3 { right: 4%; top: 18%; } .n4 { right: 18%; bottom: 13%; }

.focus-specimen { filter: blur(4px); opacity: .6; transition: filter .6s cubic-bezier(.4,0,.2,1), opacity .6s ease, transform .6s ease; }
.focus-specimen.in-focus { filter: blur(0); opacity: 1; }
.license-stamp.in-focus { transform: var(--stamp-transform, rotate(0deg)) scale(1); }

@keyframes draw-line { to { stroke-dashoffset: 0; } }

@media (max-width: 880px) {
    .mounting-border { inset: 22px; }
    .fern-controller { right: -8rem; top: 2rem; opacity: .6; }
    .hero-label { left: 2.2rem; bottom: 7rem; width: calc(100% - 4.4rem); }
    .split-left,
    .growth-layout,
    .herbarium-layout,
    .root-layout { grid-template-columns: 1fr; }
    .taxonomy-section,
    .growth-section,
    .herbarium-section,
    .root-section { padding-left: 2rem; padding-right: 2rem; }
    .specimen-board { min-height: auto; display: grid; gap: 1rem; }
    .license-card { position: relative; width: 100%; left: auto; right: auto; top: auto; bottom: auto; }
    .root-network { min-height: 430px; }
}

@media (max-width: 540px) {
    .hero-stamp { width: 86px; right: 2rem; bottom: 2rem; }
    .fern-controller { min-width: 280px; width: 88vw; right: -7rem; }
    .vine-diagram { min-height: 320px; }
    .vine-node text { font-size: 10px; }
    .root-node { width: 64px; height: 64px; font-size: .72rem; }
}
