@font-face { font-family: "Fira Sans"; font-weight: 100; font-style: normal; font-display: swap; src: url("/assets/fonts/fira-sans-100.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/fira-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/fira-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/fira-sans-500.woff2") format("woff2"); }

:root {
  --graphite-900: #0f1012;
  --graphite-800: #16171a;
  --graphite-700: #1e2024;
  --graphite-600: #2c2e33;
  --ivory-100: #f1e9d8;
  --ivory-200: #d6cdb9;
  --ivory-400: #a39c8b;
  --rule: rgb(241 233 216 / 0.22);
  --rule-strong: rgb(241 233 216 / 0.4);
  --m1: #ea4b40;
  --m2: #3bb54d;
  --m3: #2f8ada;
  --m4: #33c2ee;
  --m5: #b07a43;
  --m6: #f08d21;
  --m7: #b862b6;
  --c: var(--ivory-100);

  --font: "Fira Sans", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --fs-numeral: clamp(96px, 11.5vw, 200px);
  --fs-h2: clamp(36px, 3.6vw, 60px);
  --fs-lead: clamp(20px, 1.6vw, 26px);
  --fs-body: 18px;
  --fs-cap: 12px;
  --track-cap: 0.16em;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;
  --gutter: clamp(32px, 6.5vw, 120px);
  --col: 27rem;
  --bullet: 22px;
  --stroke: 1.6px;

  --t-micro: 150ms;
  --t-ui: 260ms;
  --t-exit: 200ms;
  --t-reveal: 700ms;
  --stagger: 60ms;
  --stagger-draw: 90ms;
  --t-draw: 1400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--graphite-800);
  color: var(--ivory-100);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 1024px;
  font: 400 var(--fs-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, p, dl, dd, dt { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ivory-100);
  outline-offset: var(--s1);
}

::selection { background: var(--ivory-100); color: var(--graphite-900); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: var(--s3);
  left: var(--s3);
  z-index: 20;
  padding: var(--s2) var(--s4);
  background: var(--ivory-100);
  color: var(--graphite-900);
  font: 500 var(--fs-cap)/1 var(--font);
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-300%);
}
.skip:focus-visible { transform: none; }

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  touch-action: pan-y;
}
html.gl #scene { display: block; }

.still {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: end;
  padding-right: calc(var(--gutter) * 0.8);
  pointer-events: none;
}
.still-plan { height: min(78vh, 46vw); width: auto; }
html.gl .still, html.gl .still-tower { display: none; }

.still-tower {
  position: sticky;
  top: 6vh;
  order: 2;
  margin-left: auto;
  margin-right: calc(var(--gutter) * 0.6);
  height: 88vh;
  width: auto;
  pointer-events: none;
  mask-image: linear-gradient(#000 76%, transparent), linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-composite: intersect;
}
html:not(.gl) .title { position: absolute; height: 100vh; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: url("/assets/img/grain.png") 0 0 / 220px 220px;
  opacity: 0.05;
  mix-blend-mode: screen;
}

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s5) var(--gutter);
  font: 500 var(--fs-cap)/1 var(--font);
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar-mark, .bar-tower {
  color: var(--ivory-100);
  text-decoration: none;
  padding: var(--s2) 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
}
.bar-mark:hover, .bar-tower:hover { border-bottom-color: var(--ivory-100); }
.bar-mark:active, .bar-tower:active { color: var(--ivory-200); }
.bar-tower[aria-current="true"] { border-bottom-color: var(--ivory-100); }
.bar-geo {
  color: var(--ivory-400);
  font-feature-settings: "tnum", "lnum";
  margin-right: auto;
}
.bar-nav { display: flex; align-items: center; gap: var(--s3); }
.bar-tower { margin-left: var(--s4); }

.dot, .bullet, .tag i {
  display: inline-grid;
  place-items: center;
  width: var(--bullet);
  height: var(--bullet);
  border-radius: 50%;
  font: 500 var(--fs-cap)/1 var(--font);
  letter-spacing: 0;
  font-feature-settings: "tnum", "lnum";
  font-style: normal;
  flex: none;
}
.dot {
  color: var(--c);
  border: 1px solid var(--c);
  text-decoration: none;
  transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
.dot:hover, .dot[aria-current="true"] { background: var(--c); color: var(--graphite-900); }
.dot:active { transform: scale(0.92); }
.bullet, .tag i { background: var(--c); color: var(--graphite-900); }

.title {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 3.2vh;
  pointer-events: none;
}
.word { display: block; overflow: visible; }
.word-main { width: min(80vw, 176vh); }
.word-sub { width: min(18vw, 40vh); margin-left: 0.5%; }
.ltr {
  fill: none;
  stroke: var(--ivory-100);
  stroke-width: var(--stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.word-sub .ltr { stroke: var(--ivory-400); stroke-width: 1.2px; }
.o-ring { stroke: var(--m1); stroke-width: 2.2px; }
html.gl .o-ring { visibility: hidden; }

html.js .ltr {
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
  animation: draw var(--t-draw) var(--ease-out) forwards;
}
html.js .ltr:nth-child(2) { animation-delay: var(--stagger-draw); }
html.js .ltr:nth-child(3) { animation-delay: calc(var(--stagger-draw) * 2); }
html.js .ltr:nth-child(4) { animation-delay: calc(var(--stagger-draw) * 3); }
html.js .ltr:nth-child(5) { animation-delay: calc(var(--stagger-draw) * 4); }
html.js .ltr:nth-child(6) { animation-delay: calc(var(--stagger-draw) * 5); }
html.js .word-sub .ltr { animation-delay: var(--t-reveal); }
@keyframes draw { to { stroke-dashoffset: 0; } }

main { position: relative; z-index: 3; pointer-events: none; }
.copy { pointer-events: auto; max-width: var(--col); position: sticky; top: 17vh; }
.copy-wide { max-width: 36rem; }

section {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: var(--s9) var(--gutter);
}
.hero { min-height: 118vh; align-items: flex-start; }
.ring { min-height: 118vh; }
.turn { min-height: 150vh; }
.tower { min-height: 135vh; }
.steel { min-height: 135vh; }
.finale { min-height: 100vh; flex-direction: column; justify-content: flex-end; gap: var(--s6); padding-bottom: var(--s8); }
.finale .copy { position: static; }
.finale .finale-last { margin-bottom: auto; margin-top: 8vh; max-width: 34rem; }

.hero-copy { position: static; margin-top: calc(100vh - var(--s9) - 10rem); max-width: 31rem; }

.cap {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--ivory-400);
  font: 500 var(--fs-cap)/1.3 var(--font);
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
  margin-bottom: var(--s5);
}

h2 {
  font: 300 var(--fs-h2)/1.04 var(--font);
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
.alt {
  font: 500 var(--fs-cap)/1.3 var(--font);
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
  color: var(--ivory-400);
  margin-top: var(--s3);
}
.year {
  font: 100 var(--fs-numeral)/0.92 var(--font);
  font-feature-settings: "lnum";
  letter-spacing: -0.025em;
  color: var(--ivory-100);
  margin: var(--s6) 0 var(--s5) -0.045em;
  white-space: nowrap;
}
.lead {
  font: 300 var(--fs-lead)/1.38 var(--font);
  color: var(--ivory-100);
  text-wrap: pretty;
}
.turn .lead { margin-top: var(--s6); }
.fact { color: var(--ivory-200); max-width: 34rem; text-wrap: pretty; }
.turn .fact { margin-top: var(--s5); color: var(--ivory-400); }

.stats { display: flex; gap: var(--s7); margin-top: var(--s6); }
.stats > div { border-top: 1px solid var(--rule); padding-top: var(--s3); min-width: 7.5rem; }
.stats dt {
  color: var(--ivory-400);
  font: 500 var(--fs-cap)/1.3 var(--font);
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
}
.stats dd {
  font: 300 28px/1.2 var(--font);
  font-feature-settings: "tnum", "lnum";
  margin-top: var(--s2);
  white-space: nowrap;
}

.link {
  color: var(--ivory-100);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
}
.link:hover { text-decoration-color: var(--ivory-100); }
.link:active { color: var(--ivory-200); }
.hero-copy .link { display: inline-block; margin-top: var(--s6); font: 500 var(--fs-cap)/1.3 var(--font); letter-spacing: var(--track-cap); text-transform: uppercase; }

.finale-ui { display: grid; gap: var(--s4); }
html:not(.gl) .finale-ui { visibility: hidden; }
.seg { display: inline-flex; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); width: max-content; }
.seg button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: var(--s4) var(--s5);
  color: var(--ivory-400);
  font: 500 var(--fs-cap)/1 var(--font);
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--t-micro) var(--ease-out), border-color var(--t-ui) var(--ease-out), opacity var(--t-ui) var(--ease-out);
}
.seg button + button { border-left: 1px solid var(--rule); }
.seg button:hover { color: var(--ivory-100); }
.seg button:active { color: var(--ivory-200); }
.seg button[aria-pressed="true"] { color: var(--ivory-100); border-bottom-color: var(--ivory-100); }
.seg button:disabled { opacity: 0.35; cursor: default; }
.hint, .colophon {
  color: var(--ivory-400);
  font-size: 14px;
  line-height: 1.5;
}
.colophon { max-width: 30rem; display: grid; gap: var(--s3); text-align: left; }
.colophon .link { color: var(--ivory-200); }

.tags { position: fixed; inset: 0; z-index: 4; pointer-events: none; transition: opacity var(--t-ui) var(--ease-out); }
html:not(.gl) .tags { display: none; }
.tags.away { opacity: 0; }
.tag {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s2) var(--s1) 0;
  color: var(--ivory-100);
  font: 500 var(--fs-cap)/1 var(--font);
  letter-spacing: var(--track-cap);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-ui) var(--ease-in), visibility 0s linear var(--t-ui);
}
.tag.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--t-ui) var(--ease-out), visibility 0s; }
.tag i { --bullet: 18px; font-size: 11px; transition: transform var(--t-micro) var(--ease-out); }
.tag b, .tag em {
  opacity: 0;
  transition: opacity var(--t-micro) var(--ease-in);
}
.tag b { font-weight: 500; background: var(--graphite-800); padding: var(--s1) var(--s2); margin-left: calc(var(--s1) * -1); }
.tag em { font-style: normal; color: var(--ivory-400); font-feature-settings: "tnum", "lnum"; }
.tag:hover b, .tag.hot b, .tags.all .tag.hot em { opacity: 1; transition: opacity var(--t-ui) var(--ease-out); }
.tags.all .tag b { background: none; }
.tag:hover i, .tag.hot i { transform: scale(1.18); }
.tag:active i { transform: scale(1); }

html.js .copy > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-exit) var(--ease-in), transform 0s linear var(--t-exit);
}
html.js .in .copy > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
html.js .in .copy > :nth-child(2) { transition-delay: var(--stagger); }
html.js .in .copy > :nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
html.js .in .copy > :nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
html.js .in .copy > :nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
html.js .in .copy > :nth-child(6) { transition-delay: calc(var(--stagger) * 5); }

html:not(.gl) .turn, html:not(.gl) .tower, html:not(.gl) .steel, html:not(.gl) .finale { background: var(--graphite-800); }

body.can-drag { cursor: grab; }
body.dragging { cursor: grabbing; user-select: none; }
body.on-ring { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html.js .copy > * { transform: none; }
}
