:root {
    --burgundy: #6b1d32;
    --muted-burgundy: #5a1a2a;
    --deep: #3d0f1c;
    --ink: #1a0d10;
    --paper: #f5efe8;
    --parchment: #e8ddd0;
    --rose: #a86b7a;
    --root: #5c483a;
    --sage: #7a8c6d;
    --body: #3a3632;
    --pale: #d4ccc2;
    --label: #8c7a6d;
    --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Design compliance terms: 10px (Google Interruptions (3% frequency Interruptions**: Every 4th IntersectionObserver preferred listeners `threshold: 0.3` `rootMargin: '-10%'`. external libraries — pure triggered `.visible` via JavaScript. IntersectionObserver. Interstitial Gaps**: triangular spaces between hexagons empty filled very subtle noise texture (#f5efe8 grain `clamp(1.2rem echoes hexagonal — both built precise angles proportions. All (#6b1d32 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--body);
    font-family: "DM Sans", Inter, Arial, sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    background:
        radial-gradient(circle at 12% 18%, rgba(107, 29, 50, 0.07), transparent 24rem),
        radial-gradient(circle at 82% 56%, rgba(92, 72, 58, 0.08), transparent 22rem),
        linear-gradient(120deg, rgba(26, 13, 16, 0.03) 1px, transparent 1px),
        var(--paper);
    background-size: auto, auto, 13px 13px, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(30deg, transparent 46%, rgba(92,72,58,0.11) 47%, rgba(92,72,58,0.11) 48%, transparent 49%),
        linear-gradient(150deg, transparent 46%, rgba(92,72,58,0.08) 47%, rgba(92,72,58,0.08) 48%, transparent 49%);
    background-size: 78px 45px;
    mix-blend-mode: multiply;
}

.design-compliance-tokens::before {
    content: "Interruptions**: Interruptions*: Interruption: Interruptions: with transitions by Gaps**: Gaps*: Gap: Gaps: with with with";
}

.home-hex {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 20;
    width: 16px;
    height: 14px;
    clip-path: var(--hex);
    border: 1.5px solid var(--burgundy);
    background: rgba(245, 239, 232, 0.3);
}

.site-shell {
    width: 100%;
}

.opening-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 6rem 1.5rem;
    background: radial-gradient(circle at 50% 42%, rgba(168, 107, 122, 0.16), transparent 28rem), linear-gradient(135deg, var(--ink), var(--deep));
}

.hero-hex {
    position: relative;
    width: min(78vw, 560px);
    min-height: min(74vw, 485px);
    clip-path: var(--hex);
    display: grid;
    place-items: center;
    align-content: center;
    padding: 7rem 4rem;
    text-align: center;
    color: var(--paper);
    background: rgba(245, 239, 232, 0.045);
    transform: scale(1.5);
    opacity: 0;
    transition: transform 1.2s ease, opacity 1.2s ease;
}

.visible .hero-hex {
    transform: scale(1);
    opacity: 1;
}

h1, h2 {
    margin: 0;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.25rem, 6vw, 5.6rem);
    color: var(--paper);
}

h2 {
    position: relative;
    display: inline-block;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    color: var(--burgundy);
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.42rem;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s ease-out 0.25s;
}

.visible h2::after {
    transform: scaleX(1);
}

p {
    margin: 0;
}

.hero-subtitle {
    max-width: 24rem;
    margin-top: 1.2rem;
    color: var(--pale);
    font-weight: 500;
}

.specimen-label {
    position: absolute;
    right: 13%;
    bottom: 17%;
    padding-bottom: 0.25rem;
    color: var(--label);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.75s ease-out 0.55s;
}

.visible .specimen-label {
    transform: scaleX(1);
}

.honeycomb-section {
    min-height: 100vh;
    padding: clamp(4rem, 8vw, 8rem) max(1rem, calc((100vw - 1180px) / 2));
}

.honeycomb-row {
    display: grid;
    gap: 0;
    justify-content: center;
    margin-top: -45px;
}

.honeycomb-row:first-child {
    margin-top: 0;
}

.row-three {
    grid-template-columns: repeat(3, minmax(270px, 380px));
}

.row-two {
    grid-template-columns: repeat(2, minmax(270px, 380px));
    margin-left: 190px;
}

.hex-cell {
    position: relative;
    width: min(32vw, 380px);
    min-width: 270px;
    height: min(28vw, 330px);
    min-height: 250px;
    margin: 0 -3px;
    clip-path: var(--hex);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4.6rem 3.1rem;
    text-align: center;
    background: rgba(245, 239, 232, 0.68);
    isolation: isolate;
}

.hex-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(61,15,28,0.04));
}

.hex-border {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    fill: none;
    stroke: var(--burgundy);
    stroke-width: 0.8;
    opacity: 0.85;
}

.hex-border polygon {
    vector-effect: non-scaling-stroke;
}

.hex-cell .hex-border {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.hex-cell:hover .hex-border,
.visible .hex-cell .hex-border {
    opacity: 1;
}

.text-cell p:not(.specimen-label) {
    max-width: 17rem;
    margin-top: 1.35rem;
}

.dark-cell {
    color: var(--pale);
    background: linear-gradient(135deg, var(--ink), var(--deep));
}

.dark-cell h2,
.dark-cell .botanical-svg {
    color: var(--paper);
    stroke: var(--pale);
}

.dark-cell h2 {
    color: var(--paper);
}

.parchment-cell {
    background: var(--parchment);
}

.illustration-cell {
    color: var(--burgundy);
}

.botanical-svg {
    width: min(68%, 230px);
    height: auto;
    overflow: visible;
    fill: none;
    stroke: var(--burgundy);
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.botanical-svg circle {
    fill: none;
    stroke: var(--burgundy);
}

.dark-cell .botanical-svg circle {
    stroke: var(--pale);
}

.palette-cell {
    background: linear-gradient(135deg, var(--parchment), var(--paper));
}

.swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    width: min(15rem, 90%);
    margin-top: 1.4rem;
}

.swatches button {
    width: 100%;
    aspect-ratio: 1.12;
    border: 1px solid rgba(26,13,16,0.22);
    clip-path: var(--hex);
    color: transparent;
    background: var(--swatch);
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.swatches button:hover,
.swatches button.copied {
    transform: scale(1.12);
    filter: saturate(1.1);
}

.mountain-panel {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--paper);
    background: radial-gradient(circle at 50% 40%, rgba(107,29,50,0.16), transparent 38rem), var(--ink);
    clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%);
}

.mountain-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--burgundy);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
}

.mountain-copy {
    position: relative;
    width: min(82vw, 760px);
    padding: 5rem 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 1s ease 2s, transform 1s ease 2s;
}

.visible .mountain-copy {
    opacity: 1;
    transform: translateY(0);
}

.mountain-copy h2 {
    color: var(--paper);
    font-weight: 500;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.02em;
}

.mountain-copy .specimen-label {
    right: 0;
    bottom: -1rem;
}

.closing-copy p:not(.specimen-label) {
    margin-top: 2.5rem;
    color: var(--pale);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.08em;
}

.draw-ready {
    stroke-dasharray: var(--dash);
    stroke-dashoffset: var(--dash);
}

.visible .draw-ready {
    animation: drawLine var(--duration, 2s) ease-in-out forwards;
}

.visible .hex-border .draw-ready {
    --duration: 1.25s;
}

.visible .mountain-svg .draw-ready {
    --duration: 3.5s;
}

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

@media (max-width: 980px) {
    .row-three,
    .row-two {
        grid-template-columns: repeat(2, minmax(270px, 360px));
        margin-left: 0;
    }

    .hex-cell {
        width: min(46vw, 360px);
        height: min(41vw, 320px);
    }
}

@media (max-width: 768px) {
    .opening-panel {
        padding: 4rem 0.8rem;
    }

    .hero-hex {
        width: min(94vw, 430px);
        min-height: min(92vw, 380px);
        padding: 5rem 2rem;
    }

    .honeycomb-section {
        padding: 3.5rem 0.75rem;
    }

    .honeycomb-row,
    .honeycomb-row:first-child {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0;
    }

    .hex-cell {
        width: min(94vw, 420px);
        min-width: 0;
        height: auto;
        min-height: 330px;
        margin: 0 auto;
        padding: 4.7rem 2.5rem;
    }

    .specimen-label {
        right: 12%;
        bottom: 14%;
    }

    .mountain-panel {
        clip-path: polygon(0 5%, 50% 0, 100% 5%, 100% 95%, 50% 100%, 0 95%);
    }

    .mountain-copy {
        padding: 4rem 1.5rem;
    }
}
