/* ===================================================
   aiice.dev - Holographic Crystal Lattice
   Colors: #0a0014, #8b00ff, #00f0ff, #ff00c8, #e6ff00,
           #e8e0ff, #ff69b4, #1a0033
   Fonts: Orbitron, Exo 2, IBM Plex Mono
   =================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0014;
    color: #e8e0ff;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: 0.04em;
    overflow-x: hidden;
    min-height: 400vh;
}

/* ===================================================
   GRADIENT MESH NEBULAE (Layer 1)
   =================================================== */

.nebula {
    position: fixed;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
    border-radius: 50%;
}

.nebula-1 {
    width: 700px;
    height: 700px;
    top: -10%;
    left: -5%;
    background:
        radial-gradient(ellipse at 30% 40%, #8b00ff 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, #00f0ff 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #ff00c8 0%, transparent 70%);
    opacity: 0.4;
    animation: nebula-drift-1 8s ease-in-out infinite alternate;
}

.nebula-2 {
    width: 600px;
    height: 600px;
    top: 40%;
    right: -10%;
    background:
        radial-gradient(ellipse at 40% 30%, #ff00c8 0%, transparent 55%),
        radial-gradient(ellipse at 60% 70%, #8b00ff 0%, transparent 65%),
        radial-gradient(ellipse at 30% 60%, #e6ff00 0%, transparent 50%);
    opacity: 0.3;
    animation: nebula-drift-2 12s ease-in-out infinite alternate;
}

.nebula-3 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: 30%;
    background:
        radial-gradient(ellipse at 50% 30%, #00f0ff 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, #ff69b4 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, #8b00ff 0%, transparent 55%);
    opacity: 0.35;
    animation: nebula-drift-3 20s ease-in-out infinite alternate;
}

@keyframes nebula-drift-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes nebula-drift-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 30px) scale(1.05); }
}

@keyframes nebula-drift-3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -50px) scale(1.08); }
}

/* ===================================================
   MICRO-CRYSTAL PARTICLES (Layer 3)
   =================================================== */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.micro-crystal {
    position: absolute;
    bottom: -20px;
    transform: rotate(45deg);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 6px rgba(139, 0, 255, 0.3);
    animation: float-crystal linear infinite;
}

@keyframes float-crystal {
    0% {
        transform: rotate(45deg) translateY(0) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: var(--crystal-opacity, 0.3);
    }
    50% {
        transform: rotate(45deg) translateY(-50vh) translateX(20px);
    }
    95% {
        opacity: var(--crystal-opacity, 0.3);
    }
    100% {
        transform: rotate(45deg) translateY(-110vh) translateX(-15px);
        opacity: 0;
    }
}

/* ===================================================
   CRYSTALLINE WIREFRAMES (Layer 2)
   =================================================== */

.wireframe {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.wireframe-hex {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.2);
    animation: wireframe-rotate linear infinite;
}

.wireframe-hex::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.wireframe-diamond {
    clip-path: polygon(50% 0%, 95% 40%, 70% 100%, 5% 65%);
    border: 1px solid rgba(139, 0, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    animation: wireframe-rotate-reverse linear infinite;
}

.wireframe-diamond::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 95% 40%, 70% 100%, 5% 65%);
    border: 1px solid rgba(139, 0, 255, 0.12);
}

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

@keyframes wireframe-rotate-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* ===================================================
   HOLOGRAPHIC TEXT EFFECT
   =================================================== */

.holographic-text {
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 4s ease-in-out infinite;
}

@keyframes holographic-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================================
   CHAMBERS (Layer 4)
   =================================================== */

.chamber {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 2;
    overflow: hidden;
}

/* ===================================================
   CHAMBER 1: HERO / EMERGENCE
   =================================================== */

#chamber-1 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5vw;
}

.crystal-hero {
    position: relative;
    display: flex;
    gap: 0;
    transform: translateX(5vw) translateY(-5vh);
}

.crystal-face {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.crystal-face-left {
    clip-path: polygon(10% 0%, 100% 5%, 95% 100%, 0% 90%);
    width: clamp(200px, 45vw, 550px);
    height: clamp(200px, 40vh, 450px);
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.15), rgba(0, 240, 255, 0.1));
    border: none;
}

.crystal-face-right {
    clip-path: polygon(0% 5%, 90% 0%, 100% 95%, 5% 100%);
    width: clamp(140px, 25vw, 300px);
    height: clamp(200px, 40vh, 450px);
    background: linear-gradient(225deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 200, 0.08));
    margin-left: -2vw;
    transform: perspective(800px) rotateY(-8deg);
}

.crystal-face-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(139, 0, 255, 0.2),
        rgba(0, 240, 255, 0.15),
        rgba(255, 0, 200, 0.1),
        rgba(230, 255, 0, 0.05));
    background-size: 400% 400%;
    animation: crystal-gradient-shift 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes crystal-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.crystal-face::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(0, 240, 255, 0.1) 50%,
        rgba(139, 0, 255, 0.06) 60%,
        transparent 80%);
    background-size: 200% 200%;
    z-index: 5;
    pointer-events: none;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    line-height: 1;
}

.hero-dev {
    font-size: clamp(2rem, 5vw, 4.5rem);
}

/* Chromatic aberration on hero */
.hero-title .char {
    display: inline-block;
    position: relative;
}

/* Kinetic crystallization animation for chars */
.char {
    display: inline-block;
    transform: scaleX(0.05);
    opacity: 0;
    animation: crystallize 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.char:nth-child(1) { animation-delay: 0.3s; }
.char:nth-child(2) { animation-delay: 0.34s; }
.char:nth-child(3) { animation-delay: 0.38s; }
.char:nth-child(4) { animation-delay: 0.42s; }
.char:nth-child(5) { animation-delay: 0.46s; }
.char:nth-child(6) { animation-delay: 0.5s; }
.char:nth-child(7) { animation-delay: 0.54s; }
.char:nth-child(8) { animation-delay: 0.58s; }
.char:nth-child(9) { animation-delay: 0.62s; }

@keyframes crystallize {
    0% {
        transform: scaleX(0.05);
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Chamber visible state for scroll-triggered animations */
.chamber.visible .char {
    animation: crystallize 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chamber.exiting .char {
    animation: decrystallize 500ms ease-in forwards;
}

@keyframes decrystallize {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0.05);
        opacity: 0;
    }
}

/* Hero micro-crystals in void space */
.hero-micro-crystals {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 50%;
}

.hero-micro {
    position: absolute;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 10px rgba(139, 0, 255, 0.2);
    animation: hero-micro-float 6s ease-in-out infinite alternate;
}

.hero-micro:nth-child(2) { animation-delay: -1s; animation-duration: 8s; width: 7px; height: 7px; }
.hero-micro:nth-child(3) { animation-delay: -2s; animation-duration: 5s; width: 12px; height: 12px; }
.hero-micro:nth-child(4) { animation-delay: -3s; animation-duration: 7s; width: 6px; height: 6px; }
.hero-micro:nth-child(5) { animation-delay: -4s; animation-duration: 9s; width: 8px; height: 8px; }

@keyframes hero-micro-float {
    0% { transform: rotate(45deg) translate(0, 0); opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { transform: rotate(45deg) translate(10px, -15px); opacity: 0.2; }
}

/* ===================================================
   TRANSITION ZONES
   =================================================== */

.transition-zone {
    position: relative;
    height: 20vh;
    z-index: 2;
    pointer-events: none;
}

.transition-1-2 {
    background: linear-gradient(to bottom,
        transparent,
        rgba(139, 0, 255, 0.08) 30%,
        rgba(0, 240, 255, 0.06) 60%,
        transparent);
    mix-blend-mode: screen;
}

.transition-2-3 {
    background: linear-gradient(to bottom,
        transparent,
        rgba(255, 0, 200, 0.06) 40%,
        rgba(139, 0, 255, 0.08) 70%,
        transparent);
    mix-blend-mode: screen;
}

.transition-3-4 {
    background: linear-gradient(to bottom,
        transparent,
        rgba(0, 240, 255, 0.06) 30%,
        rgba(230, 255, 0, 0.04) 60%,
        transparent);
    mix-blend-mode: screen;
}

/* ===================================================
   CHAMBER 2: MANIFESTO / PHILOSOPHY
   =================================================== */

#chamber-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
}

.manifesto-split {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.manifesto-gradient-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.2), rgba(0, 240, 255, 0.15));
    background-size: 200% 200%;
    animation: manifesto-gradient 10s ease-in-out infinite alternate;
}

@keyframes manifesto-gradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.manifesto-dark-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
    background: #0a0014;
}

.manifesto-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: clamp(280px, 50vw, 600px);
    z-index: 3;
}

.manifesto-content .chamber-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 4s ease-in-out infinite;
    margin-bottom: 3rem;
    text-align: center;
}

.manifesto-pane {
    position: relative;
    background: rgba(26, 0, 51, 0.6);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    clip-path: polygon(2% 0%, 100% 3%, 98% 100%, 0% 97%);
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.1);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease;
}

.manifesto-pane::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.04) 40%,
        rgba(0, 240, 255, 0.06) 50%,
        rgba(139, 0, 255, 0.04) 60%,
        transparent 80%);
    background-size: 200% 200%;
    pointer-events: none;
    z-index: 5;
}

.manifesto-pane:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 40px rgba(139, 0, 255, 0.4), 0 0 80px rgba(0, 240, 255, 0.2);
}

.manifesto-pane p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    line-height: 1.85;
    color: #e8e0ff;
    letter-spacing: 0.04em;
}

.manifesto-pane-2 {
    margin-left: 2rem;
    clip-path: polygon(0% 2%, 97% 0%, 100% 98%, 3% 100%);
}

.manifesto-pane-3 {
    margin-left: -1rem;
    clip-path: polygon(3% 0%, 100% 4%, 96% 100%, 0% 96%);
}

/* Chromatic aberration on panes */
.manifesto-pane-1 { border-color: rgba(0, 240, 255, 0.2); }
.manifesto-pane-2 { border-color: rgba(255, 0, 200, 0.2); }
.manifesto-pane-3 { border-color: rgba(139, 0, 255, 0.2); }

/* ===================================================
   CHAMBER 3: CAPABILITIES / FACETS
   =================================================== */

#chamber-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    position: relative;
}

.shard {
    position: absolute;
    background: rgba(26, 0, 51, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.2);
    padding: 2rem;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 600ms ease-out;
    overflow: hidden;
}

.shard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(139, 0, 255, 0.1),
        rgba(0, 240, 255, 0.05),
        rgba(255, 0, 200, 0.05));
    background-size: 400% 400%;
    animation: shard-gradient 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes shard-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.shard-foil {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(0, 240, 255, 0.1) 50%,
        rgba(139, 0, 255, 0.06) 60%,
        transparent 80%);
    background-size: 200% 200%;
    z-index: 5;
    pointer-events: none;
    transition: background-size 400ms ease;
}

.shard:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 40px rgba(139, 0, 255, 0.5), 0 0 80px rgba(0, 240, 255, 0.25);
}

.shard:hover .shard-foil {
    background-size: 300% 300%;
}

.shard-large {
    clip-path: polygon(5% 0%, 98% 8%, 100% 95%, 8% 100%, 0% 60%);
    width: clamp(280px, 55vw, 700px);
    height: clamp(250px, 45vh, 500px);
    bottom: 10%;
    left: 5%;
    padding: 3rem;
}

.shard-medium {
    clip-path: polygon(0% 5%, 95% 0%, 100% 92%, 8% 100%);
    width: clamp(200px, 30vw, 380px);
    height: clamp(200px, 35vh, 380px);
    top: 10%;
    right: 8%;
    padding: 2rem;
}

.shard-small {
    clip-path: polygon(8% 0%, 100% 10%, 92% 100%, 0% 88%);
    width: clamp(150px, 18vw, 240px);
    height: clamp(150px, 25vh, 260px);
    top: 40%;
    right: 30%;
    padding: 1.5rem;
}

.shard .chamber-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 4s ease-in-out infinite;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.shard-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 4s ease-in-out infinite;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.shard-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #e8e0ff;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 2;
}

/* ===================================================
   CHAMBER 4: SIGNAL / RESONANCE
   =================================================== */

#chamber-4 {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    padding: 5vh 0;
}

.signal-column {
    position: relative;
    width: 33%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: rgba(26, 0, 51, 0.3);
    clip-path: polygon(0% 0%, 90% 3%, 100% 50%, 88% 97%, 0% 100%);
    z-index: 2;
}

.signal-column .chamber-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 4s ease-in-out infinite;
    margin-bottom: 2rem;
}

.signal-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    line-height: 1.85;
    color: #e8e0ff;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.signal-node {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    cursor: pointer;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.3), rgba(0, 240, 255, 0.2));
    box-shadow: 0 0 30px rgba(139, 0, 255, 0.3);
    animation: signal-pulse 3s ease-in-out infinite;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signal-node:hover {
    transform: scale(1.1);
}

.signal-node-text {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: #e8e0ff;
    letter-spacing: 0.15em;
    text-align: center;
}

@keyframes signal-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(139, 0, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(139, 0, 255, 0.5), 0 0 100px rgba(0, 240, 255, 0.25);
    }
}

.signal-mesh-field {
    position: relative;
    width: 67%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 40% 30%, rgba(139, 0, 255, 0.12), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 240, 255, 0.08), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 0, 200, 0.06), transparent 55%);
    background-size: 300% 300%;
    animation: signal-mesh-animate 15s ease-in-out infinite alternate;
}

@keyframes signal-mesh-animate {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.crystal-wireframe-shape {
    position: absolute;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.15);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 30%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: wireframe-rotate 40s linear infinite;
}

.shape-2 {
    width: 150px;
    height: 250px;
    top: 50%;
    left: 60%;
    clip-path: polygon(50% 0%, 95% 35%, 80% 100%, 10% 70%);
    animation: wireframe-rotate-reverse 50s linear infinite;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 70%;
    clip-path: polygon(30% 0%, 100% 20%, 70% 100%, 0% 80%);
    animation: wireframe-rotate 35s linear infinite;
    animation-delay: -10s;
}

/* ===================================================
   HOVER-LIFT SIGNATURE INTERACTION
   =================================================== */

.shard,
.manifesto-pane {
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shard:not(:hover),
.manifesto-pane:not(:hover) {
    transition: transform 600ms ease-out,
                box-shadow 800ms ease-out;
}

/* ===================================================
   CHROMATIC ABERRATION
   =================================================== */

.hero-title {
    text-shadow: none;
}

#hero-text .char::before,
#hero-text .char::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 4s ease-in-out infinite;
    pointer-events: none;
}

#hero-text .char::before {
    transform: translate(-1.5px, 0.5px);
    opacity: 0.4;
    filter: hue-rotate(-30deg);
    mix-blend-mode: screen;
}

#hero-text .char::after {
    transform: translate(1.5px, -0.5px);
    opacity: 0.4;
    filter: hue-rotate(30deg);
    mix-blend-mode: screen;
}

/* ===================================================
   RESPONSIVE ADJUSTMENTS
   =================================================== */

@media (max-width: 768px) {
    .crystal-hero {
        flex-direction: column;
        transform: translateX(0) translateY(0);
        align-items: center;
    }

    .crystal-face-right {
        margin-left: 0;
        margin-top: -2vh;
        transform: perspective(800px) rotateY(-4deg);
    }

    #chamber-1 {
        justify-content: center;
        padding-right: 0;
    }

    .manifesto-content {
        width: 85vw;
        transform: translate(-50%, -50%) rotate(-1deg);
    }

    .manifesto-pane-2 {
        margin-left: 0.5rem;
    }

    .manifesto-pane-3 {
        margin-left: 0;
    }

    .shard-large {
        position: relative;
        width: 90vw;
        height: auto;
        bottom: auto;
        left: auto;
        margin-bottom: 2rem;
    }

    .shard-medium {
        position: relative;
        width: 85vw;
        height: auto;
        top: auto;
        right: auto;
        margin-bottom: 2rem;
    }

    .shard-small {
        position: relative;
        width: 80vw;
        height: auto;
        top: auto;
        right: auto;
    }

    #chamber-3 {
        flex-direction: column;
        padding: 3rem 5vw;
    }

    #chamber-4 {
        flex-direction: column;
    }

    .signal-column {
        width: 100%;
        clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
        padding: 3rem 2rem;
    }

    .signal-mesh-field {
        width: 100%;
        min-height: 50vh;
    }

    .nebula-1 { width: 400px; height: 400px; }
    .nebula-2 { width: 350px; height: 350px; }
    .nebula-3 { width: 300px; height: 300px; }
}
