/* anvil — ink on paper.
   Hard grid, heavy display type, thick rules. Nothing is rounded and
   nothing is soft. One hot-metal accent, used sparingly. */

@font-face {
  font-family: "Struck";
  src: url("fonts/lato-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Struck";
  src: url("fonts/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Struck";
  src: url("fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Stamp";
  src: url("fonts/mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Stamp";
  src: url("fonts/mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ede8de;
  --paper-2: #e3ddd1;
  --ink: #14120f;
  --ink-2: #5e574c;
  --ink-3: #6b6456;
  --hot: #c4300a;
  --rule: 3px;
  --hair: 1px;
  --pad: clamp(16px, 4vw, 40px);
  --measure: 66ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  box-shadow: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Struck", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.05vw + 13px, 18px);
  line-height: 1.55;
  overflow-x: hidden;
  /* faint press texture: two hairline grids, no images, no requests */
  background-image:
    repeating-linear-gradient(0deg, rgba(20, 18, 15, 0.028) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(20, 18, 15, 0.028) 0 1px, transparent 1px 6px);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: var(--rule) solid var(--hot);
  outline-offset: 2px;
}

/* ── slabs and rules ─────────────────────────────────────────────── */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.rule {
  border: 0;
  border-top: var(--rule) solid var(--ink);
  margin: 0;
}
.rule--hair {
  border-top-width: var(--hair);
  border-top-color: var(--ink-3);
}

/* ── masthead ────────────────────────────────────────────────────── */

.masthead {
  background: var(--ink);
  color: var(--paper);
  font-family: "Stamp", ui-monospace, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.masthead__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 8px 0;
  align-items: baseline;
}
.masthead__row span::before {
  content: "";
}
.masthead b {
  font-weight: 700;
}
.masthead .hot {
  color: #ff7a4d;
}

/* ── nav ─────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--rule) solid var(--ink);
}
.topbar__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 22px;
  border-right: var(--hair) solid var(--ink-3);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand svg {
  width: 30px;
  height: 30px;
  display: block;
  color: var(--ink);
}
.brand__name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__tick {
  font-family: "Stamp", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  display: block;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 18px;
  text-decoration: none;
  border-right: var(--hair) solid var(--ink-3);
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav a:first-child { border-left: none; }
.nav a small {
  font-family: "Stamp", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.nav a b {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav a:hover { background: var(--ink); color: var(--paper); }
.nav a:hover small { color: var(--paper-2); }
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.nav a[aria-current="page"] small { color: #ff7a4d; }

/* ── type ────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(48px, 10.5vw, 132px);
}
h2 {
  font-size: clamp(30px, 5.2vw, 60px);
}
h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
}
h4 {
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lede {
  font-size: clamp(19px, 1.6vw + 13px, 26px);
  line-height: 1.35;
  font-weight: 700;
  max-width: 30ch;
}

.kicker {
  font-family: "Stamp", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 14px;
}
.kicker--hot { color: var(--hot); }

.mono {
  font-family: "Stamp", ui-monospace, "Liberation Mono", monospace;
}
.num {
  font-family: "Stamp", monospace;
  font-variant-numeric: tabular-nums;
}

/* ── sections ────────────────────────────────────────────────────── */

section { padding: clamp(44px, 6vw, 86px) 0; }
section.tight { padding: clamp(28px, 3.5vw, 48px) 0; }

.sec-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0 20px;
  align-items: start;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.sec-head__no {
  font-family: "Stamp", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--ink);
  padding: 6px 0;
  text-align: center;
}
@media (max-width: 640px) {
  .sec-head { grid-template-columns: 66px 1fr; gap: 0 14px; }
}

/* ── hero ────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 0;
  border-bottom: var(--rule) solid var(--ink);
}
.hero__text {
  padding: clamp(28px, 4.5vw, 64px) clamp(24px, 3.4vw, 52px) clamp(28px, 4vw, 56px) 0;
  border-right: var(--rule) solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__stage {
  padding-left: clamp(20px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__text {
    border-right: 0;
    border-bottom: var(--rule) solid var(--ink);
    padding-right: 0;
  }
  .hero__stage { padding-left: 0; padding-bottom: 34px; }
}
h1 .hot { color: var(--hot); }

/* ── the 3d stage ────────────────────────────────────────────────── */

.stage {
  border: var(--rule) solid var(--ink);
  background: var(--paper-2);
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.stage canvas,
.stage svg.fallback {
  display: block;
  width: 100%;
  height: 100%;
}
.stage__hud {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  font-family: "Stamp", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.stage__hud b {
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
  font-weight: 700;
}
.stage__hud b .hot { color: #ff7a4d; }
.stage__strike {
  position: absolute;
  right: 12px;
  top: 12px;
  font-family: "Stamp", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--hot);
  color: #fff;
  border: var(--rule) solid var(--ink);
  padding: 9px 16px;
  cursor: pointer;
}
.stage__strike:active { background: var(--ink); }
.stage__strike[hidden] { display: none; }

.stage-note {
  font-family: "Stamp", monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-left: var(--rule) solid var(--hot);
  padding: 8px 0 8px 12px;
  margin-top: 14px;
  max-width: 46ch;
}

/* ── slab grids ──────────────────────────────────────────────────── */

.slabs {
  display: grid;
  gap: 0;
  border: var(--rule) solid var(--ink);
}
.slabs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slabs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slabs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slab {
  padding: clamp(18px, 2.4vw, 30px);
  border-right: var(--hair) solid var(--ink);
  border-bottom: var(--hair) solid var(--ink);
  min-width: 0;
}
.slab > :last-child { margin-bottom: 0; }
.slab__no {
  font-family: "Stamp", monospace;
  font-size: 44px;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 14px;
}
.slab p { font-size: 0.95em; }
@media (max-width: 900px) {
  .slabs--3, .slabs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .slabs--2, .slabs--3, .slabs--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ── figures / data ──────────────────────────────────────────────── */

.figure {
  border: var(--rule) solid var(--ink);
  background: var(--paper-2);
  padding: clamp(16px, 2.4vw, 28px);
}
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption,
.caption {
  font-family: "Stamp", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 12px;
  line-height: 1.5;
}

.scroller {
  overflow-x: auto;
  border: var(--rule) solid var(--ink);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-family: "Stamp", monospace;
  font-size: 13px;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: "Stamp", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: var(--hair) solid var(--ink-3);
  border-right: var(--hair) solid var(--ink-3);
  vertical-align: top;
}
th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  border-bottom: var(--rule) solid var(--ink);
}
tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* ── stamps and callouts ─────────────────────────────────────────── */

.stamp {
  display: inline-block;
  font-family: "Stamp", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: var(--rule) solid var(--hot);
  color: var(--hot);
  padding: 5px 10px;
  transform: rotate(-1.6deg);
}
.stamp--ink { border-color: var(--ink); color: var(--ink); }

.callout {
  border: var(--rule) solid var(--ink);
  padding: clamp(20px, 3vw, 34px);
  background: var(--ink);
  color: var(--paper);
}
.callout h3 { margin-bottom: 14px; }
.callout p { max-width: 58ch; }
.callout .hot { color: #ff7a4d; }

.notice {
  border: var(--rule) solid var(--ink);
  border-left-width: 14px;
  border-left-color: var(--hot);
  padding: clamp(16px, 2.4vw, 26px);
}
.notice h4 { margin-bottom: 8px; text-transform: uppercase; }
.notice p { font-size: 0.95em; }

/* ── definition rows ─────────────────────────────────────────────── */

.rows { border-top: var(--rule) solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 0 24px;
  padding: 20px 0;
  border-bottom: var(--hair) solid var(--ink-3);
}
.row dt,
.row > b {
  font-family: "Stamp", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
}
.row dd { margin: 0; }
.row dd > :last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ── formula ─────────────────────────────────────────────────────── */

.formula {
  border: var(--rule) solid var(--ink);
  background: var(--paper-2);
  padding: clamp(20px, 3vw, 34px);
  font-family: "Stamp", monospace;
  overflow-x: auto;
}
.formula b {
  display: block;
  font-size: clamp(16px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.formula .hot { color: var(--hot); }
.formula span.gloss {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: normal;
}

/* ── calculator ──────────────────────────────────────────────────── */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: var(--rule) solid var(--ink);
}
@media (max-width: 760px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc__in {
  padding: clamp(18px, 2.6vw, 28px);
  border-right: var(--rule) solid var(--ink);
}
@media (max-width: 760px) {
  .calc__in { border-right: 0; border-bottom: var(--rule) solid var(--ink); }
}
.calc__out {
  padding: clamp(18px, 2.6vw, 28px);
  background: var(--ink);
  color: var(--paper);
}
.calc label {
  display: block;
  font-family: "Stamp", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.calc input[type="range"] {
  width: 100%;
  accent-color: var(--hot);
  margin: 0 0 6px;
}
.calc__val {
  font-family: "Stamp", monospace;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 22px;
}
.calc__out dl { margin: 0; }
.calc__out .row { border-bottom-color: #3a352d; padding: 14px 0; }
.calc__out .row:first-child { padding-top: 0; }
.calc__out .row:last-child { border-bottom: 0; padding-bottom: 0; }
.calc__out dt { color: #b6ad9c; }
.calc__out dd {
  font-family: "Stamp", monospace;
  font-weight: 700;
  font-size: 18px;
}
.calc__out dd .hot { color: #ff7a4d; }

/* ── faq ─────────────────────────────────────────────────────────── */

.qa { border-top: var(--rule) solid var(--ink); }
.qa details {
  border-bottom: var(--hair) solid var(--ink-3);
}
.qa summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  margin-left: auto;
  font-family: "Stamp", monospace;
  font-weight: 700;
  color: var(--hot);
  font-size: 22px;
  line-height: 1;
}
.qa details[open] summary::after { content: "\2212"; }
.qa summary span.q {
  font-family: "Stamp", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  flex: 0 0 auto;
}
.qa .a {
  padding: 0 0 22px 46px;
  max-width: var(--measure);
}
.qa .a > :last-child { margin-bottom: 0; }
@media (max-width: 560px) { .qa .a { padding-left: 0; } }

/* ── index of pages ──────────────────────────────────────────────── */

.index a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 0 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: var(--hair) solid var(--ink-3);
  text-decoration: none;
}
.index a:first-child { border-top: var(--rule) solid var(--ink); }
.index a:hover { background: var(--ink); color: var(--paper); }
.index a:hover .index__no { color: #ff7a4d; }
.index__no {
  font-family: "Stamp", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.index__t {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: -0.025em;
}
.index__d {
  font-size: 14px;
  color: inherit;
  opacity: 0.72;
  margin: 4px 0 0;
  max-width: 60ch;
}
.index__go { font-family: "Stamp", monospace; font-size: 18px; }
@media (max-width: 560px) {
  .index a { grid-template-columns: 46px minmax(0, 1fr); }
  .index__go { display: none; }
}

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

.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(34px, 5vw, 60px) 0 26px;
  margin-top: 0;
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot__mark { display: flex; align-items: center; gap: 14px; }
.foot__mark svg { width: 40px; height: 40px; color: var(--paper); }
.foot__mark b {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-family: "Stamp", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: #ff7a4d; }
.foot__note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: var(--hair) solid #453f36;
  font-family: "Stamp", monospace;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #b6ad9c;
  max-width: 78ch;
}

/* ── pre-launch state ────────────────────────────────────────────── */

.state {
  border: var(--rule) solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}
@media (max-width: 760px) { .state { grid-template-columns: minmax(0, 1fr); } }
.state__l {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(20px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.state__l b {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.state__r { padding: clamp(20px, 3vw, 34px); }
.state__r dl { margin: 0; }

.hidden { display: none; }
