/* =========================================================
   Shield Cat ($SHIELD)
   Everything here is served from this site. No CDNs.
   ========================================================= */

/* ---------- Fonts (self-hosted, see assets/fonts) ---------- */
@font-face {
  font-family: "Anton";
  src: url("assets/fonts/Anton-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --line: #2a2a2f;
  --line-soft: #202024;
  --gold: #F4B728;
  --bronze: #B8862B;
  --gold-soft: rgba(244, 183, 40, .14);
  --text: #ece8de;
  --muted: #8f8b82;
  --dim: #5d5a54;

  --paper: #e9e3d3;
  --paper-2: #ded7c4;
  --ink: #17161a;
  --ink-muted: #5b564b;

  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(244, 183, 40, .08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--panel) 55%, var(--bg) 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* scanlines + noise over everything, never blocking clicks */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}
body::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .025) 0,
    rgba(255, 255, 255, .025) 1px,
    transparent 1px,
    transparent 3px
  );
}
body::after {
  background-image: url("assets/noise.png");
  background-size: 96px 96px;
  opacity: .55;
  mix-blend-mode: overlay;
}

body.is-booting { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bar {
  color: var(--text);
  letter-spacing: -0.08em;
  font-weight: 400;
  opacity: .85;
}

/* ---------- Shared bits ---------- */
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker__mark { color: var(--gold); }

.section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 96px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--text);
}
.section-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-sub .icon { color: var(--gold); }

.hint-tap { display: none; }
@media (hover: none) {
  .hint-hover { display: none; }
  .hint-tap { display: inline; }
}

/* buttons */
.btn {
  --b: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--b);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: 700 13px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --b: var(--bronze); color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn--gold {
  --b: var(--gold);
  background: linear-gradient(180deg, var(--gold), var(--bronze));
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 6px 24px -10px rgba(244, 183, 40, .6);
}
.btn--gold:hover {
  color: var(--bg);
  background: linear-gradient(180deg, #ffc93f, var(--gold));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 8px 30px -8px rgba(244, 183, 40, .75);
}
.btn.is-unset { opacity: .45; cursor: not-allowed; }
.btn.is-unset:hover { --b: var(--line); color: var(--text); }
.btn--gold.is-unset:hover { color: var(--bg); background: linear-gradient(180deg, var(--gold), var(--bronze)); }
.btn .icon { width: 14px; height: 14px; }

/* stamps */
.stamp {
  position: absolute;
  z-index: 4;
  padding: 6px 12px 4px;
  border: 3px solid currentColor;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  pointer-events: none;
  user-select: none;
  /* worn ink */
  -webkit-mask-image: url("assets/grunge.png");
  mask-image: url("assets/grunge.png");
  -webkit-mask-size: 128px 128px;
  mask-size: 128px 128px;
}

/* corner brackets around photos */
.frame-corners {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(var(--bg), var(--bg)) top left / 18px 2px,
    linear-gradient(var(--bg), var(--bg)) top left / 2px 18px,
    linear-gradient(var(--bg), var(--bg)) top right / 18px 2px,
    linear-gradient(var(--bg), var(--bg)) top right / 2px 18px,
    linear-gradient(var(--bg), var(--bg)) bottom left / 18px 2px,
    linear-gradient(var(--bg), var(--bg)) bottom left / 2px 18px,
    linear-gradient(var(--bg), var(--bg)) bottom right / 18px 2px,
    linear-gradient(var(--bg), var(--bg)) bottom right / 2px 18px;
  background-repeat: no-repeat;
  opacity: .7;
}

/* slow glow sitting on the shield inside the photo */
.shield-glow {
  position: absolute;
  left: 12%;
  top: 28%;
  width: 40%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 110, .75), rgba(244, 183, 40, .25) 55%, transparent 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: .15;
  animation: shieldGlow 4.5s ease-in-out infinite;
}
@keyframes shieldGlow {
  0%, 100% { opacity: .08; transform: scale(.94); }
  50%      { opacity: .5;  transform: scale(1.04); }
}

/* =========================================================
   1. BOOT
   ========================================================= */
.boot { display: none; }
.js .boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  background: #000;
  transition: opacity .6s ease, visibility .6s ease;
}
.boot::after { /* own scanlines, boot sits above the body overlay */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot.is-gone { display: none; }

.boot__inner {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot__cat {
  position: relative;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  outline: 1px solid rgba(244, 183, 40, .55);
  outline-offset: 4px;
  box-shadow: 0 0 40px 6px rgba(244, 183, 40, .28), 0 0 120px 30px rgba(244, 183, 40, .12);
  animation: bootGlow 2.6s ease-in-out infinite;
}
.boot__cat img { width: 100%; height: 100%; object-fit: cover; }
.boot__cat .frame-corners { inset: 6px; }
@keyframes bootGlow {
  0%, 100% { box-shadow: 0 0 34px 4px rgba(244, 183, 40, .22), 0 0 110px 26px rgba(244, 183, 40, .08); }
  50%      { box-shadow: 0 0 48px 8px rgba(244, 183, 40, .36), 0 0 140px 40px rgba(244, 183, 40, .16); }
}

.boot__title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 26px 0 22px;
}
.boot__name {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
}
.boot__tag {
  font-size: 11px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: .04em;
  margin-top: 2px;
}

.boot__bar {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  padding: 4px;
  border: 2px solid #3a3a40;
  border-radius: 4px;
}
.boot__bar::after { /* battery-style nub, like a cell indicator */
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 4px;
  height: 10px;
  transform: translateY(-50%);
  background: #3a3a40;
  border-radius: 0 2px 2px 0;
}
.boot__seg {
  height: 14px;
  border-radius: 1px;
  background: #18181c;
  transition: background-color .15s, box-shadow .15s;
}
.boot__seg.is-on {
  background: linear-gradient(180deg, var(--gold), var(--bronze));
  box-shadow: 0 0 8px rgba(244, 183, 40, .45);
}
.boot__seg.is-next { background: #6f5420; }

.boot__status {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .1em;
  color: #d9d5cb;
}
.boot__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 1s steps(2, start) infinite;
  flex: none;
}
.boot__line {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: flicker 2.2s linear infinite;
}
.boot__pct { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.boot__skip {
  margin-top: 30px;
  padding: 8px 12px;
  background: none;
  border: 0;
  color: var(--dim);
  font: 12px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
}
.boot__skip:hover, .boot__skip:focus-visible { color: var(--gold); }

@keyframes blink { to { visibility: hidden; } }
@keyframes flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20% { opacity: .35; }
  63% { opacity: .6; }
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px var(--gutter);
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}
.topbar__brand .icon { width: 20px; height: 20px; color: var(--gold); }
.topbar__nav { display: flex; gap: 22px; margin-left: auto; }
.topbar__nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.topbar__nav a:hover { color: var(--gold); }
.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6fd08c;
  box-shadow: 0 0 0 0 rgba(111, 208, 140, .6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111, 208, 140, .55); }
  80%, 100% { box-shadow: 0 0 0 8px rgba(111, 208, 140, 0); }
}

/* =========================================================
   2. HERO
   ========================================================= */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(64px, 9vw, 110px);
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(76px, 17vw, 184px);
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf0 0%, #f2e7cd 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(244, 183, 40, .18));
}

.ticker {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
}

.hero__tagline {
  margin: 16px auto 0;
  max-width: 46ch;
  text-wrap: balance;
  font-size: clamp(14px, 2.2vw, 17px);
  color: var(--text);
}

/* stage: annotations + card */
.hero__stage {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px) 1fr;
  align-items: center;
  gap: 36px;
  margin: clamp(36px, 6vw, 56px) 0 clamp(32px, 5vw, 44px);
}
.annot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.annot li { display: grid; gap: 2px; }
.annot span { color: var(--dim); }
.annot b { color: var(--text); font-weight: 700; }
.annot b.bar { font-weight: 400; }
.annot--left { justify-items: end; text-align: right; }
.annot--left li { padding-right: 18px; border-right: 1px solid var(--line); }
.annot--right { justify-items: start; text-align: left; }
.annot--right li { padding-left: 18px; border-left: 1px solid var(--line); }
.annot--right b { color: var(--gold); }

/* the "classified file" card that frames the yellow photo */
.file-card {
  position: relative;
  margin: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(244, 183, 40, .06);
  transform: rotate(-1.2deg);
}
.file-card__head,
.file-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.file-card__head { padding: 2px 2px 12px 40px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.file-card__foot { padding: 12px 2px 2px; border-top: 1px dashed var(--line); margin-top: 14px; }
.file-card__foot .bar { font-size: 11px; }
.file-card__photo {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 1;
  background: #f1b437;
}
.file-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.file-card__photo::after { /* subtle vignette + print grain so the flat yellow reads as a photo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(60, 30, 0, .35) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.stamp--hero {
  top: 54px;
  right: -16px;
  transform: rotate(11deg);
  color: #e0b03a;
  background: rgba(10, 10, 11, .5);
  font-size: 26px;
}
.clip { /* paperclip */
  position: absolute;
  top: -14px;
  left: 16px;
  width: 16px;
  height: 46px;
  border: 3px solid #9b9ba3;
  border-radius: 10px;
  transform: rotate(-6deg);
  z-index: 3;
}
.clip::after {
  content: "";
  position: absolute;
  inset: 5px 2px 10px;
  border: 3px solid #9b9ba3;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

/* actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.actions .btn { min-width: 128px; }

/* contract address box */
.ca {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: left;
}
.ca__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ca__label .icon { color: var(--gold); width: 13px; height: 13px; }
.ca__row {
  display: flex;
  gap: 8px;
}
.ca__value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  background: #0d0d0f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}
.ca__value.is-unset { color: var(--dim); letter-spacing: .1em; user-select: none; }
.ca__btn { flex: none; min-height: 50px; min-width: 150px; white-space: nowrap; }
.ca__btn.is-copied {
  background: var(--panel);
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.ca__btn[disabled] { opacity: .5; cursor: not-allowed; }
.ca__btn[disabled]:hover { color: var(--bg); background: linear-gradient(180deg, var(--gold), var(--bronze)); }

/* =========================================================
   3. LORE: dossier
   ========================================================= */
.lore,
.buy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--gutter);
  border-top: 1px solid var(--line-soft);
}

.dossier {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 30%),
    var(--paper);
  border-radius: 3px;
  box-shadow:
    0 1px 0 #fff6 inset,
    0 40px 90px -40px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(0, 0, 0, .4);
}
.dossier::before { /* paper grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/noise.png");
  background-size: 96px 96px;
  opacity: .5;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: inherit;
}
.dossier::after { /* second sheet peeking behind */
  content: "";
  position: absolute;
  inset: 10px -8px -10px 8px;
  z-index: -1;
  background: var(--paper-2);
  border-radius: 3px;
  transform: rotate(1deg);
  opacity: .55;
}

.dossier__head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.dossier__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  font-size: 13px;
}
.dossier__meta dt {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-muted);
}
.dossier__meta dd { margin: 2px 0 0; font-weight: 700; letter-spacing: .04em; }

.dossier__photo {
  position: relative;
  margin: 0;
  width: 132px;
  padding: 6px 6px 22px;
  background: #fbf8f0;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
  transform: rotate(3deg);
}
.dossier__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.dossier__photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  text-align: center;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stamp--paper {
  right: 150px;
  bottom: 18px;
  transform: rotate(-8deg);
  color: #9a2e1d;
  font-size: 28px;
  opacity: .8;
}

.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px dashed rgba(23, 22, 26, .25);
}
.entry:last-child { border-bottom: 0; }
.entry__num {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--bronze);
}
.entry__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.entry p { margin: 0; font-size: 15px; line-height: 1.75; max-width: 62ch; }

/* redaction bars: text stays in the DOM (screen readers read it), the bar is visual */
.redact {
  position: relative;
  background: var(--ink);
  color: transparent;
  border-radius: 1px;
  padding: 1px 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  cursor: help;
  transition: background-color .35s ease, color .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.redact::selection { color: transparent; background: var(--ink); }
@media (hover: hover) {
  .redact:hover { background: rgba(244, 183, 40, .35); color: var(--ink); }
}
.redact:focus-visible,
.redact.is-open {
  background: rgba(244, 183, 40, .35);
  color: var(--ink);
}
.redact:focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; }

.dossier__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* =========================================================
   4. HOW TO BUY: terminal
   ========================================================= */
.terminal {
  max-width: 960px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(244, 183, 40, .05);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #101012;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.terminal__bar > span:nth-child(2) { flex: 1; text-align: center; }
.terminal__bar .icon { color: var(--gold); }
.terminal__dots { display: inline-flex; gap: 6px; }
.terminal__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c31; }
.terminal__dots i:first-child { background: var(--bronze); }

.steps {
  list-style: none;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 18px 18px 20px;
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .25s;
}
.step:hover { border-color: rgba(184, 134, 43, .6); }
.step__top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .16em;
}
.step__num { color: var(--gold); font-weight: 700; }
.step__ok { color: #6fd08c; }
.step__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 22px 0 12px;
  color: var(--gold);
}
.step__title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.ca--terminal {
  max-width: none;
  margin: 0;
  padding: 0 clamp(18px, 3vw, 28px);
}
.prompt { color: var(--gold); font-weight: 700; }

.terminal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding: 18px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line);
  background: #111113;
}

/* =========================================================
   5. FOOTER
   ========================================================= */
.footer {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--gutter) 56px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.stamp--footer {
  position: relative;
  display: inline-block;
  margin-bottom: 26px;
  transform: rotate(-3deg);
  font-size: 24px;
}
.footer__privacy {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 15px;
  color: var(--text);
}
.footer__privacy .icon { color: var(--gold); margin-right: 6px; }
.footer__disclaimer {
  margin: 14px auto 0;
  max-width: 62ch;
  font-size: 12px;
  color: var(--muted);
}
.footer__sign {
  margin: 28px 0 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* =========================================================
   Typewriter
   ========================================================= */
.tw-ghost { visibility: hidden; }
.tw-caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--gold);
  animation: blink 1s steps(2, start) infinite;
}
.tw-caret.is-off { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 920px) {
  .hero__stage { grid-template-columns: minmax(0, 420px); justify-content: center; }
  .annot { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .step__top { grid-column: 1 / -1; margin-bottom: 12px; }
  .step__icon { margin: 4px 0 0; grid-row: 2 / span 2; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { gap: 12px; }
  .topbar__nav { display: none; }
  .topbar__status { margin-left: auto; padding-left: 0; border-left: 0; font-size: 10px; }

  .hero__title { font-size: clamp(60px, 19.5vw, 110px); }
  .file-card { padding: 10px; transform: rotate(-.8deg); }
  .file-card__head, .file-card__foot { font-size: 10px; letter-spacing: .1em; }
  .stamp--hero { font-size: 19px; top: 44px; right: 4px; }
  .file-card__head { padding-left: 34px; }

  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn { min-width: 0; }
  .actions .btn--gold { grid-column: 1 / -1; }

  .ca__row { flex-direction: column; }
  .ca__value { font-size: 13px; }
  .ca__btn { width: 100%; }

  .dossier::after { inset: 8px -3px -8px 3px; transform: rotate(.6deg); }
  .dossier__head { grid-template-columns: 1fr; }
  .dossier__photo { position: absolute; top: -8px; right: -6px; width: 92px; padding: 4px 4px 16px; }
  .dossier__photo figcaption { font-size: 7px; bottom: 3px; }
  .dossier__meta { grid-template-columns: 1fr; gap: 10px; padding-right: 96px; }
  .stamp--paper { right: 4px; bottom: -14px; font-size: 20px; }
  .entry { grid-template-columns: 1fr; gap: 2px; }
  .entry__num { font-size: 18px; }
  .entry__title { font-size: 24px; }
  .entry p { font-size: 14px; }

  .terminal__bar > span:nth-child(2) { text-align: left; }
  .terminal__actions { flex-direction: column-reverse; }
  .terminal__actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .boot__name { font-size: 34px; }
  .file-card__head span:first-child { display: none; }
  .file-card__head { justify-content: center; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .shield-glow { opacity: .25; transform: none; }
  .boot__line { opacity: 1; }
  .tw-caret { display: none; }
}
