:root {
  color-scheme: dark;
  --ink: #0c1720;
  --panel: #122431;
  --line: #2a3d4b;
  --white: #edf3f5;
  --muted: #aebfc7;
  --accent: #f2bc68;
  --paper: #f3f3ec;
  --paper-ink: #172632;
  --paper-muted: #4c5d66;
  --paper-line: #cbd2cf;
  --sans: Inter, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .23em; }
button, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #308c93; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
code { font: .92em var(--mono); }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 5; padding: .5rem 1rem; background: var(--accent); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.7rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font: 700 .91rem/1.22 var(--mono); letter-spacing: .1em; }
.brand-mark { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border: 1px solid #697a81; font-size: 1.45rem; color: var(--accent); letter-spacing: 0; }
.brand-sub { display: block; color: var(--muted); font-size: .63rem; margin-top: .2rem; letter-spacing: .09em; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.7rem; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover, .footer a:hover { color: var(--accent); }
.nav-action { color: var(--accent); }
.hero { padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(3.5rem, 7vw, 6.4rem); }
.hero-grid { display: grid; grid-template-columns: 1.13fr .87fr; gap: clamp(1.75rem, 5vw, 4.3rem); align-items: center; }
.kicker, .index-label { font: 600 .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--accent); }
.status-dot { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: currentColor; margin-right: .4rem; vertical-align: .08em; }
h1 { font-size: clamp(2.65rem, 6.1vw, 5.35rem); font-weight: 650; letter-spacing: -.062em; margin: 1.2rem 0 1.4rem; }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2rem, 4.25vw, 3.4rem); font-weight: 650; letter-spacing: -.047em; }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.lede { max-width: 37rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 2.9rem; padding: .64rem 1rem; border: 1px solid transparent; border-radius: .3rem; font-weight: 650; font-size: .93rem; line-height: 1.25; text-decoration: none; }
.primary { background: var(--accent); color: #1d2022; }
.primary:hover { background: #ffd398; }
.secondary { color: inherit; border-color: #57707c; background: transparent; }
.secondary:hover { border-color: var(--accent); }
.hero-pricing { display: flex; align-items: baseline; gap: .45rem .9rem; flex-wrap: wrap; padding-top: 1.4rem; }
.hero-pricing strong { font-size: 1.24rem; }
.hero-pricing span { color: var(--muted); font-size: .86rem; }

.board-figure { background: #10202a; border: 1px solid #38515c; border-radius: .5rem; overflow: hidden; box-shadow: 0 16px 60px #050d1570; }
.board-figure figcaption, .board-summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem; font: 500 .68rem/1.4 var(--mono); color: var(--muted); }
.board-figure figcaption { border-bottom: 1px solid #38515c; }
.board-grid { position: relative; aspect-ratio: 1.28; background-image: linear-gradient(#24424a66 1px, transparent 1px), linear-gradient(90deg, #24424a66 1px, transparent 1px); background-size: 1.15rem 1.15rem; }
.schematic-box { position: absolute; z-index: 1; width: 34%; min-height: 16%; display: grid; align-content: center; gap: .2rem; padding: .48rem .65rem; border: 1px solid #52737c; background: #142b35; font: 600 clamp(.62rem, 1.4vw, .83rem)/1.2 var(--mono); }
.schematic-box small { color: #a7c7cd; font: 500 .72em/1.2 var(--mono); letter-spacing: .045em; }
.clock { top: 8%; left: 34%; }
.rf { top: 38%; left: 4%; width: 28%; }
.fpga { top: 34%; left: 40%; width: 32%; min-height: 34%; border-color: #a7c7cd; background: #1a3442; }
.dram { top: 77%; left: 40%; width: 31%; }
.sfp { top: 55%; left: 78%; width: 19%; padding-inline: .3rem; }
.trace { position: absolute; border-style: solid; border-color: #678e98; border-width: 0; }
.clock-trace { top: 24%; left: 54%; height: 14%; border-left: 2px dashed var(--accent); }
.rf-trace { top: 47%; left: 32%; width: 10%; height: 1.4%; border-block: 1px dashed var(--accent); }
.ddr-trace { top: 66%; left: 54%; height: 15%; border-inline: 1px solid #678e98; width: 1.6%; }
.sfp-trace { top: 62%; left: 71%; width: 8%; height: 1.4%; border-block: 1px solid #678e98; }
.board-note { position: absolute; z-index: 2; padding: .1rem .28rem; border: 1px solid #8c6c46; background: #242924; color: var(--accent); font: 600 clamp(.54rem, 1.2vw, .72rem)/1.3 var(--mono); white-space: nowrap; }
.note-clock { top: 25%; left: 58%; }
.note-rf { top: 55%; left: 12%; }
.board-summary { border-top: 1px solid #38515c; text-align: center; }
.board-summary b { color: var(--accent); }

.section { padding: clamp(3.3rem, 7vw, 6rem) 0; }
.section.slim { padding-block: 2.8rem; border-top: 1px solid var(--line); }
.paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.paper .kicker, .paper .index-label { color: #795118; }
.section-heading { max-width: 46rem; }
.section-heading h2, .hil h2 { margin: .7rem 0 .9rem; }
.section-heading > p:last-child, .case p, .hil > p { color: var(--muted); }
.paper .section-heading > p:last-child { color: var(--paper-muted); }
.scope-grid, .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.1rem; }
.scope-grid article { border-top: 2px solid #849896; padding: 1.1rem .5rem .3rem 0; }
.scope-grid h3, .case h3 { margin: .55rem 0 .65rem; }
.scope-grid p, .scope-note { color: var(--paper-muted); }
.scope-note { padding-top: 1rem; margin-top: 1.4rem; border-top: 1px solid var(--paper-line); font-size: .89rem; }
.case { padding: clamp(1rem, 2.3vw, 1.65rem); border: 1px solid var(--line); border-radius: .35rem; background: var(--panel); }
.case.featured { border-top: 2px solid var(--accent); }
.case .index-label, .case > a { color: var(--accent); }
.case > a { display: inline-block; margin-top: 1.1rem; font-weight: 650; }
.case-meta { margin-top: 1.1rem; font: .76rem/1.4 var(--mono); }
.process-grid, .start-grid, .hil { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 6vw, 5.2rem); }
.steps { counter-reset: steps; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--paper-line); }
.steps li::before { content: "0" counter(steps); font: 650 .83rem/1.6 var(--mono); color: #795118; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p, .brief .small { color: var(--paper-muted); }
.hil { align-items: center; }
.hil h2 { font-size: clamp(1.65rem, 3.3vw, 2.5rem); margin-bottom: 0; }
.brief { border: 1px solid var(--paper-line); padding: 1.15rem; background: #fafaf6; }
.brief label { display: block; margin-bottom: .55rem; font-weight: 650; }
.brief textarea { width: 100%; padding: .75rem; resize: vertical; color: var(--paper-ink); background: white; border: 1px solid #9aa9a7; font: .85rem/1.5 var(--mono); }
.brief-actions { margin-top: .65rem; }
.brief .small { font-size: .83rem; margin-top: .5rem; }
.small:empty { display: none; }
.footer { color: var(--muted); font-size: .82rem; }
.footer .header-row { min-height: 4rem; }

.report-body { color-scheme: light; background: var(--paper); color: var(--paper-ink); }
.report-body .masthead, .report-body .footer { background: var(--ink); color: var(--white); color-scheme: dark; }
.report { max-width: 68rem; padding-block: 3.4rem; }
.report h1 { max-width: 56rem; font-size: clamp(2.2rem, 5.8vw, 4.45rem); }
.report h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); margin-block: 1.5rem .8rem; }
.report h3 { font-size: 1.13rem; margin-bottom: .5rem; }
.report .kicker { color: #795118; }
.report-intro { max-width: 52rem; color: var(--paper-muted); }
.report-page + .report-page { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--paper-line); }
.report-toolbar { margin-bottom: 2.35rem; }
.release-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem 1.2rem; padding: .75rem 1rem; background: #f1dfc4; border-left: 3px solid #875619; margin: 1rem 0; }
.release-status strong { color: #573200; }
.finding-scroll { overflow-x: auto; margin: 1.35rem 0; }
.findings { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; background: #fafaf6; }
.findings th, .findings td { padding: .68rem .7rem; border: 1px solid var(--paper-line); vertical-align: top; }
.findings th { background: #e1e8e4; }
.finding-id { white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.detail { border: 1px solid var(--paper-line); padding: .9rem; background: #fafaf6; }
.detail p + p, .report-page > p + p { margin-top: .65rem; }
.report pre { overflow-x: auto; background: #142631; color: var(--white); padding: .9rem; border-radius: .25rem; }
.report ol { padding-left: 1.45rem; }
.report li + li { margin-top: .45rem; }
.report-ref { font-size: .86rem; overflow-wrap: anywhere; }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .board-figure { width: min(100%, 34rem); }
  .schematic-box { font-size: .85rem; }
  .board-note { font-size: .68rem; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case.featured { grid-column: 1 / -1; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-row { align-items: flex-start; flex-direction: column; justify-content: center; gap: .7rem; padding: .75rem 0; }
  nav { gap: .4rem 1rem; font-size: .82rem; }
  .hero { padding-top: 3.15rem; }
  .hero h1 { font-size: clamp(2.55rem, 10.9vw, 4.2rem); }
  .scope-grid, .case-grid, .process-grid, .start-grid, .hil, .detail-grid { grid-template-columns: 1fr; }
  .schematic-box { font-size: clamp(.53rem, 2.55vw, .81rem); padding-inline: .38rem; }
  .board-note { font-size: clamp(.52rem, 2.1vw, .67rem); }
  .board-figure figcaption, .board-summary { padding: .7rem; font-size: .59rem; }
  .report { padding-block: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@page { size: A4; margin: 15mm 16mm; }
@media print {
  :root { color-scheme: light; }
  body, .paper, .report-body { color: #111; background: white; }
  .masthead, .footer, .skip, .report-toolbar { display: none !important; }
  .report { width: 100%; max-width: none; margin: 0; padding: 0; font-size: 10pt; line-height: 1.38; }
  .report h1 { font-size: 24pt; margin: 5mm 0 4mm; }
  .report h2 { font-size: 15pt; margin: 0 0 4mm; }
  .report h3 { font-size: 11pt; }
  .report .kicker, .report .report-intro { color: #333; }
  .report-page + .report-page { break-before: page; margin: 0; padding: 0; border: 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 3mm; }
  .detail { padding: 3mm; }
  .detail, .release-status, tr, pre { break-inside: avoid; }
  .finding-scroll { overflow: visible; }
  .findings { font-size: 9pt; }
  .findings th, .findings td { padding: 2mm; }
  .report pre { white-space: pre-wrap; overflow-wrap: anywhere; color: black; background: white; border: 1px solid #aaa; }
}
