@charset "UTF-8";
/* ==========================================================================
   ZULUWORKS AI — SELECTED WORK
   Self-hosted assets only. No external requests at runtime.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — Instrument Serif (display), Inter (body), JetBrains Mono (labels)
   Downloaded from Google Fonts as woff2; latin + latin-ext subsets only.
   Inter and JetBrains Mono are served as variable fonts: one file per subset,
   declared with a weight range so 400/500/600 pick the right wght instance.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-latin.woff2") format("woff2");
  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: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
  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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  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";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* ZuluWorks brand palette — taken from zuluworksai.com's own CSS variables */
  --brand-bg: #071115;
  --brand-panel: #0c1a20;
  --brand-panel-2: #10242a;
  --brand-line: #25424b;
  --brand-gold: #f4c86e;
  --brand-gold-2: #e2b85d;
  --brand-gold-warm: #d4af37;
  --brand-cyan: #39d6ff;
  --brand-cyan-2: #40ddec;
  --brand-text: #f4f8fa;
  --brand-muted: #b0c4c9;

  /* semantic roles used throughout the page */
  --paper: var(--brand-bg);
  --paper-2: var(--brand-panel-2);
  --ink: var(--brand-text);
  --ink-70: var(--brand-muted);
  --rule: var(--brand-line);
  --rule-strong: rgba(176, 196, 201, .30);
  --oxide: var(--brand-gold);
  --forest: var(--brand-panel);
  --brass: var(--brand-gold);
  --live: var(--brand-cyan);
  --deploy: var(--brand-gold);
  --staging: var(--brand-gold-2);
  --retired: #63777e;
  --built: var(--brand-gold);
  --parked: var(--brand-gold-warm);
  --retired-text: #8ca0a6; /* lighter tint so RETIRED pills stay AA on dark */

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1360px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-bg: rgba(7, 17, 21, .86);
  --text-soft: rgba(244, 248, 250, .86);
  --paper-86: var(--text-soft);
  --paper-72: rgba(244, 248, 250, .72);
  --paper-58: rgba(176, 196, 201, .85);
  --shadow: rgba(0, 0, 0, .65);
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.05vw, 18.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }

img { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand-gold); color: var(--brand-bg); }

:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }


[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

main:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--brand-gold);
  color: var(--brand-bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 0 0 3px 3px;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* Grain: generated 512x512 tile, 2.5% screen blend, fixed. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("../img/grain.png");
  background-repeat: repeat;
  background-size: 512px 512px;
  opacity: .025;
  mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   4. Typography primitives
   -------------------------------------------------------------------------- */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.label::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 1px;
  background: var(--oxide);
}
.label--light { color: var(--paper-72); }
.label--light::before { background: var(--brass); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.0;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2--light { color: var(--brand-text); }

/* Inline single-stroke arrows (used inside buttons, links and card names). */
.arrow {
  display: inline-block;
  width: .72em;
  height: .72em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.06em;
  transition: transform .25s var(--ease);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-70);
  text-transform: uppercase;
}

.sec-lede {
  max-width: 52ch;
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.55;
  color: var(--ink-70);
}

.footnote {
  max-width: 70ch;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: min(var(--wrap), 100% - (2 * var(--gutter)));
  margin-inline: auto;
}

.band { padding-block: clamp(64px, 8vw, 128px); }

.band--ruled { border-top: 1px solid var(--rule); }

.more { background: var(--paper-2); }

.sec-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(38px, 5vw, 72px);
}

/* --------------------------------------------------------------------------
   6. Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease);
}
.nav--scrolled {
  box-shadow: 0 12px 30px -26px var(--shadow);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__word {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
}
.brand__sub {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-70);
}

.nav__links { display: none; }
/* Scoped to .nav so the later .btn { display: inline-flex } cannot re-show it. */
.nav .nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 22px;
}
.nav__toggle-bars span {
  display: block;
  height: 1px;
  background: var(--ink);
}

/* When JS is off: no menu button, so expose the section links plainly. */
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav__inner { flex-wrap: wrap; }
html:not(.js) .nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  width: 100%;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-70);
}
html:not(.js) .nav__links a { min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }

/* --------------------------------------------------------------------------
   7. Mobile menu
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; }

html.menu-open,
html.menu-open body { overflow: hidden; }

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px 10px;
  border-bottom: 1px solid var(--rule);
}
.menu__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-70);
}
.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.menu__num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--oxide);
}
.menu__name {
  font-family: var(--serif);
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.05;
  letter-spacing: -.015em;
}
.menu__nav a:hover .menu__name { color: var(--brand-cyan); }

.menu__foot {
  margin-top: auto;
  padding-block: 28px 34px;
  display: grid;
  gap: 18px;
}
.menu__meta {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-70);
}
.menu__meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); }
/* Primary action at the bottom of the mobile panel, full width for the thumb. */
.menu__cta {
  width: 100%;
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   8. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-gold);
  --btn-fg: var(--brand-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 13px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--ink,
.btn--paper { --btn-bg: var(--brand-gold); --btn-fg: var(--brand-bg); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover { background: var(--brand-gold-2); color: var(--brand-bg); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:focus-visible { outline-offset: 4px; }

.link-brass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  padding-block: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.link-brass::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .62em;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.link-brass:hover::after,
.link-brass:focus-visible::after { transform: scaleX(1); }
.link-brass:hover,
.link-brass:focus-visible { color: var(--brand-cyan); }
.link-brass--light { color: var(--brand-text); }
.link-brass--light::after { background: var(--brass); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
/* Phone-only compact hero: keep title, sub, actions and stats above the fold. */
.hero {
  padding-top: clamp(24px, 4.5vw, 68px);
  padding-bottom: clamp(52px, 7vw, 96px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 18px;
}

.hero__eyebrow { order: 1; }

.hero__meta {
  order: 2;
  display: none;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.5;
  color: var(--ink-70);
  text-align: right;
}

.hero__title {
  order: 3;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 132px);
  line-height: .9;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 15ch;
}
.hero__title em {
  font-style: italic;
  color: var(--oxide);
}

.hero__sub {
  order: 4;
  max-width: 46ch;
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--ink-70);
}

.hero__actions {
  order: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 4px;
}

/* Phone: two-up 2x2 strip so the stats stay above the fold. Hairlines come from
   the 1px grid gaps showing the rule-coloured container behind paper cells. */
.proof {
  order: 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 16px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proof li {
  padding: 11px 12px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-70);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2em .5em;
}
.proof li:nth-child(odd) { padding-left: 0; }
.proof strong {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--brand-gold);
  font-variant-numeric: tabular-nums;
}

/* Live rail */
.rail {
  margin-top: clamp(34px, 4.5vw, 58px);
  background: var(--brand-panel);
  color: var(--brand-text);
  border-top: 1px solid rgba(244, 200, 110, .34);
  border-bottom: 1px solid var(--brand-line);
}
.rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 16px;
}
.rail__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--paper-58);
}
.rail__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(57, 214, 255, .20);
}
.rail__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 22px;
}
.rail__links li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
}
.rail__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-text);
  text-decoration: none;
}
.rail__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .95em;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.rail__links a:hover::after,
.rail__links a:focus-visible::after { transform: scaleX(1); }
.rail__links a:hover,
.rail__links a:focus-visible { color: var(--brand-cyan); }

.rail__note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   10. Dots, pills, status
   -------------------------------------------------------------------------- */
.dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.dot--live { background: var(--live); }
.dot--deploy { background: var(--deploy); }
.dot--staging { background: var(--staging); }
.dot--internal { background: var(--retired); }
.dot--retired {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--retired);
}
.dot--built { background: var(--built); }
.dot--parked { background: var(--parked); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.4;
  color: var(--brand-text);
  white-space: nowrap;
}
.pill--live { border-color: rgba(57, 214, 255, .48); color: var(--brand-cyan); }
.pill--deploy { border-color: rgba(244, 200, 110, .48); color: var(--brand-gold); }
.pill--staging { border-color: rgba(226, 184, 93, .50); color: var(--brand-gold-2); }
.pill--internal { border-color: rgba(176, 196, 201, .42); color: var(--brand-muted); }
.pill--retired { border-color: rgba(99, 119, 126, .62); color: var(--retired-text); }
.pill--built { border-color: rgba(244, 200, 110, .48); color: var(--brand-gold); }
.pill--parked { border-color: rgba(212, 175, 55, .58); color: var(--brand-gold-warm); }

/* --------------------------------------------------------------------------
   11. Section head + selected work
   -------------------------------------------------------------------------- */
.work { counter-reset: case; }

.ledger .sec-head { margin-bottom: clamp(30px, 4vw, 56px); }

.about .sec-head,
.sec-head--about { margin-bottom: 0; }

.sec-head--work .sec-lede,
.sec-head--ledger .sec-lede { margin-top: 2px; max-width: 56ch; }

.case {
  counter-increment: case;
  display: grid;
  gap: 26px;
}
.case + .case {
  margin-top: clamp(48px, 6vw, 92px);
  padding-top: clamp(40px, 5vw, 66px);
  border-top: 1px solid var(--rule);
}

.case__media { min-width: 0; }

.plate {
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--brand-panel);
  overflow: hidden;
  box-shadow: 0 22px 44px -32px var(--shadow);
}
.plate__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  padding: 0 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.plate__url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-70);
}
.plate__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
}

/* Shot block: fixed 16:10 area; image fades in over the designed cover. */
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  opacity: 1;
  transition: opacity .5s var(--ease), transform .65s var(--ease);
}
.shot--card { aspect-ratio: 16 / 10; }
.shot.is-loaded .shot__img { opacity: 1; }
/* Only let JS opt in to the fade; without it, screenshots stay visible. */
html.js-ready .shot:not(.is-loaded):not(.is-missing) .shot__img { opacity: 0; }
.shot.is-missing .shot__img { display: none; }

.shot__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--paper-2);
  transition: opacity .4s var(--ease), visibility .4s;
}
/* Hairline frame: a plate treatment, not a fake interface. */
.shot__cover::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}
.shot.is-loaded .shot__cover {
  opacity: 0;
  visibility: hidden;
}
/* Without a working main.js: real screenshots show, covers stay on the three
   cover-only plates. */
html:not(.js-ready) .shot:not(.shot--noimg) .shot__cover { display: none; }
.shot__initials {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: .14em;
  line-height: 1;
  color: var(--ink-70);
}

.plate .shot__initials { font-size: clamp(40px, 5.2vw, 72px); }
.shot__tick {
  width: 38px;
  height: 1px;
  background: var(--brass);
}

.plate:hover .shot__img { transform: scale(1.02); }

.case__body { min-width: 0; }

.case__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.case__top .pill { order: 3; }
.case__top::before {
  content: counter(case, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--oxide);
  margin-right: 2px;
}
.case__top .kicker { margin-right: auto; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  line-height: 1.5;
  color: var(--ink-70);
  text-transform: uppercase;
}

.case__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.case__text {
  max-width: 46ch;
  font-size: clamp(16.5px, 1.1vw, 18px);
  line-height: 1.62;
  color: var(--ink-70);
}

.facts {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-70);
}
.tick {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  fill: none;
  stroke: var(--oxide);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proofbox {
  margin-top: 22px;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--brass);
  border-radius: 2px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--ink);
}

.case__link { margin-top: 18px; }

.case__note {
  margin-top: 4px;
  max-width: 40ch;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   12. Cards (Also shipped)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: clamp(28px, 3.6vw, 44px);
}

.card {
  display: block;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.card .shot { border: 1px solid var(--rule); border-radius: 3px; }
.card .shot__cover { background: var(--brand-bg); }
a.card:hover .shot__img { transform: scale(1.02); }

.card__cat {
  margin: 14px 0 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  line-height: 1.5;
  color: var(--ink-70);
  text-transform: uppercase;
}
.card__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 1.7vw, 26px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 7px;
}
.card__line {
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-70);
}
.card__arrow {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink-70);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
a.card:hover .card__name {
  text-decoration: underline;
  text-decoration-color: var(--brand-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a.card:hover .card__arrow {
  transform: translate(2px, -2px);
  color: var(--brand-cyan);
}
.card--static { cursor: default; }

/* XRPL Engine card: designed crest plate that links to the engine status page. */
.shot--crest {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--brand-panel-2);
}
.shot--crest::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 200, 110, .45);
  border-radius: 2px;
  pointer-events: none;
}
.crest-plate {
  width: clamp(72px, 24%, 118px);
  height: auto;
  transition: transform .45s var(--ease);
}
a.card:hover .crest-plate { transform: scale(1.03); }
.status-chip {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(57, 214, 255, .45);
  border-radius: 2px;
  background: rgba(7, 17, 21, .72);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.4;
  color: var(--brand-cyan);
}
.status-chip .dot { width: 6px; height: 6px; }

/* --------------------------------------------------------------------------
   13. Capabilities
   -------------------------------------------------------------------------- */
.capabilities { padding-bottom: 0; }

.caps {
  display: grid;
  gap: 0;
}

.cap {
  padding: clamp(20px, 2.4vw, 28px) 0 clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--rule);
}
.cap__icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--brand-cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cap__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 9px;
}
.cap__text {
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-70);
}

.cloudband {
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--brand-panel-2);
  color: var(--brand-text);
  border-top: 1px solid rgba(244, 200, 110, .32);
  border-bottom: 1px solid var(--brand-line);
}
.cloudband__inner {
  display: grid;
  gap: 12px;
  padding-block: clamp(28px, 3.4vw, 46px);
}
.cloudband__text {
  max-width: 60ch;
  font-size: clamp(16px, 1.15vw, 18.5px);
  line-height: 1.6;
  color: var(--paper-86);
}

/* --------------------------------------------------------------------------
   14. Process
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 26px;
}
.step {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.step__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--oxide);
}
.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.step__text {
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-70);
}
.process .footnote { margin-top: clamp(30px, 3.4vw, 44px); }

/* --------------------------------------------------------------------------
   15. The ledger
   -------------------------------------------------------------------------- */
.ledger__wrap {
  border-top: 1px solid var(--rule-strong);
}

.ledger__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.ledger__table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--ink-70);
  white-space: nowrap;
}
.ledger__table th:first-child { padding-left: 0; }
.ledger__table th:last-child { text-align: right; padding-right: 0; }

.ledger__table td {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.ledger__table td:first-child { padding-left: 0; }
.ledger__table td:last-child { padding-right: 0; text-align: right; }

.ld-when {
  width: 1%;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--ink-70);
}
.ld-build { width: 26%; }
.ld-build__name {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.25;
  letter-spacing: -.005em;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.ld-what {
  width: 38%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-70);
}
.ld-status { width: 1%; white-space: nowrap; }

.ledger__table tbody tr:hover { background: var(--paper-2); }
.ledger__table tbody tr:hover .ld-build__name {
  text-decoration: underline;
  text-decoration-color: var(--brand-cyan);
}
.ledger__table tbody tr:last-child td { border-bottom: 1px solid var(--rule-strong); }

.ledger__foot {
  display: grid;
  gap: 22px;
  margin-top: clamp(26px, 3vw, 38px);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   16. About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.about__body p {
  max-width: 60ch;
  margin-bottom: 1.15em;
  font-size: clamp(16.5px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--ink-70);
}
.about__body p:first-child {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink);
}
.about__body p:last-child { margin-bottom: 0; }

.facts-card {
  align-self: start;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--paper-2);
}
.facts-card__list { display: grid; }
.facts-card__row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.facts-card__row:first-child { padding-top: 0; }
.facts-card__row:last-child { padding-bottom: 0; border-bottom: 0; }
.facts-card dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-70);
}
.facts-card dd {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   17. Contact + footer
   -------------------------------------------------------------------------- */
.contact {
  background: var(--brand-panel);
  color: var(--brand-text);
  border-top: 1px solid rgba(244, 200, 110, .48);
  padding-block: clamp(60px, 7.5vw, 116px);
}
.contact__inner {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.contact .h2 { max-width: 18ch; }
.contact__text {
  max-width: 46ch;
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  line-height: 1.62;
  color: var(--paper-86);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 8px;
}
.contact__meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--paper-58);
}

/* Footer sits on the page background, one step darker than the contact band. */
.footer {
  background: var(--brand-bg);
  color: var(--brand-text);
  border-top: 1px solid var(--brand-line);
}
.footer__top {
  display: grid;
  gap: 20px;
  padding-block: clamp(36px, 4.2vw, 54px);
}
.footer__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.footer__mark { width: 22px; height: 22px; object-fit: contain; }
.footer__word {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
}
.footer__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-70);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-70);
  text-decoration: none;
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.footer__links a:hover { color: var(--brand-cyan); }
.footer__links a:hover::after,
.footer__links a:focus-visible::after { transform: scaleX(1); }
.footer__note {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 34ch;
}
.footer__fine {
  padding-block: 16px 26px;
  border-top: 1px solid var(--rule);
}
.footer__fine p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js-ready .reveal.is-in { opacity: 1; transform: none; }

html.js .hero__eyebrow { animation: rise .55s var(--ease) .05s both; }
html.js .hero__title { animation: rise .8s var(--ease) .12s both; }
html.js .hero__sub { animation: rise .7s var(--ease) .3s both; }
html.js .hero__actions { animation: rise .7s var(--ease) .38s both; }
html.js .proof { animation: rise .7s var(--ease) .46s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .hero__eyebrow,
  html.js .hero__title,
  html.js .hero__sub,
  html.js .hero__actions,
  html.js .proof {
    animation: none;
    opacity: 1;
    transform: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .plate:hover .shot__img,
  a.card:hover .shot__img,
  a.card:hover .crest-plate,
  .btn:hover .arrow,
  a.card:hover .card__arrow { transform: none; }
}

/* --------------------------------------------------------------------------
   19. Breakpoints — mobile-first; base styles cover 360–599px.
   -------------------------------------------------------------------------- */

/* Small phones: stacked ledger, no hero meta. */
@media (max-width: 767px) {
  .ledger__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ledger__table,
  .ledger__table tbody,
  .ledger__table tr,
  .ledger__table td { display: block; }
  .ledger__table tr {
    position: relative;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--rule);
  }
  .ledger__table tr:last-child { border-bottom: 1px solid var(--rule-strong); }
  .ledger__table td { width: auto; padding: 0; border: 0; }
  .ld-when {
    margin-bottom: 5px;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--ink-70);
  }
  .ld-build { margin-bottom: 5px; padding-right: 96px; }
  .ld-status { position: absolute; top: 15px; right: 0; text-align: right; }
  .ld-what { font-size: 13.5px; }
  .ledger__table tbody tr:hover { background: transparent; }
  .ledger__table tbody tr:hover .ld-build__name { text-decoration: none; }
  .ledger__table tbody tr:last-child td { border-bottom: 0; }
  .ledger__table th:first-child,
  .ledger__table th:last-child,
  .ledger__table td:first-child,
  .ledger__table td:last-child { padding: 0; }
}

/* Small tablets and up: two-up cards, two-up steps, four-up proof strip. */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); column-gap: clamp(20px, 3vw, 36px); }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 36px; }
  .proof {
    grid-template-columns: repeat(4, 1fr);
  }
  .proof li {
    padding: 17px 16px;
  }
  .proof li:nth-child(odd) { padding-left: 16px; }
  .proof li:first-child { padding-left: 0; }
  .proof li:last-child { padding-right: 0; }
  .hero__title { max-width: 17ch; }
  .footer__links { gap: 4px 26px; }
}

/* Tablets: desktop nav, 12-column hero, side-by-side case studies. */

@media (min-width: 768px) {
  .nav__links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 30px);
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .nav__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-70);
    text-decoration: none;
    transition: color .2s var(--ease);
  }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--ease);
  }
  .nav__links a:hover,
  .nav__links a:focus-visible,
  .nav__links a[data-current="true"] { color: var(--brand-cyan); }
  .nav__links a:hover::after,
  .nav__links a:focus-visible::after,
  .nav__links a[data-current="true"]::after { transform: scaleX(1); }

  .brand__mark { width: 32px; height: 32px; }
  .nav .nav__cta { display: inline-flex; min-height: 44px; padding: 10px 16px; font-size: 12.5px; }
  .nav__toggle { display: none; }
  .menu { display: none !important; }

  .hero__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    row-gap: clamp(20px, 2.6vw, 34px);
  }
  .hero__eyebrow { grid-column: 1 / 8; }
  .hero__meta { display: flex; grid-column: 9 / 13; align-self: start; }
  .hero__title { grid-column: 1 / 12; max-width: none; }
  .hero__sub { grid-column: 1 / 7; }
  .hero__actions { grid-column: 8 / 13; align-self: end; margin-top: 0; }
  .proof { grid-column: 1 / 13; margin-top: clamp(14px, 2vw, 24px); }
  .hero__actions .btn,
  .hero__actions .link-brass { min-height: 46px; }


  .rail__links { gap: 0 6px; }
  .rail__links li:not(:last-child)::after {
    content: "·";
    margin-left: 12px;
    color: var(--paper-58);
  }

  .cloudband__inner {
    grid-template-columns: auto 1fr;
    gap: 14px 44px;
    align-items: baseline;
  }

  .about__body { max-width: 62ch; }
  .facts-card { max-width: 520px; }

  .footer__top {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px 36px;
  }
  .footer__note { grid-column: 1 / -1; max-width: none; }
}

@media (min-width: 768px) and (max-width: 899px) {
  .nav__inner { gap: 16px; }
  .nav__links { gap: 12px; }
  .nav__links a { letter-spacing: .06em; }
}
/* Editorial section heads + two-column contact. */
@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    row-gap: 20px;
    align-items: end;
  }
  .sec-head .label { grid-column: 1 / 13; }
  .sec-head .h2 { grid-column: 1 / 8; }
  .sec-head .sec-lede { grid-column: 8 / 13; padding-bottom: .45em; }

  .case {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    column-gap: clamp(24px, 3.4vw, 44px);
    align-items: start;
  }
  .case--a .case__media { order: 1; }
  .case--a .case__body { order: 2; padding-top: clamp(0px, 2vw, 26px); }
  .case--b .case__body { order: 1; }
  .case--b .case__media { order: 2; margin-top: clamp(0px, 2.4vw, 34px); }
  .case--c .case__media { order: 1; }
  .case--c .case__body { order: 2; }

  .contact__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 48px;
    align-items: end;
  }
  .contact__inner .label,
  .contact__inner .h2,
  .contact__inner .contact__text { grid-column: 1 / 2; }
  .contact__inner .contact__actions { grid-column: 2 / 3; align-self: end; margin: 0 0 8px; }
  .contact__inner .contact__meta { grid-column: 2 / 3; align-self: end; margin: 0; }
  .contact .h2 { max-width: 16ch; }
}

/* Desktop: three-up cards, four-up process, full asymmetric case grid. */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }

  .caps { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }

  .case {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 40px;
  }
  .case--a .case__media { grid-column: 1 / 8; grid-row: 1; order: 0; margin-top: 0; }
  .case--a .case__body { grid-column: 9 / 13; grid-row: 1; order: 0; padding-top: clamp(0px, 2.4vw, 34px); }
  .case--b .case__body { grid-column: 1 / 5; grid-row: 1; order: 0; padding-top: 0; }
  .case--b .case__media { grid-column: 6 / 13; grid-row: 1; order: 0; margin-top: clamp(0px, 3vw, 50px); }
  .case--c .case__media { grid-column: 1 / 7; grid-row: 1; order: 0; margin-top: 0; }
  .case--c .case__body { grid-column: 8 / 13; grid-row: 1; order: 0; padding-top: clamp(0px, 1.6vw, 22px); }

  .about__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 36px;
    row-gap: 34px;
  }
  .about__grid .sec-head { grid-column: 1 / 13; }
  .about__body { grid-column: 1 / 7; max-width: none; }
  .facts-card { grid-column: 9 / 13; max-width: none; }

  .footer__top { grid-template-columns: 1fr auto 1fr; }
  .footer__links { justify-self: center; }
  .footer__note { grid-column: auto; justify-self: end; text-align: right; max-width: 30ch; }

  .ledger__table th,
  .ledger__table td { padding-block: 15px; }
}

/* Large desktop: a wider measure and a more generous hero. */
@media (min-width: 1440px) {
  :root {
    --wrap: 1380px;
    --nav-h: 68px;
  }
  .hero__grid { column-gap: 40px; row-gap: 40px; }
  .hero__eyebrow { grid-column: 1 / 7; }
  .hero__sub { grid-column: 1 / 6; }
  .hero__actions { grid-column: 8 / 13; }
  .hero__title { grid-column: 1 / 11; }
  .sec-head { column-gap: 40px; }
  .sec-head .h2 { grid-column: 1 / 8; }
  .sec-head .sec-lede { grid-column: 8 / 13; }
  .case__body { max-width: none; }
  .about__body { grid-column: 1 / 7; }
  .facts-card { grid-column: 9 / 13; }
}

/* Very large displays: keep the page centred and quiet. */
@media (min-width: 1920px) {
  :root { --wrap: 1440px; }
  .band { padding-block: clamp(96px, 7vw, 156px); }
  .hero { padding-top: 64px; }
  .rail__inner { padding-block: 20px; }
}


/* --------------------------------------------------------------------------
   20. Engine status page — engine-status.html
   -------------------------------------------------------------------------- */
.page-engine { background: var(--brand-bg); }
.eng-nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-left: auto;
}
.eng-nav__actions .btn { min-height: 44px; padding: 10px 16px; font-size: 12.5px; }
.eng-nav__actions .link-brass { font-size: 13px; }

.eng-hero {
  position: relative;
  background-color: var(--brand-bg);
  background-image:
    linear-gradient(90deg, rgba(7, 17, 21, .98) 0%, rgba(7, 17, 21, .94) 45%, rgba(7, 17, 21, .78) 75%, rgba(7, 17, 21, .55) 100%),
    url("../img/warrior-wide.jpg");
  background-size: cover, cover;
  background-position: center, 72% 30%;
  background-repeat: no-repeat, no-repeat;
  border-bottom: 1px solid var(--brand-line);
}
.eng-hero__inner {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
  padding-block: clamp(56px, 8vw, 118px);
  max-width: 64rem;
}
.eng-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--brand-text);
  max-width: 16ch;
  text-wrap: balance;
}
.eng-title em { font-style: italic; color: var(--brand-gold); }
.eng-lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.62;
  color: var(--brand-muted);
}
.eng-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 4px;
}
.eng-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid rgba(57, 214, 255, .50);
  border-radius: 2px;
  background: rgba(7, 17, 21, .55);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--brand-cyan);
}
.eng-pill .dot { width: 8px; height: 8px; }
.eng-status__detail,
.eng-status__snapshot {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--brand-muted);
}
.eng-status__snapshot { color: rgba(176, 196, 201, .8); }

.eng-metrics-section { padding-top: clamp(8px, 1.4vw, 16px); }
.eng-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--brand-line);
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}
.eng-tile {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--brand-panel);
}
.eng-tile__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.eng-tile__value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 2.8vw, 40px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--brand-text);
}
.eng-tile__value--gold { color: var(--brand-gold); }
.eng-tile__detail {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--brand-muted);
}

.eng-band {
  background: var(--brand-panel-2);
  border-top: 1px solid rgba(244, 200, 110, .32);
  border-bottom: 1px solid var(--brand-line);
}
.eng-band__inner {
  display: grid;
  gap: 18px;
  padding-block: clamp(44px, 6vw, 82px);
  max-width: 72ch;
}
.eng-body {
  font-size: clamp(16.5px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--brand-text);
}
.eng-footnote {
  max-width: 62ch;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--brand-muted);
}

.eng-withheld { padding-block: clamp(48px, 6vw, 88px); }
.eng-withheld__inner { display: grid; gap: 16px; max-width: 70ch; }
remove eng-list
.eng-footer {
  background: var(--brand-bg);
  border-top: 1px solid var(--brand-line);
  padding-block: clamp(44px, 5.5vw, 80px);
}
.eng-footer__inner { display: grid; gap: clamp(22px, 3vw, 34px); }
.eng-lockup-figure {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0;
}
.eng-lockup {
  padding: 10px;
  border: 1px solid rgba(244, 200, 110, .45);
  border-radius: 2px;
  background: var(--brand-panel);
}
.eng-lockup img { display: block; width: 100%; height: auto; }
.eng-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--brand-muted);
}
.eng-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.eng-footer__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brand-text);
  text-decoration: none;
}
.eng-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.eng-footer__links a:hover { color: var(--brand-cyan); }
.eng-footer__links a:hover::after,
.eng-footer__links a:focus-visible::after { transform: scaleX(1); }
.eng-meta {
  max-width: 74ch;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: rgba(176, 196, 201, .82);
}

@media (min-width: 640px) {
  .eng-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .eng-metrics { grid-template-columns: repeat(3, 1fr); }
  .eng-tile__detail { max-width: 32ch; }
}
@media (max-width: 599px) {
  .eng-nav__actions .btn { padding: 9px 12px; font-size: 12px; }
  .eng-hero {
    background-image:
      linear-gradient(180deg, rgba(7, 17, 21, .96) 0%, rgba(7, 17, 21, .92) 55%, rgba(7, 17, 21, .88) 100%),
      url("../img/warrior-portrait.jpg");
    background-position: center, 62% 22%;
  }
  .eng-title { max-width: none; }
}

/* Mobile back affordance for the engine page. The desktop nav link is hidden
   below 768px so the nav keeps room for the crest and the primary button. */
.eng-crumbs { display: none; }
@media (max-width: 767px) {
  .eng-crumbs {
    display: block;
    background: var(--brand-bg);
    border-bottom: 1px solid var(--brand-line);
  }
  .eng-crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-block: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-muted);
    text-decoration: none;
  }
  .eng-crumbs a:hover,
  .eng-crumbs a:focus-visible { color: var(--brand-cyan); }
  .eng-nav__actions .link-brass { display: none; }
}

/* --------------------------------------------------------------------------
   22. Systems section (index.html)
   -------------------------------------------------------------------------- */
.systems { counter-reset: flow; }
.systems .sec-head { margin-bottom: clamp(28px, 3.6vw, 50px); }
.systems__stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--brand-gold);
}
.systems__stat::before { content: ""; width: 24px; height: 1px; background: var(--brand-gold); }

/* System map ------------------------------------------------------------- */
.systems__map { display: none; }
.systems__map-list {
  display: grid;
  gap: 16px;
  margin-top: clamp(22px, 3vw, 34px);
}
.map-group { border-top: 1px solid var(--brand-line); padding-top: 14px; }
.map-group__label {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--brand-gold);
}
.map-group ul { display: flex; flex-wrap: wrap; row-gap: 4px; }
.map-group li { display: inline; font-size: 15px; line-height: 1.5; color: var(--brand-text); }
.map-group li + li::before { content: "·"; margin: 0 9px; color: var(--brand-muted); }

.systems__map-inner {
  margin-top: clamp(22px, 3vw, 34px);
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--brand-line);
  border-radius: 3px;
  background: var(--brand-panel);
}
.systems__map-inner svg { display: block; width: 100%; height: auto; }
.map__band { fill: var(--brand-panel-2); stroke: var(--brand-line); stroke-width: 1; }
.map__band--ops { fill: var(--brand-bg); }
.map__title { font-family: var(--mono); font-size: 16px; letter-spacing: .14em; fill: var(--brand-gold); }
.map__item { font-family: var(--sans); font-size: 17px; fill: var(--brand-text); }
.map__item--muted { font-size: 16px; fill: var(--brand-muted); }
.map__wire { stroke: var(--brand-line); stroke-width: 1.25; fill: none; }
.map__wire-label { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; fill: var(--brand-muted); }
.map__wire-mask { fill: var(--brand-panel); }
.map__node { fill: var(--brand-cyan); }

/* Workflow cards --------------------------------------------------------- */
.flows { display: grid; gap: clamp(14px, 2vw, 22px); margin-top: clamp(34px, 4.4vw, 54px); }
.flow {
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--brand-line);
  border-radius: 3px;
  background: var(--brand-panel);
}
.flow__num {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--brand-gold);
}
.flow__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  color: var(--brand-text);
}
.flow__steps { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; }
.flow__steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--brand-muted);
}
.flow__arrow { width: 13px; height: 13px; flex: 0 0 auto; color: var(--brand-cyan); }

/* Wired-in groups -------------------------------------------------------- */
.wired { display: grid; gap: clamp(16px, 2.2vw, 24px); margin-top: clamp(32px, 4vw, 48px); }
.wired__group { border-top: 1px solid var(--brand-line); padding-top: 14px; }
.wired__label {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--brand-gold);
}
.wired__list { display: flex; flex-wrap: wrap; row-gap: 4px; }
.wired__list li { display: inline; font-size: 15px; line-height: 1.5; color: var(--brand-text); }
.wired__list li + li::before { content: "·"; margin: 0 9px; color: var(--brand-muted); }

.systems__close {
  display: grid;
  gap: 16px;
  margin-top: clamp(36px, 4.4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
}
.systems__close p {
  max-width: 64ch;
  font-size: clamp(16px, 1.1vw, 17.5px);
  line-height: 1.62;
  color: var(--brand-muted);
}

@media (min-width: 768px) {
  .flows { grid-template-columns: 1fr 1fr; }
  .wired { grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); }
  .systems__close { grid-template-columns: 1fr auto; align-items: end; }
}
@media (max-width: 767px) {
  .flow__steps { display: grid; gap: 7px; }
  .flow__steps li { display: flex; }
  .flow__arrow { transform: rotate(90deg); }
}
@media (min-width: 1024px) {
  .systems__map { display: block; }
  .systems__map-list { display: none; }
}
@media (min-width: 900px) {
  .systems .sec-head .label { grid-column: 1 / 7; }
  .systems .sec-head .systems__stat { grid-column: 9 / 13; justify-self: end; text-align: right; }
  .systems .sec-head .h2 { grid-column: 1 / 8; }
  .systems .sec-head .sec-lede { grid-column: 8 / 13; }
}

/* --------------------------------------------------------------------------
   23. Integrations audit page (integrations.html)
   -------------------------------------------------------------------------- */
.page-audit { background: var(--brand-bg); }

/* Below 768 the internal pages keep a one-row sticky header (crest + wordmark);
   their CTAs live in the page body and footer. Desktop is unchanged. */
@media (max-width: 767px) {
  .page-audit .eng-nav__actions .btn { display: none; }
  .page-engine .nav__inner,
  .page-audit .nav__inner { gap: 16px; }
}
.audit-hero {
  background: var(--brand-panel);
  border-bottom: 1px solid var(--brand-line);
  padding-block: clamp(48px, 6.5vw, 92px);
}
.audit-hero__inner { display: grid; gap: clamp(16px, 2vw, 22px); max-width: 72ch; }
.audit-hero .eng-title { font-size: clamp(38px, 5.2vw, 76px); max-width: 14ch; }
.audit-section { padding-block: clamp(34px, 4.4vw, 58px); border-bottom: 1px solid var(--rule); }
.audit-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(14px, 2vw, 20px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--brand-text);
}
.audit-h__num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--brand-gold); }
.audit-legend { display: grid; gap: 12px; padding-block: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--brand-line); }
.audit-legend__list { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.audit-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--brand-muted);
}
.audit-list { display: grid; }
.audit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--rule);
}
.audit-row:first-child { border-top: 1px solid var(--rule); }
.audit-row__name { font-size: 15.5px; font-weight: 500; color: var(--brand-text); }
.audit-row .pill { justify-self: end; align-self: start; }
.audit-row__desc { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.55; color: var(--brand-muted); }
.audit-claims { display: grid; gap: 10px; }
.audit-claims li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.55; color: var(--brand-muted); }
.audit-claims li::before { content: "—"; position: absolute; left: 0; color: var(--brand-gold); }
.audit-close {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--brand-line);
  border-left: 2px solid var(--brand-gold);
  background: var(--brand-panel);
}
.audit-close p { max-width: 72ch; font-size: clamp(16px, 1.1vw, 17.5px); line-height: 1.62; color: var(--brand-muted); }
.audit-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 18px; }

@media (min-width: 768px) {
  .audit-row {
    grid-template-columns: minmax(180px, 250px) 1fr auto;
    align-items: baseline;
    gap: 4px 24px;
  }
  .audit-row__name { grid-column: 1 / 2; grid-row: 1; }
  .audit-row__desc { grid-column: 2 / 3; grid-row: 1; }
  .audit-row .pill { grid-column: 3 / 4; grid-row: 1; }
}
/* --------------------------------------------------------------------------
   24. Print — all three pages are forced to black-on-white paper.
   -------------------------------------------------------------------------- */
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  body::after { display: none !important; }
  .nav, .menu, .rail, .rail__note, .skip, .hero__actions, .contact__actions,
  .footer__links, .cloudband, .eng-nav__actions, .eng-footer__links,
  .eng-crumbs, .card__arrow, .arrow, .systems__map { display: none !important; }
  .band, .more, .hero, .proof, .proof li, .shot, .shot__cover, .plate,
  .plate__bar, .proofbox, .facts-card, .card, .contact, .footer, .cloudband,
  .eng-hero, .eng-tile, .eng-band, .eng-footer, .eng-lockup, .pill, .btn,
  .eng-pill, .systems__map-inner, .flow, .wired__group, .systems__close,
  .audit-hero, .audit-section, .audit-legend, .audit-close, .audit-row {
    background: #fff !important;
    color: #000 !important;
    border-color: #999 !important;
    box-shadow: none !important;
    background-image: none !important;
  }
  *, *::before, *::after { color: #000 !important; }
  .dot { background: #555 !important; box-shadow: none !important; }
  .dot--retired { background: transparent !important; box-shadow: inset 0 0 0 1px #555 !important; }
  .shot { break-inside: avoid; }
  .shot__cover { display: none !important; }
  .shot--noimg .shot__cover { display: flex !important; }
  .crest-plate { display: block !important; }
  .status-chip { background: #fff !important; color: #000 !important; border-color: #999 !important; }
  .systems__map-list { display: grid !important; }
  .shot__img { opacity: 1 !important; }
  html.js-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .case, .card, .step, .cap, tr, .eng-tile { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  p, li, dd { orphans: 3; widows: 3; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--mono);
    font-size: 9pt;
    word-break: break-all;
  }
  .case__body, .card { border: 0; }
  .ledger__table tbody tr { display: table-row !important; }
  .ledger__table thead { display: table-header-group !important; position: static !important; clip-path: none !important; width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; }
  .ledger__table { display: table !important; }
  .ledger__table td, .ledger__table th { display: table-cell !important; }
}
