/* ============================================================
   diplomacy.quest — Cold-War Honeycomb Command Table
   Compliance vocabulary: Space Grotesk" Lora" IBM Plex Mono" (Google Fonts; IntersectionObserver` fallback for scroll-triggered animations. No external dependencies except Google Fonts. The entire grid sits on a plane transformed with `perspective(1200px; oversized Space Grotesk at 30-50vw size evoke clean diplomatic signage.
   ============================================================ */

@property --hex-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

:root {
    /* Palette per DESIGN.md */
    --c-midnight: #2d0a18;     /* Diplomatic Midnight */
    --c-burgundy: #6b1d3a;     /* Treaty Burgundy */
    --c-cognac:   #c4956a;     /* Cognac Brass */
    --c-parchment:#f2e1cc;     /* Parchment Cream */
    --c-blackout: #1a0a12;     /* Blackout Plum */
    --c-mauve:    #8a5a6a;     /* Muted Mauve */
    --c-gold:     #d4a855;     /* Seal Gold */
    --c-claret:   #3d1525;     /* Deep Claret */
    --c-shadow:   #0d0509;     /* Shadow Black */
    --c-line:     #4a2030;     /* Grid Line */

    --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --f-body:    'Lora', Georgia, 'Times New Roman', serif;
    --f-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

    --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

    --grid-step: 60px;
    --iso-tilt: 50deg;

    color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-midnight);
    color: var(--c-parchment);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.72;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107, 29, 58, 0.28), transparent 70%),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(196, 149, 106, 0.06), transparent 70%),
        radial-gradient(ellipse 60% 40% at 10% 70%, rgba(212, 168, 85, 0.05), transparent 70%),
        var(--c-midnight);
}

/* ----------------------------------------------------------------
   Triangular grid overlay (60° tessellation drafting marks)
   ---------------------------------------------------------------- */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(74, 32, 48, 0.40) 0px,
            rgba(74, 32, 48, 0.40) 1px,
            transparent 1px,
            transparent var(--grid-step)),
        repeating-linear-gradient(60deg,
            rgba(74, 32, 48, 0.40) 0px,
            rgba(74, 32, 48, 0.40) 1px,
            transparent 1px,
            transparent var(--grid-step)),
        repeating-linear-gradient(-60deg,
            rgba(74, 32, 48, 0.40) 0px,
            rgba(74, 32, 48, 0.40) 1px,
            transparent 1px,
            transparent var(--grid-step));
    mix-blend-mode: screen;
    opacity: 0.65;
}

.grid-pulse {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        repeating-linear-gradient(60deg,
            rgba(212, 168, 85, 0.18) 0px,
            rgba(212, 168, 85, 0.18) 1px,
            transparent 1px,
            transparent calc(var(--grid-step) * 4)),
        repeating-linear-gradient(-60deg,
            rgba(196, 149, 106, 0.14) 0px,
            rgba(196, 149, 106, 0.14) 1px,
            transparent 1px,
            transparent calc(var(--grid-step) * 4));
    background-size: 800px 800px, 800px 800px;
    mix-blend-mode: screen;
    animation: gridPulse 11s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { background-position: 0 0, 0 0; opacity: 0.35; }
    50%      { background-position: 800px 400px, -800px 400px; opacity: 0.7; }
}

/* ----------------------------------------------------------------
   Site chrome (top header)
   ---------------------------------------------------------------- */
.site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px clamp(20px, 4vw, 56px);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-mauve);
    background: linear-gradient(180deg, rgba(13, 5, 9, 0.85), rgba(13, 5, 9, 0));
    backdrop-filter: blur(2px);
}

.chrome-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.seal-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--c-burgundy);
    color: var(--c-gold);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    clip-path: var(--hex-clip);
    box-shadow: inset 0 0 0 1px var(--c-gold);
}

.chrome-title {
    color: var(--c-parchment);
    letter-spacing: 0.22em;
}

.chrome-coords {
    display: flex;
    gap: 14px;
    align-items: center;
}

.coord-divider { color: var(--c-line); }

/* ----------------------------------------------------------------
   HERO — full-viewport isometric command table
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    min-height: 200vh;
    z-index: 5;
}

.hero-frame {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    perspective: 1600px;
}

.hero-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iso-plane {
    --tilt: 50deg;
    --rotate: 45deg;
    position: relative;
    width: 1500px;
    height: 1100px;
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt)) rotateZ(var(--rotate)) translateZ(-40px);
    transition: transform 0.05s linear;
    will-change: transform;
}

.iso-grid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: -14px;
    padding: 80px;
}

.hex-row {
    display: flex;
    gap: 14px;
    margin-top: -38px;
}
.hex-row:first-child { margin-top: 0; }
.hex-row-b, .hex-row-d { padding-left: 70px; }
.hex-row-c { padding-left: 0; }
.hex-row-e { padding-left: 70px; }

/* Hexagon cells (parent) */
.hex-cell {
    position: relative;
    width: 140px;
    aspect-ratio: 1 / 0.866;
    flex-shrink: 0;
    --d: 0;
}

/* The animated conic-gradient border (outer) */
.hex-skin {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: var(--hex-clip);
    background:
        conic-gradient(from var(--hex-angle, 0deg),
            var(--c-burgundy) 0deg,
            var(--c-gold) 90deg,
            var(--c-cognac) 180deg,
            var(--c-burgundy) 270deg,
            var(--c-burgundy) 360deg);
    animation: hexSpin 9s linear infinite;
    animation-delay: calc(var(--d, 0) * -0.6s);
    isolation: isolate;
}

.hex-skin::before {
    /* drop shadow under the hex (long isometric shadow) */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-shadow);
    transform: translate(8px, 12px);
    opacity: 0.4;
    clip-path: var(--hex-clip);
    filter: blur(2px);
}

/* Inner face — slightly inset to expose the conic border */
.hex-face {
    position: absolute;
    inset: 2px;
    clip-path: var(--hex-clip);
    background:
        radial-gradient(ellipse 90% 60% at 50% 35%, rgba(107, 29, 58, 0.45), transparent 70%),
        linear-gradient(160deg, var(--c-claret) 0%, var(--c-midnight) 100%);
    color: var(--c-parchment);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    overflow: hidden;
}

.hex-skin.hex-active .hex-face {
    background:
        radial-gradient(ellipse 90% 60% at 50% 40%, rgba(212, 168, 85, 0.35), transparent 75%),
        linear-gradient(160deg, var(--c-burgundy), var(--c-claret));
}

.hex-skin.hex-warm .hex-face {
    background:
        radial-gradient(ellipse 80% 60% at 50% 35%, rgba(196, 149, 106, 0.30), transparent 70%),
        linear-gradient(160deg, #4a1f31, var(--c-midnight));
}

.hex-skin.hex-iso .hex-face {
    background: linear-gradient(180deg, var(--c-blackout), var(--c-midnight));
}

@keyframes hexSpin {
    from { --hex-angle: 0deg; }
    to   { --hex-angle: 360deg; }
}

/* Fallback for browsers w/o @property: still rotate the gradient via background-position trick */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .hex-skin { background: linear-gradient(135deg, var(--c-burgundy), var(--c-gold), var(--c-cognac), var(--c-burgundy)); }
}

/* Hex content typography for hero */
.hex-word {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(0.7rem, 1.05vw, 0.95rem);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--c-parchment);
    line-height: 1.1;
}
.hex-skin.hex-active .hex-word {
    color: var(--c-parchment);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.1vw, 1rem);
    text-shadow: 0 0 14px rgba(212, 168, 85, 0.55);
}
.hex-skin.hex-warm .hex-word {
    color: var(--c-cognac);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.hex-coord {
    display: block;
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: var(--c-mauve);
    text-transform: uppercase;
}

/* Giant typographic D / Q fragments behind the hero grid */
.iso-typo {
    position: absolute;
    font-family: var(--f-display);
    font-weight: 700;
    color: rgba(74, 32, 48, 0.25);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.iso-typo-d {
    font-size: 38vw;
    top: -10%;
    left: -8%;
}
.iso-typo-q {
    font-size: 32vw;
    bottom: -8%;
    right: -6%;
    color: rgba(212, 168, 85, 0.10);
}

/* Hero overlay text (sits over isometric stage) */
.hero-overlay {
    position: absolute;
    z-index: 10;
    bottom: clamp(40px, 8vh, 100px);
    left: clamp(24px, 6vw, 80px);
    right: clamp(24px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 720px;
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-cognac);
    margin: 0 0 18px;
}

.hero-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--c-parchment);
    margin: 0 0 18px;
    text-shadow: 0 2px 30px rgba(13, 5, 9, 0.8);
}

.hero-lede {
    font-family: var(--f-body);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.7;
    color: rgba(242, 225, 204, 0.82);
    margin: 0 0 28px;
    max-width: 560px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 34px;
}

.meta-tag {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-mauve);
    padding: 6px 12px;
    border: 1px solid var(--c-line);
    background: rgba(13, 5, 9, 0.4);
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.hero-scrolltip {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-cognac);
    margin: 0;
    animation: bobble 2.6s ease-in-out infinite;
}

@keyframes bobble {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50%      { transform: translateY(4px); opacity: 1; }
}

/* ----------------------------------------------------------------
   CORRIDOR — horizontal scrolling diplomatic communiqué
   ---------------------------------------------------------------- */
.corridor {
    position: relative;
    z-index: 6;
    background: var(--c-blackout);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    overflow: hidden;
    padding: 18px 0;
}

.corridor-track {
    display: flex;
    width: max-content;
    animation: marquee 80s linear infinite;
}
.corridor-track.corridor-rev {
    animation-direction: reverse;
    animation-duration: 96s;
}

.corridor-strip {
    flex: 0 0 auto;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-mauve);
    white-space: nowrap;
    padding-right: 60px;
}
.corridor-strip span {
    display: inline-block;
    padding: 0 40px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   CLUSTER sections (honeycomb content)
   ---------------------------------------------------------------- */
.cluster {
    position: relative;
    z-index: 6;
    padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 80px) clamp(80px, 12vh, 160px);
    max-width: 1480px;
    margin: 0 auto;
}

.cluster-header {
    max-width: 720px;
    margin: 0 0 60px;
}

.cluster-tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-cognac);
    margin-bottom: 14px;
    padding: 4px 10px;
    border: 1px solid var(--c-burgundy);
    background: rgba(107, 29, 58, 0.18);
}

.cluster-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.01em;
    line-height: 1.05;
    color: var(--c-parchment);
    margin: 0 0 14px;
}

.cluster-sub {
    font-family: var(--f-body);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: rgba(242, 225, 204, 0.72);
    margin: 0;
    line-height: 1.65;
    max-width: 600px;
}

/* Honeycomb tessellations */
.honeycomb {
    position: relative;
    display: grid;
    gap: 18px 14px;
}

/* Honeycomb tri-cluster (3 lg + 3 sm) */
.honeycomb-tri {
    grid-template-columns: repeat(6, 1fr);
}
.honeycomb-tri .hex-cell:nth-child(1) { grid-column: 1 / span 3; grid-row: 1 / span 2; }
.honeycomb-tri .hex-cell:nth-child(2) { grid-column: 4 / span 2; grid-row: 1; transform: translateX(-20px); }
.honeycomb-tri .hex-cell:nth-child(3) { grid-column: 4 / span 2; grid-row: 2; transform: translate(0, -30px); }
.honeycomb-tri .hex-cell:nth-child(4) { grid-column: 6 / span 1; grid-row: 1; transform: translate(-30px, 30px); }
.honeycomb-tri .hex-cell:nth-child(5) { grid-column: 6 / span 1; grid-row: 2; transform: translate(-30px, 0); }
.honeycomb-tri .hex-cell:nth-child(6) { grid-column: 6 / span 1; grid-row: 2; transform: translate(-30px, 90px); }

/* Honeycomb seven-cluster */
.honeycomb-seven {
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(220px, auto);
}
.honeycomb-seven .hex-cell:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
.honeycomb-seven .hex-cell:nth-child(2) { grid-column: 3 / span 3; grid-row: 1 / span 2; transform: translateX(-30px); }
.honeycomb-seven .hex-cell:nth-child(3) { grid-column: 6 / span 2; grid-row: 1; transform: translateX(-50px); }
.honeycomb-seven .hex-cell:nth-child(4) { grid-column: 1 / span 2; grid-row: 2; transform: translate(40px, -30px); }
.honeycomb-seven .hex-cell:nth-child(5) { grid-column: 6 / span 1; grid-row: 2; transform: translate(-30px, -30px); }
.honeycomb-seven .hex-cell:nth-child(6) { grid-column: 7 / span 1; grid-row: 2; transform: translate(-30px, 30px); }
.honeycomb-seven .hex-cell:nth-child(7) { grid-column: 4 / span 2; grid-row: 3; transform: translate(0, -50px); }

/* Honeycomb five-cluster */
.honeycomb-five {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(220px, auto);
}
.honeycomb-five .hex-cell:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
.honeycomb-five .hex-cell:nth-child(2) { grid-column: 3 / span 3; grid-row: 1 / span 2; transform: translateX(-20px); }
.honeycomb-five .hex-cell:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; transform: translate(40px, -30px); }
.honeycomb-five .hex-cell:nth-child(4) { grid-column: 5 / span 1; grid-row: 1; transform: translate(-50px, 60px); }
.honeycomb-five .hex-cell:nth-child(5) { grid-column: 5 / span 1; grid-row: 2; transform: translate(-50px, 30px); }

/* Sized hex variants (override base 140px from hero) */
.hex-cell.hex-lg { width: 100%; max-width: 460px; aspect-ratio: 1 / 0.866; }
.hex-cell.hex-md { width: 100%; max-width: 320px; aspect-ratio: 1 / 0.866; }
.hex-cell.hex-sm { width: 100%; max-width: 220px; aspect-ratio: 1 / 0.866; }

/* Cluster-section hex cells override hero-grid sizing */
.cluster .hex-cell {
    width: auto;
    aspect-ratio: 1 / 0.866;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
    opacity: 0.6;
    transform-origin: center;
}
.cluster .hex-cell.in-view {
    opacity: 1;
}
.cluster .hex-cell:not(.in-view) .hex-skin {
    transform: scale(0.85);
    transform-origin: center;
}
.cluster .hex-cell .hex-skin {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cluster .hex-face {
    padding: clamp(20px, 2.6vw, 40px);
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.hex-headline {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: var(--c-parchment);
    margin: 6px 0 4px;
}

.hex-body {
    font-family: var(--f-body);
    font-size: clamp(0.9rem, 1.05vw, 1.02rem);
    line-height: 1.68;
    color: rgba(242, 225, 204, 0.82);
    margin: 0 0 4px;
}

.hex-meta {
    margin-top: auto;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-mauve);
}

.hex-microhead {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--c-cognac);
    margin: 4px 0;
    text-transform: uppercase;
}

.hex-micro {
    font-family: var(--f-body);
    font-style: italic;
    font-size: 0.86rem;
    color: rgba(242, 225, 204, 0.78);
    margin: 0;
    line-height: 1.5;
}

.cluster .hex-cell .hex-coord {
    margin-top: 0;
    text-align: left;
    align-self: flex-start;
}

/* Isometric block illustrations inside hex cells */
.iso-block {
    width: 70%;
    height: 70%;
    max-width: 130px;
    max-height: 130px;
    transform-style: preserve-3d;
    margin: auto;
    position: relative;
}
.iso-block-a {
    background:
        linear-gradient(135deg, var(--c-burgundy) 0%, var(--c-claret) 100%);
    transform: rotateX(55deg) rotateZ(45deg);
    box-shadow:
        0 -6px 0 var(--c-burgundy),
        -6px 0 0 var(--c-claret),
        -8px 8px 0 var(--c-shadow),
        inset 0 0 0 1px var(--c-cognac);
}
.iso-block-b {
    background: linear-gradient(135deg, var(--c-cognac), var(--c-burgundy));
    transform: rotateX(55deg) rotateZ(45deg);
    width: 50%;
    height: 50%;
    box-shadow:
        0 -10px 0 var(--c-cognac),
        -10px 0 0 var(--c-claret),
        -12px 12px 0 var(--c-shadow);
}
.iso-block-tower {
    background: linear-gradient(180deg, var(--c-gold), var(--c-burgundy));
    transform: rotateX(55deg) rotateZ(45deg);
    width: 45%; height: 90%;
    box-shadow:
        0 -8px 0 var(--c-gold),
        -8px 0 0 var(--c-burgundy),
        -10px 10px 0 var(--c-shadow);
}
.iso-block-step {
    background: linear-gradient(90deg, var(--c-claret), var(--c-burgundy));
    transform: rotateX(55deg) rotateZ(45deg);
    width: 80%; height: 25%;
    box-shadow:
        0 -6px 0 var(--c-burgundy),
        -6px 0 0 var(--c-cognac),
        -10px 10px 0 var(--c-shadow);
}
.iso-block-arch {
    background:
        radial-gradient(circle at 50% 100%, transparent 30%, var(--c-burgundy) 31%, var(--c-claret) 100%);
    transform: rotateX(55deg) rotateZ(45deg);
    width: 80%; height: 80%;
    box-shadow:
        -8px 8px 0 var(--c-shadow),
        inset 0 0 0 1px var(--c-gold);
}

/* ----------------------------------------------------------------
   TREATY CHAMBER — finale
   ---------------------------------------------------------------- */
.chamber {
    position: relative;
    z-index: 7;
    padding: clamp(80px, 14vh, 180px) 20px clamp(80px, 14vh, 180px);
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(107, 29, 58, 0.35), transparent 70%),
        var(--c-blackout);
    overflow: hidden;
}

.chamber-frame {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.chamber-eyebrow {
    margin-bottom: 40px;
}

.chamber-orbit {
    position: relative;
    width: 100%;
    height: clamp(640px, 90vh, 880px);
    margin: 0 auto;
    animation: orbit 60s linear infinite;
    transform-style: preserve-3d;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.chamber-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(360px, 36vw, 500px);
    aspect-ratio: 1 / 0.866;
    /* Counter-rotate so the core hex stays still while orbit rotates */
    animation: orbitCounter 60s linear infinite;
}

@keyframes orbitCounter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.hex-core {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 0.866;
}

.hex-core-skin {
    background:
        conic-gradient(from var(--hex-angle, 0deg),
            var(--c-burgundy) 0deg,
            var(--c-gold) 60deg,
            var(--c-cognac) 120deg,
            var(--c-gold) 180deg,
            var(--c-burgundy) 240deg,
            var(--c-cognac) 300deg,
            var(--c-burgundy) 360deg);
    animation: hexSpin 4.5s linear infinite;
}

.hex-core-skin .hex-face {
    inset: 4px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 35%, rgba(212, 168, 85, 0.30), transparent 75%),
        linear-gradient(160deg, var(--c-burgundy), var(--c-midnight) 80%);
    padding: clamp(20px, 4vw, 50px);
    gap: 14px;
}

.chamber-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.05;
    color: var(--c-parchment);
    margin: 0;
    letter-spacing: -0.005em;
}

.chamber-body {
    font-family: var(--f-body);
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    color: rgba(242, 225, 204, 0.78);
    line-height: 1.65;
    margin: 6px 0 0;
    max-width: 60%;
    text-align: center;
}

.chamber-seal {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-cognac);
    margin-top: 6px;
}

/* Six satellites */
.chamber-sat {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    aspect-ratio: 1 / 0.866;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
    animation: orbitCounter 60s linear infinite;
}

/* Position with trig: 6 hexes around a 320px radius */
.sat-0 { transform: translate(-50%, -50%) translate(0, -320px); }
.sat-1 { transform: translate(-50%, -50%) translate(277px, -160px); }
.sat-2 { transform: translate(-50%, -50%) translate(277px, 160px); }
.sat-3 { transform: translate(-50%, -50%) translate(0, 320px); }
.sat-4 { transform: translate(-50%, -50%) translate(-277px, 160px); }
.sat-5 { transform: translate(-50%, -50%) translate(-277px, -160px); }

@keyframes orbitCounter0 { from { transform: translate(-50%, -50%) translate(0, -320px) rotate(0deg);     } to { transform: translate(-50%, -50%) translate(0, -320px) rotate(-360deg);     } }
@keyframes orbitCounter1 { from { transform: translate(-50%, -50%) translate(277px, -160px) rotate(0deg); } to { transform: translate(-50%, -50%) translate(277px, -160px) rotate(-360deg); } }
@keyframes orbitCounter2 { from { transform: translate(-50%, -50%) translate(277px, 160px) rotate(0deg);  } to { transform: translate(-50%, -50%) translate(277px, 160px) rotate(-360deg);  } }
@keyframes orbitCounter3 { from { transform: translate(-50%, -50%) translate(0, 320px) rotate(0deg);      } to { transform: translate(-50%, -50%) translate(0, 320px) rotate(-360deg);      } }
@keyframes orbitCounter4 { from { transform: translate(-50%, -50%) translate(-277px, 160px) rotate(0deg); } to { transform: translate(-50%, -50%) translate(-277px, 160px) rotate(-360deg); } }
@keyframes orbitCounter5 { from { transform: translate(-50%, -50%) translate(-277px, -160px) rotate(0deg);} to { transform: translate(-50%, -50%) translate(-277px, -160px) rotate(-360deg);} }

.sat-0 { animation: orbitCounter0 60s linear infinite; }
.sat-1 { animation: orbitCounter1 60s linear infinite; }
.sat-2 { animation: orbitCounter2 60s linear infinite; }
.sat-3 { animation: orbitCounter3 60s linear infinite; }
.sat-4 { animation: orbitCounter4 60s linear infinite; }
.sat-5 { animation: orbitCounter5 60s linear infinite; }

.chamber-sat:hover {
    z-index: 5;
}

.hex-sat {
    background:
        conic-gradient(from var(--hex-angle, 0deg),
            var(--c-burgundy) 0deg,
            var(--c-cognac) 90deg,
            var(--c-gold) 180deg,
            var(--c-cognac) 270deg,
            var(--c-burgundy) 360deg);
    animation: hexSpin 7s linear infinite;
    width: 100%;
    height: 100%;
}

.hex-sat .hex-face {
    inset: 2px;
    background:
        radial-gradient(circle at 50% 30%, rgba(196, 149, 106, 0.22), transparent 70%),
        linear-gradient(160deg, var(--c-claret), var(--c-midnight));
    padding: 12px;
    gap: 4px;
    transition: background 0.35s ease;
}

.chamber-sat:hover .hex-face {
    background:
        radial-gradient(circle at 50% 30%, rgba(212, 168, 85, 0.45), transparent 70%),
        linear-gradient(160deg, var(--c-burgundy), var(--c-claret));
}

.sat-label {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--c-parchment);
    line-height: 1.15;
    margin-top: 2px;
}

.sat-sub {
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-cognac);
}

.chamber-foot {
    margin: 60px auto 0;
    max-width: 520px;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-mauve);
    line-height: 1.8;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1100px) {
    .iso-plane {
        width: 1100px;
        height: 800px;
        transform: rotateX(45deg) rotateZ(45deg);
    }
    .hex-cell { width: 110px; }
    .iso-typo-d { font-size: 50vw; }

    .honeycomb-tri,
    .honeycomb-seven,
    .honeycomb-five {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .honeycomb-tri .hex-cell,
    .honeycomb-seven .hex-cell,
    .honeycomb-five .hex-cell {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .site-chrome { padding: 14px 18px; font-size: 0.6rem; }
    .chrome-coords .coord { display: none; }
    .chrome-coords .coord-divider { display: none; }
    .chrome-coords::before {
        content: "EYES ONLY · 0049";
        color: var(--c-mauve);
    }

    .iso-plane {
        width: 760px;
        height: 600px;
        transform: rotateX(40deg) rotateZ(45deg);
    }
    .hex-cell { width: 80px; }

    .hero-overlay {
        bottom: 24px;
        left: 18px;
        right: 18px;
    }
    .hero-title { font-size: 1.6rem; }

    .honeycomb-tri,
    .honeycomb-seven,
    .honeycomb-five {
        grid-template-columns: 1fr;
    }

    /* Collapse satellite ring to two-column stack on mobile */
    .chamber-orbit { animation: none; height: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
    .chamber-core,
    .chamber-sat {
        position: static;
        transform: none !important;
        animation: none;
        width: min(80vw, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hex-skin,
    .hex-core-skin,
    .hex-sat,
    .corridor-track,
    .grid-pulse,
    .chamber-orbit,
    .chamber-core,
    .chamber-sat,
    .hero-scrolltip {
        animation: none !important;
    }
}
