/* RGS Applications — black ground, night-vision phosphor greens used sparingly.
   Brand colors from the RGS identity sheet. Desktop-first: 1440px wrap, wide gutters, large type. */
:root {
  color-scheme: dark;
  --bg: #070807;
  --bg-2: #0c0e0c;
  --bg-3: #131613;
  --line: #1d211d;
  --line-2: #3a3f3a;
  --fg: #f2f2f2;
  --muted: #9aa29a;
  --dim: #6b736b;
  --ir1: #0a2a12;
  --ir2: #1f7a22;
  --ir3: #4fbf3c;
  --ir4: #8cff6a;
  --ir5: #c9ffb6;
  --heat: linear-gradient(90deg, var(--ir2) 0%, var(--ir3) 38%, var(--ir4) 72%, var(--ir5) 100%);
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --f-brand: "Orbitron", "Geist", ui-sans-serif, sans-serif;
  --seg-off: #3a3f3a;
  --seg-on: #8cff6a;
  --beam: linear-gradient(180deg, rgba(140,255,106,0) 0%, #3fa832 14%, #b8ff9c 50%, #3fa832 86%, rgba(140,255,106,0) 100%);
  --beam-glow: 0 0 3px rgba(140,255,106,0.9), 0 0 9px rgba(140,255,106,0.35);
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ir3); color: #000; }
:focus-visible { outline: 2px solid var(--ir4); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.6vw, 7rem); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.2rem, 3.6vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.25vw, 1.4rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.body-text { color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 1px; height: 1.5em; border-radius: 2px; background: var(--beam); box-shadow: var(--beam-glow); flex: none; }
.heat-text { background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { border-color: var(--fg); }
.btn-primary { background: var(--fg); color: #000; border-color: var(--fg); }
.btn-primary:hover { background: var(--heat); border-color: transparent; color: #000; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--ir4); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, body:not([data-hero]) .site-header {
  background: rgba(0, 0, 0, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 22px; height: 22px; flex: none; }
.logo-word { font-weight: 600; font-size: 1.12rem; letter-spacing: 0.14em; }
.logo-sub { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; color: #d6e0d4; transition: color .2s, background .2s; }
.nav a:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 1px; margin-top: 2px; background: var(--heat); }
.header-cta { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--fg); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--fg); transition: transform .25s; }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.mobile-nav { display: none; }

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .logo-sub { display: none; }
  .mobile-nav {
    display: grid; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    background: rgba(0,0,0,0.96); align-content: start; gap: 4px;
    padding: 24px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px));
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .mobile-nav a { font-size: 1.8rem; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 24px; font-size: 1rem; border-bottom: 1px solid var(--fg); }
  body.menu-open .mobile-nav { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open .menu-btn span { background: transparent; }
  body.menu-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
  body.menu-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: max(680px, 100vh); overflow: hidden; background: #0b0d10; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-fallback { position: absolute; inset: 0; z-index: -3; background: radial-gradient(80% 60% at 60% 30%, #2a2f38, #0b0d10 70%); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(7,8,7,0.55) 12%, rgba(7,8,7,0.12) 34%, rgba(7,8,7,0) 50%),
    radial-gradient(90% 70% at 0% 100%, rgba(7,8,7,0.45), rgba(7,8,7,0) 60%),
    linear-gradient(180deg, rgba(7,8,7,0.30), rgba(7,8,7,0) 14%);
}
.hero-content { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(40px, 7vh, 88px); }
.hero-content h1 { max-width: 12ch; text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.hero-content .eyebrow { color: #e8f1e5; }
.hero-content .lead { color: #e1ebdf; margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn:not(.btn-primary) { background: rgba(0,0,0,0.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.35); }

/* HUD overlay, drone camera feel */
.hud { position: absolute; inset: calc(var(--header-h) + 24px) 0 auto 0; pointer-events: none; z-index: 1; }
.hud .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hud-block { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.12em; color: #c9f7a6; text-shadow: 0 0 10px rgba(73,168,63,0.6), 0 1px 6px rgba(0,0,0,0.5); display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.hud-block.right { text-align: right; }
.hud-rec { display: inline-flex; align-items: center; gap: 8px; }
.hud-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px rgba(255,59,48,0.8); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.reticle { color: #c9f7a6; position: absolute; left: 50%; top: 46%; width: 120px; height: 120px; transform: translate(-50%, -50%); pointer-events: none; opacity: 0.55; z-index: 1; }
@media (max-width: 640px) { .reticle { display: none; } .hud-block.right .hide-sm { display: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(64px, 10vw, 128px)); padding-bottom: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70vw; max-width: 900px; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(73,168,63,0.20), rgba(31,107,44,0.12) 45%, rgba(0,0,0,0) 72%);
  filter: blur(10px); z-index: 0;
}
.page-head .wrap { position: relative; z-index: 1; display: grid; gap: 24px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 9vw, 180px); border-top: 1px solid var(--line); }
.section.tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > * { min-width: 0; }
.section-head .eyebrow { grid-column: 1 / -1; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Vision */
.vision { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 80px; }
.vision-statement { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 400; }
.vision-statement em { font-style: normal; color: var(--muted); }
.pillars { display: grid; gap: 0; align-content: end; }
.pillar { padding-block: 22px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.pillar:last-child { border-bottom: 1px solid var(--line-2); }
.pillar h3 { font-size: 1.1rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .vision { grid-template-columns: minmax(0, 1fr); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 24px 32px 0; display: grid; gap: 10px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-value { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 0.42em; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 4px; }
.stat-label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Product family cards */
.families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.family { background: var(--bg); padding: 28px 28px 32px; display: grid; grid-template-rows: auto auto 1fr; gap: 18px; min-width: 0; transition: background .3s; }
.family:hover { background: var(--bg-2); }
.family .thermal { height: 190px; margin: -4px -8px 4px; }
.family h3 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.family h3 .mono { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; font-weight: 400; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--line-2); font-size: 0.9rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-family: var(--f-mono); font-size: 0.84rem; text-align: right; }
@media (max-width: 980px) { .families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .families { grid-template-columns: minmax(0, 1fr); } }

/* Thermal visual container */
.thermal { position: relative; display: grid; place-items: center; }
.thermal svg { width: 100%; height: 100%; overflow: visible; }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.app { padding-block: 28px 32px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; align-content: start; min-width: 0; }
.app h3 { font-size: 1.2rem; }
.app p { color: var(--muted); font-size: 0.96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: #d3ddd1; transition: border-color .2s, color .2s; white-space: nowrap; }
a.tag:hover { border-color: var(--ir4); color: var(--fg); }
@media (max-width: 980px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .apps { grid-template-columns: minmax(0, 1fr); } }

/* Series rail */
.series-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.series-card { background: var(--bg); padding: 22px 20px 24px; display: grid; gap: 10px; align-content: start; min-height: 168px; transition: background .25s; position: relative; min-width: 0; }
.series-card:hover { background: var(--bg-3); }
.series-card .count { font-family: var(--f-mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.1em; }
.series-card h3 { font-size: 1.12rem; }
.series-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.series-card .heat-bar { height: 2px; width: 28px; background: var(--heat); margin-top: auto; transition: width .35s; }
.series-card:hover .heat-bar { width: 100%; }
@media (max-width: 1100px) { .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .series-grid { grid-template-columns: minmax(0, 1fr); } }

/* Federal registration band — styled like the camera's target box */
.registry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 80px; align-items: center; }
.target {
  --c: rgba(201,247,166,0.85); --s: 18px;
  position: relative; padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px var(--s) no-repeat,
    radial-gradient(120% 120% at 100% 0%, rgba(73,168,63,0.12), rgba(0,0,0,0) 55%),
    var(--bg-2);
}
.target-label { position: absolute; top: -28px; left: 0; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--fg); padding-bottom: 4px; border-bottom: 1px solid var(--fg); }
.reg-table { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; font-size: 0.95rem; }
.reg-table dt, .reg-table dd { margin: 0; padding: 13px 0; border-top: 1px solid var(--line-2); }
.reg-table dt:first-of-type, .reg-table dd:first-of-type { border-top: 0; }
.reg-table dt { color: var(--muted); font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; padding-right: 28px; }
.reg-table dd { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.status-pill::before { content: ""; width: 1px; height: 1.15em; border-radius: 2px; background: var(--beam); box-shadow: var(--beam-glow); }
@media (max-width: 900px) { .registry { grid-template-columns: minmax(0, 1fr); } }

/* Process (real sequence) */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; counter-reset: step; }
.step { padding-top: 22px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; min-width: 0; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-mono); font-size: 0.74rem; color: var(--dim); letter-spacing: 0.1em; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 36px; background: var(--heat); }
.step p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* Capability list */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.cap { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.cap svg { width: 22px; height: 22px; color: var(--ir4); margin-top: 3px; }
.cap h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cap p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .caps { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 100%, rgba(143,224,107,0.18), rgba(31,107,44,0.14) 45%, rgba(0,0,0,0) 75%);
}
.cta-inner { position: relative; display: grid; gap: 28px; justify-items: start; }
.cta-inner h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 14ch; }
.email-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0,0,0,0.4); max-width: 100%; }
.email-chip .mono { font-size: 0.95rem; user-select: all; overflow-wrap: anywhere; }
.copy-btn { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--fg); color: #000; font-size: 0.84rem; font-weight: 500; cursor: pointer; flex: none; }
.copy-btn:hover { background: var(--heat); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h4 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: #cbd6c9; transition: color .2s; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--fg); }
.footer-grid p { color: var(--muted); max-width: 34ch; margin-top: 16px; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dim); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Catalogue ---------- */
.cat-tools { display: grid; gap: 18px; margin-bottom: 28px; }
.cat-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.input, .select {
  height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg);
  font: inherit; font-size: 0.95rem; min-width: 0;
}
.input:focus, .select:focus { outline: none; border-color: var(--ir4); }
.input.search { width: min(360px, 100%); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 0.85rem; cursor: pointer; color: #d3ddd1; transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.chip .n { font-family: var(--f-mono); font-size: 0.72rem; opacity: 0.6; margin-left: 4px; }
.cat-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--muted); font-size: 0.9rem; padding-block: 14px; border-top: 1px solid var(--line); }
.cat-meta strong { color: var(--fg); font-family: var(--f-mono); font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
table.cat { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 1040px; }
table.cat th { position: sticky; top: 0; background: var(--bg-3); text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 14px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.cat th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
table.cat th button:focus-visible { outline: 2px solid var(--ir4); outline-offset: 2px; }
table.cat th[aria-sort] button::after { content: "↕"; opacity: 0.4; }
table.cat th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; color: var(--ir4); }
table.cat th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; color: var(--ir4); }
table.cat td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
table.cat tbody tr { transition: background .15s; }
table.cat tbody tr:hover { background: rgba(255,255,255,0.03); }
table.cat td.model { font-weight: 500; white-space: nowrap; }
table.cat td.num { font-family: var(--f-mono); font-size: 0.82rem; white-space: nowrap; }
table.cat td.kv { font-family: var(--f-mono); font-size: 0.8rem; color: #d3ddd1; min-width: 150px; }
table.cat td.series { color: var(--muted); white-space: nowrap; }
.thr-cell { display: grid; gap: 5px; min-width: 110px; }
.thr-bar { height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.thr-bar i { display: block; height: 100%; background: var(--heat); }
.row-req { font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.row-req:hover { color: var(--fg); border-color: var(--ir4); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.note { color: var(--dim); font-size: 0.86rem; max-width: 80ch; margin-top: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px 80px; align-items: start; }
.contact-card { display: grid; gap: 28px; }
.contact-item { display: grid; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.contact-item .k { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.contact-item .v { font-size: 1.15rem; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.form .full { grid-column: 1 / -1; }
.form .input, .form .select { width: 100%; }
.form textarea.input { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.form-out { grid-column: 1 / -1; display: grid; gap: 14px; padding: 20px; border-radius: 14px; border: 1px solid var(--line-2); background: #000; }
.form-out pre { margin: 0; white-space: pre-wrap; font-family: var(--f-mono); font-size: 0.82rem; color: #d3ddd1; max-height: 280px; overflow: auto; }
.form-out .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-hint { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--fg); color: #000; padding: 10px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; z-index: 80; transition: all .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Gentle entrance from a visible resting state */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; }
  @keyframes rise { from { transform: translateY(14px); opacity: 0.001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Brand logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 18px; }
.rgs-lockup { display: inline-grid; justify-items: stretch; row-gap: 6px; }
.rgs-word { font-family: var(--f-brand); font-weight: 500; font-size: 1.55rem; line-height: 1; letter-spacing: 0.16em; margin-right: -0.16em; color: var(--fg); }
.rgs-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.28em; font-size: 1.55rem; }
.rgs-bar i { display: block; height: 3px; background: var(--seg-off); }
.rgs-bar i:last-child { background: var(--seg-on); box-shadow: 0 0 10px rgba(140,255,106,0.55); }
.rgs-sub { font-family: var(--f-brand); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.5em; margin-right: -0.5em; color: #cfd3cf; padding-left: 18px; border-left: 1px solid var(--line-2); line-height: 2.4; }
.rgs-stack { display: inline-grid; justify-items: center; row-gap: 16px; }
.rgs-stack .rgs-lockup { row-gap: 12px; }
.rgs-stack .rgs-word, .rgs-stack .rgs-bar { font-size: 3rem; }
.rgs-stack .rgs-word { margin-right: 0; padding-left: 0.16em; margin-left: -0.16em; }
.rgs-stack .rgs-word { margin: 0 -0.16em 0 0; padding: 0; }
.rgs-stack .rgs-bar i { height: 5px; }
.rgs-stack .rgs-sub { border: 0; padding: 0 0 0 0.5em; margin-right: 0; font-size: 0.82rem; line-height: 1; }
.brand-logo { display: inline-block; }
@media (max-width: 760px) { .logo .rgs-sub { display: none; } }

/* ---------- Desktop refinements ---------- */
@media (min-width: 1200px) {
  .hero-content h1 { max-width: 13ch; }
  .family .thermal { height: 220px; }
  .series-card { min-height: 200px; padding: 28px 26px 30px; }
  .stat { padding-block: 48px 44px; }
  .cat-tools { grid-template-columns: minmax(0, 1fr); }
}

/* Hero video */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #070807; }
.hero-fallback { background: #070807 url("poster.jpg") center / cover no-repeat; }

/* Logo 3 (image) */
.logo-img { display: block; height: 34px; width: auto; }
.logo-img-full { display: block; width: 340px; height: auto; max-width: 100%; }
@media (max-width: 760px) { .logo-img { height: 24px; } }

/* ---------- Technical drawings (product families) ---------- */
.drawing { position: relative; display: block; height: 210px; margin: -4px -8px 4px; border-radius: 10px; color: var(--fg);
  background-image: linear-gradient(rgba(242,242,242,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(242,242,242,0.035) 1px, transparent 1px);
  background-size: 16px 16px; background-position: center; transition: background-color .3s; }
.drawing svg { width: 100%; height: 100%; display: block; overflow: visible; transition: transform .4s cubic-bezier(.2,.7,.2,1), filter .3s; }
a.drawing:hover { background-color: rgba(140,255,106,0.035); }
a.drawing:hover svg { transform: scale(1.03); filter: drop-shadow(0 0 6px rgba(140,255,106,0.25)); }
.drawing-cta { position: absolute; right: 10px; bottom: 8px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7,8,7,0.7); transition: color .2s, border-color .2s; }
a.drawing:hover .drawing-cta { color: var(--fg); border-color: var(--ir4); }
.family h3 a { transition: color .2s; }
.family h3 a:hover { color: var(--ir4); }
.family[id] { scroll-margin-top: calc(var(--header-h) + 32px); }
.chips-label { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); align-self: center; margin-right: 8px; }

/* ---------- Light beam bullets (from the logo divider) ---------- */
.app-row ul li::before { width: 1px !important; height: 1.2em !important; border-radius: 2px !important; background: var(--beam) !important; box-shadow: var(--beam-glow); vertical-align: -0.25em !important; }

/* ---------- White buttons (Request a quote and all primary/copy buttons):
   raised grey-white, slow fade to night-vision green on hover ---------- */
.btn.btn-primary, .copy-btn { position: relative; overflow: hidden; isolation: isolate; color: #0b0d0b; font-weight: 500; border: 0;
  background: radial-gradient(120% 140% at 78% 18%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%), linear-gradient(90deg, #7f857f 0%, #a6aba6 22%, #ccd0cc 48%, #ecedec 74%, #ffffff 100%);
  box-shadow: inset 0 -5px 9px rgba(0,0,0,0.28), inset 6px 0 10px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.6), 0 6px 16px rgba(0,0,0,0.34);
  transition: color 0.25s ease, box-shadow 0.25s ease; }
.btn.btn-primary::before, .copy-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0;
  background: radial-gradient(120% 140% at 78% 18%, rgba(220,255,200,0.35) 0%, rgba(220,255,200,0) 55%), linear-gradient(90deg, #2f6e27 0%, #4a963c 30%, #66b552 65%, #8ad46c 100%); transition: opacity 0.25s ease; }
.btn.btn-primary:hover, .copy-btn:hover { background: radial-gradient(120% 140% at 78% 18%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%), linear-gradient(90deg, #7f857f 0%, #a6aba6 22%, #ccd0cc 48%, #ecedec 74%, #ffffff 100%); color: #071107;
  box-shadow: inset 0 -5px 9px rgba(0,0,0,0.30), inset 6px 0 10px rgba(0,0,0,0.20), 0 1px 2px rgba(0,0,0,0.6), 0 0 20px rgba(110,200,85,0.32); }
.btn.btn-primary:hover::before, .copy-btn:hover::before { opacity: 1; }
.mobile-nav .btn.btn-primary { border-bottom: 0; }
/* ---------- Process steps: progress bar per step ---------- */
.step::after { width: 100%; transform-origin: left center; transform: scaleX(var(--p, 0.25)); height: 2px; top: -1.5px; background: linear-gradient(90deg, #1f7a22, #8cff6a); box-shadow: 0 0 8px rgba(140,255,106,0.45); }
.step:nth-child(1) { --p: 0.25; } .step:nth-child(2) { --p: 0.5; } .step:nth-child(3) { --p: 0.75; } .step:nth-child(4) { --p: 1; }
@media (prefers-reduced-motion: no-preference) {
  .step::after { animation: step-fill 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .step:nth-child(2)::after { animation-delay: .15s; } .step:nth-child(3)::after { animation-delay: .3s; } .step:nth-child(4)::after { animation-delay: .45s; }
  @keyframes step-fill { from { transform: scaleX(0); } to { transform: scaleX(var(--p)); } }
}
.hud .wrap { justify-content: flex-end; }

/* Protection rating badges in the catalogue */
.ip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.74rem; white-space: nowrap; color: #d3d8d3; }
.ip-ip45 { border-color: rgba(140,255,106,0.55); color: #c9ffb6; }
.ip-ip35 { border-color: rgba(140,255,106,0.28); }
/* Catalogue: fit all columns on a desktop screen */
table.cat th, table.cat td { padding-left: 10px; padding-right: 10px; }
table.cat td.kv { min-width: 120px; }
.thr-cell { min-width: 96px; }

/* Inner-page glow: fully diffuse, no visible edge (not clipped by the header band) */
.page-head { overflow: visible; }
.page-head::after {
  right: -18%; top: -45%; width: 95vw; max-width: 1300px; filter: none;
  background: radial-gradient(closest-side, rgba(79,191,60,0.13) 0%, rgba(31,122,34,0.075) 35%, rgba(31,122,34,0.03) 60%, rgba(7,8,7,0) 100%);
}
main { overflow-x: clip; }

/* Contact form framed like the Company registration block (camera frame + green glow) */
.form.target { border: 0; border-radius: 0; --c: rgba(201,247,166,0.85); --s: 18px; background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px var(--s) no-repeat,
    radial-gradient(120% 120% at 100% 0%, rgba(73,168,63,0.12), rgba(0,0,0,0) 55%),
    var(--bg-2);
  padding: clamp(24px, 3.4vw, 44px); }
.btn.btn-ghost { min-height: 38px; padding: 0 16px; font-size: 0.84rem; }

/* ---------- White buttons, v2: brushed aluminium, logo-style lettering ---------- */
.btn.btn-primary, .copy-btn {
  --alu: linear-gradient(90deg, #8d9296 0%, #b4b9bc 18%, #d9dcde 38%, #eef0f1 50%, #d3d7d9 64%, #aeb3b6 84%, #92979a 100%);
  font-family: var(--f-brand); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem;
  color: #1c2024; text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E") 0 0 / 300px 120px,
    repeating-linear-gradient(0deg, rgba(255,255,255,0.10) 0 1px, rgba(0,0,0,0.05) 1px 2px, rgba(255,255,255,0) 2px 3px),
    var(--alu);
  background-blend-mode: overlay, normal, normal;
}
.btn.btn-primary:hover, .copy-btn:hover {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E") 0 0 / 300px 120px,
    repeating-linear-gradient(0deg, rgba(255,255,255,0.10) 0 1px, rgba(0,0,0,0.05) 1px 2px, rgba(255,255,255,0) 2px 3px),
    var(--alu);
  background-blend-mode: overlay, normal, normal;
  text-shadow: none;
}
.copy-btn { font-size: 0.66rem; }
.header-cta { font-size: 0.7rem; }

/* Home hero "Send us the requirement": same black-button behaviour as "Copy email address" (outline lights up on hover) */
.hero-actions .btn:not(.btn-primary) { border-color: var(--line-2); background: rgba(7,8,7,0.45); transition: border-color .25s, background .25s; }
.hero-actions .btn:not(.btn-primary):hover { border-color: var(--fg); background: rgba(7,8,7,0.6); }

/* Back-to-top button */
.to-top { position: fixed; z-index: 45; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #cfd3cf;
  background: rgba(7,8,7,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .3s, border-color .25s, color .25s; }
.to-top.show { opacity: 0.85; transform: none; pointer-events: auto; }
.to-top:hover { opacity: 1; color: var(--fg); border-color: var(--ir4); }

/* White buttons: bolder lettering, solid night-vision green on hover */
.btn.btn-primary, .copy-btn { font-weight: 700; color: #111417; }
.btn.btn-primary::before, .copy-btn::before { background: #5aa847; }

/* Metallic buttons, hover v3: the metal stays; outline and lettering fade to the same
   green gradient as the word "unmanned" on the home page */
.btn.btn-primary .btn-label, .copy-btn .btn-label {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--heat); -webkit-background-clip: text; background-clip: text;
  color: #111417; transition: color 0.25s ease, filter 0.25s ease;
}
.btn.btn-primary:hover .btn-label, .copy-btn:hover .btn-label {
  color: rgba(17,20,23,0); filter: drop-shadow(0 0 0.6px rgba(0,0,0,0.85)) drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}
.btn.btn-primary .btn-label .arrow { color: inherit; }
.btn.btn-primary::before, .copy-btn::before {
  background: var(--heat); padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.btn.btn-primary:hover, .copy-btn:hover { color: #111417; }

/* Metallic buttons, hover v4: darker green gradient that sweeps left to right
   across the lettering and around the outline */
.btn.btn-primary, .copy-btn { --btn-heat: linear-gradient(90deg, #14551a 0%, #2a8a27 38%, #50b83c 72%, #7fd462 100%); }
.btn.btn-primary .btn-label, .copy-btn .btn-label {
  color: transparent;
  background: linear-gradient(#111417, #111417) right center / 100% 100% no-repeat, var(--btn-heat);
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 0.4s cubic-bezier(.4,0,.2,1), filter 0.4s ease;
}
.btn.btn-primary:hover .btn-label, .copy-btn:hover .btn-label {
  color: transparent; background-size: 0% 100%, 100% 100%;
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,0.6));
}
.btn.btn-primary::before, .copy-btn::before {
  background: var(--btn-heat); opacity: 1; clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path 0.4s cubic-bezier(.4,0,.2,1);
}
.btn.btn-primary:hover::before, .copy-btn:hover::before { clip-path: inset(0 0 0 0 round 999px); }
.btn.btn-primary, .copy-btn, .btn.btn-primary .btn-label, .copy-btn .btn-label { text-shadow: none; }

/* Metallic buttons, hover v5: one tone darker, sweep twice as slow (0.8s) */
.btn.btn-primary, .copy-btn { --btn-heat: linear-gradient(90deg, #0f4414 0%, #1f711d 38%, #3c9a2e 72%, #63b84b 100%); }
.btn.btn-primary .btn-label, .copy-btn .btn-label { transition: background-size 0.8s cubic-bezier(.4,0,.2,1), filter 0.8s ease; }
.btn.btn-primary::before, .copy-btn::before { transition: clip-path 0.8s cubic-bezier(.4,0,.2,1); }

/* Metallic buttons, hover v6: a point of green light runs once around the outline (0.4s),
   leaving the green outline behind; the lettering keeps its left-to-right colouring. */
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --head { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.btn.btn-primary::before, .copy-btn::before {
  clip-path: none; opacity: 1;
  background: conic-gradient(from 270deg,
    #0f4414 0deg,
    #1f711d calc(var(--ring) * 0.45),
    #3c9a2e calc(var(--ring) - 34deg),
    color-mix(in srgb, #e2ffd4 var(--head), #63b84b) calc(var(--ring) - 1deg),
    transparent var(--ring));
  transition: --ring 0.4s linear, --head 0.3s ease 0.4s;
}
.btn.btn-primary:hover::before, .copy-btn:hover::before { --ring: 360deg; --head: 0%; clip-path: none; }

/* Metallic buttons, hover v7: no moving animation. On hover the green outline and the
   green lettering simply light up (short fade), same dark-to-light gradient as before. */
.btn.btn-primary::before, .copy-btn::before {
  --ring: 360deg; --head: 0%; opacity: 0; clip-path: none;
  background: var(--btn-heat);
  transition: opacity 0.2s ease;
}
.btn.btn-primary:hover::before, .copy-btn:hover::before { opacity: 1; }
.btn.btn-primary .btn-label, .copy-btn .btn-label {
  background: var(--btn-heat); -webkit-background-clip: text; background-clip: text;
  color: #111417; transition: color 0.2s ease, filter 0.2s ease;
}
.btn.btn-primary:hover .btn-label, .copy-btn:hover .btn-label { color: transparent; background-size: auto; }

/* Metallic buttons: softer green gradient (less difference between the two ends) */
.btn.btn-primary, .copy-btn { --btn-heat: linear-gradient(90deg, #26702a 0%, #2d7f2e 40%, #369033 75%, #3d9938 100%); }

/* Metallic buttons: stronger brushed-aluminium look (fine horizontal grain, broader brushing
   variation, a soft vertical sheen and a cooler silver base) */
.btn.btn-primary, .copy-btn, .btn.btn-primary:hover, .copy-btn:hover {
  background: radial-gradient(ellipse 22% 160% at 64% 50%, rgba(255,255,255,0.42), rgba(255,255,255,0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='80'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0018 1.6' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-0.6000000000000001'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-0.6000000000000001'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-0.6000000000000001'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 400px 80px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='80'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.35' numOctaves='3' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.6' intercept='-0.30000000000000004'/%3E%3CfeFuncG type='linear' slope='1.6' intercept='-0.30000000000000004'/%3E%3CfeFuncB type='linear' slope='1.6' intercept='-0.30000000000000004'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 400px 80px,
    repeating-linear-gradient(0deg, rgba(255,255,255,0.14) 0 1px, rgba(255,255,255,0) 1px 3px, rgba(0,0,0,0.07) 3px 4px, rgba(0,0,0,0) 4px 7px),
    linear-gradient(90deg, #8e9397 0%, #a9aeb2 20%, #c5c9cc 42%, #d6d9db 58%, #c0c4c7 76%, #a2a7ab 100%);
  background-blend-mode: normal, soft-light, overlay, normal, normal;
}

/* Metallic buttons: real brushed-aluminium texture (alu.jpg), with a light top-to-bottom
   shading for the domed relief */
.btn.btn-primary, .copy-btn, .btn.btn-primary:hover, .copy-btn:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.10) 100%),
    url("alu.jpg") center / 520px auto repeat;
  background-blend-mode: normal, normal;
}

/* Metallic buttons: much softer green halo on hover */
.btn.btn-primary:hover, .copy-btn:hover {
  box-shadow: inset 0 -5px 9px rgba(0,0,0,0.28), inset 6px 0 10px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.6), 0 0 10px rgba(110,200,85,0.12);
}

/* Metallic buttons: brighter, glossier silver (soft sheen band on top of the lighter texture) */
.btn.btn-primary, .copy-btn, .btn.btn-primary:hover, .copy-btn:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.10) 42%, rgba(255,255,255,0) 55%, rgba(0,0,0,0.08) 100%),
    url("alu.jpg") center / 520px auto repeat;
}

/* "Request a quote" (header) 10% smaller */
.btn.header-cta { min-height: 36px; padding: 0 16px; font-size: 0.63rem; }

/* Buttons: classic white (replaces the brushed aluminium; hover unchanged) */
.btn.btn-primary, .copy-btn, .btn.btn-primary:hover, .copy-btn:hover { background: #f2f2f2; }
.btn.btn-primary, .copy-btn { box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.25); }
.btn.btn-primary:hover, .copy-btn:hover { box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 10px rgba(110,200,85,0.12); }

/* White buttons, hover: colours invert (black button, light grey lettering), no green */
.btn.btn-primary::before, .copy-btn::before {
  -webkit-mask: none; mask: none; padding: 0; clip-path: none;
  background: #0c0e0c; opacity: 0; transition: opacity 0.25s ease;
}
.btn.btn-primary:hover::before, .copy-btn:hover::before { opacity: 1; }
.btn.btn-primary .btn-label, .copy-btn .btn-label {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #111417; filter: none; transition: color 0.25s ease;
}
.btn.btn-primary:hover .btn-label, .copy-btn:hover .btn-label { color: #d9dcde; filter: none; background: none; }
.btn.btn-primary:hover, .copy-btn:hover {
  box-shadow: 0 0 0 1px rgba(217,220,222,0.35), 0 1px 2px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.25);
}

/* White buttons, hover: smoother outline. The whole button turns black (no white fringe
   left around the black layer) and the outline is a soft, slightly blurred ring. */
.btn.btn-primary, .copy-btn { background: #f2f2f2; transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease; }
.btn.btn-primary:hover, .copy-btn:hover {
  background: #0c0e0c;
  box-shadow: 0 0 0 1px rgba(217,220,222,0.22), 0 0 4px 0.5px rgba(217,220,222,0.18), 0 4px 12px rgba(0,0,0,0.25);
}
.btn.btn-primary::before, .copy-btn::before { display: none; }

/* Back-to-top button: smoother outline (soft ring instead of a hard 1px border) */
.to-top { border: 0; box-shadow: 0 0 0 1px rgba(58,63,58,0.9), 0 0 2px 1px rgba(58,63,58,0.35); transition: opacity .3s, transform .3s, box-shadow .25s, color .25s; }
.to-top:hover { box-shadow: 0 0 0 1px rgba(140,255,106,0.45), 0 0 3px 1px rgba(140,255,106,0.22), 0 0 10px rgba(140,255,106,0.12); }

/* Home HUD (CAGE/UEI and GPS): text 10% smaller */
.hero .hud .hud-block { font-size: 0.72rem; }
