:root {
  color-scheme: dark;
  --background: #102125;
  --panel: #1b3236;
  --line: #395054;
  --text: #edf2eb;
  --muted: #b6c8c4;
  --signal: #e6d389;
  --mono: "JetBrains Mono", Consolas, monospace;
  font: 16px/1.5 Onest, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.wrap { width: min(100% - 80px, 1360px); margin-inline: auto; }
.topbar, .footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; }
.topbar nav { display: flex; gap: clamp(18px, 4vw, 56px); color: var(--muted); }
.topbar nav a:hover, .footer a:hover { color: var(--signal); }
.wordmark { display: inline-flex; align-items: center; font-weight: 750; letter-spacing: -.04em; font-size: 1.3rem; }
.wordmark span:last-child { color: var(--signal); }
.mark { width: 15px; height: 15px; margin-right: 10px; transform: skew(-18deg); border: 2px solid var(--signal); border-left-width: 6px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #10272a; border-block: 1px solid var(--line); }
.hero-media { position: absolute; z-index: -1; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero-media .internals { clip-path: inset(0 0 0 100%); transition: clip-path 650ms cubic-bezier(.22,.7,.25,1); }
.hero.is-open .internals { clip-path: inset(0 0 0 25%); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d1b1e 0%, #0d1b1ee8 27%, #10212520 65%, transparent 100%); }
.hero-layout { min-height: clamp(440px, 48vw, 690px); display: grid; align-items: end; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-block: 76px 40px; }
.hero-copy { align-self: center; }
h1, h2 { font-family: "Barlow Condensed", Onest, "Segoe UI", sans-serif; font-weight: 800; line-height: .96; letter-spacing: -.058em; }
h1 { font-size: clamp(3.2rem, 7.3vw, 8rem); margin-bottom: 24px; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.hero-copy p { font-size: clamp(1.02rem, 1.35vw, 1.25rem); color: var(--muted); max-width: 36ch; margin-bottom: 27px; }
.primary, .secondary, .inspect { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid transparent; min-height: 46px; padding: 10px 16px; font-weight: 650; }
.primary { background: var(--signal); color: #17241f; }
.primary:hover { background: #f3e5b0; }
.secondary, .inspect { color: var(--text); border-color: var(--line); background: var(--background); }
.secondary:hover, .inspect:hover { border-color: var(--signal); }
.inspection { text-align: right; }
.inspection p { display: table; margin: 6px 0 0 auto; padding: 4px 8px; background: #102125; color: var(--muted); font-size: .75rem; }
.inspect span:first-child { color: var(--signal); }

.selection, .catalog { padding-block: clamp(40px, 6vw, 88px); }
.selection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 30px 60px; border-bottom: 1px solid var(--line); }
.selection p { margin-top: 15px; max-width: 48ch; color: var(--muted); }
.select-form { background: var(--panel); padding: 18px; border: 1px solid var(--line); }
.select-form label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.select-form label span { color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.field-row { display: flex; gap: 10px; }
input, textarea { border: 1px solid var(--line); background: var(--background); color: var(--text); border-radius: 0; }
input { width: 100%; min-width: 0; padding: 10px; }
input::placeholder { color: var(--muted); }
.catalog { padding-top: 44px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.catalog-head p, .fineprint { color: var(--muted); margin-top: 10px; }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.model { display: flex; flex-direction: column; align-items: start; gap: 12px; min-height: 210px; padding: 20px; background: var(--panel); }
.model h3 { font-size: 1.35rem; line-height: 1.15; }
.specs { font-family: var(--mono); color: var(--muted); font-size: .85rem; }
.model .secondary { margin-top: auto; }
.empty { padding: 20px; background: var(--panel); }
.fineprint { max-width: 70ch; font-size: .875rem; }
.footer { border-top: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; }
dialog { max-width: min(calc(100% - 28px), 550px); width: 550px; background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 24px; }
dialog::backdrop { background: #020909bd; }
.request-head, .request-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.request-head h2 { font-size: 2rem; }
dialog p { color: var(--muted); margin-block: 12px; }
textarea { width: 100%; padding: 12px; resize: vertical; }
.request-actions { justify-content: flex-start; margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 62px; }
  .topbar nav { font-size: .9rem; }
  .hero-layout { min-height: 0; grid-template-columns: 1fr; gap: 0; padding-block: 0 24px; }
  .hero-media { position: relative; height: clamp(190px, 58vw, 360px); }
  .hero-media::after { background: linear-gradient(0deg, #10272a, transparent 40%); }
  .hero.is-open .internals { clip-path: inset(0); }
  .hero-copy { margin-top: -14px; }
  h1 { font-size: clamp(2.7rem, 9.2vw, 5rem); margin-bottom: 14px; }
  .hero-copy p { margin-bottom: 16px; }
  .inspection { grid-row: 1; text-align: left; padding-bottom: 24px; }
  .inspection p { margin-left: 0; }
  .selection { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .catalog-head { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media .internals { transition: none; }
}
