/* Frieze: a dark room, carved stone, one light per GPU. Type cut like a lintel: wide, heavy capitals lit by the same light. */
@font-face { font-family: "Archivo"; src: url("shared/Archivo-Var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --night: #000;
  --bone: #f1efea;
  --dim: rgba(241, 239, 234, .64);
  --faint: rgba(241, 239, 234, .22);
  --flame: #ffc98a;
  --pad: clamp(16px, 4.5vw, 64px);
  --serif: "Archivo", "Arial Black", sans-serif;
  --ui: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--bone); font: 400 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 3px; }

/* the stone: fixed behind everything. Without WebGPU or WebGL2 it falls back to the photo under a still raking gradient */
.stone { position: fixed; inset: 0; z-index: 0; background: #000; }
.stone canvas { display: block; width: 100% !important; height: 100% !important; }
.stone.still { background: radial-gradient(60% 70% at 30% 30%, transparent 0, rgba(0,0,0,.85) 70%), url("relief/wall.jpg") center / cover no-repeat; }
/* a soft vignette so type always sits on shadow, never on lit stone */
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0, transparent 22%, transparent 70%, rgba(0,0,0,.6) 100%); }

/* ---------- header ---------- */
.nav { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); }
.lockup { display: inline-flex; align-items: center; gap: 10px; font: 800 17px/1 var(--serif); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; }
.lockup img { display: block; width: 22px; height: 22px; margin-top: -3px; }
.links { display: flex; align-items: center; gap: 6px; font: 400 13px/1 var(--ui); }
.sheet { display: flex; align-items: center; }
.sheet a { padding: 9px 10px; color: var(--dim); transition: color .2s; }
.sheet a:hover { color: var(--bone); }
.sheet .ic { display: inline-flex; padding: 9px 7px; }
.solid { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--bone); color: var(--bone); background: transparent; transition: background .2s, color .2s; }
.solid:hover { background: var(--bone); color: #000; }
.links > .solid { margin-left: 8px; }
.menu-btn { display: none; }

/* ---------- plates: each section is one photograph of carved stone ---------- */
main { position: relative; z-index: 2; }
.plate { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--pad) 120px; }
/* a door holds its stone for two screens: the copy stays pinned while you read, then the next plate takes the wall */
.plate.door { display: block; height: 220vh; height: 220svh; padding-top: 0; padding-bottom: 0; }
.door .card { position: sticky; top: 24vh; }
.plate.right .card { margin-left: auto; }
.kicker { margin: 0 0 20px; display: flex; align-items: baseline; gap: 14px; font: 500 13px/1 var(--ui); color: var(--dim); }
.kicker b { font: 800 13px/1 var(--serif); font-stretch: 125%; color: var(--bone); letter-spacing: .04em; }
/* the --sx/--sy shadow is set every frame from the light's position: the letters cast shadows like the stone does */
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.012em;
  text-shadow: calc(var(--sx, 0) * 1px) calc(var(--sy, 3) * 1px) calc(var(--sb, 8) * 1px) rgba(0,0,0,.9), calc(var(--sx, 0) * -.12px) calc(var(--sy, 3) * -.12px) 0 rgba(255,255,255,.18); }
h1 em, h2 em { font-style: normal; }

.hero { flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: 15vh; }
.hero h1 { font-size: clamp(40px, 6.4vw, 118px); line-height: .9; }
.hero .sub { margin: 26px 0 0; max-width: 30em; font-size: 16px; color: var(--dim); text-shadow: 0 1px 14px rgba(0,0,0,.9); }
.ask { margin-top: 30px; display: flex; align-items: center; width: min(460px, 100%); height: 52px; padding: 0 6px 0 18px;
  background: rgba(0,0,0,.45); border: 1px solid var(--faint); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s; }
.ask:focus-within { border-color: var(--bone); }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--bone); font: 400 15px/1 var(--ui); }
.ask input::placeholder { color: var(--dim); }
.ask button { flex: none; width: 40px; height: 40px; border: 0; background: var(--bone); color: #000; display: grid; place-items: center; cursor: pointer; }

.card { max-width: 624px; }
.card h2 { font-size: clamp(34px, 4.3vw, 76px); line-height: .92; }
.card .body { margin: 24px 0 0; font-size: 16px; color: var(--dim); text-shadow: 0 1px 14px rgba(0,0,0,.95); }
.acts { margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 14px; }
.acts a:not(.solid) { padding: 4px 0; border-bottom: 1px solid var(--faint); transition: border-color .2s; }
.acts a:not(.solid):hover { border-color: var(--bone); }
.card { padding: 48px 52px; margin: -48px -52px; background: radial-gradient(closest-side, rgba(0,0,0,.62) 45%, rgba(0,0,0,0)); }

/* copy rises into place as its plate takes the wall */
.plate > *, .card > * { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.door .card { transition: none; }
.js .plate:not(.in) .card > *, .js .plate.hero:not(.in) > * { opacity: 0; transform: translateY(18px); }
.card > :nth-child(2), .hero > :nth-child(2) { transition-delay: .08s; }
.card > :nth-child(3), .hero > :nth-child(3) { transition-delay: .16s; }
.card > :nth-child(4), .hero > :nth-child(4) { transition-delay: .24s; }

/* ---------- the hud: live crew, hint, plate index ---------- */
.hud { position: fixed; z-index: 9; left: var(--pad); right: var(--pad); bottom: 22px; display: flex; align-items: center; gap: 22px; pointer-events: none; font: 400 12px/1 var(--ui); color: var(--dim); transition: opacity .4s; }
.hud.gone { opacity: 0; }
.crew { margin: 0; display: inline-flex; align-items: center; gap: 9px; }
.crew .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.crew.live .dot { background: var(--flame); box-shadow: 0 0 10px var(--flame); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.hint { margin: 0; font-size: 12px; color: var(--faint); }
.pager { margin: 0 0 0 auto; padding: 0; list-style: none; display: flex; gap: 4px; pointer-events: auto; }
.pager a { display: inline-grid; place-items: center; min-width: 34px; height: 28px; font: 800 12px/1 var(--serif); font-stretch: 125%; color: var(--faint); transition: color .2s; }
.pager a:hover, .pager a.on { color: var(--bone); }

/* ---------- footer: off the wall, into the dark ---------- */
.foot { position: relative; z-index: 2; background: #000; padding: 120px var(--pad) 36px; border-top: 1px solid var(--faint); }
.manifesto { margin: 0; max-width: 18em; font: 800 clamp(28px, 3.6vw, 60px)/.95 var(--serif); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.012em; }
.manifesto em { font-style: normal; }
.cols { margin-top: 100px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.col h3 { margin: 0 0 16px; font: 500 13px/1 var(--ui); color: var(--bone); }
.col a { display: block; padding: 5px 0; font-size: 14px; color: var(--dim); }
.col a:hover { color: var(--bone); }
.legal { margin-top: 80px; padding-top: 20px; border-top: 1px solid var(--faint); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--dim); }
.legal a:hover { color: var(--bone); }
.legal .credit { margin-left: auto; }

/* contract address: shown under the ask box and in the footer once it is set in site.js */
.ca-line, .foot-ca { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin: 20px 0 0; font: 400 12px/1 var(--ui); color: var(--dim); }
.foot-ca { margin-top: 34px; }
.ca-line code, .foot-ca code { color: var(--bone); font: 400 13px/1 ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-line button, .foot-ca button { flex: none; padding: 6px 10px; border: 1px solid var(--faint); background: transparent; color: var(--bone); font: 400 12px/1 var(--ui); cursor: pointer; }
.ca-line button:hover, .foot-ca button:hover { border-color: var(--bone); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav { height: 64px; background: linear-gradient(180deg, rgba(0,0,0,.8), transparent); }
  .lockup { font-size: 15px; }
  .menu-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--faint); background: transparent; color: var(--bone); font: 400 13px/1 var(--ui); cursor: pointer; }
  .links > .solid { height: 34px; padding: 0 12px; margin-left: 6px; }
  .sheet { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 4px var(--pad) 18px; background: rgba(0,0,0,.94); border-bottom: 1px solid var(--faint); }
  .nav.open .sheet { display: flex; }
  .sheet a { padding: 14px 0; font: 800 18px/1 var(--serif); font-stretch: 125%; text-transform: uppercase; color: var(--bone); border-top: 1px solid var(--faint); }
  .sheet a:first-child { border-top: 0; }
  .sheet .ic { display: none; }
  .plate { padding: 96px var(--pad) 110px; align-items: flex-end; }
  .plate.right, .plate.left { justify-content: flex-start; }
  .card { padding: 22px 0 0; margin: 0; background: none; }
  .plate.door { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 96px; }
  .door .card { top: auto; bottom: 96px; }
  .hero { padding-bottom: 110px; align-items: flex-start; }
  .veil { background: linear-gradient(180deg, rgba(0,0,0,.6) 0, transparent 18%, transparent 38%, rgba(0,0,0,.82) 78%, rgba(0,0,0,.9) 100%); }
  .hero .sub, .card .body { font-size: 15px; }
  .hint { display: none; }
  .cols { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .cols .lockup { grid-column: 1 / -1; }
  .legal .credit { margin-left: 0; }
  .foot { padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate > *, .card > * { transition: none; }
  .js .plate:not(.in) .card > *, .js .plate.hero:not(.in) > * { opacity: 1; transform: none; }
}
