*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
body{background:#0A0A0F;color:#C4C9D4;font-family:'Lora',serif;font-weight:400;font-size:clamp(1rem,1.2vw,1.2rem);line-height:1.75;letter-spacing:0.01em;overflow-x:hidden}

/* Particle layer */
.particle-layer{position:fixed;inset:0;z-index:10;pointer-events:none;overflow:hidden}
.spore{position:absolute;pointer-events:none;animation:sporeDrift var(--dur,40s) linear infinite}
.spore-tri{width:0;height:0;border-left:var(--sz,3px) solid transparent;border-right:var(--sz,3px) solid transparent;border-bottom:calc(var(--sz,3px) * 1.7) solid var(--c,#39FF14);opacity:var(--op,0.08)}
.spore-diamond{width:var(--sz,4px);height:var(--sz,4px);background:var(--c,#FF00FF);transform:rotate(45deg);opacity:var(--op,0.06)}

@keyframes sporeDrift{0%{transform:translate(0,0) rotate(0deg)}25%{transform:translate(var(--dx1,30px),var(--dy1,-50px)) rotate(90deg)}50%{transform:translate(var(--dx2,-20px),var(--dy2,-100px)) rotate(180deg)}75%{transform:translate(var(--dx3,40px),var(--dy3,-150px)) rotate(270deg)}100%{transform:translate(0,0) rotate(360deg)}}

/* Background depth layer */
.bg-depth{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.bg-hex{position:absolute}
.bg-hex-1{width:250px;top:10%;left:15%}
.bg-hex-2{width:350px;top:40%;right:10%}
.bg-hex-3{width:280px;bottom:15%;left:50%}

/* Navigation glyphs */
.glyph-nav{position:fixed;bottom:clamp(16px,4vw,40px);right:clamp(16px,4vw,40px);z-index:50;display:flex;flex-direction:column;gap:12px}
.glyph{width:28px;height:28px;background:none;border:none;cursor:pointer;padding:4px;position:relative;transition:transform 0.3s ease}
.glyph svg{width:20px;height:20px}
.glyph:hover{transform:scale(1.3)}
.glyph:hover svg polygon,.glyph:hover svg circle{filter:drop-shadow(0 0 6px #39FF14)}
.glyph.active svg polygon,.glyph.active svg circle{fill:#39FF14;fill-opacity:0.3}
.glyph::after{content:attr(data-label);position:absolute;right:36px;top:50%;transform:translateY(-50%) translateX(-4px);font-family:'Space Mono',monospace;font-size:0.7rem;letter-spacing:0.12em;text-transform:uppercase;color:#C4C9D4;white-space:nowrap;opacity:0;transition:opacity 0.3s ease,transform 0.3s ease;pointer-events:none}
.glyph:hover::after{opacity:1;transform:translateY(-50%) translateX(0)}

/* Scenes */
.scene{position:relative;z-index:1;min-height:100vh}

/* Surface */
.scene-surface{display:flex;align-items:center;justify-content:center;flex-direction:column}
.hex-cluster{position:absolute;inset:0;pointer-events:none}
.hex-float{position:absolute}
.hex-f1{width:clamp(80px,12vw,120px);top:20%;left:30%;animation:hexDrift 20s ease-in-out infinite}
.hex-f2{width:clamp(60px,10vw,90px);top:40%;right:25%;animation:hexDrift 18s ease-in-out infinite 2s}
.hex-f3{width:clamp(50px,8vw,70px);bottom:30%;left:45%;animation:hexDrift 22s ease-in-out infinite 4s}
.hex-f4{width:clamp(100px,15vw,140px);top:15%;right:35%;animation:hexDrift 25s ease-in-out infinite 1s}
.hex-f5{width:clamp(55px,9vw,80px);bottom:25%;right:40%;animation:hexDrift 19s ease-in-out infinite 3s}

@keyframes hexDrift{0%{transform:translate(0,0)}25%{transform:translate(10px,-15px)}50%{transform:translate(-8px,10px)}75%{transform:translate(12px,5px)}100%{transform:translate(0,0)}}

.surface-title{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:clamp(3rem,8vw,6rem);color:#39FF14;letter-spacing:0.06em;text-shadow:0 0 40px rgba(57,255,20,0.4),0 0 80px rgba(57,255,20,0.15);animation:breathe 6s ease-in-out infinite;position:relative;z-index:5}
@keyframes breathe{0%,100%{opacity:0.5}50%{opacity:1}}

.scroll-hint{position:absolute;bottom:clamp(24px,4vw,48px);animation:bob 2s ease-in-out infinite}
.scroll-hint svg{width:20px;height:20px}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}

/* Border animate */
.border-anim{stroke-dasharray:600;animation:borderCycle 8s linear infinite}
@keyframes borderCycle{0%{stroke-dashoffset:600}50%{stroke-dashoffset:0}100%{stroke-dashoffset:600}}

/* Seam */
.seam{height:50px;background:repeating-linear-gradient(60deg,transparent,transparent 8px,rgba(57,255,20,0.04) 8px,rgba(57,255,20,0.04) 9px);position:relative;z-index:2}

/* Diagonal sections */
.diag-odd{clip-path:polygon(0 0,100% 8%,100% 100%,0 92%);padding:clamp(80px,12vw,160px) 0}
.diag-even{clip-path:polygon(0 8%,100% 0,100% 92%,0 100%);padding:clamp(80px,12vw,160px) 0}

.scene-stratum{background:#2D0A4E}
.diag-even{background:#0A0A0F}
.scene-moss{background:#1A2E1A}

.stratum-inner{display:grid;grid-template-columns:65fr 35fr;gap:clamp(24px,4vw,48px);max-width:1200px;margin:0 auto;padding:0 clamp(16px,4vw,48px);align-items:center}
.stratum-reverse{grid-template-columns:30fr 70fr}

.col-text{padding-left:clamp(3rem,8vw,10rem)}
.col-text-wide{padding-left:clamp(2rem,4vw,6rem)}
.col-shape{display:flex;justify-content:center;align-items:center}
.col-shape-narrow{justify-content:center}
.shape-composition{width:clamp(180px,25vw,300px)}
.network-graph{width:clamp(140px,18vw,200px)}

/* Headings */
.heading-magenta{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:clamp(2.8rem,7vw,5.5rem);letter-spacing:0.06em;line-height:1.12;color:#FF00FF;text-shadow:0 0 20px rgba(255,0,255,0.3);margin-bottom:clamp(16px,3vw,32px)}
.heading-blue{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:clamp(2.8rem,7vw,5.5rem);letter-spacing:0.06em;line-height:1.12;color:#00E5FF;text-shadow:0 0 20px rgba(0,229,255,0.3);margin-bottom:clamp(16px,3vw,32px)}
.heading-gold{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:clamp(2.8rem,7vw,5.5rem);letter-spacing:0.06em;line-height:1.12;color:#C9A520;text-shadow:0 0 20px rgba(201,165,32,0.3);margin-bottom:clamp(16px,3vw,32px)}
.heading-green{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:clamp(2.8rem,7vw,5.5rem);letter-spacing:0.06em;line-height:1.12;color:#39FF14;text-shadow:0 0 40px rgba(57,255,20,0.4);margin-bottom:clamp(16px,3vw,32px)}

.body-text{max-width:50ch;margin-bottom:clamp(16px,3vw,24px)}

/* Pull quote */
.pull-quote{border-left:2px solid #C9A520;padding-left:2rem;margin:clamp(24px,4vw,48px) 0}
.pull-quote p{font-family:'Cormorant Garamond',serif;font-weight:400;font-style:italic;font-size:clamp(1.5rem,3vw,2.2rem);color:#C9A520;line-height:1.4;max-width:40ch}

/* Network node glow */
.net-node.lit{filter:drop-shadow(0 0 8px #39FF14)}
.net-line.lit{opacity:0.6}

/* The Deep */
.scene-deep{min-height:100vh;background:linear-gradient(to bottom,#2D0A4E 0%,#0A0A0F 100%);display:flex;align-items:center;justify-content:center;text-align:center}
.deep-shapes{position:absolute;inset:0;pointer-events:none}
.deep-ghost{position:absolute;width:clamp(150px,25vw,250px)}
.deep-ghost:first-child{top:10%;left:20%}
.dg-2{top:50%;right:15%}
.dg-3{bottom:10%;left:40%}
.deep-content{position:relative;z-index:5;padding:clamp(24px,4vw,48px);transition:opacity 0.5s ease}
.deep-text{max-width:50ch;margin:0 auto}

/* Reveal */
[data-reveal]{opacity:0;transform:translateY(24px);transition:opacity 0.8s cubic-bezier(0.25,0.1,0.25,1),transform 0.8s cubic-bezier(0.25,0.1,0.25,1)}
[data-reveal].visible{opacity:1;transform:translateY(0)}

/* Responsive */
@media(max-width:768px){
.stratum-inner,.stratum-reverse{grid-template-columns:1fr;gap:24px}
.col-text,.col-text-wide{padding-left:clamp(16px,4vw,32px)}
.diag-odd,.diag-even{clip-path:polygon(0 0,100% 4%,100% 100%,0 96%)}
.glyph-nav{bottom:12px;right:12px;gap:8px}
}
@media(max-width:480px){
.col-shape{display:none}
}
