/* loves.day — surreal pastoral cathedral of small affections
   Hexagonal honeycomb layout / sunset-warm palette / retro-display + handwritten typography
   Slow ceremonial motion. No accessibility/perf optimizations per spec. */

:root {
    --honey-amber: #F4B860;
    --persimmon: #E87A3E;
    --crushed-rose: #C84B5C;
    --dusk-wine: #8B3A4F;
    --indigo-twilight: #3D2A4E;
    --lantern-cream: #FFE4B8;
    --vesper-black: #2A1A2E;
    --sage-meadow: #6B8E5A;

    --hex-w: 220px;
    --hex-h: 254px;
    --gap: 14px;

    --ease-liturgical: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-duration: 820ms;

    --font-display: 'Rubik Mono One', 'Courier New', monospace;
    --font-secondary: 'Bagel Fat One', 'Georgia', serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Caveat', 'Brush Script MT', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--vesper-black);
    background: linear-gradient(
        180deg,
        #F4B860 0%,
        #F4B860 8%,
        #E87A3E 28%,
        #C84B5C 52%,
        #8B3A4F 72%,
        #3D2A4E 100%
    );
    background-attachment: fixed;
    background-size: 100% 100vh;
    min-height: 100vh;
    position: relative;
    line-height: 1.5;
    cursor: none;
}

/* paper-grain overlay sits over everything but pointer-through */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(42, 26, 46, 0.06) 0, transparent 1.5px),
        radial-gradient(circle at 70% 65%, rgba(42, 26, 46, 0.05) 0, transparent 1.2px),
        radial-gradient(circle at 50% 80%, rgba(255, 228, 184, 0.07) 0, transparent 2px),
        radial-gradient(circle at 35% 55%, rgba(42, 26, 46, 0.05) 0, transparent 1px);
    background-size: 7px 7px, 11px 11px, 13px 13px, 5px 5px;
    mix-blend-mode: multiply;
    opacity: 0.55;
}

.grain-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

main {
    position: relative;
    z-index: 2;
}

/* honey-drip cursor follower */
.cursor-honey {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFE4B8 0%, #F4B860 40%, #E87A3E 90%);
    box-shadow:
        0 0 12px rgba(232, 122, 62, 0.55),
        0 0 24px rgba(244, 184, 96, 0.35);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
    transition: transform 60ms linear, opacity 600ms var(--ease-liturgical);
    opacity: 0;
}

.cursor-honey.is-active {
    opacity: 1;
}

/* narrative river: thin amber line connecting cursor to last-hovered hex */
.narrative-river {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 600ms var(--ease-liturgical);
}

.narrative-river.is-visible {
    opacity: 1;
}

.narrative-river::before {
    content: '';
    position: absolute;
    width: var(--river-length, 0px);
    height: 1.4px;
    left: var(--river-x, 0px);
    top: var(--river-y, 0px);
    background: linear-gradient(90deg, transparent, var(--honey-amber) 30%, var(--persimmon) 70%, transparent);
    transform-origin: 0 50%;
    transform: rotate(var(--river-angle, 0deg));
    box-shadow: 0 0 6px rgba(244, 184, 96, 0.65);
    animation: river-pulse 4.8s ease-in-out infinite;
}

@keyframes river-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

/* COMB SECTION — honeycomb hero */
.comb {
    min-height: 100vh;
    padding: 80px 24px 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comb-overture {
    text-align: center;
    margin-bottom: 64px;
    max-width: 880px;
}

.overture-mark {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--lantern-cream);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    transform: rotate(-1.4deg);
    display: inline-block;
}

.overture-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 6.4rem);
    color: var(--lantern-cream);
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 2px 3px 0 rgba(42, 26, 46, 0.32);
    margin-bottom: 12px;
}

.overture-title .dot {
    color: var(--persimmon);
    display: inline-block;
    transform: translateY(-0.04em);
}

.overture-sub {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    color: var(--lantern-cream);
    letter-spacing: 0.02em;
    opacity: 0.92;
}

/* HEX GRID — true honeycomb tessellation via offset rows */
.hex-grid {
    --row-step: calc(var(--hex-h) * 0.75 + var(--gap) * 0.5);
    --row-offset: calc(var(--hex-w) * 0.5 + var(--gap) * 0.5);
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, var(--hex-w));
    justify-content: center;
    gap: var(--gap);
    position: relative;
}

/* tessellation: every cell after first 5 (row 2 onward) reaches up via negative margin to overlap row above by 25% */
.hex-grid > .hex:nth-child(n+4) {
    margin-top: calc(var(--hex-h) * -0.25);
}

/* row offsets via grid-column placement
   row 1: cols 1,2,3 (centered visually)  -> indices 1-3
   row 2: offset half-cell               -> indices 4-7
   row 3: aligned                          -> indices 8-11
   row 4: offset                           -> indices 12-15
   We have 15 hex children total. Let's set explicit grid-column for rows: */

.hex-grid > .hex:nth-child(1) { grid-column: 2; grid-row: 1; }
.hex-grid > .hex:nth-child(2) { grid-column: 3; grid-row: 1; }
.hex-grid > .hex:nth-child(3) { grid-column: 4; grid-row: 1; }

.hex-grid > .hex:nth-child(4) { grid-column: 1 / span 2; grid-row: 2; justify-self: end; transform-origin: center; }
.hex-grid > .hex:nth-child(5) { grid-column: 3; grid-row: 2; }
.hex-grid > .hex:nth-child(6) { grid-column: 4 / span 2; grid-row: 2; justify-self: start; }
.hex-grid > .hex:nth-child(7) { grid-column: 5; grid-row: 2; display: none; } /* tucked */

.hex-grid > .hex:nth-child(8) { grid-column: 2; grid-row: 3; }
.hex-grid > .hex:nth-child(9) { grid-column: 3; grid-row: 3; }
.hex-grid > .hex:nth-child(10) { grid-column: 4; grid-row: 3; }
.hex-grid > .hex:nth-child(11) { grid-column: 1; grid-row: 3; display: none; }

.hex-grid > .hex:nth-child(12) { grid-column: 1 / span 2; grid-row: 4; justify-self: end; }
.hex-grid > .hex:nth-child(13) { grid-column: 3; grid-row: 4; }
.hex-grid > .hex:nth-child(14) { grid-column: 4 / span 2; grid-row: 4; justify-self: start; }

/* fix overlap rows 3 and 4 too */
.hex-grid > .hex:nth-child(8),
.hex-grid > .hex:nth-child(9),
.hex-grid > .hex:nth-child(10) {
    margin-top: calc(var(--hex-h) * -0.25 - var(--gap) * 0.5);
}

.hex-grid > .hex:nth-child(12),
.hex-grid > .hex:nth-child(13),
.hex-grid > .hex:nth-child(14) {
    margin-top: calc(var(--hex-h) * -0.25 - var(--gap) * 0.5);
}

/* offset rows (2 and 4) shift right by half a cell width */
.hex-grid > .hex:nth-child(4),
.hex-grid > .hex:nth-child(5),
.hex-grid > .hex:nth-child(6) {
    transform: translateX(calc(var(--hex-w) * -0.25)) rotate(var(--cell-tilt, 0deg)) scale(var(--cell-scale, 1));
}

.hex-grid > .hex:nth-child(12),
.hex-grid > .hex:nth-child(13),
.hex-grid > .hex:nth-child(14) {
    transform: translateX(calc(var(--hex-w) * -0.25)) rotate(var(--cell-tilt, 0deg)) scale(var(--cell-scale, 1));
}

/* INDIVIDUAL HEX CELL */
.hex {
    width: var(--hex-w);
    height: var(--hex-h);
    position: relative;
    border: none;
    background: transparent;
    cursor: none;
    padding: 0;
    color: inherit;
    font: inherit;
    --cell-tilt: 0deg;
    --cell-scale: 1;
    transform: rotate(var(--cell-tilt)) scale(var(--cell-scale));
    transition: transform 600ms var(--ease-liturgical), filter 600ms var(--ease-liturgical);
    filter: drop-shadow(0 6px 18px rgba(42, 26, 46, 0.18));
    isolation: isolate;
}

/* clip-path: regular hexagon (pointy-top) */
.hex::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 228, 184, 0.32), rgba(255, 228, 184, 0.18) 60%, rgba(244, 184, 96, 0.22));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 0;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(139, 58, 79, 0.35);
}

.hex::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background:
        linear-gradient(135deg, transparent 60%, rgba(232, 122, 62, 0.18) 80%, rgba(200, 75, 92, 0.22)),
        repeating-linear-gradient(45deg, rgba(232, 122, 62, 0.04) 0 4px, transparent 4px 8px);
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.hex-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    padding: 24%;
}

.hex-caption {
    position: absolute;
    bottom: 18%;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--vesper-black);
    z-index: 3;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(255, 228, 184, 0.5);
}

.hex-worker .hex-caption {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--dusk-wine);
}

.hex-field .hex-caption {
    opacity: 0.7;
}

/* QUEEN CELL — center, larger, persimmon border */
.hex-queen {
    width: calc(var(--hex-w) * 1.25);
    height: calc(var(--hex-h) * 1.25);
    z-index: 5;
}

.hex-queen::before {
    background: linear-gradient(160deg, rgba(255, 228, 184, 0.55), rgba(244, 184, 96, 0.42) 60%, rgba(232, 122, 62, 0.42));
    border: 2.4px solid var(--persimmon);
    box-shadow:
        inset 0 0 0 1px rgba(255, 228, 184, 0.5),
        inset 0 0 24px rgba(232, 122, 62, 0.22);
}

.hex-queen .hex-svg {
    padding: 12%;
    width: 56%;
    height: 56%;
    inset: 6% auto auto 22%;
    opacity: 0.45;
}

.queen-shimmer {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255, 228, 184, 0.42) 30deg,
        transparent 90deg,
        rgba(244, 184, 96, 0.28) 200deg,
        transparent 280deg,
        rgba(232, 122, 62, 0.32) 340deg,
        transparent 360deg
    );
    animation: queen-shimmer 24s linear infinite;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes queen-shimmer {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.queen-text {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22% 18%;
    text-align: center;
}

.queen-date {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--dusk-wine);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.queen-headline {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    color: var(--persimmon);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    text-shadow: 1px 2px 0 rgba(42, 26, 46, 0.18);
}

.queen-fragment {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    color: var(--vesper-black);
    line-height: 1.4;
    max-width: 18ch;
}

/* hex breathing animation — slow random pulse */
.hex {
    animation: hex-breathe 6s var(--breathe-delay, 0s) ease-in-out infinite;
}

@keyframes hex-breathe {
    0%, 100% { transform: rotate(var(--cell-tilt, 0deg)) scale(var(--cell-scale, 1)); }
    50%      { transform: rotate(var(--cell-tilt, 0deg)) scale(calc(var(--cell-scale, 1) * 1.015)); }
}

/* row 2 / row 4 transforms must combine translateX with rotate+scale via the breathe animation
   We override with a more specific keyframe: */
.hex-grid > .hex:nth-child(4),
.hex-grid > .hex:nth-child(5),
.hex-grid > .hex:nth-child(6),
.hex-grid > .hex:nth-child(12),
.hex-grid > .hex:nth-child(13),
.hex-grid > .hex:nth-child(14) {
    animation-name: hex-breathe-offset;
}

@keyframes hex-breathe-offset {
    0%, 100% { transform: translateX(calc(var(--hex-w) * -0.25)) rotate(var(--cell-tilt, 0deg)) scale(var(--cell-scale, 1)); }
    50%      { transform: translateX(calc(var(--hex-w) * -0.25)) rotate(var(--cell-tilt, 0deg)) scale(calc(var(--cell-scale, 1) * 1.015)); }
}

.hex:hover {
    --cell-scale: 1.045;
    filter: drop-shadow(0 10px 28px rgba(42, 26, 46, 0.32));
    z-index: 6;
}

.hex:hover .hex-svg {
    transform: scale(1.05);
    transition: transform 800ms var(--ease-liturgical);
}

.hex:hover::before {
    background: linear-gradient(160deg, rgba(255, 228, 184, 0.5), rgba(244, 184, 96, 0.32) 60%, rgba(232, 122, 62, 0.36));
}

.comb-river-mark {
    margin-top: 80px;
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--lantern-cream);
    opacity: 0.75;
    letter-spacing: 0.02em;
    transform: rotate(-1deg);
}

/* ALMANAC SECTION */
.almanac {
    padding: 100px 24px 140px;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(42, 26, 46, 0.18) 30%, rgba(42, 26, 46, 0.42));
}

.almanac-heading {
    font-family: var(--font-secondary);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--lantern-cream);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-shadow: 2px 3px 0 rgba(42, 26, 46, 0.42);
}

.almanac-sub {
    font-family: var(--font-body);
    font-style: italic;
    text-align: center;
    color: var(--lantern-cream);
    margin-bottom: 64px;
    opacity: 0.82;
    font-size: 1.15rem;
}

.strip {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 0 auto 48px;
    max-width: 1100px;
    flex-wrap: wrap;
}

.strip-hex {
    width: 280px;
    height: 240px;
    position: relative;
    background: var(--lantern-cream);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    padding: 38px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateX(40px);
    opacity: 0;
    transition: transform 900ms var(--ease-liturgical), opacity 900ms var(--ease-liturgical);
    box-shadow: 0 12px 30px rgba(42, 26, 46, 0.3);
}

.strip.is-visible .strip-hex:nth-child(1) {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0ms;
}

.strip.is-visible .strip-hex:nth-child(2) {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 120ms;
}

.strip.is-visible .strip-hex:nth-child(3) {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 240ms;
}

.strip-hex:nth-child(2n) {
    transform: translateX(40px) rotate(-3deg);
}

.strip-hex:nth-child(3n) {
    transform: translateX(40px) rotate(2deg);
}

.strip.is-visible .strip-hex:nth-child(2n) {
    transform: translateX(0) rotate(-3deg);
}

.strip.is-visible .strip-hex:nth-child(3n) {
    transform: translateX(0) rotate(2deg);
}

.strip-date {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--persimmon);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.strip-fragment {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--vesper-black);
    line-height: 1.4;
    max-width: 18ch;
}

.closing-hex {
    margin: 100px auto 0;
    width: 280px;
    height: 240px;
    background: linear-gradient(160deg, var(--lantern-cream), var(--honey-amber) 80%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 14px 36px rgba(42, 26, 46, 0.42);
    position: relative;
}

.closing-line {
    font-family: var(--font-script);
    font-size: 2.4rem;
    color: var(--dusk-wine);
    margin-bottom: 12px;
    transform: rotate(-2deg);
}

.closing-bee {
    transform: translateY(4px) rotate(8deg);
    opacity: 0.85;
    animation: bee-drift 7.2s ease-in-out infinite;
}

@keyframes bee-drift {
    0%, 100% { transform: translate(0, 4px) rotate(8deg); }
    50%      { transform: translate(8px, -2px) rotate(-6deg); }
}

/* SLIDE-REVEAL PANELS */
.reveal-veil {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 184, 96, 0.55), rgba(61, 42, 78, 0.78));
    backdrop-filter: blur(2px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--reveal-duration) var(--ease-liturgical);
}

.reveal-veil.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: min(60vw, 720px);
    height: 100vh;
    background: var(--lantern-cream);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform var(--reveal-duration) var(--ease-liturgical);
    box-shadow: 18px 0 60px rgba(42, 26, 46, 0.45);
    overflow-y: auto;
    pointer-events: none;
}

.reveal.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.reveal.is-closing {
    animation: reveal-breath 360ms var(--ease-liturgical);
}

@keyframes reveal-breath {
    0%   { transform: translateX(0) scale(1); }
    50%  { transform: translateX(-1%) scale(0.98); }
    100% { transform: translateX(-100%) scale(1); }
}

.reveal-frame {
    padding: 64px 56px 72px;
    position: relative;
    border-right: 6px double var(--dusk-wine);
    min-height: 100%;
    background:
        radial-gradient(circle at 8% 8%, rgba(232, 122, 62, 0.08) 0, transparent 40%),
        radial-gradient(circle at 92% 92%, rgba(139, 58, 79, 0.1) 0, transparent 40%),
        var(--lantern-cream);
}

.reveal-frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-top: 2px solid var(--dusk-wine);
    border-bottom: 2px solid var(--dusk-wine);
    background-image:
        repeating-linear-gradient(90deg, var(--dusk-wine) 0 4px, transparent 4px 12px),
        repeating-linear-gradient(90deg, transparent 0 8px, var(--persimmon) 8px 10px, transparent 10px 18px);
    background-position: top, bottom;
    background-repeat: repeat-x;
    background-size: 12px 2px, 18px 2px;
    pointer-events: none;
}

.reveal-frame::after {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 28px;
    width: 6px;
    background-image:
        radial-gradient(circle, var(--persimmon) 1.4px, transparent 2px),
        radial-gradient(circle, var(--crushed-rose) 1.2px, transparent 1.8px);
    background-position: 0 0, 0 8px;
    background-size: 6px 16px;
    background-repeat: repeat-y;
    opacity: 0.7;
}

.reveal-head {
    margin-bottom: 36px;
    border-bottom: 1px dashed var(--dusk-wine);
    padding-bottom: 20px;
}

.reveal-date {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--persimmon);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    transform: rotate(-1deg);
    display: inline-block;
}

.reveal-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dusk-wine);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-shadow: 1px 2px 0 rgba(232, 122, 62, 0.18);
}

.reveal-body {
    color: var(--vesper-black);
}

.reveal-poem {
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 1.55;
    margin-bottom: 28px;
    color: var(--vesper-black);
    padding-left: 18px;
    border-left: 2px solid var(--persimmon);
}

.reveal-prose {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 28px;
    color: var(--vesper-black);
}

.reveal-prose .caveat {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--crushed-rose);
}

.reveal-sign {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--dusk-wine);
    text-align: right;
    margin-bottom: 36px;
    transform: rotate(-1deg);
}

.reveal-close {
    background: transparent;
    border: 1.4px solid var(--dusk-wine);
    color: var(--dusk-wine);
    padding: 14px 24px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: lowercase;
    cursor: none;
    transition: background var(--reveal-duration) var(--ease-liturgical), color var(--reveal-duration) var(--ease-liturgical);
}

.reveal-close:hover {
    background: var(--dusk-wine);
    color: var(--lantern-cream);
}

/* RESPONSIVE — collapse honeycomb gracefully on smaller viewports */
@media (max-width: 960px) {
    :root {
        --hex-w: 170px;
        --hex-h: 196px;
    }

    .hex-queen {
        width: calc(var(--hex-w) * 1.2);
        height: calc(var(--hex-h) * 1.2);
    }

    .reveal {
        width: 92vw;
    }

    .strip-hex {
        width: 240px;
        height: 210px;
    }
}

@media (max-width: 640px) {
    :root {
        --hex-w: 140px;
        --hex-h: 162px;
    }

    .hex-grid {
        grid-template-columns: repeat(3, var(--hex-w));
    }

    .hex-grid > .hex:nth-child(1) { grid-column: 1; grid-row: 1; }
    .hex-grid > .hex:nth-child(2) { grid-column: 2; grid-row: 1; }
    .hex-grid > .hex:nth-child(3) { grid-column: 3; grid-row: 1; }

    .hex-grid > .hex:nth-child(4),
    .hex-grid > .hex:nth-child(5),
    .hex-grid > .hex:nth-child(6),
    .hex-grid > .hex:nth-child(7) {
        display: none;
    }

    .hex-grid > .hex:nth-child(5) {
        display: flex;
        grid-column: 1 / span 3;
        grid-row: 2;
        margin: 0 auto;
        transform: none;
        animation: hex-breathe 6s ease-in-out infinite;
    }

    .hex-grid > .hex:nth-child(8) { grid-column: 1; grid-row: 3; }
    .hex-grid > .hex:nth-child(9) { grid-column: 2; grid-row: 3; }
    .hex-grid > .hex:nth-child(10) { grid-column: 3; grid-row: 3; }

    .hex-grid > .hex:nth-child(11),
    .hex-grid > .hex:nth-child(12),
    .hex-grid > .hex:nth-child(13),
    .hex-grid > .hex:nth-child(14) {
        display: none;
    }

    .reveal-frame {
        padding: 48px 32px 56px;
    }

    .strip-hex {
        width: 90%;
        max-width: 320px;
        height: 200px;
    }

    body {
        cursor: auto;
    }

    .cursor-honey,
    .narrative-river {
        display: none;
    }
}

/* touch-device cursor restoration */
@media (hover: none) {
    body {
        cursor: auto;
    }

    .hex,
    .reveal-close {
        cursor: pointer;
    }

    .cursor-honey,
    .narrative-river {
        display: none;
    }
}

/* reduced-motion — keep static (no accessibility focus styling per spec, but motion respects user preference) */
@media (prefers-reduced-motion: reduce) {
    .hex,
    .closing-bee,
    .queen-shimmer,
    .narrative-river::before {
        animation: none;
    }
}
