/* =========================================================================
   IRON HEART SYSTEMS PBC : STYLESHEET
   Canonical system: phosphor amber on charcoal, IBM Plex family,
   with a secondary cyan token held in reserve. Daytime theme reads as
   a technical specification sheet; nighttime theme as an ops display.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */

:root {
  /* Daytime (light) */
  --bg:        #f5f4ef;
  --bg-2:      #fdfcf9;
  --bg-3:      #ecebe4;
  --ink:       #17181b;
  --ink-2:     #4c4d4f;
  --ink-3:     #77787a;
  --line:      rgba(23, 24, 27, 0.16);
  --line-soft: rgba(23, 24, 27, 0.08);

  --amber:      #9a5b00;   /* text-safe amber on light */
  --amber-raw:  #d98a00;   /* graphic amber on light  */
  --cyan:       #0b7c8a;   /* text-safe reactor cyan  */
  --cyan-raw:   #0fa2b2;

  --viz-line:  rgba(23, 24, 27, 0.34);
  --viz-dim:   rgba(23, 24, 27, 0.12);
  --viz-node:  #b06800;
  --viz-star:  rgba(23, 24, 27, 0);

  --shadow: 0 18px 50px -28px rgba(23, 24, 27, 0.35);

  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-sans:  "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --header-h: 72px;
  --wrap: 1180px;
  --pad: clamp(20px, 4.5vw, 48px);
  --radius: 3px;

  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

html[data-theme="dark"] {
  /* Nighttime (canonical charcoal + phosphor amber) */
  --bg:        #101114;
  --bg-2:      #16181d;
  --bg-3:      #1c1f25;
  --ink:       #eceae2;
  --ink-2:     #a6a59d;
  --ink-3:     #7c7b74;
  --line:      rgba(236, 234, 226, 0.16);
  --line-soft: rgba(236, 234, 226, 0.08);

  --amber:      #ffb000;
  --amber-raw:  #ffb000;
  --cyan:       #4fe0ef;
  --cyan-raw:   #4fe0ef;

  --viz-line:  rgba(236, 234, 226, 0.30);
  --viz-dim:   rgba(236, 234, 226, 0.10);
  --viz-node:  #ffb000;
  --viz-star:  rgba(236, 234, 226, 0.7);

  --shadow: 0 22px 60px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- 2. Base ---------- */

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--amber-raw); color: #101114; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- 3. Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand svg { width: 30px; height: 30px; color: var(--amber-raw); flex: none; transform-origin: center; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-name .pbc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  vertical-align: super;
  margin-left: 6px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  white-space: nowrap;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--amber-raw); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle,
.menu-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.theme-toggle:hover, .menu-toggle:hover {
  border-color: var(--amber);
  background: var(--line-soft);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 17px; height: 17px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

.menu-toggle { display: none; }
.menu-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: currentColor; position: relative;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px;
  background: currentColor; transition: transform 0.25s var(--ease);
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after  { top: 5px; }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
body.nav-open .menu-toggle span::after  { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}

.space { position: relative; }
#space-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}


.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }

.mark { display: inline-block; margin-bottom: 46px; cursor: pointer; border-radius: 8px; }
.mark svg { display: block; width: clamp(180px, 30vh, 310px); height: auto; margin: 0 auto; }
.mk-plate {
  fill: var(--bg);
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.mk-plate.filled { fill: var(--amber); }
[data-theme="light"] .mk-plate { stroke: var(--ink); }
[data-theme="light"] .mk-plate.filled { fill: var(--ink); }
[data-theme="light"] .brand svg { color: var(--ink); }

.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 64px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--amber-raw); color: #14100a; border-color: var(--amber-raw); }
.btn-solid:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.status-strip span { display: inline-flex; align-items: center; }
.status-strip span + span::before {
  content: "/";
  margin: 0 14px;
  color: var(--amber-raw);
  opacity: 0.7;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 52px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--amber-raw);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { top: -50%; }
  70%, 100% { top: 110%; }
}

/* ---------- 5. CTA band & footer ---------- */

.cta-band {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  padding: clamp(88px, 11vw, 150px) 0;
}
/* Dark theme: the band frosts over the space stage like the menu bar. */
[data-theme="dark"] .cta-band {
  /* 58/42 with the film behind: starfield visible slightly, not fully */
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.cta-band h2 {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 300;
  margin-bottom: 22px;
}
.cta-band p {
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto 40px;
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.site-footer { padding: 72px 0 44px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand .brand-name { font-size: 18px; }
.footer-motto {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-3);
  margin-top: 14px;
  font-size: 15px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--amber); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 6. Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger steps. */
.reveal-d1 { --d: 120ms; }
.reveal-d2 { --d: 220ms; }

/* ---------- 7. Responsive ---------- */

@media (max-width: 1100px) {
  .menu-toggle { display: grid; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--pad) 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
                visibility 0.3s var(--ease);
  }
  body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 13px 0; width: 100%; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 72px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- 8. Reduced motion ---------- */

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


/* ---------- 9. Information subpages ---------- */

.subpage { padding: var(--header-h) 0 84px; min-height: 72svh; }

.info-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  /* Backdrop window: the .chrome-backdrop canvas repaints this strip of
     the true backdrop (film / starfield / paper) each frame and occludes
     page content scrolling beneath, so content ends at the rail's lower
     boundary while the sky stays visible in the band. */
  background: transparent;
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--line);
  height: 56px;                        /* standardized rail height */
  padding: 0; margin-bottom: 30px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.rail-here {
  color: var(--amber);
  padding-right: 12px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.page-content section { scroll-margin-top: calc(var(--header-h) + 64px); }
.site-nav a.current { color: var(--ink); border-bottom-color: var(--amber-raw); }

/* Current-topic rotator: two faces stacked on one grid cell; the incoming
   face rises with downward scroll and sinks with upward scroll, so motion
   always mirrors the reading direction. Click returns to the top. */
.rail-topic {
  display: grid; align-items: center;
  height: 100%;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--ink-2);
  text-align: left;
}
.rail-topic:hover .rail-topic-face,
.rail-topic:focus-visible .rail-topic-face { color: var(--amber); }
.rail-topic:focus-visible { outline: 1px solid var(--amber-raw); outline-offset: 6px; }
.rail-topic-face {
  grid-area: 1 / 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: min(60vw, 520px);
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.rail-topic-face.is-off { opacity: 0; pointer-events: none; }
.rail-topic-face.is-in-up { opacity: 0; transform: translateY(10px); }
.rail-topic-face.is-in-down { opacity: 0; transform: translateY(-10px); }
.rail-topic-face.is-out-up { opacity: 0; transform: translateY(-10px); }
.rail-topic-face.is-out-down { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .rail-topic-face { transition: none; }
}

.page-content h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 300; letter-spacing: -0.01em; margin-bottom: 10px; }
.page-updated {
  color: var(--ink-3); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 36px;
}
.page-content section { margin-bottom: 30px; max-width: 72ch; }
.page-content h2 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.tbd { color: var(--ink-3); font-style: italic; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.footer-links a { color: var(--ink-3); font-size: 12.5px; }
.footer-links a:hover { color: var(--amber); }

/* Cross-page motion: native view transitions where supported, with an
   exit and entry fallback elsewhere. Inert under reduced motion. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 240ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 300ms var(--ease) both; }
  .page-content { animation: page-in 340ms var(--ease) both; }
  body.page-leave .page-content {
    opacity: 0; transform: translateX(-18px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
}
@keyframes vt-out { to { opacity: 0; transform: translateX(-22px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }


/* ---------- 10. Footer v2: brand, categories, legal bar, social ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-hq { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; color: var(--ink-3); font-size: 14px; }
.footer-col a, .footer-col #footer-connect a {
  display: block; padding: 3px 0; color: var(--ink-3); font-size: 14px;
}
.footer-col a:hover { color: var(--amber); }
.footer-social-col a { display: block; }

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 20px 32px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.copyright {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { color: var(--ink-3); font-size: 12.5px; }
.legal-links a:hover { color: var(--amber); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--ink-2); display: block; }
.footer-social a:hover { color: var(--amber); }
.footer-social svg { width: 18px; height: 18px; display: block; fill: currentColor; }

.site-version {
  margin-top: 6px;
  color: var(--ink-3);
  opacity: 0.7;
  letter-spacing: 0.06em;
  text-transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  #main { transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); }
  body.nav-out #main { opacity: 0; transform: translateX(-26px); }
  body.nav-rev.nav-out #main { transform: translateX(26px); }
  body.nav-in #main { transition: none; opacity: 0; transform: translateX(26px); }
  body.nav-rev.nav-in #main { transform: translateX(-26px); }
}

/* Subpage arrival: the rail and content drop and fade in from the menu bar. */
@media (prefers-reduced-motion: no-preference) {
  .subpage .info-rail { animation: rail-drop 0.3s var(--ease) both; }
  .subpage .page-content { animation: rail-drop 0.34s var(--ease) 0.04s both; }
}
@keyframes rail-drop {
  from { opacity: 0; transform: translateY(-10px); }
}

/* ---------- 11. Persistent sky ---------- */
#sky-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#main, .site-footer { position: relative; z-index: 1; }

/* Subpage content sits as a block over the sky, fading in as before. */
.subpage .page-content {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 12px;
  padding: 34px 34px 42px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 700px) {
  .subpage .page-content { padding: 26px 18px 32px; }
}


/* =========================================================================
   FILM LAYER (dark theme only) : site-wide canvas overlay
   -------------------------------------------------------------------------
   #phosphor-fx (created by js/phosphor-fx.js) is a fixed, full-viewport
   canvas at z-index 0: above the persistent starfield, below #main (z 1),
   so every route's starfield renders through the film while all in-flow
   content, the header, and the contact band stay crisp above it. When
   the layer is live, body.phosphor-live ghosts the homepage stage
   elements and hero text to opacity 0 -- their layout, animation, and
   interactivity remain -- and the film draws them from live geometry
   instead. Light theme does not add the class. Keyboard focus on the
   ghosted mark shows an outline on the (visible) wrapper.
   ========================================================================= */
#phosphor-fx {
  position: fixed;
  inset: 0;
  /* Explicit stretch: a canvas is a replaced element, so with width/height
     auto it sizes to its internal backing store (capped for performance)
     and anchors top-left, leaving unfilmed gaps at the right and bottom.
     Stretching maps the capped internal render across the full viewport. */
  width: 100%;
  height: 100%;
  z-index: 0;
  display: none;
  pointer-events: none;
}
body.phosphor-live #phosphor-fx { display: block; }
body.phosphor-live #space-canvas,
body.phosphor-live #mark-svg,
body.phosphor-live .hero h1,
body.phosphor-live .hero-sub,
body.phosphor-live #status-strip,
body.phosphor-live .scroll-cue { opacity: 0; }
body.phosphor-live .mark:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 8px;
}

/* Hero clearance below the lowest orbital (theme-independent layout).
   The value is solved and published by layout() in js/main.js. */
.hero h1 { margin-top: var(--orbit-clear, 0px); }


/* Chrome backdrop strips: live copies of the backdrop inside the header
   and the rail. Painted by initBackdropStrips() in js/main.js; the film
   feeds frames when live. The header strip fades in with .scrolled to
   keep the fade-into-glass behavior. */
.chrome-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.site-header .chrome-backdrop {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.site-header.scrolled .chrome-backdrop { opacity: 1; }


/* ===== Hero subline (film-enabled with the heading and status strip) ===== */
.hero-sub {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto 26px;
}

/* Hiring accent on the status strip; separators keep their own color */


/* ===== Charter breakout quote ===== */
.charter-quote {
  margin: 18px 0 22px;
  padding: 14px 20px;
  border-left: 2px solid var(--amber-raw);
  background: color-mix(in srgb, var(--amber-raw) 6%, transparent);
}
.charter-quote blockquote { margin: 0; }
.charter-quote blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08em;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}
.charter-quote figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== Leadership placeholder cards ===== */
.people-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 4px; }
.person-card {
  display: flex; align-items: center; gap: 14px;
  min-width: min(340px, 100%);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.person-avatar {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  background: color-mix(in srgb, var(--amber-raw) 10%, transparent);
}
.person-name { margin: 0; font-weight: 500; }
.person-title {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.person-linkedin { margin-left: auto; color: var(--ink-2); display: block; padding-left: 12px; }
.person-linkedin:hover { color: var(--amber); }
.person-linkedin svg { width: 16px; height: 16px; display: block; fill: currentColor; }

/* ===== Subpage panel glass, dark theme: match the menu bar language ===== */
[data-theme="dark"] .subpage .page-content {
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


/* ===== Hero lockup v2: sized for the systems-house line =====
   The original clamp was tuned for a 13-character heading. The new
   heading locks to two deterministic lines (the amber em takes its own
   line, mirroring the original two-tone pattern) at a cap that keeps
   line one inside the hero container at every viewport. The subline
   biases to a single line so the status strip stays above the fold. */
.hero h1 { font-size: clamp(40px, 7vw, 88px); }
.hero h1 em { display: block; }
.hero-sub {
  font-size: clamp(14px, 1.55vw, 17px);
  margin: 0 auto 18px;
}
.hero-sub span { display: block; }


/* ===== Section lists ===== */
.page-content section ul { margin: 0 0 16px; padding-left: 22px; }
.page-content section li { margin: 6px 0; line-height: 1.55; }
.page-content section li::marker { color: var(--amber-raw); }

/* ===== Leadership avatar: grayscale asset under an amber duotone ===== */
.person-avatar { width: 64px; height: 64px; position: relative; overflow: hidden; }
.person-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.04);
}
.person-avatar::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--amber-raw);
  mix-blend-mode: color;
  opacity: 0.85;
  pointer-events: none;
}

/* ===== Email addresses shift to amber on hover, site-wide ===== */
a[href^="mailto:"] { transition: color 0.15s var(--ease); }
a[href^="mailto:"]:hover { color: var(--amber); }

#cta-body{white-space:pre-line}
.contract-box{box-sizing:border-box;width:max-content;min-width:min(100%,240px);max-width:100%;margin:28px auto 0;padding:12px 24px;border:0;border-radius:0;background:linear-gradient(90deg,transparent,var(--line-soft) 28%,var(--line) 50%,var(--line-soft) 72%,transparent) top/100% 1px no-repeat,linear-gradient(90deg,transparent,var(--line-soft) 28%,var(--line) 50%,var(--line-soft) 72%,transparent) bottom/100% 1px no-repeat;color:var(--ink-2);font-family:var(--font-mono);font-size:12px;line-height:1.6;letter-spacing:.06em;text-align:center;overflow-x:auto;transition:color .3s var(--ease)}
#contract-address{display:block;white-space:nowrap;user-select:all}

@media(min-width:861px){.footer-social-only{grid-column:4}}
.site-header .brand-name{font-size:15px}
.footer-brand .brand-name{font-size:16px}

/* Ivory phosphor on black: color-only overrides, no layout/type changes. */
:root{
 --bg:#f4f2ed;--bg-2:#fcfbf8;--bg-3:#e8e5df;
 --ink:#191918;--ink-2:#50504d;--ink-3:#74736e;
 --line:rgba(25,25,24,.18);--line-soft:rgba(25,25,24,.08);
 --amber:#464440;--amber-raw:#d8d3c8;--cyan:#57646b;--cyan-raw:#aab6ba;
 --viz-line:rgba(45,44,41,.34);--viz-dim:rgba(45,44,41,.12);
 --viz-node:#66615a;--viz-star:rgba(45,44,41,0);
}
html[data-theme="dark"]{
 --bg:#090909;--bg-2:#101010;--bg-3:#191918;
 --ink:#eeeae0;--ink-2:#c2beb5;--ink-3:#92908a;
 --line:rgba(238,234,224,.20);--line-soft:rgba(238,234,224,.09);
 --amber:#fff5df;--amber-raw:#f5eddc;--cyan:#c8d8e0;--cyan-raw:#d9e6ec;
 --viz-line:rgba(245,237,220,.30);--viz-dim:rgba(245,237,220,.10);
 --viz-node:#fff5df;--viz-star:rgba(226,230,232,.65);
}
html[data-theme="dark"] .brand svg{
 filter:drop-shadow(-.5px 0 1px rgba(201,223,239,.45)) drop-shadow(.5px 0 2px rgba(245,147,104,.28));
}
.btn-solid{color:#191815}
