/* Showcase — black stage, one violet light, one drum of work. */
:root {
  --black: #000;
  --raised: #121214;
  --raised-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #8e8e93;
  --violet: #a99bff;
  --violet-glow: 118, 96, 255;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-card: 26px;
  --r-shot: 16px;
  --pad-card: 10px;

  --nav-h: 60px;
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--black); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--text); color: var(--black);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 max(20px, calc((100vw - 1240px) / 2));
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.is-solid {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--text); }
.mark svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; height: 230vh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy {
  position: absolute; left: 0; right: 0;
  top: clamp(88px, 13vh, 150px);
  z-index: 3;
  padding: 0 20px;
  text-align: center;
  transform: translate3d(0, calc(var(--p, 0) * -90px), 0);
  opacity: calc(1 - var(--p, 0) * 2.4);
  will-change: transform, opacity;
}
h1 {
  font-size: clamp(46px, 8vw, 116px);
  line-height: 0.94;
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: -0.045em;
  max-width: 11ch;
  margin: 0 auto;
  text-wrap: balance;
}
.lede {
  max-width: 34em;
  margin: 26px auto 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}
.actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* appears once the drum has risen */
.caption {
  position: absolute; z-index: 3; left: 0; right: 0;
  top: clamp(84px, 11vh, 120px);
  padding: 0 20px;
  text-align: center;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
  opacity: clamp(0, (var(--p, 0) - 0.32) * 4.5, 1);
  transform: translate3d(0, calc((1 - clamp(0, (var(--p, 0) - 0.32) * 4.5, 1)) * 28px), 0);
  pointer-events: none;
}

/* page-load: the one orchestrated moment */
.hero-copy > * { animation: rise 1.1s var(--ease-out) both; }
.hero-copy > .lede { animation-delay: 0.12s; }
.hero-copy > .actions { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* light: the planet limb under the drum */
.planet {
  position: absolute; z-index: 1;
  left: 50%;
  top: var(--planet-y, 80%);
  width: max(2400px, 240vw); aspect-ratio: 1;
  transform: translate3d(-50%, var(--plift, 0px), 0);
  border-radius: 50%;
  background: radial-gradient(closest-side, #000 99.2%, rgba(var(--violet-glow), 0.9) 99.7%, transparent);
  box-shadow:
    0 -1px 0 rgba(214, 206, 255, 0.55),
    0 -24px 80px rgba(var(--violet-glow), 0.30),
    0 -110px 260px rgba(var(--violet-glow), 0.20),
    inset 0 30px 90px rgba(var(--violet-glow), 0.20);
}
.glow {
  position: absolute; z-index: 0; inset: 0;
  background:
    radial-gradient(70% 45% at 50% var(--planet-y, 80%), rgba(var(--violet-glow), 0.22), transparent 70%);
}

/* the drum */
.stage {
  --pw: clamp(190px, 21vw, 330px);
  --ph: calc(var(--pw) * 0.625);
  --drum-y: 63%;
}
.drum-wrap {
  position: absolute; z-index: 2;
  left: 0; right: 0; top: var(--drum-y); height: 0;
  perspective: 2000px;
  perspective-origin: 50% -40%;
}
.drum {
  position: absolute; left: 50%; top: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--lift, 0px), 0) scale3d(var(--s, 1), var(--s, 1), var(--s, 1)) translateZ(calc(var(--R) * -1)) rotateX(var(--tilt, -7deg));
}
.row { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.row-a { transform: translateY(calc(var(--ph) * -0.5 - 8px)) rotateY(var(--rot-a, 0deg)); }
.row-b { transform: translateY(calc(var(--ph) * 0.5 + 8px)) rotateY(var(--rot-b, 0deg)); }
.panel {
  position: absolute;
  width: var(--pw); height: var(--ph);
  left: calc(var(--pw) * -0.5); top: calc(var(--ph) * -0.5);
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0b0b0d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.panel img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.6s; }
.panel.is-in img { opacity: 1; }
.panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--violet-glow), 0.22), transparent 35%), #000;
  background-blend-mode: normal;
  opacity: var(--shade, 0);
  pointer-events: none;
}

/* ---------- work ---------- */
.work {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 0;
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.col-head {
  position: sticky; top: var(--nav-h); z-index: 4;
  padding: 26px 4px 22px;
  background: linear-gradient(#000 78%, rgba(0, 0, 0, 0));
}
.col-head h2 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: -0.035em;
}
.col-head p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 36em; }
.list { display: grid; gap: 24px; padding-bottom: 8px; }

.card {
  position: relative;
  background: var(--raised);
  border-radius: var(--r-card);
  padding: var(--pad-card) var(--pad-card) 22px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.shot {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-shot);
  overflow: hidden;
  background: #0b0b0d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease-out); }
.card:hover .shot img { transform: scale(1.025); }

.meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 12px 0;
}
.title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.icon { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--raised-2); box-shadow: 0 0 0 1px var(--line); }
h3 { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.domain {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 3px;
  font-size: 15px; color: var(--muted);
  transition: color 0.2s;
  overflow-wrap: anywhere;
}
.domain:hover { color: var(--text); }
.ext { width: 11px; height: 11px; flex: none; }
.archived { color: var(--muted); font-size: 13px; padding: 1px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }

.cap { display: grid; justify-items: end; text-align: right; flex: none; }
.cap-num { font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cap-label { font-size: 13px; color: var(--muted); margin-top: 3px; }
.grad { margin-top: 6px; font-size: 13px; color: var(--violet); display: inline-flex; align-items: center; gap: 6px; }
.grad::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px rgba(var(--violet-glow), 0.9); }

.desc { padding: 12px 12px 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 46ch; }

.ca {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 12px 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ticker { font-weight: 600; }
.ca code { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.copy {
  margin-left: auto;
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, transform 0.15s var(--ease-out);
}
.copy:hover { background: rgba(255, 255, 255, 0.14); }
.copy:active { transform: scale(0.96); }
.copy.is-done { background: rgba(var(--violet-glow), 0.22); box-shadow: inset 0 0 0 1px rgba(var(--violet-glow), 0.6); }
.chart { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.copy.visit { display: inline-flex; align-items: center; gap: 6px; }
.built-label { font-size: 13px; color: var(--muted); }
.built-tech { font-size: 13px; font-weight: 600; }
.chart:hover { color: var(--text); }

/* segmented control (phones and narrow tablets) */
.seg { display: none; }

/* ---------- end ---------- */
.end {
  position: relative; overflow: hidden;
  margin-top: 160px;
  padding: 140px 20px 210px;
  text-align: center;
  isolation: isolate;
}
.end-glow {
  position: absolute; z-index: -1; left: 50%; bottom: -1px;
  width: max(2000px, 200vw); aspect-ratio: 1; transform: translate(-50%, 96%);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 -1px 0 rgba(214, 206, 255, 0.5), 0 -30px 120px rgba(var(--violet-glow), 0.35), 0 -140px 300px rgba(var(--violet-glow), 0.18);
}
.end h2 {
  font-size: clamp(44px, 7vw, 96px); line-height: 0.96; font-weight: 600; font-stretch: 88%; letter-spacing: -0.045em;
}
.end p { max-width: 30em; margin: 22px auto 34px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }

.foot { padding: 28px 20px 40px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.foot p { max-width: 60em; margin: 0 auto; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--black);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 999px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { height: 190vh; }
  .stage { --pw: clamp(168px, 44vw, 260px); --drum-y: 68%; }
  .work { padding-top: 24px; }
  .seg {
    position: sticky; top: calc(var(--nav-h) + 8px); z-index: 6;
    display: grid; grid-template-columns: 1fr 1fr;
    max-width: 420px; margin: 0 auto 8px; padding: 4px;
    border-radius: 999px;
  }
  .seg::after {
    content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
    background: #1c1c1f; box-shadow: inset 0 0 0 1px var(--line);
  }
  .seg button {
    position: relative; z-index: 1;
    height: 40px; border: 0; background: none; border-radius: 999px;
    font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
    transition: color 0.25s;
  }
  .seg button[aria-selected="true"] { color: var(--black); }
  .seg-thumb {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    border-radius: 999px; background: var(--text);
    transition: transform 0.35s var(--ease-out);
  }
  .seg.is-looks .seg-thumb { transform: translateX(100%); }
  .cols { grid-template-columns: 1fr; }
  .cols[data-active="coins"] #looks, .cols[data-active="looks"] #coins { display: none; }
  .col-head { position: static; background: none; padding: 14px 4px 18px; text-align: center; }
  .col-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .col-head p { margin: 0 auto; }
  .seg::before {
    /* full-width black shelf; box-shadow paints past the edges without widening the page */
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -14px; bottom: -10px;
    background: #000; box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax);
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { height: 48px; padding: 0 22px; font-size: 16px; }
  .lede { margin-top: 20px; }
  .meta { flex-direction: column; gap: 12px; }
  .cap { justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; }
  .cap .grad { grid-column: 1 / -1; margin-top: 2px; }
  .ca .copy { margin-left: 0; height: 40px; padding: 0 16px; }
  .chart { min-height: 40px; }
  .built-tech { flex-basis: 100%; order: 2; }
  .built .visit { order: 3; }
  .end { margin-top: 100px; padding: 100px 20px 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { position: relative; }
  .hero-copy > * { animation: none; }
  .shot img, .btn, .toast, .seg-thumb { transition: none; }
}
