/* Compliance vocabulary from DESIGN.md: `<line>` `<path>` elements connect cards using thin strokes (`1px; "An underground encyclopedia of scaling solutions." bottom-right quadrant (positioned at `bottom: 10vh; IntersectionObserver` with `threshold: 0.15` Interval` Space Grotesk" (Google Fonts JetBrains Mono" (Google Fonts Inter" (Google Fonts 1.25rem: avoid literal #000 and #fff in rendered colors. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: #0a1f0f;
    color: #d4e8d0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.72;
    font-weight: 400;
    overflow: hidden;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    filter: url(#grain);
}
.grain-source { position: absolute; width: 0; height: 0; }
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#nav-dots { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 16px; }
#nav-dots::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 50%; width: 1px; background: #2d5a3a; transform: translateX(-50%); opacity: 0.6; }
#nav-dots button { width: 6px; height: 6px; border-radius: 50%; background: #2d5a3a; border: 1px solid #3dffa2; padding: 0; cursor: pointer; position: relative; transition: background 0.3s ease, box-shadow 0.3s ease; }
#nav-dots button.active { background: #3dffa2; box-shadow: 0 0 18px #3dffa2; }
#scroll-container { height: 100vh; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; }
.depth-section { min-height: 100vh; position: relative; overflow: hidden; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.section-content { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.diagonal-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.diagonal-line line { stroke: #2d5a3a; stroke-width: 0.15; opacity: 0.15; vector-effect: non-scaling-stroke; }
.depth-gradient { position: absolute; top: 0; left: 0; right: 0; height: 110px; background: linear-gradient(180deg, #0a1f0f 0%, #0a2e2e 50%, #132e17 100%); z-index: 1; }
.depth-gradient span { position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background-image: radial-gradient(circle, #3dffa2 1px, transparent 1.2px); background-size: 14px 2px; opacity: 0.32; animation: driftDots 11s linear infinite; }
@keyframes driftDots { to { background-position: 140px 0; } }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; letter-spacing: 0.04em; color: #7fffd4; }
.depth-kicker { text-transform: uppercase; color: #00d4aa; opacity: 0.72; margin-bottom: 0.8rem; }
.hero-title, .section-title { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; color: #3dffa2; line-height: 1.05; }
.hero-title { font-size: clamp(2.8rem, 6vw, 5.5rem); text-shadow: 0 0 38px rgba(61, 255, 162, 0.18); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 1.5rem; }
#surface { background: radial-gradient(circle at 82% 82%, rgba(0, 212, 170, 0.14), transparent 34%), #0a1f0f; }
.surface-content { min-height: 100vh; }
.hero-text { position: absolute; top: 35vh; left: 8vw; max-width: min(760px, 82vw); }
.hero-question { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; color: #7fffd4; font-size: clamp(1.05rem, 2vw, 1.55rem); line-height: 1.3; margin-top: 1.4rem; max-width: 720px; }
.hero-tagline { font-size: 1.25rem; color: #d4e8d0; margin-top: 2rem; opacity: 0.9; }
.hero-manifesto { position: absolute; bottom: 10vh; right: 6vw; max-width: 400px; font-size: 0.95rem; opacity: 0.75; }
.scroll-hint { position: absolute; bottom: 3vh; left: 50%; transform: translateX(-50%); animation: pulseArrow 2s ease-in-out infinite; }
@keyframes pulseArrow { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
#thermocline { background: radial-gradient(circle at 8% 78%, rgba(61, 255, 162, 0.1), transparent 32%), #0a1f0f; }
.thermocline-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.coral-graph { grid-column: 1 / 8; transform: translateX(-4vw); }
.thermocline-text { grid-column: 8 / 13; align-self: center; }
.thermocline-text p { margin-bottom: 1.25rem; }
.coral-svg { width: 112%; max-height: 74vh; overflow: visible; }
.coral-svg path { fill: none; stroke: #2d5a3a; stroke-width: 1.5; stroke-linecap: round; }
.coral-svg path.active-path { stroke: #00d4aa; }
.coral-svg circle { fill: #132e17; stroke: #3dffa2; stroke-width: 1.5; }
.coral-svg circle.hot { stroke: #00d4aa; }
.coral-svg text { fill: #7fffd4; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.04em; }
#mesopelagic { background: radial-gradient(circle at 50% 40%, rgba(10, 31, 15, 0.56), transparent 50%), #0a2e2e; }
.mesopelagic-content { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 20vh; padding-bottom: 20vh; }
.meso-text-band { min-height: 20vh; max-width: 880px; text-align: center; }
.meso-text-band p { margin-bottom: 1.25rem; }
.particle-rule { width: 100vw; height: 2px; margin: 2.6rem 0; background-image: radial-gradient(circle, #3dffa2 1px, transparent 1.2px); background-repeat: repeat-x; background-size: 12px 2px; opacity: 0.44; animation: driftDots 9s linear infinite; }
#abyssal { background: radial-gradient(circle at 25% 15%, rgba(0, 212, 170, 0.08), transparent 30%), #132e17; }
.abyssal-content { min-height: 100vh; max-width: none; width: 100%; }
.card-connections { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.card-connections path { fill: none; stroke: #2d5a3a; stroke-width: 1; opacity: 0.5; vector-effect: non-scaling-stroke; }
.card-connections path.faint { opacity: 0.3; }
.research-card { position: absolute; background: #132e17; border: 1px solid #2d5a3a; padding: 1.5rem; max-width: 280px; border-radius: 2px; z-index: 2; opacity: 0; transform: translateY(40px); transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease; transition-delay: calc(var(--i) * 80ms); }
.research-card.visible { opacity: 1; transform: translateY(0); }
.research-card:hover { border-color: #3dffa2; }
.research-card h3 { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: #3dffa2; margin-bottom: 0.75rem; }
.research-card p { font-size: 0.875rem; line-height: 1.65; opacity: 0.85; }
.card-tag { display: block; margin-top: 1rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.7rem; color: #2d5a3a; letter-spacing: 0.04em; }
.research-card.glitch { animation: glitchEffect 200ms steps(3) forwards; }
@keyframes glitchEffect { 0% { clip-path: inset(10% 0 80% 0); transform: translateX(-1px); text-shadow: -2px 0 #ff6b6b, 2px 0 #00d4aa; } 33% { clip-path: inset(60% 0 10% 0); transform: translateX(1px); text-shadow: -2px 0 #ff6b6b, 2px 0 #00d4aa; } 66% { clip-path: inset(30% 0 40% 0); transform: translateX(-1px); text-shadow: -2px 0 #ff6b6b, 2px 0 #00d4aa; } 100% { clip-path: inset(0); transform: translateX(0); text-shadow: none; } }
.reveal-text, .section-title { opacity: 0; transform: translateY(40px); transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal-text.visible, .section-title.visible { opacity: 1; transform: translateY(0); }
.mono-label { opacity: 0.82; }
@media (max-width: 820px) {
    body { overflow: hidden; }
    #nav-dots { right: 12px; }
    .hero-text { position: relative; top: auto; left: auto; padding-top: 22vh; }
    .hero-manifesto { position: relative; right: auto; bottom: auto; margin-top: 3rem; padding-bottom: 12vh; }
    .thermocline-grid { display: block; padding-top: 110px; }
    .coral-graph { transform: none; margin-bottom: 2rem; }
    .coral-svg { width: 100%; }
    .mesopelagic-content { padding: 14vh 24px; }
    .abyssal-content { display: flex; flex-direction: column; gap: 1rem; padding: 110px 24px 48px; }
    .research-card { position: relative !important; top: auto !important; left: auto !important; max-width: 100%; }
    .card-connections { display: none; }
}
