/* GPU 404 — the site is a rack. Palette eyedropped from the account banner. */

@font-face { font-family: "InterV"; src: url("../assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "InterV"; src: url("../assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "InterV"; src: url("../assets/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "MonoV"; src: url("../assets/fonts/jbmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MonoV"; src: url("../assets/fonts/jbmono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #010b0a;
  --canvas: #02110f;
  --panel: #06201c;
  --panel-2: #041a17;
  --line: #0e3a33;
  --mint: #63d8be;
  --hi: #a8f2df;
  --dim: #7fb3a7;
  --text: #dcf3ec;
  --gold: #c9a13c;
  --red: #c0392b;
  --sans: "InterV", ui-sans-serif, system-ui, sans-serif;
  --mono: "MonoV", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.px { image-rendering: pixelated; }

/* ── the ground ─────────────────────────────────────────────────────────── */

/* The ground is drawn, not filled: `js/bg.js` paints an aurora, a generated circuit board and the
   current running through it. The CSS keeps only the base colour and the vignette. */
#ground { position: fixed; inset: 0; z-index: 0; background: var(--ink); }
#board { position: absolute; inset: 0; display: block; }
#ground #vig {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 220px 60px rgba(1, 11, 10, 0.72);
}
#scene { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
/* The readability scrim. Without it the rack sits straight behind the headline and the page
   stops being readable at exactly the moment it looks most impressive. */
#scrim {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  /* The card no longer crosses the copy, so this only has to lift text contrast a little. Any
     heavier and it wipes the board off the left half of the screen. */
  background: linear-gradient(90deg, rgba(2, 17, 15, 0.62) 0%, rgba(2, 17, 15, 0.34) 34%, rgba(2, 17, 15, 0.08) 52%, transparent 66%);
}
@media (max-width: 900px) { #scrim { background: rgba(2, 17, 15, 0.66); } }
#scene canvas { width: 100% !important; height: 100% !important; display: block; }

/* ── the top bar ────────────────────────────────────────────────────────── */

#top {
  position: sticky; top: 0; z-index: 60; height: 74px;
  display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(1, 11, 10, 0.82); backdrop-filter: blur(10px);
}
#top .brand { display: flex; align-items: center; gap: 13px; flex: none; }
#top .brand img { width: 34px; height: 34px; }
#top .brand span { font-family: var(--mono); font-size: 15px; letter-spacing: 0.26em; color: var(--hi); }
#top nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
#top nav a {
  position: relative; padding: 9px 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); transition: color .16s;
}
#top nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
  background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
#top nav a:hover { color: var(--text); }
#top nav a.on { color: var(--hi); }
#top nav a.on::after { transform: scaleX(1); }
#top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
#top .btn { padding: 11px 20px; font-size: 12px; }
/* Drawn in CSS, not typed: the subset fonts carry no box-drawing glyphs, so a text hamburger
   renders as nothing at all and the button silently disappears. */
#burger {
  display: none; position: relative; width: 46px; height: 40px;
  border: 1px solid var(--mint); background: rgba(99, 216, 190, 0.06); cursor: pointer;
}
#burger i {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--hi);
  transition: transform .2s, opacity .15s;
}
#burger i:nth-child(1) { top: 13px; }
#burger i:nth-child(2) { top: 19px; }
#burger i:nth-child(3) { top: 25px; }
#burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
#burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
#burger:hover { background: rgba(99, 216, 190, 0.14); }
#menu {
  position: fixed; left: 0; right: 0; top: 74px; z-index: 55;
  background: var(--ink); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 8px 0 14px;
}
#menu.open { display: flex; }
#menu a {
  padding: 15px clamp(16px, 4vw, 46px); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
#menu a.on { color: var(--hi); }

/* ── the footer ─────────────────────────────────────────────────────────── */

#foot {
  position: relative; z-index: 12; border-top: 1px solid var(--line);
  padding: 54px clamp(16px, 4vw, 46px) 46px; background: rgba(1, 11, 10, 0.8);
}
#foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; max-width: 1500px; margin: 0 auto; }
#foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; color: var(--mint); text-transform: uppercase; margin-bottom: 16px; }
#foot p { font-size: 14px; line-height: 1.7; color: var(--dim); max-width: 46ch; }
#foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
#foot ul a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--dim); }
#foot ul a:hover { color: var(--hi); }
#foot .base {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  max-width: 1500px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
}
#foot .base span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; color: var(--dim); }

/* ── layout ─────────────────────────────────────────────────────────────── */

main { position: relative; z-index: 10; }
.slotwrap { min-height: 100dvh; display: flex; align-items: center; padding: 96px 7vw; }
.inner { width: 100%; max-width: 1180px; }
/* On a wide screen the copy column stops well short of the rack. Letting it run the full width
   is what puts a ticker on top of a graphics card. */
@media (min-width: 1200px) { .inner { max-width: min(1180px, 56vw); } }

.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.34em; color: var(--mint);
  text-transform: uppercase; margin-bottom: 22px;
}
h1 {
  font-size: clamp(42px, 7.2vw, 92px); font-weight: 800; line-height: 0.97;
  letter-spacing: -0.028em; text-transform: uppercase;
}
h2 {
  font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.024em; text-transform: uppercase;
}
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lede { margin-top: 26px; max-width: 60ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; color: var(--dim); }
.mono { font-family: var(--mono); }
.note { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }

.cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px;
  border: 1px solid var(--mint); color: var(--hi);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(99, 216, 190, 0.06); transition: background .18s, color .18s;
  cursor: pointer;
}
.btn:hover { background: var(--mint); color: var(--ink); }
.btn.ghost { border-color: var(--line); color: var(--dim); background: transparent; }
.btn.ghost:hover { border-color: var(--mint); color: var(--hi); background: rgba(99, 216, 190, 0.06); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: rgba(99, 216, 190, 0.06); color: var(--hi); }

/* ── the bill of materials ──────────────────────────────────────────────── */

.bom { margin-top: 44px; border-top: 1px solid var(--line); }
.bom .row {
  display: grid; grid-template-columns: 150px 1fr auto auto; gap: 20px; align-items: center;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.bom .part { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--dim); }
.bom .what { font-size: 15px; color: var(--dim); }
.bom .tick { font-size: 26px; font-weight: 800; color: var(--mint); letter-spacing: -0.01em; }
.bom .w { font-family: var(--mono); font-size: 14px; color: var(--hi); min-width: 52px; text-align: right; }

/* ── panels, stats, steps ───────────────────────────────────────────────── */

.grid { display: grid; gap: 18px; margin-top: 44px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.panel { background: rgba(5, 27, 24, 0.955); border: 1px solid var(--line); padding: 26px; }
.panel h3 { margin-bottom: 12px; color: var(--text); }
.panel p { font-size: 15px; line-height: 1.6; color: var(--dim); }
.panel .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--mint); margin-bottom: 16px; }

.stat { background: rgba(5, 27, 24, 0.955); border: 1px solid var(--line); padding: 22px 24px; }
.stat .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--dim); text-transform: uppercase; }
.stat .v { margin-top: 12px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--hi); font-variant-numeric: tabular-nums; }
.stat .u { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 6px; letter-spacing: 0.14em; }

/* ── the generation frieze ──────────────────────────────────────────────── */

.frieze { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; }
.gen { border: 1px solid var(--line); background: rgba(4, 22, 20, 0.95); padding: 18px; }
.gen img { width: 100%; filter: drop-shadow(0 0 18px rgba(99, 216, 190, 0.22)); }
.gen b { display: block; margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--mint); }
.gen span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--dim); }

/* ── the toll ramp ──────────────────────────────────────────────────────── */

.ramp { margin-top: 40px; border: 1px solid var(--line); background: rgba(4, 22, 20, 0.95); padding: 28px; }
.ramp .bar { position: relative; height: 130px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ramp .fill { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(99, 216, 190, 0.5), rgba(99, 216, 190, 0.06)); clip-path: polygon(0 0, 100% 88%, 100% 100%, 0 100%); }
.ramp .lbl { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--dim); }

/* ── the app console ────────────────────────────────────────────────────── */

.who { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--dim); }
.console { padding: 34px 4vw 90px; }
.section { margin-top: 46px; }
.section > h2 { font-size: clamp(24px, 3vw, 34px); }
.section > .note { margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.card { border: 1px solid var(--line); background: rgba(5, 27, 24, 0.955); padding: 16px; }
.card img { width: 100%; }
.card .id { margin-top: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--hi); }
.card .meta { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--dim); }
.card .act { margin-top: 14px; width: 100%; justify-content: center; padding: 11px 0; }
.card.racked { border-color: var(--mint); box-shadow: 0 0 0 1px rgba(99, 216, 190, 0.25) inset; }

.empty { margin-top: 22px; border: 1px dashed var(--line); padding: 34px; text-align: center; color: var(--dim); font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; }

table.hold { width: 100%; border-collapse: collapse; margin-top: 22px; }
table.hold th, table.hold td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
table.hold th { font-size: 11px; letter-spacing: 0.24em; color: var(--dim); text-transform: uppercase; }
table.hold td.n { text-align: right; font-variant-numeric: tabular-nums; color: var(--hi); }
table.hold td.t { color: var(--mint); font-weight: 700; letter-spacing: 0.1em; }

.banner {
  margin-top: 26px; border: 1px solid var(--mint); background: rgba(99, 216, 190, 0.07);
  padding: 18px 22px; background: rgba(5, 27, 24, 0.9); font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--hi);
  line-height: 1.7;
}
.scroller { overflow-x: auto; }

/* ── responsive: the nav collapses into a menu ─────────────────────────── */

@media (max-width: 980px) {
  #top nav { display: none; }
  #burger { display: block; }
  #top .right .btn.big { display: none; }
  .slotwrap { padding: 76px 6vw; min-height: auto; }
  .g3, .g4, .g2 { grid-template-columns: 1fr; }
  .bom .row { grid-template-columns: 96px 1fr auto; }
  .bom .what { display: none; }
  #foot .cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .bom .row { grid-template-columns: 84px 1fr auto; gap: 12px; }
  .bom .tick { font-size: 21px; }
}

/* Only the very narrowest phones lose the wordmark; at 390 there is room for it. */
@media (max-width: 349px) { #top .brand span { display: none; } }

/* ── the exploded view's labels, riding their own 3D anchors ────────────── */

#labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s; }
.lbl3d {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 7px 12px; border: 1px solid var(--mint);
  background: rgba(1, 11, 10, 0.88); backdrop-filter: blur(4px);
  display: flex; align-items: baseline; gap: 12px;
}
.lbl3d i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--dim); }
.lbl3d b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--hi); }
.lbl3d u { text-decoration: none; font-family: var(--mono); font-size: 12px; color: var(--mint); }

/* ── the film ───────────────────────────────────────────────────────────── */

.filmwrap { position: relative; z-index: 12; min-height: 100dvh; display: flex; align-items: center; padding: 96px 5vw; }
.filminner { width: 100%; max-width: 1500px; margin: 0 auto; }
.filmhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.filmframe {
  position: relative; border: 1px solid var(--line); background: #000;
  box-shadow: 0 0 90px rgba(99, 216, 190, 0.16);
}
.filmframe video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.playpause {
  position: absolute; left: 18px; bottom: 18px; width: 54px; height: 54px;
  border: 1px solid var(--mint); background: rgba(1, 11, 10, 0.72); color: var(--hi);
  font-family: var(--mono); font-size: 15px; cursor: pointer; letter-spacing: 0.06em;
  transition: background .18s, color .18s;
}
.playpause:hover { background: var(--mint); color: var(--ink); }
.filmfoot { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.filmfoot span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }

/* ── the generation ladder ──────────────────────────────────────────────── */

.ladder { margin-top: 40px; border-top: 1px solid var(--line); }
.rung {
  display: grid; grid-template-columns: 92px 1fr 34%; gap: 20px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.rung b { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--mint); }
.rung span { font-size: 15px; color: var(--dim); }
.rung i {
  display: block; height: 8px; background: var(--panel); border: 1px solid var(--line); position: relative;
}
.rung i::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--f);
  background: linear-gradient(90deg, #1c6f60, var(--mint));
}

/* ── ramp tags ──────────────────────────────────────────────────────────── */

.ramp .bar { position: relative; }
.ramp .tag {
  position: absolute; font-family: var(--mono); font-size: 13px; color: var(--hi);
  padding: 4px 9px; border: 1px solid var(--mint); background: rgba(1, 11, 10, 0.8);
}
.ramp .tag.start { left: 8px; top: 4px; }
.ramp .tag.end { right: 8px; bottom: 6px; }

@media (max-width: 980px) {
  #labels { display: none; }
  .filmwrap { min-height: auto; padding: 68px 6vw; }
  .rung { grid-template-columns: 74px 1fr; }
  .rung i { grid-column: 1 / -1; }
  /* Three captions on one line run together into one unreadable sentence at this width. */
  .filmfoot { flex-direction: column; gap: 6px; }
  .filmfoot span { font-size: 11px; letter-spacing: 0.12em; }
}

/* ── the console's own card ─────────────────────────────────────────────── */

#scene.boxed {
  position: relative; inset: auto; z-index: 1; opacity: 1;
  width: 100%; height: 100%; min-height: 320px;
  border: 1px solid var(--line); background: rgba(3, 18, 16, 0.92);
}
.yourcard {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: stretch;
  margin-top: 34px;
}
.ycinfo { border: 1px solid var(--line); background: rgba(5, 27, 24, 0.955); padding: 30px; }
.ycinfo h2 { font-size: clamp(26px, 3vw, 40px); }
.ycrow { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.ycrow div { display: flex; flex-direction: column; gap: 7px; }
.ycrow .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--dim); text-transform: uppercase; }
.ycrow .v { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; color: var(--hi); font-variant-numeric: tabular-nums; }
.ycbar { margin-top: 26px; height: 10px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.ycbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--f); background: linear-gradient(90deg, #1c6f60, var(--mint)); transition: width .4s; }

/* the rig table, with the weights drawn rather than only written */
table.hold td.bar { width: 22%; }
table.hold td.bar i {
  display: block; height: 8px; background: var(--panel); border: 1px solid var(--line); position: relative;
}
table.hold td.bar i::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--f);
  background: linear-gradient(90deg, #1c6f60, var(--mint));
}

@media (max-width: 980px) {
  /* The account line plus a full-size Connect plus the burger overruns a phone's width by 100px.
     The address already appears in the console body; the button and the menu do not. */
  #top .right .who { display: none; }
  #top .right .btn { padding: 10px 14px; font-size: 11px; letter-spacing: 0.14em; }
  .yourcard { grid-template-columns: 1fr; }
  #scene.boxed { min-height: 260px; }
  table.hold td.bar { display: none; }
  table.hold th.bar { display: none; }
}
