/* ==========================================================================
   bada.news -- Crystalline Retro-Futurist News Observatory
   Color Palette: Obsidian Void / Midnight Indigo / Prismatic Teal /
                  Refracted Amber / Facet Violet / Crystal White /
                  Quartz Gray / Signal Vermillion / Spectral Cyan /
                  Prism Rose / Carbon Slate / Fracture Silver
   Fonts: Space Mono, Orbitron, IBM Plex Mono, Advent Pro
   ========================================================================== */

/* --- CUSTOM PROPERTIES --- */
:root {
    --obsidian-void: #0B0D17;
    --midnight-indigo: #141829;
    --prismatic-teal: #00D4AA;
    --refracted-amber: #F0A830;
    --facet-violet: #8B5CF6;
    --crystal-white: #E8ECF4;
    --quartz-gray: #8892A8;
    --signal-vermillion: #FF3B5C;
    --spectral-cyan: #22D1EE;
    --prism-rose: #E8567A;
    --carbon-slate: #1E2235;
    --fracture-silver: #3A4260;

    --font-display: 'Space Mono', monospace;
    --font-secondary: 'Orbitron', sans-serif;
    --font-body: 'IBM Plex Mono', monospace;
    --font-accent: 'Advent Pro', sans-serif;

    --crystal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--obsidian-void);
    color: var(--crystal-white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.65;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVIGATION --- */
#crystal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 3rem;
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--fracture-silver);
    transition: all 0.4s var(--crystal-ease);
    overflow: hidden;
}

#crystal-nav:hover {
    height: auto;
    min-height: 3rem;
    background: rgba(20, 24, 41, 0.95);
}

.nav-collapsed {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 2rem;
    gap: 0.75rem;
    cursor: pointer;
}

.nav-crystal-icon {
    color: var(--prismatic-teal);
    font-size: 1.2rem;
    transition: transform 0.6s var(--crystal-ease);
}

#crystal-nav:hover .nav-crystal-icon {
    transform: rotate(90deg);
}

.nav-label {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--quartz-gray);
    text-transform: uppercase;
}

.nav-expanded {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 2rem 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s var(--crystal-ease), transform 0.4s var(--crystal-ease);
    pointer-events: none;
}

#crystal-nav:hover .nav-expanded {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-node {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    letter-spacing: 0.15em;
    color: var(--quartz-gray);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    background: rgba(58, 66, 96, 0.2);
    transition: background 0.3s var(--crystal-ease), color 0.3s var(--crystal-ease);
}

.nav-node:hover {
    background: rgba(0, 212, 170, 0.15);
    color: var(--prismatic-teal);
}

/* --- NEWS TICKERS --- */
.news-ticker {
    position: relative;
    height: 2rem;
    overflow: hidden;
    background: rgba(11, 13, 23, 0.6);
    border-top: 1px solid rgba(58, 66, 96, 0.3);
    border-bottom: 1px solid rgba(58, 66, 96, 0.3);
    z-index: 10;
}

.ticker-top {
    position: fixed;
    top: 3rem;
    left: 0;
    right: 0;
    z-index: 999;
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
}

.ticker-reverse {
    animation: tickerScrollReverse 55s linear infinite;
}

.ticker-content {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.65rem;
    color: var(--quartz-gray);
    letter-spacing: 0.08em;
    padding-right: 2rem;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes tickerScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- FACETS (SECTIONS) --- */
.facet {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* --- CRYSTAL SEAM DIVIDERS --- */
.crystal-seam {
    position: relative;
    height: 60px;
    z-index: 5;
}

.crystal-seam svg {
    width: 100%;
    height: 100%;
}

/* --- PRISMATIC LIGHT LEAKS --- */
.prismatic-leak {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.leak-intake {
    background: conic-gradient(
        from 45deg at 90% 10%,
        transparent 0deg,
        rgba(0, 212, 170, 0.06) 30deg,
        transparent 60deg,
        rgba(240, 168, 48, 0.04) 120deg,
        transparent 150deg,
        rgba(139, 92, 246, 0.05) 210deg,
        transparent 240deg
    );
}

.leak-refraction {
    background: conic-gradient(
        from 200deg at 10% 80%,
        transparent 0deg,
        rgba(240, 168, 48, 0.08) 40deg,
        transparent 80deg,
        rgba(34, 209, 238, 0.05) 160deg,
        transparent 200deg,
        rgba(232, 86, 122, 0.04) 280deg,
        transparent 320deg
    );
}

.leak-spectral {
    background: conic-gradient(
        from 120deg at 50% 50%,
        transparent 0deg,
        rgba(0, 212, 170, 0.05) 60deg,
        rgba(240, 168, 48, 0.05) 120deg,
        rgba(139, 92, 246, 0.05) 180deg,
        rgba(232, 86, 122, 0.04) 240deg,
        rgba(34, 209, 238, 0.04) 300deg,
        transparent 360deg
    );
    animation: hueRotateSpectral 30s linear infinite;
}

.leak-core {
    background: conic-gradient(
        from 0deg at 80% 20%,
        transparent 0deg,
        rgba(139, 92, 246, 0.06) 45deg,
        transparent 90deg,
        rgba(0, 212, 170, 0.04) 180deg,
        transparent 270deg
    );
}

.leak-deep {
    background: conic-gradient(
        from 270deg at 30% 70%,
        transparent 0deg,
        rgba(34, 209, 238, 0.07) 50deg,
        transparent 100deg,
        rgba(232, 86, 122, 0.05) 200deg,
        transparent 300deg
    );
}

@keyframes hueRotateSpectral {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* --- HEXAGONAL BACKGROUND PATTERN --- */
.hexagonal-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%233A4260' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%233A4260' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    pointer-events: none;
    z-index: 0;
}

/* --- DATA DUST PARTICLES --- */
.data-dust {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.dust-particle {
    position: absolute;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.6rem;
    color: var(--quartz-gray);
    opacity: 0.15;
    animation: dustFloat 20s linear infinite;
}

.dust-particle:nth-child(odd) {
    animation-duration: 25s;
    animation-direction: reverse;
}

.dust-particle:nth-child(3n) {
    animation-duration: 30s;
}

@keyframes dustFloat {
    0% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-10px, -40px); }
    75% { transform: translate(20px, -15px); }
    100% { transform: translate(0, 0); }
}

/* ======================================================================
   FACET 1: INTAKE SURFACE
   ====================================================================== */
.facet-intake {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--obsidian-void);
    padding-top: 5rem;
}

.crystal-scaffold {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(70vw, 500px);
    height: min(70vw, 500px);
    z-index: 1;
    opacity: 0;
}

.crystal-scaffold.visible {
    opacity: 1;
}

.fracture-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.2s var(--crystal-ease);
}

.crystal-scaffold.visible .fracture-line {
    stroke-dashoffset: 0;
}

.crystal-scaffold.visible .fl-1 { transition-delay: 0ms; }
.crystal-scaffold.visible .fl-2 { transition-delay: 100ms; }
.crystal-scaffold.visible .fl-3 { transition-delay: 200ms; }
.crystal-scaffold.visible .fl-4 { transition-delay: 300ms; }
.crystal-scaffold.visible .fl-5 { transition-delay: 400ms; }
.crystal-scaffold.visible .fl-6 { transition-delay: 500ms; }

.hex-scaffold {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.8s var(--crystal-ease) 0.6s;
}

.crystal-scaffold.visible .hex-scaffold {
    stroke-dashoffset: 0;
}

/* Identity */
.intake-identity {
    position: relative;
    z-index: 5;
    text-align: center;
}

.site-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--crystal-white);
}

.letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.15s var(--crystal-ease);
    transition-delay: calc(var(--i) * 80ms + 600ms);
}

.letter:nth-child(odd) {
    transform: rotate(1deg);
}

.letter:nth-child(even) {
    transform: rotate(-1deg);
}

.facet-intake.in-view .letter {
    opacity: 1;
}

.tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    letter-spacing: 0.2em;
    color: var(--quartz-gray);
    overflow: hidden;
}

.tagline .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.2s var(--crystal-ease);
}

.tagline .char.revealed {
    opacity: 0.3;
}

.tagline .char.resolved {
    opacity: 1;
}

/* ======================================================================
   FACET 2: FIRST REFRACTION
   ====================================================================== */
.facet-refraction {
    background-color: var(--midnight-indigo);
    clip-path: polygon(0 3%, 100% 0%, 100% 97%, 0 100%);
    padding: 8vh 0;
    margin-top: -4vh;
}

.refraction-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 4px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    min-height: 80vh;
    align-items: center;
}

/* Collage assembly */
.collage-assembly {
    grid-column: 1 / 11;
    position: relative;
    height: 60vh;
    min-height: 400px;
}

.collage-plane {
    position: absolute;
    width: 65%;
    height: 55%;
    overflow: hidden;
}

.plane-inner {
    width: 100%;
    height: 100%;
}

.plane-1 {
    top: 5%;
    left: 5%;
    clip-path: polygon(10% 0%, 95% 3%, 100% 85%, 5% 100%);
    transform: rotate(-2deg);
    z-index: 3;
}

.plane-1 .plane-inner {
    mix-blend-mode: screen;
}

.plane-2 {
    top: 15%;
    left: 20%;
    clip-path: polygon(5% 5%, 100% 0%, 90% 95%, 0% 100%);
    transform: rotate(3deg);
    z-index: 2;
}

.plane-2 .plane-inner {
    mix-blend-mode: color-dodge;
}

.plane-3 {
    top: 25%;
    left: 10%;
    clip-path: polygon(0% 8%, 92% 0%, 100% 90%, 8% 100%);
    transform: rotate(-1.5deg);
    z-index: 4;
}

.plane-3 .plane-inner {
    mix-blend-mode: multiply;
}

.plane-4 {
    top: 10%;
    left: 30%;
    clip-path: polygon(8% 0%, 100% 5%, 95% 100%, 0% 92%);
    transform: rotate(2.5deg);
    z-index: 1;
}

.plane-4 .plane-inner {
    mix-blend-mode: screen;
}

/* Headlines */
.headline-stack {
    grid-column: 11 / 17;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 5;
}

.headline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.crystal-bullet {
    color: var(--prismatic-teal);
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-top: 0.4em;
}

.headline-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.8vw, 1.4rem);
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--crystal-white);
}

.headline-visible {
    display: inline;
}

.headline-hidden {
    display: inline;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.4s ease-out, opacity 0.4s ease-out;
    vertical-align: bottom;
    white-space: nowrap;
}

.headline-item:hover .headline-hidden,
.headline-item.revealed .headline-hidden {
    max-width: 600px;
    opacity: 1;
}

/* ======================================================================
   FACET 3: SPECTRAL ANALYSIS
   ====================================================================== */
.facet-spectral {
    background-color: var(--obsidian-void);
    padding: 4vh 0;
}

.spectral-bands {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    justify-content: center;
}

.spectral-band {
    position: relative;
    height: 20vh;
    min-height: 120px;
    overflow: hidden;
}

.band-teal {
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.08), rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.05));
    border-top: 1px solid rgba(0, 212, 170, 0.2);
    border-bottom: 1px solid rgba(0, 212, 170, 0.1);
}

.band-amber {
    background: linear-gradient(90deg, rgba(240, 168, 48, 0.05), rgba(240, 168, 48, 0.12), rgba(240, 168, 48, 0.08));
    border-top: 1px solid rgba(240, 168, 48, 0.15);
    border-bottom: 1px solid rgba(240, 168, 48, 0.1);
}

.band-violet {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.06));
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.band-collage-strip {
    display: flex;
    gap: 2px;
    height: 100%;
    animation: stripScroll 40s linear infinite;
}

.band-teal .band-collage-strip {
    animation-duration: 45s;
}

.band-amber .band-collage-strip {
    animation-direction: reverse;
    animation-duration: 38s;
}

.band-violet .band-collage-strip {
    animation-duration: 50s;
}

.strip-fragment {
    flex-shrink: 0;
    width: 200px;
    height: 100%;
    clip-path: polygon(5% 0%, 100% 3%, 95% 100%, 0% 97%);
}

.band-teal .strip-fragment:nth-child(1) { background: linear-gradient(135deg, #00D4AA22, #0B0D17); }
.band-teal .strip-fragment:nth-child(2) { background: linear-gradient(225deg, #22D1EE22, #141829); }
.band-teal .strip-fragment:nth-child(3) { background: linear-gradient(45deg, #00D4AA33, #1E2235); }
.band-teal .strip-fragment:nth-child(4) { background: linear-gradient(315deg, #00D4AA15, #0B0D17); }
.band-teal .strip-fragment:nth-child(5) { background: linear-gradient(180deg, #22D1EE18, #141829); }
.band-teal .strip-fragment:nth-child(6) { background: linear-gradient(90deg, #00D4AA25, #0B0D17); }

.band-amber .strip-fragment:nth-child(1) { background: linear-gradient(135deg, #F0A83022, #0B0D17); }
.band-amber .strip-fragment:nth-child(2) { background: linear-gradient(225deg, #F0A83033, #141829); }
.band-amber .strip-fragment:nth-child(3) { background: linear-gradient(45deg, #F0A83018, #1E2235); }
.band-amber .strip-fragment:nth-child(4) { background: linear-gradient(315deg, #F0A83028, #0B0D17); }
.band-amber .strip-fragment:nth-child(5) { background: linear-gradient(180deg, #F0A83015, #141829); }
.band-amber .strip-fragment:nth-child(6) { background: linear-gradient(90deg, #F0A83020, #0B0D17); }

.band-violet .strip-fragment:nth-child(1) { background: linear-gradient(135deg, #8B5CF622, #0B0D17); }
.band-violet .strip-fragment:nth-child(2) { background: linear-gradient(225deg, #8B5CF633, #141829); }
.band-violet .strip-fragment:nth-child(3) { background: linear-gradient(45deg, #8B5CF618, #1E2235); }
.band-violet .strip-fragment:nth-child(4) { background: linear-gradient(315deg, #8B5CF628, #0B0D17); }
.band-violet .strip-fragment:nth-child(5) { background: linear-gradient(180deg, #8B5CF615, #141829); }
.band-violet .strip-fragment:nth-child(6) { background: linear-gradient(90deg, #8B5CF620, #0B0D17); }

@keyframes stripScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-600px); }
}

.band-fracture {
    position: relative;
    height: 40px;
}

.band-fracture svg {
    width: 100%;
    height: 100%;
}

/* Spectral pull quotes */
.spectral-quotes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.pull-quote {
    position: absolute;
    font-family: var(--font-accent);
    font-weight: 200;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--crystal-white);
    max-width: 500px;
    text-shadow: 0 0 40px rgba(11, 13, 23, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--crystal-ease), transform 0.6s var(--crystal-ease);
}

.pull-quote.visible {
    opacity: 0.9;
    transform: translateY(0);
}

.pq-1 {
    top: 10%;
    left: 8%;
}

.pq-2 {
    top: 45%;
    right: 8%;
    text-align: right;
    left: auto;
}

.pq-3 {
    bottom: 12%;
    left: 15%;
    top: auto;
}

/* ======================================================================
   FACET 4: CRYSTAL CORE
   ====================================================================== */
.facet-core {
    background-color: var(--carbon-slate);
    clip-path: polygon(0 2%, 100% 0%, 100% 98%, 0 100%);
    padding: 10vh 2rem;
    margin-top: -3vh;
}

.core-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 80vh;
    align-items: start;
    padding-top: 4rem;
}

/* Margin annotations */
.margin-annotations {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
}

.annotation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s var(--crystal-ease), transform 0.5s var(--crystal-ease);
}

.margin-right .annotation {
    transform: translateX(20px);
}

.annotation.visible {
    opacity: 1;
    transform: translateX(0);
}

.annotation-badge {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: clamp(0.55rem, 0.8vw, 0.7rem);
    letter-spacing: 0.15em;
    color: var(--prismatic-teal);
    padding: 0.3rem 0.8rem;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    white-space: nowrap;
}

.annotation-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--fracture-silver), transparent);
}

/* Core content */
.core-content {
    position: relative;
}

.core-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.15em;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: var(--crystal-white);
}

.core-text {
    margin-bottom: 1.8rem;
    color: var(--crystal-white);
    opacity: 0.88;
}

/* Core pull quote */
.core-pullquote-wrapper {
    position: relative;
    margin: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.crystal-formation {
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 200px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s var(--crystal-ease);
}

.crystal-formation.visible {
    opacity: 1;
}

.cf-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s var(--crystal-ease);
}

.crystal-formation.visible .cf-line {
    stroke-dashoffset: 0;
}

.crystal-formation.visible .cf-l1 { transition-delay: 0ms; }
.crystal-formation.visible .cf-l2 { transition-delay: 100ms; }
.crystal-formation.visible .cf-l3 { transition-delay: 200ms; }
.crystal-formation.visible .cf-l4 { transition-delay: 300ms; }
.crystal-formation.visible .cf-l5 { transition-delay: 400ms; }
.crystal-formation.visible .cf-l6 { transition-delay: 500ms; }

.cf-hex {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.5s var(--crystal-ease) 0.6s;
}

.crystal-formation.visible .cf-hex {
    stroke-dashoffset: 0;
}

.core-pullquote {
    position: relative;
    z-index: 2;
    font-family: var(--font-accent);
    font-weight: 200;
    font-size: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    color: var(--crystal-white);
    padding: 2rem;
    max-width: 600px;
}

/* ======================================================================
   FACET 5: DEEP REFRACTION
   ====================================================================== */
.facet-deep {
    background-color: var(--obsidian-void);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 2rem;
}

.deep-collage {
    position: relative;
    width: 80vw;
    max-width: 1000px;
    height: 70vh;
    min-height: 500px;
    z-index: 2;
}

.deep-plane {
    position: absolute;
    width: 40%;
    height: 45%;
    overflow: hidden;
    transition: transform 1s var(--crystal-ease), opacity 0.8s var(--crystal-ease);
}

.dp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    z-index: 1;
}

.dp-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.dp-label {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: clamp(0.55rem, 0.9vw, 0.75rem);
    letter-spacing: 0.2em;
    color: var(--crystal-white);
    opacity: 0;
    transition: opacity 0.5s var(--crystal-ease);
}

.deep-plane:hover .dp-label {
    opacity: 0.8;
}

/* Plane positions - compressed state (initial) */
.dp-1 {
    top: 25%;
    left: 28%;
    transform: rotate(-2deg);
    clip-path: polygon(8% 0%, 100% 4%, 92% 100%, 0% 96%);
    z-index: 5;
}

.dp-1 .dp-overlay { background-color: var(--prismatic-teal); }
.dp-1 { background: linear-gradient(135deg, #0B0D17, #141829, #00D4AA15); }

.dp-2 {
    top: 22%;
    left: 30%;
    transform: rotate(3deg);
    clip-path: polygon(5% 3%, 97% 0%, 100% 95%, 3% 100%);
    z-index: 4;
}

.dp-2 .dp-overlay { background-color: var(--refracted-amber); }
.dp-2 { background: linear-gradient(225deg, #0B0D17, #141829, #F0A83015); }

.dp-3 {
    top: 28%;
    left: 26%;
    transform: rotate(-3.5deg);
    clip-path: polygon(3% 5%, 100% 0%, 97% 98%, 0% 92%);
    z-index: 3;
}

.dp-3 .dp-overlay { background-color: var(--facet-violet); }
.dp-3 { background: linear-gradient(45deg, #0B0D17, #141829, #8B5CF615); }

.dp-4 {
    top: 24%;
    left: 32%;
    transform: rotate(2deg);
    clip-path: polygon(6% 0%, 100% 6%, 94% 100%, 0% 94%);
    z-index: 2;
}

.dp-4 .dp-overlay { background-color: var(--prism-rose); }
.dp-4 { background: linear-gradient(315deg, #0B0D17, #141829, #E8567A15); }

.dp-5 {
    top: 26%;
    left: 29%;
    transform: rotate(-1.5deg);
    clip-path: polygon(4% 2%, 98% 0%, 100% 97%, 2% 100%);
    z-index: 1;
}

.dp-5 .dp-overlay { background-color: var(--spectral-cyan); }
.dp-5 { background: linear-gradient(180deg, #0B0D17, #141829, #22D1EE15); }

/* Spread state */
.facet-deep.spread .dp-1 {
    top: 5%;
    left: 5%;
}

.facet-deep.spread .dp-2 {
    top: 10%;
    left: 55%;
}

.facet-deep.spread .dp-3 {
    top: 50%;
    left: 30%;
}

.facet-deep.spread .dp-4 {
    top: 45%;
    left: 0%;
}

.facet-deep.spread .dp-5 {
    top: 40%;
    left: 58%;
}

/* Intersection texts */
.intersection-texts {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.ix-text {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    letter-spacing: 0.15em;
    color: var(--crystal-white);
    opacity: 0;
    transition: opacity 0.6s var(--crystal-ease);
}

.facet-deep.spread .ix-text {
    opacity: 0.7;
}

.ix-1 { top: 35%; left: 25%; }
.ix-2 { top: 50%; left: 55%; }
.ix-3 { top: 25%; left: 45%; }
.ix-4 { top: 60%; left: 35%; }

/* ======================================================================
   FACET 6: EXIT FACET
   ====================================================================== */
.facet-exit {
    height: 100vh;
    background-color: var(--obsidian-void);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.exit-crystal-wrapper {
    position: relative;
    width: min(60vw, 400px);
    height: min(60vw, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.exit-crystal {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: crystalRotate 60s linear infinite;
}

@keyframes crystalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.exit-identity {
    position: relative;
    z-index: 5;
}

.exit-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.12em;
    color: var(--prismatic-teal);
    text-align: center;
}

.exit-fracture-line {
    width: 1px;
    height: 15vh;
    background: linear-gradient(to bottom, var(--prismatic-teal), transparent);
    margin: 2rem 0;
}

.exit-footer {
    text-align: center;
}

.footer-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--quartz-gray);
    margin-bottom: 0.5rem;
}

.footer-dim {
    opacity: 0.5;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1024px) {
    .refraction-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .collage-assembly {
        grid-column: 1 / -1;
        height: 40vh;
    }

    .headline-stack {
        grid-column: 1 / -1;
        padding: 0 1rem;
    }

    .core-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .margin-annotations {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .annotation {
        flex-direction: row;
        transform: translateY(20px);
    }

    .margin-right .annotation {
        transform: translateY(20px);
    }

    .annotation-line {
        width: 30px;
        height: 1px;
        background: linear-gradient(to right, var(--fracture-silver), transparent);
    }
}

@media (max-width: 768px) {
    .deep-plane {
        width: 55%;
        height: 35%;
    }

    .spectral-quotes .pull-quote {
        font-size: clamp(1rem, 4vw, 1.5rem);
        max-width: 90%;
    }

    .pq-2 {
        right: auto;
        left: 5%;
        text-align: left;
    }

    .nav-expanded {
        flex-direction: column;
    }

    .nav-node {
        clip-path: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .exit-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .core-heading {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
}
