/* ============================================================
   CCATTL.com — The Curator's Console
   Memphis + Sci-Fi HUD + Luxurious + Broken-Grid
   ============================================================ */

:root {
    /* === Palette (exact hex from DESIGN.md) === */
    --pearl-marble: #F4EFE6;
    --titanium-slate: #2B2D33;
    --titanium-deep: #3A3D45;
    --brushed-pewter: #5C616B;
    --sherbet-pink: #FFB4C2;
    --saffron-pulse: #FFC857;
    --mint-vapor: #9CE7D4;
    --plasma-violet: #7B5BE6;
    --console-cyan: #3BD4F0;

    /* === Gradient signatures === */
    --aurora-console: linear-gradient(112deg, #7B5BE6 0%, #3BD4F0 38%, #9CE7D4 70%, #FFC857 100%);
    --sherbet-marble: radial-gradient(circle at 30% 20%, #FFB4C2 0%, #F4EFE6 55%);
    --titanium-mist: linear-gradient(180deg, #2B2D33 0%, #3A3D45 100%);

    /* === Type === */
    --font-display: "Commissioner", "Inter", system-ui, sans-serif;
    --font-body: "Fraunces", "Lora", Georgia, serif;
    --font-mono: "JetBrains Mono", "Space Mono", ui-monospace, monospace;
    --font-memphis: "Sniglet", "Poppins", system-ui, sans-serif;

    /* === Rhythm === */
    --gutter: clamp(16px, 3vw, 48px);
    --measure: 38ch;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--pearl-marble);
    color: var(--titanium-slate);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: default;
}

/* Section base */
section { position: relative; padding: var(--gutter); }

/* ============================================================
   Frame Counter (persistent top-left)
   ============================================================ */
.frame-counter {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 80;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brushed-pewter);
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    background: rgba(244, 239, 230, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(92, 97, 107, 0.25);
    border-radius: 2px;
    transition: color 0.6s ease;
}
.frame-counter .fc-sep { opacity: 0.4; }
.frame-counter .fc-frame { color: var(--titanium-slate); font-weight: 700; }

/* ============================================================
   Cursor ring (only over console cards)
   ============================================================ */
.cursor-ring {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--plasma-violet);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 200;
    mix-blend-mode: multiply;
}
.cursor-ring.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   1. OVERTURE — 100vh
   ============================================================ */
.overture {
    min-height: 100vh;
    padding: 8vh var(--gutter) 6vh;
    position: relative;
    overflow: hidden;
}
.overture-grid {
    position: relative;
    width: 100%;
    height: 84vh;
    min-height: 560px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
}

.overture-monogram {
    grid-column: 2 / span 9;
    grid-row: 4 / span 4;
    position: relative;
    font-family: var(--font-display);
    font-weight: 800;
    font-variation-settings: "opsz" 144;
    font-size: clamp(96px, 14vw, 220px);
    line-height: 0.88;
    letter-spacing: -0.02em;
    color: var(--titanium-slate);
    z-index: 2;
    overflow: hidden;
}
.overture-monogram .mono-cc { color: var(--titanium-slate); }
.overture-monogram .mono-attl {
    background: var(--aurora-console);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: auroraShift 45s ease-in-out infinite;
}
@keyframes auroraShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.aurora-sweep {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 80%;
    background: var(--aurora-console);
    filter: blur(80px);
    opacity: 0.18;
    z-index: -1;
    animation: sweepDrift 45s ease-in-out infinite;
}
@keyframes sweepDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20%, 10%); }
}

.overture-squiggle {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
    width: 100%;
    height: auto;
    align-self: start;
    justify-self: end;
    max-width: 280px;
}
.overture-squiggle path#squigglePath {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawPath 1.2s ease-out 0.3s forwards;
}
@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.telemetry-corner {
    grid-column: 1 / span 4;
    grid-row: 8 / span 1;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brushed-pewter);
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tel-row { display: flex; gap: 10px; align-items: center; }
.tel-key { opacity: 0.7; min-width: 64px; }
.tel-val { color: var(--titanium-slate); font-weight: 700; }
.live-roundel {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sherbet-pink);
    box-shadow: 0 0 0 0 rgba(255, 180, 194, 0.7);
    animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 180, 194, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(255, 180, 194, 0);
    }
}

.overture-orbit {
    grid-column: 10 / span 3;
    grid-row: 5 / span 3;
    width: 100%;
    max-width: 320px;
    align-self: center;
    justify-self: end;
    animation: orbitRotate 60s linear infinite;
    opacity: 0.8;
}
@keyframes orbitRotate {
    to { transform: rotate(360deg); }
}

.overture-instrument {
    width: 60px;
    height: 60px;
}
.overture-instrument svg { width: 100%; height: 100%; }
.inst-a { grid-column: 1 / span 1; grid-row: 2 / span 1; }
.inst-b { grid-column: 12 / span 1; grid-row: 8 / span 1; justify-self: end; }

.overture-deck {
    grid-column: 2 / span 6;
    grid-row: 3 / span 1;
    font-family: var(--font-display);
    font-weight: 200;
    font-style: italic;
    font-size: 14px;
    font-variation-settings: "opsz" 14;
    letter-spacing: 0.08em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    align-self: end;
}

.scroll-enter {
    grid-column: 6 / span 3;
    grid-row: 8 / span 1;
    align-self: end;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    animation: scrollNudge 2.4s ease-in-out infinite;
}
.scroll-chevron { width: 20px; height: 14px; }
@keyframes scrollNudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================================
   2. COUNCIL — broken grid, passage + drifting specimen
   ============================================================ */
.council {
    min-height: 90vh;
    padding: 8vh var(--gutter);
}
.council-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}
.council-passage {
    grid-column: 2 / span 7;
    position: relative;
    padding: 30px 12px;
}
.bracket-top, .bracket-bot {
    position: absolute;
    width: 44px;
    height: 32px;
}
.bracket-top { top: 0; left: -16px; }
.bracket-bot { bottom: 0; right: -16px; }
.bracket-top svg, .bracket-bot svg { width: 100%; height: 100%; }

.council-headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-variation-settings: "opsz" 24;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--titanium-slate);
    margin-bottom: 22px;
    max-width: 30ch;
}
.council-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: var(--titanium-deep);
    max-width: var(--measure);
    margin-bottom: 14px;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.council-specimen {
    grid-column: 10 / span 3;
    width: 180px;
    height: 180px;
    justify-self: end;
    position: relative;
    animation: specimenFloat 6s ease-in-out infinite;
}
.council-specimen svg { width: 100%; height: 100%; }
.specimen-caption {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: var(--brushed-pewter);
    text-align: center;
    text-transform: uppercase;
}
@keyframes specimenFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================================
   3. GALLERY PROMENADE — broken-grid staggered cascade
   ============================================================ */
.gallery {
    min-height: 240vh;
    padding: 10vh var(--gutter) 8vh;
    position: relative;
}
.gallery-header {
    max-width: 1280px;
    margin: 0 auto 50px;
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
}
.gallery-eyebrow, .gallery-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    font-weight: 500;
}
.gallery-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-variation-settings: "opsz" 24;
    font-size: clamp(28px, 3.2vw, 44px);
    color: var(--titanium-slate);
    letter-spacing: -0.005em;
}

.gallery-cascade {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    position: relative;
}

/* Console card — notched L-shape, dashed top, hover-lift signature */
.console-card {
    position: relative;
    background: var(--pearl-marble);
    border: 1px solid var(--titanium-slate);
    /* notched corners: 16px on three, 0 on top-right diagonal pair */
    border-radius: 16px 0 16px 16px;
    padding: 24px 26px 28px;
    transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 320ms ease,
                border-color 320ms ease;
    overflow: hidden;
    cursor: pointer;
}

/* Dashed segment along the top edge — HUD fingerprint */
.console-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    width: 80px;
    height: 0;
    border-top: 2px dashed var(--brushed-pewter);
    pointer-events: none;
}

/* Hover-lift: 12px lift + cyan-violet rim-light */
.console-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 6px 0 0 rgba(123, 91, 230, 0),
                0 18px 30px -10px rgba(43, 45, 51, 0.18);
    border-color: var(--titanium-slate);
}
.console-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px 0 16px 16px;
    background: var(--aurora-console);
    opacity: 0;
    z-index: -1;
    filter: blur(6px);
    transition: opacity 320ms ease;
}
.console-card:hover::after { opacity: 0.7; }

/* corner-notch flip — rotate the rounded corners via mask */
.console-card:hover {
    border-radius: 0 16px 16px 0;
}

/* squiggle inside card animates on hover (path draw-in) */
.console-card .cc-squiggle {
    stroke-dasharray: 300;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.console-card:hover .cc-squiggle {
    stroke-dashoffset: 300;
    animation: squiggleDraw 800ms ease-out forwards;
}
@keyframes squiggleDraw {
    0% { stroke-dashoffset: 300; }
    100% { stroke-dashoffset: 0; }
}

.cc-bezel {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 220px;
    margin-bottom: 18px;
}
.cc-bezel svg { width: 100%; height: 100%; display: block; }
.cc-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 12px;
}
.cc-index {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    font-weight: 500;
}
.cc-tag {
    font-family: var(--font-memphis);
    font-weight: 800;
    font-size: 13px;
    color: var(--plasma-violet);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.cc-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    color: var(--titanium-slate);
    margin-bottom: 10px;
    font-variation-settings: "opsz" 24;
}
.cc-desc {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--titanium-deep);
    max-width: 30ch;
}

/* Broken-grid staggered cascade — seven cards, each in its own column rhythm */
.cc-slot-1 { grid-column: 2 / span 4; margin-top: 0; }
.cc-slot-2 { grid-column: 8 / span 4; margin-top: 80px; }
.cc-slot-3 { grid-column: 3 / span 5; margin-top: 60px; }
.cc-slot-4 { grid-column: 9 / span 3; margin-top: 100px; }
.cc-slot-5 { grid-column: 2 / span 3; margin-top: 80px; }
.cc-slot-6 { grid-column: 6 / span 4; margin-top: 60px; }
.cc-slot-7 { grid-column: 10 / span 3; margin-top: 120px; }

/* IO reveal */
.console-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 280ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 320ms ease, border-color 320ms ease, border-radius 320ms ease;
}
.console-card.is-in {
    opacity: 1;
    transform: translateY(0);
}
.console-card.is-in:hover {
    transform: translateY(-12px);
}

/* ============================================================
   4. SPECIMEN DRAWER — horizontally drifting strip
   ============================================================ */
.drawer {
    min-height: 100vh;
    padding: 8vh 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, var(--pearl-marble) 0%, #ECE5D7 100%);
}
.drawer-bezel {
    position: absolute;
    top: 12vh;
    left: 4vw;
    right: 4vw;
    bottom: 12vh;
    border: 2px solid var(--brushed-pewter);
    border-top: 2px dashed var(--brushed-pewter);
    pointer-events: none;
    z-index: 5;
}
.bezel-label {
    position: absolute;
    top: -16px;
    left: 24px;
    padding: 4px 12px;
    background: var(--pearl-marble);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--titanium-slate);
    font-weight: 700;
    text-transform: uppercase;
}
.bezel-tick {
    position: absolute;
    top: 50%;
    right: -1px;
    width: 14px;
    height: 1px;
    background: var(--brushed-pewter);
}
.drawer-track {
    width: 100%;
    height: 76vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 4vw;
}
.drawer-row {
    display: flex;
    gap: 28px;
    will-change: transform;
}

.artifact-card {
    flex-shrink: 0;
    width: 200px;
    padding: 14px;
    background: var(--pearl-marble);
    border: 1px solid var(--titanium-slate);
    border-radius: 12px 0 12px 12px;
    text-align: center;
}
.artifact-card svg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    margin-bottom: 10px;
}
.art-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.art-name {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--titanium-slate);
    font-weight: 500;
}

/* ============================================================
   5. THE CONFIDENTIAL BRIEF
   ============================================================ */
.brief {
    min-height: 110vh;
    padding: 14vh var(--gutter);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brief-marble {
    position: absolute;
    inset: 0;
    background: var(--sherbet-marble);
    opacity: 0.06;
    transition: background-position 200ms linear;
    pointer-events: none;
}
.brief-bracket {
    width: 220px;
    max-width: 80%;
    height: 36px;
    position: relative;
    z-index: 2;
}
.brief-bracket svg { width: 100%; height: 100%; }
.brief-bracket-top { margin-bottom: 30px; }
.brief-bracket-bot { margin-top: 30px; }

.brief-column {
    width: 100%;
    max-width: 38ch;
    position: relative;
    z-index: 2;
}
.brief-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18.5px;
    line-height: 1.7;
    color: var(--titanium-slate);
    margin-bottom: 22px;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.brief-dropcap {
    float: left;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 88px;
    line-height: 0.85;
    color: var(--plasma-violet);
    padding: 4px 14px 0 0;
    font-variation-settings: "opsz" 144;
}

/* ============================================================
   6. ASCENDING CONFETTI
   ============================================================ */
.confetti {
    min-height: 110vh;
    padding: 14vh var(--gutter);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--pearl-marble) 0%, #F8F3EA 50%, var(--pearl-marble) 100%);
}
.confetti-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cf {
    position: absolute;
    bottom: -80px;
    left: var(--cf-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: cfRise var(--cf-d) linear var(--cf-delay) infinite;
}
.cf svg { width: 40px; height: 40px; display: block; }
.cf-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--pearl-marble);
    padding: 2px 5px;
    border: 0.5px solid var(--brushed-pewter);
}
.cf-dot svg, .cf-round svg { width: 28px; height: 28px; }
.cf-squig svg { width: 50px; height: 20px; }

@keyframes cfRise {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.95; }
    92%  { opacity: 0.95; }
    100% { transform: translateY(-130vh) rotate(20deg); opacity: 0; }
}

.confetti-headline {
    position: relative;
    z-index: 4;
    text-align: center;
    margin-top: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.cf-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    font-weight: 500;
}
.cf-text {
    font-family: var(--font-display);
    font-weight: 500;
    font-variation-settings: "opsz" 24;
    font-size: clamp(34px, 5vw, 64px);
    color: var(--titanium-slate);
    letter-spacing: -0.01em;
    background: var(--pearl-marble);
    padding: 6px 20px;
}

/* ============================================================
   7. COLOPHON
   ============================================================ */
.colophon {
    min-height: 80vh;
    padding: 10vh var(--gutter) 4vh;
    background: var(--pearl-marble);
}
.colophon-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}
.col-tile {
    position: relative;
    border: 1px solid var(--titanium-slate);
    border-radius: 12px 0 12px 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.col-tile svg { width: 100%; height: 100%; display: block; }
.col-caption {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    background: var(--pearl-marble);
    padding: 3px 7px;
    color: var(--titanium-slate);
    font-weight: 700;
}
.col-tile-1 { grid-column: 1 / span 3; grid-row: 1 / span 2; }
.col-tile-2 { grid-column: 4 / span 3; grid-row: 2 / span 2; }
.col-tile-3 { grid-column: 7 / span 3; grid-row: 1 / span 2; }
.col-tile-4 { grid-column: 10 / span 3; grid-row: 2 / span 2; }

.totem {
    grid-column: 8 / span 5;
    grid-row: 3 / span 2;
    justify-self: end;
    align-self: end;
    width: 220px;
    text-align: center;
}
.totem svg { width: 100%; height: auto; }
.totem-caption {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
}

.imprint {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px dashed var(--brushed-pewter);
    display: flex;
    gap: 14px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--brushed-pewter);
    text-transform: uppercase;
    flex-wrap: wrap;
}
.imp-domain { color: var(--titanium-slate); font-weight: 700; }
.imp-sep { opacity: 0.4; }
.imp-orbit {
    width: 24px;
    height: 24px;
    margin-left: auto;
    animation: orbitRotate 30s linear infinite;
}

/* ============================================================
   Floating Command Roundel
   ============================================================ */
.roundel {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 100;
    width: 56px;
    height: 56px;
}
.roundel-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--titanium-mist);
    border: 1px solid var(--brushed-pewter);
    color: var(--pearl-marble);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 280ms ease;
    box-shadow: 0 6px 16px -4px rgba(43, 45, 51, 0.4);
}
.roundel-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px -4px rgba(123, 91, 230, 0.5);
}
.roundel-orbit {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 64px;
    height: 64px;
    animation: orbitRotate 60s linear infinite;
}
.roundel-glyph {
    position: relative;
    z-index: 2;
}

.roundel-fan {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 240px;
    height: 240px;
    pointer-events: none;
}
.fan-sector {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 80px;
    height: 32px;
    border-radius: 16px 0 16px 16px;
    background: var(--pearl-marble);
    border: 1px solid var(--titanium-slate);
    color: var(--titanium-slate);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
    transition: opacity 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
                background 220ms ease,
                color 220ms ease;
    pointer-events: none;
}
.fan-sector:hover {
    background: var(--plasma-violet);
    color: var(--pearl-marble);
}

.roundel.is-open .fan-sector {
    opacity: 1;
    pointer-events: auto;
}
.roundel.is-open .fan-s1 { transform: translate(-110px, 0) scale(1); transition-delay: 60ms; }
.roundel.is-open .fan-s2 { transform: translate(-95px, -55px) scale(1); transition-delay: 90ms; }
.roundel.is-open .fan-s3 { transform: translate(-58px, -100px) scale(1); transition-delay: 120ms; }
.roundel.is-open .fan-s4 { transform: translate(0, -130px) scale(1); transition-delay: 150ms; }
.roundel.is-open .fan-s5 { transform: translate(60px, -110px) scale(1); transition-delay: 180ms; }

/* ============================================================
   IntersectionObserver reveals
   ============================================================ */
.io-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 280ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.io-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .overture-monogram { grid-column: 1 / span 12; grid-row: 3 / span 4; }
    .overture-orbit { display: none; }
    .overture-squiggle { grid-column: 7 / span 6; }
    .overture-deck { grid-column: 1 / span 12; }
    .scroll-enter { grid-column: 1 / span 12; }
    .telemetry-corner { grid-column: 1 / span 12; }

    .council-passage { grid-column: 1 / span 12; }
    .council-specimen { grid-column: 1 / span 12; justify-self: center; margin-top: 30px; }

    .cc-slot-1, .cc-slot-2, .cc-slot-3, .cc-slot-4,
    .cc-slot-5, .cc-slot-6, .cc-slot-7 {
        grid-column: 1 / span 12;
        margin-top: 30px;
    }

    .colophon-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .col-tile-1, .col-tile-2, .col-tile-3, .col-tile-4 {
        grid-column: auto; grid-row: auto;
    }
    .totem { grid-column: 1 / span 2; grid-row: auto; justify-self: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .console-card:hover { transform: translateY(-1px); }
    .cf { display: none; }
}
