/* ==========================================================================
   siriusdevops.com — "Terminal-Grade Luxury"
   Single shared stylesheet for index.html, lab.html, book.html.
   No frameworks, no build step. Loaded from /assets/site.css.

   Token note: --text-muted (#64748b) is specified but measures 3.45–4.16:1 on
   the page surfaces, so it is used for rules, dividers and decoration only.
   Small labels that carry meaning use --text-quiet (#8b98ab, ≥4.68:1 on every
   surface) or --text-secondary.

   Accent policy: ONE accent — cyan (links, primary CTA, active nav, focus).
   Emerald and amber are semantic only (live / retired) and always paired
   with a text label or glyph — never color alone. Indigo was folded into
   cyan: the tunnel keeps its dashed stroke, so shape carries the meaning.

   Type scale: five steps (--fs-display / --fs-title / --fs-head / --fs-body
   / --fs-label) used everywhere. Exception: .arch-svg sheet labels keep
   their own sizes because they scale with the drawing's viewBox.

   Rhythm: --section-pad is the single vertical-rhythm constant; strips and
   the footer derive from it with calc().
   ========================================================================== */

:root {
  /* surfaces */
  --bg-base: #070a12;
  --bg-surface: #0f1523;
  --bg-surface-elevated: #161f33;

  /* lines */
  --border-subtle: #1e293b;
  --border-highlight: #334155;

  /* ink */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-quiet: #8b98ab; /* derived: accessible stand-in for small labels */

  /* accents — one accent (cyan); emerald/amber are semantic, always labeled */
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981; /* live */
  --accent-amber: #fbbf24;   /* retired */

  /* type scale — five steps */
  --fs-display: clamp(34px, 4.6vw, 60px); /* h1 */
  --fs-title: clamp(26px, 3.4vw, 40px);   /* h2, receipt values */
  --fs-head: clamp(18px, 1.5vw, 21px);    /* h3 */
  --fs-body: 16px;                        /* paragraphs, ledes, buttons */
  --fs-label: 12px;                       /* mono labels, chips, nav, meta */

  /* vertical rhythm — one constant for all section padding */
  --section-pad: clamp(56px, 7vw, 96px);

  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1160px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Radial glows, top-left and top-right. Fixed so they read as light, not a
   block of colour that moves with content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 6% -8%, rgba(56, 189, 248, 0.13), transparent 70%),
    radial-gradient(620px 400px at 96% -4%, rgba(56, 189, 248, 0.06), transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(56, 189, 248, 0.28); color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent-cyan);
  color: #041016;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section + .section { border-top: 1px solid var(--border-subtle); }

/* Asymmetric sheet header: eyebrow + hairline on the left, H2 left-aligned,
   lede hanging right, bottom-aligned. Stacks to one column under 900px. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.section-head .eyebrow { display: flex; margin-bottom: 14px; }
.section-head .eyebrow::after { flex: 1; width: auto; }
.section-head .h-section { margin-bottom: 0; }
.section-head .section-desc {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}
.eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-highlight), transparent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.h-section {
  font-size: var(--fs-title);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 66ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--text-quiet);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand-sep { color: var(--text-quiet); font-weight: 400; }

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
  animation: pulse-dot 2.6s infinite;
  flex: none;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
  60%  { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
/* labeled-live pulse: emerald, only ever beside the word "Live" */
@keyframes pulse-dot-live {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  60%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(56, 189, 248, 0.07); }

.nav-links .nav-cta {
  margin-left: 8px;
  color: #041016;
  background: var(--accent-cyan);
  font-weight: 600;
  padding: 0 16px;
  box-shadow: 0 8px 24px -12px rgba(56, 189, 248, 0.75);
}
.nav-links .nav-cta:hover { background: #7dd3fc; color: #041016; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.14s var(--ease),
              box-shadow 0.18s var(--ease);
}

.btn-primary {
  background: var(--accent-cyan);
  color: #041016;
  box-shadow: 0 12px 34px -16px rgba(56, 189, 248, 0.9);
}
.btn-primary:hover { background: #7dd3fc; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-highlight);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.06);
}

.btn-ghost {
  min-height: 40px;
  padding: 8px 0;
  background: none;
  color: var(--accent-cyan);
  font-weight: 500;
  font-size: var(--fs-body);
  border: 0;
}
.btn-ghost:hover { color: #7dd3fc; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--section-pad) 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--text-quiet);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 21, 35, 0.7);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 24px;
  max-width: 100%;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex: none;
  animation: pulse-dot 2.6s infinite;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.042em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-title .accent-line {
  display: block;
  color: var(--text-primary);
}
.hero-title em {
  font-style: normal;
  color: var(--accent-cyan);
}

.hero-sub {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.72;
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--text-primary); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Operator micro-crop beside the action row. Same monogram-behind-photo
   fallback as .portrait; the 200px export keeps the 48px circle sharp. */
.hero-operator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.hero-face {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-face picture { position: absolute; inset: 0; }
.hero-face img { width: 100%; height: 100%; object-fit: cover; }
.hero-face .monogram { font-size: var(--fs-body); }
.hero-operator-name {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--text-quiet);
}

.hero-foot {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--text-quiet);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-foot .sep { color: var(--text-quiet); }

/* Telemetry card — the page's signature object. */
.telemetry {
  background:
    linear-gradient(180deg, rgba(22, 31, 51, 0.92), rgba(15, 21, 35, 0.94));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(2, 6, 23, 0.95),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.telemetry::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.55;
}

.telemetry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 18, 0.35);
}

.telemetry-head .cluster {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.telemetry-head .cluster b { color: var(--text-primary); font-weight: 500; }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.09);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.badge-live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-dot-live 2.6s infinite;
}

.telemetry-rows { padding: 6px 0; }

.telemetry-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 16px;
  align-items: baseline;
}
.telemetry-row + .telemetry-row { border-top: 1px solid rgba(30, 41, 59, 0.72); }

.telemetry-row dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.telemetry-row dd {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-secondary);
}
.telemetry-row dd b {
  color: var(--text-primary);
  font-weight: 500;
}
.telemetry-row dd .val {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
}

.telemetry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.07em;
  color: var(--text-quiet);
  background: rgba(7, 10, 18, 0.35);
}
.telemetry-foot .ok { color: var(--accent-emerald); }

/* --------------------------------------------------------------------------
   Metrics strip
   -------------------------------------------------------------------------- */

.metrics {
  padding: calc(var(--section-pad) * 0.5) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(15, 21, 35, 0.55), rgba(7, 10, 18, 0.2));
}

/* Invoice caption above the receipt tiles: same mono eyebrow treatment,
   quiet colour — a line item, not a section title. */
.metrics-caption {
  color: var(--text-quiet);
  margin: 0 0 18px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  padding: 26px 22px;
  min-width: 0;
}
.metric + .metric { border-left: 1px solid var(--border-subtle); }

.metric-value {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.1;
}
.metric-value .unit {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.metric-label {
  margin-top: 8px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-secondary);
}
.metric-note {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--text-quiet);
}

/* --------------------------------------------------------------------------
   Capability cards
   -------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  min-width: 0;
  position: relative;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
              transform 0.22s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12), 0 26px 60px -40px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}
.card:hover::before,
.card:focus-within::before { opacity: 1; }

.card-index {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.card-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.card h3 {
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
}

.card p {
  font-size: var(--fs-body);
  line-height: 1.66;
  color: var(--text-secondary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.card-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 8px;
}
.meta-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.meta-key {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-quiet);
}
.meta-val { font-size: var(--fs-body); line-height: 1.55; color: var(--text-secondary); }
.meta-val strong { color: var(--text-primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   Engagement tracks
   -------------------------------------------------------------------------- */

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.track {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.track:hover { border-color: var(--border-highlight); }


.track-head { margin-bottom: 8px; }
.track-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.track h3 {
  font-size: var(--fs-head);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.track-for {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.track-list { display: grid; gap: 0; margin-bottom: 22px; }

.offer-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 6px;
}
.offer-name strong {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.offer-price {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  white-space: nowrap;
}

.track-foot { margin-top: auto; }

/* --------------------------------------------------------------------------
   Proof cards
   -------------------------------------------------------------------------- */

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 20px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
              transform 0.22s var(--ease);
}
.proof-card:hover,
.proof-card:focus-visible {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 26px 60px -42px rgba(56, 189, 248, 0.75);
  transform: translateY(-2px);
}

.proof-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-quiet);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.proof-kicker .src { color: var(--accent-cyan); }
.proof-kicker .sep { color: var(--text-quiet); }

.proof-card h3 {
  font-size: var(--fs-head);
  letter-spacing: -0.022em;
  line-height: 1.3;
}

.proof-card p {
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text-secondary);
}

.proof-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.proof-link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  overflow-wrap: anywhere;
}
.proof-link .arrow { flex: none; transition: transform 0.2s var(--ease); }
.proof-card:hover .proof-link .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: clamp(160px, 18vw, 200px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  max-width: 820px;
}

/* Headshot served from /media/ (private Garage bucket, synced at pod start —
   never baked into the image). The LW monogram sits behind the photo in the
   same fixed box: if the sync failed, the img's onerror hides the <picture>
   and the monogram shows with zero layout shift. 1:1 box only — the source
   crop has the top of the head ~3% from the edge; a taller cover box clips it. */
.portrait {
  position: relative;
  width: clamp(160px, 18vw, 200px);
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.portrait picture { position: absolute; inset: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
}
.portrait .monogram { font-size: var(--fs-title); }

.about-body p { font-size: var(--fs-body); line-height: 1.75; color: var(--text-secondary); max-width: 66ch; }
.about-body p + p { margin-top: 14px; }
.about-body strong { color: var(--text-primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   Contact + form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.contact-facts {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 8px;
}
.contact-facts div {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-quiet);
}
.contact-facts span:first-child { min-width: 74px; color: var(--text-quiet); }

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  min-width: 0;
}

.form-card .field { margin-bottom: 16px; }

.form-card label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 7px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  appearance: none;
}

.form-card select {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-quiet) 50%),
    linear-gradient(135deg, var(--text-quiet) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.form-card select option { background: var(--bg-surface-elevated); color: var(--text-primary); }

.form-card input::placeholder,
.form-card textarea::placeholder { color: var(--text-quiet); } /* 6.59:1 on the field bg — placeholder text carries meaning, so it passes 4.5:1 like every other label */

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-card textarea { resize: vertical; min-height: 128px; line-height: 1.6; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn-primary { width: 100%; margin-top: 4px; }
.form-card .btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; }

.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-quiet);
}
.form-status.ok { color: var(--accent-emerald); }
.form-status.err { color: #fca5a5; }

.form-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: calc(var(--section-pad) * 0.5) 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s var(--ease);
}
.footer-links a:hover { color: var(--accent-cyan); }

.footer-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}
.footer-tagline {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   Lab page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: var(--section-pad) 0;
}

.page-hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 780px;
  margin-bottom: 18px;
  text-wrap: balance;
}
.page-hero .lede {
  font-size: var(--fs-body);
  max-width: 660px;
  line-height: 1.72;
  color: var(--text-secondary);
}
.page-hero .hero-note {
  margin-top: 16px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-quiet);
  max-width: 640px;
}
.page-hero .hero-actions { margin-top: 22px; }

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px 24px;
  min-width: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.project-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 60px -45px rgba(56, 189, 248, 0.8);
}
.project-card.wide { grid-column: 1 / -1; }
.project-type {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.project-type .status-chip { margin-left: auto; letter-spacing: 0.1em; }
.project-card h3 {
  font-size: var(--fs-head);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.project-card p {
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.project-features { display: grid; gap: 8px; }
.project-features li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.project-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  line-height: 1.95;
}
.project-features a { color: var(--accent-cyan); text-decoration: none; overflow-wrap: anywhere; }
.project-features code,
.shot code {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 3px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.project-features a:hover { text-decoration: underline; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.shot:hover { border-color: var(--border-highlight); transform: translateY(-2px); }
.shot img { width: 100%; border-bottom: 1px solid var(--border-subtle); background: #05070d; }
.shot figcaption {
  padding: 18px 20px 22px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-secondary);
}
.shot figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.shot-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}


.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 32px;
}
.stack-category h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.stack-items { display: grid; gap: 9px; }
.stack-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--fs-body);
  color: var(--text-secondary);
}
.stack-item .version {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-quiet);
  background: rgba(30, 41, 59, 0.6);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.cta-band { text-align: left; }

.section--flush-top { padding-top: 0; }
.cta-band .section-desc { margin-bottom: 0; }
.cta-band .back-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-quiet);
  text-decoration: none;
}
.cta-band .back-link:hover { color: var(--accent-cyan); }

/* --------------------------------------------------------------------------
   Book page
   -------------------------------------------------------------------------- */

.book-shell { max-width: 760px; margin: 0 auto; }

.what-you-get,
.after-submit {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 22px;
}
.what-you-get h2,
.after-submit h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 16px;
}
.what-you-get ul,
.after-submit ul { display: grid; gap: 10px; }
.what-you-get li,
.after-submit li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.what-you-get li::before,
.after-submit li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  line-height: 2.1;
}
.what-you-get .tz-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}

.calendar-slot {
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-secondary);
}
.calendar-slot a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.calendar-slot a:hover { text-decoration: underline; }

/* Funnel: free review → audit → build/retainer, stated once, plainly. */
.funnel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.funnel-title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 14px;
}
.funnel-steps {
  display: grid;
  gap: 10px;
  counter-reset: none;
}
.funnel-steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.funnel-steps strong { color: var(--text-primary); font-weight: 600; }
.funnel-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
}
.funnel-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

.book-form { max-width: none; margin: 0; }

/* --------------------------------------------------------------------------
   Positioning pass additions: honest status, diagram sheet, engagement funnel
   -------------------------------------------------------------------------- */

.hero-promise {
  margin-top: -14px;
  color: #cbd5e1;
  font-size: var(--fs-body);
  max-width: 540px;
}

/* Status chips: every repo card states whether the thing is live. */
.status-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
  border: 1px solid var(--border-highlight);
  color: var(--text-quiet);
}
.status-chip--live {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.1);
}
.status-chip--retired {
  color: var(--accent-amber);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
}

/* Services: the audit leads — one device, a wider first column. The other
   two stay peers; no extra rules, padding or badges on the lead card. */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.also-available {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-quiet);
  max-width: 640px;
}

.also-available a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.also-available a:hover { text-decoration: underline; }

/* Architecture sheet — drawn evidence, not decoration. */
.arch {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.arch-sheet {
  overflow-x: auto;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(56, 189, 248, 0.06), transparent 72%),
    rgba(7, 10, 18, 0.5);
}
.arch-sheet:focus-visible { outline-offset: -2px; }

.arch-svg {
  display: block;
  width: 100%;
  min-width: 720px; /* labels stay legible; the sheet pans instead of shrinking */
  height: auto;
  padding: 20px 18px 10px;
}

.arch-svg text {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--text-primary);
  text-anchor: middle;
  letter-spacing: 0.02em;
}
.arch-svg .arch-sub {
  font-size: 11.5px;
  fill: var(--text-quiet);
}

.arch-edge rect {
  fill: var(--bg-surface-elevated);
  stroke: var(--accent-cyan);
  stroke-width: 1.4;
}

.arch-tunnel rect {
  fill: rgba(56, 189, 248, 0.05);
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.arch-gateway circle {
  fill: rgba(56, 189, 248, 0.09);
  stroke: var(--accent-cyan);
  stroke-width: 1.8;
}

.arch-svc rect {
  fill: rgba(15, 21, 35, 0.95);
  stroke: var(--border-highlight);
  stroke-width: 1.3;
}

.arch-node circle { fill: var(--accent-cyan); }
.arch-svg .arch-mesh { fill: var(--text-quiet); }

.arch figcaption {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border-subtle);
}

.arch-caption {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 14px;
}

.arch-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
}
.arch-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-secondary);
}

.swatch { flex: none; display: inline-block; }
.swatch-box {
  width: 20px;
  height: 12px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 2px;
}
.swatch-dashed {
  width: 22px;
  height: 12px;
  border: 1.5px dashed var(--accent-cyan);
  border-radius: 3px;
}
.swatch-circle {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 50%;
}
.swatch-rounded {
  width: 20px;
  height: 12px;
  border: 1.5px solid var(--border-highlight);
  border-radius: 5px;
}
.swatch-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin: 0 6px;
}
.swatch-line {
  width: 22px;
  height: 2px;
  background: var(--accent-cyan);
}

/* Semantic-live callout: emerald rule is paired with the bold claim text. */
.callout {
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 3px solid var(--accent-emerald);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-secondary);
}
.callout strong { color: var(--text-primary); font-weight: 600; }
.callout a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.callout a:hover { text-decoration: underline; }

/* Proof cards: a repo header link plus the exact directories worth opening. */
.proof-card h3 a {
  color: inherit;
  text-decoration: none;
}
.proof-card:hover h3 a,
.proof-card h3 a:focus-visible { color: var(--accent-cyan); }

.proof-links {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.proof-links li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}
.proof-links li::before {
  content: "↳";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--border-highlight);
}
.proof-links a {
  color: var(--accent-cyan);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.proof-links a:hover { text-decoration: underline; }

.proof-shot { display: flex; flex-direction: column; }
.proof-shot img { border-bottom: 1px solid var(--border-subtle); }

.labs-more {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}
.labs-more a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.labs-more a:hover { text-decoration: underline; }

/* Engagement ladder: the free review keeps the only CTA; the retainer card
   (step 3) is the heaviest block in the section. */
.engagement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
  /* start, not stretch: the review card keeps its natural height so the
     retainer card is unambiguously the heaviest block in the section. */
  align-items: start;
}

.review-card {
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.09), rgba(15, 21, 35, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.review-card .track-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.review-card h3 {
  font-size: var(--fs-head);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.review-lede {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.review-list { display: grid; gap: 9px; margin-bottom: 22px; }
.review-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.review-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  line-height: 1.95;
}
.review-card .btn { margin-top: auto; align-self: flex-start; }
.review-note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}

/* Steps 2–3 stack beside the free review. Step 2 stays a quiet fixed-price
   row; step 3 (the retainer) is the heaviest block: elevated surface,
   highlight border, the most concrete detail on the page. No button on it —
   the free review keeps the only CTA in this section. */
.ladder-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.ladder-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px 24px;
  min-width: 0;
}
.ladder-step .track-kicker { color: var(--text-quiet); }
.ladder-step h3 {
  font-size: var(--fs-head);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.ladder-step p { font-size: var(--fs-body); line-height: 1.6; color: var(--text-secondary); }
.audit-step .offer-name { margin-bottom: 8px; }

.retainer-card {
  background: var(--bg-surface-elevated);
  border-color: var(--border-highlight);
  padding: 28px 26px 24px;
  box-shadow: 0 24px 48px -30px rgba(2, 6, 16, 0.95);
}
.retainer-list { display: grid; gap: 9px; margin-top: 4px; }
.retainer-list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.retainer-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  line-height: 1.95;
}
/* Scoped to .retainer-card so these outrank .ladder-step p (0,1,1). */
.retainer-card .retainer-claim {
  margin-top: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.retainer-card .retainer-pricing {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-highlight);
}
.retainer-card .retainer-pricing strong { color: var(--text-primary); font-weight: 600; }
.retainer-card .retainer-note { margin-top: 14px; }

/* Founding offer: fixed step, stated refusals, real capacity. */
.founding {
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius);
  background: var(--bg-surface);
}
/* .founding p below outranks a bare class selector — scope the kicker to win. */
.founding .founding-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.founding h3 { font-size: var(--fs-head); letter-spacing: -0.02em; margin-bottom: 10px; }
.founding p { font-size: var(--fs-body); line-height: 1.65; color: var(--text-secondary); }
.founding ul { display: grid; gap: 7px; margin-top: 14px; }
.founding li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.founding li::before {
  content: "\00d7";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--text-quiet);
}
.founding .capacity {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.7;
  color: var(--text-quiet);
}
@media (max-width: 640px) { .founding { padding: 20px 18px; } }

.about-link {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-quiet);
}
.about-link a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.about-link a:hover { text-decoration: underline; }
.about-link .sep { margin: 0 8px; color: var(--border-highlight); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

/* Entrance motion is additive: content is visible by default and only dimmed
   once JS owns the reveal. No JS, no IntersectionObserver — still readable. */
.anim .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.anim .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive — mobile-first constraints, breakpoints at 900px and 600px
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .nav-links a { padding: 0 10px; font-size: var(--fs-label); }
  .nav-links .nav-cta { padding: 0 14px; }
}

/* Nav collapses before the links would crowd or clip — the six required
   destinations plus a long CTA need ~1090px of row. Layout breakpoints stay
   at 900 and 600. */
@media (max-width: 1140px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: rgba(7, 10, 18, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    min-height: 48px;
    font-size: var(--fs-body);
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  }
  .nav-links .nav-cta {
    margin: 12px 0 0;
    justify-content: center;
    border-bottom: 0;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; --gutter: 20px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tracks-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .engagement-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 20px 18px; }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--border-subtle); }

  .telemetry-row { grid-template-columns: 96px minmax(0, 1fr); }

  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .section-desc {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    margin-top: 12px;
    max-width: 66ch;
  }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }

  .hero-eyebrow { letter-spacing: 0.08em; padding: 6px 11px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .telemetry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }
  .telemetry-row dt { color: var(--text-secondary); }
  .telemetry-head { padding: 12px 14px; }
  .telemetry-foot { flex-wrap: wrap; }

  .metric { padding: 18px 16px; }

  .card, .track { padding: 22px 20px; }
  .ladder-step { padding: 20px 18px; }
  .retainer-card { padding: 22px 20px; }
  .card-meta .meta-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .arch-legend { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .arch figcaption { padding: 16px 16px 18px; }
  .proof-links li { font-size: var(--fs-label); }

  .about-grid { grid-template-columns: minmax(0, 1fr); }

  .stack-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-offer { flex-direction: column; align-items: flex-start; }

  .form-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .anim .reveal { opacity: 1; transform: none; }
}
