:root {
  --bg: #020303;
  --panel: #070808;
  --line: rgba(255, 255, 255, 0.24);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text: #f6f7f7;
  --muted: #c7cdd1;
  --dim: #8a9298;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid rgba(255,255,255,0.92);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 15%, rgba(255,255,255,0.11), transparent 26rem),
    linear-gradient(180deg, #030404 0%, #000 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.15rem clamp(1rem, 5vw, 4.8rem);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
}

.site-header.scrolled {
  padding-block: 0.7rem;
  background: rgba(0, 0, 0, 0.86);
  border-color: var(--line-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 7.1rem;
  height: 5rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-logo {
  width: 6rem;
  height: 4.3rem;
}

.brand-name,
.main-nav a,
.nav-dropdown-toggle,
.header-cta,
.btn,
.section-heading span,
.process-grid h3,
.cap-card h3,
.footer-links h3 {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-name {
  position: relative;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2em;
  font-style: italic;
  transform: skew(-7deg);
  text-shadow: 0.08em 0 rgba(255,255,255,0.18);
}

.brand-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: -0.45rem;
  height: 1px;
  background: linear-gradient(90deg, var(--text), transparent);
  opacity: 0.72;
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.8rem);
}

.main-nav a,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  color: var(--muted);
  line-height: 1.2;
  padding: 0.55rem 0;
}

.nav-dropdown-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

.main-nav a::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a.active,
.main-nav a:hover,
.nav-dropdown.is-open > .nav-dropdown-toggle,
.nav-dropdown.is-active > .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  color: var(--text);
}

.main-nav a.active::after,
.main-nav a:hover::after,
.nav-dropdown.is-open > .nav-dropdown-toggle::after,
.nav-dropdown.is-active > .nav-dropdown-toggle::after,
.nav-dropdown-toggle:hover::after {
  transform: scaleX(1);
}

.main-nav a.active,
.nav-dropdown.is-active > .nav-dropdown-toggle {
  border: 1px solid rgba(255,255,255,0.1);
  padding-inline: 0.75rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.012) 72%, transparent);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.42);
}

.main-nav a.active::after,
.nav-dropdown.is-active > .nav-dropdown-toggle::after {
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.18rem;
  width: auto;
  height: 4px;
  background:
    radial-gradient(circle at left center, rgba(255,255,255,0.65) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,0.52), rgba(255,255,255,0.12) 52%, transparent 88%) left center / 100% 1px no-repeat;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  gap: 0.45rem;
}

.nav-dropdown-toggle::before {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
  order: 2;
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle::before {
  transform: rotate(225deg) translateY(-0.1rem);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 11rem;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(14px);
  transform: translate(-50%, 0.35rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-menu .nav-link {
  padding: 0.75rem 0.8rem;
}

.nav-dropdown-menu .nav-link::after {
  left: 0.8rem;
  right: 0.8rem;
  width: auto;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 3.25rem;
  border: 1px solid var(--line);
  padding: 0.95rem 1.35rem;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: #050606;
  border-color: var(--text);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.27rem auto;
  background: var(--text);
}

.section {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.hero {
  min-height: 58rem;
  display: flex;
  align-items: center;
  padding: 8rem clamp(1.3rem, 5vw, 5rem) 8rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.83) 34%, rgba(0,0,0,0.2) 64%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, #000 98%),
    url("assets/hero-drone.b570b188a50c.webp") center right / cover no-repeat;
}

.hero-bg::after,
.cta-band::before,
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at 64% 45%, black, transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(43rem, 100%);
}

.hero h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 1.2rem rgba(255,255,255,0.18);
}

.hero p {
  width: min(34rem, 100%);
  margin: 1.7rem 0 1.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

.eyebrow,
.product-copy span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-hero {
  min-height: 31rem;
  display: grid;
  align-items: end;
  padding: 10rem clamp(1.3rem, 5vw, 5rem) 4rem;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.96), rgba(0,0,0,0.74)),
    radial-gradient(circle at 74% 30%, rgba(255,255,255,0.12), transparent 28rem),
    #020303;
}

.page-hero > div {
  width: min(58rem, 100%);
}

.page-hero h1,
.split-section h2,
.contact-panel h2 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

.page-hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 1;
}

.page-hero p {
  width: min(45rem, 100%);
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.process,
.capabilities,
.product-preview,
.featured-products,
.bio-section,
.team-section,
.proof-strip,
.split-section,
.spec-section,
.contact-section,
.cta-band,
.site-footer {
  padding-inline: clamp(1.3rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.65rem;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  letter-spacing: 0.15em;
}

.section-heading h2::before,
.section-heading h2::after {
  content: "";
  width: min(8rem, 17vw);
  height: 1px;
  background: var(--line);
}

.process-grid h3,
.cap-card h3 {
  margin: 0;
  line-height: 1.45;
}

.process-grid p,
.cap-card p,
.cta-band p,
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.process {
  padding-top: 1rem;
  padding-bottom: 3.2rem;
  background: #000;
}

.process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  text-align: center;
}

.process-line {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 8.2rem;
  height: 1px;
  background: var(--line);
}

.process-grid article {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  -webkit-user-select: none;
  user-select: none;
}

.process-grid span {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid var(--text);
  border-radius: 50%;
  background: #050505;
  font-weight: 800;
}

.capabilities {
  padding-top: 2.2rem;
  padding-bottom: 2.4rem;
  background: #020303;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cap-card {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  display: flex;
  align-items: flex-end;
  padding: 1.35rem;
  border: 1px solid var(--line-soft);
  background: #101112;
  -webkit-user-select: none;
  user-select: none;
}

.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.9)),
    var(--card-art);
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition: transform 260ms ease, opacity 260ms ease;
}

.cap-card:hover::before {
  transform: scale(1.04);
  opacity: 0.82;
}

.rf-card {
  --card-art: url("assets/rf-systems.6fafbc2a7faa.webp");
}

.electronics-card {
  --card-art: url("assets/electronics-design.f003254af576.webp");
}

.sigint-card {
  --card-art: url("assets/signals-intelligence.c1594eb8ae94.webp");
}

.uav-card {
  --card-art:
    url("assets/hero-drone.b570b188a50c.webp");
}

.sdr-card {
  grid-column: 1 / -1;
}

.cap-card > * {
  position: relative;
  z-index: 1;
}

.cap-card .icon {
  position: absolute;
  right: 1.4rem;
  top: 1.3rem;
}

.cap-card div {
  display: grid;
  gap: 0.55rem;
}

.cap-card a {
  margin-top: 0.35rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.product-preview,
.featured-products,
.spec-section,
.contact-section {
  padding-top: 2.6rem;
  padding-bottom: 2.8rem;
  background: #020303;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  overflow: hidden;
  min-height: 30rem;
  border: 1px solid var(--line-soft);
  background: #070808;
  -webkit-user-select: none;
  user-select: none;
}

.product-media {
  min-height: 15rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.42)),
    var(--card-art);
  background-position: center;
  background-size: cover;
  filter: grayscale(1);
  transition: transform 260ms ease, opacity 260ms ease;
}

.product-card:hover .product-media {
  transform: scale(1.04);
  opacity: 0.82;
}

.product-copy {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.25rem;
}

.product-copy h3,
.spec-grid h3,
.feature-list h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

.product-copy p,
.spec-grid p,
.feature-list p,
.contact-panel p,
.contact-checklist li,
.proof-strip span {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.product-copy a {
  margin-top: 0.35rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.featured-products {
  background: #000;
  padding-top: 3.2rem;
  padding-bottom: 3.6rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.featured-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #070808;
  -webkit-user-select: none;
  user-select: none;
}

.featured-video {
  aspect-ratio: 16 / 10;
  background: #010101;
  border-bottom: 1px solid var(--line-soft);
}

.featured-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-video img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0rem;
  object-fit: contain;
}

.featured-copy {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.35rem;
}

.prototype-badge {
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.32);
  padding: 0.32rem 0.55rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.featured-copy h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: 0.1em;
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.featured-copy > a {
  width: fit-content;
  margin-top: 0.25rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}

.product-detail {
  padding: 9.5rem clamp(1.3rem, 5vw, 5rem) 4.5rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,0.09), transparent 24rem),
    #020303;
}

.product-detail-header {
  display: grid;
  gap: 1rem;
  width: min(66rem, 100%);
  margin-bottom: 2.5rem;
}

.product-detail-header h1,
.product-detail-copy h2,
.related-pages h2 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.05;
}

.product-detail-header h1 {
  font-size: clamp(2.6rem, 6vw, 5.3rem);
}

.product-detail-header p,
.product-detail-copy p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
}

.product-detail-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 28rem;
  margin: 0;
  border: 1px solid var(--line-soft);
  background: #050606;
}

.product-detail-media img,
.product-detail-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
}

.product-detail-copy h2,
.related-pages h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.product-detail-copy ul {
  display: grid;
  gap: 0.7rem;
  margin: 0.25rem 0 0.6rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.related-pages {
  display: grid;
  gap: 0.75rem;
  padding: 2.5rem clamp(1.3rem, 5vw, 5rem);
  background: #030404;
}

.product-detail .related-pages {
  margin: 3rem clamp(-5rem, -5vw, -1.3rem) -4.5rem;
}

.related-pages > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-pages a {
  border: 1px solid var(--line-soft);
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.related-pages a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.bio-section {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(16rem, 0.72fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  background: #020303;
}

.bio-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.bio-copy h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.bio-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.bio-image {
  overflow: hidden;
  min-height: 17rem;
  margin: 0;
  border: 1px solid var(--line-soft);
  background: #050606;
  filter: grayscale(1) contrast(1.1);
}

.bio-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 17rem;
  max-height: 21rem;
  object-fit: cover;
}

.team-section {
  display: grid;
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: 3.4rem;
  background: #020303;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(20rem, 1.22fr);
  min-height: 25rem;
  border: 1px solid var(--line-soft);
  background: #070808;
  -webkit-user-select: none;
  user-select: none;
}

.team-photo {
  overflow: hidden;
  margin: 0;
  background: #ededed;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 25rem;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.team-copy {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: clamp(1.35rem, 4vw, 3rem);
}

.team-copy h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.team-copy p {
  width: min(43rem, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line-soft);
  -webkit-user-select: none;
  user-select: none;
}

.proof-strip div {
  display: grid;
  gap: 0.4rem;
  min-height: 8.5rem;
  align-content: center;
  padding: 1.4rem;
  background: #030404;
}

.proof-strip strong {
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(20rem, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 3.4rem;
  padding-bottom: 3.4rem;
  background: #000;
}

.split-section h2 {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.feature-list,
.spec-grid {
  display: grid;
  gap: 1rem;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list article,
.spec-grid article,
.contact-panel {
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
  padding: 1.25rem;
  -webkit-user-select: none;
  user-select: none;
}

.spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 0.8fr);
  gap: 1rem;
}

.contact-panel {
  min-height: 20rem;
}

.contact-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.contact-panel p {
  margin-top: 1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.contact-checklist ul {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
}

.blog-section {
  padding-top: 2.5rem;
  padding-bottom: 3.4rem;
  background: #020303;
  width: 80%;
  margin: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-card,
.blog-empty {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 18rem;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)),
    #050606;
  padding: 1.25rem;
  -webkit-user-select: none;
  user-select: none;
}

.blog-card > span,
.blog-detail-header > span {
  color: var(--dim);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.blog-card h3,
.blog-empty h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.blog-card p,
.blog-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-link {
  margin-top: auto;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.blog-empty {
  width: min(42rem, 100%);
  min-height: 14rem;
}

.blog-detail {
  position: relative;
  display: grid;
  gap: 1.8rem;
  padding-top: 10rem;
  padding-bottom: 5rem;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    radial-gradient(circle at 72% 9%, rgba(255,255,255,0.13), transparent 25rem),
    #020303;
  background-size: 4rem 4rem, 4rem 4rem, auto, auto;
}

.blog-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020303 0, transparent 16%, transparent 84%, #020303 100%),
    linear-gradient(180deg, rgba(2,3,3,0), #020303 92%);
  pointer-events: none;
}

.article-back-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-inline: auto;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.32);
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.blog-detail-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  width: min(58rem, 100%);
  margin-inline: auto;
  padding-top: 0.6rem;
}

.blog-detail-header h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.98;
}

.blog-detail-header p {
  width: min(42rem, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.article-image-frame {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
  width: min(72rem, 100%);
  margin-inline: auto;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)),
    #030404;
  background-size: 1.1rem 1.1rem, 1.1rem 1.1rem, auto, auto;
}

.article-image-frame::before,
.article-image-frame::after {
  content: "";
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  pointer-events: none;
}

.article-image-frame::before {
  left: -1px;
  top: -1px;
  border-left: 1px solid var(--text);
  border-top: 1px solid var(--text);
}

.article-image-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}

.blog-hero-image,
.article-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.blog-hero-image {
  max-height: 34rem;
}

.article-image-caption {
  margin: 0;
  padding: 0 0.15rem 0.1rem;
  color: var(--dim);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.14em;
}

.article-toc {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) 1fr;
  gap: clamp(1rem, 3vw, 2.2rem);
  width: min(58rem, 100%);
  margin: 0.4rem auto 0.8rem;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    #030404;
  background-size: 1.2rem 1.2rem, 1.2rem 1.2rem, auto, auto;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.article-toc.is-empty {
  display: none;
}

.article-toc p {
  margin: 0.5rem 0 0;
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: article-toc;
}

.article-toc li {
  counter-increment: article-toc;
}

.article-toc a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.article-toc a::before {
  content: counter(article-toc, decimal-leading-zero);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.article-toc .toc-subitem a {
  color: var(--dim);
}

.blog-body {
  position: relative;
  z-index: 1;
  width: min(48rem, 100%);
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.blog-body h2,
.blog-body h3 {
  scroll-margin-top: 7rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.15;
}

.blog-body p,
.blog-body ul,
.blog-body ol {
  margin: 0 0 1rem;
}

.blog-body a {
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.42);
}

.blog-body blockquote {
  margin: 2rem 0;
  border-left: 2px solid var(--text);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 0.6rem),
    rgba(255,255,255,0.035);
  padding: 1.2rem 1.35rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.blog-body .article-image-frame {
  width: min(100%, 46rem);
  margin: 2rem auto;
}

.blog-body .article-image-frame img {
  margin: 0;
}

.tools-section {
  padding: 3.4rem 0 4.4rem;
  background: #020303;
}

.tools-shell,
.tool-page {
  width: min(80%, 76rem);
  margin-inline: auto;
}

.tools-heading {
  margin-bottom: 1.4rem;
}

.tool-finder {
  display: grid;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.052) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.12), transparent 22rem),
    #050606;
  background-size: 1.6rem 1.6rem, 1.6rem 1.6rem, auto, auto;
  padding: clamp(1rem, 2vw, 1.4rem);
  gap: 1rem;
}

.tool-search {
  display: grid;
  gap: 0.65rem;
}

.tool-search span,
.tool-filter,
.tool-result-kicker,
.tool-result-status {
  color: var(--dim);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.tool-search input {
  width: 100%;
  min-height: 3.6rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.46);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tool-search input:focus {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.tool-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tool-filter {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.38);
  padding: 0.72rem 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-filter:hover,
.tool-filter.is-active {
  border-color: rgba(255,255,255,0.48);
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.tool-index {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.tool-result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) minmax(14rem, 0.9fr) minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 32%),
    rgba(0,0,0,0.32);
  padding: 1rem 1.05rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tool-result::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 0.28rem;
  background: rgba(255,255,255,0.12);
  transition: background 180ms ease, width 180ms ease;
}

.tool-result:hover {
  border-color: rgba(255,255,255,0.44);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.1), transparent 36%),
    rgba(255,255,255,0.04);
  box-shadow: 0 0 1.2rem rgba(255,255,255,0.07);
}

.tool-result:hover::after {
  width: 0.46rem;
  background: rgba(255,255,255,0.5);
}

.tool-result strong {
  text-transform: uppercase;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.15;
}

.tool-result small,
.tool-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tool-result.is-hidden {
  display: none;
}

.tool-empty {
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.32);
  padding: 2rem;
  text-align: center;
}

.tool-page {
  padding-top: 10rem;
  padding-bottom: 4rem;
}

.tool-page .article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.32);
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.tool-page .article-back::before {
  content: "←";
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-0.02rem);
}

.tool-workbench {
  display: grid;
  grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  align-items: start;
}

.tool-workbench-copy {
  grid-column: 1 / -1;
}

.tool-workbench-copy,
.formula-pane,
.calculator-panel {
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.032) 1px, transparent 1px),
    #050606;
  background-size: 1.4rem 1.4rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
}

.formula-pane {
  position: relative;
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.formula-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.12), transparent 8rem),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%);
  opacity: 0.65;
}

.formula-pane > * {
  position: relative;
}

.formula-pane h2 {
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.formula-pane p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.formula-stack {
  display: grid;
  gap: 0.7rem;
}

.formula-card {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.34);
  padding: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.formula-card > span {
  color: var(--dim);
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.formula {
  margin: 0;
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.45;
  overflow-x: auto;
  scrollbar-width: thin;
}

.formula var {
  color: #ffffff;
  font-style: italic;
}

.formula sub,
.formula sup {
  font-size: 0.68em;
  line-height: 0;
}

.formula-note {
  border-left: 2px solid rgba(255,255,255,0.28);
  padding-left: 0.75rem;
}

.tool-source-card {
  display: grid;
  gap: 0.32rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(120deg, rgba(255,255,255,0.1), rgba(255,255,255,0.025));
  padding: 0.95rem;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tool-source-card:hover {
  border-color: rgba(255,255,255,0.55);
  background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
  transform: translateY(-1px);
}

.tool-source-card span,
.tool-source-card small {
  color: var(--dim);
  font-size: 0.65rem;
  line-height: 1.45;
}

.tool-source-card span {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tool-source-card strong {
  color: var(--text);
  font-size: 0.95rem;
}

.tool-workbench-copy h1 {
  margin: 0.9rem 0 1rem;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.5vw, 5.4rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.tool-workbench-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.calculator-panel label {
  display: grid;
  gap: 0.45rem;
}

.calculator-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.5rem, auto);
}

.calculator-input-row input {
  border-right: 0;
}

.calculator-input-row select {
  min-width: 5.5rem;
}

.calculator-control-wide {
  grid-column: 1 / -1;
}

.calculator-panel label span,
.calculator-results span {
  color: var(--dim);
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.calculator-panel input,
.calculator-panel select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.42);
  color: var(--text);
  padding: 0.85rem;
  font: inherit;
}

.calculator-panel select {
  min-height: 3.25rem;
}

.calculator-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.calculator-results output {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  padding: 1rem;
}

.calculator-results strong {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.itu-designator-results .calculator-result-primary {
  grid-column: 1 / -1;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.14), rgba(255,255,255,0.025)),
    rgba(0,0,0,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.itu-designator-results .calculator-result-primary strong {
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.designator-decoder {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%),
    rgba(0,0,0,0.34);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.designator-decoder-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}

.designator-decoder-heading h2 {
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.designator-decoder-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.designator-decoder input {
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.decoder-status {
  border-left: 2px solid rgba(255,255,255,0.34);
  padding: 0.2rem 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.decoder-status.is-valid {
  border-color: #9ad5ae;
  color: #b8dfc4;
}

.decoder-status.is-error {
  border-color: #ffb45b;
  color: #ffd09a;
}

@media (max-width: 700px) {
  .designator-decoder-heading {
    display: grid;
  }
}

.calculator-chart {
  grid-column: 1 / -1;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.42);
  padding: 1rem;
}

.calculator-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.calculator-chart-header strong {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.calculator-chart-header span,
.calculator-help {
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.5;
}

.calculator-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.calculator-chart .chart-grid { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.calculator-chart .chart-axis { stroke: rgba(255,255,255,0.36); stroke-width: 1; }
.calculator-chart .chart-label { fill: #909696; font: 10px system-ui, sans-serif; }
.calculator-chart .chart-curve { fill: none; stroke: #f3f5f5; stroke-width: 2.5; }
.calculator-chart .chart-target { stroke: #ffb45b; stroke-width: 1.5; stroke-dasharray: 5 4; }
.calculator-chart .chart-marker { fill: #ffb45b; stroke: #050606; stroke-width: 2; }
.calculator-help { grid-column: 1 / -1; margin: 0; }

.calculator-table {
  position: relative;
  grid-column: 1 / -1;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    rgba(0,0,0,0.42);
  background-size: 1.4rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  scrollbar-color: rgba(255,255,255,0.34) rgba(255,255,255,0.06);
}

.calculator-table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.calculator-table thead {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.11), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.045);
}

.calculator-table th,
.calculator-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

.calculator-table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.calculator-table td {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.calculator-table tbody tr {
  transition: background 160ms ease, color 160ms ease;
}

.calculator-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.035);
}

.calculator-table tbody tr:hover {
  background: rgba(255,255,255,0.085);
}

.calculator-table td:not(:first-child),
.calculator-table th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calculator-table td:first-child {
  color: var(--muted);
  font-weight: 800;
}

.calculator-table tr:last-child td {
  border-bottom: 0;
}

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.6rem;
  margin: 1rem clamp(1.3rem, 2vw, 1.8rem);
  padding: 1.55rem clamp(1.3rem, 4vw, 7rem);
  border: 1px solid var(--line);
  background:
    repeating-radial-gradient(ellipse at 18% 10%, rgba(255,255,255,0.1) 0 1px, transparent 1px 0.55rem),
    #030303;
}

.cta-band h2 {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: 0.15em;
}

.cta-band address {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 1.45fr) repeat(3, minmax(7.25rem, 0.72fr)) minmax(12rem, 1fr);
  gap: 0;
  padding-top: 4.5rem;
  padding-bottom: 1.4rem;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(255,255,255,0.075), transparent 24rem),
    radial-gradient(circle at 94% 25%, rgba(255,255,255,0.05), transparent 20rem),
    linear-gradient(180deg, #040505, #010202);
  background-size: 2rem 2rem, 2rem 2rem, auto, auto, auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: clamp(1.3rem, 5vw, 5rem);
  right: clamp(1.3rem, 5vw, 5rem);
  height: 3px;
  background:
    radial-gradient(circle at left center, rgba(255,255,255,0.75) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.12) 42%, transparent 82%) left center / 100% 1px no-repeat;
  opacity: 0.7;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 0;
  padding: 0 clamp(1.5rem, 3vw, 3rem) 1rem 0;
  border-right: 1px solid var(--line-soft);
}

.footer-brand h2 {
  position: relative;
  width: fit-content;
  margin: 0 0 1.4rem;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.16em;
  transform: skew(-7deg);
  text-shadow: 0.08em 0 rgba(255,255,255,0.18);
}

.footer-brand h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: -0.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--text), transparent);
  opacity: 0.72;
}

.footer-brand p {
  max-width: 30rem;
}

.footer-brand .footer-tagline {
  max-width: 23rem;
  margin: 0 0 0.9rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 0.14em;
}

.footer-logo {
  width: 10.5rem;
  height: 7rem;
  margin: -1rem 0 -0.45rem -0.8rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 0;
  padding: 0.4rem clamp(1.25rem, 2.3vw, 2.4rem) 1rem;
  border-right: 1px solid var(--line-soft);
  background: transparent;
}

.footer-contact {
  border-right: 0;
}

.footer-links h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.footer-links h3::after {
  content: "";
  width: 2rem;
  height: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.55);
  border-right: 1px solid rgba(255,255,255,0.55);
  transform: skew(-38deg);
}

.footer-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0.42rem 0 0.42rem 0.9rem;
  transition: color 160ms ease, transform 160ms ease;
  overflow-wrap: anywhere;
}

.footer-links a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--dim);
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(0.2rem);
}

.footer-contact a {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.55rem;
  padding-left: 0;
}

.footer-contact a::before {
  content: none;
}

.footer-contact a span {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-weight: 800;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.35rem 0 0;
  color: var(--dim);
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  font-size: 0.78rem;
}

.footer-bottom a {
  margin-left: 1.8rem;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--text);
}

.footer-utility {
  display: flex;
  align-items: center;
}

.footer-utility a + a {
  padding-left: 1.8rem;
  border-left: 1px solid var(--line-soft);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.open {
    position: fixed;
    top: 6.8rem;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--line);
  }

  .main-nav.open a {
    padding: 1rem;
  }

  .main-nav.open a.active,
  .main-nav.open .nav-dropdown.is-active > .nav-dropdown-toggle {
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(90deg, rgba(255,255,255,0.07), rgba(255,255,255,0.012) 72%, transparent);
    box-shadow: inset 1px 0 0 rgba(255,255,255,0.45);
  }

  .main-nav.open a.active::after,
  .main-nav.open .nav-dropdown.is-active > .nav-dropdown-toggle::after {
    left: 1rem;
    right: 1rem;
    bottom: 0.5rem;
    width: auto;
    height: 5px;
    background:
      radial-gradient(circle at left center, rgba(255,255,255,0.65) 0 1.5px, transparent 2px),
      linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12) 48%, transparent 86%) left center / 100% 1px no-repeat;
    transform: scaleX(1);
  }

  .main-nav.open .nav-dropdown {
    display: grid;
  }

  .main-nav.open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 1rem;
  }

  .main-nav.open .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.4rem 0.8rem;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav.open .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .hero {
    min-height: 46rem;
  }

  .process-grid,
  .capability-grid,
  .product-grid,
  .featured-grid,
  .product-detail-grid,
  .bio-section,
  .team-card,
  .proof-strip,
  .split-section,
  .feature-list,
  .spec-grid,
  .contact-section,
  .blog-grid,
  .article-toc,
  .tools-heading,
  .tool-result,
  .tool-workbench,
  .calculator-panel,
  .calculator-results,
  .site-footer,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .tools-shell,
  .tool-page {
    width: calc(100% - 2rem);
  }

  .tool-result {
    align-items: start;
  }

  .article-toc ol {
    grid-template-columns: 1fr;
  }

  .process-line {
    display: none;
  }

  .cta-band {
    margin-inline: 1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 0 0 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .footer-links {
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 0.75rem;
  }

  .brand {
    gap: 0.2rem;
  }

  .brand-name {
    display: block;
    max-width: none;
    font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    line-height: 1.15;
    letter-spacing: 0.055em;
    white-space: nowrap;
  }

  .brand-logo {
    width: clamp(4.3rem, 17vw, 5.1rem);
    height: 3.85rem;
  }

  .site-header .brand-logo {
    margin-right: -0.25rem;
  }

  .hero {
    min-height: 42rem;
    padding: 7rem 1.25rem 3.5rem;
    align-items: flex-end;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.88) 58%, #000 100%),
      url("assets/hero-drone.b570b188a50c.webp") 61% top / auto 62% no-repeat;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .hero .eyebrow {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.64rem;
    line-height: 1.5;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .page-hero {
    min-height: 0;
    padding: 7.5rem 1.5rem 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    overflow-wrap: break-word;
  }

  .products-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .product-detail {
    padding: 7.5rem 1.5rem 3.5rem;
  }

  .product-detail-header h1 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .product-detail-media {
    min-height: 20rem;
  }

  .product-detail .related-pages {
    margin: 2rem -1.5rem -3.5rem;
  }

  .related-pages > div,
  .related-pages a {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 1.5rem 1.25rem;
  }

  .site-footer::before {
    left: 1.5rem;
    right: 1.5rem;
  }

  .footer-brand {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    padding: 0 0 1.5rem;
  }

  .footer-brand h2 {
    font-size: clamp(1rem, 5vw, 1.3rem);
    letter-spacing: 0.055em;
    white-space: nowrap;
  }

  .footer-logo {
    width: 9rem;
    height: 6rem;
    margin: -0.8rem 0 -0.4rem -0.7rem;
  }

  .footer-links {
    min-height: 0;
    padding: 1.25rem 0 0;
  }

  .footer-bottom {
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 1.25rem 0 0;
    line-height: 1.5;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .section-heading h2 {
    gap: 0.8rem;
  }

  .section-heading h2::before,
  .section-heading h2::after {
    width: 2.4rem;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-bottom a {
    margin: 0 1rem 0 0;
  }

  .calculator-panel input,
  .calculator-panel select,
  .tool-search input {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
