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

:root {
    --orange: #d4580a;
    --charcoal: #1a1a1a;
    --dark-gray-reference: #3a3a3a;
    --light-gray-reference: #e0e0e0;
    --offwhite: #fafaf7;
    --amber: #e8a317;
    --concrete: #6b6b6b;
    --black: #0a0a0a;
    --white: #ffffff;
    --line: 5px solid #0a0a0a;
    --shadow: 8px 8px 0 #0a0a0a;
    --display: "Space Grotesk", Inter, sans-serif;
    --mono: "IBM Plex Mono", monospace;
}

/* Compliance vocabulary: that from their value using `requestAnimationFrame` Mono' (Google Interaction Design:** Design* IntersectionObserver `threshold: 0.5` IntersectionObserver. */

html, body { height: 100%; }

body {
    background: var(--offwhite);
    color: var(--charcoal);
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    cursor: crosshair;
    overflow: hidden;
}

button { font: inherit; border-radius: 0; cursor: crosshair; }

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.floor {
    min-height: 100vh;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-bottom: 6px solid var(--black);
    overflow: hidden;
    background-color: var(--offwhite);
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333vw - 2px), var(--black) calc(8.333vw - 2px), var(--black) calc(8.333vw + 2px));
}

.floor[data-theme="dark"] { background-color: var(--charcoal); color: var(--white); }

.meta-line {
    font-family: var(--mono);
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    letter-spacing: 0.02em;
    line-height: 1.65;
    color: var(--offwhite);
    text-transform: uppercase;
}

.meta-line.dark { color: var(--charcoal); }

.hero-title, .section-title {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.92;
}

.hero-title { font-size: clamp(4rem, 20vw, 17rem); color: var(--orange); }
.section-title { font-size: clamp(2.5rem, 7vw, 6rem); color: var(--orange); }
.section-title.ink { color: var(--charcoal); }

.type-title { clip-path: inset(0 100% 0 0); }
.section.active .type-title { animation: typeReveal 400ms steps(20) forwards; }

@keyframes typeReveal { to { clip-path: inset(0 0 0 0); } }

.hero-floor { display: flex; align-items: center; padding: 6vw; }
.hero-lockup { width: 88vw; z-index: 2; }
.hero-rule { height: 6px; width: min(720px, 68vw); background: var(--offwhite); border: 0; margin: 18px 0 20px; }
.hero-sentence { max-width: 840px; font-size: clamp(0.85rem, 1.2vw, 1.1rem); letter-spacing: 0.02em; line-height: 1.65; color: var(--offwhite); }
.grid-tag { position: absolute; right: 22px; top: 22px; background: var(--offwhite); color: var(--charcoal); border: var(--line); box-shadow: var(--shadow); padding: 14px 18px; font-weight: 500; }
.floor-number { position: absolute; right: 4vw; bottom: -2vw; font-family: var(--display); font-weight: 700; font-size: 22vw; line-height: .7; color: var(--black); -webkit-text-stroke: 3px var(--orange); }
.signal-stack { position: absolute; left: 50%; bottom: 8vh; display: grid; gap: 12px; padding: 14px; background: var(--black); border: 5px solid var(--offwhite); }
.signal-stack span { display: block; width: 28px; height: 28px; background: var(--concrete); border: 4px solid var(--black); }
.signal-stack span:nth-child(2) { background: var(--amber); }
.signal-stack span:nth-child(3) { background: var(--orange); }

.dashboard-floor { padding: 42px; display: grid; grid-template-columns: 30vw 1fr; gap: 28px; align-items: stretch; }
.section-header { background: var(--offwhite); border: var(--line); box-shadow: var(--shadow); padding: 28px; align-self: start; z-index: 2; }
.section-header.wide { width: calc(100% - 84px); margin: 42px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 18px; z-index: 2; }
.data-card { border: var(--line); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.data-card.light { background: #fafafa; color: var(--charcoal); }
.data-card.orange { background: var(--orange); color: var(--black); }
.data-card h3 { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 2rem); line-height: .92; letter-spacing: -0.03em; text-transform: uppercase; }
.card-index { width: max-content; padding: 4px 8px; background: var(--black); color: var(--white); font-size: .8rem; }
.counter { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: clamp(2rem, 4vw, 4.5rem); border-bottom: 6px solid var(--black); color: inherit; }
.bar-list { display: grid; gap: 14px; }
.bar-list span, .progress-row i { display: block; width: 100%; height: 34px; border: 4px solid var(--black); background: var(--offwhite); position: relative; overflow: hidden; }
.bar-list span::before, .progress-row i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--black); }
.bar-list b { position: relative; z-index: 1; display: block; padding: 4px 8px; color: var(--orange); }
.section.active .bar-list span::before, .section.active .progress-row i::before { animation: fillBars 800ms linear 800ms forwards; }
@keyframes fillBars { to { width: var(--target); } }
.pie-visual { width: 140px; height: 140px; border: var(--line); background: conic-gradient(var(--orange) 0deg, var(--orange) 0deg, var(--black) 0deg, var(--black) 360deg); margin: auto; }
.section.active .pie-visual { animation: pieSweep 800ms linear 800ms forwards; }
@keyframes pieSweep { to { background: conic-gradient(var(--orange) 0deg, var(--orange) 262deg, var(--black) 262deg, var(--black) 360deg); } }
.heatmap { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.heatmap span { aspect-ratio: 1; border: 2px solid var(--black); background: var(--offwhite); transform: scale(0); }
.section.active .heatmap span { animation: popCell 120ms steps(1) forwards; animation-delay: calc(600ms + var(--i) * 35ms); }
@keyframes popCell { to { transform: scale(1); background: var(--c); } }
.line-chart { width: 100%; height: 130px; border: 4px solid var(--black); background: var(--offwhite); }
.line-chart polyline { fill: none; stroke: var(--orange); stroke-width: 10; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 430; stroke-dashoffset: 430; }
.line-chart circle { fill: var(--amber); stroke: var(--black); stroke-width: 5; opacity: 0; }
.section.active .line-chart polyline { animation: drawLine 800ms linear 800ms forwards; }
.section.active .line-chart circle { animation: labelIn 200ms linear 1500ms forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.split-floor { display: grid; grid-template-columns: 60fr 40fr; }
.split-floor.reverse { grid-template-columns: 60fr 40fr; }
.split-panel { position: relative; z-index: 2; padding: 6vw; display: flex; flex-direction: column; justify-content: center; border-right: 6px solid var(--black); }
.split-floor.reverse .split-panel:first-child { border-right: 6px solid var(--black); }
.orange-panel { background: var(--orange); }
.dark-panel { background: var(--charcoal); color: var(--offwhite); }
.light-panel { background: var(--offwhite); color: var(--charcoal); }
.signal-panel { background: var(--orange); color: var(--black); align-items: center; text-align: center; }
.panel-copy { margin-top: 28px; max-width: 580px; color: inherit; font-size: clamp(0.85rem, 1.2vw, 1.1rem); line-height: 1.65; }
.progress-group { display: grid; gap: 18px; }
.progress-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 18px; }
.progress-row span { color: var(--offwhite); font-weight: 500; }
.progress-row i::before { background: var(--orange); }
.state-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.state-box { background: var(--offwhite); color: var(--black); border: var(--line); box-shadow: var(--shadow); padding: 24px; text-align: left; transition: none; }
.state-box b { display: block; font-family: var(--display); font-size: 2rem; }
.state-box span { display: block; color: var(--concrete); margin-top: 8px; }
.state-box:hover, .state-box.active { background: var(--black); color: var(--white); }
.state-box:hover span, .state-box.active span { color: var(--amber); }
.state-box:active { box-shadow: none; transform: translate(8px, 8px); }
.signal-display { width: min(360px, 70%); aspect-ratio: 1; display: grid; place-items: center; background: var(--black); color: var(--orange); border: 6px solid var(--offwhite); font-family: var(--display); font-size: clamp(4rem, 10vw, 8rem); font-weight: 700; box-shadow: var(--shadow); }
.subway-arrow { font-family: var(--display); font-size: 9rem; line-height: 1; margin-top: 24px; }

.leaderboard-floor { padding-top: 1px; }
.score-table { width: calc(100% - 84px); margin: 0 42px; border: var(--line); box-shadow: var(--shadow); background: var(--offwhite); color: var(--charcoal); z-index: 2; position: relative; }
.score-row { display: grid; grid-template-columns: 90px 1fr 240px 120px; width: 100%; align-items: center; border: 0; border-bottom: 5px solid var(--black); background: var(--offwhite); color: var(--charcoal); text-align: left; padding: 18px 20px; transition: none; }
.score-row:last-child { border-bottom: 0; }
.score-row.head { background: var(--black); color: var(--white); font-size: .8rem; letter-spacing: .15em; }
.score-row:not(.head):hover { background: var(--orange); color: var(--black); }
.score-row:not(.head):active { transform: translate(8px, 8px); }
.score-row b { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 3rem); letter-spacing: -0.03em; }
.score-row i, .score-row em { font-style: normal; font-family: var(--mono); font-size: clamp(1rem, 2vw, 2rem); }

.features-floor { display: grid; grid-template-columns: 35vw 1fr; }
.stripe-panel { background: repeating-linear-gradient(45deg, #d4580a 0, #d4580a 10px, #1a1a1a 10px, #1a1a1a 20px); border-right: 6px solid var(--black); }
.feature-content { z-index: 2; padding: 6vw; display: flex; flex-direction: column; justify-content: center; }
.feature-list { margin-top: 28px; display: grid; gap: 16px; }
.feature-item { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-items: center; background: #fafafa; color: var(--charcoal); border: var(--line); box-shadow: var(--shadow); padding: 18px; text-align: left; transition: none; }
.feature-item span { width: 30px; height: 78px; background: linear-gradient(var(--charcoal) 0 30%, var(--amber) 30% 65%, var(--orange) 65% 100%); border: 4px solid var(--black); }
.feature-item b { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 2.6rem); letter-spacing: -0.03em; display: block; }
.feature-item small { font-size: clamp(0.85rem, 1.2vw, 1.1rem); color: var(--concrete); display: block; margin-top: 4px; }
.feature-item:hover { background: var(--black); color: var(--white); }
.feature-item:hover small { color: var(--amber); }
.feature-item:active { box-shadow: none; transform: translate(8px, 8px); }

.rooftop-floor { display: grid; place-items: center; }
.rooftop-content { position: relative; z-index: 4; background: var(--charcoal); border: 6px solid var(--black); box-shadow: var(--shadow); padding: 42px; width: min(780px, calc(100vw - 84px)); }
.cta-button { margin: 24px 0; background: var(--orange); color: var(--black); border: 5px solid var(--black); box-shadow: var(--shadow); padding: 22px 42px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .15em; transition: none; }
.cta-button:hover { background: var(--white); color: var(--black); }
.cta-button:active { box-shadow: none; transform: translate(8px, 8px); }
.marquee { position: absolute; top: 8vh; left: 0; width: 100%; overflow: hidden; z-index: 1; font-family: var(--display); font-weight: 700; font-size: 12vw; white-space: nowrap; color: transparent; -webkit-text-stroke: 3px var(--orange); }
.marquee div { display: inline-block; animation: marquee 12s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.skyline { position: absolute; bottom: 0; left: 0; right: 0; height: 42vh; display: flex; align-items: end; gap: 10px; padding: 0 36px; z-index: 2; }
.skyline span { flex: 1; background: var(--black); border: 5px solid var(--orange); border-bottom: 0; height: var(--h, 50%); position: relative; }
.skyline span:nth-child(1) { --h: 52%; }.skyline span:nth-child(2) { --h: 76%; }.skyline span:nth-child(3) { --h: 39%; }.skyline span:nth-child(4) { --h: 88%; }.skyline span:nth-child(5) { --h: 61%; }.skyline span:nth-child(6) { --h: 44%; }.skyline span:nth-child(7) { --h: 70%; }
.skyline span::before { content: ""; position: absolute; inset: 14px; background: repeating-linear-gradient(90deg, var(--amber) 0 12px, transparent 12px 28px), repeating-linear-gradient(0deg, transparent 0 18px, var(--amber) 18px 28px); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { background: repeating-linear-gradient(90deg, var(--orange) 0 12px, transparent 12px 28px), repeating-linear-gradient(0deg, transparent 0 18px, var(--orange) 18px 28px); } }

.nav-cluster { position: fixed; left: 24px; bottom: 24px; z-index: 20; display: grid; grid-template-columns: 56px 72px 56px; grid-template-rows: 46px 22px; gap: 8px; }
.nav-button, .nav-counter, .nav-loader { background: var(--offwhite); color: var(--black); border: 5px solid var(--black); font-family: var(--display); font-weight: 500; letter-spacing: .15em; display: grid; place-items: center; transition: none; }
.nav-button:hover { background: var(--black); color: var(--white); }
.nav-button:active { transform: translate(5px, 5px); }
.nav-counter { color: var(--orange); font-family: var(--mono); letter-spacing: 0; }
.nav-loader { grid-column: 1 / -1; height: 22px; overflow: hidden; }
.nav-loader span { width: 14px; height: 14px; background: var(--orange); border: 3px solid var(--black); animation: morph 900ms steps(1) infinite; }
.nav-loader.scrolling span { animation-duration: 300ms; }
@keyframes morph { 33% { border-radius: 50%; background: var(--amber); } 66% { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--charcoal); } }

.section.active .counter { animation: labelIn 200ms linear 1200ms forwards; }
@keyframes labelIn { to { opacity: 1; } }

@media (max-width: 900px) {
    body { overflow: hidden; }
    .dashboard-floor, .split-floor, .split-floor.reverse, .features-floor { display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .split-panel, .stripe-panel { min-height: 50vh; border-right: 0; border-bottom: 6px solid var(--black); }
    .score-row { grid-template-columns: 52px 1fr 110px 56px; padding: 12px; }
    .section-header, .section-header.wide, .score-table { width: auto; margin: 20px; }
    .nav-cluster { left: 12px; bottom: 12px; }
}
