/* ============================================================
   FERRAGRID THEME — the one design system for every surface a
   partner or client touches under the Ferragrid name.

   SOURCE OF TRUTH: ferragrid/website/assets/styles.css. This file
   is generated from it by ferragrid-theme/sync-theme.sh; do not
   edit it by hand. Font paths point at /theme/fonts/ so any app
   that copies the ferragrid-theme/ folder into its public/theme/
   directory gets the full system: dark stage, lattice, Space
   Grotesk with the italic voice, copper for the one action per
   screen, mono labels, plates, the pill header, the footer.

   Usage in an app page:
     <link rel="stylesheet" href="/theme/ferragrid.css">
   Then use the same class names the website uses (.wrap, .kicker,
   .btn.btn-primary, .plate, .plate-label, .card-grid, .checklist,
   .ledger, .site-header, .site-footer, .voice, .mono, .small,
   .muted). Page-specific layout stays in the page.
   ============================================================ */
/* ============================================================
   Ferragrid design system — implements the design brief (DESIGN.md).
   Measured operations made visible: a clear operating instrument.

   Palette: deep ink on white and cool gray; deep blue as the
   measurement/signal hue; ONE copper decision accent (primary CTA
   and decisive states only); muted green for verified outcomes only.
   Type: carved serif display (system Palatino/Iowan stack, zero font
   downloads), readable sans body, mono strictly for evidence labels,
   states, prices, and identifiers.
   Signature element: the measurement rail — a calibrated tick axis
   that carries the Measure → Build → Run → Prove method and reappears
   as tick markers on eyebrows and evidence plates.
   Motion: optional, event-driven reveals only (IntersectionObserver
   in main.js), fully disabled under prefers-reduced-motion. No
   autoplay, no carousels, no decorative animation layers.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/theme/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/theme/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Cinematic Dark stage (owner amendment 2026-08-05) */
  --ink: rgba(255, 255, 255, 0.92);
  --ink-2: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.58);
  --paper: #08080c;
  --paper-2: #0d0d12;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --signal: #8fb0e8;        /* gauge blue, lifted for AA on the dark stage */
  --signal-soft: rgba(79, 127, 217, 0.16);
  --accent: #e08a45;        /* instrument copper: primary CTA + decisive states */
  --accent-hover: #f0a366;
  --ok: #6fce9c;
  --band: #050507;
  --band-ink: rgba(255, 255, 255, 0.92);
  --band-muted: rgba(255, 255, 255, 0.55);
  --band-line: rgba(255, 255, 255, 0.10);
  --hue-warm-dim: rgba(224, 138, 69, 0.16);
  --hue-cold-dim: rgba(79, 127, 217, 0.20);
  --hue-warm-glow: rgba(224, 138, 69, 0.35);
  --glass-bg: rgba(16, 16, 20, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-voice: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --radius: 2px;
  --tick: 8px;              /* measurement tick length */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 40px 100%,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 100% 40px,
    var(--paper);
  -webkit-text-size-adjust: 100%;
}

/* v7 reduced-motion floor: first media rule after base */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img, svg, iframe { max-width: 100%; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1, h2 { letter-spacing: -0.02em; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.17rem; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 650; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.01em;
}

.small { font-size: 0.92rem; }
.muted { color: var(--muted); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Eyebrow / kicker: mono label with a measurement tick ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: var(--tick);
  height: 2px;
  background: var(--signal);
  flex: none;
}

/* ---------- Header ---------- */

/* Dark instrument header (owner amendment 2026-08-05): fuses with the
   homepage hero into one continuous ink band; consistent on every page. */
.site-header {
  position: relative;
  z-index: 20;              /* above <main>, so the opened nav is never painted behind the hero */
  border-bottom: none;
  background: transparent;
  padding: 14px 0 4px;
}
.site-header .header-inner {
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(16, 16, 20, 0.92);
  padding: 0 10px 0 22px;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: #f4f6f8;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mark {
  align-self: center;
  width: 15px;
  height: 15px;
  flex: none;
  background:
    linear-gradient(to right, var(--signal) 2px, transparent 2px) 0 0 / 5px 100% repeat-x,
    linear-gradient(to top, var(--accent) 5px, transparent 5px) 0 100% / 100% 100% no-repeat;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.site-nav a {
  padding: 8px 10px;
  font-size: 0.94rem;
  color: #b9c2cd;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #ffffff; }
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #7fa3dd;
}

.header-cta { white-space: nowrap; }
.header-cta-compact { display: none; padding: 8px 14px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  font: inherit;
  font-size: 0.94rem;
  padding: 8px 14px;
  background: none;
  border: 1px solid #4a5361;
  border-radius: var(--radius);
  color: #f4f6f8;
  cursor: pointer;
}

@media (max-width: 1040px) { .site-header .header-cta { display: none; } .site-header .header-cta-compact { display: inline-block; margin-left: auto; } .site-nav { margin-left: auto; } }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; margin-left: 8px; }
  .site-header .header-cta-compact { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #0e1116;
    border-bottom: 1px solid #232933;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 16px;
    z-index: 50;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: none; }
  .site-header { position: relative; }
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #14100b;
  box-shadow: 0 0 24px var(--hue-warm-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: #14100b; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.cta-microcopy {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 10px 0 0;
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 6vw + 40px, 110px) 0; }
.section-soft { background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 1px 0 var(--line-soft), inset 0 -1px 0 var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }

.hero { padding: 84px 0 68px; border-bottom: 1px solid var(--line-soft); }
.hero .lede {
  font-size: 1.16rem;
  color: var(--ink-2);
  max-width: 640px;
}
.hero-cta { margin-top: 26px; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- The measurement rail (signature) ----------
   A calibrated axis: four stops for Measure → Build → Run → Prove.
   Order is real sequence information, so the stops are numbered. */

.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--signal);
}
.rail li {
  position: relative;
  padding: 22px 18px 0 0;
  margin: 0;
}
.rail li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2px;
  height: 12px;
  background: var(--signal);
}
.rail .rail-step {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.rail h3 { margin-bottom: 0.35em; }
.rail p { font-size: 0.94rem; color: var(--ink-2); margin: 0; }

@media (max-width: 780px) {
  .rail { grid-template-columns: 1fr; border-top: none; border-left: 2px solid var(--signal); }
  .rail li { padding: 0 0 26px 18px; }
  .rail li::before { top: 6px; left: -2px; width: 12px; height: 2px; }
}

/* ---------- Four-pillar system: equal weight, exact names ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: #101014;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.pillar h3 { margin-bottom: 0.4em; }
.pillar p { font-size: 0.93rem; color: var(--ink-2); flex: 1; }
.pillar a { font-size: 0.93rem; font-weight: 600; }

@media (max-width: 980px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Evidence plates ---------- */

.plate {
  border: 1px solid var(--glass-border);
  background: #101014;
  border-radius: 14px;
  padding: 20px 22px;
}
@supports (backdrop-filter: blur(1px)) {
  .plate { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); }
}
.plate .plate-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.plate .plate-label::before {
  content: "";
  width: var(--tick);
  height: 2px;
  background: var(--line);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); gap: 34px; }
.card {
  border: 1px solid var(--glass-border);
  background: #101014;
  border-radius: 14px;
  padding: 22px;
}
@supports (backdrop-filter: blur(1px)) {
  .card { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); }
}

.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--ink-2); }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.two { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 24px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  background: var(--signal);
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: 0;
  border-color: var(--signal);
}
textarea { min-height: 130px; resize: vertical; }

.form-status {
  font-size: 0.93rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  margin-top: 4px;
}
.form-status:empty { display: none; }
.form-status.ok { border-color: var(--ok); color: var(--ok); }
.form-status.error { border-color: var(--accent); color: var(--accent-hover); }

.config-notice {
  font-size: 0.9rem;
  padding: 12px 14px;
  border: 1px dashed var(--muted);
  color: var(--ink-2);
  background: var(--paper-2);
  margin-bottom: 16px;
}
.config-notice code { font-family: var(--font-mono); font-size: 0.84em; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--band);
  color: var(--band-ink);
  padding: 72px 0;
  text-align: left;
}
.cta-band h2 { color: #fff; }
.cta-band .proof-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--band-muted);
  margin-bottom: 22px;
}
.cta-band .cta-microcopy { color: var(--band-muted); }

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: transparent;
  padding: 48px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 36px;
}
.wordmark-footer {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-entity { color: var(--muted); font-size: 0.83rem; margin-top: 14px; }
.footer-legal {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}
.footer-legal a { color: var(--muted); }

@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Reveal (optional motion; observer-driven, see main.js) ---------- */

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.motion-ok .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  html.motion-ok .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  html.motion-ok .ledger-row.reveal:nth-child(2) { transition-delay: 0.12s; }
  html.motion-ok .ledger-row.reveal:nth-child(3) { transition-delay: 0.24s; }
  html.motion-ok .ledger-row.reveal:nth-child(4) { transition-delay: 0.36s; }
  html.motion-ok .ledger-row.reveal:nth-child(5) { transition-delay: 0.48s; }
}

/* ---------- Cinematic dark hero (homepage) ----------
   The iron grid draws itself once on a canvas behind the headline
   (hero-scene.js), then holds still. Static under reduced motion. */

.hero-dark {
  position: relative;
  background: transparent;
  color: var(--band-ink);
  border-bottom: none;
  padding: 128px 0 104px;
}
.hero-dark .kicker { color: #7fa3dd; }
.hero-dark .kicker::before { background: #7fa3dd; }
.hero-dark .lede { color: #b9c2cd; max-width: 560px; }

.hero-kinetic {
  font-size: clamp(2.3rem, 5vw + 1rem, 4.9rem);
  line-height: 1.07;
  color: #f4f6f8;
  margin-bottom: 0.35em;
}
.hero-line {
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left 96% / 0% 3px no-repeat;
}
a.hero-line:hover,
a.hero-line:focus-visible {
  color: inherit;
  background-size: 100% 3px;
}
@media (prefers-reduced-motion: no-preference) {
  html.motion-ok a.hero-line { transition: background-size 0.35s var(--ease-out); }
}
.hero-line-accent { color: var(--accent); }
.hero-dark .hero-line-accent { color: #e08a45; }

@media (prefers-reduced-motion: no-preference) {
  html.motion-ok .hero-line {
    opacity: 0;
    transform: translateY(0.35em);
    animation: hero-rise 0.7s var(--ease-out) forwards;
  }
  html.motion-ok .hero-line:nth-child(2) { animation-delay: 0.14s; }
  html.motion-ok .hero-line:nth-child(3) { animation-delay: 0.28s; }
  html.motion-ok .hero-line:nth-child(4) { animation-delay: 0.42s; }
  @keyframes hero-rise {
    to { opacity: 1; transform: none; }
  }
}

.btn-ghost {
  background: transparent;
  color: #f4f6f8;
  border-color: #4a5361;
}
.btn-ghost:hover { border-color: #f4f6f8; color: #fff; }

details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; background: var(--paper); }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* ---------- Craft layer: interaction states and instrument details ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.motion-ok .btn { transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
  html.motion-ok .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(168, 91, 34, 0.32); }
}
.plate:hover { border-color: var(--signal); }

/* disclosure affordance */
details summary::marker { color: var(--signal); }
details:hover { border-color: var(--signal); }

.pillar-id {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ---------- Soft-club atmosphere (owner direction 2026-08-05) ----------
   Static film grain over the whole page, soft glow fields on dark
   bands, one chrome moment on the hero accent line. No motion. */

body > * { position: relative; z-index: 1; }


.hero-dark {
  background:
    radial-gradient(720px 480px at 76% 14%, rgba(38, 92, 178, 0.34), transparent 68%),
    radial-gradient(560px 420px at 12% 88%, rgba(168, 91, 34, 0.16), transparent 70%),
    radial-gradient(900px 600px at 50% 110%, rgba(127, 163, 221, 0.10), transparent 75%),
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 100% repeat-x,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 56px repeat-y,
    #0c0f14;
}

@supports (-webkit-background-clip: text) {
  .hero-dark .hero-line-accent {
    background: linear-gradient(103deg, #e8b482 8%, #f7ead9 32%, #d98a45 55%, #f2ddc4 76%, #b96a2e 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.site-header .btn-primary { box-shadow: none; }

/* ---------- Cinematic hero canvas: behind content, whisper level ---------- */
#hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-dark > .wrap { position: relative; z-index: 1; }

/* ---------- Signature: the dimension line ----------
   One per page. Tick, line, label, line, tick: the page annotated
   like an engineering drawing. */
.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 640px;
}
.dim::before,
.dim::after {
  content: "";
  flex: 1;
  height: 11px;
  min-width: 40px;
  background:
    linear-gradient(to right, currentColor 1px, transparent 1px) left center / 1px 11px no-repeat,
    linear-gradient(to left, currentColor 1px, transparent 1px) right center / 1px 11px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: 0.75;
}
.hero-dark .dim { color: #8a94a1; }
@media (max-width: 640px) {
  .dim { gap: 10px; letter-spacing: 0.1em; }
  .dim::before, .dim::after { min-width: 16px; }
}

/* ---------- Spec lists: labeled pillar rows ---------- */
.pillar h3 {
  min-height: 2.4em;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0.6em;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}
.spec-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 8px 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.spec-list li:last-child { border-bottom: none; }
.spec-k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

/* ---------- Revenue Truth Ledger ---------- */
.ledger-plate { padding: 26px 28px; }
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.ledger-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-state { color: var(--signal); letter-spacing: 0.06em; }
.ledger-note { color: var(--ink-2); font-family: var(--font-body); font-size: 0.88rem; }
.ledger-row:last-child .ledger-state { color: var(--accent); font-weight: 700; }
@media (max-width: 700px) {
  .ledger-row { grid-template-columns: 1fr; }
}

/* ---------- Wireframe horizon: the measured terrain ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -42%;
  height: 90%;
  background:
    linear-gradient(to right, rgba(143, 176, 232, 0.16) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(to top, rgba(143, 176, 232, 0.16) 1px, transparent 1px) 0 100% / 100% 56px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.cta-band > .wrap { position: relative; z-index: 1; }

/* ---------- PoMo layer (owner direction 2026-08-05): two voices,
   deliberate tilt, one oversized tolerance mark. Wacky on purpose,
   quiet everywhere else. ---------- */

.hero-line-voice {
  font-family: var(--font-voice);
  font-style: italic;
  font-weight: 550;
  letter-spacing: 0;
}

/* section heads get a serif italic word treatment via .voice */
.voice { font-family: var(--font-voice); font-style: italic; letter-spacing: 0; }

/* ---------- Asymmetric hero: oversized statement left, offset column right ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: end;
}
.hero-right { padding-bottom: 14px; }
.hero-right .lede { font-size: 1.02rem; }
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- The two doors: one page, two audiences, equal weight ---------- */

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.door {
  position: relative;
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--signal);
  border-radius: 14px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 100% repeat-x,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 56px repeat-y,
    #0e1116;
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
}
.door:nth-child(2) { border-top-color: var(--accent); }
.door h2 { font-size: clamp(1.35rem, 2vw + 0.4rem, 1.8rem); margin-bottom: 0.5em; }
.door p { color: var(--ink-2); }
.door p:not(.door-links) { flex: 1; }
.door-label {
  color: #7fa3dd;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.door:nth-child(2) .door-label { color: var(--accent); }
.door-links {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
}
.door:hover { border-color: var(--signal); }
.door:nth-child(2):hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  html.motion-ok .door { transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
  html.motion-ok .door:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10, 13, 18, 0.45); }
}
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }

/* ---------- Compact rail inside a plate: three stops, stacked ---------- */
.rail-compact { grid-template-columns: 1fr; border-top: none; border-left: 2px solid var(--signal); margin-top: 6px; }
.rail-compact li { padding: 0 0 18px 16px; }
.rail-compact li:last-child { padding-bottom: 0; }
.rail-compact li::before { top: 6px; left: -2px; width: 12px; height: 2px; }
.rail-compact h3 { font-size: 1rem; }

/* ---------- Contact: inquiry type choices ---------- */
.choice-group { border: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group legend { margin-bottom: 10px; }
.choice {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 400;
}
.choice:hover { border-color: var(--signal); }
.choice input { margin-top: 4px; }

/* ---------- The Run ledger: sticky headline, the states scroll ---------- */
.ledger-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.ledger-split .section-head { margin-bottom: 0; position: sticky; top: 96px; }
@media (max-width: 980px) {
  .ledger-split { grid-template-columns: 1fr; gap: 24px; }
  .ledger-split .section-head { position: static; }
}

/* ---------- The grid scene: the system a client actually runs on ----------
   Inline SVG, real components, real edges. Pulses travel the edges only
   while the section is on screen (grid-scene.js, rAF, no timers). Hover or
   focus a node to light its connections and read what it does. Under reduced
   motion every node is lit and nothing moves. */

.grid-scene {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 100% repeat-x,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 56px repeat-y,
    #0c0f14;
  padding: 18px 18px 8px;
  overflow: hidden;
}
.grid-scene { --dwell: 0; --spot-x: 50%; --spot-y: 50%; }
.grid-scene svg { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
/* the glow: a copper-blue light under the pointer that grows with dwell, and a
   brighter lattice revealed through the same spot. Fine pointers only. */
.grid-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--dwell);
  background:
    radial-gradient(420px 320px at var(--spot-x) var(--spot-y), rgba(224, 138, 69, 0.22), transparent 70%),
    radial-gradient(760px 560px at var(--spot-x) var(--spot-y), rgba(143, 176, 232, 0.16), transparent 72%);
}
.grid-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: calc(var(--dwell) * 0.9);
  background:
    linear-gradient(to right, rgba(143, 176, 232, 0.32) 1px, transparent 1px) 0 0 / 56px 100% repeat-x,
    linear-gradient(to bottom, rgba(143, 176, 232, 0.32) 1px, transparent 1px) 0 0 / 100% 56px repeat-y;
  -webkit-mask-image: radial-gradient(520px 400px at var(--spot-x) var(--spot-y), rgba(0, 0, 0, 1), transparent 70%);
  mask-image: radial-gradient(520px 400px at var(--spot-x) var(--spot-y), rgba(0, 0, 0, 1), transparent 70%);
}
.grid-edge { stroke: rgba(143, 176, 232, calc(0.28 + 0.45 * var(--dwell))); }
.grid-node rect { stroke: rgba(255, 255, 255, calc(0.16 + 0.3 * var(--dwell))); }
.grid-pulse { filter: drop-shadow(0 0 calc(4px + 6px * var(--dwell)) rgba(224, 138, 69, 0.9)); }
@media (prefers-reduced-motion: reduce) { .grid-scene::before, .grid-scene::after { display: none; } }
.grid-note, .pillar-row { position: relative; z-index: 1; }
.grid-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: rgba(255, 255, 255, 0.42);
}
.grid-tier-box { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: 3 5; }
.grid-edge {
  fill: none;
  stroke-width: 1.2;
}
.grid-edge.is-active { stroke: rgba(224, 138, 69, 0.9); stroke-width: 1.8; }
.grid-node { cursor: default; outline: none; will-change: opacity, transform; }
.grid-node rect {
  fill: #101014;
  stroke-width: 1;
  rx: 6;
}
.grid-node text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: #d7dde6;
  pointer-events: none;
}
.grid-node.is-active rect,
.grid-node:focus-visible rect { stroke: var(--accent); stroke-width: 1.6; fill: #16120e; }
.grid-node.is-active text,
.grid-node:focus-visible text { fill: #ffffff; }
.grid-node.is-lit rect { stroke: rgba(143, 176, 232, 0.6); }
.grid-entry rect { fill: rgba(143, 176, 232, 0.08); stroke: rgba(143, 176, 232, 0.5); }
.grid-pulse { fill: var(--accent); }
.grid-run rect { fill: rgba(224, 138, 69, 0.06); stroke: rgba(224, 138, 69, 0.35); }
.grid-run text { font-size: 11.5px; letter-spacing: 0.14em; fill: rgba(255, 255, 255, 0.7); }
.grid-run.is-active rect { fill: rgba(224, 138, 69, 0.14); stroke: var(--accent); }
.grid-node.is-out { opacity: 0.22; }
.grid-edge.is-out { opacity: 0.18; }
.grid-pulse.is-dim { opacity: 0.12 !important; }
svg[data-layout="stacked"] .grid-tier { font-size: 10px; }
svg[data-layout="stacked"] .grid-node text { font-size: 13px; }
svg[data-layout="stacked"] .grid-run text { font-size: 9.5px; letter-spacing: 0.08em; }

.pillar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 4px 10px;
}
.pillar-button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #b9c2cd;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #101014;
}
.pillar-button:hover { border-color: var(--signal); color: #ffffff; }
.pillar-button[aria-pressed="true"] { border-color: var(--accent); color: #ffffff; background: #16120e; }
.grid-note {
  min-height: 2.6em;
  margin: 10px 4px 6px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.grid-note strong { color: #ffffff; font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0.08em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  html.motion-ok .grid-edge, html.motion-ok .grid-node rect, html.motion-ok .grid-node text { transition: stroke 0.25s var(--ease-out), fill 0.25s var(--ease-out), stroke-width 0.25s var(--ease-out); }
}
@media (max-width: 640px) {
  .grid-scene { padding: 10px 6px 4px; }
  .pillar-button { flex: 1 1 45%; text-align: center; }
}

/* ---------- Booking page: our page, the scheduler inside it ---------- */
.booking-shell { max-width: 900px; }
.booking-frame {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: #101014;
  padding: 8px;
  overflow: hidden;
}
.booking-frame iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}
@media (max-width: 640px) { .booking-frame iframe { min-height: 860px; } }

/* ---------- Utility ---------- */

.grid-gap-top { margin-top: 28px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
