:root {
  --bg: #111311;
  --bg-deep: #0b0d0b;
  --surface: #191c19;
  --surface-2: #20241f;
  --paper: #f1efe5;
  --ink: #171915;
  --muted: #9b9d94;
  --line: rgba(241, 239, 229, 0.16);
  --line-strong: rgba(241, 239, 229, 0.3);
  --amber: #ffb000;
  --amber-soft: #ffd36f;
  --green: #70d6a0;
  --red: #ff786c;
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5.5rem, 10vw, 9rem);
  --radius: 3px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 180ms;
  --slow: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.58;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 4.4vw, 4.2rem); line-height: .98; max-width: 760px; margin-bottom: 1.6rem; }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.6rem); line-height: 1; margin-bottom: 1.4rem; }
h3 { line-height: 1.1; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: var(--amber); color: var(--ink); padding: .8rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 72px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--fast), border-color var(--fast);
}
.site-header.is-scrolled { background: rgba(17, 19, 17, .93); border-color: var(--line); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; width: max-content; font: 600 .76rem/1 var(--mono); letter-spacing: .08em; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; stroke: var(--amber); stroke-width: 1.5; fill: none; }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--muted); font-size: .9rem; text-decoration: none; transition: color var(--fast); }
.nav a:hover, .nav a:focus-visible { color: var(--paper); }
.button--header { justify-self: end; }

.button {
  min-height: 52px;
  padding: .85rem 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--amber);
  color: var(--ink);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(255, 176, 0, .2);
  font: 700 .92rem/1 var(--display);
  text-decoration: none;
  transition: transform var(--fast) var(--ease), background-color var(--fast), box-shadow var(--fast);
}
.button:hover { transform: translate(-2px, -2px); background: var(--amber-soft); box-shadow: 7px 7px 0 rgba(255, 176, 0, .2); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(255, 176, 0, .18); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.button--small { min-height: 44px; padding: .65rem 1rem; box-shadow: none; font-size: .8rem; }

.section-grid, .section, .signal-bar, footer { width: min(100%, calc(var(--container) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.hero {
  min-height: min(920px, 100svh);
  padding-top: 7rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  position: relative;
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { inset: 72px auto 0 calc(var(--gutter) + 18px); width: 1px; background: var(--line); }
.hero::after { left: calc(var(--gutter) + 10px); top: 34%; width: 17px; height: 17px; border: 1px solid var(--amber); border-radius: 50%; background: var(--bg); }
.hero__copy { position: relative; padding-left: 2.7rem; }
.kicker, .mono-label { font: 600 .69rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: var(--amber); display: flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; }
.status-dot { width: 8px; height: 8px; display: inline-block; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 176, 0, .11); }
.status-dot--green { background: var(--green); box-shadow: none; }
.hero__lead { max-width: 650px; color: #c3c4bc; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; margin-bottom: 2rem; }
.hero__actions { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 2rem; }
.hero__actions p { margin: 0; color: var(--muted); font: 500 .72rem/1.55 var(--mono); text-transform: uppercase; }
.pilot-note { max-width: 620px; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.pilot-note strong { color: var(--paper); }

.hero__visual { position: relative; min-width: 0; max-width: 100%; }
.scope-label { display: flex; justify-content: space-between; margin-bottom: .6rem; color: var(--muted); font: 500 .6rem/1 var(--mono); letter-spacing: .1em; }
.control-panel { position: relative; min-width: 0; max-width: 100%; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.control-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .15; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.08) 5px); }
.control-panel__head { min-height: 88px; padding: 1.2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.control-panel__head h2 { margin: .25rem 0 0; font-size: 1.35rem; letter-spacing: -.02em; }
.mono-label { color: var(--muted); margin: 0; }
.signal { padding: .45rem .6rem; border: 1px solid currentColor; font: 600 .64rem/1 var(--mono); letter-spacing: .06em; }
.signal--ready { color: var(--green); background: rgba(112, 214, 160, .06); }
.flow-source { padding: 1rem 1.2rem; display: grid; grid-template-columns: 36px 1fr auto; gap: .8rem; align-items: center; border-bottom: 1px solid var(--line); }
.source-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--amber); color: var(--amber); font: 600 .9rem var(--mono); }
.flow-source strong, .flow-source small { display: block; }
.flow-source strong { font: 600 .9rem var(--display); }
.flow-source small, .flow-source time { color: var(--muted); font: .67rem/1.4 var(--mono); }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; }
.data-grid > div { min-height: 78px; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.data-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.data-grid span, .data-grid strong { display: block; }
.data-grid span { color: var(--muted); font: .65rem/1 var(--mono); text-transform: uppercase; }
.data-grid strong { margin-top: .5rem; font: 600 .88rem/1.2 var(--display); }
.data-grid .warning { color: var(--amber); }
.trace { padding: 1.3rem 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.trace__item { position: relative; display: grid; grid-template-columns: 14px 1fr; column-gap: .45rem; }
.trace__item::before { content: ""; position: absolute; left: 7px; right: -7px; top: 7px; height: 1px; background: var(--line-strong); }
.trace__item:last-child::before { right: calc(100% - 7px); }
.trace__item i { width: 14px; height: 14px; z-index: 1; border: 1px solid var(--muted); border-radius: 50%; background: var(--surface); }
.trace__item span, .trace__item small { grid-column: 2; }
.trace__item span { font: 600 .65rem/1 var(--mono); text-transform: uppercase; }
.trace__item small { margin-top: .3rem; color: var(--muted); font-size: .68rem; }
.trace__item.is-done i { background: var(--green); border-color: var(--green); }
.trace__item.is-active i { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 0, .12); }
.control-panel__foot { min-height: 52px; padding: .8rem 1.2rem; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 500 .62rem/1 var(--mono); }
.control-panel__foot span { display: flex; align-items: center; gap: .5rem; }
.visual-caption { margin: .8rem 0 0; color: var(--muted); font: .66rem/1.4 var(--mono); text-align: right; }

.signal-bar { min-height: 68px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-block: 1px solid var(--line); }
.signal-bar span { padding: .5rem 1rem; color: var(--muted); font: 500 .66rem/1.4 var(--mono); text-align: center; border-right: 1px solid var(--line); }
.signal-bar span:last-child { border: 0; }
.section { padding-top: var(--section); padding-bottom: var(--section); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-heading > p:last-child, .outcome-copy > p, .process-intro > p:last-child, .fit-copy > p, .person-copy > p { color: var(--muted); max-width: 620px; }
.problem-map { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.problem-map article { padding: 2rem 2rem 1rem 0; border-right: 1px solid var(--line); }
.problem-map article:not(:first-child) { padding-left: 2rem; }
.problem-map article:last-child { border-right: 0; }
.problem-map span, .deliverables article > span { color: var(--amber); font: 600 .65rem var(--mono); }
.problem-map h3 { margin: 3rem 0 .8rem; font-size: 1.45rem; }
.problem-map p, .deliverables p { color: var(--muted); font-size: .95rem; }

.section--outcome { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.before-after { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; border: 1px solid var(--line-strong); background: var(--surface); }
.before-after__column { padding: 1.7rem; }
.before-after__column--before { opacity: .7; }
.before-after__column h3 { font-size: 1.35rem; margin: 2.5rem 0 1.4rem; }
.before-after ul, .boundary ul, .fit-console ul { list-style: none; margin: 0; padding: 0; }
.before-after li { padding: .7rem 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .86rem; }
.before-after__column--after { border-left: 1px solid var(--line); background: rgba(112, 214, 160, .035); }
.before-after__column--after .mono-label { color: var(--green); }
.transform-arrow { display: grid; place-items: center; color: var(--amber); border-left: 1px solid var(--line); font-family: var(--mono); }
.text-link { color: var(--amber); font: 600 .82rem var(--mono); text-decoration: none; }
.text-link span { margin-left: .5rem; }

.deliverables { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); }
.deliverables article { min-height: 260px; padding: 1.5rem; border-right: 1px solid var(--line); }
.deliverables article:last-child { border: 0; }
.deliverables h3 { margin: 5rem 0 .9rem; font-size: 1.3rem; }
.section--process { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); }
.process { margin: 0; padding: 0; list-style: none; counter-reset: phase; border-top: 1px solid var(--line); }
.process li { padding: 1.7rem 0; display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.process li > span { color: var(--amber); font: 600 .64rem/1.4 var(--mono); }
.process h3 { margin: 0 0 .5rem; font-size: 1.4rem; }
.process p { margin: 0; color: var(--muted); font-size: .95rem; }

.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); }
.boundary { padding: 2rem; }
.boundary--yes { border-right: 1px solid var(--line); }
.boundary--yes .mono-label { color: var(--green); }
.boundary--no .mono-label { color: var(--red); }
.boundary li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: #c5c6bd; }
.boundary li:last-child { border: 0; }
.section--fit, .section--person, .section--cta { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.fit-console, .call-check { padding: 2rem; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 rgba(255, 176, 0, .16); }
.fit-console .mono-label, .call-check .mono-label { color: #65685f; }
.fit-console ul { margin-top: 2rem; }
.fit-console li { padding: 1rem 0; display: grid; grid-template-columns: 30px 1fr; border-bottom: 1px solid rgba(23,25,21,.16); font-weight: 600; }
.fit-console li span { color: #187a4d; font-family: var(--mono); }
.fit-console__note { margin: 1.4rem 0 0; color: #5e6159; font-size: .85rem; }

.portrait { width: min(100%, 430px); aspect-ratio: 1; margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(255, 176, 0, .52); background: var(--surface); box-shadow: 10px 10px 0 rgba(255, 176, 0, .09); }
.portrait::before, .portrait::after { content: ""; position: absolute; z-index: 2; pointer-events: none; }
.portrait::before { inset: 12px; border: 1px solid rgba(255, 176, 0, .32); }
.portrait::after { width: 42px; height: 1px; top: 24px; right: -20px; background: var(--amber); }
.portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 66% 45%; transform: scale(1.16) translateX(-6%); filter: saturate(.78) contrast(1.06); }
.portrait figcaption { position: absolute; z-index: 3; inset: auto 0 0; min-height: 42px; padding: .7rem .8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--amber); border-top: 1px solid rgba(255, 176, 0, .35); background: rgba(17, 19, 17, .9); backdrop-filter: blur(6px); font: 600 .58rem/1.3 var(--mono); letter-spacing: .05em; }
.person-name { color: var(--paper) !important; font-weight: 600; }
.profile-link { width: max-content; margin-top: 2rem; padding-bottom: .35rem; display: inline-flex; gap: .65rem; color: var(--amber); border-bottom: 1px solid rgba(255, 176, 0, .45); font: 600 .72rem/1.5 var(--mono); text-decoration: none; transition: color var(--fast), border-color var(--fast); }
.profile-link:hover { color: var(--amber-soft); border-color: var(--amber-soft); }

.section--faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 76px; padding: 1.4rem 3rem 1.4rem 0; cursor: pointer; list-style: none; position: relative; font: 600 1.05rem/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1.1rem; color: var(--amber); font: 400 1.7rem var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 720px; padding: 0 2rem 1.5rem 0; color: var(--muted); }

.section--cta { background: var(--paper); color: var(--ink); border-bottom: 0; position: relative; }
.section--cta::before { content: "RFQ / READY"; position: absolute; right: var(--gutter); top: 1.5rem; color: rgba(23,25,21,.12); font: 700 clamp(2rem, 6vw, 6rem)/1 var(--mono); }
.section--cta .kicker { color: #896000; }
.section--cta .cta-copy > p:not(.kicker) { max-width: 680px; color: #55594f; }
.section--cta .button { margin-top: 1rem; }
.section--cta small { display: block; max-width: 550px; margin-top: 1.3rem; color: #676a62; }
.call-check { background: var(--ink); color: var(--paper); box-shadow: 10px 10px 0 rgba(23,25,21,.18); }
.call-check ol { list-style: none; padding: 0; margin: 2rem 0 0; }
.call-check li { padding: .9rem 0; border-top: 1px solid var(--line); }
.call-check li span { display: inline-block; width: 48px; color: var(--amber); font: 600 .7rem var(--mono); }

@media (min-width: 981px) {
  .section--cta {
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .75rem; }
footer p { margin: 0; text-align: center; }
footer > a:last-child { text-decoration: none; }
.mobile-cta { display: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 9rem; padding-bottom: 5rem; }
  .hero__copy { max-width: 800px; }
  .hero__visual { width: min(100%, 640px); margin-left: auto; }
  .section--outcome, .section--process, .section--faq { grid-template-columns: 1fr; }
  .outcome-copy { order: -1; }
  .deliverables { grid-template-columns: 1fr 1fr; }
  .deliverables article:nth-child(2) { border-right: 0; }
  .deliverables article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  :root { --gutter: 1.15rem; --section: 5rem; }
  body { font-size: 17px; padding-bottom: 76px; }
  h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .desktop-break { display: none; }
  h2 { font-size: clamp(2.25rem, 10vw, 3.3rem); }
  .site-header { height: 64px; }
  .button--header { display: none; }
  .hero { padding-top: 7.2rem; gap: 3rem; }
  .hero::before, .hero::after { display: none; }
  .hero__copy { padding-left: 0; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__actions p { text-align: center; }
  .control-panel__head { align-items: flex-start; }
  .control-panel__head h2 { font-size: 1.15rem; }
  .data-grid { grid-template-columns: 1fr; }
  .data-grid > div:nth-child(odd) { border-right: 0; }
  .trace { min-width: 0; max-width: 100%; grid-template-columns: repeat(3, minmax(130px, 1fr)); overflow-x: auto; }
  .trace__item { min-width: 130px; }
  .control-panel__foot { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .signal-bar { grid-template-columns: 1fr; padding-block: .8rem; }
  .signal-bar span { border: 0; text-align: left; padding: .5rem 0; }
  .problem-map { grid-template-columns: 1fr; }
  .problem-map article, .problem-map article:not(:first-child) { padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .problem-map h3 { margin: 1.7rem 0 .6rem; }
  .before-after { grid-template-columns: 1fr; }
  .transform-arrow { min-height: 48px; border: 0; border-block: 1px solid var(--line); transform: rotate(90deg); }
  .before-after__column--after { border-left: 0; }
  .deliverables, .boundary-grid, .section--fit, .section--person, .section--cta { grid-template-columns: 1fr; }
  .deliverables article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .deliverables h3 { margin-top: 2.5rem; }
  .boundary--yes { border: 0; border-bottom: 1px solid var(--line); }
  .process li { grid-template-columns: 1fr; gap: .8rem; }
  .portrait { width: 100%; }
  .section--cta::before { display: none; }
  footer { padding-block: 2rem; flex-direction: column; text-align: center; }
  .mobile-cta { position: fixed; z-index: 60; inset: auto 0 0; display: block; padding: .7rem 1rem; background: rgba(11,13,11,.94); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 300ms var(--ease); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .button { width: 100%; min-height: 52px; }
}

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