/* ============================================================
   B3LL — shared design system
   ============================================================ */

:root {
  /* ground */
  --bg:      #0b0d14;
  --bg2:     #0e111a;
  --bg3:     #12151f;

  /* accent */
  --gold:    rgba(201,169,110,1);
  --gold8:   rgba(201,169,110,0.80);
  --gold5:   rgba(201,169,110,0.50);
  --gold3:   rgba(201,169,110,0.30);
  --gold16:  rgba(201,169,110,0.16);
  --gold08:  rgba(201,169,110,0.08);
  --gold04:  rgba(201,169,110,0.04);

  /* text */
  --text:    rgba(238,241,248,0.96);
  --text2:   rgba(228,232,242,0.82);
  --text3:   rgba(222,227,240,0.58);
  --text4:   rgba(222,227,240,0.40);

  /* lines */
  --border:  rgba(201,169,110,0.16);
  --border2: rgba(228,232,242,0.09);
  --hair:    rgba(228,232,242,0.07);

  --error:   #d87a7a;

  --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --maxw:    1200px;
  --measure: 720px;
  --nav-h:   70px;
  --ease:    cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold16); color: var(--text); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--bg2); border: 1px solid var(--gold5); color: var(--gold);
  padding: 10px 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 56px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
}

/* ===== TYPE ===== */
.eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); display: inline-block;
}
.display-xl, .display-lg, .display-md, .display-sm, .display-xs {
  font-family: var(--serif); font-weight: 300; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.07;
}
.display-xl { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.03; }
.display-lg { font-size: clamp(34px, 4.6vw, 56px); }
.display-md { font-size: clamp(28px, 3.7vw, 44px); }
.display-sm { font-size: clamp(23px, 2.9vw, 33px); }
.display-xs { font-size: clamp(20px, 2.3vw, 26px); }
.display-xl em, .display-lg em, .display-md em, .display-sm em, .display-xs em {
  font-style: italic; color: var(--gold); font-weight: 300;
}
.body-lg { font-size: 20px; line-height: 1.74; color: var(--text2); }
.body-md { font-size: 17.5px; line-height: 1.82; color: var(--text2); }
@media (max-width: 768px) { .body-lg { font-size: 18px; } }
.kicker  { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--gold5); }
.muted { color: var(--text3); }

/* ===== REVEAL ===== */
.reveal { opacity: 1; transform: none; }
@keyframes revealUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
html.js .reveal.is-visible { animation: revealUp 0.7s var(--ease) both; }
html.js .reveal-d1.is-visible { animation-delay: 0.08s; }
html.js .reveal-d2.is-visible { animation-delay: 0.16s; }
html.js .reveal-d3.is-visible { animation-delay: 0.24s; }
@media print { html.js .reveal.is-visible { animation: none !important; opacity: 1 !important; } }
@media (prefers-reduced-motion: reduce) { html.js .reveal.is-visible { animation: none; } }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(11,13,20,0.86); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 6px 40px rgba(0,0,0,0.5); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.nav-logo { display: flex; align-items: center; height: 100%; gap: 12px; color: var(--text); }
.brand { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: 0.14em; color: var(--text); line-height: 1; }
.brand-3 { color: var(--gold); }
.brand-logo { height: 24px; width: auto; display: block; }
.footer-brand .brand-logo { height: 24px; }
@media (max-width: 768px) { .brand-logo { height: 20px; } }
.nav-wordmark { font-family: var(--serif); font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text3); padding-left: 12px; border-left: 1px solid var(--border); line-height: 1; }
@media (max-width: 480px) { .nav-wordmark { display: none; } }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text3);
  position: relative; padding: 4px 0; transition: color 0.22s ease; white-space: nowrap;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.25s ease; }
.nav-links a:hover { color: var(--text); } .nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border); width: 42px; height: 42px;
  align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--gold5); }
.nav-toggle-bars { position: relative; width: 16px; height: 9px; }
.nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 1px; background: var(--text2); transition: transform 0.25s ease, top 0.25s ease; }
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 59; background: var(--bg);
  padding: 40px 24px; display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a.mm-link {
  font-family: var(--serif); font-size: 32px; font-weight: 300; color: var(--text);
  padding: 18px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-menu a.mm-link .mm-n { font-family: var(--mono); font-size: 11px; color: var(--gold5); }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--gold); }
.mobile-menu .btn { margin-top: 36px; align-self: flex-start; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .nav-actions .btn-text { display: none; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 15px 32px; border: 1px solid transparent; cursor: pointer; transition: all 0.22s ease;
  background: transparent; color: var(--text); text-align: center; line-height: 1.5;
}
.btn-gold { border-color: var(--gold5); color: var(--gold); background: var(--gold04); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn-ghost { border-color: var(--border2); color: var(--text2); }
.btn-ghost:hover { border-color: var(--text3); background: rgba(228,232,242,0.03); color: var(--text); }
.btn-text { padding: 10px 22px; border-color: var(--border); color: var(--text3); font-size: 10px; }
.btn-text:hover { color: var(--gold); border-color: var(--gold5); }
.btn .arrow { font-size: 13px; transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

.textlink { color: var(--gold8); border-bottom: 1px solid var(--gold3); transition: border-color 0.2s, color 0.2s; }
.textlink:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== SECTIONS ===== */
.section { padding: 130px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 84px 0; } }
.section-tight { padding: 96px 0; }
@media (max-width: 768px) { .section-tight { padding: 72px 0; } }
.section-dim { background: var(--bg2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-head { max-width: 820px; margin-bottom: 60px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lede { margin-top: 26px; max-width: 700px; }
.rule { height: 1px; background: var(--border); border: 0; }

/* ===== SPLIT / PROSE ===== */
.split-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
@media (max-width: 960px) { .split-grid { grid-template-columns: 1fr; gap: 40px; } }
.split-grid .eyebrow { display: block; margin-bottom: 24px; }
.prose p { font-size: 17.5px; line-height: 1.86; color: var(--text2); margin: 0 0 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 500; }
.prose em { color: var(--gold8); font-style: italic; }
.prose ul { list-style: none; margin: 0 0 24px; padding: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 17px; line-height: 1.7; color: var(--text2); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 1px; background: var(--gold5); }

/* ===== PULL QUOTE STRIP ===== */
.quote-strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--bg2); padding: 90px 0; }
.pullquote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(27px, 3.5vw, 42px); line-height: 1.32; color: var(--text); max-width: 960px;
}
.pullquote em { color: var(--gold); font-style: italic; }

/* ===== DIAGRAMS ===== */
.diagram { border: 1px solid var(--border); background: linear-gradient(168deg, var(--bg3), var(--bg2)); padding: 44px; }
@media (max-width: 768px) { .diagram { padding: 24px; } }
.diagram-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-top: 22px; line-height: 1.7; }

.chain { display: flex; flex-wrap: wrap; align-items: stretch; }
.chain-node {
  flex: 1 1 0; min-width: 118px; padding: 20px 16px; text-align: center;
  border: 1px solid var(--border); border-right: none; position: relative; background: var(--gold04);
}
.chain-node:last-child { border-right: 1px solid var(--border); }
.chain-node .cn-k { font-family: var(--mono); font-size: 10px; color: var(--gold5); display: block; margin-bottom: 8px; }
.chain-node .cn-t { font-family: var(--serif); font-size: 18px; color: var(--text); line-height: 1.15; }
.chain-node.is-accent { background: var(--gold08); }
.chain-node.is-accent .cn-t { color: var(--gold); }
@media (max-width: 860px) {
  .chain { flex-direction: column; }
  .chain-node { border-right: 1px solid var(--border); border-bottom: none; }
  .chain-node:last-child { border-bottom: 1px solid var(--border); }
}

.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr; } }
.ledger-col { padding: 34px; }
.ledger-col + .ledger-col { border-left: 1px solid var(--border); }
@media (max-width: 760px) { .ledger-col + .ledger-col { border-left: none; border-top: 1px solid var(--border); } .ledger-col { padding: 28px 24px; } }
.ledger-h { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ledger-sub { font-family: var(--serif); font-size: 21px; color: var(--text); margin-bottom: 16px; line-height: 1.2; }
.ledger-col p { font-size: 15.5px; line-height: 1.72; color: var(--text2); }
.ledger-col ul { list-style: none; }
.ledger-col li { font-size: 15px; line-height: 1.6; color: var(--text2); padding: 9px 0; border-top: 1px solid var(--hair); }
.ledger-col li:first-child { border-top: none; padding-top: 0; }

/* evidence ladder (claims discipline) */
.ladder { display: flex; flex-direction: column; border: 1px solid var(--border); }
.ladder-row { display: grid; grid-template-columns: 210px 1fr; gap: 28px; padding: 20px 30px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.ladder-row:last-child { border-bottom: none; }
@media (max-width: 640px) { .ladder-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 22px; } }
.ladder-k { font-family: var(--serif); font-size: 21px; color: var(--gold); font-style: italic; }
.ladder-v { font-size: 15px; line-height: 1.6; color: var(--text2); }

/* ===== CARD GRIDS (bordered) ===== */
.grid-bordered { display: grid; border: 1px solid var(--border); border-bottom: none; border-right: none; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.cell {
  padding: 34px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 0.22s ease;
}
@media (max-width: 768px) { .cell { padding: 28px 24px; } }
.cell:hover { background: var(--bg3); }
.cell-num { font-family: var(--mono); font-size: 11px; color: var(--gold5); letter-spacing: 0.08em; margin-bottom: 14px; }
.cell-name { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--gold); margin-bottom: 10px; line-height: 1.15; }
.cell-text { font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.cell-list { list-style: none; margin-top: 16px; }
.cell-list li { font-size: 13.5px; line-height: 1.55; color: var(--text3); padding: 7px 0 7px 18px; position: relative; border-top: 1px solid var(--hair); }
.cell-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 1px; background: var(--gold5); }

/* ===== STATUS TAGS (what is proposed vs. demonstrated) ===== */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--border2); color: var(--text3); border-radius: 2px; white-space: nowrap;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text4); }
.tag-core::before { background: var(--gold); }
.tag-core { color: var(--gold8); border-color: var(--gold3); }
.tag-research::before { background: rgba(140,160,200,0.8); }
.tag-research { color: rgba(180,196,228,0.8); border-color: rgba(140,160,200,0.28); }

/* ===== NUMBERED LIST (challenges, open areas) ===== */
.num-list { border-top: 1px solid var(--border); list-style: none; }
.num-item {
  display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: 32px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--border); transition: background 0.25s ease, padding 0.25s ease;
}
.num-item:hover { background: linear-gradient(90deg, var(--gold04), transparent 40%); padding-left: 16px; }
@media (prefers-reduced-motion: reduce) { .num-item:hover { padding-left: 0; } }
@media (max-width: 860px) { .num-item { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; } .num-item:hover { padding-left: 0; } }
.num-n { font-family: var(--mono); font-size: 12px; color: var(--gold5); padding-top: 10px; }
.num-title { font-family: var(--serif); font-size: 27px; font-weight: 400; color: var(--text); line-height: 1.18; }
.num-item:hover .num-title { color: var(--gold); }
.num-desc { font-size: 15.5px; line-height: 1.72; color: var(--text2); padding-top: 4px; }
.num-desc .num-q { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text3); line-height: 1.6; }

/* ===== HOME HERO ===== */
.hero { padding: 104px 0 96px; border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; }
@media (max-width: 768px) { .hero { padding: 64px 0 72px; } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 82% 0%, var(--gold08), transparent 62%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 13ch; }
.hero .body-lg { max-width: 600px; margin-top: 34px; }
.hero .btn-row { margin-top: 40px; }
.hero .btn-row .btn { min-width: 340px; justify-content: space-between; }
@media (max-width: 480px) { .hero .btn-row .btn { min-width: 0; } }
.hero-fig { border: 1px solid var(--border); background: linear-gradient(168deg, var(--bg3), var(--bg2)); padding: 28px; }
.hero-fig svg { width: 100%; height: auto; }
.hero-fig figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-top: 18px; line-height: 1.7; }

/* line-art figure primitives (shared by hero + explorer) */
.fig-line { stroke: var(--text3); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.fig-faint { stroke: var(--hair); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.fig-grid { stroke: rgba(228,232,242,0.045); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.fig-gold { stroke: var(--gold); stroke-width: 1.25; fill: none; vector-effect: non-scaling-stroke; }
.fig-gold-fill { fill: var(--gold08); stroke: var(--gold5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fig-dash { stroke: var(--gold5); stroke-width: 1; fill: none; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.fig-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; fill: var(--text3); text-transform: uppercase; }
.fig-label-gold { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; fill: var(--gold8); }
.fig-dot { fill: var(--gold); }

.fig-flow { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.js .fig-flow { animation: flow 2.4s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -14; } }
}

/* ===== PAGE HERO (interior) ===== */
.page-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; }
@media (max-width: 768px) { .page-hero { padding: 64px 0 56px; } }
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 82% 0%, var(--gold08), transparent 62%); }
.page-hero > .container { position: relative; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 30px; max-width: 680px; }
.page-hero .btn-row { margin-top: 38px; }
.page-index { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hair); }
.page-index a { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); transition: color 0.2s ease; }
.page-index a .pi-n { font-family: var(--mono); color: var(--gold5); margin-right: 8px; letter-spacing: 0.04em; }
.page-index a:hover { color: var(--gold); }

/* ===== SYSTEMS EXPLORER (tabs) ===== */
.explorer { border: 1px solid var(--border); background: var(--bg); }
.explorer-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--border); }
.explorer-tab {
  background: transparent; border: none; border-right: 1px solid var(--border); cursor: pointer;
  padding: 22px 20px 20px; text-align: left; position: relative; transition: background 0.22s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.explorer-tab:last-child { border-right: none; }
.explorer-tab::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.explorer-tab:hover { background: var(--bg3); }
.explorer-tab[aria-selected="true"] { background: var(--gold04); }
.explorer-tab[aria-selected="true"]::after { transform: scaleX(1); }
.explorer-tab .et-n { font-family: var(--mono); font-size: 10.5px; color: var(--gold5); letter-spacing: 0.08em; }
.explorer-tab .et-t { font-family: var(--serif); font-size: 21px; color: var(--text2); line-height: 1.1; transition: color 0.2s ease; }
.explorer-tab[aria-selected="true"] .et-t { color: var(--gold); }
.explorer-tab:focus-visible { outline-offset: -4px; }
@media (max-width: 900px) {
  .explorer-tabs { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .explorer-tabs::-webkit-scrollbar { display: none; }
  .explorer-tab { flex: 0 0 auto; min-width: 150px; scroll-snap-align: start; padding: 18px 18px 16px; }
  .explorer-tab .et-t { font-size: 19px; }
}

.explorer-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.explorer-panel[hidden] { display: none; }
@media (max-width: 960px) { .explorer-panel { grid-template-columns: 1fr; min-height: 0; } }
.ep-body { padding: 48px 44px; border-right: 1px solid var(--border); }
@media (max-width: 960px) { .ep-body { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 24px; } }
.ep-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.ep-title { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; color: var(--text); margin-bottom: 18px; }
.ep-title em { color: var(--gold); font-style: italic; }
.ep-text { font-size: 16px; line-height: 1.78; color: var(--text2); }
.ep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); }
@media (max-width: 560px) { .ep-cols { grid-template-columns: 1fr; gap: 22px; } }
.ep-h { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ep-list { list-style: none; }
.ep-list li { font-size: 14px; line-height: 1.55; color: var(--text2); padding: 6px 0 6px 16px; position: relative; }
.ep-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 1px; background: var(--gold5); }
.ep-fig { padding: 40px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(168deg, var(--bg3), var(--bg2)); }
@media (max-width: 960px) { .ep-fig { padding: 28px 24px; } }
.ep-fig svg { width: 100%; height: auto; max-height: 360px; }
.ep-fig .diagram-cap { margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  html.js .explorer-panel.is-entering .ep-body > *,
  html.js .explorer-panel.is-entering .ep-fig { animation: revealUp 0.5s var(--ease) both; }
  html.js .explorer-panel.is-entering .ep-fig { animation-delay: 0.08s; }
}
.explorer-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--border); }
.explorer-foot .kicker { color: var(--text3); }
.explorer-step { display: flex; gap: 8px; }
.explorer-step button { background: transparent; border: 1px solid var(--border); width: 38px; height: 34px; cursor: pointer; color: var(--text3); transition: all 0.2s ease; }
.explorer-step button:hover { color: var(--gold); border-color: var(--gold5); }

/* ===== AUDIENCE PAIR (engineers / partners) ===== */
.pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }
.pair-col { padding: 56px 48px; display: flex; flex-direction: column; transition: background 0.22s ease; }
.pair-col + .pair-col { border-left: 1px solid var(--border); }
@media (max-width: 860px) { .pair-col { padding: 40px 24px; } .pair-col + .pair-col { border-left: none; border-top: 1px solid var(--border); } }
.pair-col:hover { background: var(--bg3); }
.pair-col .eyebrow { margin-bottom: 22px; }
.pair-col .display-sm { max-width: 26ch; }
.pair-col p { margin-top: 20px; font-size: 16px; line-height: 1.76; color: var(--text2); max-width: 46ch; }
.pair-col .btn { margin-top: auto; align-self: flex-start; }
.pair-col .pair-spacer { height: 34px; flex: none; }

/* ===== CTA BAND ===== */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin: 0 auto; }
.cta-band p { max-width: 620px; margin: 28px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 40px; }

/* ===== FORM ===== */
.inquiry-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
@media (max-width: 960px) { .inquiry-grid { grid-template-columns: 1fr; gap: 44px; } }
.begin-form { border: 1px solid var(--border); background: var(--bg2); padding: 44px 40px; display: flex; flex-direction: column; gap: 24px; position: relative; }
@media (max-width: 768px) { .begin-form { padding: 32px 22px; } }
.begin-form::before { content: ""; position: absolute; top: -1px; left: -1px; width: 60px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.intake-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.intake-head-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.intake-head-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; border: 0; min-width: 0; }
.field-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text2); }
.field-label .opt { color: var(--text4); letter-spacing: 0.1em; margin-left: 6px; }
.field input, .field textarea, .field select {
  background: transparent; border: none; border-bottom: 1px solid var(--border); padding: 11px 0;
  font-family: var(--sans); font-size: 15px; color: var(--text); outline: none; transition: border-color 0.22s ease;
  resize: vertical; width: 100%; border-radius: 0;
}
.field textarea { min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text4); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--gold); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold5) 50%), linear-gradient(135deg, var(--gold5) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { background: var(--bg2); color: var(--text); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: var(--error); }
.field-error { font-size: 12.5px; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 12.5px; color: var(--text3); line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; font-size: 12.5px; letter-spacing: 0.02em; padding: 8px 14px; border: 1px solid var(--border2);
  color: var(--text3); cursor: pointer; transition: all 0.2s ease; line-height: 1.3;
}
.chip input:checked + span { border-color: var(--gold5); color: var(--gold); background: var(--gold08); }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.chip span:hover { color: var(--text); border-color: var(--text4); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.begin-form .btn { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 12.5px; line-height: 1.6; color: var(--text3); }
.form-note a { color: var(--gold8); border-bottom: 1px solid var(--gold3); }
.form-status { font-size: 13px; line-height: 1.6; padding-top: 4px; }
.form-status:empty { display: none; }
.form-status-pending { color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; }
.form-status-success { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; }
.form-status-error { color: var(--error); }
.form-status-notice { color: var(--text2); border-left: 2px solid var(--gold5); padding-left: 16px; }
.form-status-notice strong { color: var(--text); font-weight: 500; }
.begin-form.is-submitting { opacity: 0.65; pointer-events: none; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 72px 0 56px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { height: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: var(--text3); max-width: 300px; }
.footer-col h2 { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold5); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text3); margin-bottom: 12px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--hair); }
.footer-copy { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text4); }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--text3); }

/* ===== UTIL ===== */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 34px; } .mt-l { margin-top: 56px; } .mt-xl { margin-top: 76px; }
.center { text-align: center; } .mx-auto { margin-left: auto; margin-right: auto; }
.maxw-m { max-width: 720px; }
