/* ========================================================================
   mysterious.boo — sepia honeycomb labyrinth
   Palette: #1A1308 #E8D5B5 #C9B18C #3B2F1E #5C4B3A #C8A96E #F0DDB8
            #00D4CC #CC00AA #0D0A04 (+ #7A6B5A #D4B483 #F0DDB8 #0D0A04
            #3B2F1E #E8D5B5 #5C4B3A #C9B18C from design header)
   Type:   Libre Baskerville · DM Sans · Playfair Display
   ======================================================================== */

:root {
    --c-deep:        #1A1308;
    --c-shadow:      #0D0A04;
    --c-parchment:   #E8D5B5;
    --c-vellum:      #C9B18C;
    --c-umber:       #3B2F1E;
    --c-walnut:      #5C4B3A;
    --c-taupe:       #7A6B5A;
    --c-gold:        #C8A96E;
    --c-gold-soft:   #D4B483;
    --c-honey:       #F0DDB8;
    --c-glitch-cyan: #00D4CC;
    --c-glitch-mag:  #CC00AA;

    --hex-w: 280px;
    --hex-h: 242.5px;       /* width * 0.866 (flat-top hexagon ratio) */
    --hex-row-step: 181.9px;/* hex-h * 0.75 — row vertical pitch (overlap) */
    --hex-col-gap: 6px;
    --hex-clip: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);

    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --shift-x: 0px;
    --shift-y: 0px;
    --scan-opacity: 0.12;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-deep);
    color: var(--c-walnut);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    position: relative;
    transform: translate3d(var(--shift-x), var(--shift-y), 0);
    transition: transform 120ms ease-out;
    background:
        radial-gradient(circle at 20% 10%, rgba(60, 47, 30, 0.55) 0%, transparent 55%),
        radial-gradient(circle at 80% 90%, rgba(40, 30, 18, 0.65) 0%, transparent 60%),
        var(--c-deep);
    background-attachment: fixed;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ----------------------------------------------------------------
   Layer: paper grain (noise)
---------------------------------------------------------------- */
.grain-layer {
    position: fixed;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    filter: url(#paperGrain);
    background: transparent;
    mix-blend-mode: soft-light;
}
.grain-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.788 0 0 0 0 0.694 0 0 0 0 0.549 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: screen;
}

/* ----------------------------------------------------------------
   Layer: organic blobs (drift behind grid)
---------------------------------------------------------------- */
.blob-layer {
    position: fixed;
    inset: -15%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.blob {
    position: absolute;
    background: var(--c-vellum);
    opacity: 0.10;
    filter: blur(28px);
    will-change: transform, border-radius, opacity;
}
.blob--1 {
    width: 480px; height: 460px;
    top: 12%; left: 8%;
    border-radius: 30% 70% 60% 40% / 50% 60% 30% 60%;
    animation: blobMorph1 22s ease-in-out infinite, blobDrift1 38s ease-in-out infinite;
    background: radial-gradient(circle at 30% 30%, var(--c-gold-soft), var(--c-vellum) 70%);
    opacity: 0.13;
}
.blob--2 {
    width: 540px; height: 520px;
    top: 38%; left: 60%;
    border-radius: 60% 40% 50% 50% / 30% 60% 40% 70%;
    animation: blobMorph2 18s ease-in-out infinite, blobDrift2 44s ease-in-out infinite;
    background: radial-gradient(circle at 60% 50%, var(--c-vellum), var(--c-walnut) 80%);
    opacity: 0.10;
}
.blob--3 {
    width: 380px; height: 360px;
    top: 70%; left: 18%;
    border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
    animation: blobMorph3 25s ease-in-out infinite, blobDrift3 48s ease-in-out infinite;
    background: radial-gradient(circle at 40% 60%, var(--c-gold), var(--c-deep) 90%);
    opacity: 0.08;
}
.blob--4 {
    width: 420px; height: 400px;
    top: 5%; left: 70%;
    border-radius: 50% 50% 70% 30% / 40% 60% 50% 50%;
    animation: blobMorph1 20s ease-in-out infinite reverse, blobDrift4 52s ease-in-out infinite;
    background: radial-gradient(circle at 50% 30%, var(--c-honey), var(--c-walnut) 85%);
    opacity: 0.12;
}
.blob--5 {
    width: 600px; height: 560px;
    top: 90%; left: 45%;
    border-radius: 60% 40% 50% 50% / 50% 70% 30% 50%;
    animation: blobMorph2 24s ease-in-out infinite reverse, blobDrift5 60s ease-in-out infinite;
    background: radial-gradient(circle at 50% 50%, var(--c-vellum), var(--c-deep) 80%);
    opacity: 0.09;
}

@keyframes blobMorph1 {
    0%, 100% { border-radius: 30% 70% 60% 40% / 50% 60% 30% 60%; }
    50%      { border-radius: 60% 40% 30% 70% / 40% 30% 70% 60%; }
}
@keyframes blobMorph2 {
    0%, 100% { border-radius: 60% 40% 50% 50% / 30% 60% 40% 70%; }
    50%      { border-radius: 40% 60% 70% 30% / 70% 30% 60% 40%; }
}
@keyframes blobMorph3 {
    0%, 100% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
    50%      { border-radius: 70% 30% 60% 40% / 30% 70% 40% 60%; }
}
@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(80px, -60px) scale(1.05); }
}
@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-100px, 70px) scale(0.95); }
}
@keyframes blobDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 80px) scale(1.08); }
}
@keyframes blobDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-70px, -50px) scale(0.92); }
}
@keyframes blobDrift5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -90px) scale(1.06); }
}

/* ----------------------------------------------------------------
   Layer: honeycomb field
---------------------------------------------------------------- */
.honeycomb {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hex-row {
    display: flex;
    justify-content: center;
    gap: var(--hex-col-gap);
    margin-top: calc(var(--hex-row-step) - var(--hex-h));
    width: max-content;
    min-width: 100%;
    padding: 0 24px;
}
.hex-row:first-child { margin-top: 0; }
.hex-row--odd { transform: translateX(calc((var(--hex-w) + var(--hex-col-gap)) / 2)); }

.hex {
    flex: 0 0 auto;
    width: var(--hex-w);
    height: var(--hex-h);
    position: relative;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 700ms var(--ease-spring), opacity 700ms ease-out;
}

.hex.is-emerged {
    opacity: 1;
    transform: scale(1);
}

/* Inner wrapper takes the hexagon's clip and provides padding/content surface */
.hex__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 46px;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    overflow: hidden;
    transition: filter 280ms ease-out, transform 280ms ease-out;
}

/* --- Content cells --- */
.hex--content .hex__inner {
    background:
        radial-gradient(ellipse at 50% 30%, var(--c-honey) 0%, var(--c-parchment) 55%, var(--c-vellum) 100%);
    box-shadow: inset 0 0 36px rgba(13, 10, 4, 0.55);
    cursor: pointer;
}
.hex--content::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    background: transparent;
    border: 0;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(200, 169, 110, 0.0) inset;
    opacity: 1;
    z-index: 2;
}

/* hexagon outline drawn via background-clip trick (1px gold edge inside the clipped shape) */
.hex--content::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(var(--c-gold), var(--c-gold)) content-box,
        linear-gradient(var(--c-gold), var(--c-gold));
    -webkit-mask:
        linear-gradient(#000, #000) content-box,
        linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 1.5px;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    opacity: 0.32;
    animation: pulseAttention 3s ease-in-out infinite;
    z-index: 3;
}

.hex--content[data-near="true"]::after {
    animation-duration: 2.5s;
    opacity: 0.55;
}

.hex--content:hover .hex__inner { transform: translateY(-1px); filter: brightness(1.06); }
.hex--content:hover::after { opacity: 0.6; }

/* --- Atmosphere cells --- */
.hex--atmosphere .hex__inner {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(201, 177, 140, 0.22) 0%, rgba(60, 47, 30, 0.65) 80%);
    box-shadow: inset 0 0 50px rgba(13, 10, 4, 0.7);
    color: var(--c-vellum);
    filter: url(#warpGlass);
}
.hex--atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(var(--c-vellum), var(--c-vellum)) content-box,
        linear-gradient(var(--c-vellum), var(--c-vellum));
    -webkit-mask:
        linear-gradient(#000, #000) content-box,
        linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 1px;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    opacity: 0.18;
    animation: pulseAttention 4s ease-in-out infinite;
    z-index: 3;
}

/* --- Void cells --- */
.hex--void {
    background: transparent;
    pointer-events: none;
}
.hex--void .hex__inner { background: transparent; box-shadow: none; }
.hex--void::after { display: none; }

/* --- Atmosphere internal motifs --- */
.atmos-numeral {
    font-family: "Playfair Display", "Libre Baskerville", serif;
    font-weight: 900;
    color: var(--c-gold-soft);
    opacity: 0.20;
    font-size: 96px;
    letter-spacing: 0.02em;
    user-select: none;
    transform: rotate(-4deg);
}
.atmos-numeral--xl {
    font-size: 144px;
    opacity: 0.22;
    color: var(--c-gold);
    transform: rotate(2deg);
}
.atmos-glyph {
    font-family: "Libre Baskerville", serif;
    font-size: 80px;
    color: var(--c-gold-soft);
    opacity: 0.32;
    transform: rotate(8deg);
}
.atmos-glyph--rot { transform: rotate(-12deg); font-size: 92px; }

.atmos-pattern {
    width: 70%;
    height: 60%;
    opacity: 0.35;
    border-radius: 4px;
}
.atmos-pattern--lines {
    background: repeating-linear-gradient(
        45deg,
        transparent 0 6px,
        var(--c-vellum) 6px 7px
    );
}
.atmos-pattern--dots {
    background-image: radial-gradient(circle, var(--c-vellum) 1.2px, transparent 1.6px);
    background-size: 16px 16px;
}
.atmos-pattern--cross {
    background-image:
        linear-gradient(0deg, var(--c-vellum) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-vellum) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.28;
}

/* --- Content inside content cells --- */
.cell-content {
    width: 100%;
    max-width: 200px;
    text-align: center;
    color: var(--c-walnut);
    position: relative;
    z-index: 1;
}
.cell-content--specimen { padding-top: 6px; }

.cell-label,
.specimen-label {
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-taupe);
    margin-bottom: 12px;
}
.cell-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    color: var(--c-umber);
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
}
.cell-title--sm { font-size: 19px; }
.cell-text {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--c-walnut);
    margin: 0;
}
.cell-text--lg { font-size: 14px; font-style: italic; line-height: 1.45; }
.cell-meta {
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
    font-size: 10px;
    color: var(--c-taupe);
    margin-top: 10px;
    letter-spacing: 0.08em;
}

/* --- Specimen art --- */
.specimen-pin {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--c-honey), var(--c-walnut) 70%);
    box-shadow: 0 2px 4px rgba(13, 10, 4, 0.55);
    margin: 0 auto 8px;
}
.specimen-art {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    box-shadow:
        inset 0 0 24px rgba(26, 19, 8, 0.4),
        0 0 0 1px rgba(60, 47, 30, 0.15);
    background: radial-gradient(circle at 50% 50%, var(--c-honey), var(--c-parchment) 70%, var(--c-vellum) 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 320ms ease-out;
}
.specimen-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(13, 10, 4, 0.06) 0 1px, transparent 1px 3px);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.specimen-art .art-svg { width: 100%; height: 100%; display: block; }
.hex--content:hover .specimen-art {
    animation: specimenPulse 3s ease-in-out infinite;
}

.specimen-label {
    font-size: 9.5px;
    color: var(--c-taupe);
    background: rgba(232, 213, 181, 0.85);
    padding: 4px 8px;
    margin: 0 -2px;
    border-radius: 1px;
    letter-spacing: 0.12em;
}

/* --- Glitch word (RGB channel split, occasional) --- */
.glitch-word {
    position: relative;
    display: inline-block;
    color: var(--c-umber);
}
.glitch-word.is-glitching::before,
.glitch-word.is-glitching::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    pointer-events: none;
}
.glitch-word.is-glitching::before {
    color: var(--c-glitch-cyan);
    transform: translate(-2px, 0);
    mix-blend-mode: screen;
    opacity: 0.85;
    animation: glitchShiftA 320ms steps(2, end);
}
.glitch-word.is-glitching::after {
    color: var(--c-glitch-mag);
    transform: translate(2px, 0);
    mix-blend-mode: screen;
    opacity: 0.85;
    animation: glitchShiftB 320ms steps(2, end);
}

@keyframes glitchShiftA {
    0%   { transform: translate(-3px, 0); }
    50%  { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}
@keyframes glitchShiftB {
    0%   { transform: translate(3px, 0); }
    50%  { transform: translate(1px, -1px); }
    100% { transform: translate(0, 0); }
}

@keyframes pulseAttention {
    0%, 100% { opacity: 0.30; transform: scale(0.985); }
    50%      { opacity: 0.55; transform: scale(1); }
}

@keyframes specimenPulse {
    0%, 100% { box-shadow: inset 0 0 24px rgba(26, 19, 8, 0.4), 0 0 0 1px rgba(60, 47, 30, 0.15); }
    50%      { box-shadow: inset 0 0 24px rgba(26, 19, 8, 0.4), 0 0 20px rgba(200, 169, 110, 0.32); }
}

/* ----------------------------------------------------------------
   Scanlines overlay
---------------------------------------------------------------- */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(26, 19, 8, var(--scan-opacity)) 0 1px,
        transparent 1px 2px
    );
    mix-blend-mode: multiply;
    transition: background 220ms ease-out;
}

/* ----------------------------------------------------------------
   Emergence overlay (page load)
---------------------------------------------------------------- */
.emergence {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--c-deep);
    pointer-events: none;
    transition: opacity 1400ms ease-in 1100ms;
    opacity: 1;
}
.emergence.is-gone { opacity: 0; }

/* ----------------------------------------------------------------
   Pulse map navigation (hex cluster bottom-right)
---------------------------------------------------------------- */
.pulse-map {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 20;
    width: 140px;
    height: 132px;
    pointer-events: none;
}

.pulse-cell {
    position: absolute;
    width: 64px;
    height: 55.4px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    font: inherit;
    color: inherit;
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    transition: transform 260ms var(--ease-spring), filter 220ms ease-out;
}

.pulse-cell:nth-child(1) { top: 0;  left: 0; }
.pulse-cell:nth-child(2) { top: 0;  left: 60px; }
.pulse-cell:nth-child(3) { top: 47px; left: 30px; }
.pulse-cell:nth-child(4) { top: 86px; left: 76px; width: 52px; height: 45px; }

.pulse-cell__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 35%, var(--c-honey), var(--c-vellum) 75%, var(--c-walnut) 100%);
    box-shadow: inset 0 0 14px rgba(13, 10, 4, 0.55);
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    animation: pulseNav 3s ease-in-out infinite;
}
.pulse-cell:nth-child(1) .pulse-cell__inner { animation-delay: 0s; }
.pulse-cell:nth-child(2) .pulse-cell__inner { animation-delay: 0.4s; }
.pulse-cell:nth-child(3) .pulse-cell__inner { animation-delay: 0.8s; }
.pulse-cell:nth-child(4) .pulse-cell__inner { animation-delay: 1.2s; }

.pulse-cell__label {
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--c-umber);
    letter-spacing: 0.12em;
}

.pulse-cell:hover { transform: scale(1.06); filter: brightness(1.08); }
.pulse-cell.is-active { transform: scale(1.12); }
.pulse-cell.is-active .pulse-cell__inner {
    background: radial-gradient(ellipse at 50% 35%, var(--c-honey), var(--c-gold) 75%, var(--c-walnut) 100%);
    animation-duration: 2s;
}

@keyframes pulseNav {
    0%, 100% { opacity: 0.62; transform: scale(0.97); filter: brightness(0.95); }
    50%      { opacity: 1.0;  transform: scale(1);    filter: brightness(1.10); }
}

/* ----------------------------------------------------------------
   Specimen drawer overlay
---------------------------------------------------------------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 380ms ease-out;
}
.overlay.is-open {
    pointer-events: auto;
    opacity: 1;
}
.overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 10, 4, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.overlay__hex {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 242.5px;
    transform: translate(-50%, -50%) scale(0.4);
    transform-origin: center center;
    background:
        radial-gradient(ellipse at 50% 30%, var(--c-honey) 0%, var(--c-parchment) 50%, var(--c-vellum) 100%);
    clip-path: var(--hex-clip);
    -webkit-clip-path: var(--hex-clip);
    box-shadow:
        inset 0 0 60px rgba(13, 10, 4, 0.5),
        0 0 80px rgba(0, 0, 0, 0.4);
    transition: transform 600ms var(--ease-spring), width 600ms var(--ease-spring), height 600ms var(--ease-spring), clip-path 600ms ease-out;
}
.overlay.is-open .overlay__hex {
    width: min(960px, 92vw);
    height: min(720px, 88vh);
    transform: translate(-50%, -50%) scale(1);
    clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
    -webkit-clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
}

.overlay__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 80px;
    color: var(--c-walnut);
    opacity: 0;
    transition: opacity 360ms ease-out 240ms;
}
.overlay.is-open .overlay__inner { opacity: 1; }

.overlay__close {
    position: absolute;
    top: 28px;
    right: 36px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--c-gold);
    border-radius: 50%;
    color: var(--c-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 220ms ease-out, transform 220ms ease-out;
    animation: pulseAttention 3s ease-in-out infinite;
}
.overlay__close:hover {
    background: rgba(200, 169, 110, 0.12);
    transform: scale(1.06);
}

.overlay__label {
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-taupe);
    margin-bottom: 16px;
}
.overlay__title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    color: var(--c-umber);
    font-size: clamp(28px, 4.4vw, 56px);
    letter-spacing: 0.03em;
    margin: 0 0 24px;
    line-height: 1.12;
    max-width: 16ch;
}
.overlay__body {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-walnut);
    max-width: 60ch;
    margin: 0 0 32px;
}
.overlay__body em { color: var(--c-umber); }
.overlay__meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-taupe);
}
.overlay__meta-item span { color: var(--c-gold); margin-left: 4px; }

/* dim and blur the honeycomb when overlay is open */
body.overlay-open .honeycomb,
body.overlay-open .blob-layer,
body.overlay-open .grain-layer {
    filter: blur(4px) brightness(0.45);
    transition: filter 380ms ease-out;
    pointer-events: none;
}
.honeycomb, .blob-layer, .grain-layer { transition: filter 380ms ease-out; }

/* ----------------------------------------------------------------
   Glitch event: full-viewport scanline pulse
---------------------------------------------------------------- */
body.is-glitching {
    --scan-opacity: 0.40;
}

/* ----------------------------------------------------------------
   Responsive — single column hex stack
---------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --hex-w: 280px;
        --hex-h: 242.5px;
    }
    .honeycomb {
        padding: 50px 0 160px;
    }
    .hex-row {
        flex-direction: column;
        align-items: center;
        margin-top: 0 !important;
        transform: none !important;
        gap: 14px;
        padding: 0 16px;
    }
    .hex--void { display: none; }
    .hex--atmosphere { width: 100px; height: 86.6px; }
    .hex--atmosphere .atmos-numeral { font-size: 36px; }
    .hex--atmosphere .atmos-numeral--xl { font-size: 48px; }
    .hex--atmosphere .atmos-glyph { font-size: 30px; }
    .hex--atmosphere .atmos-pattern { width: 60%; height: 50%; }
    .hex--content { width: min(320px, 92vw); height: calc(min(320px, 92vw) * 0.866); }
    .pulse-map { right: 14px; bottom: 14px; transform: scale(0.85); transform-origin: bottom right; }
}

/* ----------------------------------------------------------------
   Misc utility
---------------------------------------------------------------- */
::selection { background: rgba(200, 169, 110, 0.45); color: var(--c-umber); }

@media (prefers-reduced-motion: reduce) {
    .hex, .blob, .pulse-cell__inner, .hex--content::after, .hex--atmosphere::after,
    .specimen-art, .overlay__close {
        animation: none !important;
        transition: none !important;
    }
}
