:root {
  color-scheme: dark;
  --bg: #060606;
  --ink: #ebe7df;
  --body: #c9c4bb;
  --dim: #a29d94;
  --faint: #8a857c;
  --line: #2a2926;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 17px/1.6 var(--serif); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; font: 14px var(--mono); }
.skip:focus { top: 12px; }

/* the accepted coin, fixed behind everything */
#coin { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.vignette { position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(85% 90% at 0% 100%, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 72%),
  linear-gradient(to right, rgba(0,0,0,.68) 0%, rgba(0,0,0,.5) 22%, rgba(0,0,0,.18) 48%, rgba(0,0,0,0) 66%),
  radial-gradient(120% 90% at 78% 30%, transparent 40%, rgba(0,0,0,.5) 100%); }
.no-webgl #coin { display: none; }

/* header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); background: linear-gradient(to bottom, rgba(6,6,6,.85), rgba(6,6,6,0)); }
.mark { font: 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 12px 0; }
.top nav { display: flex; gap: 6px; font: 13px/1 var(--mono); }
.top nav a { text-decoration: none; color: var(--dim); padding: 13px 12px; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease; }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta { color: var(--ink); border: 1px solid #3a3833; padding: 13px 16px; }
.top nav .nav-cta:hover { border-color: #8a857c; }

main { position: relative; }
section { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px var(--pad) 80px; display: flex; flex-direction: column; justify-content: center; }
.wrap { width: 100%; }
.copy { max-width: 36rem; text-shadow: 0 1px 14px rgba(0,0,0,.85); }

.kicker { font: 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0 0 22px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; color: var(--ink); margin: 0 0 22px; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; }
h3 { font: 400 1.25rem/1.25 var(--serif); margin: 0 0 10px; color: var(--ink); }
p { margin: 0 0 14px; color: var(--body); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: #d8d3ca; max-width: 32rem; }
.fact { font: 13px/1.7 var(--mono); color: var(--dim); max-width: 30rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 14px/1 var(--mono); letter-spacing: .04em; text-decoration: none; background: var(--ink); color: #0a0a0a; border: 1px solid var(--ink); transition: transform .18s var(--ease), background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #4a4740; }
.btn.ghost:hover { border-color: var(--ink); }

/* the hero enters once */
.hero .copy > * { animation: rise .9s var(--ease) both; }
.hero .copy > :nth-child(2) { animation-delay: .08s; }
.hero .copy > :nth-child(3) { animation-delay: .16s; }
.hero .copy > :nth-child(4) { animation-delay: .24s; }
.hero .copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* stills: a dark sheet over the coin so the pictures read cleanly */
.stills { min-height: 0; justify-content: flex-start; padding-bottom: 0; background: linear-gradient(to bottom, rgba(6,6,6,0) 0, rgba(6,6,6,.9) 140px, rgba(6,6,6,.9) 100%); }
.stills .wrap { padding-bottom: 0; }
.stills-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 40px; margin-bottom: 28px; }
.stills-head h2 { margin: 0; }
.stills-head p { margin: 0; max-width: 26rem; color: var(--dim); }
.drawers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.drawers button { font: 13px/1 var(--mono); color: var(--dim); background: transparent; border: 1px solid var(--line); min-height: 44px; padding: 0 14px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.drawers button:hover { color: var(--ink); border-color: #5c5952; }
.drawers button[aria-selected="true"] { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.drawer-line { font: 13px/1.6 var(--mono); color: var(--faint); min-height: 1.6em; margin: 0 0 18px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid li { margin: 0; }
.grid a { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #121110; }
.grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s ease; }
.grid a:hover img { transform: scale(1.03); }
.grid .tag { position: absolute; left: 0; bottom: 0; padding: 10px 12px; font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #e9e5dd; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); width: 100%; }
.grid.swap img { opacity: 0; }

/* what we make, how it runs: text on the shadow side */

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 64rem; margin-top: 18px; }
.cols article { border-top: 1px solid #3a3833; padding-top: 20px; }
.cols p, .steps p { color: var(--body); font-size: 1rem; }
.steps { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; max-width: 54rem; }
.steps li { counter-increment: s; border-top: 1px solid #3a3833; padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 12px/1 var(--mono); letter-spacing: .16em; color: var(--faint); margin-bottom: 14px; }
.work, .how { isolation: isolate; }
.work::before, .how::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to right, rgba(6,6,6,.72) 0%, rgba(6,6,6,.45) 55%, rgba(6,6,6,0) 85%); }
.how::before { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 260px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 260px), transparent); }

.foot { position: relative; padding: 34px var(--pad) 44px; border-top: 1px solid var(--line); background: var(--bg); font: 12px/1.75 var(--mono); color: var(--faint); }
.foot p { margin: 0 0 8px; max-width: 64rem; color: var(--faint); }
.foot a { color: var(--dim); }

/* viewer */
.box { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; }
.box::backdrop { background: rgba(4,4,4,.95); }
.box[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.box img { max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); width: auto; height: auto; object-fit: contain; }
.bar { display: flex; align-items: center; gap: 10px; font: 13px/1 var(--mono); color: var(--dim); }
.bar button { font: inherit; color: var(--ink); background: transparent; border: 1px solid #3a3833; min-height: 44px; padding: 0 16px; cursor: pointer; }
.bar button:hover { border-color: #8a857c; }
.count { min-width: 5.5em; text-align: center; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .work::before, .how::before { background: rgba(6,6,6,.78); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding: 10px var(--pad); background: rgba(6,6,6,.92); }
  .top nav a:not(.nav-cta) { display: none; }
  section { padding: 96px var(--pad) 64px; }
  .hero { justify-content: flex-end; padding-bottom: 56px; }
  .hero .copy { background: linear-gradient(to top, rgba(6,6,6,.85), rgba(6,6,6,.55) 70%, rgba(6,6,6,0)); margin: 0 calc(var(--pad) * -1); padding: 40px var(--pad) 0; }
  .actions .btn { flex: 1 1 100%; }
  .drawers { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 14px; padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .drawers button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .copy > * { animation: none; }
  .btn, .grid img { transition: none; }
}
.foot .who { margin: 0 0 14px; }
.foot .who summary { cursor: pointer; display: inline-block; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.foot .who summary::-webkit-details-marker { display: none; }
.foot .who summary:hover { color: var(--ink); }
.foot .who p { margin: 8px 0 0; }
