/* ── HERO ────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 6rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -40%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(232,168,80,0.12) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -10%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(200,133,62,0.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    background: var(--vanilla);
    color: var(--gold); font-size: 0.8125rem; font-weight: 600;
    padding: 0.375rem 1rem; border-radius: 100px; overflow: hidden;
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem;
    position: relative;
}
.hero-badge::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200,133,62,0.12), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
.hero-badge .badge-icon {
    width: 18px; height: 18px; border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #D4954B, #C1783A);
    display: inline-block; vertical-align: -3px; position: relative;
}
.hero-badge .badge-icon::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6) 0%, transparent 60%);
    animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.3); }
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900;
    line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.hero h1 .gold { color: var(--gold); transition: opacity 0.3s ease; display: inline-block; }
.hero h1{text-shadow:0 0 80px rgba(200,133,62,0.15);}
.hero p {
    font-size: 1.125rem; color: #6B5444; max-width: 460px;
    margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO ENTRANCE ANIMATION ───────────────── */
@keyframes heroFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloatIn {
    0% { opacity: 0; transform: translateX(60px) scale(0.9); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes cookieHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-entrance .hero-badge { animation: heroFadeUp 0.7s ease both; }
.hero-entrance .hero h1 { animation: heroFadeUp 0.7s 0.15s ease both; }
.hero-entrance .hero p { animation: heroFadeUp 0.7s 0.3s ease both; }
.hero-entrance .hero-buttons { animation: heroFadeUp 0.7s 0.45s ease both; }
.hero-entrance .hero-visual { animation: heroFloatIn 0.9s 0.2s cubic-bezier(0.16,1,0.3,1) both; }
.hero-entrance .cookie-illustration { animation: cookieHover 5s 1.5s ease-in-out infinite; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 2rem; border-radius: 100px;
    font-size: 0.9375rem; font-weight: 600; text-decoration: none;
    cursor: pointer; border: none; transition: all 0.25s;
    letter-spacing: 0.01em; font-family: var(--font-body);
}
.btn-primary { background: var(--gold); color: #fff; }
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 8px 30px rgba(200,133,62,0.35); }
    50% { box-shadow: 0 8px 40px rgba(200,133,62,0.55), 0 0 0 4px rgba(200,133,62,0.08); }
}
.hero .btn-primary { animation: ctaGlow 3s ease-in-out infinite; }
.btn-primary:hover { background: var(--honey); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,133,62,0.35); }
.btn-primary:active { transform: translateY(0) scale(0.97); transition: transform 0.1s; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--soft); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0) scale(0.97); transition: transform 0.1s; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.0625rem; }

/* ── RESET BUTTON ────────────────────────── */
.builder-actions { display: flex; gap: 0.5rem; }
.btn-reset {
    width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid var(--soft); background: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.25s; flex-shrink: 0; padding: 0;
    color: #8B6F5C;
}
.btn-reset:hover:not(:disabled) {
    border-color: var(--jam); color: var(--jam);
    transform: rotate(-90deg);
}
.btn-reset:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── CSS COOKIE ILLUSTRATION ─────────────── */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.cookie-illustration {
    position: relative; width: 320px; height: 320px;
    will-change: transform;
}
.cookie-illustration .cookie-main {
    width: 220px; height: 220px; border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, #DBA055 0%, #CC8840 45%, #B87832 75%, #A06528 100%);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 20px 60px rgba(160,100,40,0.3),
        inset 0 -4px 8px rgba(0,0,0,0.18),
        inset 0 2px 4px rgba(255,220,170,0.15);
    /* Bite mark: single transparent circle centered OUTSIDE right edge.
       Only the inner arc overlaps the cookie = natural arched cutout.
       Zero compositing — works identically in all browsers. */
    -webkit-mask-image: radial-gradient(circle at 103% 50%, transparent 62px, black 63px);
    mask-image: radial-gradient(circle at 103% 50%, transparent 62px, black 63px);
}
/* Surface cracks — subtle darker lines */
.cookie-illustration .cookie-main::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(0,0,0,0.08) 0%, transparent 30%),
        radial-gradient(ellipse at 65% 55%, rgba(0,0,0,0.06) 0%, transparent 25%),
        radial-gradient(ellipse at 50% 80%, rgba(0,0,0,0.05) 0%, transparent 20%);
    pointer-events: none;
}
.cookie-illustration .cookie-chip {
    position: absolute;
    width: 28px; height: 22px;
    background:
        radial-gradient(circle at 40% 35%, #5C3020 0%, #3C1D0E 50%, #1A0A04 100%);
    border-radius: 40%;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.4),
        0 0 0 1px rgba(160,120,80,0.2);
    /* Highlight on top edge makes chips look embedded */
}
.cookie-illustration .cookie-chip:nth-child(2) { top: 25%; left: 35%; transform: rotate(-18deg); width: 30px; height: 24px; }
.cookie-illustration .cookie-chip:nth-child(3) { top: 32%; left: 56%; transform: rotate(22deg); width: 24px; height: 19px; }
.cookie-illustration .cookie-chip:nth-child(4) { top: 48%; left: 28%; transform: rotate(-40deg); width: 26px; height: 21px; }
.cookie-illustration .cookie-chip:nth-child(5) { top: 45%; left: 60%; transform: rotate(30deg); width: 22px; height: 18px; }
.cookie-illustration .cookie-chip:nth-child(6) { top: 60%; left: 38%; transform: rotate(-12deg); width: 20px; height: 16px; }
.cookie-illustration .cookie-chip:nth-child(7) { top: 58%; left: 20%; transform: rotate(45deg); width: 18px; height: 14px; }
.cookie-illustration .cookie-crumb {
    position: absolute; width: 7px; height: 7px;
    background: #B87832; border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.cookie-illustration .cookie-crumb:nth-child(8)  { top: 18%; left: 72%; }
.cookie-illustration .cookie-crumb:nth-child(9)  { top: 78%; left: 22%; width: 5px; height: 5px; }
.cookie-illustration .cookie-crumb:nth-child(10) { top: 73%; left: 74%; width: 6px; height: 6px; }
.cookie-illustration .cookie-crumb:nth-child(11) { top: 15%; left: 28%; width: 5px; height: 5px; }

/* ── STEAM WISPS (hero cookie) ───────────── */
.steam-wisp {
    position: absolute; width: 6px; height: 14px;
    background: rgba(255,255,255,0.55); border-radius: 50%;
    animation: steamRise 2.5s ease-out infinite;
    pointer-events: none;
}
.steam-wisp.w1 { top: 10%; left: 52%; animation-delay: 0s; }
.steam-wisp.w2 { top: 14%; left: 56%; animation-delay: 0.8s; width: 4px; height: 10px; }
.steam-wisp.w3 { top: 8%; left: 48%; animation-delay: 1.6s; width: 5px; height: 11px; }

/* ── STEAM WISPS (product card) ──────────── */
.steam-container {
    position: absolute; top: -8px; left: 40px; pointer-events: none; z-index: 2;
}
.steam-wisp-card {
    position: absolute; width: 4px; height: 10px;
    background: rgba(255,255,255,0.5); border-radius: 50%;
    animation: steamRiseCard 2s ease-out infinite;
    transition: opacity 0.3s;
}
.product-card:hover .steam-wisp-card { opacity: 0.9; }
.steam-wisp-card.s1 { left: 0; animation-delay: 0s; }
.steam-wisp-card.s2 { left: 8px; animation-delay: 0.7s; width: 3px; height: 8px; }

/* ── COOKIE ICONS ────────────────────────── */
.cookie-icon {
    width: 56px; height: 56px; border-radius: 50%; position: relative;
    margin-bottom: 1.25rem; flex-shrink: 0; overflow: hidden;
}
.cookie-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-front .cookie-icon { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-card-front .cookie-icon { transform: scale(1.15) rotate(5deg); }
.builder-item.selected .cookie-icon { transform: scale(1.1); }

/* Flavor classes kept as fallback — now use standalone SVGs via img */
.cookie-icon.flavor-classic { background: radial-gradient(circle at 50% 38%, #E0A855 0%, #C8843C 60%, #B07030 100%); }
.cookie-icon.flavor-double { background: radial-gradient(circle at 50% 38%, #5C3622 0%, #3E2010 60%, #2A1409 100%); }
.cookie-icon.flavor-toffee { background: radial-gradient(circle at 50% 38%, #E8B860 0%, #D4943A 60%, #B87828 100%); }
.cookie-icon.flavor-raspberry { background: radial-gradient(circle at 50% 38%, #6B3838 0%, #3E1A1A 60%, #2A1010 100%); }
.cookie-icon.flavor-caramel { background: radial-gradient(circle at 50% 38%, #E8C870 0%, #D4A040 60%, #B8842C 100%); }
.cookie-icon.flavor-matcha { background: radial-gradient(circle at 50% 38%, #9AB868 0%, #7A9A4B 60%, #5C7A34 100%); }

/* ── STAR RATING ─────────────────────────── */
.stars { display: flex; gap: 4px; justify-content: center; margin-bottom: 1.25rem; }
.star { width: 22px; height: 22px; color: var(--honey); transition: transform 0.3s ease; }
.star:hover { transform: rotate(15deg) scale(1.2); }
.testimonial:hover .star:nth-child(1) { transition-delay: 0s; }
.testimonial:hover .star:nth-child(2) { transition-delay: 0.05s; }
.testimonial:hover .star:nth-child(3) { transition-delay: 0.1s; }
.testimonial:hover .star:nth-child(4) { transition-delay: 0.15s; }
.testimonial:hover .star:nth-child(5) { transition-delay: 0.2s; }
.star svg { display: block; }

/* ── SECTIONS ────────────────────────────── */
section { padding: 6rem 2rem; scroll-margin-top: 100px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
    font-size: 0.8125rem; font-weight: 600; color: var(--gold);
    letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.2;
}
.section-subtitle {
    font-size: 1.0625rem; color: #6B5444; max-width: 540px; line-height: 1.7;
}
.bench-sheet {
    padding-top: 3rem;
}
.bench-sheet-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
}
.bench-sheet-header {
    padding-top: 1rem;
}
.bench-sheet-ledger {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(253,243,231,0.96)),
        repeating-linear-gradient(180deg, transparent 0, transparent 42px, rgba(60,36,21,0.06) 42px, rgba(60,36,21,0.06) 43px);
    border: 1px solid rgba(60,36,21,0.12);
    border-radius: 1.75rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    box-shadow: 0 24px 60px rgba(60,36,21,0.08);
    position: relative;
}
.bench-sheet-ledger::before {
    content: "";
    position: absolute;
    inset: 1rem auto 1rem 1rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(184,68,68,0.28), rgba(184,68,68,0.12));
}
.ledger-card {
    background: rgba(255,249,242,0.82);
    border: 1px solid rgba(60,36,21,0.1);
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    position: relative;
    margin-left: 1rem;
}
.ledger-card-main {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.88);
}
.ledger-eyebrow,
.ledger-label,
.ledger-index {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.ledger-eyebrow {
    font-size: 0.75rem;
    color: #8B6F5C;
    margin-bottom: 1rem;
}
.ledger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.ledger-grid strong,
.ledger-card h3 {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}
.ledger-label,
.ledger-index {
    font-size: 0.6875rem;
    color: var(--gold);
}
.ledger-note,
.ledger-card p {
    margin-top: 1rem;
    color: #6B5444;
    line-height: 1.7;
}
.ledger-card h3 {
    margin-top: 0.75rem;
    font-size: 1.3rem;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── SECTION COUNTERS ────────────────────── */
main { counter-reset: sectionNum; }
main > section { counter-increment: sectionNum; }
#hero { counter-increment: none; }
#hero .section-inner::before { content: none; }
.section-inner {
    position: relative;
}
.section-inner::before {
    content: '0' counter(sectionNum);
    position: absolute; top: -2rem; left: -1.5rem;
    font-family: var(--font-display);
    font-size: clamp(6rem, 10vw, 10rem);
    font-weight: 900; color: rgba(60,36,21,0.025);
    line-height: 1; pointer-events: none; z-index: 0;
    letter-spacing: -0.04em;
}
[data-theme="dark"] .section-inner::before {
    color: rgba(240,228,212,0.03);
}
@media (max-width: 900px) {
    .section-inner::before {
        left: -0.25rem; font-size: clamp(3rem, 8vw, 6rem);
    }
}

/* ── PRODUCTS (with flip) ────────────────── */
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.flavor-atlas {
    padding-top: 2rem;
}
/* ── Flavor Atlas — Minicard Cloud ── */
.atlas-cloud {
    margin-top: 2rem;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}
.atlas-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(60,36,21,0.07);
    border-radius: 2rem;
    padding: 0.85rem 1.15rem;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    /* Gentle cloud drift */
    animation: atlasFloat var(--float-dur, 20s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    /* Smooth breathing between states */
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                padding 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-radius 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease,
                background 0.5s ease,
                opacity 0.5s ease;
    will-change: transform;
}
@keyframes atlasFloat {
    0%, 100% { translate: 0 0; }
    25%  { translate: var(--sway-x, -5px) var(--sway-y, -3px); }
    50%  { translate: calc(var(--sway-x, 5px) * -0.6) calc(var(--sway-y, 3px) * 0.4); }
    75%  { translate: calc(var(--sway-x, -3px) * 0.3) calc(var(--sway-y, -2px) * -0.5); }
}
.atlas-card:hover {
    border-color: rgba(200,133,62,0.5);
    box-shadow: 0 20px 50px rgba(60,36,21,0.12);
    z-index: 5;
    animation-play-state: paused;
}
.atlas-card.dimmed {
    opacity: 0.18;
    pointer-events: none;
}

/* ── Zoomed: the same card, just breathing open ── */
.atlas-card.zoomed {
    position: relative !important;
    left: 0 !important; top: 0 !important;
    transform: none !important;
    width: 100%;
    padding: 2rem;
    cursor: default;
    border-color: var(--gold);
    box-shadow: 0 28px 70px rgba(60,36,21,0.12);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,249,242,0.98));
    z-index: 20;
    margin-bottom: 1.5rem;
    animation: none;
    white-space: normal;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 2rem;
    align-items: start;
    text-align: left;
}
/* Icon + name + mood stay as a group in the top-left */
.atlas-card.zoomed .atlas-card-icon {
    grid-row: 1;
    grid-column: 1;
}
.atlas-card.zoomed .atlas-card-name {
    grid-row: 1;
    grid-column: 2;
    font-size: 1.6rem;
    align-self: end;
}
.atlas-card.zoomed .atlas-card-mood {
    grid-row: 2;
    grid-column: 2;
    font-size: 0.7rem;
    opacity: 1;
}

/* ── Always-present elements ── */
.atlas-card-icon {
    border-radius: 50%;
    flex-shrink: 0;
}
.atlas-card-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.1;
    color: var(--ink);
    margin: 0;
}
.atlas-card-mood {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
}

/* ── Detail elements: hidden when compact, revealed when zoomed ── */
.atlas-card-close,
.atlas-card-desc,
.atlas-card-stats,
.atlas-card-ingredients,
.atlas-card-origin,
.atlas-card-cta {
    display: none;
}
.atlas-card.zoomed .atlas-card-close,
.atlas-card.zoomed .atlas-card-desc,
.atlas-card.zoomed .atlas-card-stats,
.atlas-card.zoomed .atlas-card-ingredients,
.atlas-card.zoomed .atlas-card-origin,
.atlas-card.zoomed .atlas-card-cta {
    display: revert;
}
/* Detail elements fade in after card expands */
.atlas-card.zoomed .atlas-card-desc,
.atlas-card.zoomed .atlas-card-stats,
.atlas-card.zoomed .atlas-card-ingredients,
.atlas-card.zoomed .atlas-card-origin,
.atlas-card.zoomed .atlas-card-cta {
    animation: atlasReveal 0.4s 0.2s ease both;
    grid-column: 1 / -1;
}
@keyframes atlasReveal {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.atlas-card-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: 1px solid rgba(60,36,21,0.12);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #8B6F5C;
}
.atlas-card-close:hover { color: var(--ink); border-color: var(--gold); }
.atlas-card-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #5C4033;
    margin: 0.5rem 0 1rem;
    max-width: 520px;
}
.atlas-card-stats {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
    max-width: 400px;
}
.atlas-card.zoomed .atlas-card-stats { display: grid; }
.atlas-card-stat {
    background: rgba(200,133,62,0.05);
    border-radius: 0.7rem;
    padding: 0.6rem 0.85rem;
}
.atlas-card-stat span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B6F5C;
    margin-bottom: 0.15rem;
}
.atlas-card-stat strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
}
.atlas-card-ingredients {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}
.atlas-card.zoomed .atlas-card-ingredients { display: flex; }
.atlas-card-ingredients span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    background: rgba(60,36,21,0.03);
    padding: 0.25rem 0.55rem;
    border-radius: 100px;
    color: #6B5444;
}
.atlas-card-origin {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #8B6F5C;
    font-style: italic;
    margin: 0 0 1rem;
    max-width: 460px;
}
.atlas-card-cta { display: none; }
.atlas-card.zoomed .atlas-card-cta { display: inline-flex; }
/* ── Backdrop (behind zoomed card) ── */
.atlas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 8, 0.35);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.atlas-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Detail overlay ── */
.atlas-detail {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(780px, calc(100vw - 48px));
    max-height: calc(100vh - 6rem);
    overflow-y: auto; z-index: 100;
    background: linear-gradient(135deg, rgba(255,255,255,0.995), rgba(255,249,242,0.995));
    border: 1px solid var(--gold); border-radius: 2rem;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 28px 70px rgba(60,36,21,0.16);
    animation: atlasDetailIn 0.3s ease both;
}
@keyframes atlasDetailIn {
    from { opacity: 0; transform: translate(-50%, -50%) translateY(12px); }
    to   { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}
.atlas-detail-close {
    position: absolute; top: 1.25rem; right: 1.5rem;
    background: none; border: 1px solid rgba(60,36,21,0.12);
    border-radius: 50%; width: 34px; height: 34px;
    font-size: 1.2rem; line-height: 1; cursor: pointer; color: #8B6F5C;
}
.atlas-detail-close:hover { color: var(--ink); border-color: var(--gold); }
.atlas-detail-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem; padding-right: 2.5rem;
}
.atlas-detail-header img { border-radius: 50%; flex-shrink: 0; }
.atlas-detail-header h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.atlas-detail-mood {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--gold);
}
.atlas-detail-desc { font-size: 0.95rem; line-height: 1.65; color: #5C4033; margin: 0 0 1.25rem; }
.atlas-detail-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
    margin-bottom: 1rem; max-width: 400px;
}
.atlas-detail-stats > div {
    background: rgba(200,133,62,0.05); border-radius: 0.7rem; padding: 0.6rem 0.85rem;
}
.atlas-detail-stats span {
    display: block; font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: #8B6F5C; margin-bottom: 0.15rem;
}
.atlas-detail-stats strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.atlas-detail-tags {
    display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem;
}
.atlas-detail-tags span {
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em;
    background: rgba(60,36,21,0.03); padding: 0.25rem 0.55rem; border-radius: 100px; color: #6B5444;
}
.atlas-detail-origin {
    font-size: 0.8rem; line-height: 1.5; color: #8B6F5C; font-style: italic; margin: 0 0 1.25rem;
}
[data-theme="dark"] .atlas-detail {
    background: linear-gradient(135deg, rgba(30,20,10,0.995), rgba(22,14,8,0.995));
    border-color: rgba(200,133,62,0.3);
}
[data-theme="dark"] .atlas-detail h3,
[data-theme="dark"] .atlas-detail-stats strong { color: #DDD6CC; }
[data-theme="dark"] .atlas-detail-desc,
[data-theme="dark"] .atlas-detail-origin { color: #B8A898; }

.atlas-loading {
    color: #8B6F5C;
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}
.product-card {
    perspective: 800px;
    background: transparent; border-radius: 1.25rem;
    overflow: visible;
    box-sizing: border-box;
}
.product-card-inner {
    position: relative; width: 100%; min-height: 400px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.product-card:hover .product-card-inner,
.product-card.flipped .product-card-inner {
    transform: rotateY(180deg);
}
.product-card-front,
.product-card-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.25rem;
    background: var(--paper);
    padding: 2rem;
    overflow: hidden;
}
.product-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.product-top-row .cookie-icon { flex-shrink: 0; }
.product-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    pointer-events: none;
}
.product-card-front::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(232,168,80,0.25) 0%, rgba(200,133,62,0.08) 50%, transparent 80%);
    opacity: 0; transition: opacity 0.35s;
}
.product-card:hover .product-card-front::before { opacity: 1; }
.product-card-front::after {
    content: ''; position: absolute; inset: 0; border-radius: 1.25rem;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 45%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 55%, transparent 60%);
    opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.product-card:hover .product-card-front::after { opacity: 1; }
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(200,133,62,0.12), 0 0 0 1px rgba(200,133,62,0.15);
}
.product-card-back {
    transform: rotateY(180deg);
    display: flex; flex-direction: column; justify-content: flex-start;
    background: linear-gradient(135deg, #FFF9F2 0%, #F5EDE3 100%);
    border: 1px solid var(--soft);
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.04);
    gap: 0.75rem;
    overflow: auto;
}
.product-card-back .product-name {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700; margin-bottom: 0;
}
.ingredients-list {
    list-style: none; padding: 0; margin: 0; flex: 1;
}
.ingredients-list li {
    font-size: 0.8125rem; color: #5C4234; padding: 0.3rem 0;
    border-bottom: 1px solid rgba(200,133,62,0.12);
    display: flex; align-items: center; gap: 0.5rem;
}
.ingredients-list li::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
}
.front-only .product-name,
.front-only .product-desc,
.front-only .product-footer {
    position: relative;
}
.product-name {
    font-family: var(--font-display);
    font-size: 1.375rem; font-weight: 700; margin-bottom: 0.375rem; position: relative;
}
.product-desc {
    font-size: 0.875rem; color: #6B5444; line-height: 1.6;
    margin-bottom: 1rem; position: relative;
}
.product-footer {
    display: flex; align-items: center; justify-content: space-between; position: relative;
}
.product-price {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700; color: var(--gold);
}
.daily-pick-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    color: #fff; background: var(--gold);
    padding: 0.25rem 0.75rem; border-radius: 100px;
    margin-top: 0.5rem; animation: tagPulse 2s ease-in-out infinite;
}
.product-card.daily-pick {
    border-radius: 1.5rem;
}
.product-card.daily-pick .product-card-inner {
    min-height: 400px;
}
.product-card.daily-pick .product-card-front,
.product-card.daily-pick .product-card-back {
    inset: 0.45rem;
    border-radius: 1rem;
}
.product-card.daily-pick::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: 1.5rem;
    background: rgba(200,133,62,0.05);
    pointer-events: none;
}
.product-tag{animation:tagPulse 2.5s ease-in-out infinite, tagWiggle 4s ease-in-out infinite;
    font-size: 0.75rem; font-weight: 600; color: var(--jam);
    background: #FEF0F0; padding: 0.25rem 0.75rem 0.25rem 1.5rem; border-radius: 100px;
    position: relative;
}
.product-tag::before {
    content: ''; position: absolute; left: 0.55rem; top: 50%; transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-bottom: 7px solid var(--jam);
}

/* ── GIFT BOXES ──────────────────────────── */
.gifts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.gift-card {
    background: #fff; border-radius: 1.5rem; padding: 2.5rem 2rem;
    text-align: center; border: 1px solid var(--soft);
    transition: transform 0.35s, box-shadow 0.35s; position: relative;
}
.gift-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(60,36,21,0.08), 0 0 0 1px rgba(200,133,62,0.3); }
.gift-card.featured { border: 2px solid var(--gold); position: relative; overflow: visible; }
.gift-card.featured::after {
    content: ''; position: absolute; inset: -4px; border-radius: 1.25rem; z-index: -1;
    background: linear-gradient(135deg, var(--gold), #F5D5A0, var(--honey), var(--gold), #F5D5A0, var(--gold));
    background-size: 400% 400%;
    animation: giftShimmer 3s ease-in-out infinite;
    opacity: 0.6; pointer-events: none;
}
@keyframes giftShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.gift-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #fff; padding: 0.25rem 1rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; white-space: nowrap;
    overflow: hidden;
}
.gift-badge::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), rgba(255,255,255,0.5), rgba(255,255,255,0.15), transparent);
    animation: shimmer 2s ease-in-out infinite;
}
/* ── BUILD YOUR BOX ─────────────────────── */
.builder-layout {
    display: grid; grid-template-columns: 1fr 360px; gap: 2rem; margin-top: 3rem;
    align-items: start;
}
.builder-picker-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
    grid-column: 1 / -1;
}
.builder-picker-label { font-size: 0.8125rem; font-weight: 600; color: #8B6F5C; }
.btn-quickfill {
    background: none; border: 1px solid var(--gold); color: var(--gold);
    padding: 0.375rem 0.875rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; cursor: pointer;
    font-family: var(--font-body); transition: all 0.2s;
}
.btn-quickfill:hover { background: var(--gold); color: #fff; }
.builder-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.builder-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 1rem; background: #fff; border: 2px solid var(--soft);
    border-radius: 1rem; transition: all 0.25s; user-select: none;
    -webkit-user-select: none;
}
.builder-item.in-cart { border-color: var(--gold); background: var(--vanilla); }
.builder-item:hover { border-color: var(--gold); }
.builder-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }

.builder-item .cookie-icon { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.builder-item:hover .cookie-icon { transform: scale(1.2) rotate(8deg); }
.builder-item.selected .cookie-icon { transform: scale(1.1); }
.builder-item.selected:hover .cookie-icon { transform: scale(1.15) rotate(-5deg); }
.builder-item-name { font-weight: 600; font-size: 0.875rem; flex: 1; line-height: 1.2; }
.builder-item-price { font-size: 0.8125rem; color: var(--gold); font-weight: 600; }

.builder-box {
    background: #fff; border-radius: 1.5rem; border: 1px solid var(--soft);
    position: sticky; top: 100px;
    transition: border-color 0.4s, box-shadow 0.4s;
}
.builder-box.has-cookies {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(200,133,62,0.1), 0 0 0 1px rgba(200,133,62,0.15);
}
.builder-box-inner { padding: 2rem; }
.builder-box-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; margin-bottom: 1.25rem; }
@keyframes totalPulse {
    0% { transform: scale(1); color: var(--ink); }
    50% { transform: scale(1.2); color: var(--gold); }
    100% { transform: scale(1); color: var(--ink); }
}
#builderTotal.pulse { animation: totalPulse 0.35s ease; }
#builderTotal { display: inline-block; transition: color 0.2s; }

/* ── PHILOSOPHY ──────────────────────────── */
.philosophy-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; margin-top: 3rem;
}
.philosophy-text p { font-size: 1.0625rem; color: #5C4234; line-height: 1.8; margin-bottom: 1.5rem; }
.philosophy-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.phil-card {
    background: var(--vanilla); border-radius: 1rem; padding: 1.75rem;
    text-align: center; transition: transform 0.3s;
}
.phil-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(200,133,62,0.15); }
.phil-card:hover .num { transform: scale(1.1); transition: transform 0.3s; }
.phil-card .num { transition: transform 0.3s; }
.phil-card .num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; transition: transform 0.3s; }
.phil-card .label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-top: 0.5rem; }

/* ── GALLERY / POLAROIDS ─────────────────── */
.gallery-wall {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    margin-top: 3rem; align-items: start;
}
.polaroid {
    background: #fff; padding: 0.625rem 0.625rem 2.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.35s, box-shadow 0.35s;
}
.polaroid:hover { transform: scale(1.05) rotate(0deg) !important; box-shadow: 0 16px 40px rgba(200,133,62,0.18), 0 0 0 2px rgba(200,133,62,0.15); }
.tilt-left  { transform: rotate(-2.5deg); }
.tilt-right { transform: rotate(3deg); }
.tilt-none  { transform: rotate(0.5deg); }
.polaroid-tall { grid-row: span 2; }
.polaroid-frame img {
    display: block; width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0, 0.35, 1);
}
.polaroid:hover .polaroid-frame img {
    transform: scale(1.35);
}
.polaroid-hint {
    display: block; text-align: center; font-size: 0.6875rem; color: var(--gold);
    opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s;
    margin-top: 0.25rem; font-weight: 500;
}
.polaroid:hover .polaroid-hint { opacity: 1; transform: translateY(0); }

/* ── STORY EXPAND INTERACTION ───────────────── */
@keyframes storyFloatIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.95) translateY(16px); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1) translateY(0); }
}
@keyframes storyBackdropIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.story-backdrop {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(28,21,16,0.7); backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: storyBackdropIn 0.3s ease both;
    cursor: pointer;
}
.story-modal {
    position: fixed; top: 50%; left: 50%; z-index: 501;
    transform: translate(-50%, -50%);
    background: var(--bg); border-radius: 1.75rem;
    max-width: 540px; width: 92vw; max-height: 88vh; overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,133,62,0.2);
    animation: storyFloatIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    padding: 0;
    /* Scroll-driven fade at bottom */
    background:
        linear-gradient(to top, var(--bg) 0%, transparent 4rem) bottom no-repeat,
        linear-gradient(to top, var(--bg), var(--bg)) 0 0 no-repeat;
    background-size: 100% 4rem, 100% 100%;
    background-attachment: local, scroll;
}
.story-modal-header {
    position: relative;
    padding: 1.75rem 1.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.story-modal-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 0.75rem; background: var(--vanilla); padding: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    object-fit: contain;
}
.story-modal-header-text {
    flex: 1;
    min-width: 0;
    padding-top: 0.25rem;
}
.story-modal-chapter {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}
.story-modal-header-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
}
.story-modal-close {
    position: absolute; top: 0.75rem; right: 0.75rem;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--vanilla); border: 1px solid var(--soft);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #8B6F5C; font-size: 1.25rem; line-height: 1;
    transition: all 0.2s; z-index: 2;
}
.story-modal-close:hover { background: var(--jam); color: #fff; border-color: var(--jam); }
.story-modal-body { padding: 1.25rem 1.75rem 2.25rem; }
.story-modal-body p {
    font-size: 1rem; line-height: 1.85; color: #6B5444;
    text-align: left;
    /* Drop cap for editorial feel */
}
.story-modal-body p::first-letter {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    float: left;
    line-height: 0.85;
    margin-right: 0.4rem;
    margin-top: 0.15rem;
    color: var(--gold);
}
[data-theme="dark"] .story-modal {
    background: var(--paper);
    background:
        linear-gradient(to top, var(--paper) 0%, transparent 4rem) bottom no-repeat,
        linear-gradient(to top, var(--paper), var(--paper)) 0 0 no-repeat;
    background-size: 100% 4rem, 100% 100%;
    background-attachment: local, scroll;
}
[data-theme="dark"] .story-modal-body p { color: #B8A898; }
[data-theme="dark"] .story-modal-icon { background: #2A1E16; }
[data-theme="dark"] .story-backdrop { background: rgba(0,0,0,0.75); }

@media (max-width: 600px) {
    .story-modal { max-width: 94vw; max-height: 90vh; }
    .story-modal-header { padding: 1.5rem 1.25rem 0; gap: 0.75rem; }
    .story-modal-icon { width: 44px; height: 44px; padding: 0.375rem; border-radius: 0.625rem; }
    .story-modal-header-text h3 { font-size: 1.25rem; }
    .story-modal-body { padding: 1rem 1.25rem 1.75rem; }
    .story-modal-body p { font-size: 0.9375rem; }
    .story-modal-body p::first-letter { font-size: 2rem; }
}
/* ── STEPS + CRUMB TRAIL ─────────────────── */
.steps {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; margin-top: 3rem;
    align-items: center;
}
.step { text-align: center; padding: 2.5rem 1.5rem; }
.step:hover { transform: translateY(-4px); transition: transform 0.3s; }
.step:hover .step-num { transform: scale(1.15); box-shadow: 0 0 24px rgba(200,133,62,0.4); transition: transform 0.3s, box-shadow 0.3s; }
.step.revealed .step-num { animation: stepReveal 0.6s ease both; }
@keyframes stepReveal {
    0% { transform: scale(0); box-shadow: 0 0 0 0 rgba(200,133,62,0.6); }
    60% { transform: scale(1.2); box-shadow: 0 0 24px rgba(200,133,62,0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(200,133,62,0); }
}
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700;
    margin: 0 auto 1.25rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: #6B5444; line-height: 1.6; }

/* Crumb trail connector */
.crumb-trail {
    display: flex; gap: 6px; justify-content: center;
    padding: 0 0.5rem;
}
.crumb-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--soft);
    animation: crumbBounce 1.6s ease-in-out infinite;
}
.crumb-dot:nth-child(1) { animation-delay: 0s; }
.crumb-dot:nth-child(2) { animation-delay: 0.3s; }
.crumb-dot:nth-child(3) { animation-delay: 0.6s; }

/* ── PROOF STRIP ─────────────────────────── */
.proof-strip {
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 0.8fr));
    gap: 1rem;
}
.proof-card {
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: rgba(255,249,242,0.84);
    border: 1px solid rgba(60,36,21,0.08);
}
.proof-card-main {
    background:
        linear-gradient(135deg, rgba(255,249,242,0.96), rgba(250,239,227,0.94)),
        repeating-linear-gradient(180deg, transparent 0, transparent 30px, rgba(60,36,21,0.04) 30px, rgba(60,36,21,0.04) 31px);
}
.proof-kicker,
.proof-index {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.proof-card strong {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.15;
    color: var(--ink);
}
.proof-card p {
    margin-top: 0.7rem;
    color: #6B5444;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────── */
.faq-list { max-width: 720px; margin: 3rem auto 0; }
.faq-topic-board {
    margin: 2rem auto 0;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.faq-topic-card,
.faq-support-note {
    border-radius: 1.25rem;
    border: 1px solid rgba(60,36,21,0.08);
    background: rgba(255,249,242,0.84);
}
.faq-topic-card {
    padding: 1.2rem;
}
.faq-topic-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.faq-topic-card strong,
.faq-support-note strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
}
.faq-topic-card p,
.faq-support-note p {
    margin-top: 0.7rem;
    color: #6B5444;
    line-height: 1.7;
}
.faq-support-note {
    max-width: 900px;
    margin: 1rem auto 0;
    padding: 1.2rem 1.3rem;
}
.faq-item { border-bottom: 1px solid var(--soft); }
.faq-question {
    width: 100%; background: none; border: none;
    padding: 1.5rem 0; text-align: left;
    font-family: var(--font-display); font-size: 1.125rem;
    font-weight: 700; color: var(--ink); cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-question::after {
    content: '+'; font-size: 1.5rem; font-weight: 400;
    transition: transform 0.3s; color: var(--gold); flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.5rem; }
.faq-answer p { font-size: 0.9375rem; color: #6B5444; line-height: 1.7; }
[data-theme="dark"] .faq-topic-card,
[data-theme="dark"] .faq-support-note { background: rgba(42,30,22,0.9); border-color: rgba(240,228,212,0.08); }
[data-theme="dark"] .faq-topic-card p,
[data-theme="dark"] .faq-support-note p { color: #B8A898; }
[data-theme="dark"] .proof-card {
    background: rgba(42,30,22,0.9);
    border-color: rgba(240,228,212,0.08);
}
[data-theme="dark"] .proof-card-main {
    background:
        linear-gradient(180deg, rgba(42,30,22,0.96), rgba(38,26,18,0.98)),
        repeating-linear-gradient(180deg, transparent 0, transparent 30px, rgba(240,228,212,0.05) 30px, rgba(240,228,212,0.05) 31px);
}
[data-theme="dark"] .proof-card p { color: #B8A898; }

/* ── TESTIMONIAL ─────────────────────────── */
.testimonial {
    background: var(--paper); border-radius: 1.5rem; padding: 3rem;
    text-align: center; max-width: 800px; margin: 3rem auto 0; position: relative; overflow: hidden;
}
.testimonial::before {
    content: '"';
    position: absolute; top: -0.3rem; left: 1.5rem;
    font-family: var(--font-display); font-size: 8rem; font-weight: 900;
    color: rgba(200,133,62,0.07); line-height: 1; pointer-events: none;
}
.testimonial::after {
    content: '"';
    position: absolute; bottom: -2.5rem; right: 1.5rem;
    font-family: var(--font-display); font-size: 8rem; font-weight: 900;
    color: rgba(200,133,62,0.07); line-height: 1; pointer-events: none;
}
.testimonial blockquote {
    font-family: var(--font-display);
    font-size: 1.375rem; font-weight: 700; line-height: 1.5;
    font-style: italic; color: var(--ink);
}
.testimonial cite {
    display: block; margin-top: 1.25rem; font-size: 0.875rem;
    font-style: normal; color: #8B6F5C; font-family: var(--font-body);
}

/* ── ORDER FORM ──────────────────────────── */
.order-section { position: relative; margin-top: 3rem; }
.order-form-wrap {
    max-width: 600px; margin: 0 auto;
    background: #fff; border-radius: 1.5rem; padding: 3rem;
    border: 1px solid var(--soft); position: relative;
    opacity: 0.55;
}
.order-form-wrap h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.8125rem; font-weight: 600;
    color: var(--ink); margin-bottom: 0.375rem; letter-spacing: 0.02em;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
    border: 1px solid var(--soft); font-size: 0.9375rem;
    font-family: var(--font-body); color: var(--ink);
    background: var(--bg); transition: border-color 0.2s;
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    border-color: #C8B898;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── SOLD OUT INK STAMP ─────────────────── */
.sold-out-stamp {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-15deg);
    z-index: 10; pointer-events: none;
}
.sold-out-stamp span {
    display: inline-block; color: var(--jam); font-family: var(--font-display);
    font-size: 2.25rem; font-weight: 900; letter-spacing: 0.06em;
    text-transform: uppercase; text-align: center; line-height: 1.1;
    border: 5px solid var(--jam); border-radius: 50% / 40%;
    padding: 1.25rem 2rem; opacity: 0.85;
    outline: 2px dashed var(--jam); outline-offset: -10px;
    filter: drop-shadow(2px 3px 2px rgba(184,68,68,0.25));
    transform: rotate(-18deg);
}
.sold-out-caption {
    text-align: center; margin-top: 2rem; font-size: 1.0625rem; color: #8B6F5C;
}
.sold-out-caption a { color: var(--gold); font-weight: 600; }
.sold-out-board {
    margin: 2rem auto 0;
    max-width: 900px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.25rem;
}
.sold-out-board-lead,
.sold-out-board-list {
    border-radius: 1.4rem;
    border: 1px solid rgba(60,36,21,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,237,227,0.92));
}
.sold-out-board-lead {
    padding: 1.5rem;
}
.sold-out-kicker,
.sold-out-board-item span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.sold-out-board-lead h3 {
    margin-top: 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.98;
}
.sold-out-board-lead p {
    margin-top: 1rem;
    color: #6B5444;
    line-height: 1.75;
}
.sold-out-board-list {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}
.sold-out-board-item {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255,249,242,0.8);
    border: 1px solid rgba(60,36,21,0.07);
}
.sold-out-board-item strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
}
.sold-out-board-item p {
    margin-top: 0.55rem;
    color: #6B5444;
    line-height: 1.7;
}

/* ── DOUGH DIVIDER ──────────────────────── */
.dough-divider { margin: -2px 0; position: relative; z-index: 1; line-height: 0; }
.dough-divider img,
.dough-divider svg { display: block; width: 100%; height: 80px; }

/* ── NEWSLETTER ──────────────────────────── */
.newsletter {
    position: relative; overflow: hidden;
    background: rgba(255,255,255,0.04); border-radius: 1.5rem; padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.newsletter::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(200,133,62,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232,168,80,0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(200,133,62,0.04) 0%, transparent 70%);
    animation: newsletterGlow 4s ease-in-out infinite alternate;
}
@keyframes newsletterGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}
.newsletter-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}
.newsletter-copy {
    text-align: left;
}
.newsletter-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F0C28A;
    margin-bottom: 0.9rem;
}
.newsletter-kicker::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(200,133,62,0.45);
}
.newsletter h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700;
    margin-bottom: 0.75rem; color: #fff;
}
.newsletter-copy > p {
    color: #CBB8A8;
    margin-bottom: 1.4rem;
    font-size: 0.9375rem;
    max-width: 34rem;
}
.newsletter-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}
.newsletter-note-card {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
}
.newsletter-note-card span,
.newsletter-panel-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E8B06B;
}
.newsletter-note-card strong {
    display: block;
    margin-top: 0.45rem;
    color: #FFF5E9;
    font-size: 0.95rem;
    line-height: 1.45;
}
.newsletter-panel {
    padding: 1.25rem;
    border-radius: 1.2rem;
    background: rgba(34,20,13,0.42);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.newsletter-panel-head {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.newsletter-panel-head strong {
    color: #FFF5E9;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}
.newsletter-form { display: flex; gap: 0.75rem; max-width: 440px; margin: 0; }
.newsletter-form input {
    flex: 1; padding: 0.875rem 1.25rem; border-radius: 100px;
    border: none; font-size: 0.9375rem; font-family: var(--font-body);
    background: rgba(255,255,255,0.12); color: #fff; outline: none;
    transition: background 0.2s;
}
.newsletter-form input::placeholder { color: #A88C78; }
.newsletter-form input:focus { background: rgba(255,255,255,0.18); }
.newsletter-form .btn-primary { white-space: nowrap; }
.newsletter-microcopy {
    margin: 0.85rem 0 0;
    color: #BFA48E;
    font-size: 0.8rem;
    line-height: 1.6;
}
.newsletter-success {
    display: none; color: var(--honey); font-weight: 600;
    margin-top: 1rem; animation: fadeIn 0.4s ease;
}
.newsletter-success.visible { display: block; }

/* ── FOOTER ──────────────────────────────── */
.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(135deg, #3C2415 0%, #5C3D2E 100%);
}
.footer-topline {
    max-width: 980px; margin: 0 auto 2.75rem;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 1.5rem;
    align-items: start;
}
.footer-studio-note,
.footer-service-board {
    border-radius: 1.4rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
.footer-studio-note {
    padding: 1.5rem;
}
.footer-kicker,
.footer-service-chip span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--honey);
}
.footer-studio-note h3 {
    margin-top: 0.8rem;
    font-family: var(--font-display);
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 0.96;
}
.footer-studio-note p {
    margin-top: 1rem;
    color: #CBB8A8;
    line-height: 1.75;
    max-width: 42rem;
}
.footer-service-board {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}
.footer-service-chip {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.footer-service-chip strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.12rem;
}
.footer-grid {
    max-width: 900px; margin: 0 auto 3rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.footer-col h4 {
    font-family: var(--font-display);
    color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
    color: #A88C78; text-decoration: none; font-size: 0.8125rem;
    transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--honey); }
.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p { font-size: 0.8125rem; color: #A88C78; }
.footer-bottom a { color: var(--honey); text-decoration: none; font-weight: 500; }

/* ── ALLERGEN TAGS ──────────────────────── */
.allergen-tags {
    display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem;
}
.allergen-tag {
    font-size: 0.6875rem; font-weight: 600; color: #8B6F5C;
    background: rgba(200,133,62,0.1); padding: 0.2rem 0.625rem;
    border-radius: 100px; letter-spacing: 0.02em;
}

/* ── SOLD OUT PULSE ─────────────────────── */
.sold-out-stamp {
    animation: stampWobble 8s ease-in-out infinite;
}
.sold-out-stamp span {
    animation: stampPulse 3s ease-in-out infinite;
}
@keyframes stampWobble {
    0%, 100% { transform: translate(-50%,-50%) rotate(-18deg); }
    25% { transform: translate(-50%,-50%) rotate(-15deg); }
    75% { transform: translate(-50%,-50%) rotate(-21deg); }
}
/* ── HERO COOKIE WARM PULSE ───────────────── */
.cookie-illustration .cookie-main {
    box-shadow: 0 20px 60px rgba(160,100,40,0.3), inset 0 -4px 8px rgba(0,0,0,0.18), inset 0 2px 4px rgba(255,220,170,0.15);
}
.cookie-illustration .cookie-main::after {
    content: ''; position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    border-radius: 50%; background: radial-gradient(circle, rgba(232,168,80,0.25) 0%, transparent 70%);
    animation: warmPulse 3s ease-in-out infinite; pointer-events: none; z-index: -1;
}
/* ── KITCHEN STORY ────────────────────────── */
.kitchen-overview-board {
    margin: 2.5rem auto 0;
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
}
.kitchen-overview-lead,
.kitchen-overview-steps {
    border-radius: 1.5rem;
    border: 1px solid rgba(60,36,21,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,237,227,0.92));
}
.kitchen-overview-lead {
    padding: 1.5rem;
}
.kitchen-overview-kicker,
.kitchen-overview-step span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.kitchen-overview-lead h2 {
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 0.98;
}
.kitchen-overview-lead p {
    margin-top: 1rem;
    color: #6B5444;
    line-height: 1.75;
}
.kitchen-overview-steps {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}
.kitchen-overview-step {
    display: block;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255,249,242,0.8);
    border: 1px solid rgba(60,36,21,0.07);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.kitchen-overview-step:hover {
    transform: translateX(6px);
    border-color: rgba(200,133,62,0.55);
}
.kitchen-overview-step strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
}
.kitchen-overview-step p {
    margin-top: 0.55rem;
    color: #6B5444;
    line-height: 1.7;
}
.kitchen-chapter { margin-top: 5rem; }
.kitchen-chapter:first-child { margin-top: 3rem; }
.chapter-header { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }
.chapter-num {
    font-size: 0.6875rem; font-weight: 700; color: var(--gold);
    letter-spacing: 0.15em; text-transform: uppercase;
}
.chapter-title {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 700; margin: 0.5rem 0;
    color: var(--ink);
}
.chapter-desc {
    font-size: 0.9375rem; color: #6B5444; line-height: 1.7;
}
[data-theme="dark"] .chapter-desc { color: #B8A898; }
[data-theme="dark"] .kitchen-overview-lead,
[data-theme="dark"] .kitchen-overview-steps,
[data-theme="dark"] .kitchen-overview-step {
    background: rgba(42,30,22,0.9);
    border-color: rgba(240,228,212,0.08);
}
[data-theme="dark"] .kitchen-overview-lead p,
[data-theme="dark"] .kitchen-overview-step p { color: #B8A898; }

/* ── KITCHEN STATS BAR ────────────────────── */
.kitchen-stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    margin-top: 5rem; padding: 2.5rem 2rem;
    background: var(--paper); border-radius: 1.5rem;
    border: 1px solid var(--soft);
}
.kitchen-stat { text-align: center; min-width: 90px; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem; font-weight: 900; color: var(--gold);
    line-height: 1; display: block;
}
.stat-unit { font-size: 0.75rem; font-weight: 600; color: #8B6F5C; margin-left: 0.125rem; }
.stat-label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: #8B6F5C; margin-top: 0.5rem; letter-spacing: 0.03em;
    text-transform: uppercase;
}
[data-theme="dark"] .kitchen-stats { background: var(--paper); border-color: var(--soft); }
[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-unit { color: #9B8A78; }

/* ── BAKER'S NOTE ─────────────────────────── */
.bakers-note {
    max-width: 650px; margin: 4rem auto 0; text-align: center;
    padding: 2.5rem; background: linear-gradient(135deg, var(--vanilla) 0%, var(--paper) 100%);
    border-radius: 1.5rem; border: 1px solid var(--soft);
}
.bakers-note-avatar { margin: 0 auto 1rem; width: 48px; height: 48px; }
.bakers-note blockquote {
    font-family: var(--font-display);
    font-size: 1.125rem; font-weight: 600; font-style: italic;
    line-height: 1.6; color: var(--ink);
}
.bakers-note cite {
    display: block; margin-top: 1rem; font-size: 0.8125rem;
    font-style: normal; color: #8B6F5C;
}
[data-theme="dark"] .bakers-note { background: linear-gradient(135deg, #261A12 0%, #1F1610 100%); }
[data-theme="dark"] .bakers-note cite { color: #9B8A78; }

/* Kitchen story responsive */
/* ── CHAPTER REVEAL ───────────────────────── */
.kitchen-chapter { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.kitchen-chapter.revealed { opacity: 1 !important; transform: translateY(0); }
.kitchen-stats { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s; }
.kitchen-stats.revealed { opacity: 1 !important; transform: translateY(0); }
.bakers-note { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s; }
.bakers-note.revealed { opacity: 1 !important; transform: translateY(0); }

[data-theme="dark"] .chapter-title { color: var(--ink); }
[data-theme="dark"] .bakers-note blockquote { color: var(--ink); }
[data-theme="dark"] .gallery-wall .polaroid { background: #2A1E16; }

.footer-col ul li:last-child { cursor: default; }
.footer-col ul li:last-child::before { content: '📷 '; font-size: 0.75rem; }

/* ── COOKIE CLICK COUNTER ─────────────────── */
.cookie-click-count {
    position: absolute; top: -10px; right: -10px;
    background: var(--gold); color: #fff; border-radius: 50%;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; pointer-events: none;
    opacity: 0; transform: scale(0); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}
.cookie-click-count.show {
    opacity: 1; transform: scale(1);
}

.nav-logo:hover .logo-icon { transform: scale(1.15); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-logo .logo-icon { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

.newsletter-success.visible { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.newsletter-success.visible::before {
    content: ''; width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 45% 35%, var(--honey) 0%, var(--gold) 70%);
    flex-shrink: 0;
    box-shadow: inset 0 -2px 3px rgba(0,0,0,0.2);
}

/* ── STEP PULSE ON REVEAL ─────────────────── */
.step.revealed .step-num {
    animation: stepPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes stepPopIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── FACULTY CARDS ────────────────────────── */
.faculty-card {
    background: var(--paper); border-radius: 1.5rem; padding: 2.5rem 2rem;
    text-align: center; border: 1px solid var(--soft);
    transition: transform 0.3s, box-shadow 0.3s;
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(60,36,21,0.08); }
.faculty-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #D4954B, #A8612E);
    margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2);
}
.faculty-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.faculty-role { font-size: 0.8125rem; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.faculty-bio { font-size: 0.9375rem; color: #6B5444; line-height: 1.6; margin-top: 1rem; }
[data-theme="dark"] .faculty-card { background: var(--paper); border-color: var(--soft); }
[data-theme="dark"] .faculty-bio { color: #B8A898; }

/* ── AWARD CARDS ──────────────────────────── */
.awards-summary-board {
    margin: 2.5rem auto 0;
    max-width: 880px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.25rem;
}
.awards-summary-lead,
.awards-summary-stats {
    border-radius: 1.35rem;
    border: 1px solid rgba(60,36,21,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,237,227,0.92));
}
.awards-summary-lead {
    padding: 1.5rem;
}
.awards-summary-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.awards-summary-lead h2 {
    margin-top: 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.98;
}
.awards-summary-lead p {
    margin-top: 1rem;
    color: #6B5444;
    line-height: 1.75;
}
.awards-summary-stats {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}
.awards-summary-stat {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255,249,242,0.8);
    border: 1px solid rgba(60,36,21,0.07);
}
.awards-summary-stat span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B6F5C;
}
.awards-summary-stat strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
}
.award-card {
    background: var(--paper); border-radius: 1.25rem; padding: 2rem;
    border: 1px solid var(--soft); display: flex; gap: 1.5rem; align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}
.award-card:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(60,36,21,0.06); }
.award-medal {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; font-weight: 900;
    font-family: var(--font-display);
}
.award-medal.gold { background: linear-gradient(135deg, var(--gold), var(--honey)); }
.award-medal.silver { background: linear-gradient(135deg, #B8B8B8, #909090); }
.award-medal.bronze { background: linear-gradient(135deg, #CD7F32, #A06030); }
.award-year { font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.award-year + .award-medal { margin-top: 0; }
.award-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; margin: 0.25rem 0 0.5rem; }
.award-desc { font-size: 0.9375rem; color: #6B5444; line-height: 1.6; }
[data-theme="dark"] .awards-summary-lead,
[data-theme="dark"] .awards-summary-stats,
[data-theme="dark"] .awards-summary-stat { background: rgba(42,30,22,0.9); border-color: rgba(240,228,212,0.08); }
[data-theme="dark"] .awards-summary-lead p,
[data-theme="dark"] .awards-summary-stat span { color: #B8A898; }
[data-theme="dark"] .award-card { background: var(--paper); border-color: var(--soft); }
[data-theme="dark"] .award-desc { color: #B8A898; }

/* ── FACTORY OPEN DAY ─────────────────────── */
.open-day-hero {
    background: var(--paper); border-radius: 1.5rem; padding: 2.5rem;
    border: 2px solid var(--gold); text-align: center; margin-bottom: 2rem;
}
.open-day-label { font-size: 0.8125rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.open-day-date { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--ink); margin: 0.5rem 0; }
.open-day-meta { font-size: 1.0625rem; color: #6B5444; line-height: 1.6; }
.open-day-run-of-show {
    margin: 1.75rem 0 2rem;
    display: grid;
    gap: 0.85rem;
}
.open-day-run-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255,249,242,0.84);
    border: 1px solid rgba(60,36,21,0.07);
}
.open-day-run-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 0.2rem;
}
.open-day-run-card strong,
.open-day-note strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.open-day-run-card p,
.open-day-note p {
    color: #6B5444;
    line-height: 1.7;
}
.open-day-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem;
}
.od-feature {
    background: var(--paper); border-radius: 1rem; padding: 1.75rem;
    text-align: center; border: 1px solid var(--soft);
    transition: transform 0.3s;
}
.od-feature:hover { transform: translateY(-4px); }
.od-feature-icon { margin-bottom: 0.75rem; }
.od-feature h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.od-feature p { font-size: 0.875rem; color: #6B5444; line-height: 1.5; }
.open-day-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.open-day-note {
    padding: 1.25rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,237,227,0.92));
    border: 1px solid rgba(60,36,21,0.08);
}
[data-theme="dark"] .open-day-hero { background: var(--paper); }
[data-theme="dark"] .open-day-run-card,
[data-theme="dark"] .open-day-note,
[data-theme="dark"] .od-feature { background: var(--paper); border-color: var(--soft); }
[data-theme="dark"] .open-day-run-card p,
[data-theme="dark"] .open-day-note p,
[data-theme="dark"] .od-feature p { color: #B8A898; }
[data-theme="dark"] .open-day-meta { color: #B8A898; }

@media (max-width: 600px) {
    .open-day-features { grid-template-columns: 1fr; }
    .open-day-run-card,
    .open-day-notes { grid-template-columns: 1fr; }
    .award-card { flex-direction: column; text-align: center; align-items: center; }
    [data-masonry] { grid-template-columns: 1fr !important; }
}

/* ── NEWS CARDS ───────────────────────────── */
.news-desk {
    margin: 3rem auto 0;
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.5rem;
}
.news-lead,
.news-issue-board {
    border-radius: 1.6rem;
    border: 1px solid rgba(60,36,21,0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,237,227,0.92));
    box-shadow: 0 18px 42px rgba(60,36,21,0.08);
}
.news-lead { padding: 1.8rem; }
.news-desk-loading,
.news-lead p,
.news-issue-card p { color: #6B5444; line-height: 1.75; }
.news-lead-kicker,
.news-lead-meta,
.news-issue-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.news-lead-kicker { color: var(--gold); }
.news-lead-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: #8B6F5C;
    margin-top: 0.8rem;
}
.news-lead h2 {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.95;
}
.news-lead-footer {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.news-lead-footer span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B6F5C;
}
.news-lead-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}
.news-issue-board {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    align-content: start;
}
.news-issue-card {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255,249,242,0.8);
    border: 1px solid rgba(60,36,21,0.07);
}
.news-issue-card strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
}
.news-card {
    background: var(--paper); border-radius: 1.25rem; padding: 2rem;
    border: 1px solid var(--soft);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(60,36,21,0.06); }
.news-date { font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.news-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }
.news-excerpt { font-size: 0.9375rem; color: #6B5444; line-height: 1.7; margin-bottom: 1rem; }
.news-tag { font-size: 0.6875rem; font-weight: 600; color: var(--gold); background: rgba(200,133,62,0.1); padding: 0.2rem 0.625rem; border-radius: 100px; letter-spacing: 0.03em; }
[data-theme="dark"] .news-card { background: var(--paper); border-color: var(--soft); }
[data-theme="dark"] .news-lead,
[data-theme="dark"] .news-issue-board,
[data-theme="dark"] .news-issue-card {
    background: rgba(42,30,22,0.9);
    border-color: rgba(240,228,212,0.08);
}
[data-theme="dark"] .news-desk-loading,
[data-theme="dark"] .news-lead p,
[data-theme="dark"] .news-issue-card p,
[data-theme="dark"] .news-lead-meta,
[data-theme="dark"] .news-lead-footer span { color: #B8A898; }
[data-theme="dark"] .news-excerpt { color: #B8A898; }

/* ── ABOUT BLOCKS ─────────────────────────── */
.about-block { margin-bottom: 2.5rem; }
.about-heading { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--ink); }
.about-text { font-size: 1.0625rem; color: #5C4234; line-height: 1.8; }
.about-chronicle {
    margin-top: 3rem;
    display: grid;
    gap: 1rem;
}
.chronicle-card {
    position: relative;
    padding: 1.3rem 1.4rem 1.3rem 2rem;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(245,237,227,0.88));
    border: 1px solid rgba(60,36,21,0.08);
}
.chronicle-card::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(200,133,62,0.55), rgba(200,133,62,0.08));
}
.chronicle-year,
.principle-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.chronicle-card h3,
.principle-card strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
}
.chronicle-card p,
.principle-card p {
    margin-top: 0.75rem;
    color: #5C4234;
    line-height: 1.75;
}
.principles-ribbon {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.principle-card {
    padding: 1.25rem;
    border-radius: 1.35rem;
    background: rgba(255,249,242,0.78);
    border: 1px solid rgba(60,36,21,0.08);
}
[data-theme="dark"] .about-text { color: #B8A898; }
[data-theme="dark"] .chronicle-card,
[data-theme="dark"] .principle-card { background: rgba(42,30,22,0.88); border-color: rgba(240,228,212,0.08); }
[data-theme="dark"] .chronicle-card p,
[data-theme="dark"] .principle-card p { color: #B8A898; }

/* ── FACULTY ALUMNI ───────────────────────── */
.faculty-standards {
    margin: 2rem auto 0;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.faculty-standard {
    padding: 1.2rem;
    border-radius: 1.25rem;
    background: rgba(255,249,242,0.84);
    border: 1px solid rgba(60,36,21,0.08);
    text-align: left;
}
.faculty-standard-index,
.faculty-hiring-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.faculty-standard strong {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.18rem;
}
.faculty-standard p {
    margin-top: 0.7rem;
    color: #6B5444;
    line-height: 1.7;
}
.faculty-hiring-card {
    position: relative;
    overflow: hidden;
}
.faculty-hiring-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(232,168,80,0.16), transparent 34%);
}
.faculty-hiring-kicker {
    margin-bottom: 1rem;
}
.faculty-hiring-notes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.faculty-hiring-notes span {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(200,133,62,0.1);
    color: #6B5444;
    font-size: 0.8rem;
}
.faculty-card.alumni { opacity: 0.7; }
.faculty-card.alumni:hover { opacity: 0.9; }
.faculty-card.alumni .faculty-avatar { filter: grayscale(0.3); }

/* ── NEWS READ TIME ───────────────────────── */
.news-read-time { font-size: 0.6875rem; color: #8B6F5C; font-weight: 500; letter-spacing: 0.02em; }
/* ── FLIP HINT ────────────────────────────── */
.flip-hint { color: var(--gold); display: inline-block; animation: flipHint 2s ease-in-out infinite; }
@keyframes flipHint { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }

/* ── BUILDER QTY CONTROLS ─────────────────── */
.builder-qty { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; flex-shrink: 0; }
.qty-btn {
    width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--soft);
    background: #fff; cursor: pointer; font-size: 1rem; font-weight: 600;
    color: var(--ink); display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; font-family: var(--font-body); line-height: 1; padding: 0;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--vanilla); }
.qty-btn:active { transform: scale(0.9); }
.qty-num {
    min-width: 1.5rem; text-align: center; font-weight: 700; font-size: 0.9375rem;
    color: var(--ink); font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .qty-btn { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .qty-num { color: var(--ink); }

/* ── CART LIST ────────────────────────────── */
.cart-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; min-height: 60px; }
.cart-empty { text-align: center; color: #8B6F5C; font-size: 0.875rem; padding: 1.5rem 0; }
.cart-item {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.625rem 0.75rem; background: var(--vanilla); border-radius: 0.75rem;
    font-size: 0.8125rem; animation: slotFill 0.3s ease;
}
.cart-item-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-qty { color: #8B6F5C; font-weight: 600; flex-shrink: 0; }
.cart-item-subtotal { font-weight: 700; color: var(--gold); flex-shrink: 0; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .cart-item { background: #261A12; }
[data-theme="dark"] .cart-empty { color: #9B8A78; }
[data-theme="dark"] .cart-item-name { color: var(--ink); }

[data-theme="dark"] .faculty-card.alumni .faculty-avatar { filter: grayscale(0.3) brightness(0.8); }
[data-theme="dark"] .faculty-standard,
[data-theme="dark"] .faculty-hiring-card { background: rgba(42,30,22,0.9); border-color: rgba(240,228,212,0.08); }
[data-theme="dark"] .faculty-standard p,
[data-theme="dark"] .faculty-hiring-notes span { color: #B8A898; }
[data-theme="dark"] .faculty-hiring-notes span { background: rgba(200,133,62,0.14); }

.gift-add-cart { cursor: pointer; font-family: var(--font-body); }

@media (max-width: 600px) {
    .cart-item { flex-wrap: wrap; gap: 0.375rem; }
    .cart-item-name { flex: 1 1 100%; }
}

/* ── TESTIMONIAL SLIDER ───────────────────── */
.testimonial-slider {
    position: relative; max-width: 800px; margin: 3rem auto 0;
    overflow: hidden; cursor: default;
}
.testimonial-slider .testimonial {
    display: none; transition: opacity 0.5s ease;
}
.testimonial-slider .testimonial.active {
    display: block; animation: fadeSlideIn 0.5s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Click-region hints: subtle gradient overlays on hover */
.testimonial-slider::before,
.testimonial-slider::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 33.33%;
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.3s;
}
.testimonial-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(200,133,62,0.06), transparent);
    cursor: w-resize;
}
.testimonial-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(200,133,62,0.06), transparent);
    cursor: e-resize;
}
.testimonial-slider:hover::before,
.testimonial-slider:hover::after { opacity: 1; }
.slider-dots {
    display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem;
    position: relative; z-index: 2;
}
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--soft);
    border: none; cursor: pointer; transition: all 0.3s; padding: 0;
}
.slider-dot:hover { background: #C8A878; transform: scale(1.3); }
.slider-dot.active { background: var(--gold); width: 28px; border-radius: 5px; }
.slider-dot.active:hover { background: var(--honey); transform: scale(1.05); }

[data-theme="dark"] .slider-dot { background: #3D2E22; }

/* ── ORDER CART SUMMARY ───────────────────── */
.order-cart-summary { min-height: 40px; }
.order-cart-empty { font-size: 0.875rem; color: #8B6F5C; padding: 0.5rem 0; }
.order-cart-empty a { color: var(--gold); font-weight: 600; }
.order-cart-item {
    display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center;
    padding: 0.5rem 0; border-bottom: 1px solid var(--soft);
    font-size: 0.875rem;
}
.order-cart-item span:first-child { font-weight: 600; }
.order-cart-item span:nth-child(2) { color: #8B6F5C; font-size: 0.8125rem; }
.order-cart-item span:last-child { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.order-cart-total {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 0.75rem; margin-top: 0.5rem; border-top: 2px solid var(--gold);
}
.order-cart-count { font-weight: 600; font-size: 0.9375rem; }
.order-cart-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold); }
[data-theme="dark"] .order-cart-empty { color: #9B8A78; }
[data-theme="dark"] .order-cart-item { border-color: var(--soft); }

.internship-perk { font-size: 0.9375rem; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.internship-check { color: #3A8C3F; font-weight: 700; flex-shrink: 0; }
[data-theme="dark"] .internship-perk { color: var(--ink); }
@media (max-width: 600px) {
    .internship-card > div { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
    .nav-toggle span { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
    .mobile-menu { transition: opacity 0.35s ease, backdrop-filter 0.35s ease; backdrop-filter: blur(0); }
    .mobile-menu.open { backdrop-filter: blur(16px); }
}

[data-theme="dark"] .mobile-menu { background: rgba(28,21,16,0.95); }

/* ── ARCHIVE CARDS ────────────────────────── */
.archive-filter-bar {
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    max-width: 760px;
}
.archive-filter {
    border-radius: 999px;
    border: 1px solid rgba(60,36,21,0.12);
    background: rgba(255,255,255,0.78);
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B5444;
}
.archive-filter.active,
.archive-filter:hover {
    border-color: rgba(200,133,62,0.55);
    color: var(--gold);
}
.archive-filter-note {
    margin-top: 1rem;
    text-align: center;
    color: #8B6F5C;
}
.archive-card {
    background: var(--paper); border-radius: 1.25rem; padding: 1.75rem;
    border: 1px solid var(--soft); transition: transform 0.3s, box-shadow 0.3s;
}
.archive-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(60,36,21,0.08); }
.archive-cookie-icon { width: 100px; height: 100px; margin: 0 auto 1.25rem; border-radius: 50%; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.archive-cookie-icon img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.archive-card:hover .archive-cookie-icon img { transform: scale(1.1); }
.archive-card.archive-returning { border-left: 3px solid #3A8C3F; }
.archive-card.archive-retired { border-left: 3px solid #8B6F5C; opacity: 0.85; }
.archive-season {
    font-size: 0.6875rem; font-weight: 700; color: var(--gold);
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.archive-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.archive-desc { font-size: 0.875rem; color: #6B5444; line-height: 1.6; margin-bottom: 1rem; }
.archive-footer { display: flex; justify-content: space-between; align-items: center; }
.archive-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.archive-note { font-size: 0.6875rem; color: #8B6F5C; font-style: italic; text-align: right; }
[data-theme="dark"] .archive-card { background: var(--paper); border-color: var(--soft); }
[data-theme="dark"] .archive-filter { background: rgba(42,30,22,0.88); border-color: rgba(240,228,212,0.08); color: #B8A898; }
[data-theme="dark"] .archive-desc { color: #B8A898; }
[data-theme="dark"] .archive-note { color: #9B8A78; }
[data-theme="dark"] .archive-filter-note { color: #B8A898; }
@media (max-width: 600px) {
    [data-load="data/archive.json"] { grid-template-columns: 1fr !important; }
}

/* ── LOADING SKELETONS ──────────────────────── */
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-list { display: flex; flex-direction: column; gap: 1rem; }
.skeleton-card, .skeleton-row {
    background: linear-gradient(90deg, var(--vanilla) 25%, #FDF3E2 50%, var(--vanilla) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 0.75rem;
}
.skeleton-card { height: 200px; max-width: 360px; margin: 0 auto; width: 100%; }
.skeleton-card-tall { height: 180px; }
.skeleton-row { height: 64px; max-width: 720px; margin: 0 auto; width: 100%; }
.skeleton-polaroid {
    aspect-ratio: 0.85; background: linear-gradient(90deg, var(--vanilla) 25%, #FDF3E2 50%, var(--vanilla) 75%);
    background-size: 200% 100%; animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
}
[data-theme="dark"] .skeleton-polaroid {
    background: linear-gradient(90deg, #2A1E16 25%, #3D2E22 50%, #2A1E16 75%);
    background-size: 200% 100%;
}
@media (max-width: 600px) {
    [data-template="kitchen-card"] { grid-template-columns: 1fr 1fr !important; }
}
[data-theme="dark"] .skeleton-card,
[data-theme="dark"] .skeleton-row {
    background: linear-gradient(90deg, #2A1E16 25%, #3D2E22 50%, #2A1E16 75%);
    background-size: 200% 100%;
}
.load-error {
    text-align: center; padding: 3rem; color: var(--jam);
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}

/* ── COOKIE PERSONALITY QUIZ ────────────────── */
.quiz-container { max-width: 600px; margin: 2.5rem auto 0; }
.quiz-card {
    background: #fff; border-radius: 1.5rem; padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06); text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.quiz-progress { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.quiz-step {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--soft); transition: all 0.3s;
}
.quiz-step.active { background: var(--gold); transform: scale(1.3); }
.quiz-step.done { background: #C8A878; }
.quiz-body h3 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    margin-bottom: 1.5rem;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-option {
    display: block; width: 100%; padding: 1rem 1.25rem;
    background: var(--bg); border: 2px solid var(--soft); border-radius: 1rem;
    cursor: pointer; font-size: 0.9375rem; font-family: var(--font-body);
    color: var(--ink); text-align: left; transition: all 0.25s;
}
.quiz-option:hover { border-color: var(--gold); background: #FFF9F2; transform: translateX(4px); }
.quiz-option:active { transform: scale(0.98); }
@keyframes quizReveal {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
.quiz-result { animation: quizReveal 0.45s ease both; }
.quiz-result-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
.quiz-result-icon .cookie-icon { width: 64px; height: 64px; }
.quiz-result h3 {
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
    margin-bottom: 0.5rem;
}
.quiz-result .quiz-match { font-size: 0.875rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.quiz-result p { font-size: 0.9375rem; color: #6B5444; line-height: 1.7; margin-bottom: 1.5rem; }
.quiz-result .btn { margin: 0 0.25rem; }
.quiz-retry {
    display: inline-block; margin-top: 1rem; font-size: 0.8125rem; color: #8B6F5C;
    cursor: pointer; background: none; border: none; text-decoration: underline;
    font-family: var(--font-body);
}
.quiz-retry:hover { color: var(--gold); }
[data-theme="dark"] .quiz-card { background: var(--paper); }
[data-theme="dark"] .quiz-option { background: var(--vanilla); }
[data-theme="dark"] .quiz-option:hover { background: #2E241A; }
[data-theme="dark"] .quiz-result p { color: #B8A898; }
@media (max-width: 600px) {
    .quiz-card { padding: 1.5rem; }
    .quiz-body h3 { font-size: 1.25rem; }
}

/* ── FORM VALIDATION ──────────────────────── */
.form-group { position: relative; transition: margin-bottom 0.25s; }
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--jam);
    background: rgba(184,68,68,0.03);
}
.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
    border-color: var(--jam);
    box-shadow: 0 0 0 3px rgba(184,68,68,0.1);
}
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
    border-color: #3A8C3F;
}
.form-group.valid::after {
    content: '✓';
    position: absolute;
    right: 0.875rem;
    top: 2.125rem;
    color: #3A8C3F;
    font-weight: 700;
    font-size: 0.875rem;
    pointer-events: none;
    animation: fadeIn 0.25s ease;
}
.form-error {
    font-size: 0.75rem;
    color: var(--jam);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: fadeIn 0.25s ease;
    font-weight: 500;
}
.form-error::before {
    content: '⚠';
    font-size: 0.6875rem;
    flex-shrink: 0;
}
/* ── BUTTON LOADING ───────────────────────── */
.btn.loading {
    position: relative;
    pointer-events: none;
    cursor: wait;
}
.btn-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    flex-shrink: 0;
}
.btn-outline .btn-spinner {
    border-color: rgba(200,133,62,0.2);
    border-top-color: var(--gold);
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
/* ── FORM SUCCESS INLINE ──────────────────── */
.form-success-inline {
    display: none;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.125rem;
    border-radius: 0.75rem;
    background: rgba(58,140,63,0.07);
    color: #3A8C3F;
    font-weight: 600;
    font-size: 0.875rem;
    animation: fadeIn 0.4s ease;
    margin-top: 1rem;
    border: 1px solid rgba(58,140,63,0.12);
}
.form-success-inline.visible {
    display: flex;
}
.form-success-inline::before {
    content: '';
    width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 45% 35%, #5BBA63 0%, #3A8C3F 70%);
    flex-shrink: 0;
    box-shadow: inset 0 -2px 3px rgba(0,0,0,0.2);
}
.form-success-inline.sold-out {
    background: rgba(200,133,62,0.08);
    color: var(--gold);
    border-color: rgba(200,133,62,0.15);
}
.form-success-inline.sold-out::before {
    background: radial-gradient(circle at 45% 35%, var(--honey) 0%, var(--gold) 70%);
}
[data-theme="dark"] .form-success-inline {
    background: rgba(58,140,63,0.1);
    border-color: rgba(58,140,63,0.15);
}
[data-theme="dark"] .form-success-inline.sold-out {
    background: rgba(200,133,62,0.1);
    border-color: rgba(200,133,62,0.15);
}
/* ── MOBILE FAB ───────────────────────────── */
.mobile-fab {
    display: none;
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    z-index: 150;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background: var(--gold); color: #fff;
    font-family: var(--font-body); font-size: 0.875rem; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(200,133,62,0.45);
    align-items: center; gap: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    animation: fabFloatIn 0.5s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
@keyframes fabFloatIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mobile-fab:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 10px 32px rgba(200,133,62,0.55); }
.mobile-fab:active { transform: translateX(-50%) translateY(0) scale(0.95); }
.mobile-fab svg { flex-shrink: 0; }
@media (max-width: 900px) {
    .mobile-fab { display: inline-flex; }
}
@media (max-width: 600px) {
    .mobile-fab { bottom: 1rem; padding: 0.7rem 1.25rem; font-size: 0.8125rem; }
}

/* ── CHAPTER DOTS ─────────────────────────── */
.chapter-dots {
    display: none;
    position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%);
    z-index: 80; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 1100px) {
    .chapter-dots { display: flex; }
}
.chapter-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--soft);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.chapter-dot.seen { background: #C8A878; }
.chapter-dot.active { background: var(--gold); transform: scale(1.5); box-shadow: 0 0 8px rgba(200,133,62,0.4); }
.chapter-dot:hover { background: var(--gold); transform: scale(1.3); }

/* ── PERFORMANCE ───────────────────────────── */
section { content-visibility: auto; contain-intrinsic-size: 500px; }
.hero, #products, #site-nav, #site-footer { content-visibility: visible; }

/* ── CART RIPPLE ───────────────────────────── */
@keyframes btnRipple {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}
.qty-btn { position: relative; overflow: hidden; }
.qty-ripple {
    position: absolute; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(200,133,62,0.3); pointer-events: none;
    animation: btnRipple 0.5s ease-out forwards;
}
/* ── DOZEN FIREWORK ────────────────────────── */
@keyframes dozenFlash {
    0%   { width: 8px; height: 8px; opacity: 1; box-shadow: 0 0 0 0 rgba(255,215,0,0.9), 0 0 60px 20px rgba(255,180,60,0.6); }
    20%  { width: 200px; height: 200px; opacity: 0.8; box-shadow: 0 0 0 80px rgba(255,200,60,0.3), 0 0 200px 80px rgba(255,160,40,0.25); }
    50%  { width: 400px; height: 400px; opacity: 0.3; box-shadow: 0 0 0 120px rgba(255,180,50,0), 0 0 300px 120px rgba(255,140,30,0); }
    100% { width: 500px; height: 500px; opacity: 0; box-shadow: 0 0 0 150px rgba(255,150,40,0), 0 0 400px 150px rgba(255,120,20,0); }
}
@keyframes dozenFirework {
    0%   { opacity: 0; transform: translate(0, 0) scale(0) rotate(0deg); }
    8%   { opacity: 1; transform: translate(calc(var(--dx) * 0.08), calc(var(--dy) * 0.05 - 40px)) scale(0.6) rotate(0deg); }
    25%  { opacity: 1; transform: translate(calc(var(--dx) * 0.35), calc(var(--dy) * 0.25 - 15px)) scale(1.4) rotate(calc(var(--rot) * 0.15)); }
    50%  { opacity: 0.9; transform: translate(calc(var(--dx) * 0.75), calc(var(--dy) * 0.65)) scale(1) rotate(calc(var(--rot) * 0.5)); }
    80%  { opacity: 0.4; transform: translate(calc(var(--dx) * 0.95), calc(var(--dy) * 0.95 + 20px)) scale(0.5) rotate(calc(var(--rot) * 0.8)); }
    100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 60px)) scale(0.1) rotate(var(--rot)); }
}
@keyframes dozenTrail {
    0%   { opacity: 0; transform: translate(0, 0) scale(0); }
    15%  { opacity: 0.8; transform: translate(calc(var(--dx) * 0.2), calc(var(--dy) * 0.12 - 30px)) scale(1); }
    55%  { opacity: 0.5; transform: translate(calc(var(--dx) * 0.7), calc(var(--dy) * 0.55)) scale(0.8); }
    100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(0); }
}

.pdx-seal {
    display: inline-block; font-size: 0.6875rem; font-weight: 600;
    color: #3A8C3F; letter-spacing: 0.04em;
    transition: color 0.2s;
}
.pdx-seal:hover { color: #4CAF50; }

.product-origin{font-size:0.75rem;color:#8B6F5C;font-style:italic;line-height:1.5;margin:0;padding-top:0.65rem;border-top:1px solid var(--soft);}

.faculty-quote{font-size:0.8125rem;color:#C8853E;font-style:italic;line-height:1.5;margin-top:0.25rem;}

/* ── COOKIE RAIN ──────────────────────────── */
@keyframes cookieDrop {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    80%  { opacity: 0.7; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── CURSOR SPARKLE TRAIL ─────────────────── */
@keyframes sparkleTrail {
    0%   { opacity: 0.8; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(calc(var(--sdx, 0) * 1px), calc(var(--sdy, -20) * 1px)) scale(0); }
}

/* ── ATLAS SPARKLE ────────────────────────── */
@keyframes atlasSparkleAnim {
    0%   { opacity: 0; transform: translate(0, 0) scale(0); }
    30%  { opacity: 1; transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * 0.3)) scale(1.5); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

/* ── KONAMI COOKIE ────────────────────────── */
.konami-cookie {
    border-color: #FFD700 !important;
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(200,133,62,0.04)) !important;
    animation: konamiShimmer 2s ease-in-out infinite;
}
@keyframes konamiShimmer {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.3); }
    50%      { box-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 40px rgba(200,133,62,0.2); }
}
.konami-cookie.in-cart {
    border-color: #FFD700 !important;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(200,133,62,0.08)) !important;
    box-shadow: 0 0 24px rgba(255,215,0,0.4), 0 0 60px rgba(200,133,62,0.2);
}
[data-theme="dark"] .konami-cookie {
    border-color: #FFD700 !important;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(200,133,62,0.06)) !important;
}

/* ── KEYBOARD SHORTCUTS ───────────────────── */
.shortcuts-backdrop {
    position: fixed; inset: 0; z-index: 700;
    background: rgba(28,21,16,0.6); backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    animation: confirmFadeIn 0.2s ease both;
}
.shortcuts-panel {
    background: var(--bg); border-radius: 1.5rem;
    padding: 2rem 2.25rem;
    max-width: 480px; width: 92vw; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,133,62,0.2);
    animation: confirmSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.shortcuts-panel h3 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    margin-bottom: 1.25rem; text-align: center;
}
.shortcuts-grid {
    display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.25rem;
    align-items: center;
}
.shortcuts-grid kbd {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-mono); font-size: 0.72rem;
    background: var(--vanilla); border: 1px solid var(--soft);
    border-radius: 0.4rem; color: var(--ink);
    text-align: center; white-space: nowrap;
    min-width: 1.5rem;
}
.shortcuts-grid span {
    font-size: 0.875rem; color: #6B5444;
}
.shortcuts-hint {
    text-align: center; margin-top: 1.25rem;
    font-size: 0.75rem; color: #8B6F5C;
    font-family: var(--font-mono);
}
[data-theme="dark"] .shortcuts-grid span { color: #B8A898; }
[data-theme="dark"] .shortcuts-grid kbd { background: #2A1E16; border-color: var(--soft); }
@media (max-width: 600px) {
    .shortcuts-panel { padding: 1.5rem; }
    .shortcuts-grid { gap: 0.4rem 0.75rem; }
    .shortcuts-grid kbd { font-size: 0.65rem; padding: 0.25rem 0.45rem; }
    .shortcuts-grid span { font-size: 0.8rem; }
}
