/* ============================================================
   POLI DRONES — dark tactical theme
   ============================================================ */
:root {
  --bg: #0b0d0b;
  --bg-alt: #101310;
  --panel: #151a15;
  --panel-2: #1a201a;
  --line: #262e26;
  --line-strong: #364036;
  --text: #e8ebe6;
  --text-dim: #9aa598;
  --text-faint: #5f6a5e;
  --accent: #b3872c;
  --accent-dim: #8a6820;
  --olive: #7c8a5a;
  --danger: #c4543f;
  --ok: #6f9e5f;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 500; }

::selection { background: var(--accent); color: #14120a; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-size: 0.8em; letter-spacing: 0.04em; }

.accent { color: var(--accent); }

.kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------------------------------------------------- topline */
.topline {
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    transparent 12px 24px
  );
  opacity: 0.85;
}

/* ---------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 38px; height: 38px;
  color: var(--accent);
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 5px;
}
.brand-mark svg { width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--accent); }

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex; gap: 6px;
}
.lang-switch a { color: var(--text-dim); transition: color 0.15s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.on { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: 0.2s; }

/* ---------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 0.74rem; }

.btn-accent {
  background: var(--accent);
  color: #14120a;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-accent:hover { background: #cfa03b; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 110px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-inner { position: relative; max-width: 820px; }

.hero-sub {
  margin-top: 22px;
  font-size: 0.98rem;
  color: var(--text-dim);
  max-width: 560px;
}

/* ---- hero scene visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 6px;
}

.hero-frame .scene { display: block; width: 100%; height: auto; }

.hero-visual-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  animation: flicker 4s ease-in-out infinite;
}

/* ---- scenes (illustrated imagery) */
.scene { display: block; width: 100%; height: auto; }

.scene-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
}
.scene-hero .scene-label { font-size: 13px; }

.scene .reticle { animation: pulse 2.8s ease-in-out infinite; }
.scene .blink { animation: blink 1.2s step-end infinite; }
.scene .lamp { animation: flicker 5s ease-in-out infinite; }
.scene .prop-blur { animation: propblur 0.18s linear infinite alternate; }
.scene .hs-drone { animation: hover-bob 4.5s ease-in-out infinite; }
.scene .sc-quad { animation: hover-bob 3.8s ease-in-out infinite; }
.scene .pulse-dot { animation: pulse 1.6s ease-in-out infinite; }
.scene .wave path { animation: pulse 2.2s ease-in-out infinite; }

.field-grid { align-items: start; }

.field-card {
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s;
}
.field-card:hover { border-color: var(--accent-dim); }

.field-media { overflow: hidden; }
.field-media .scene { transition: transform 0.5s ease; }
.field-card:hover .field-media .scene { transform: scale(1.04); }

/* real photography — graded to match the theme */
.field-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) sepia(0.14);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.field-card:hover .field-photo { transform: scale(1.05); filter: saturate(0.9) contrast(1.06) sepia(0.08); }

.card-art.has-photo { padding: 0; }
.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) sepia(0.14);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.product-card:hover .card-photo { transform: scale(1.05); filter: saturate(0.9) contrast(1.06) sepia(0.08); }

.visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05) sepia(0.1);
}
.visual-frame.has-photo::after { z-index: 2; }
.visual-frame .frame-corner, .visual-frame .badge, .visual-frame .frame-ref { z-index: 3; }

.field-card figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-media {
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(21, 26, 21, 0.6);
}

.stat {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.stat:last-child { border-right: none; }

.stat-num {
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------- ticker */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker-track .tick-sep { color: var(--accent); font-size: 0.55rem; }

/* ---------------------------------------------------- sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.section-head h2 {
  position: relative;
  padding-left: 18px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: var(--accent);
}

.section-link { color: var(--text-dim); transition: color 0.15s; }
.section-link:hover { color: var(--accent); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------- product cards */
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }

.card-art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(38, 46, 38, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 46, 38, 0.5) 1px, transparent 1px),
    var(--panel-2);
  background-size: 28px 28px, 28px 28px, auto;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}
.product-card:hover .card-art { color: var(--accent); }

.card-art .art { width: 62%; height: auto; transition: color 0.2s; }

.card-crosshair {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.card-crosshair::before, .card-crosshair::after {
  content: ""; position: absolute; background: var(--line-strong);
}
.card-crosshair::before { left: 50%; top: -4px; bottom: -4px; width: 1px; }
.card-crosshair::after { top: 50%; left: -4px; right: -4px; height: 1px; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #14120a;
  background: var(--accent);
  padding: 3px 9px;
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
}

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-cat { color: var(--olive); font-size: 0.7rem; text-transform: uppercase; }

.card-body h3 { color: var(--text); }

.card-body p { color: var(--text-dim); font-size: 0.9rem; flex: 1; }

.card-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}

/* ---------------------------------------------------- category cards */
.category-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }

.cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

.cat-icon { width: 34px; height: 34px; color: var(--accent); }

.cat-count { color: var(--text-faint); font-size: 0.7rem; text-transform: uppercase; }

.category-card h3 { color: var(--text); }
.category-card p { color: var(--text-dim); font-size: 0.88rem; flex: 1; }

/* ---------------------------------------------------- why */
.why-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.why-num { color: var(--accent); font-size: 0.85rem; }
.why-item p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------------------------------------------------- CTA band */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(179, 135, 44, 0.04) 0 14px, transparent 14px 28px),
    var(--bg-alt);
  padding: 70px 0;
}
.cta-inner { text-align: center; max-width: 620px; }
.cta-inner p { color: var(--text-dim); margin: 14px 0 28px; }

/* ---------------------------------------------------- page head */
.page-head {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-color: var(--bg);
  background-blend-mode: normal;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,11,0.75), var(--bg) 90%);
}
.page-head .container { position: relative; }
.page-head.slim { padding: 34px 0 26px; background: var(--bg); }
.page-head.notfound { padding: 130px 0; border-bottom: none; }
.page-head.notfound .btn { margin-top: 26px; }

.page-sub { color: var(--text-dim); margin-top: 16px; max-width: 640px; font-size: 1.05rem; }

.breadcrumb {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  transition: color 0.15s;
}
.breadcrumb:hover { color: var(--accent); }

.empty-note { color: var(--text-faint); }

/* ---------------------------------------------------- product page */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

.visual-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(38, 46, 38, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 46, 38, 0.5) 1px, transparent 1px),
    var(--panel);
  background-size: 32px 32px, 32px 32px, auto;
  border: 1px solid var(--line);
  color: var(--accent);
}
.visual-frame .art { width: 68%; height: auto; }

.frame-corner {
  position: absolute; width: 16px; height: 16px;
  border-color: var(--accent);
  border-style: solid; border-width: 0;
}
.frame-corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.frame-corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.frame-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.frame-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.frame-ref {
  position: absolute;
  bottom: 14px; right: 34px;
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.14em;
}

.product-info h1 { margin-bottom: 12px; }

.product-tagline {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.product-desc { color: var(--text-dim); }

.product-cta { margin-top: 32px; }
.price-note { margin-top: 14px; color: var(--text-faint); font-size: 0.85rem; }

.specs-block {
  border: 1px solid var(--line);
  background: var(--panel);
}
.specs-title {
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 14px 26px; text-align: left; }
.specs-table tr { border-bottom: 1px solid var(--line); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9rem;
  width: 40%;
}
.specs-table td { color: var(--accent); font-size: 0.85rem; }

/* ---------------------------------------------------- about */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about-values { display: flex; flex-direction: column; gap: 26px; }

.compliance-block {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--panel);
  padding: 30px 34px;
}
.compliance-block p { color: var(--text-dim); margin-top: 10px; max-width: 780px; }

/* ---------------------------------------------------- contact / form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
}

.rfq-form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 34px;
  display: flex; flex-direction: column; gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.rfq-form label { display: flex; flex-direction: column; gap: 7px; }
.rfq-form label span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus { border-color: var(--accent); }

.rfq-form textarea { resize: vertical; }

.rfq-form .btn { align-self: flex-start; margin-top: 6px; }

.flash {
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
}
.flash-ok { color: var(--ok); border-color: var(--ok); background: rgba(111, 158, 95, 0.08); }
.flash-err { color: var(--danger); border-color: var(--danger); background: rgba(196, 84, 63, 0.08); }

.contact-aside {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px;
}
.contact-aside h3 { margin-bottom: 16px; }
.contact-aside ul { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text-dim); }
.aside-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.aside-note p { color: var(--text-faint); font-size: 0.8rem; }

/* ---------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-brand .footer-note { color: var(--text-faint); font-size: 0.75rem; }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.site-footer ul a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.15s; }
.site-footer ul a:hover { color: var(--accent); }
.footer-contact li { color: var(--text-dim); font-size: 0.85rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px; padding-bottom: 22px;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--text-faint);
  font-size: 0.72rem;
}

/* ---------------------------------------------------- animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blip {
  0%, 100% { opacity: 0; }
  4% { opacity: 1; }
  40% { opacity: 0; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  94% { opacity: 0.3; }
  96% { opacity: 1; }
  98% { opacity: 0.5; }
}
@keyframes scan {
  0% { top: 4%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 94%; opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}
@keyframes propblur {
  from { opacity: 0.18; }
  to { opacity: 0.42; }
}
@keyframes hover-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* spinning props / rotors */
.art .prop, .art .rotor, .cat-icon .prop, .cat-icon .rotor, .hero-radar .prop {
  transform-box: fill-box;
  transform-origin: center;
}

/* always spinning — slow at rest, fast on hover / product page */
.art .prop, .cat-icon .prop { animation: spin 3.2s linear infinite; }
.art .rotor, .cat-icon .rotor { animation: spin 9s linear infinite; }

.visual-frame .art .prop { animation-duration: 0.7s; }
.visual-frame .art .rotor { animation-duration: 3s; }

.product-card:hover .art .prop { animation-duration: 0.6s; }
.product-card:hover .art .rotor { animation-duration: 2.4s; }
.category-card:hover .cat-icon .prop { animation-duration: 0.6s; }
.category-card:hover .cat-icon .rotor { animation-duration: 2.4s; }

/* pulsing signal elements */
.art .pulse-dot, .art .pulse-stroke, .cat-icon .pulse-stroke { animation: pulse 1.6s ease-in-out infinite; }
.art .wave path { animation: pulse 2.2s ease-in-out infinite; }
.art .wave:nth-of-type(2) path { animation-delay: 0.6s; }

/* category icon hover */
.cat-icon { transition: transform 0.2s ease; }
.category-card:hover .cat-icon { transform: scale(1.12); }

/* scanline over product visual */
.visual-frame::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(179, 135, 44, 0.55), transparent);
  animation: scan 3.4s linear infinite;
  pointer-events: none;
}

/* crosshair pulse on card hover */
.product-card:hover .card-crosshair { border-color: var(--accent); }
.product-card:hover .card-crosshair::before,
.product-card:hover .card-crosshair::after { background: var(--accent); }

/* arrow nudge on card links */
.card-link span, .section-link { transition: transform 0.2s ease; display: inline-block; }
.product-card:hover .card-link span,
.category-card:hover .card-link span { transform: translateX(4px); }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* hero entrance */
.hero-inner > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
.hero-visual { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------- responsive */
.hide-mobile { display: inline-block; }

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .product-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }

  /* backdrop-filter on the sticky header makes it the containing block
     for position:fixed children — the overlay would be sized to the header
     instead of the viewport. Use a solid background on mobile instead. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  .nav-toggle { display: flex; position: relative; z-index: 70; }

  /* hamburger -> X */
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* full-screen overlay nav */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background:
      linear-gradient(rgba(38, 46, 38, 0.35) 1px, transparent 1px),
      linear-gradient(90deg, rgba(38, 46, 38, 0.35) 1px, transparent 1px),
      rgba(9, 11, 9, 0.97);
    background-size: 56px 56px, 56px 56px, auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.open { visibility: visible; opacity: 1; }

  .main-nav a {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text);
    border-bottom: none;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.15s;
  }
  .main-nav.open a { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(1) { transition-delay: 0.08s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.14s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.2s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.26s; }
  .main-nav a.active { color: var(--accent); }

  body.nav-open { overflow: hidden; }

  .hero { padding-top: 70px; }
  .hero-stats { margin-top: 50px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }

  .header-inner { height: 64px; gap: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.55rem; letter-spacing: 0.18em; }
  .header-actions { gap: 12px; }
  .nav-toggle { width: 36px; height: 36px; }

  .hero { padding: 50px 0 44px; }
  .hero-sub { margin-top: 16px; font-size: 0.92rem; }
  .hero-actions { margin-top: 28px; gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .hero-stats { margin-top: 40px; }
  .stat { padding: 16px 18px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }

  .section { padding: 44px 0; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 28px;
  }

  .page-head { padding: 48px 0 36px; }
  .page-head.notfound { padding: 90px 0; }
  .page-sub { margin-top: 12px; font-size: 0.95rem; }

  .card-body { padding: 16px 16px 18px; }
  .category-card { padding: 18px; }

  .product-layout { gap: 28px; margin-bottom: 44px; }
  .specs-title { padding: 14px 16px; }
  .specs-table th, .specs-table td { padding: 12px 16px; }

  .compliance-block { padding: 22px 18px; }

  .rfq-form { padding: 24px 18px; gap: 16px; }
  .rfq-form .btn { align-self: stretch; text-align: center; }
  .contact-aside { padding: 22px 18px; }

  .cta-band { padding: 50px 0; }

  .site-footer { padding-top: 44px; }
  .footer-grid { gap: 28px; padding-bottom: 36px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.9rem; }
  .brand-sub { display: none; }
  .btn { padding: 12px 20px; letter-spacing: 0.07em; }
  .stat { padding: 13px 14px; }
  .stat-num { font-size: 1.3rem; }
  .ticker-track span { font-size: 0.66rem; }
}
