:root {
  --bg: #0b0c0d; --ink: #f3f4f4; --soft: #b9bdc0; --dim: #565b5f;
  --display: Bahnschrift, "DIN Alternate", "Roboto Condensed", system-ui, sans-serif;
  --side: clamp(20px, 5vw, 72px);
  --out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--soft); font: 18px/1.6 system-ui, "Segoe UI", Roboto, sans-serif; overflow-x: clip; }
video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: var(--ink); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
h1, h2 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }

/* the Oddbit logo (logo.js) */
.oddbit { display: block; color: var(--ink); cursor: pointer; }
.oddbit svg { display: block; width: 100%; overflow: visible; }

/* opening */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: clip; display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--side) clamp(36px, 7vh, 72px); }
.hero-film { position: absolute; inset: 0; transform: scale(calc(1 + var(--p, 0) * .12)); animation: lights 1.8s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11,12,13,.5), transparent 20%, transparent 45%, rgba(11,12,13,.66) 80%, var(--bg)); }
.hero > div { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; animation: fade 1s 1.1s ease-out both; }
.hero .oddbit { width: 118px; }
.pause { color: var(--ink); background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; cursor: pointer; opacity: .75; }
.pause:hover { opacity: 1; }
.hero-title { transform: translateY(calc(var(--p, 0) * -14vh)); }
h1 { font-size: clamp(60px, 13.1vw, 290px); font-weight: 700; line-height: .86; margin: 0 0 .1em -.04em; }
.hero h1 { white-space: nowrap; }
.rise { display: inline-block; overflow: clip; overflow-clip-margin: .02em; padding-bottom: .2em; margin-bottom: -.2em; }
.rise > span { display: inline-block; animation: rise 1.3s .35s var(--out) both; }
.rise + .rise > span { animation-delay: .47s; }
.hero p { color: var(--ink); font-size: clamp(18px, 1.7vw, 24px); margin: 0; animation: fade 1s 1.1s ease-out both; }
@keyframes rise { from { transform: translateY(112%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes lights { from { opacity: 0; filter: brightness(2.2); } }

/* one sentence that lights up as it is read */
.statement { padding: clamp(96px, 20vh, 200px) var(--side); }
.statement p { font: 600 clamp(30px, 4.7vw, 76px)/1.14 var(--display); color: var(--ink); margin: 0; max-width: 21em; text-wrap: pretty; }
.live .statement span { color: color-mix(in srgb, var(--ink) calc(var(--lit, 0) * 100%), #2c2f32); }

/* the modes: each wipes over the one before, at a bank; the text stays where it is */
.modes { position: relative; }
.modes article { position: relative; height: 100svh; overflow: clip; display: flex; align-items: flex-end; background: var(--bg); }
.modes video { position: absolute; inset: 0; transform: scale(calc(1.12 - var(--in, 1) * .12)); }
.modes article::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(11,12,13,.78)); }
.modes article > div { position: relative; z-index: 1; padding: 0 var(--side) clamp(40px, 8vh, 84px); }
.modes h2 { font-size: clamp(46px, 9.4vw, 168px); font-weight: 700; line-height: .92; margin-left: -.03em; }
.modes p { color: var(--ink); font-size: clamp(18px, 1.7vw, 24px); margin: 18px 0 0; }
.live .modes { height: 470svh; }
.live .reel { position: sticky; top: 0; height: 100svh; }
.live .modes article { position: absolute; inset: 0; height: auto; --y: calc((1 - var(--in, 0)) * 114%); clip-path: polygon(0 calc(var(--y) - 14%), 100% var(--y), 100% 100%, 0 100%); }

footer { position: relative; background: var(--bg); padding: clamp(96px, 18vh, 180px) var(--side) 72px; }
footer h2 { width: min(100%, 900px); padding-top: 40px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 64px; }

@media (max-width: 700px) {
  .hero h1 { white-space: normal; font-size: 23vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; }}
