/* =========================================================
   PHYSIQUENOMICS — design system
   Solid black. CRT red. Green indicator lamps.
   ========================================================= */

:root {
  /* Ground — true black through ash */
  --black:     #000000;
  --panel:     rgba(255, 255, 255, 0.012);
  --panel-2:   rgba(255, 255, 255, 0.04);
  --panel-3:   rgba(255, 255, 255, 0.06);
  --ash-500:   #3A3A37;
  --ash-400:   #6C6C66;
  --ash-300:   #98988F;
  --bone-200:  #CFCFC6;
  --bone-100:  #E8E8E0;
  --bone-50:   #F5F5EF;

  /* Signal — CRT red */
  --volt:      #FF3B2F;
  --volt-hi:   #FF5A1E;
  --volt-dim:  #E8501A;
  --volt-deep: #7A130D;
  --glow-1:    0 0 8px rgba(255, 59, 47, 0.55);
  --glow-2:    0 0 18px rgba(255, 59, 47, 0.35);

  /* Indicator lamps — green, with one red in each bank */
  --led:       #78FF3C;
  --led-glow:  rgba(120, 255, 60, 0.5);
  --led-warn:  #FF2417;
  --led-warn-glow: rgba(255, 36, 23, 0.5);

  /* Section-label lamps — Tron blue */
  --tron:      #5CE1FF;
  --tron-glow: rgba(92, 225, 255, 0.55);

  --bg: var(--black);
  --fg: var(--bone-100);
  --muted: var(--ash-300);
  --rule: rgba(207, 207, 198, 0.15);
  --rule-strong: rgba(207, 207, 198, 0.28);
  --rule-volt: rgba(255, 59, 47, 0.32);

  /* Type — squared technical face, terminal lineage */
  --display: "Oxanium", "Eurostile", "Microgramma", "Bahnschrift", "DIN Alternate", "Helvetica Neue", sans-serif;
  --body: var(--display);
  --mono: var(--display);

  /* Calibration grid */
  --grid-line: rgba(255, 59, 47, 0.17);
  --grid-size: 48px;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;
  --wide: 1280px;
  --section-y: clamp(4.5rem, 11vw, 9.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--black);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;
  background-position: center top;
}
body {
  margin: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(0.95rem, 0.92rem + 0.24vw, 1.04rem);
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.014em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- CRT overlays ---------- */
/* Scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
}
/* Signal grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Machine bar ---------- */
.machine-bar {
  position: relative;
  z-index: 101;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--volt-dim);
}
.machine-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 30px;
  overflow: hidden;
  white-space: nowrap;
}
.machine-bar .mb-left,
.machine-bar .mb-right { display: flex; align-items: center; gap: 1.25rem; }
.machine-bar .lit { color: var(--volt); text-shadow: var(--glow-1); }
.machine-bar .mb-dim { color: var(--ash-500); }
@media (max-width: 700px) { .machine-bar .mb-right { display: none; } }

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.95em;
  background: var(--volt);
  box-shadow: var(--glow-1);
  vertical-align: -0.12em;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }


/* ---------- Indicator lamps ---------- */
.led-bank { display: inline-flex; align-items: center; gap: 0.42rem; flex: none; }
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--led);
  box-shadow: 0 0 5px var(--led), 0 0 13px var(--led-glow);
  will-change: opacity;
}
/* same colour, three different cadences — they never sync up */
.led--a { animation: wink-a 4.3s ease-in-out infinite; }
.led--b { animation: wink-b 6.1s ease-in-out infinite; }
.led--c { animation: wink-c 5.2s ease-in-out infinite; }
.led--warn {
  background: var(--led-warn);
  box-shadow: 0 0 5px var(--led-warn), 0 0 13px var(--led-warn-glow);
}
.led--slow { animation-duration: 8.7s; }
.led--off  { animation: none; opacity: 0.2; box-shadow: none; }

@keyframes wink-a {
  0%, 70% { opacity: 1; }
  73%     { opacity: 0.1; }
  77%     { opacity: 1; }
  84%     { opacity: 0.1; }
  88%, 100% { opacity: 1; }
}
@keyframes wink-b {
  0%, 42% { opacity: 0.9; }
  46%     { opacity: 0.08; }
  51%, 100% { opacity: 0.9; }
}
@keyframes wink-c {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.4; }
}

/* power lamp beside the wordmark */
.brand::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--tron);
  box-shadow: 0 0 6px var(--tron), 0 0 15px var(--tron-glow);
  animation: wink-a 4.3s ease-in-out infinite;
}

/* lamp on every panel label */
.card-num::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.62rem;
  vertical-align: 0.08em;
  background: var(--led);
  box-shadow: 0 0 5px var(--led), 0 0 11px var(--led-glow);
  animation: wink-b 6.1s ease-in-out infinite;
}
.card:nth-child(odd) .card-num::before { animation: wink-a 4.3s ease-in-out infinite; }
.card:nth-child(3n)  .card-num::before { animation-duration: 7.4s; }

/* lamp closing every section label */
.eyebrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  margin-left: 0.15rem;
  background: var(--tron);
  box-shadow: 0 0 6px var(--tron), 0 0 14px var(--tron-glow);
  animation: wink-b 6.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .led, .brand::before, .card-num::before, .eyebrow::after { animation: none !important; }
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--rule { border-top: 1px solid var(--rule); }
.section--raise { background: var(--panel); }

/* Full-bleed escape hatch */
.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--volt-hi);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.008em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 3.7vw, 2.65rem); }
h3 { font-size: clamp(1.12rem, 1.85vw, 1.38rem); line-height: 1.28; }
h4 { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
p  { margin: 0 0 1.25em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Machine label */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--volt);
  text-shadow: var(--glow-1);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--volt);
  box-shadow: var(--glow-1);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--center { justify-content: center; }

.lede {
  font-size: clamp(1.06rem, 1.48vw, 1.24rem);
  line-height: 1.64;
  color: var(--volt-hi);
  font-weight: 300;
  max-width: 48ch;
}
.dek { color: var(--muted); }
.mark { color: var(--volt); text-shadow: var(--glow-1); }
strong { font-weight: 700; color: var(--volt-hi); }
em, i { font-style: normal; font-weight: 700; color: var(--volt-hi); }

blockquote {
  margin: 2.75rem 0;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 2px solid var(--volt);
  box-shadow: inset 3px 0 14px -8px rgba(255, 59, 47, 0.55);
  font-family: var(--display);
  font-size: clamp(1.18rem, 2.2vw, 1.62rem);
  line-height: 1.42;
  letter-spacing: 0.006em;
  font-weight: 500;
  color: var(--volt-hi);
  text-shadow: 0 0 22px rgba(255, 59, 47, 0.28);
}
blockquote p { max-width: 32ch; margin-bottom: 0; }

.dropcap::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.3em;
  line-height: 0.88;
  font-weight: 700;
  padding: 0.06em 0.1em 0 0;
  color: var(--volt);
  text-shadow: var(--glow-2);
}

.prose p { font-size: 1.04rem; line-height: 1.82; }
.prose { position: relative; }
.prose h3 { margin-top: 3rem; }
.prose h3:first-child { margin-top: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 68px;
  position: relative;
}
.brand {
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  color: var(--volt);
  text-shadow: var(--glow-1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.1vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--volt-hi);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--volt);
  box-shadow: var(--glow-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-links a:hover { color: var(--volt); text-shadow: var(--glow-1); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--volt); text-shadow: var(--glow-1); }
.nav-cta { flex: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--volt);
  border-radius: 0;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--volt);
  color: var(--black);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--volt);
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 0 16px -4px rgba(255, 59, 47, 0.5);
  transition: transform 0.16s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--volt-hi);
  box-shadow: 0 0 26px -3px rgba(255, 59, 47, 0.75);
}
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--volt-hi);
  border-color: var(--rule-strong);
  box-shadow: none;
  font-weight: 500;
}
.btn--ghost:hover {
  background: rgba(255, 59, 47, 0.06);
  border-color: var(--volt);
  color: var(--volt);
  box-shadow: 0 0 16px -6px rgba(255, 59, 47, 0.5);
}
.btn--sm { padding: 0.58rem 1.05rem; font-size: 0.65rem; letter-spacing: 0.17em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--volt);
  text-shadow: var(--glow-1);
  border-bottom: 1px solid var(--rule-volt);
  padding-bottom: 3px;
  transition: gap 0.22s ease, border-color 0.22s ease;
}
.tlink:hover { gap: 0.85rem; border-color: var(--volt); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero-sub { margin-top: 2rem; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Topographic motif */
.topo { position: absolute; inset: 0; z-index: 0; opacity: 0.22; color: var(--volt-deep); pointer-events: none; }

/* ---------- Photo slots — magazine scale ---------- */
figure { margin: 0; }
.ph {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--rule);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
/* Alignment grid inside empty slots — like a monitor test pattern */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 59, 47, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 59, 47, 0.2) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ph::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 14px;
  border: 1px solid rgba(255, 59, 47, 0.18);
  pointer-events: none;
}
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
}
.ph > img ~ .ph-label { display: none; }
.ph-label {
  position: relative;
  z-index: 3;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash-400);
  padding: 1.5rem;
  line-height: 2.1;
  max-width: 34ch;
}
.ph-label span {
  display: block;
  color: var(--volt-dim);
  letter-spacing: 0.26em;
  margin-bottom: 0.5rem;
}

/* Bigger, editorial ratios */
.ph--tall   { aspect-ratio: 2 / 3; }
.ph--port   { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--wide   { aspect-ratio: 3 / 2; }
.ph--pano   { aspect-ratio: 2 / 1; }
.ph--hero   { aspect-ratio: 3 / 4; }
.ph--spread { aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
  .ph--spread { aspect-ratio: 4 / 3; }
  .ph--pano { aspect-ratio: 3 / 2; }
}

/* Magazine caption */
figcaption {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--volt-dim);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  max-width: 46ch;
}
figcaption strong { color: var(--volt-dim); font-weight: 500; }

/* Full-bleed spread block */
.spread { padding-block: clamp(2rem, 5vw, 4rem); }
.spread .ph { border-inline: 0; }
.spread figcaption { margin-inline: var(--gutter); }

/* Feature card (blog lead post) */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.feature-photo { border: 0; border-right: 1px solid var(--rule); min-height: 100%; aspect-ratio: auto; }
.feature-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.75rem, 3.5vw, 3.25rem) !important;
}
.feature-title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-photo { border-right: 0; border-bottom: 1px solid var(--rule); aspect-ratio: 3 / 2; }
}

/* Photo band */
.photo-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.photo-band .ph { border: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; }
.split--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--mid { align-items: center; }
.sticky-head { position: sticky; top: 104px; }

/* ---------- Cards — instrument panels ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
/* corner registration ticks */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--volt-dim);
  opacity: 0.55;
  pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.card::after  { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.card p { max-width: none; }
.card--link { text-decoration: none; display: block; }
.card--link:hover {
  border-color: var(--rule-volt);
  transform: translateY(-3px);
  background: var(--panel-2);
  box-shadow: 0 0 30px -14px rgba(255, 59, 47, 0.45);
}
.card--link:hover::before, .card--link:hover::after { opacity: 1; }
.card--flush { padding: 0; overflow: hidden; }
.card--flush .card-body { padding: clamp(1.35rem, 2.2vw, 1.85rem); }
.card-num {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--volt);
  text-shadow: var(--glow-1);
  display: block;
  margin-bottom: 1.4rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card .dek { font-size: 0.94rem; }

/* ---------- Ruled list ---------- */
.rules { list-style: none; margin: 0; padding: 0; }
.rules li {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.rules li:last-child { border-bottom: 1px solid var(--rule); }
.rules .n {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--volt);
  text-shadow: var(--glow-1);
  padding-top: 0.5rem;
}
.rules h3 { margin-bottom: 0.45rem; }
.rules p { color: var(--muted); margin-bottom: 0; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.tag {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt-dim);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.34rem 0.75rem;
  white-space: nowrap;
}
.tag--accent { color: var(--volt); border-color: var(--rule-volt); text-shadow: var(--glow-1); }

/* ---------- Paywall ---------- */
.locked { position: relative; }
.locked .card-body { position: relative; }
.locked .card-body::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9) 82%);
  pointer-events: none;
}
.lock-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-200);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.34rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lock-badge svg { width: 10px; height: 10px; color: var(--volt); }
.lock-badge--open { color: var(--volt); border-color: var(--rule-volt); text-shadow: var(--glow-1); }

/* ---------- Apply panel ---------- */
.apply-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.apply-panel::before, .apply-panel::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--volt-dim);
  opacity: 0.55;
  pointer-events: none;
}
.apply-panel::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.apply-panel::after  { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.apply-panel h3 { margin-bottom: 0.6rem; }
.apply-panel p { max-width: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--volt-dim);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--fg);
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 0.82rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--volt);
  background: var(--panel-2);
  box-shadow: 0 0 14px -4px rgba(255, 59, 47, 0.45);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ash-500); }
.field-hint { font-size: 0.82rem; color: var(--ash-400); margin-top: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-note { font-size: 0.85rem; color: var(--ash-400); margin-top: 1.25rem; }
.form-status {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--volt);
  text-shadow: var(--glow-1);
  display: none;
  border-left: 2px solid var(--volt);
  padding-left: 0.9rem;
  text-align: left;
}
.form-status.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: rgba(0, 0, 0, 0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--volt-dim);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-list a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--volt-hi);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer-list a:hover { color: var(--volt); text-shadow: var(--glow-1); }
.footer-blurb { font-size: 0.92rem; color: var(--muted); max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt-dim);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--rule);
  background: transparent;
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .form-status { margin-inline: auto; max-width: 30rem; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .split, .split--even, .split--flip, .hero-split { grid-template-columns: 1fr; }
  .sticky-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    background: var(--panel-2);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 0.95rem 0; font-size: 0.78rem; }
  .nav-links a::after { display: none; }
  .grid--2, .grid--4, .photo-band { grid-template-columns: 1fr; }
  .rules li { grid-template-columns: 1fr; gap: 0.5rem; }
  .rules .n { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  blockquote { margin: 2rem 0; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.stack > * + * { margin-top: 1.15rem; }
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
::selection { background: rgba(255, 59, 47, 0.9); color: var(--bone-50); }
