/* ==========================================================
   virtscale.css — v12 · Unified shared stylesheet
   Source of truth: index.html inline style block (v12 Corporate).
   Subpage-only rules preserved; legacy suppression rules removed.
   ========================================================== */

/* ===== Custom properties ===== */

:root {
  --bg:        #0A0E13;
  --bg-deep:   #06090F;
  --surface:   #10141B;
  --elevated:  #161B24;

  --line:      rgba(255,255,255,0.06);
  --line-2:    rgba(255,255,255,0.10);
  --line-3:    rgba(255,255,255,0.16);

  --fg:        #F2F4F6;
  --fg-2:      #C2CAD4;
  --fg-3:      #8B95A1;
  --fg-4:      #5A626E;
  --fg-faint:  #383F49;

  --accent:    #2E9B5F;   /* muted forest emerald, primary */
  --accent-2:  #1F7A47;   /* darker hover */
  --accent-bg: rgba(46,155,95,0.08);

  /* Subpage palette extensions */
  --rose:      #C8666E;   /* error / postmortem accent */

  /* Added: referenced by subpage <style> blocks, not in index.html inline style */
  --emerald:   #2DB372;   /* brighter green; arch pills, BOM version column, form focus rings */
  --emerald-2: #1F9A5E;   /* darker emerald; form submit button border */
  --moss:      #1F7A47;   /* muted label green; contract steps, prim ids, contact roles */
  --grid:      rgba(255,255,255,0.04); /* arch-canvas background grid line colour */
  --cyan:      #2BB5C8;   /* release-type label (engineering log) */
  --amber:     #C8933A;   /* field-report label (engineering log) */

  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: 32px;
  --max:    1240px;
}
@media (max-width: 800px) { :root { --gutter: 20px; } }
@media (max-width: 400px) { :root { --gutter: 16px; } }

/* ===== Reset / base ===== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ===== Layout primitives ===== */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ===== Background ===== */

/* One quiet radial glow; no grid, no vignette, no rule */
.bg-shell {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-shell::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  top: -300px; left: -200px;
  background:
    radial-gradient(closest-side, rgba(46,155,95,0.07), rgba(46,155,95,0.02) 55%, transparent 75%);
  filter: blur(20px);
}

/* ===== Header ===== */

.head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,14,19,0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.head .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: 40px;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--fg);
}
.brand-mark { width: 22px; height: 22px; flex: none; display: inline-block; color: var(--fg); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
/* Legacy v11/v12 mark sub-elements: hide if present (new mark uses currentColor) */
.brand-mark .frame,
.brand-mark .tick { display: none; }
.brand-mark .fill { fill: currentColor; }
.brand-word {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
}
/* Legacy v11 wordmark sub-elements: hide slash + region tag */
.brand-word .slash,
.brand-word .region { display: none; }

.nav {
  display: inline-flex; align-items: center; gap: 32px;
  font-family: var(--sans); font-size: 14px; font-weight: 450;
  justify-self: center;
  letter-spacing: -0.005em;
}
.nav a {
  color: var(--fg-2);
  padding: 6px 0;
  position: relative;
  transition: color 160ms ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after {
  content: ""; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--accent);
}

.head-cta { display: inline-flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
  min-height: 38px;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn .arrow-i {
  width: 13px; height: 13px;
  position: relative;
  transition: transform 180ms ease;
}
.btn .arrow-i::before {
  content: "";
  position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8h10M9 4l4 4-4 4'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8h10M9 4l4 4-4 4'/></svg>") center / contain no-repeat;
}
.btn:hover .arrow-i { transform: translateX(2px); }
.btn-ghost {
  color: var(--fg-3);
  padding: 9px 10px;
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover { color: var(--fg); }
.btn-secondary {
  color: var(--fg);
  border-color: var(--line-2);
  background: transparent;
}
.btn-secondary:hover { border-color: var(--line-3); }
.btn-primary {
  color: #061008;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: #36AC6B;
  border-color: #36AC6B;
}
.btn-lg { padding: 12px 20px; font-size: 14.5px; }

/* ===== Mobile navigation — CSS-only checkbox pattern ===== */
/*
 * HTML structure in .head .wrap (3-column grid):
 *   .brand           (col 1)
 *   nav.nav          (col 2) — with preceding hidden checkbox input
 *   .head-end        (col 3) — contains .head-cta buttons + .nav-toggle-btn label
 *
 * The hidden <input type="checkbox" id="nav-open" class="nav-check"> sits
 * between brand and nav in the DOM.  When :checked, CSS sibling combinator
 * reveals the .nav panel on mobile.
 * .nav-toggle-btn is a <label for="nav-open"> inside .head-end.
 *
 * Desktop (≥768px): checkbox input and label are both display:none.
 *   Nav is inline-flex as today.
 * Mobile (<768px): label becomes visible hamburger; nav collapses to
 *   display:none by default and reveals as an absolute panel when :checked.
 */

/* Visually hide the checkbox everywhere */
.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

/* .head-end: col-3 wrapper */
.head-end {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Desktop: hamburger label hidden */
.nav-toggle-btn { display: none; }

@media (min-width: 768px) and (max-width: 1023px) {
  .nav { gap: 20px; font-size: 13px; }
  .head .wrap { gap: 20px; }
  .head-end .btn-ghost { display: none; }
}

@media (max-width: 767px) {
  /* Compact header */
  .head .wrap {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    height: 60px;
  }

  /* nav hides by default on mobile */
  .nav { display: none; }

  /* When checkbox is checked: show mobile nav panel */
  .nav-check:checked ~ .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(10,14,19,0.97);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
    gap: 0;
    z-index: 40;
  }

  .nav a {
    padding: 12px var(--gutter);
    font-size: 15px;
    border-radius: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: rgba(46,155,95,0.06); }

  /* Hamburger label — shown on mobile */
  .nav-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--fg-2);
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  }
  .nav-toggle-btn:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--line-3);
    color: var(--fg);
  }
  /* Focus on the hidden checkbox should show focus ring on label */
  .nav-check:focus-visible ~ .head-end .nav-toggle-btn {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  /* Hamburger bars via pseudo-elements + .nav-bar span */
  .nav-toggle-btn::before,
  .nav-toggle-btn::after {
    content: "";
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 160ms ease, transform 160ms ease;
  }
  .nav-toggle-btn::before { top: calc(50% - 5px); }
  .nav-toggle-btn::after  { top: calc(50% + 3.5px); }
  .nav-toggle-btn .nav-bar {
    display: block;
    width: 18px; height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 160ms ease;
  }

  /* Checked/open state: X icon */
  .nav-check:checked ~ .head-end .nav-toggle-btn::before {
    transform: translateX(-50%) rotate(45deg) translateY(3.5px);
  }
  .nav-check:checked ~ .head-end .nav-toggle-btn .nav-bar { opacity: 0; }
  .nav-check:checked ~ .head-end .nav-toggle-btn::after {
    transform: translateX(-50%) rotate(-45deg) translateY(-3.5px);
  }

  /* head-end on mobile: Sign in primary + hamburger */
  .head-end { gap: 6px; }
  .head-end .btn-ghost { display: none; }
}

/* ===== Global overflow protection ===== */
html, body { overflow-x: clip; }

/* ===== Nav link focus ===== */
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===== Hero (index.html) ===== */

.hero {
  position: relative;
  padding: 120px 0 96px;
  z-index: 1;
}
@media (max-width: 900px) { .hero { padding: 72px 0 56px; } }
@media (max-width: 480px) { .hero { padding: 48px 0 40px; } }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--fg);
  margin: 0 0 28px;
  max-width: 16ch;
  text-wrap: balance;
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(32px, 9vw, 48px); margin-bottom: 18px; }
}
.hero-title .accent { color: var(--accent); }
.hero-deck {
  font-family: var(--body);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}
@media (max-width: 480px) { .hero-deck { margin-bottom: 24px; } }
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { justify-content: center; min-height: 44px; }
}

/* ===== Product preview card (index.html) ===== */

.preview {
  margin-top: 88px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005)),
    var(--surface);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -30px rgba(0,0,0,0.6),
    0 12px 30px -15px rgba(0,0,0,0.5);
  overflow: hidden;
}
@media (max-width: 760px) { .preview { margin-top: 56px; } }

.preview-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.preview-bar .left {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--fg-3);
}
.preview-bar .crumbs {
  display: inline-flex; gap: 6px; color: var(--fg-4);
}
.preview-bar .crumbs .here { color: var(--fg-2); }
.preview-bar .right {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-4);
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0;
}
@media (max-width: 900px) { .preview-body { grid-template-columns: 1fr; } }

.preview-side {
  padding: 32px 32px 36px;
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .preview-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 24px 28px; }
}
.preview-side .title-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.preview-side h3 {
  font-family: var(--sans); font-size: 17px;
  font-weight: 500; letter-spacing: -0.018em;
  color: var(--fg); margin: 0;
}
.preview-side .org {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-4);
}

.preview-stat { margin-bottom: 22px; }
.preview-stat .lbl {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-4); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.preview-stat .val {
  font-family: var(--sans);
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--fg);
  line-height: 1.05;
}
.preview-stat .val .sub { color: var(--fg-3); font-size: 18px; font-weight: 400; margin-left: 6px; }
.preview-stat .val .unit { color: var(--fg-3); font-size: 13px; font-family: var(--mono); margin-left: 4px; font-weight: 400; letter-spacing: 0.02em; }

.bar {
  margin: 8px 0 4px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar .fill {
  position: absolute;
  inset: 0 27% 0 0;
  background: linear-gradient(to right, var(--accent), #36AC6B);
  border-radius: 999px;
}
.bar .cap-line {
  position: absolute;
  top: -3px; bottom: -3px;
  left: 90.9%;
  width: 1px;
  background: var(--fg-3);
}
.bar-foot {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-4); letter-spacing: 0.04em;
  padding-top: 6px;
}
.bar-foot .em { color: var(--fg-2); }

.preview-meta {
  display: grid; gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px;
}
.preview-meta .row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.preview-meta .k { color: var(--fg-4); }
.preview-meta .v { color: var(--fg-2); }

/* Preview events table */
.preview-table {
  padding: 28px 32px 32px;
}
@media (max-width: 900px) { .preview-table { padding: 24px 24px 28px; } }
.preview-table .th-row {
  display: grid;
  grid-template-columns: 110px 78px 1fr 60px;
  gap: 14px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--fg-4); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.preview-table .r-row {
  display: grid;
  grid-template-columns: 110px 78px 1fr 60px;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px;
  align-items: baseline;
}
.preview-table .r-row:last-child { border-bottom: 0; }
.preview-table .ts { color: var(--fg-3); }
.preview-table .ev { color: var(--fg-2); }
.preview-table .desc { color: var(--fg-2); }
.preview-table .dur { color: var(--fg-3); text-align: right; }
.preview-table .r-row.--ok .ev { color: var(--accent); }
.preview-table .r-row.--fail .ev { color: #C8666E; }
@media (max-width: 600px) {
  .preview-table .th-row, .preview-table .r-row { grid-template-columns: 96px 70px 1fr; }
  .preview-table .dur, .preview-table .th-row > span:last-child { display: none; }
}
@media (max-width: 420px) {
  .preview-table .th-row, .preview-table .r-row { grid-template-columns: 80px 1fr; gap: 10px; }
  .preview-table .ev { display: none; }
}

/* ===== Logo strip (index.html) ===== */

.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
@media (max-width: 480px) { .logos { padding: 36px 0; } }
.logos-head {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-4); letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 36px;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}
@media (max-width: 900px) { .logos-row { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (max-width: 500px) { .logos-row { grid-template-columns: repeat(2, 1fr); } }
.logo {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-4);
  text-align: center;
  transition: color 200ms ease;
  user-select: none;
}
.logo:hover { color: var(--fg-2); }
.logo em { font-style: italic; font-weight: 400; }

/* ===== Sections ===== */

.sec {
  padding: 120px 0;
  position: relative; z-index: 1;
}
@media (max-width: 800px) { .sec { padding: 80px 0; } }
@media (max-width: 480px) { .sec { padding: 56px 0; } }

/* Section heading — index.html style (used on homepage) */
.sec-h {
  margin-bottom: 64px;
  max-width: 56ch;
}
.sec-h .eyebrow {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.06em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-weight: 500;
}
.sec-h h2 {
  font-family: var(--sans);
  font-size: clamp(24px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0 0 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.sec-h .lede {
  font-family: var(--body);
  font-size: 17px; line-height: 1.55;
  color: var(--fg-3);
  max-width: 56ch;
  margin: 0;
}

/* Section heading — subpage style */
.sec-head {
  margin-bottom: 56px;
  max-width: 56ch;
  display: block;
}
/* Neutralise any legacy grid-style section head column layout */
.sec-head { grid-template-columns: none !important; }
.sec-head .num {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
  padding-bottom: 0;
  border-bottom: 0;
}
.sec-head .name {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--fg);
  max-width: 22ch;
  line-height: 1.06;
  display: block;
  margin: 0 0 16px;
  text-wrap: balance;
}
.sec-head .name em { color: var(--fg-3); font-style: normal; font-weight: 400; }
.sec-head .meta {
  font-family: var(--body); font-size: 15px;
  color: var(--fg-3);
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  padding-bottom: 0;
  max-width: 56ch;
}

/* ===== Pillars (index.html) ===== */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 40px; } }
.pillar h3 {
  font-family: var(--sans);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.pillar h3::before {
  content: ""; position: absolute;
  top: -1px; left: 0;
  width: 32px; height: 1px;
  background: var(--accent);
}
.pillar p {
  font-family: var(--body); font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0 0 18px;
  max-width: 38ch;
}
.pillar a.more {
  font-family: var(--sans); font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.pillar a.more::after { content: "→"; transition: transform 200ms ease; }
.pillar a.more:hover::after { transform: translateX(3px); }

/* ===== Contract steps (index.html) ===== */

.contract {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contract-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) { .contract-grid { grid-template-columns: 1fr; gap: 40px; } }
.contract .steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
  padding-top: 6px;
}
.step h4 {
  font-family: var(--sans); font-size: 20px;
  font-weight: 500; letter-spacing: -0.018em;
  color: var(--fg);
  margin: 0 0 8px;
}
.step p {
  font-family: var(--body); font-size: 15px; line-height: 1.6;
  color: var(--fg-3); margin: 0;
  max-width: 48ch;
}
.step p code {
  font-family: var(--mono); font-size: 13px;
  color: var(--fg-2);
  background: rgba(255,255,255,0.04); padding: 1px 6px;
  border-radius: 3px;
}

/* ===== Architecture preview (index.html) ===== */

.arch-prev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 56px;
}
@media (max-width: 900px) { .arch-prev { grid-template-columns: 1fr; padding: 36px 28px; gap: 36px; } }
@media (max-width: 480px) { .arch-prev { padding: 24px 18px; gap: 24px; border-radius: 12px; } }
.arch-prev .copy h3 {
  font-family: var(--sans); font-size: 28px;
  font-weight: 500; letter-spacing: -0.025em;
  color: var(--fg); margin: 0 0 16px;
  max-width: 18ch;
}
.arch-prev .copy p {
  font-family: var(--body); font-size: 15.5px; line-height: 1.6;
  color: var(--fg-3); margin: 0 0 24px;
  max-width: 50ch;
}
.arch-prev .copy a.more {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.arch-prev .copy a.more::after { content: "→"; transition: transform 200ms ease; }
.arch-prev .copy a.more:hover::after { transform: translateX(3px); }

/* Simple stacked diagram */
.arch-diagram {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-deep);
  padding: 24px;
  display: grid;
  gap: 12px;
}
.arch-diagram .layer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: baseline;
}
.arch-diagram .layer .l {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-4); letter-spacing: 0.06em; text-transform: uppercase;
}
.arch-diagram .layer .n {
  font-family: var(--sans); font-size: 14.5px;
  color: var(--fg); font-weight: 500;
}
.arch-diagram .layer.--policy {
  border-color: rgba(46,155,95,0.35);
  background: var(--accent-bg);
}
.arch-diagram .layer.--policy .n { color: var(--fg); }

/* ===== Engineering preview (index.html) ===== */

.eng-prev {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .eng-prev { grid-template-columns: 1fr; } }
.eng-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px 26px;
  transition: border-color 200ms ease, transform 200ms ease;
  min-height: 220px;
}
.eng-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.eng-card .tag {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-4); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.eng-card .tag .k { color: var(--accent); }
.eng-card .tag .k.--pm { color: #C8666E; }
.eng-card h4 {
  font-family: var(--sans);
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.25;
}
.eng-card p {
  font-family: var(--body); font-size: 14.5px;
  color: var(--fg-3); margin: 0;
  line-height: 1.55;
  flex: 1;
}
.eng-card .read {
  font-family: var(--sans); font-size: 13.5px;
  color: var(--accent);
  margin-top: 18px;
  font-weight: 500;
}
.eng-card .read::after { content: " →"; transition: transform 200ms ease; display: inline-block; }
.eng-card:hover .read::after { transform: translateX(3px); }

.eng-prev-foot {
  margin-top: 40px;
  text-align: center;
}

/* ===== CTA (index.html) ===== */

.cta {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(46,155,95,0.10), transparent 55%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .cta { padding: 80px 0; } }
@media (max-width: 480px) { .cta { padding: 56px 0; } }
.cta .wrap { max-width: 800px; text-align: center; }
.cta h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0 0 20px;
  text-wrap: balance;
}
.cta p {
  font-family: var(--body);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--fg-3); margin: 0 0 36px;
  max-width: 56ch; margin-left: auto; margin-right: auto;
}
.cta .actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
@media (max-width: 480px) {
  .cta .actions { flex-direction: column; width: 100%; }
  .cta .actions .btn { justify-content: center; min-height: 44px; }
}

/* ===== Footer ===== */

.foot {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}
@media (max-width: 480px) { .foot { padding: 48px 0 28px; } }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: span 3; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-brand { grid-column: span 2; } }
@media (max-width: 380px) { .foot-grid { grid-template-columns: 1fr; } .foot-brand { grid-column: span 1; } }

.foot-brand .brand-line {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg); margin-bottom: 18px;
}
.foot-brand p {
  font-family: var(--body); font-size: 14px;
  color: var(--fg-3);
  max-width: 38ch; line-height: 1.55; margin: 0;
}
/* Legacy region pill — hidden */
.foot-brand .region { display: none; }

.foot-col h5 {
  font-family: var(--sans); font-size: 13px;
  font-weight: 600;
  color: var(--fg); letter-spacing: -0.005em;
  margin: 0 0 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col a {
  font-family: var(--body); font-size: 14px;
  color: var(--fg-3);
  transition: color 160ms ease;
}
.foot-col a:hover { color: var(--fg); }

.foot-base {
  padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-family: var(--body); font-size: 13px; color: var(--fg-4);
}
.foot-base .sep { color: var(--fg-faint); }
.foot-base .right { margin-left: auto; display: inline-flex; gap: 16px; align-items: center; }
.foot-base a:hover { color: var(--fg-2); }
@media (max-width: 480px) {
  .foot-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-base .right { margin-left: 0; }
}

/* ===== Page hero (subpages only) ===== */

.page-hero {
  position: relative;
  padding: 96px 0 64px;
  z-index: 1;
}
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .page-hero { padding: 64px 0 48px; } }
@media (max-width: 480px) { .page-hero { padding: 40px 0 32px; } }
.page-hero .crumbs {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.page-hero .crumbs a { color: var(--fg-3); transition: color 160ms ease; }
.page-hero .crumbs a:hover { color: var(--fg); }
.page-hero .crumbs .sep { color: var(--fg-faint); }
.page-hero .crumbs .here { color: var(--fg-2); }

.page-hero h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0 0 24px;
  max-width: 18ch;
  text-wrap: balance;
}
@media (max-width: 480px) {
  .page-hero h1 { font-size: clamp(26px, 8vw, 40px); margin-bottom: 16px; }
}
/* Legacy em / accent emphases — keep working but quiet */
.page-hero h1 em { color: var(--fg-3); font-style: normal; font-weight: 400; }
.page-hero h1 .accent { color: var(--accent); font-style: normal; font-weight: 500; }

.page-hero .lede {
  font-family: var(--body);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--fg-3);
  max-width: 60ch;
  margin: 0;
}
.page-hero .lede strong { color: var(--fg-2); font-weight: 500; }

/* Legacy v11 meta sidebar — hide entirely on subpages */
.page-hero .meta { display: none; }

/* ===== Reveal ===== */

/* No JS: reveal elements are always visible. CSS-only mode. */
.reveal { opacity: 1; transform: none; }
.reveal.--in { opacity: 1; transform: none; }

/* ===== Legacy ops-chrome (subpages) ===== */

/* status-banner hidden globally; re-declared with styles in engineering.html page block */
.status-banner { display: none !important; }
