:root {
  color-scheme: dark;
  --black: #050606;
  --bench: #090b0b;
  --raised: #0e1111;
  --ink: #e8e5db;
  --muted: #adafab;
  --line: #3b3e3c;
  --line-strong: #595c59;
  --clay: #d98663;
  --teal: #65aaa1;
  --ochre: #d2964b;
  --stock: #e8e5dc;
  --stock-muted: #d5d0c4;
  --dark-ink: #1f2628;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--black); font-family: var(--body); font-size: 16px; line-height: 1.55; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--dark-ink); background: var(--stock); transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; width: min(1480px, calc(100% - 56px)); min-height: 78px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: baseline; gap: 13px; width: max-content; min-height: 44px; font-weight: 820; letter-spacing: -0.025em; text-decoration: none; text-transform: uppercase; }
.wordmark small { color: var(--teal); font-family: var(--mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.78rem; font-weight: 680; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover { color: var(--ink); }
.header-status { justify-self: end; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--muted); font-family: var(--mono); font-size: 0.74rem; text-decoration: none; text-transform: uppercase; }
.header-status span { width: 9px; height: 9px; background: var(--ochre); }

.hero { width: min(1480px, calc(100% - 56px)); min-height: calc(100vh - 78px); margin: 0 auto; padding: clamp(90px, 11vw, 170px) 0 80px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.7fr); gap: 26px 9vw; align-items: end; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font-family: var(--mono); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-copy .eyebrow { grid-column: 1 / -1; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.045em; }
h1 { max-width: 980px; margin: 0; font-size: clamp(4rem, 7vw, 7.2rem); font-weight: 780; line-height: 0.9; }
h2 { margin: 0; font-size: clamp(3rem, 5.4vw, 5.8rem); font-weight: 760; line-height: 0.94; }
.lede { max-width: 40rem; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.3rem); }
.hero-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 18px; border: 1px solid transparent; border-radius: 5px; font-weight: 760; text-decoration: none; }
.button-primary { color: var(--dark-ink); background: var(--stock); }
.button-primary:hover { background: white; }
.text-link { min-height: 44px; padding: 10px 0; color: var(--muted); font-size: 0.82rem; font-weight: 680; text-underline-offset: 5px; }

.hero-specimen { margin-top: clamp(70px, 9vw, 130px); border: 1px solid var(--line-strong); background: var(--bench); }
.source-slip { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; padding: 18px 22px; color: var(--dark-ink); background: var(--stock-muted); }
.source-slip span { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }
.source-slip strong { text-transform: uppercase; }
.source-slip code, .study-strip code, .probe-strip code { color: inherit; font-family: var(--mono); font-size: 0.7rem; }
.study-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.study-strip article { position: relative; min-width: 0; padding: 20px; border-left: 1px solid var(--line); }
.study-strip article:first-child { border-left: 0; }
.study-strip article > span { display: block; margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; }
.frame { position: relative; height: clamp(240px, 30vw, 430px); overflow: hidden; background: #010202; }
.frame i, .frame b { position: absolute; display: block; }
.frame i { top: 12%; right: 23%; width: 38%; aspect-ratio: 1; background: #dcb06f; border-radius: 50%; }
.frame b { right: 14%; bottom: 11%; width: 74%; height: 34%; background: #203b42; clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%); }
.frame.ink { background: #111515; }
.frame.ink i { border: 8px solid #1f2628; background: #e6c689; }
.frame.ink b { border: 7px solid #1f2628; background: #77384a; }
.frame.clean i { background: #dca66f; }
.frame.clean b { background: #243940; }
.study-strip article > strong { display: block; margin: 17px 0 5px; text-transform: uppercase; }
.study-strip article > code { color: var(--muted); }
.probe-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; border-top: 1px solid var(--line-strong); }
.probe-strip > span { color: var(--clay); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }
.probe-strip > div { position: relative; height: 1px; background: var(--line-strong); }
.probe-strip > div i { position: absolute; top: 50%; left: 48%; width: 15px; height: 15px; background: var(--clay); transform: translate(-50%, -50%); }

.bench { padding: 150px max(28px, calc((100vw - 1320px) / 2)); color: var(--dark-ink); background: var(--stock); }
.section-heading { display: grid; grid-template-columns: 1fr 0.56fr; gap: 70px; align-items: end; }
.section-heading .eyebrow { color: #607771; }
.section-heading > p { max-width: 40rem; margin: 0 0 5px; color: #596062; font-size: 1.05rem; }
.product-window { margin: 88px 0 0; border: 1px solid #8b887f; background: var(--black); box-shadow: 16px 18px 0 #c7c1b4; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; color: var(--muted); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.68rem; }
.window-bar i { width: 10px; height: 10px; background: var(--line-strong); }
.window-bar i:first-child { background: var(--clay); }
.window-bar i:nth-child(2) { background: var(--ochre); }
.window-bar i:nth-child(3) { background: var(--teal); }
.window-bar span { margin-left: 12px; }
.window-bar b { margin-left: auto; color: var(--teal); font-weight: 600; }
.product-window img { width: 100%; height: auto; }
.product-window figcaption { padding: 12px 16px; color: var(--muted); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; }

.workflow { padding: 150px max(28px, calc((100vw - 1320px) / 2)); }
.workflow-title { display: grid; grid-template-columns: 0.35fr 0.65fr; gap: 40px; }
.workflow-title h2 { max-width: 980px; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 100px 0 0; padding: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); list-style: none; }
.workflow-steps li { min-height: 330px; padding: 26px 26px 34px; border-left: 1px solid var(--line); }
.workflow-steps li:first-child { border-left: 0; padding-left: 0; }
.workflow-steps li:last-child { padding-right: 0; }
.workflow-steps span { color: var(--clay); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; }
.workflow-steps h3 { margin: 84px 0 14px; font-size: 1.65rem; line-height: 1.05; }
.workflow-steps p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.system { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr); min-height: 760px; background: var(--raised); }
.catalog-figure { align-self: center; padding: 70px 0 70px max(28px, calc((100vw - 1480px) / 2)); overflow: hidden; }
.catalog-figure img { width: 122%; max-width: none; height: auto; border: 1px solid var(--line-strong); }
.system-copy { display: flex; flex-direction: column; justify-content: center; padding: 90px max(28px, calc((100vw - 1480px) / 2)) 90px 7vw; }
.system-copy > p:not(.eyebrow) { max-width: 39rem; margin: 30px 0 0; color: var(--muted); }
.system-copy dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 64px 0 0; border-top: 1px solid var(--line-strong); }
.system-copy dl div { padding: 20px 15px 0 0; }
.system-copy dt { color: var(--teal); font-family: var(--mono); font-size: 1.3rem; }
.system-copy dd { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; }

.release { padding: 150px max(28px, calc((100vw - 1320px) / 2)); color: var(--dark-ink); background: var(--stock); }
.release-heading { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: 20px 55px; }
.release-heading .eyebrow { grid-column: 1 / -1; color: #607771; }
.release-heading > p:not(.eyebrow) { max-width: 39rem; margin: 8px 0 0; color: #596062; }
.release-button { justify-self: start; align-self: start; min-height: 48px; margin-top: 16px; padding: 12px 16px; color: #596062; border: 1px solid #aaa69b; border-radius: 5px; background: #dad6cb; font-weight: 720; cursor: not-allowed; }
.release-ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin: 92px 0 0; border-top: 1px solid #8b887f; border-bottom: 1px solid #8b887f; }
.release-ledger > div { min-height: 245px; padding: 28px 24px 34px; border-left: 1px solid #aaa69b; }
.release-ledger > div:first-child { padding-left: 0; border-left: 0; }
.release-ledger > div:last-child { padding-right: 0; }
.release-ledger dt { color: #607771; font-family: var(--mono); font-size: 0.68rem; font-weight: 650; text-transform: uppercase; }
.release-ledger dd { margin: 48px 0 10px; font-size: 1.3rem; font-weight: 760; }
.release-ledger .detail { margin: 0; color: #596062; font-size: 0.82rem; font-weight: 400; }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; min-height: 92px; padding: 20px max(28px, calc((100vw - 1480px) / 2)); color: var(--muted); border-top: 1px solid var(--line); font-size: 0.72rem; }
footer p { margin: 0; }
footer p a { text-underline-offset: 4px; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-copy, .section-heading, .system, .release-heading { grid-template-columns: 1fr; }
  .hero-copy .eyebrow, .hero-actions, .release-heading .eyebrow { grid-column: 1; }
  .hero-actions { margin-top: 10px; }
  .workflow-title { grid-template-columns: 1fr; }
  .workflow-steps, .release-ledger { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps li:nth-child(3), .release-ledger > div:nth-child(3) { border-left: 0; }
  .workflow-steps li:nth-child(-n + 2), .release-ledger > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-strong); }
  .workflow-steps li:first-child, .workflow-steps li:nth-child(3), .release-ledger > div:first-child, .release-ledger > div:nth-child(3) { padding-left: 0; }
  .system { min-height: 0; }
  .catalog-figure { padding: 70px 28px 0; }
  .catalog-figure img { width: 100%; }
  .system-copy { padding: 72px 28px 90px; }
  footer { grid-template-columns: 1fr auto; }
  footer p:nth-child(2) { grid-row: 2; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .site-header, .hero { width: calc(100% - 32px); }
  .site-header { min-height: 68px; }
  .wordmark { display: grid; gap: 0; line-height: 1.1; }
  .header-status { font-size: 0.64rem; }
  .hero { min-height: auto; padding: 72px 0 52px; }
  h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  h2 { font-size: clamp(2.8rem, 14vw, 4.1rem); }
  .hero-specimen { overflow-x: auto; }
  .source-slip, .probe-strip { min-width: 720px; }
  .study-strip { width: 720px; }
  .frame { height: 300px; }
  .bench, .workflow, .release { padding: 96px 20px; }
  .product-window { margin-top: 54px; box-shadow: 8px 9px 0 #c7c1b4; }
  .window-bar span { display: none; }
  .workflow-steps, .release-ledger { grid-template-columns: 1fr; margin-top: 62px; }
  .workflow-steps li,
  .workflow-steps li:first-child,
  .workflow-steps li:nth-child(3),
  .workflow-steps li:last-child,
  .release-ledger > div,
  .release-ledger > div:first-child,
  .release-ledger > div:nth-child(3),
  .release-ledger > div:last-child { min-height: auto; padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .workflow-steps li:last-child, .release-ledger > div:last-child { border-bottom: 0; }
  .workflow-steps h3 { margin-top: 38px; }
  .catalog-figure { padding: 64px 20px 0; }
  .system-copy { padding: 62px 20px 88px; }
  .system-copy dl { grid-template-columns: 1fr; gap: 20px; }
  .release-heading { gap: 24px; }
  .release-button { margin-top: 0; }
  .release-ledger dd { margin-top: 18px; }
  footer { grid-template-columns: 1fr; padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}
