/* ============================================================================
   TEMESE-DIGITAL
   Locked design system: design-system/temese-digital/MASTER.md § "LOCKED SYSTEM"
   Paper & Ink · Space Grotesk / Archivo / JetBrains Mono · 0px radius · hairlines
   ========================================================================== */

/* ── SELF-HOSTED FONTS ─────────────────────────────────────────────────────
   Latin-subset variable woff2, served from this origin. No third-party
   request, no render-blocking stylesheet from fonts.googleapis.com.
   Weight ranges match exactly what the design system uses:
   Space Grotesk 500/700 · Archivo 400/500 · JetBrains Mono 400/500.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── TOKENS ───────────────────────────────────────────────────────────────── */
:root {
  /* colour */
  --paper:        #F6F4F0;
  --paper-2:      #EFEBE4;
  --surface:      #FFFFFF;
  --ink:          #121110;
  --ink-2:        #3F3D39;
  --muted:        #6B6862;
  --rule:         #DAD5CC;
  --rule-strong:  #BDB6AA;
  --accent:       #C8371A;
  --accent-deep:  #A32B12;
  --accent-inv:   #F0522E;
  --on-ink:       #F6F4F0;
  --on-ink-muted: #A8A29A;

  /* type */
  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-display: clamp(2.75rem, 9vw, 6.5rem);
  --t-h2:      clamp(2rem, 5vw, 3.5rem);
  --t-h3:      clamp(1.375rem, 2.4vw, 1.75rem);
  --t-price:   clamp(2.25rem, 5vw, 3rem);
  --t-lede:    clamp(1.0625rem, 1.6vw, 1.3125rem);
  --t-body:    clamp(1.0625rem, 1.1vw, 1.125rem);
  --t-mono:    0.6875rem;

  /* space — 8px scale, spacious */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 64px; --s6: 96px; --s7: 128px; --s8: 176px;

  /* layout */
  --shell-max: 1240px;
  --gutter: 24px;
  --cols: 12;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-reveal: 480ms;
  --dur-state: 180ms;
}

/* ── RESET ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
p, ul, ol, dl, dd, dt, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--paper); }

.skip-link {
  position: absolute; left: var(--s3); top: -100px; z-index: 200;
  background: var(--ink); color: var(--on-ink);
  padding: var(--s2) var(--s3);
  font-family: var(--font-mono); font-size: var(--t-mono);
  text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none;
  transition: top var(--dur-state) var(--ease);
}
.skip-link:focus { top: var(--s3); }

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--s3);
}
@media (min-width: 768px)  { .shell { padding-inline: var(--s4); } }
@media (min-width: 1240px) { .shell { padding-inline: var(--s5); } }

.section { padding-block: var(--s6); border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .section { padding-block: var(--s7); } }

.section__head { max-width: 24ch; margin-bottom: var(--s5); }
@media (min-width: 768px) { .section__head { max-width: none; margin-bottom: var(--s6); } }
.section__title { font-size: var(--t-h2); line-height: 1.02; max-width: 16ch; margin-top: var(--s3); }
.section__lede { margin-top: var(--s3); max-width: 52ch; }

/* ── TYPE PRIMITIVES ──────────────────────────────────────────────────────── */
.label {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.label--index { color: var(--ink); }            /* 11px — accent reserved for the CTA */
.label__sep { padding-inline: 0.6em; color: var(--rule-strong); }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color var(--dur-state) var(--ease), color var(--dur-state) var(--ease);
}
.link:hover { color: var(--accent-deep); border-color: var(--accent); }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  --btn-pad-y: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px;
  padding: var(--btn-pad-y) var(--s4);
  font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; background: none;
  cursor: pointer;
  transition: background-color var(--dur-state) var(--ease),
              color var(--dur-state) var(--ease),
              border-color var(--dur-state) var(--ease);
}
.btn--solid { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
/* was accent on hover — that would have made the form submit and the mobile CTA
   bar turn rust too, competing with the one primary action. */
.btn--solid:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* The single primary action on the page. Accent marks what should be clicked;
   nothing else on the page is filled with it. paper-on-accent = 4.76:1 (AA),
   hover = 6.57:1. */
.btn--primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--line { border-color: var(--rule-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.btn--ghost { border-color: transparent; color: var(--ink); padding-inline: var(--s2); }
.btn--ghost:hover { background: var(--paper-2); }   /* 11px — tint, not accent text */
.btn--full { width: 100%; }

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-state) var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--rule); }
.site-head__inner {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; text-decoration: none;
  color: var(--ink); white-space: nowrap;
}
.wordmark__dash { color: var(--ink); padding-inline: 0.15em; }   /* 11px */
/* Mono nav rail. On small screens it shrinks and, if it still overflows,
   scrolls horizontally on its own rather than breaking the page. */
.site-nav {
  display: flex; margin-left: auto; gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-state) var(--ease), border-color var(--dur-state) var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.site-head__cta { display: none; margin-left: var(--s2); }
/* Below ~360px the rail can't share a row with the wordmark — give it its own,
   so all three links stay visible instead of hiding in a silent side-scroll. */
@media (max-width: 359px) {
  .site-head__inner { flex-wrap: wrap; min-height: 0; padding-block: var(--s1); }
  .site-nav {
    width: 100%; margin-left: 0; gap: var(--s3);
    border-top: 1px solid var(--rule);
    overflow: visible;
  }
  .site-nav a { min-height: 40px; }
}
@media (min-width: 480px) { .site-nav { gap: var(--s3); } }
@media (min-width: 768px) {
  .site-nav { gap: var(--s4); overflow: visible; }
  .site-nav a { font-size: var(--t-mono); letter-spacing: 0.12em; }
  .site-head__inner { min-height: 76px; }
}
@media (min-width: 1024px) { .site-head__cta { display: inline-flex; } }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: var(--s6) var(--s6); }
@media (min-width: 768px) { .hero { padding-block: var(--s7) var(--s7); } }

.hero__inner { position: relative; }

/* crop marks — residual trace of the signature moment */
.cropmark { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.cropmark::before, .cropmark::after { content: ""; position: absolute; background: var(--muted); }
.cropmark::before { width: 100%; height: 1px; top: 0; }
.cropmark::after  { width: 1px; height: 100%; left: 0; }
.cropmark--tl { top: var(--s4); left: var(--s2); }
.cropmark--tr { top: var(--s4); right: var(--s2); transform: scaleX(-1); }
.cropmark--bl { bottom: var(--s4); left: var(--s2); transform: scaleY(-1); }
.cropmark--br { bottom: var(--s4); right: var(--s2); transform: scale(-1); }
@media (min-width: 768px) {
  .cropmark--tl, .cropmark--tr { top: var(--s5); }
  .cropmark--bl, .cropmark--br { bottom: var(--s5); }
  .cropmark--tl, .cropmark--bl { left: var(--s3); }
  .cropmark--tr, .cropmark--br { right: var(--s3); }
}

/* vertical measurement rule down the hero's left margin */
.hero__rule { display: none; }
@media (min-width: 1240px) {
  .hero__rule {
    display: block; position: absolute;
    left: max(var(--s3), calc((100vw - var(--shell-max)) / 2 + var(--s3)));
    top: var(--s6); bottom: var(--s6); width: 1px;
    background: repeating-linear-gradient(
      to bottom, var(--rule-strong) 0 1px, transparent 1px 8px);
  }
  .hero__rule::before,
  .hero__rule::after {
    content: ""; position: absolute; left: -3px; width: 7px; height: 1px; background: var(--muted);
  }
  .hero__rule::before { top: 0; }
  .hero__rule::after  { bottom: 0; }
  .hero__rule-label {
    position: absolute; bottom: 0; left: 0;
    transform-origin: left bottom; transform: rotate(-90deg) translateX(0);
    white-space: nowrap; padding-left: 2px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--muted);
  }
}

.hero__title {
  font-size: var(--t-display);
  line-height: 0.98;
  margin-top: var(--s3);
  max-width: 15ch;
  text-wrap: balance;
}
/* Forced line breaks only where they still make a clean rag; below that the
   headline flows naturally rather than breaking in the wrong place. */
.hero__line { display: inline; }
@media (min-width: 360px) { .hero__line { display: block; } }
.hero__title em {
  font-style: normal;
  position: relative;
  color: var(--accent-deep);
}
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 3px; background: var(--accent);
}
.hero__lede { margin-top: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

.hero__facts {
  display: grid; grid-template-columns: 1fr; gap: var(--s3);
  margin-top: var(--s6); padding-top: var(--s3);
  border-top: 1px solid var(--rule);
}
@media (min-width: 560px) { .hero__facts { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.fact__value {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1;
  letter-spacing: -0.03em; margin-top: 6px;
}

/* ── LEDGER (services & pricing) ──────────────────────────────────────────── */
.ledger { border-top: 1px solid var(--ink); }
.ledger__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
  transition: background-color var(--dur-state) var(--ease);
}
.ledger__row:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.ledger__index { grid-column: 1; color: var(--rule-strong); }
.ledger__name { font-size: var(--t-h3); line-height: 1.15; }
.ledger__desc { margin-top: var(--s2); color: var(--ink-2); max-width: 52ch; }
.ledger__specs { margin-top: var(--s3); display: grid; gap: 6px; }
.ledger__specs li {
  position: relative; padding-left: 20px;
  font-size: 0.9375rem; color: var(--ink-2);
}
.ledger__specs li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 1px; background: var(--accent);
}
.ledger__price { margin-top: var(--s2); }
.price {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--t-price); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price__unit { margin-top: 6px; }
.tag {
  display: inline-block; vertical-align: middle;
  margin-left: var(--s1);
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
@media (min-width: 768px) {
  .ledger__row {
    grid-template-columns: 72px minmax(0, 1fr) 200px;
    gap: var(--s4);
    padding-block: var(--s5);
    align-items: start;
  }
  .ledger__price { margin-top: 0; text-align: right; }
}
@media (min-width: 1024px) { .ledger__row { grid-template-columns: 96px minmax(0, 1fr) 240px; } }

.note {
  display: flex; gap: var(--s2);
  margin-top: var(--s4);
  max-width: 62ch;
  font-size: 0.9375rem; color: var(--ink-2);
}
.note__mark { flex: 0 0 auto; width: 16px; height: 1px; margin-top: 0.7em; background: var(--accent); }

/* ── ABOUT (the one inverted ink band) ────────────────────────────────────── */
.section--about {
  background: var(--ink);
  color: var(--on-ink);
  border-top-color: var(--ink);
}
.section--about .section__title { color: var(--on-ink); }
.section--about .label { color: var(--on-ink-muted); }
.section--about .label--index { color: var(--accent-inv); }
.section--about .lede { color: var(--on-ink); }
.section--about p { color: var(--on-ink-muted); }
.section--about .about__prose > .lede { color: var(--on-ink); }
.section--about strong { color: var(--on-ink); font-weight: 500; }

.about__grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s7); }
}
.about__prose { display: grid; gap: var(--s3); align-content: start; max-width: 62ch; }
.about__process { border-top: 1px solid rgba(246, 244, 240, 0.16); padding-top: var(--s3); }
@media (min-width: 1024px) { .about__process { border-top: none; padding-top: 0; } }

.process { margin-top: var(--s4); display: grid; gap: 0; align-content: start; }
.process__step {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s2);
  padding-block: var(--s3);
  border-bottom: 1px solid rgba(246, 244, 240, 0.16);
}
.process__step:first-child { border-top: 1px solid rgba(246, 244, 240, 0.16); }
.process__num { grid-column: 1; grid-row: 1 / span 2; color: var(--accent-inv); padding-top: 4px; }
.process__name {
  grid-column: 2;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--on-ink);
}
.process__step p { grid-column: 2; margin-top: 4px; font-size: 0.9375rem; }

/* ── CONTACT ──────────────────────────────────────────────────────────────── */
.contact__grid { display: grid; gap: var(--s6); }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); gap: var(--s7); align-items: start; }
}
.form { display: grid; gap: var(--s3); align-content: start; }
.field { display: grid; gap: var(--s1); }
.field__label { color: var(--ink-2); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px var(--s2);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--dur-state) var(--ease), background-color var(--dur-state) var(--ease);
}
.field__input:hover { border-color: var(--muted); }
.field__input:focus { border-color: var(--ink); outline-offset: 1px; }
.field__input--area { min-height: 148px; resize: vertical; line-height: 1.55; padding-top: 12px; }
.field__hint { font-size: 0.875rem; color: var(--muted); }
.field__error {
  font-family: var(--font-mono); font-size: var(--t-mono);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink);
}
.field.is-invalid .field__input { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.form__foot { margin-top: -4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__success { border: 1px solid var(--ink); padding: var(--s4); display: grid; gap: var(--s2); }
.form__success-title { font-size: var(--t-h3); line-height: 1.15; }
.form__success p { color: var(--ink-2); max-width: 52ch; }
.form__preview {
  margin-top: var(--s1);
  padding: var(--s3);
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  max-height: 240px; overflow: auto;
}
.form__success-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }

.contact__direct { border-top: 1px solid var(--rule); padding-top: var(--s3); }
@media (min-width: 1024px) { .contact__direct { border-top: none; padding-top: 0; padding-left: var(--s4); border-left: 1px solid var(--rule); } }
.contact__email {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: var(--s3);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem); letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--accent);
  word-break: break-word;
  transition: color var(--dur-state) var(--ease);
}
.contact__email:hover { color: var(--accent-deep); }
.contact__meta { margin-top: var(--s4); display: grid; gap: var(--s3); }
.contact__meta dd { margin-top: 4px; color: var(--ink-2); }
.contact__note {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem; color: var(--muted); max-width: 40ch;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--ink); padding-block: var(--s5) var(--s6); }
.site-foot__inner { display: grid; gap: var(--s4); }
.wordmark--foot { font-size: 0.8125rem; letter-spacing: 0.2em; }
.site-foot__cols { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .site-foot__cols { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.site-foot__cols p + p, .site-foot__cols .label + p { margin-top: 6px; color: var(--ink-2); }
.site-foot__fine { padding-top: var(--s3); border-top: 1px solid var(--rule); line-height: 1.9; }
.site-foot__sep { padding-inline: 0.6em; color: var(--rule-strong); }

/* ── MOBILE CTA (persistent) ──────────────────────────────────────────────── */
.mobile-cta {
  position: fixed; z-index: 95;
  left: 0; right: 0; bottom: 0;
  padding: 10px var(--s3) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  transition: transform 320ms var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
@media (min-width: 768px) { .mobile-cta { display: none; } }
body.has-mobile-cta .site-foot { padding-bottom: calc(var(--s6) + 72px); }
@media (min-width: 768px) { body.has-mobile-cta .site-foot { padding-bottom: var(--s6); } }

/* ══════════════════════════════════════════════════════════════════════════
   SIGNATURE MOMENT — "SHOW THE BUILD" X-RAY
   ═══════════════════════════════════════════════════════════════════════ */
.xray-toggle {
  position: fixed; z-index: 96;
  left: var(--s3); bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: var(--s1);
  min-height: 44px; padding: 8px 12px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 0;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color var(--dur-state) var(--ease),
              background-color var(--dur-state) var(--ease),
              color var(--dur-state) var(--ease);
}
/* step over the persistent mobile CTA only while that bar is actually up */
body.cta-up .xray-toggle { bottom: calc(var(--s3) + 64px + env(safe-area-inset-bottom)); }
body.cta-up .xray-readout { bottom: calc(var(--s3) + 112px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .xray-toggle, body.cta-up .xray-toggle { bottom: var(--s3); }
}
.xray-toggle:hover { border-color: var(--ink); }
.xray-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.xray-toggle__dot { width: 7px; height: 7px; border: 1px solid currentColor; }
.xray-toggle[aria-pressed="true"] .xray-toggle__dot { background: currentColor; }
.xray-toggle__key {
  font-family: var(--font-mono); font-size: 9px;
  padding: 2px 5px; margin-left: 2px;
  border: 1px solid currentColor; opacity: 0.55;
}
@media (max-width: 400px) { .xray-toggle__key { display: none; } }

.xray {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease), visibility 0s linear 260ms;
}
body.xray-on .xray { opacity: 1; visibility: visible; transition-delay: 0s; }

/* 8px baseline grid */
.xray__baseline {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--accent) 14%, transparent) 0 1px,
    transparent 1px 8px);
  opacity: 0.38;
}
/* 12-column guides, aligned to the real .shell container */
.xray__cols {
  position: sticky; top: 0; height: 100vh;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
}
.xray__col { background: color-mix(in srgb, var(--accent) 5.5%, transparent); }
.xray__annotations { position: absolute; inset: 0; }

.xray-chip {
  position: absolute;
  transform: translateY(-100%);
  padding: 3px 6px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
  max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 92%, transparent);
}
.xray-chip--inv {
  background: var(--accent-inv); color: var(--ink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 92%, transparent);
}

/* measurement bracket for real section padding */
.xray-measure {
  position: absolute;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom, var(--accent) 0 3px, transparent 3px 6px);
}
.xray-measure::before, .xray-measure::after {
  content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: var(--accent);
}
.xray-measure::before { top: 0; }
.xray-measure::after  { bottom: 0; }
.xray-measure__label {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  padding: 2px 5px;
  background: var(--paper); color: var(--accent-deep);
  border: 1px solid var(--accent);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  white-space: nowrap;
}
.xray-measure--inv .xray-measure__label { background: var(--ink); color: var(--accent-inv); border-color: var(--accent-inv); }
.xray-measure--inv { background: repeating-linear-gradient(to bottom, var(--accent-inv) 0 3px, transparent 3px 6px); }
.xray-measure--inv::before, .xray-measure--inv::after { background: var(--accent-inv); }

/* live layout readout, shown only while the X-ray is on */
.xray-readout {
  position: fixed; z-index: 96;
  left: var(--s3); bottom: calc(var(--s3) + 48px + env(safe-area-inset-bottom));
  max-width: calc(100vw - (var(--s3) * 2));
  padding: 6px 8px;
  background: var(--ink); color: var(--on-ink);
  border-left: 2px solid var(--accent-inv);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  line-height: 1.5;
  opacity: 0; visibility: hidden;
  transition: opacity 260ms var(--ease), visibility 0s linear 260ms;
}
body.xray-on .xray-readout { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 768px) {
  .xray-readout { left: auto; right: var(--s3); bottom: var(--s3); max-width: 44ch; }
}

/* ── REVEAL MOTION ────────────────────────────────────────────────────────── */
/* Reveals are opt-in via html.js — with JS off or failed, everything is visible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-cta { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── PRINT ────────────────────────────────────────────────────────────────── */
@media print {
  .site-head, .mobile-cta, .xray, .xray-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section--about { background: #fff; color: #000; }
  .section--about .section__title, .section--about .lede, .section--about p { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
