/* Avicam Supply — site styles (v2)
   Layout idea: a technical dossier. Navy and paper sections alternate; one amber accent;
   photographs do the talking and every figure carries its source. */
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Kantumruy Pro"; font-weight: 400; font-display: swap; src: url("../fonts/kantumruy-pro-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Kantumruy Pro"; font-weight: 500; font-display: swap; src: url("../fonts/kantumruy-pro-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Kantumruy Pro"; font-weight: 600; font-display: swap; src: url("../fonts/kantumruy-pro-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Kantumruy Pro"; font-weight: 400; font-display: swap; src: url("../fonts/kantumruy-pro-khmer-400-normal.woff2") format("woff2"); unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }
@font-face { font-family: "Kantumruy Pro"; font-weight: 600; font-display: swap; src: url("../fonts/kantumruy-pro-khmer-600-normal.woff2") format("woff2"); unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0a111e;
  --bg2: #0f1929;
  --panel: #142035;
  --fg: #eef1f5;
  --muted: #9ba8bc;
  --line: rgba(255, 255, 255, 0.11);
  --amber: #f0a81e;
  --amber-ink: #1a1405;
  --red: #e5484d;
  --ok: #46c2a8;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Kantumruy Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
.light { --bg: #f3f1ec; --bg2: #ffffff; --panel: #ffffff; --fg: #101a2c; --muted: #55617a; --line: rgba(16, 26, 44, 0.13); --amber: #b97700; color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 124px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16.5px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v { filter: saturate(0.62) contrast(1.04) brightness(0.97); }

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); flex: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.0; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-weight: 700; font-size: 1.28rem; line-height: 1.2; }
h4 { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.lede { font-size: clamp(1.03rem, 1.4vw, 1.17rem); color: var(--muted); max-width: 64ch; }
.prose { display: grid; gap: 1em; max-width: 68ch; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 84%, var(--bg)); }
.prose ul { display: grid; gap: 0.5em; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--amber); }
.prose h3 { margin-top: 0.7em; }
.src { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.src a { text-decoration-color: var(--amber); text-underline-offset: 3px; }
.accent { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; text-decoration: none; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #f0a81e; color: var(--amber-ink); }
.btn-primary:hover { background: #ffbb38; }
.btn-ghost { border-color: color-mix(in srgb, var(--fg) 34%, transparent); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.link { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--amber); padding-bottom: 2px; }
.link:hover { color: var(--amber); }

/* ---------- Shell ---------- */
.strip { background: #060b14; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; justify-content: space-between; padding-block: 7px; }
.strip b { color: var(--fg); font-weight: 500; }
.strip a { text-decoration: none; }
.strip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 17, 30, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; flex: none; text-decoration: none; }
.logo svg { height: 38px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 11px; text-decoration: none; font-family: var(--font-display); font-size: 14.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--amber); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); min-height: 42px; padding: 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.page { display: none; }
.page.on { display: block; animation: pagein 0.35s ease both; }
@keyframes pagein { from { opacity: 0.4; transform: translateY(8px); } }
section { position: relative; background: var(--bg); color: var(--fg); }
.sec { padding-block: clamp(56px, 7.5vw, 104px); }
.sec.alt { background: var(--bg2); }
.light.sec.alt { background: #e9e6df; }
.head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.head.row { grid-template-columns: 1fr auto; align-items: end; }

/* ---------- Heroes ---------- */
.hero { overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 60%; animation: drift 30s ease-out both; }
@keyframes drift { from { transform: scale(1.07); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 17, 30, 0.88) 0%, rgba(10, 17, 30, 0.5) 46%, rgba(10, 17, 30, 0) 72%), linear-gradient(180deg, rgba(10, 17, 30, 0.2) 0%, rgba(10, 17, 30, 0) 40%, rgba(10, 17, 30, 0.9) 100%); }
.hero .wrap { padding-block: clamp(64px, 10vw, 136px) clamp(36px, 5vw, 56px); display: grid; gap: 26px; }
.hero h1 { max-width: 14ch; }
.hero .lede { color: #d5dbe6; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(24px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.hero-meta a { padding: 16px 18px 4px 0; text-decoration: none; display: grid; gap: 4px; border-right: 1px solid rgba(255, 255, 255, 0.14); margin-right: 18px; }
.hero-meta a:last-child { border-right: 0; margin-right: 0; }
.hero-meta b { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.hero-meta span { font-size: 13.5px; color: #c1c9d6; line-height: 1.4; }
.hero-meta a:hover b { color: var(--amber); }
.phead { overflow: hidden; isolation: isolate; }
.phead .hero-bg img { object-position: 50% 45%; animation: none; }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 17, 30, 0.93) 0%, rgba(10, 17, 30, 0.72) 50%, rgba(10, 17, 30, 0.3) 100%); }
.phead .wrap { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.phead h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; }
.phead .lede { color: #d0d7e2; }
.crumb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #aab4c5; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: #fff; }
.subnav { background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 30; }
.subnav .wrap { display: flex; gap: 4px 22px; overflow-x: auto; padding-block: 0; }
.subnav a { flex: none; padding: 13px 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--fg); border-bottom-color: var(--amber); }

/* ---------- Grids & cards ---------- */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split.wide-l { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.split.wide-r { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.stack { display: grid; gap: 20px; align-content: start; }
.box { background: var(--panel); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 12px; align-content: start; }
.box p { color: var(--muted); font-size: 15px; }
.box .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.tile { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
a.tile:hover, button.tile:hover { border-color: var(--amber); transform: translateY(-3px); }
.tile figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); }
.tile figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover figure img { transform: scale(1.04); }
.tile .tb { padding: 18px 18px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.tile .tb p { font-size: 14.5px; color: var(--muted); }
.tile .more { margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; justify-content: space-between; color: var(--amber); }
.photo { position: relative; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo.tall img { aspect-ratio: 3 / 4; }
.photo.wide img { aspect-ratio: 16 / 9; }
.photo figcaption, .cap { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.ticks { display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: baseline; }
.ticks li::before { content: ""; width: 12px; height: 2px; background: var(--amber); transform: translateY(-4px); }

/* ---------- Figures (sourced numbers) ---------- */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.figs > div { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.figs b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figs span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.figs small { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Tables ---------- */
.tw { overflow-x: auto; position: relative; border: 1px solid var(--line); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.t th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); white-space: nowrap; }
.t td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t td:first-child { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.t .m { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code { display: inline-block; min-width: 34px; padding: 2px 7px; border: 1px solid var(--amber); color: var(--amber); font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-align: center; }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; gap: 0; counter-reset: st; border-top: 1px solid var(--line); }
.steps > li { counter-increment: st; display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps > li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--amber); }
.steps p { color: var(--muted); font-size: 15px; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: fl; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: var(--line); }
.flow li { counter-increment: fl; padding-right: 20px; display: grid; gap: 10px; align-content: start; position: relative; }
.flow li::before { content: counter(fl, decimal-leading-zero); width: 32px; height: 32px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--amber); color: var(--amber); font-family: var(--font-mono); font-size: 12px; }
.alt .flow li::before { background: var(--bg2); }
.flow p { font-size: 14.5px; color: var(--muted); }

/* ---------- Accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 36px 17px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--font-mono); font-size: 22px; color: var(--amber); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 72ch; }

/* ---------- Reel ---------- */
.reel { position: relative; aspect-ratio: 16 / 8; min-height: 340px; overflow: hidden; background: #000; }
.reel figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.reel figure.on { opacity: 1; }
.reel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.reel figure.on img { transform: scale(1); }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px clamp(18px, 3vw, 36px) 40px; background: linear-gradient(180deg, transparent, rgba(6, 11, 20, 0.9)); display: grid; gap: 6px; color: #fff; }
.reel figcaption b { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.reel figcaption span { color: #cfd6e2; font-size: 15px; max-width: 60ch; }
.reel-bars { position: absolute; left: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px); bottom: 18px; display: flex; gap: 6px; z-index: 2; }
.reel-bars button { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.reel-bars i { display: block; height: 2px; background: rgba(255, 255, 255, 0.28); position: relative; overflow: hidden; }
.reel-bars i::after { content: ""; position: absolute; inset: 0; background: #f0a81e; transform: scaleX(0); transform-origin: left; }
.reel-bars button.on i::after { animation: bar 6s linear forwards; }
.reel-bars button.done i::after { transform: scaleX(1); }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Video card ---------- */
.video { position: relative; display: block; text-decoration: none; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.72; transition: opacity 0.3s ease, transform 0.6s ease; }
.video:hover img { opacity: 0.9; transform: scale(1.03); }
.video .play { position: absolute; left: 50%; top: 44%; width: 74px; height: 74px; margin: -37px; border-radius: 50%; background: #f0a81e; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(240, 168, 30, 0.22); }
.video .play::after { content: ""; border-left: 20px solid #1a1405; border-block: 12px solid transparent; margin-left: 6px; }
.video .vcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(180deg, transparent, rgba(6, 11, 20, 0.94)); color: #fff; display: grid; gap: 4px; }
.video .vcap b { font-family: var(--font-display); font-size: 1.12rem; }
.video .vcap span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #c6cedb; }

/* ---------- Engine anatomy ---------- */
.anat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.anat svg { width: 100%; height: auto; background: var(--panel); border: 1px solid var(--line); }
.anat .mod { cursor: pointer; fill: color-mix(in srgb, var(--fg) 14%, var(--panel)); stroke: var(--line); stroke-width: 1; transition: fill 0.2s ease; }
.anat .mod:hover, .anat .mod.on { fill: #f0a81e; }
.anat .lbl { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.08em; pointer-events: none; }
.anat .axis { stroke: var(--muted); stroke-dasharray: 3 5; stroke-width: 1; }
.anat .flowline { stroke: #f0a81e; stroke-width: 1.5; fill: none; stroke-dasharray: 6 10; animation: dash 2.2s linear infinite; opacity: 0.7; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.anat-info { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--amber); padding: 22px; display: grid; gap: 12px; align-content: start; }
.anat-info dl { display: grid; gap: 10px; }
.anat-info dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.anat-info dd { font-size: 14.5px; }

/* ---------- Route map ---------- */
.map { background: var(--panel); border: 1px solid var(--line); }
.map svg { width: 100%; height: auto; display: block; }
.map .grid-dot { fill: color-mix(in srgb, var(--fg) 16%, transparent); }
.map .arc { fill: none; stroke: #f0a81e; stroke-width: 1.4; stroke-dasharray: 5 7; animation: dash 3s linear infinite; opacity: 0.85; }
.map .arc.on { stroke: var(--ok); }
.map .pt { fill: var(--fg); }
.map .hub { fill: #f0a81e; }
.map .ring { fill: none; stroke: #f0a81e; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.map text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.06em; }
.map text.h { fill: var(--fg); font-weight: 700; font-size: 12.5px; }

/* ---------- Inventory ---------- */
.inv-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 5px 13px; background: transparent; border: 1px solid var(--line); cursor: pointer; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.inv-search { flex: 0 1 300px; min-height: 40px; padding: 0 13px; background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 11px 15px; margin-bottom: 22px; border: 1px dashed color-mix(in srgb, var(--amber) 60%, transparent); background: color-mix(in srgb, var(--amber) 7%, transparent); font-size: 14px; }
.notice b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); white-space: nowrap; padding-top: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); cursor: pointer; text-align: left; padding: 0; transition: transform 0.2s ease, border-color 0.2s ease; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--amber); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.tag, .status { position: absolute; z-index: 1; top: 10px; padding: 4px 9px; background: rgba(8, 14, 25, 0.82); color: #eef1f5; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.tag { left: 10px; }
.status { right: 10px; display: inline-flex; align-items: center; gap: 6px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status[data-s="Off-market"] i { background: #f0a81e; }
.status[data-s="In transit"] i { background: #7aa7ff; }
.card-body { display: grid; gap: 12px; padding: 16px 16px 18px; flex: 1; align-content: start; }
.ref { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--amber); }
.card h3 { font-size: 1.18rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.specs div { display: grid; gap: 1px; min-width: 0; }
.specs dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.specs dd { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.card-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.card-foot .go { color: var(--amber); }
.empty { padding: 44px 20px; text-align: center; border: 1px dashed var(--line); color: var(--muted); }
.inv-more { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; color: var(--muted); font-size: 14.5px; }
dialog { padding: 0; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog::backdrop { background: rgba(4, 8, 15, 0.8); }
.dlg { display: grid; grid-template-columns: 1.05fr 1fr; }
.dlg-img { position: relative; min-height: 320px; background: var(--bg); }
.dlg-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dlg-body { padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; align-content: start; }
.dlg-body p { color: var(--muted); font-size: 15px; }
.dlg-specs { border-top: 1px solid var(--line); gap: 0 14px; }
.dlg-specs div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.dlg-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; background: rgba(8, 14, 25, 0.85); color: #fff; cursor: pointer; font-size: 20px; }
.dlg-note { font-size: 12.5px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--amber); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.form-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.f { display: grid; gap: 5px; grid-column: span 3; min-width: 0; }
.f.s2 { grid-column: span 2; } .f.s6 { grid-column: span 6; }
.f label, .f .lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; min-height: 44px; padding: 9px 11px; background: color-mix(in srgb, var(--fg) 4%, var(--bg)); border: 1px solid var(--line); font-size: 14.5px; }
.f input, .f select { font-family: var(--font-mono); font-size: 13.5px; }
.f textarea { min-height: 104px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--amber); }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
table.lines { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; min-width: 500px; }
.lines th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); padding: 9px 11px; border-bottom: 1px solid var(--line); }
.lines td { padding: 10px 11px; border-bottom: 1px solid var(--line); }
.lines tr:last-child td { border-bottom: 0; }
.lines .aogf { color: var(--red); font-weight: 700; }
.lines .rm { background: none; border: 1px solid var(--line); width: 28px; height: 28px; cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hint { font-size: 13px; color: var(--muted); max-width: 48ch; }
.err { color: var(--red); font-size: 13.5px; min-height: 1.3em; }
.out { display: grid; gap: 12px; padding: 15px; border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 7%, transparent); }
.out[hidden] { display: none; }
.out h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ok); }
.out pre { margin: 0; padding: 13px; max-height: 250px; overflow: auto; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.out-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.out small { color: var(--muted); font-size: 12.5px; }

/* ---------- Insights ---------- */
.news { border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 120px 150px 1fr 24px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.news time, .news .pub { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.news b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.news a:hover b { color: var(--amber); }
.news i { font-style: normal; color: var(--amber); }
.quote { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--amber); padding: 22px; display: grid; gap: 12px; align-content: start; }
.quote p { font-size: 15.5px; }
.quote footer { display: grid; gap: 2px; }
.quote footer b { font-family: var(--font-display); font-size: 15px; }
.quote footer span { font-size: 13px; color: var(--muted); }
.article { max-width: 760px; }
.article .prose { max-width: none; font-size: 17px; }
.article .prose h3 { font-size: 1.3rem; }
.placeholder { border: 1px dashed var(--line); padding: 22px; display: grid; gap: 10px; align-content: start; color: var(--muted); font-size: 14.5px; }
.placeholder b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.team div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.team b { font-family: var(--font-display); font-size: 1.02rem; }
.team span { font-size: 13.5px; color: var(--muted); }
.addr { display: grid; border-top: 1px solid var(--line); }
.addr div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.addr dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.addr dd { overflow-wrap: anywhere; }
.band { padding-block: clamp(40px, 5vw, 64px); background: #f0a81e; color: #1a1405; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.band h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 24ch; }
.band .btn { background: #101a2c; color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #060b14; padding-block: 48px 96px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.foot-grid ul { display: grid; gap: 7px; }
.foot-grid a { text-decoration: none; color: var(--fg); }
.foot-grid a:hover { color: var(--amber); }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12.5px; max-width: 110ch; }
.aog { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--red); color: #fff; text-decoration: none; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; border-radius: 2px; box-shadow: 0 10px 28px -8px rgba(229, 72, 77, 0.7); }
.aog b { background: #fff; color: var(--red); padding: 1px 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 6px var(--gutter) 16px; background: #0a111e; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 16.5px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .header .btn { display: none; }
  .subnav { top: 68px; }
  .g4, .figs, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.wide-l, .split.wide-r, .anat { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flow::before { display: none; }
  .flow li { grid-template-columns: 32px 1fr; column-gap: 16px; padding: 0; }
  .flow li::before { grid-row: span 2; }
  .steps > li { grid-template-columns: 40px 1fr; }
  .steps > li p { grid-column: 2; }
  .dlg { grid-template-columns: minmax(0, 1fr); }
  .dlg-img { min-height: 0; aspect-ratio: 16 / 10; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta a { border-right: 0; margin-right: 0; }
  .news a { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .news time, .news .pub { grid-column: 1; }
  .news b { grid-column: 1; }
  .news i { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: minmax(0, 1fr); }
  .head.row { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: linear-gradient(180deg, rgba(10, 17, 30, 0.78) 0%, rgba(10, 17, 30, 0.6) 60%, rgba(10, 17, 30, 0.95) 100%); }
  .f, .f.s2 { grid-column: span 6; }
  .addr div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .reel { aspect-ratio: auto; height: 460px; }
  .strip .hide-s { display: none; }
  .aog span { display: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
