/* ==========================================================================
   Onyx7 — site design system
   Black, warm off-white, one warm neutral (stone). Helvetica Neue for type, Geist Mono for data labels.
   ========================================================================== */

:root {
  --bg: #F4F2ED;
  --bg-2: #ECE9E2;
  --surface: #FFFFFF;
  --ink: #0D0D0C;
  --ink-2: #3E3C38;
  --ink-3: #625D56;
  --ink-4: #6E6961;
  --line: rgba(13, 13, 12, .09);
  --line-2: rgba(13, 13, 12, .16);
  --stone: #A48A67;
  --stone-soft: #E7DFD2;
  --stone-ink: #7D6644; /* gold for text on light grounds (5:1); --stone stays for fills and marks */

  --dark: #0D0D0C;
  --dark-2: #171715;
  --dark-3: #22211F;
  --on-dark: #F4F2ED;
  --on-dark-2: rgba(244, 242, 237, .74);
  --on-dark-3: rgba(244, 242, 237, .58);
  --line-dark: rgba(244, 242, 237, .11);

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-card:
    0 0 0 1px rgba(13, 13, 12, .06),
    0 1px 2px rgba(13, 13, 12, .04),
    0 8px 24px -8px rgba(13, 13, 12, .08),
    0 32px 64px -32px rgba(13, 13, 12, .16);
  --shadow-float:
    0 0 0 1px rgba(13, 13, 12, .07),
    0 2px 4px rgba(13, 13, 12, .04),
    0 16px 40px -12px rgba(13, 13, 12, .18),
    0 48px 96px -48px rgba(13, 13, 12, .28);

  /* critically damped feel (no overshoot) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --mark-gap: var(--bg);

  /* Helvetica Neue ships on every Mac/iPhone; others fall back to Helvetica, then Arial */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type scale (tracking tightens as size grows) ---------- */
.display {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.036em; font-weight: 500; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.032em; font-weight: 500; }
.h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.18; letter-spacing: -0.022em; font-weight: 500; }
.h4 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.014em; font-weight: 500; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; letter-spacing: -0.006em; color: var(--ink-2); }
.body-2 { font-size: .96875rem; line-height: 1.6; color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.5; color: var(--ink-3); letter-spacing: 0; }
.muted { color: var(--ink-3); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 500; color: var(--ink-3); letter-spacing: -0.005em;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; background: var(--stone);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- mark ---------- */
.mark { width: 24px; height: 24px; color: var(--ink); flex: none; }
.mark polygon { stroke: var(--mark-gap); stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 120ms var(--ease), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn svg { width: 14px; height: 14px; transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.2); }
.btn-primary:hover { background: #26251F; }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-secondary:hover { background: rgba(13,13,12,.04); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-dark { color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(244,242,237,.22); }
.btn-ghost-dark:hover { background: rgba(244,242,237,.06); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: .875rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9375rem; }
.link-arrow svg { width: 13px; height: 13px; transition: transform 220ms var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- header (translucent material, scroll-edge, no hard divider) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 240ms ease, backdrop-filter 240ms ease;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13,13,12,.05), transparent);
  opacity: 0; transition: opacity 240ms ease;
}
.site-header.is-scrolled {
  background: rgba(244, 242, 237, .74);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .word { font-size: .9375rem; font-weight: 600; letter-spacing: .2em; padding-top: 1px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: .9063rem; color: var(--ink-2);
  transition: background-color 160ms ease, color 160ms ease;
}
.nav a.nav-link:hover { color: var(--ink); background: rgba(13,13,12,.05); }
.nav a.nav-link[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; }
.menu-btn:active { transform: scale(.94); }
.menu-btn span { position: relative; width: 18px; height: 1.5px; background: var(--ink); transition: background-color 200ms; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 320ms var(--ease);
}
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: rotate(45deg); }
body.menu-open .menu-btn span::after { transform: rotate(-45deg); }

/* mobile sheet: drops from the header, leaves the same way */
.mobile-sheet {
  position: fixed; inset: 0; z-index: 40; padding: 92px var(--gutter) 32px;
  background: rgba(244, 242, 237, .9);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity 260ms var(--ease), transform 360ms var(--ease);
}
body.menu-open .mobile-sheet { opacity: 1; transform: none; pointer-events: auto; }
.mobile-sheet a.m-link { font-size: 2rem; letter-spacing: -0.04em; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-sheet .btn { margin-top: 28px; --h: 52px; }
.mobile-sheet .small { margin-top: 16px; }

/* ---------- sections ---------- */
.section { padding: clamp(88px, 11vw, 152px) 0; }
.section-tight { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .h2 { max-width: 14ch; }
.section-head .lead { max-width: 46ch; justify-self: end; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.hairline { height: 1px; background: var(--line); border: 0; }

.dark { background: var(--dark); color: var(--on-dark); --mark-gap: var(--dark); }
.dark .lead, .dark .body-2 { color: var(--on-dark-2); }
.dark .small, .dark .muted, .dark .kicker { color: var(--on-dark-3); }
.dark .hairline { background: var(--line-dark); }
.tint { background: var(--bg-2); --mark-gap: var(--bg-2); }
.dark, .hero-x, .cta, .start-main, .access, .e-card.featured, .name-card, .ind-art, .sim, .saver { --stone-ink: #C4A070; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(150px, 18vw, 210px) 0 clamp(64px, 8vw, 104px); }
.page-hero .h1 { max-width: 16ch; margin-top: 22px; }
.page-hero .lead { max-width: 52ch; margin-top: 28px; }

/* ---------- home hero ---------- */
.hero { padding: clamp(140px, 17vw, 196px) 0 0; position: relative; }
.hero .display { max-width: 13ch; margin-top: 26px; }
.hero-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; margin-top: 36px; }
.hero-row .lead { max-width: 48ch; }
.hero-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* stage: the composed "system" visual */
.stage {
  position: relative; margin-top: clamp(56px, 7vw, 96px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.55), transparent 60%),
    var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 64px) 0;
  overflow: hidden;
  min-height: 300px;
}
.stage-caption { position: absolute; left: clamp(16px, 3vw, 28px); bottom: 16px; z-index: 3; font-size: .75rem; color: var(--ink-4); }

/* ---------- app-window card (dashboard mock) ---------- */
.window {
  position: relative; z-index: 2; max-width: 740px; margin: 0 auto;
  background: var(--surface); border-radius: 14px 14px 0 0; box-shadow: var(--shadow-float);
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.window-bar .title { display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 500; }
.window-bar .title .mark { width: 16px; height: 16px; --mark-gap: #fff; }
.window-bar .meta { font-size: .75rem; color: var(--ink-3); }
.window-body { padding: 22px; display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.kpi { padding: 14px 16px 14px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .k-label { font-size: .75rem; color: var(--ink-3); }
.kpi .k-val { font-size: 1.625rem; letter-spacing: -0.04em; font-weight: 500; margin-top: 6px; line-height: 1; }
.kpi .k-delta { font-size: .75rem; margin-top: 8px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi .k-delta i { width: 6px; height: 6px; border-radius: 2px; background: var(--stone); display: inline-block; }
.dash-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; }
.panel { padding: 4px 0 0; }
.dash-row .panel + .panel { border-left: 1px solid var(--line); padding-left: 16px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; font-size: .75rem; color: var(--ink-3); margin-bottom: 12px; }
.panel-h b { color: var(--ink); font-weight: 500; font-size: .8125rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 112px; }
.bars span { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--bg-2); transform-origin: bottom; }
.bars span.hi { background: var(--ink); }
.bars span.mid { background: var(--stone); }
.flags { list-style: none; display: grid; gap: 8px; }
.flags li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .8125rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.flags li:last-child { border-bottom: 0; }
.flags .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); }
.flags .dot.ok { background: var(--ink); }
.flags .tag { font-size: .75rem; color: var(--ink-3); }

/* floating companion cards */
.float {
  position: absolute; z-index: 3; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-float);
  padding: 14px 16px; font-size: .8125rem; width: 232px;
}
.float .f-h { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-bottom: 10px; }
.float-a { left: 20px; bottom: 44px; }
.float-b { right: 20px; top: 44px; }
.flow { display: grid; gap: 7px; }
.flow-step { display: flex; align-items: center; gap: 10px; }
.flow-step .chk { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.flow-step .chk svg { width: 9px; height: 9px; color: #fff; }
.flow-step .chk.pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.flow-step em { font-style: normal; margin-left: auto; font-size: .75rem; color: var(--ink-3); }
.sop-list { list-style: none; display: grid; gap: 7px; }
.sop-list li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.35; }
.sop-list li::before { content: ""; width: 12px; height: 12px; margin-top: 2px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; }
.sop-list li.done::before { background: var(--ink); box-shadow: none; }
.sop-list li.done { color: var(--ink-3); }

/* ---------- audience strip ---------- */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.strip .small { flex: none; }
.strip ul { list-style: none; display: flex; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.strip li { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }

/* ---------- problems ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.problem { padding: 32px 32px 8px 0; }
.problem + .problem { padding-left: 32px; border-left: 1px solid var(--line); }
.problem .h4 { margin-bottom: 10px; }

/* ---------- tabs (artifacts) ---------- */
.tabs { display: inline-flex; position: relative; padding: 4px; border-radius: 999px; background: rgba(244,242,237,.07); box-shadow: inset 0 0 0 1px var(--line-dark); }
.tab {
  position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: .875rem; font-weight: 500;
  color: var(--on-dark-2); transition: color 200ms ease; -webkit-tap-highlight-color: transparent;
}
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--on-dark); }
.tabs.is-ready .tab[aria-selected="true"] { background: transparent; }
.tab-indicator {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--on-dark);
  transition: transform 420ms var(--ease), width 420ms var(--ease);
}
.artifact-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 48px; }
.artifact-copy .h3 { margin: 14px 0 14px; }
.artifact-copy ul { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.artifact-copy li { display: flex; gap: 12px; font-size: .9375rem; color: var(--on-dark-2); }
.artifact-copy li::before { content: ""; width: 14px; height: 1px; background: var(--stone); margin-top: 12px; flex: none; }
.artifact-stage {
  position: relative; min-height: 440px; border-radius: var(--radius-lg); background: var(--dark-2);
  box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden;
}
.tab-panel { position: absolute; inset: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(10px) scale(.99); pointer-events: none;
  transition: opacity 320ms var(--ease), transform 520ms var(--ease); }
.tab-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tab-copy { display: none; }
.tab-copy.is-active { display: block; animation: fadeUp 480ms var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.art-label { position: absolute; top: 18px; left: 22px; font-size: .75rem; color: var(--on-dark-3); }

/* org chart */
.org svg text { font-family: var(--font-sans); }
/* process redesign */
.proc { display: grid; gap: 26px; }
.proc-row .proc-h { font-size: .75rem; color: var(--on-dark-3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font-size: .78rem; padding: 7px 11px; border-radius: 8px; background: var(--dark-3); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); white-space: nowrap; }
.chip.cut { color: var(--on-dark-3); text-decoration: line-through; text-decoration-color: var(--stone); background: transparent; box-shadow: inset 0 0 0 1px rgba(164,138,103,.35); }
.chip.new { background: var(--on-dark); color: var(--ink); box-shadow: none; }
.chips .arr { color: var(--on-dark-3); font-size: .75rem; }
/* system map */
.sys { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: center; }
.sys-col { display: grid; gap: 10px; }
.mod { font-size: .8125rem; padding: 12px 14px; border-radius: 10px; background: var(--dark-3); box-shadow: inset 0 0 0 1px var(--line-dark); position: relative; }
.mod small { display: block; color: var(--on-dark-3); font-size: .75rem; margin-top: 2px; }
.sys-col.l .mod::after, .sys-col.r .mod::after { content: ""; position: absolute; top: 50%; width: 14px; border-top: 1px dashed rgba(164,138,103,.6); }
.sys-col.l .mod::after { right: -15px; }
.sys-col.r .mod::after { left: -15px; }
.core { background: var(--on-dark); color: var(--ink); border-radius: 14px; padding: 18px; }
.core .c-h { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; }
.core .c-h .mark { width: 16px; height: 16px; --mark-gap: var(--on-dark); }
.core ul { list-style: none; margin-top: 14px; display: grid; gap: 0; }
.core li { display: flex; justify-content: space-between; font-size: .78rem; padding: 7px 0; border-top: 1px solid var(--line); }
.core li span { color: var(--ink-3); }
/* operating review */
.review { background: var(--on-dark); color: var(--ink); border-radius: 14px; padding: 20px 22px; max-width: 520px; width: 100%; margin: 0 auto; }
.review .r-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.review .r-h b { font-weight: 500; font-size: .9375rem; letter-spacing: -0.02em; }
.review .r-h span { font-size: .75rem; color: var(--ink-3); }
.review ol { list-style: none; counter-reset: r; margin-top: 6px; }
.review li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.review li::before { content: counter(r, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--ink-4); padding-top: 2px; }
.review li em { font-style: normal; font-size: .75rem; color: var(--ink-3); align-self: center; }
.review li:last-child { border-bottom: 0; }
.spark { margin-top: 10px; }

/* ---------- engagement cards ---------- */
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.e-card {
  position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-card);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.e-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.e-card:active { transform: scale(.985); transition-duration: 120ms; }
.e-card .e-top { display: flex; justify-content: space-between; align-items: center; }
.e-step { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-4); }
.pill { font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--stone-soft); color: #6E5A3F; }
.e-card .h3 { padding-top: 88px; }
.e-card p { margin-top: 12px; }
.e-card p { margin-bottom: 28px; }
.e-card .e-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--ink-3); }
.e-card .e-meta svg { width: 14px; height: 14px; color: var(--ink); transition: transform 300ms var(--ease); }
.e-card:hover .e-meta svg { transform: translateX(3px); }
.e-card.featured { background: var(--ink); color: var(--on-dark); --mark-gap: var(--ink); }
.e-card.featured .body-2 { color: var(--on-dark-2); }
.e-card.featured .e-meta { border-color: var(--line-dark); color: var(--on-dark-3); }
.e-card.featured .e-meta svg { color: var(--on-dark); }
.e-card.featured .pill { background: rgba(164,138,103,.22); color: #D9C6A8; }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.fig { padding: 28px 0 28px; border-bottom: 1px solid var(--line-dark); }
.fig:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line-dark); }
.fig:nth-child(even) { padding-left: 24px; }
.fig .num { font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.045em; font-weight: 300; }
.fig .lbl { margin-top: 12px; font-size: .875rem; color: var(--on-dark-3); }
.footnote { margin-top: 18px; font-size: .75rem; color: var(--on-dark-3); }
.light-figs .figures { border-color: var(--line); }
.light-figs .fig { border-color: var(--line); }
.light-figs .fig .lbl, .light-figs .footnote { color: var(--ink-3); }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.trust > div { padding: 28px 28px 0 0; }
.trust > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.trust .h4 { margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 88px); --mark-gap: var(--dark);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end;
}
.cta .h2 { max-width: 13ch; }
.cta .lead { color: var(--on-dark-2); margin-top: 20px; max-width: 40ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }
.cta-actions .small { color: var(--on-dark-3); }
.cta-actions .small a { color: var(--on-dark-2); border-bottom: 1px solid var(--line-dark); }
.cta .big-mark { position: absolute; right: -90px; top: -110px; width: 420px; height: 420px; opacity: .07; color: var(--on-dark); pointer-events: none; }
.cta .big-mark polygon { stroke: var(--dark); stroke-width: .6; }

/* ---------- footer ---------- */
.site-footer { padding: 80px 0 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.foot-top p { margin-top: 18px; max-width: 32ch; }
.foot-col h4 { font-size: .8125rem; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { font-size: .9375rem; color: var(--ink-2); transition: color 160ms; }
.foot-col a:hover { color: var(--ink); }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .8125rem; color: var(--ink-3); }

/* ---------- inner page blocks ---------- */
.step-block { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.step-block:first-child { border-top: 0; }
.step-side { position: sticky; top: 108px; align-self: start; }
.step-side .e-step { display: block; margin-bottom: 12px; }
.step-main .h2 { max-width: 16ch; }
.step-main > .lead { margin-top: 20px; max-width: 54ch; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.detail { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.detail .h4 { margin-bottom: 8px; }
.detail .phase { font-family: var(--font-mono); font-size: .75rem; color: var(--stone-ink); letter-spacing: .02em; margin-bottom: 14px; display: block; }
.detail ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.detail li { font-size: .9063rem; color: var(--ink-2); display: flex; gap: 10px; }
.detail li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); margin-top: 9px; flex: none; }
.callout { margin-top: 28px; padding: 18px 20px; border-radius: 12px; background: var(--bg-2); font-size: .9375rem; color: var(--ink-2); display: flex; gap: 12px; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--stone); }

.doc {
  margin-top: 40px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-float); padding: clamp(22px, 3vw, 36px); max-width: 640px;
}
.doc .d-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.doc .d-h b { font-weight: 500; letter-spacing: -0.02em; }
.doc .d-sec { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; font-size: .875rem; }
.doc .d-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.doc .d-sec .muted { font-size: .8125rem; }
.doc .lines span { display: block; height: 8px; border-radius: 4px; background: var(--bg-2); margin: 6px 0 10px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.1875rem; letter-spacing: -0.02em; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.5px; background: var(--ink); transition: transform 320ms var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 0 26px; max-width: 64ch; color: var(--ink-2); }

/* industries */
.ind { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.ind-side .h2 { margin-top: 18px; max-width: 12ch; }
.ind-side .lead { margin-top: 20px; max-width: 40ch; }
.ind-side .who { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.ind-side .who span { font-size: .8125rem; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.ind-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.ind-cols .detail h3 { font-size: .8125rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 4px; }
.ind-note { grid-column: 1 / -1; }

.traits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.trait { padding: 28px 28px 4px 0; }
.trait + .trait { padding-left: 28px; border-left: 1px solid var(--line); }
.trait .h4 { margin: 0 0 8px; }

/* company */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.story .prose p { font-size: 1.1875rem; line-height: 1.6; letter-spacing: -0.014em; color: var(--ink-2); }
.story .prose p + p { margin-top: 22px; }
.story .prose p strong { color: var(--ink); font-weight: 500; }
.name-card { position: sticky; top: 108px; align-self: start; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); padding: 28px; --mark-gap: var(--dark); }
.name-card .mark { width: 72px; height: 72px; color: var(--on-dark); }
.name-card .mark polygon { stroke-width: 1; }
.name-card .h3 { margin-top: 40px; }
.name-card p { margin-top: 12px; color: var(--on-dark-2); font-size: .9375rem; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principle { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); min-height: 240px; display: flex; flex-direction: column; }
.principle .t-n { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-4); }
.principle .h3 { margin-top: auto; padding-top: 48px; }
.principle p { margin-top: 10px; }
.founder { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; color: var(--ink-4); font-size: .8125rem; text-align: center; padding: 24px; --mark-gap: var(--bg-2);
}
.portrait .mark { width: 56px; height: 56px; color: var(--ink-4); margin: 0 auto 14px; }
.portrait.has-photo { padding: 0; overflow: hidden; }
.portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder .h2 { max-width: 14ch; }
.founder .role { margin-top: 10px; color: var(--ink-3); }
.founder .prose { margin-top: 28px; max-width: 58ch; }
.founder .prose p { color: var(--ink-2); }
.founder .prose p + p { margin-top: 16px; }

/* book */
.book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.expect { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.expect li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.expect .t-n { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-4); padding-top: 4px; }
.expect .h4 { margin-bottom: 4px; }
.booker { position: sticky; top: 100px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-float); min-height: 640px; overflow: hidden; }
.booker .calendly-inline-widget { min-width: 300px; height: 700px; }
.booker-empty { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; min-height: 640px; }
.cal { margin-top: 28px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: .8125rem; color: var(--ink-4); }
.cal span.dow { aspect-ratio: auto; font-size: .75rem; padding-bottom: 6px; }
.cal span.av { color: var(--ink); background: var(--bg-2); }
.booker-empty .bottom { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.nf .mark { width: 64px; height: 64px; margin: 0 auto 32px; }

/* ---------- reveal (opacity + small translate; off for reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .float-a, .float-b { display: none; }
  .window { max-width: 880px; }
}
@media (max-width: 1024px) {
  .artifact-wrap { grid-template-columns: 1fr; }
  .engage { grid-template-columns: 1fr; }
  .e-card { min-height: 0; }
  .e-card .h3 { padding-top: 48px; }
}
@media (max-width: 880px) {
  .nav .nav-link, .nav .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-row, .section-head, .proof-grid, .cta, .step-block, .ind, .story, .founder, .book-grid { grid-template-columns: 1fr; }
  .hero-actions, .section-head .lead, .cta-actions { justify-self: start; justify-content: flex-start; }
  .section-head { gap: 20px; }
  .problems, .trust, .traits { grid-template-columns: 1fr; }
  .problem, .problem + .problem, .trust > div, .trust > div + div, .trait, .trait + .trait { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step-side, .name-card, .booker { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .portrait { max-width: 280px; }
  .float-a { display: none; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dash-row { grid-template-columns: 1fr; }
  .dash-row .panel:last-child { display: none; }
  .window-body { padding: 14px; gap: 12px; }
  .stage { padding: 20px 12px 0; }
  .strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .strip ul { gap: 8px 20px; }
  .artifact-stage { min-height: 520px; }
  .sys { grid-template-columns: 1fr; }
  .sys-col.l .mod::after, .sys-col.r .mod::after { display: none; }
  .detail-grid, .ind-cols, .principles { grid-template-columns: 1fr; }
  .doc .d-sec { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
  .figures .fig .num { font-size: 2.5rem; }
  .tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tab { padding: 9px 14px; flex: 1; }
  .booker, .booker-empty { min-height: 0; }
  .foot-top { grid-template-columns: 1fr; }
}


/* org chart: wide on desktop, stacked on phones */
.org-m { display: none; }
@media (max-width: 640px) {
  .org-d { display: none; }
  .org-m { display: block; width: 100%; max-width: 340px; margin: 24px auto 0; }
  .artifact-stage { min-height: 0; }
  .tab-panel { position: relative; inset: auto; display: none; padding: 52px 16px 24px; }
  .tab-panel.is-active { display: flex; }
  .stage-caption { position: static; display: block; text-align: center; padding: 10px 0 12px; }
  .stage { padding-bottom: 0; }
}

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tab-panel { transform: none; transition: opacity 200ms ease; }
  .tab-indicator, .e-card, .btn, .mobile-sheet { transition-property: opacity, background-color, color; }
  .mobile-sheet { transform: none; }
  .e-card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .mobile-sheet { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(13,13,12,.3); --line-2: rgba(13,13,12,.5); --ink-3: #4A4741; --ink-4: #4A4741; }
}

/* ==========================================================================
   v3.1 — control-room layer: 3D hero, HUD, grain, console, screensaver
   ========================================================================== */

/* film grain on dark surfaces */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* header over the dark hero */
.site-header.on-dark { color: var(--on-dark); --mark-gap: var(--dark); }
.site-header.on-dark .brand .mark { color: var(--on-dark); }
.site-header.on-dark .nav a.nav-link { color: var(--on-dark-2); }
.site-header.on-dark .nav a.nav-link:hover { color: var(--on-dark); background: rgba(244,242,237,.08); }
.site-header.on-dark .btn-primary { background: var(--on-dark); color: var(--ink); box-shadow: none; }
.site-header.on-dark .menu-btn span, .site-header.on-dark .menu-btn span::before, .site-header.on-dark .menu-btn span::after { background: var(--on-dark); }
body.menu-open .site-header.on-dark .menu-btn span { background: transparent; }
body.menu-open .site-header.on-dark { color: var(--ink); --mark-gap: var(--bg); }
body.menu-open .site-header.on-dark .brand .mark { color: var(--ink); }
body.menu-open .site-header.on-dark .menu-btn span::before, body.menu-open .site-header.on-dark .menu-btn span::after { background: var(--ink); }
.site-header.on-dark.is-scrolled { background: rgba(13,13,12,.55); }
.site-header.on-dark::after { background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent); }

/* ---------- 3D hero ---------- */
.hero-x {
  position: relative; min-height: min(100svh, 980px); background: var(--dark); color: var(--on-dark); overflow: hidden;
  display: flex; align-items: flex-end; --mark-gap: var(--dark);
}
.hero-x::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(80% 70% at 66% 45%, transparent 40%, rgba(0,0,0,.55) 100%);
}
.gem-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0 !important; cursor: grab; touch-action: pan-y; }
.gem-canvas.grabbing { cursor: grabbing; }
.hero-x-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 8vw, 96px); pointer-events: none; }
.hero-x-inner a, .hero-x-inner button { pointer-events: auto; }
.hero-x .display { max-width: 11ch; margin-top: 24px; }
.hero-x .lead { color: var(--on-dark-2); max-width: 44ch; margin-top: 28px; }
.hero-x .hero-actions { justify-content: flex-start; margin-top: 36px; }
.hero-x .kicker { color: var(--on-dark-3); }

.hud { position: absolute; z-index: 2; font-size: .75rem; line-height: 1.6; letter-spacing: .04em; color: var(--on-dark-3); text-transform: uppercase; pointer-events: none; }
.hud b { display: block; font-weight: 500; color: var(--on-dark-2); }
.hud-tr { top: 100px; right: var(--gutter); text-align: right; }
.hud-br { bottom: clamp(56px, 8vw, 96px); right: var(--gutter); text-align: right; pointer-events: auto; }
.hud-fig { top: 100px; left: var(--gutter); }
.hud .live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9BC59D; margin-right: 8px; vertical-align: 1px; }
.saver-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-2);
  box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color 160ms, color 160ms, transform 120ms var(--ease);
}
.saver-btn:hover { color: var(--on-dark); background: rgba(244,242,237,.06); }
.saver-btn:active { transform: scale(.96); }
.saver-btn svg { width: 12px; height: 12px; }

/* viewfinder brackets */
.frame-corners { position: absolute; inset: 84px var(--gutter) 28px; z-index: 1; pointer-events: none; }
.frame-corners i { position: absolute; width: 22px; height: 22px; border-color: rgba(244,242,237,.32); border-style: solid; border-width: 0; }
.frame-corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame-corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame-corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame-corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero-x .frame-corners { left: 56%; right: calc(var(--gutter) + 0px); inset-block: 132px 140px; }

/* ---------- owner console ---------- */
.console-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px 14px 0 0; background: rgba(244,242,237,.035); box-shadow: inset 0 0 0 1px var(--line-dark); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-3); flex-wrap: wrap; }
.console-top .live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9BC59D; margin-right: 8px; vertical-align: 1px; }
.console-top .right { display: flex; align-items: center; gap: 18px; }
.console-top .saver-btn { margin-top: 0; }
.console {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line-dark);
  border-radius: 0 0 14px 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-dark);
}
.tile { background: var(--dark); padding: 20px; min-height: 230px; display: flex; flex-direction: column; }
.tile-h { display: flex; justify-content: space-between; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 14px; }
.tile-h b { font-weight: 500; color: var(--on-dark-2); }
.t3 { grid-column: span 3; } .t4 { grid-column: span 4; } .t5 { grid-column: span 5; } .t6 { grid-column: span 6; }
.gauge { position: relative; width: 100%; max-width: 168px; margin: auto; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; }
.gauge .g-val { transition: none; }
.gauge .g-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .g-num { font-size: 2.25rem; letter-spacing: -0.05em; font-weight: 500; line-height: 1; color: var(--on-dark); }
.gauge .g-num::after { content: attr(data-unit); font-size: 1rem; color: var(--on-dark-3); margin-left: 2px; letter-spacing: 0; }
.gauge .g-lbl { font-size: .75rem; color: var(--on-dark-3); margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }
.stream { position: relative; flex: 1; min-height: 150px; }
.stream canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stream-read { display: flex; gap: 28px; margin-bottom: 8px; }
.stream-read div { font-size: .75rem; color: var(--on-dark-3); text-transform: uppercase; letter-spacing: .05em; }
.stream-read b { display: block; font-size: 1.5rem; letter-spacing: -0.04em; font-weight: 500; color: var(--on-dark); text-transform: none; margin-top: 4px; }
.pipe { list-style: none; display: grid; gap: 14px; margin-top: auto; }
.pipe li { display: grid; grid-template-columns: 78px 1fr 30px; gap: 12px; align-items: center; font-size: .8125rem; color: var(--on-dark-2); }
.pipe .track { height: 6px; border-radius: 3px; background: rgba(244,242,237,.07); overflow: hidden; }
.pipe .fill { display: block; height: 100%; width: 0; background: var(--on-dark); border-radius: 3px; transition: width 1400ms var(--ease); }
.pipe li:nth-child(n+4) .fill { background: var(--stone); }
.pipe em { font-style: normal; text-align: right; font-family: var(--font-mono); font-size: .75rem; color: var(--on-dark-3); }
.log { list-style: none; display: grid; gap: 0; }
.log li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-dark); font-size: .8125rem; color: var(--on-dark-2); animation: logIn 600ms var(--ease) both; }
.log li:first-child { color: var(--on-dark); }
.log .l-t { font-size: .75rem; color: var(--on-dark-3); }
.log .l-c { font-size: .75rem; color: var(--on-dark-3); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sys-status { list-style: none; display: grid; gap: 11px; margin-top: 4px; }
.sys-status li { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--on-dark-2); }
.sys-status span:last-child { font-family: var(--font-mono); font-size: .75rem; color: var(--on-dark-3); display: flex; align-items: center; gap: 7px; }
.sys-status span:last-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9BC59D; }
.console-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: .75rem; color: var(--on-dark-3); flex-wrap: wrap; }

/* ---------- screensaver ---------- */
.saver {
  position: fixed; inset: 0; z-index: 100; background: #070707; color: var(--on-dark);
  opacity: 0; transform: scale(1.02); filter: blur(8px);
  transition: opacity 420ms var(--ease), transform 620ms var(--ease), filter 520ms var(--ease);
}
.saver.open { opacity: 1; transform: none; filter: none; }
.saver canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: grab; touch-action: none; }
.saver .frame-corners { inset: 28px; z-index: 2; }
.saver-hud { position: absolute; z-index: 3; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-3); display: grid; gap: 4px; }
.saver-hud b { font-weight: 500; color: var(--on-dark); }
.saver-hud.tl { top: 48px; left: 52px; } .saver-hud.tr { top: 48px; right: 52px; text-align: right; }
.saver-hud.bl { bottom: 48px; left: 52px; max-width: 60vw; } .saver-hud.br { bottom: 48px; right: 52px; text-align: right; justify-items: end; }
.saver-read { opacity: 0; transform: translateY(4px); transition: opacity 400ms ease, transform 500ms var(--ease); text-transform: none; letter-spacing: 0; font-size: 13px; }
.saver-read.in { opacity: 1; transform: none; }
.saver-x { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--on-dark); padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(244,242,237,.25); }
.saver-x:hover { background: rgba(244,242,237,.08); }
.saver-seven { position: absolute; z-index: 1; right: 4vw; bottom: -6vw; font-size: 34vw; line-height: 1; font-weight: 500; letter-spacing: -0.06em; color: rgba(244,242,237,.035); pointer-events: none; }
body.saver-open { overflow: hidden; }

/* ---------- app mock (jobs board) ---------- */
.app {
  margin-top: 40px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-float); overflow: hidden;
  display: grid; grid-template-columns: 176px 1fr; font-size: .8125rem;
}
.app-side { background: #FAF9F6; border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; }
.app-side .ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; font-weight: 500; }
.app-side .ws .mark { width: 16px; height: 16px; --mark-gap: #FAF9F6; }
.app-side a { padding: 7px 8px; border-radius: 7px; color: var(--ink-2); display: flex; justify-content: space-between; }
.app-side a.on { background: var(--bg-2); color: var(--ink); font-weight: 500; }
.app-side a em { font-style: normal; font-size: .75rem; color: var(--ink-4); }
.app-main { min-width: 0; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app-bar b { font-weight: 500; }
.app-bar .views { display: flex; gap: 4px; }
.app-bar .views span { padding: 4px 9px; border-radius: 6px; font-size: .75rem; color: var(--ink-3); }
.app-bar .views span.on { background: var(--bg-2); color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; padding: 14px; background: #FBFAF8; overflow-x: auto; }
.col-h { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); padding: 2px 4px 8px; }
.jcard { background: #fff; border-radius: 9px; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04); padding: 10px 11px; margin-bottom: 8px; }
.jcard b { display: block; font-weight: 500; font-size: .8125rem; }
.jcard .jm { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: var(--ink-3); }
.st { font-size: .75rem; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.st.warn { background: #F3E6D3; color: #7A5B30; }
.st.ok { background: #E3EDE2; color: #3C5A3E; }

/* ---------- responsive for the new layer ---------- */
@media (max-width: 1024px) {
  .t3 { grid-column: span 6; } .t4, .t5, .t6 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .hero-x { align-items: flex-end; min-height: 100svh; }
  .hero-x::after { background: linear-gradient(to bottom, transparent 30%, rgba(13,13,12,.85) 62%, var(--dark) 80%); }
  .hud-tr, .hero-x .frame-corners, .hud-fig { display: none; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .saver-hud.tl, .saver-hud.bl { left: 24px; } .saver-hud.tr, .saver-hud.br { right: 24px; }
  .saver-hud.tl, .saver-hud.tr { top: 28px; } .saver-hud.bl { bottom: 96px; max-width: 80vw; } .saver-hud.br { bottom: 28px; }
}
@media (max-width: 640px) {
  .t3 { grid-column: span 12; }
  .tile { min-height: 0; }
  .gauge { max-width: 150px; }
  .log li { grid-template-columns: 1fr auto; }
  .log .l-t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .saver { transform: none; filter: none; }
}

.light-figs .figures, .light-figs .fig, .light-figs .fig:nth-child(odd) { border-color: var(--line); }
.light-figs .fig .num { color: var(--ink); }
@media (max-width: 760px) { .hud-br { display: none; } }

.name-card { overflow: hidden; }
.name-card .name-gem { display: block; width: calc(100% + 56px); height: 240px; margin: -28px -28px 0; cursor: grab; touch-action: pan-y; }
.name-card .h3 { margin-top: 8px; }
.board { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.jcard { font-size: .78rem; color: var(--ink-3); }
.jcard .jm { flex-wrap: wrap; gap: 4px; }
@media (max-width: 1240px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } }
.name-card .name-gem { height: 270px; }

/* ---------- media: photo bands + video backgrounds (Higgsfield assets) ---------- */
.photo-band { position: relative; height: clamp(280px, 42vw, 560px); overflow: hidden; background: var(--dark); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.06); transition: transform 1600ms var(--ease); }
.photo-band.in img { transform: scale(1); }
.photo-band .hud { bottom: 20px; left: var(--gutter); top: auto; }
.video-bg { position: absolute; inset: 0; z-index: 0 !important; overflow: hidden; pointer-events: none; }
.video-bg video, .video-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .55; }
.video-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,12,.92) 0%, rgba(13,13,12,.55) 55%, rgba(13,13,12,.25) 100%); }
.cta .video-bg { border-radius: inherit; }
.cta > *:not(.video-bg):not(.big-mark) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .video-bg video { display: none; } .photo-band img { transform: none; } }
/* longer hero headlines (copy directions) */
.hero-x .display.long { font-size: clamp(2.6rem, 6.2vw, 5.4rem); max-width: 15ch; }

@media (max-width: 760px) { .hero-x .hero-x-inner > .kicker { display: none; } .hero-x .display.long { font-size: 2.55rem; } }

/* ==========================================================================
   v4 — industry doors, industry pages, light/dark theme
   ========================================================================== */

/* ---------- doors: who we work with (home + industry pages) ---------- */
.doors-sec { padding: clamp(56px, 7vw, 96px) 0 clamp(8px, 2vw, 24px); }
.doors-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 28px; }
.doors-lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-2); max-width: 44ch; justify-self: end; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door {
  --bg-card: var(--surface);
  position: relative; display: flex; flex-direction: column; min-height: 340px; padding: 22px 24px 22px;
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.door:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.door:active { transform: translateY(-1px) scale(.995); transition-duration: 120ms; }
.door-top { display: flex; justify-content: space-between; align-items: center; }
.door-n { font-size: .75rem; color: var(--ink-4); }
.door-here { display: none; font-size: .75rem; color: var(--stone-ink); letter-spacing: .04em; text-transform: uppercase; }
.door[aria-current="page"] { box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-card); }
.door[aria-current="page"] .door-here { display: inline; }
.door-art { width: 100%; max-width: 200px; height: auto; margin: 34px 0 30px; color: var(--ink); overflow: visible; }
.door-art .door-hot { transform-box: fill-box; transform-origin: center; transition: transform 520ms var(--ease), opacity 300ms ease; }
.door:hover .door-hot { transform: scale(1.12); }
.door-art .door-path { transition: stroke-dashoffset 1200ms var(--ease); }
.door:hover .door-path { stroke-dashoffset: -28; }
.door-t { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
.door-d { margin-top: 10px; font-size: .96875rem; line-height: 1.5; color: var(--ink-2); max-width: 32ch; }
.door-go { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; font-size: .9063rem; font-weight: 500; letter-spacing: -0.01em; }
.door-go i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease); }
.door-go i svg { width: 14px; height: 14px; transition: transform 420ms var(--ease); }
.door:hover .door-go i { background: var(--ink); color: var(--bg); box-shadow: none; }
.door:hover .door-go i svg { transform: translateX(2px); }
@media (max-width: 1024px) { .doors { grid-template-columns: 1fr; } .door { min-height: 0; display: grid; grid-template-columns: 1fr 150px; column-gap: 24px; } .door > * { grid-column: 1; } .door-art { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; } }
@media (max-width: 880px) { .doors-head { grid-template-columns: 1fr; gap: 14px; } .doors-lede { justify-self: start; } }
@media (max-width: 520px) { .door { grid-template-columns: 1fr 96px; padding: 20px; column-gap: 14px; } .door-t { font-size: 1.3rem; } .door-d { font-size: .9063rem; } }

/* ---------- industry pages ---------- */
.ind-hero { padding: clamp(150px, 18vw, 210px) 0 clamp(56px, 7vw, 96px); }
.ind-hero .h1 { max-width: 15ch; margin-top: 22px; }
.ind-hero .lead { max-width: 54ch; margin-top: 28px; }
.ind-hero .hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.ind-who { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.ind-who span { font-size: .8125rem; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }

/* "sound familiar": the owner's week, in their words */
.quotes { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.quote { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--line); }
.quote:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.quote p { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.25; letter-spacing: -0.028em; font-weight: 500; }
.quote span { display: block; margin-top: 10px; font-size: .9063rem; color: var(--ink-3); line-height: 1.5; max-width: 46ch; }

/* the life of a job: a rail of stages, today vs rebuilt */
.rail-wrap { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.rail-wrap::-webkit-scrollbar { display: none; }
.rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 0; min-width: 100%; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-dark); }
.rail::after { content: ""; position: absolute; top: 4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 4px rgba(164,138,103,.18); animation: rail-pulse 9s linear infinite; }
@keyframes rail-pulse { from { left: 0; } to { left: calc(100% - 7px); } }
.stop { position: relative; padding: 34px 22px 0 0; }
.stop::before { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--dark); box-shadow: inset 0 0 0 1.5px var(--on-dark-3); }
.stop .s-n { font-family: var(--font-mono); font-size: .75rem; color: var(--on-dark-3); }
.stop h3 { margin-top: 8px; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; color: var(--on-dark); }
.stop dl { margin-top: 18px; display: grid; gap: 14px; }
.stop dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.stop dd { margin-top: 4px; font-size: .875rem; line-height: 1.5; color: var(--on-dark-2); }
.stop dd.fix { color: var(--on-dark); }
.stop dt.fix-t { color: var(--stone-ink); }
.rail-note { margin-top: 28px; font-size: .8125rem; color: var(--on-dark-3); }
@media (max-width: 880px) {
  .rail-wrap { overflow: visible; margin: 0; padding: 0; }
  .rail { grid-auto-flow: row; grid-auto-columns: auto; }
  .rail::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .rail::after { left: 2px; top: 0; animation-name: rail-pulse-v; }
  @keyframes rail-pulse-v { from { top: 0; } to { top: calc(100% - 7px); } }
  .stop { padding: 0 0 34px 34px; }
  .stop::before { top: 4px; }
}

/* what we build: modules */
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mod-card { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.mod-card .h4 { margin: 16px 0 8px; }

/* the numbers you'd finally see */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.metric { padding: 26px 22px 6px 0; }
.metric + .metric { padding-left: 22px; border-left: 1px solid var(--line); }
.metric .spark { width: 100%; height: 34px; color: var(--ink); margin-bottom: 20px; }
.metric h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; }
.metric p { margin-top: 8px; font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1024px) { .metrics { grid-template-columns: 1fr 1fr; } .metric:nth-child(3) { padding-left: 0; border-left: 0; } .metric { border-bottom: 1px solid var(--line); padding-bottom: 22px; } }
@media (max-width: 640px) {
  .quotes, .mods { grid-template-columns: 1fr; }
  .quote, .quote:nth-child(even) { padding: 24px 0; border-left: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 22px 0; border-left: 0; }
}

/* origin note (proof, honest) */
.origin { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--bg-2); }
.origin svg { width: 44px; height: 44px; color: var(--ink); }
.origin .h3 { max-width: 26ch; }
.origin p.body-2 { margin-top: 12px; max-width: 62ch; }
@media (max-width: 640px) { .origin { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- theme toggle ---------- */
.h-actions { display: flex; align-items: center; gap: 4px; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); margin-left: 6px; transition: background-color 160ms ease, color 160ms ease; }
.theme-btn:hover { color: var(--ink); background: rgba(13,13,12,.05); }
.theme-btn:active { transform: scale(.92); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-moon { display: block; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
.site-header.on-dark .theme-btn { color: var(--on-dark-2); }
.site-header.on-dark .theme-btn:hover { color: var(--on-dark); background: rgba(244,242,237,.08); }
body.menu-open .site-header.on-dark .theme-btn { color: var(--ink-2); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease, box-shadow 320ms ease, fill 320ms ease !important;
}

/* ---------- dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0F0E;
  --bg-2: #171715;
  --surface: #1B1A18;
  --ink: #F2EFE9;
  --ink-2: rgba(242, 239, 233, .78);
  --ink-3: rgba(242, 239, 233, .62);
  --ink-4: rgba(242, 239, 233, .55);
  --line: rgba(242, 239, 233, .09);
  --line-2: rgba(242, 239, 233, .18);
  --stone: #B89B74;
  --stone-soft: #2A251E;
  --stone-ink: #C4A070;
  --dark: #070706;
  --dark-2: #121210;
  --dark-3: #1E1D1B;
  --shadow-card:
    0 0 0 1px rgba(242, 239, 233, .07),
    0 1px 2px rgba(0, 0, 0, .4),
    0 8px 24px -8px rgba(0, 0, 0, .5),
    0 32px 64px -32px rgba(0, 0, 0, .7);
  --shadow-float:
    0 0 0 1px rgba(242, 239, 233, .1),
    0 2px 4px rgba(0, 0, 0, .4),
    0 16px 40px -12px rgba(0, 0, 0, .6),
    0 48px 96px -48px rgba(0, 0, 0, .8);
}
[data-theme="dark"] .dark, [data-theme="dark"] .hero-x { box-shadow: inset 0 1px 0 var(--line-dark), inset 0 -1px 0 var(--line-dark); }
[data-theme="dark"] .cta { box-shadow: inset 0 0 0 1px var(--line-dark); }
[data-theme="dark"] .btn-light, [data-theme="dark"] .site-header.on-dark .btn-primary { color: #0D0D0C; }
[data-theme="dark"] .btn-secondary:hover, [data-theme="dark"] .nav a.nav-link:hover, [data-theme="dark"] .theme-btn:hover { background: rgba(242,239,233,.07); }
[data-theme="dark"] .site-header::after { background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent); }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(15, 15, 14, .72); }
[data-theme="dark"] .mobile-sheet { background: rgba(15, 15, 14, .92); }
[data-theme="dark"] body.menu-open .site-header.on-dark { color: var(--ink); }
[data-theme="dark"] .stage { background: radial-gradient(120% 80% at 50% 0%, rgba(242,239,233,.05), transparent 60%), var(--bg-2); }
[data-theme="dark"] .window-bar .title .mark { --mark-gap: var(--surface); }
[data-theme="dark"] .flow-step .chk svg { color: var(--bg); }
[data-theme="dark"] .jcard { background: var(--surface); }
[data-theme="dark"] .bars span { background: rgba(242,239,233,.08); }
[data-theme="dark"] .bars span.hi { background: var(--ink); }
[data-theme="dark"] .bars span.mid { background: var(--stone); }
@media (prefers-contrast: more) {
  [data-theme="dark"] { --line: rgba(242,239,233,.3); --line-2: rgba(242,239,233,.5); --ink-3: rgba(242,239,233,.75); }
}

.ind-more { margin-top: 28px; }
.ind-more svg { width: 12px; height: 12px; }
.ind-hero .hero-actions { justify-content: flex-start; justify-self: start; }
@media (min-width: 1101px) { .rail { grid-auto-columns: minmax(0, 1fr); } .stop { padding-right: 18px; } }
@media (max-width: 1024px) { .door .door-go { grid-column: 1 / -1; } .door-art { grid-row: 1 / span 3; } }

/* ==========================================================================
   v7
   ========================================================================== */

/* ---- dark mode: light "paper" pieces keep dark text in both themes ---- */
[data-theme="dark"] :is(.tab[aria-selected="true"], .chip.new, .core, .review, .btn-light, .site-header.on-dark .btn-primary, .seg button[aria-pressed="true"], .access-paper) {
  --ink: #0D0D0C; --ink-2: #3E3C38; --ink-3: #625D56; --ink-4: #6E6961; --stone-ink: #7D6644;
  --line: rgba(13,13,12,.09); --line-2: rgba(13,13,12,.16); --bg: #F4F2ED; --bg-2: #ECE9E2; --surface: #fff;
}
[data-theme="dark"] .app-side { background: var(--bg-2); }
[data-theme="dark"] .app-side .ws .mark { --mark-gap: var(--bg-2); }
[data-theme="dark"] .board { background: var(--bg); }
[data-theme="dark"] .st.warn { background: #3A2F20; color: #E2C9A2; }
[data-theme="dark"] .pill { color: #D9C6A8; }

/* ---- section heads that hold a full sentence ---- */
.section-head .h2.wide { max-width: 20ch; }

/* ---- 3D simulations embedded in the site ---- */
.sim { position: relative; height: clamp(440px, 52vw, 640px); margin-top: clamp(8px, 2vw, 24px); border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 55%, rgba(244,242,237,.045), transparent 70%), #0A0A09; box-shadow: inset 0 0 0 1px var(--line-dark); }
.sim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sim-top, .sim-bot { position: absolute; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.4vw, 28px); pointer-events: none; }
.sim-top { top: 0; align-items: flex-start; }
.sim-bot { bottom: 0; align-items: flex-end; }
.sim-top > *, .sim-bot > * { pointer-events: auto; }
.sim-cap { max-width: 34ch; }
.sim-cap span { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #C4A070; }
.sim-cap b { display: block; margin-top: 8px; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; color: var(--on-dark); }
.sim-cap p { margin-top: 10px; font-size: .9063rem; line-height: 1.5; color: var(--on-dark-2); }
.sim-stats { display: grid; gap: 12px; text-align: right; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-3); }
.sim-stats b { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.04em; color: var(--on-dark); text-transform: none; font-variant-numeric: tabular-nums; }
.sim-note { font-size: .75rem; color: var(--on-dark-3); letter-spacing: .02em; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(244,242,237,.07); box-shadow: inset 0 0 0 1px var(--line-dark); }
.seg button { font: 500 .8125rem/1 var(--font-sans); color: var(--on-dark-2); padding: 10px 15px; border-radius: 999px; transition: background-color 240ms var(--ease), color 240ms var(--ease); -webkit-tap-highlight-color: transparent; }
.seg button:active { transform: scale(.97); }
.seg button[aria-pressed="true"] { background: var(--on-dark); color: #0D0D0C; }
.sim-card { margin: 40px 0 0; height: clamp(480px, 46vw, 600px); }
@media (max-width: 720px) {
  .sim { height: auto; display: flex; flex-direction: column; }
  .sim canvas { position: relative; inset: auto; height: 360px; order: 2; }
  .sim-top { position: relative; order: 1; flex-direction: column; gap: 16px; padding-bottom: 0; }
  .sim-bot { position: relative; order: 3; flex-direction: column-reverse; align-items: stretch; gap: 12px; padding-top: 0; }
  .sim-stats { grid-auto-flow: column; justify-content: start; gap: 24px; text-align: left; }
  .sim-stats b { font-size: 1.375rem; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 11px 6px; font-size: .78rem; }
  .sim-card canvas { height: 380px; }
}

/* problems, now under the bottleneck on dark */
.sim-sec .problems { margin-top: clamp(48px, 6vw, 72px); border-top-color: var(--line-dark); }
.sim-sec .problem + .problem { border-left-color: var(--line-dark); }
.sim-sec .problem .h4 { color: var(--on-dark); }
@media (max-width: 880px) { .sim-sec .problem + .problem { border-left: 0; border-top: 1px solid var(--line-dark); } }

/* ---- home: how it starts ---- */
.start { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.start-main { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); --mark-gap: var(--dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.s-h { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--on-dark-3); }
.start-main .pill { background: rgba(164,138,103,.22); color: #D9C6A8; }
.start-main .h3 { margin-top: 48px; }
.s-list { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-dark); }
.s-list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.s-list b { font-weight: 500; letter-spacing: -0.01em; }
.s-list span { color: var(--on-dark-2); font-size: .9375rem; }
.s-fine { margin: 24px 0 28px; font-size: .875rem; line-height: 1.55; color: var(--on-dark-3); max-width: 52ch; }
.start-main .btn { align-self: flex-start; margin-top: auto; }
.start-next { display: grid; gap: 16px; }
.s-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); transition: transform 420ms var(--ease), box-shadow 420ms var(--ease); }
.s-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.s-card .mono { font-size: .75rem; color: var(--ink-4); }
.s-card .h4 { margin-top: 40px; max-width: 24ch; }
.s-card p { margin-top: 10px; max-width: 46ch; }
.s-card > svg { position: absolute; right: 26px; top: 26px; width: 14px; height: 14px; transition: transform 300ms var(--ease); }
.s-card:hover > svg { transform: translateX(3px); }
@media (max-width: 960px) { .start { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .s-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---- home: trust, with an access sheet ---- */
.trust-sec { background: linear-gradient(180deg, var(--bg) 0%, var(--stone-soft) 100%); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.trust-list { list-style: none; margin-top: 36px; border-top: 1px solid var(--line-2); }
.trust-list li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.trust-list b { font-weight: 500; letter-spacing: -0.01em; }
.trust-list span { color: var(--ink-2); font-size: .9375rem; }
.access { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); --mark-gap: var(--dark); box-shadow: 0 40px 80px -40px rgba(60,40,15,.45), inset 0 0 0 1px var(--line-dark); transform: rotate(-1.2deg); transition: transform 600ms var(--ease); }
.access:hover { transform: rotate(0deg); }
.ac-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.ac-h div { display: flex; align-items: center; gap: 10px; }
.ac-h .mark { width: 18px; height: 18px; color: var(--on-dark); }
.ac-h b { font-weight: 500; }
.ac-h .mono { font-size: .75rem; color: #C4A070; letter-spacing: .04em; text-transform: uppercase; }
.ac-rows { list-style: none; }
.ac-rows li { display: grid; grid-template-columns: 1fr auto 34px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.ac-tool { font-size: .8125rem; color: var(--on-dark-3); }
.ac-tool i { display: block; font-style: normal; font-size: .9375rem; color: var(--on-dark); font-weight: 500; letter-spacing: -0.01em; }
.ac-lvl { font-size: .75rem; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark-2); }
.ac-view { color: #D9C6A8; box-shadow: inset 0 0 0 1px rgba(196,160,112,.45); }
.ac-none { color: var(--on-dark-3); }
.ac-sw { width: 34px; height: 20px; border-radius: 999px; background: rgba(244,242,237,.12); position: relative; }
.ac-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-dark-3); transition: transform 400ms var(--ease); }
.ac-sw.on { background: #A48A67; }
.ac-sw.on::after { transform: translateX(14px); background: #fff; }
.ac-exit { display: flex; align-items: center; gap: 14px; padding-top: 16px; font-size: .8125rem; color: var(--on-dark-2); }
.ac-exit .mono { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-3); }
.ac-steps { display: flex; gap: 4px; flex: 1; }
.ac-steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(244,242,237,.18); }
.ac-steps i:nth-child(-n+2) { background: #C4A070; }
.ac-cap { margin-top: 14px; font-size: .75rem; color: var(--on-dark-3); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } .access { transform: none; } }
@media (max-width: 560px) { .trust-list li { grid-template-columns: 1fr; gap: 4px; } .ac-rows li { grid-template-columns: 1fr auto; } .ac-sw { display: none; } }

/* ---- how we work: full-width steps (no empty left column) ---- */
.step-block { display: block; }
.step-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.step-k { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-k .e-step { margin: 0; }
.step-head .h2 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); max-width: none; }
.step-head .lead { max-width: 50ch; justify-self: end; margin: 0; }
.step-main { margin-top: clamp(40px, 5vw, 56px); }
.step-main .detail-grid { margin-top: 0; grid-template-columns: repeat(4, 1fr); }
#partner .step-main .detail-grid { grid-template-columns: repeat(4, 1fr); }
.assess { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; align-items: stretch; }
.assess-steps { display: grid; gap: 16px; }
.assess .doc { margin-top: 0; max-width: none; }
.doc .d-items { list-style: none; display: grid; gap: 8px; }
.doc .d-items li { font-size: .9063rem; line-height: 1.5; color: var(--ink-2); padding-left: 16px; position: relative; }
.doc .d-items li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1.5px; background: var(--stone); }
.doc .d-rank { counter-reset: fx; }
.doc .d-rank li { counter-increment: fx; padding-left: 26px; color: var(--ink); }
.doc .d-rank li::before { content: counter(fx); top: 1px; width: auto; height: auto; background: none; font: 500 .75rem/1.6 var(--font-mono); color: var(--stone-ink); }
.step-main .app, .step-main .stage { margin-top: 40px; }
@media (max-width: 1100px) { .step-main .detail-grid, #partner .step-main .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .step-head { grid-template-columns: 1fr; gap: 20px; } .step-head .lead { justify-self: start; } .assess { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .step-main .detail-grid, #partner .step-main .detail-grid { grid-template-columns: 1fr; } }

/* ---- who we work with: head row, then art + details across the full width ---- */
.ind { display: block; }
.ind-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.ind-head .h2 { margin-top: 18px; max-width: 14ch; font-size: clamp(2.5rem, 5vw, 4rem); }
.ind-head .lead { max-width: 46ch; }
.ind-head .who { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.ind-head .who span { font-size: .8125rem; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.ind-head .ind-more { display: none; }
.ind-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: clamp(36px, 4vw, 48px); }
.ind-body .detail h3 { font-size: .8125rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 4px; }
.ind-art { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--dark); color: var(--on-dark); --bg-card: var(--dark); box-shadow: inset 0 0 0 1px var(--line-dark); transition: transform 420ms var(--ease); min-height: 260px; }
.ind-art:hover { transform: translateY(-3px); }
.ind-art .mono { font-size: .75rem; color: var(--on-dark-3); }
.ind-art-svg { width: 100%; height: auto; max-height: 130px; color: var(--on-dark); overflow: visible; }
.ind-art-go { display: flex; justify-content: space-between; align-items: center; font-size: .9063rem; font-weight: 500; }
.ind-art-go svg { width: 14px; height: 14px; transition: transform 300ms var(--ease); }
.ind-art:hover .ind-art-go svg { transform: translateX(3px); }
.ind-art .door-hot { transform-box: fill-box; transform-origin: center; transition: transform 520ms var(--ease); }
.ind-art:hover .door-hot { transform: scale(1.12); }
@media (max-width: 960px) { .ind-head { grid-template-columns: 1fr; gap: 16px; } .ind-body { grid-template-columns: 1fr 1fr; } .ind-art { grid-column: 1 / -1; min-height: 0; } .ind-art-svg { max-width: 320px; } }
@media (max-width: 640px) { .ind-body { grid-template-columns: 1fr; } }

/* ---- company ---- */
.principle { min-height: 0; }
.pr-h { display: flex; justify-content: space-between; align-items: center; }
.pr-h svg { width: 40px; height: 24px; color: var(--ink-3); }
.principle .h3 { margin-top: 28px; padding-top: 0; }
.f-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--line); }
.f-facts li { padding: 20px 16px 0 0; }
.f-facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.f-facts b { display: block; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.f-facts span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--ink-3); }
.shift { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.shift > div { padding: 28px 28px 0 0; }
.shift > div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.shift .mono { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #C4A070; }
.shift .h4 { margin: 14px 0 8px; }
@media (max-width: 880px) { .shift { grid-template-columns: 1fr; } .shift > div, .shift > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); } }

/* ---- industry pages: the rebuild ---- */
.rebuild { margin-top: clamp(8px, 2vw, 16px); }
.rb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rb-state { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--on-dark-2); letter-spacing: .02em; }
.rb-dot { width: 8px; height: 8px; border-radius: 50%; background: #C4A070; box-shadow: 0 0 0 4px rgba(196,160,112,.18); transition: background-color 400ms; }
.rebuild.is-rebuilt .rb-dot { background: var(--on-dark); box-shadow: 0 0 0 4px rgba(244,242,237,.12); }
.rb-map { position: relative; height: clamp(220px, 24vw, 300px); margin-top: 24px; border-radius: var(--radius-lg); background: #0A0A09; box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; }
.rb-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rb-path { stroke: var(--on-dark); stroke-width: 1.4; stroke-linecap: round; }
.rb-node, .rb-owner, .rb-pulse { position: absolute; left: 0; top: 0; will-change: transform; }
.rb-node i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #0A0A09; box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.rb-node em { position: absolute; left: -10px; top: 14px; font-style: normal; font-size: .75rem; color: var(--on-dark-3); }
.rb-node b { position: absolute; left: -60px; width: 120px; top: 30px; text-align: center; font-size: .8125rem; font-weight: 500; letter-spacing: -0.01em; color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-owner i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #A48A67; box-shadow: 0 0 0 6px rgba(196,160,112,.18); }
.rb-owner em { position: absolute; left: 16px; top: -7px; font-style: normal; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #C4A070; }
.rb-pulse { width: 0; height: 0; }
.rb-pulse::after { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #C4A070; box-shadow: 0 0 0 3px rgba(196,160,112,.2); transition: background-color 400ms; }
.rebuild.is-rebuilt .rb-pulse::after { background: var(--on-dark); box-shadow: 0 0 0 3px rgba(244,242,237,.16); }
.rb-stops { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line-dark); }
.rb-stop { padding: 22px 16px 0 0; }
.rb-stop + .rb-stop { padding-left: 16px; border-left: 1px solid var(--line-dark); }
.rb-stop .s-n { font-size: .75rem; color: var(--on-dark-3); }
.rb-stop h3 { margin-top: 6px; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; color: var(--on-dark); }
.rb-txt { display: grid; margin-top: 12px; }
.rb-txt p { grid-area: 1 / 1; font-size: .875rem; line-height: 1.5; transition: opacity 420ms var(--ease), transform 520ms var(--ease); }
.rb-txt span { display: block; margin-bottom: 6px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.rb-t { color: var(--on-dark-2); }
.rb-t span { color: #C4A070; }
.rb-f { color: var(--on-dark); opacity: 0; transform: translateY(6px); }
.rb-f span { color: var(--on-dark-3); }
.rebuild.is-rebuilt .rb-t { opacity: 0; transform: translateY(-6px); }
.rebuild.is-rebuilt .rb-f { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .rb-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-stop, .rb-stop + .rb-stop { padding: 20px 20px 20px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .rb-stop:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
  .rb-node b { display: none; }
}
@media (max-width: 640px) {
  .rb-stops { grid-template-columns: 1fr; }
  .rb-stop, .rb-stop:nth-child(even) { padding: 18px 0; border-left: 0; }
  .rb-bar .seg { width: 100%; } .rb-bar .seg button { flex: 1; }
  .rb-owner em { display: none; }
}

/* industry metrics on dark */
.dark .metrics { border-top-color: var(--line-dark); }
.dark .metric + .metric { border-left-color: var(--line-dark); }
.dark .metric .spark { color: #C4A070; }
.dark .metric h3 { color: var(--on-dark); }
.dark .metric p { color: var(--on-dark-2); }
@media (max-width: 1024px) { .dark .metric { border-bottom-color: var(--line-dark); } }
@media (max-width: 640px) { .rb-map { height: 200px; } }
[data-theme="dark"] .start-main, [data-theme="dark"] .access, [data-theme="dark"] .ind-art { background: #1B1A18; --mark-gap: #1B1A18; --bg-card: #1B1A18; }
