/* Design font parser tokens: Interaction Rule Rules Rules* Rules:* Rules:** Rules:::* Ruless Interactive elements (links (Google */

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

:root {
    --bg: #1a1a1e;
    --bg-2: #252529;
    --text: #f0f0e8;
    --muted: #c8c8be;
    --concrete: #3a3a40;
    --green: #00ff87;
    --magenta: #ff2d6a;
    --cyan: #00d4ff;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --display: "Source Serif 4", Georgia, serif;
    --body: "Source Sans 3", Inter, sans-serif;
    --accent: "Chakra Petch", monospace;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    letter-spacing: 0.005em;
}

.concrete-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23noise)"/></svg>');
}

.background-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.background-field svg { width: 100%; height: 100%; }
.background-field polygon { fill: none; stroke: var(--concrete); stroke-width: 2px; opacity: 0.055; }

.left-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: 6px;
    height: 100vh;
    background: var(--green);
    z-index: 20;
    animation: railPulse 4s ease-in-out infinite;
    box-shadow: 0 0 18px rgba(0, 255, 135, 0.55);
}

@keyframes railPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.rail-marker {
    position: absolute;
    left: -5px;
    width: 16px;
    height: 16px;
    background: var(--magenta);
    transform: rotate(45deg) scale(0.76);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    transition: transform 420ms var(--spring), background 420ms var(--spring);
}

.rail-marker:nth-child(1) { top: 19vh; }
.rail-marker:nth-child(2) { top: 43vh; }
.rail-marker:nth-child(3) { top: 67vh; }
.rail-marker:nth-child(4) { top: 91vh; }
.rail-marker.active { background: var(--cyan); transform: rotate(45deg) scale(1.22); }

.rail-marker::after {
    content: attr(data-label);
    position: absolute;
    left: 24px;
    top: -4px;
    transform: rotate(-45deg);
    color: var(--cyan);
    font: 600 0.72rem/1 var(--accent);
    letter-spacing: 0.14em;
    opacity: 0;
    transition: opacity 300ms ease, transform 420ms var(--spring);
}

.rail-marker.active::after, .rail-marker:hover::after { opacity: 1; transform: rotate(-45deg) translateX(5px); }

.top-slab {
    position: relative;
    z-index: 5;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 72px) 0 clamp(32px, 7vw, 108px);
    background: var(--bg);
    border-bottom: 2px solid var(--concrete);
    box-shadow: inset 0 -3px 0 var(--cyan);
}

.top-slab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 88px, rgba(240, 240, 232, 0.04) 88px 90px);
    pointer-events: none;
}

.slab-label, .slab-domain, .section-kicker, .charge-caption span, .site-footer em {
    font-family: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.slab-label { color: var(--green); font-size: clamp(0.7rem, 1vw, 0.85rem); }
.slab-domain { color: var(--cyan); font-size: clamp(0.7rem, 1vw, 0.85rem); }

main { position: relative; z-index: 4; }

.section {
    position: relative;
    min-height: 100vh;
    padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px) clamp(72px, 10vw, 132px) clamp(32px, 7vw, 108px);
    background: rgba(26, 26, 30, 0.92);
}

.section:nth-of-type(even) { background: rgba(37, 37, 41, 0.9); }

.section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2px;
    max-width: 1440px;
    margin: 0 auto;
}

.section-grid::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1 / 8;
    border-top: 1px solid rgba(58, 58, 64, 0.8);
    background: repeating-linear-gradient(90deg, transparent 0 calc(8.333% - 2px), rgba(58, 58, 64, 0.18) calc(8.333% - 2px) 8.333%);
    pointer-events: none;
    min-height: 2px;
}

.section-kicker {
    grid-column: 1 / 5;
    color: var(--cyan);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    margin-bottom: 32px;
}

.domain-title, .section-title {
    font-family: var(--display);
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 0.95;
}

.domain-title {
    grid-column: 1 / 8;
    font-size: clamp(4rem, 13vw, 13rem);
    font-weight: 900;
    max-width: 60vw;
    overflow-wrap: anywhere;
}

.section-title {
    grid-column: 1 / 9;
    font-size: clamp(2.8rem, 7vw, 6.4rem);
    font-weight: 700;
    margin-bottom: 40px;
}

.lead-text, .body-copy {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.65;
    color: var(--muted);
    max-width: 42ch;
}

.lead-text { grid-column: 1 / 7; margin-top: 32px; }
.body-copy { grid-column: 1 / 7; margin-bottom: 28px; }
.row-one { grid-column: 1 / 9; }
.row-two { grid-column: 2 / 8; }

.void-composition {
    grid-column: 8 / 13;
    grid-row: 2 / 6;
    position: relative;
    min-height: 520px;
}

.shard {
    position: absolute;
    display: block;
    clip-path: polygon(12% 90%, 68% 4%, 94% 82%);
    border: 2px solid currentColor;
    background: transparent;
    opacity: 0.42;
}

.shard-green { color: var(--green); }
.shard-magenta { color: var(--magenta); }
.shard-cyan { color: var(--cyan); }
.shard-a { width: 210px; height: 310px; left: 8%; top: 8%; transform: rotate(-18deg); }
.shard-b { width: 260px; height: 360px; right: 5%; top: 24%; transform: rotate(18deg); }
.shard-c { width: 155px; height: 230px; left: 35%; bottom: 5%; transform: rotate(39deg); }

.rain-slash {
    position: absolute;
    width: 3px;
    height: 240px;
    background: var(--cyan);
    transform: rotate(-34deg);
    opacity: 0.45;
}

.slash-one { left: 22%; top: 2%; }
.slash-two { left: 55%; top: 20%; background: var(--green); }
.slash-three { left: 72%; top: 42%; background: var(--magenta); }

.lightning-transition {
    position: relative;
    z-index: 6;
    height: 60px;
    background: var(--bg);
}

.lightning-transition svg { width: 100%; height: 60px; display: block; }
.lightning-transition polyline {
    fill: none;
    stroke: var(--green);
    stroke-width: 3px;
    stroke-linejoin: miter;
    stroke-dasharray: 1300;
    stroke-dashoffset: 1300;
    transition: stroke-dashoffset 800ms ease-out;
}

.lightning-transition.line-visible polyline { stroke-dashoffset: 0; }
.transition-cyan polyline { stroke: var(--cyan); }
.transition-magenta polyline { stroke: var(--magenta); }

.current-grid { align-items: start; }
.angle-break {
    grid-column: 1 / 8;
    height: 54px;
    margin: 24px 0;
    background: linear-gradient(135deg, transparent 0 48%, var(--magenta) 48% 52%, transparent 52% 100%);
    clip-path: polygon(0 0, 94% 0, 100% 100%, 6% 100%);
    opacity: 0.75;
}

.static-shards {
    grid-column: 9 / 13;
    grid-row: 2 / 7;
    align-self: stretch;
    display: grid;
    place-items: center;
}

.static-shards svg { width: min(100%, 280px); height: 380px; }
.static-shards polygon { fill: none; stroke-width: 3px; opacity: 0.42; }
.static-shards polygon:nth-child(1) { stroke: var(--green); }
.static-shards polygon:nth-child(2) { stroke: var(--magenta); }
.static-shards polygon:nth-child(3) { stroke: var(--cyan); }

.charge-grid .section-kicker, .charge-grid .section-title { grid-column: 1 / 11; }
.charge-visual {
    grid-column: 1 / 11;
    position: relative;
    min-height: 520px;
    border-top: 2px solid var(--concrete);
    border-bottom: 2px solid var(--concrete);
    overflow: hidden;
}

.charge-visual svg { width: 100%; height: 520px; display: block; }
.plane { opacity: 0.24; stroke-width: 3px; fill: transparent; }
.plane-green { stroke: var(--green); }
.plane-magenta { stroke: var(--magenta); }
.plane-cyan { stroke: var(--cyan); }
.charge-bolt { fill: none; stroke: var(--green); stroke-width: 4px; stroke-dasharray: 18 12; animation: boltDrift 2.8s linear infinite; }
.charge-rain { stroke: var(--concrete); stroke-width: 2px; opacity: 0.45; }

@keyframes boltDrift { to { stroke-dashoffset: -60; } }

.charge-caption {
    position: absolute;
    left: 32px;
    bottom: 32px;
    max-width: 560px;
    padding-left: 18px;
    border-left: 6px solid var(--green);
}

.charge-caption span { display: block; color: var(--cyan); font-size: 0.78rem; margin-bottom: 12px; }
.charge-caption strong { display: block; color: var(--text); font: 700 clamp(1.5rem, 4vw, 3.6rem)/0.98 var(--display); letter-spacing: -0.02em; }

.clearing-grid .section-kicker, .clearing-grid .section-title, .clearing-grid .body-copy, .site-footer { grid-column: 1 / 6; }
.closing-signature {
    grid-column: 6 / 13;
    grid-row: 2 / 7;
    min-height: 520px;
    background: linear-gradient(134deg, transparent 0 49.6%, var(--cyan) 49.6% 50.1%, transparent 50.1% 100%);
    opacity: 0.86;
}

.site-footer {
    margin-top: 60px;
    padding-top: 28px;
    border-top: 2px solid var(--concrete);
}

.site-footer span { display: block; color: var(--text); font: 900 clamp(2rem, 5vw, 4.5rem)/0.95 var(--display); letter-spacing: -0.02em; }
.site-footer em { display: block; color: var(--green); font-style: normal; font-size: 0.75rem; margin-top: 12px; }

.reveal-item {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 700ms var(--spring), transform 700ms var(--spring), clip-path 420ms var(--spring);
}

.section-visible .reveal-item { opacity: 1; transform: translateX(0); }
.section-visible .reveal-item:nth-child(2) { transition-delay: 80ms; }
.section-visible .reveal-item:nth-child(3) { transition-delay: 160ms; }
.section-visible .reveal-item:nth-child(4) { transition-delay: 240ms; }
.section-visible .reveal-item:nth-child(5) { transition-delay: 320ms; }

.section-kicker:hover, .slab-domain:hover {
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transform: translateX(8px);
    color: var(--green);
}

@media (max-width: 900px) {
    .top-slab { height: 96px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 10px; }
    .section { padding-left: 32px; padding-right: 20px; }
    .section-grid { display: block; }
    .domain-title { max-width: none; }
    .lead-text, .body-copy { max-width: 44ch; }
    .void-composition, .static-shards, .closing-signature { min-height: 280px; margin-top: 48px; }
    .charge-visual, .charge-visual svg { min-height: 360px; height: 360px; }
}

@media (max-width: 560px) {
    .slab-domain { display: none; }
    .domain-title { font-size: clamp(3.2rem, 19vw, 6rem); }
    .section-title { font-size: clamp(2.4rem, 14vw, 4.2rem); }
    .rail-marker::after { display: none; }
    .charge-caption { left: 18px; bottom: 18px; right: 18px; }
}
