/* ============================================
   recycle.cafe — Styles
   Collage-craft meets anti-design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Palette */
    --kraft-paper: #D4C5A9;
    --cardboard-brown: #8B7355;
    --compost-black: #1C1A17;
    --charcoal-ink: #2D2A26;
    --recycled-white: #F2EDE4;
    --sorting-green: #2E8B57;
    --crushed-can-silver: #A8A8A0;
    --melted-cap-orange: #D4652A;
    --bottle-glass-blue: #4A7C8F;
    --textile-magenta: #9B3A5E;
    --kraft-warm: #DDD2B8;
    --sorting-light-bg: #E8E0CC;
    --corrugated-trough: #C4B593;
    --corrugated-ridge: #D4C5A9;
    --corrugated-mid: #BBA87D;

    /* Typography */
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Libre Baskerville', serif;
    --font-mono: 'Courier Prime', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--kraft-paper);
    color: var(--charcoal-ink);
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 400;
    line-height: 1.72;
    overflow-x: hidden;
}

/* --- SVG Filter Holder --- */
svg[style*="position:absolute"] {
    pointer-events: none;
}

/* --- Coffee Ring Watermarks --- */
.coffee-ring {
    position: fixed;
    border-radius: 50%;
    border: 2px solid rgba(139, 115, 85, 0.15);
    pointer-events: none;
    z-index: 1000;
}

.coffee-ring-1 {
    width: 180px;
    height: 180px;
    top: 12%;
    left: 8%;
    border-width: 3px;
    opacity: 0.7;
}

.coffee-ring-2 {
    width: 120px;
    height: 120px;
    top: 45%;
    right: 5%;
    border-width: 2px;
    opacity: 0.5;
}

.coffee-ring-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    border-width: 2px;
    opacity: 0.4;
}

.coffee-ring-4 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 20%;
    border-width: 3px;
    opacity: 0.6;
}

/* --- Navigation Swatches --- */
#material-nav {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.swatch {
    width: 28px;
    height: 28px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(45, 42, 38, 0.2);
}

.swatch:hover {
    transform: scale(1.2);
}

.swatch:hover .swatch-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.swatch.active {
    clip-path: polygon(2% 5%, 8% 2%, 15% 6%, 22% 1%, 30% 4%, 38% 0%, 45% 5%, 52% 2%, 60% 7%, 68% 1%, 75% 3%, 82% 0%, 88% 6%, 95% 2%, 98% 8%, 100% 15%, 97% 22%, 100% 30%, 96% 38%, 100% 45%, 97% 52%, 100% 60%, 96% 68%, 100% 75%, 97% 82%, 100% 88%, 96% 95%, 92% 98%, 85% 96%, 78% 100%, 70% 97%, 62% 100%, 55% 96%, 48% 100%, 40% 97%, 32% 100%, 25% 96%, 18% 100%, 10% 97%, 5% 100%, 2% 95%, 0% 88%, 3% 80%, 0% 72%, 4% 65%, 0% 58%, 3% 50%, 0% 42%, 4% 35%, 0% 28%, 3% 20%, 0% 12%, 4% 8%);
    transform: scale(1.15);
}

.swatch-tooltip {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateX(-5px) translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sorting-green);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
    background: var(--kraft-paper);
    padding: 2px 6px;
}

/* Paper swatch: layered paper depth */
.swatch-paper {
    background: var(--kraft-paper);
    box-shadow:
        1px 1px 0 var(--corrugated-trough),
        2px 2px 0 var(--corrugated-mid),
        3px 3px 0 var(--cardboard-brown);
}

/* Glass swatch: frosted translucent */
.swatch-glass {
    background: linear-gradient(135deg, rgba(74, 124, 143, 0.5), rgba(74, 124, 143, 0.25));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-color: rgba(74, 124, 143, 0.3);
}

/* Metal swatch: brushed aluminum */
.swatch-metal {
    background: linear-gradient(
        180deg,
        var(--crushed-can-silver) 0%,
        #C0C0B8 20%,
        var(--crushed-can-silver) 25%,
        #B8B8B0 50%,
        var(--crushed-can-silver) 55%,
        #C0C0B8 80%,
        var(--crushed-can-silver) 100%
    );
}

/* Plastic swatch: glossy orange */
.swatch-plastic {
    background: radial-gradient(circle at 35% 35%, #E8803F, var(--melted-cap-orange) 60%, #B85420);
}

/* Textile swatch: woven crosshatch */
.swatch-textile {
    background:
        repeating-linear-gradient(
            45deg,
            var(--textile-magenta) 0px,
            var(--textile-magenta) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            -45deg,
            var(--recycled-white) 0px,
            var(--recycled-white) 2px,
            transparent 2px,
            transparent 4px
        );
    background-color: var(--textile-magenta);
}

/* --- Station Base Styles --- */
.station {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.station-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Cutting Mat Grid Overlay --- */
.cutting-mat-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(46, 139, 87, 0.06) 0px,
            rgba(46, 139, 87, 0.06) 1px,
            transparent 1px,
            transparent 37.8px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(46, 139, 87, 0.06) 0px,
            rgba(46, 139, 87, 0.06) 1px,
            transparent 1px,
            transparent 37.8px
        );
}

/* Slight grid rotation per station */
.station-collection .cutting-mat-grid { transform: rotate(0deg); }
.station-sorting .cutting-mat-grid { transform: rotate(0.5deg); }
.station-deconstruction .cutting-mat-grid { transform: rotate(-0.3deg); }
.station-transformation .cutting-mat-grid { transform: rotate(0.8deg); }
.station-reuse .cutting-mat-grid { transform: rotate(0deg); }

/* --- Station Backgrounds --- */
.station-collection {
    background-color: var(--kraft-paper);
}

.station-sorting {
    background-color: var(--sorting-light-bg);
}

.station-deconstruction {
    background-color: var(--cardboard-brown);
}

.station-transformation {
    background-color: var(--compost-black);
}

.station-reuse {
    background-color: var(--kraft-warm);
}

/* --- Station Titles (Stamped Text) --- */
.station-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--charcoal-ink);
    filter: url(#stamp-noise);
    opacity: 0.88;
    margin-bottom: 50px;
    align-self: flex-start;
    margin-left: 5%;
}

.station-title.light {
    color: var(--recycled-white);
    filter: url(#stamp-noise-light);
}

/* --- Stamped Text Effect --- */
.stamped-text {
    filter: url(#stamp-noise);
}

/* --- Hero Section (Station 1) --- */
.hero-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 40px;
}

.hero-letter {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 9rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--charcoal-ink);
    background: var(--recycled-white);
    padding: 8px 12px 16px;
    display: inline-block;
    transform: rotate(var(--rotation, 0deg));
    opacity: 0;
    animation: slideReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.hero-dot {
    color: var(--sorting-green);
}

/* Torn card clip-paths */
.torn-card {
    clip-path: polygon(
        2% 5%, 6% 1%, 12% 4%, 18% 0%, 24% 3%, 30% 1%, 36% 5%, 42% 2%, 48% 4%, 54% 0%, 60% 3%, 66% 1%, 72% 5%, 78% 2%, 84% 0%, 90% 4%, 96% 1%, 99% 6%,
        100% 12%, 97% 18%, 100% 24%, 98% 30%, 100% 36%, 97% 42%, 100% 48%, 98% 54%, 100% 60%, 97% 66%, 100% 72%, 98% 78%, 100% 84%, 97% 90%, 100% 96%,
        96% 99%, 90% 97%, 84% 100%, 78% 98%, 72% 100%, 66% 97%, 60% 100%, 54% 98%, 48% 100%, 42% 97%, 36% 100%, 30% 98%, 24% 100%, 18% 97%, 12% 100%, 6% 98%, 2% 96%,
        0% 90%, 3% 84%, 0% 78%, 2% 72%, 0% 66%, 3% 60%, 0% 54%, 2% 48%, 0% 42%, 3% 36%, 0% 30%, 2% 24%, 0% 18%, 3% 12%
    );
}

/* Alternate torn patterns */
.content-card:nth-child(2n) {
    clip-path: polygon(
        3% 4%, 8% 0%, 14% 3%, 20% 1%, 26% 5%, 32% 0%, 38% 3%, 44% 1%, 50% 5%, 56% 2%, 62% 0%, 68% 4%, 74% 1%, 80% 3%, 86% 0%, 92% 4%, 97% 1%, 100% 5%,
        98% 11%, 100% 17%, 97% 23%, 100% 29%, 98% 35%, 100% 41%, 97% 47%, 100% 53%, 98% 59%, 100% 65%, 97% 71%, 100% 77%, 98% 83%, 100% 89%, 97% 95%,
        94% 100%, 88% 97%, 82% 100%, 76% 98%, 70% 100%, 64% 97%, 58% 100%, 52% 98%, 46% 100%, 40% 97%, 34% 100%, 28% 98%, 22% 100%, 16% 97%, 10% 100%, 4% 97%, 0% 94%,
        2% 88%, 0% 82%, 3% 76%, 0% 70%, 2% 64%, 0% 58%, 3% 52%, 0% 46%, 2% 40%, 0% 34%, 3% 28%, 0% 22%, 2% 16%, 0% 10%
    );
}

.content-card:nth-child(3n) {
    clip-path: polygon(
        1% 3%, 7% 0%, 13% 5%, 19% 1%, 25% 4%, 31% 0%, 37% 2%, 43% 5%, 49% 0%, 55% 3%, 61% 1%, 67% 5%, 73% 0%, 79% 4%, 85% 1%, 91% 3%, 97% 0%, 100% 4%,
        97% 10%, 100% 16%, 98% 22%, 100% 28%, 97% 34%, 100% 40%, 98% 46%, 100% 52%, 97% 58%, 100% 64%, 98% 70%, 100% 76%, 97% 82%, 100% 88%, 98% 94%,
        95% 98%, 89% 100%, 83% 97%, 77% 100%, 71% 98%, 65% 100%, 59% 97%, 53% 100%, 47% 98%, 41% 100%, 35% 97%, 29% 100%, 23% 98%, 17% 100%, 11% 97%, 5% 100%, 1% 97%,
        0% 91%, 3% 85%, 0% 79%, 2% 73%, 0% 67%, 3% 61%, 0% 55%, 2% 49%, 0% 43%, 3% 37%, 0% 31%, 2% 25%, 0% 19%, 3% 13%, 0% 7%
    );
}

/* Slide-in directions for hero letters */
@keyframes slideReveal {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 0deg)) translateY(-60px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotation, 0deg)) translateY(0);
    }
}

.hero-letter[data-direction="top"] {
    animation-name: slideFromTop;
}
.hero-letter[data-direction="left"] {
    animation-name: slideFromLeft;
}
.hero-letter[data-direction="right"] {
    animation-name: slideFromRight;
}
.hero-letter[data-direction="bottom"] {
    animation-name: slideFromBottom;
}

@keyframes slideFromTop {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 0deg)) translateY(-80px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotation, 0deg)) translateY(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 0deg)) translateX(-80px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotation, 0deg)) translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 0deg)) translateX(80px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotation, 0deg)) translateX(0);
    }
}

@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 0deg)) translateY(80px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotation, 0deg)) translateY(0);
    }
}

/* Hero tagline */
.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sorting-green);
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.4s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 0.8s ease 1.8s forwards;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    position: relative;
    animation: bounceArrow 2s ease-in-out infinite;
}

.scroll-arrow::before,
.scroll-arrow::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--kraft-paper);
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.scroll-arrow::before {
    top: 0;
    left: 2px;
    transform: rotate(2deg);
    background: var(--corrugated-mid);
}

.scroll-arrow::after {
    top: 4px;
    left: 6px;
    transform: rotate(-1deg);
    background: var(--charcoal-ink);
    opacity: 0.6;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* --- Collage Board --- */
.collage-board {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 70vh;
}

/* --- Content Cards --- */
.content-card {
    position: absolute;
    background: var(--recycled-white);
    padding: 28px 24px 24px;
    width: clamp(260px, 35vw, 380px);
    transform: rotate(var(--rotation, 0deg));
    left: var(--x-offset, 0);
    top: var(--y-offset, 0);
    z-index: 2;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        z-index 0s;
    box-shadow: 2px 3px 8px rgba(28, 26, 23, 0.15);
}

.content-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    z-index: -1;
    background:
        repeating-linear-gradient(
            0deg,
            var(--corrugated-trough) 0px,
            var(--corrugated-trough) 3px,
            var(--corrugated-mid) 3px,
            var(--corrugated-mid) 6px
        );
    clip-path: inherit;
}

.content-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 4px 8px 20px rgba(28, 26, 23, 0.25);
    z-index: 10;
}

.content-card:hover .card-border-anim {
    stroke-dashoffset: 0;
}

/* Card label (material code) */
.card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sorting-green);
    display: block;
    margin-bottom: 8px;
}

.card-label.textile-accent {
    color: var(--textile-magenta);
}

.content-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--charcoal-ink);
    margin-bottom: 10px;
}

.content-card p {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.65;
    color: var(--charcoal-ink);
}

/* Dashed border animation on hover */
.content-card::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px dashed transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.content-card:hover::after {
    border-color: var(--sorting-green);
}

/* --- Scroll Reveal (fade in) --- */
.scroll-reveal {
    opacity: 0;
    transform: rotate(var(--rotation, 0deg)) translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: rotate(var(--rotation, 0deg)) translateY(0);
}

/* --- Station 3: Deconstruction --- */
.station-deconstruction .content-card {
    background: var(--kraft-paper);
}

.station-deconstruction .content-card h3,
.station-deconstruction .content-card p {
    color: var(--charcoal-ink);
}

/* Corrugated Divider */
.corrugated-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 3;
    background:
        repeating-linear-gradient(
            0deg,
            var(--corrugated-trough) 0px,
            var(--corrugated-trough) 4px,
            var(--corrugated-ridge) 4px,
            var(--corrugated-ridge) 8px
        );
    clip-path: polygon(
        0% 20%, 2% 40%, 4% 20%, 6% 45%, 8% 25%, 10% 50%, 12% 20%, 14% 45%, 16% 30%, 18% 50%,
        20% 20%, 22% 45%, 24% 25%, 26% 50%, 28% 20%, 30% 40%, 32% 25%, 34% 50%, 36% 20%, 38% 45%,
        40% 30%, 42% 50%, 44% 20%, 46% 45%, 48% 25%, 50% 50%, 52% 20%, 54% 40%, 56% 25%, 58% 50%,
        60% 20%, 62% 45%, 64% 30%, 66% 50%, 68% 20%, 70% 45%, 72% 25%, 74% 50%, 76% 20%, 78% 40%,
        80% 25%, 82% 50%, 84% 20%, 86% 45%, 88% 30%, 90% 50%, 92% 20%, 94% 45%, 96% 25%, 98% 50%,
        100% 20%, 100% 100%, 0% 100%
    );
}

.corrugated-inner {
    position: absolute;
    inset: 0;
    background: var(--cardboard-brown);
    opacity: 0.7;
    animation: corrugatedSlide 6s linear infinite;
}

@keyframes corrugatedSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

/* --- Station 4: Transformation (Dark) --- */
.station-transformation .content-card {
    background: var(--recycled-white);
}

.station-transformation .content-card h3 {
    color: var(--charcoal-ink);
}

.station-transformation .content-card p {
    color: var(--charcoal-ink);
}

/* Pulse attention text */
.pulse-text {
    color: var(--melted-cap-orange);
    font-weight: 700;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 0px transparent;
    }
    50% {
        text-shadow: 0 0 12px rgba(212, 101, 42, 0.4);
    }
}

/* Weight counter */
.weight-counter {
    text-align: center;
    padding: 20px 0;
}

.counter-value {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--melted-cap-orange);
    display: block;
    letter-spacing: 0.04em;
}

.counter-unit {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sorting-green);
    display: block;
    margin-top: 8px;
}

/* --- Blur Focus Transition (Station 4) --- */
.station-transformation {
    transition: filter 0.6s ease;
}

/* --- Station 5: Reuse (Flip Cards) --- */
.flip-card {
    perspective: 800px;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}

.flip-card::before {
    display: none;
}

.flip-card::after {
    display: none;
}

.flip-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-back {
    background:
        repeating-linear-gradient(
            0deg,
            var(--corrugated-trough) 0px,
            var(--corrugated-trough) 3px,
            var(--corrugated-mid) 3px,
            var(--corrugated-mid) 6px
        );
    clip-path: polygon(
        2% 5%, 6% 1%, 12% 4%, 18% 0%, 24% 3%, 30% 1%, 36% 5%, 42% 2%, 48% 4%, 54% 0%, 60% 3%, 66% 1%, 72% 5%, 78% 2%, 84% 0%, 90% 4%, 96% 1%, 99% 6%,
        100% 12%, 97% 18%, 100% 24%, 98% 30%, 100% 36%, 97% 42%, 100% 48%, 98% 54%, 100% 60%, 97% 66%, 100% 72%, 98% 78%, 100% 84%, 97% 90%, 100% 96%,
        96% 99%, 90% 97%, 84% 100%, 78% 98%, 72% 100%, 66% 97%, 60% 100%, 54% 98%, 48% 100%, 42% 97%, 36% 100%, 30% 98%, 24% 100%, 18% 97%, 12% 100%, 6% 98%, 2% 96%,
        0% 90%, 3% 84%, 0% 78%, 2% 72%, 0% 66%, 3% 60%, 0% 54%, 2% 48%, 0% 42%, 3% 36%, 0% 30%, 2% 24%, 0% 18%, 3% 12%
    );
    z-index: 2;
}

.flip-front {
    background: var(--recycled-white);
    transform: rotateY(180deg);
    padding: 28px 24px 24px;
    clip-path: polygon(
        2% 5%, 6% 1%, 12% 4%, 18% 0%, 24% 3%, 30% 1%, 36% 5%, 42% 2%, 48% 4%, 54% 0%, 60% 3%, 66% 1%, 72% 5%, 78% 2%, 84% 0%, 90% 4%, 96% 1%, 99% 6%,
        100% 12%, 97% 18%, 100% 24%, 98% 30%, 100% 36%, 97% 42%, 100% 48%, 98% 54%, 100% 60%, 97% 66%, 100% 72%, 98% 78%, 100% 84%, 97% 90%, 100% 96%,
        96% 99%, 90% 97%, 84% 100%, 78% 98%, 72% 100%, 66% 97%, 60% 100%, 54% 98%, 48% 100%, 42% 97%, 36% 100%, 30% 98%, 24% 100%, 18% 97%, 12% 100%, 6% 98%, 2% 96%,
        0% 90%, 3% 84%, 0% 78%, 2% 72%, 0% 66%, 3% 60%, 0% 54%, 2% 48%, 0% 42%, 3% 36%, 0% 30%, 2% 24%, 0% 18%, 3% 12%
    );
    box-shadow: 2px 3px 8px rgba(28, 26, 23, 0.15);
}

.flip-front h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--charcoal-ink);
    margin-bottom: 10px;
}

.flip-front p {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.65;
    color: var(--charcoal-ink);
}

.flip-front .card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sorting-green);
    display: block;
    margin-bottom: 8px;
}

/* --- Closing Stamp --- */
.closing-stamp {
    text-align: center;
    margin-top: 60px;
    transform: rotate(1.8deg);
    position: relative;
    z-index: 5;
}

.stamp-domain {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.92;
    color: var(--charcoal-ink);
    opacity: 0.88;
    filter: url(#stamp-noise);
}

.stamp-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sorting-green);
    margin-top: 16px;
}

/* --- Material Sample Swatches (large, per-station) --- */
.material-swatch-large {
    width: 120px;
    height: 120px;
    position: absolute;
    z-index: 3;
}

/* --- Links --- */
a {
    color: var(--bottle-glass-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 124, 143, 0.3);
    transition: border-color 0.3s ease;
}

a:hover {
    border-bottom-color: var(--bottle-glass-blue);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .station-content {
        padding: 40px 24px;
    }

    #material-nav {
        left: 8px;
    }

    .swatch {
        width: 22px;
        height: 22px;
    }

    .content-card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .collage-board {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-letter {
        font-size: clamp(2rem, 10vw, 4rem);
        padding: 4px 6px 8px;
    }

    .flip-inner {
        min-height: 180px;
    }

    .station-title {
        margin-left: 0;
        text-align: center;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        gap: 2px;
    }

    .hero-letter {
        padding: 2px 4px 6px;
    }
}
