/* ==========================================================================
   Horizon Aerospace LLC — Design system
   Palette: black / logo red / aluminium. Type: Saira (variable width).
   ========================================================================== */

@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --graphite: #24262b;
  --graphite-2: #34373e;
  --red: #d7141a;
  --red-deep: #9e0e12;
  --alu: #ecedef;
  --alu-2: #dfe1e5;
  --white: #ffffff;

  --ink: #15161a;
  --ink-2: #4a4d55;
  --ink-3: #6f737c;
  --rule: #c9ccd2;
  --rule-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #f3f4f6;
  --on-dark-2: #a9adb6;

  --font: "Saira", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --chamfer: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--alu);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main, .site-footer, .topbar { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--red); color: var(--white);
  padding: 10px 16px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type scale (1.25 ratio, wide display) ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  font-variation-settings: "wdth" 125;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons: chamfered like a panel cut-out ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.01em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --btn-bg: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn-dark { --btn-bg: var(--black); }
.btn-dark:hover { --btn-bg: var(--graphite); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
  clip-path: none;
}
.btn-ghost:hover { --btn-bg: var(--white); --btn-fg: var(--black); box-shadow: inset 0 0 0 1.5px var(--white); }
.on-light .btn-ghost:hover { --btn-bg: var(--black); --btn-fg: var(--white); box-shadow: inset 0 0 0 1.5px var(--black); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  font-weight: 600;
  color: var(--red);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease);
}
.text-link:hover { background-size: 100% 1.5px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--graphite);
  color: var(--on-dark-2);
  font-size: 0.82rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 36px;
}
.topbar-group { display: flex; gap: 24px; align-items: center; }
.topbar a:hover { color: var(--white); }
.status-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  background: #2fd16b; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47, 209, 107, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 209, 107, .55); }
  70% { box-shadow: 0 0 0 8px rgba(47, 209, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 209, 107, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .nav-row { height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 48px; }

.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--on-dark-2);
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--rule-dark);
  cursor: pointer; position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--white);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { content: ""; left: 0; top: -7px; }
.menu-toggle span::after { content: ""; left: 0; top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.bg-white { background: var(--white); }
.bg-alu { background: var(--alu); }
.bg-black { background: var(--black); color: var(--on-dark); }
.bg-black p, .bg-black .lead { color: var(--on-dark-2); }
.bg-graphite { background: var(--graphite); color: var(--on-dark); }
.bg-graphite p { color: var(--on-dark-2); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split {
  max-width: none;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end;
}
.section-head h2 { margin-bottom: 0.4em; }
.section-head.split h2 { margin-bottom: 0; }
.section-head p:last-child { margin-bottom: 0; }

/* A short red rule marks section starts instead of a label */
.rule-mark {
  display: block; width: 56px; height: 4px; margin-bottom: 24px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

/* ---------- HERO: artificial horizon ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 36px);
  min-height: calc(100svh - var(--header-h) - 36px);
  display: flex; flex-direction: column;
  background: var(--black);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.adi {
  position: absolute; inset: -30% -20%;
  z-index: -1;
  transform: translateY(var(--base, 0px)) rotate(var(--roll, -2.5deg)) translateY(var(--pitch, 0px));
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.adi-ground {
  position: absolute; left: 0; right: 0; top: 50%; bottom: 0;
  background:
    linear-gradient(180deg, rgba(215, 20, 26, .22), rgba(215, 20, 26, 0) 38%),
    var(--black);
}
.adi-sky {
  position: absolute; left: 0; right: 0; top: 0; bottom: 50%;
  background: linear-gradient(0deg, #1a1b1f 0%, #000 70%);
}
.adi-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px;
  background: var(--red);
  box-shadow: 0 0 28px rgba(215, 20, 26, .75);
  transform-origin: center;
  animation: horizon-draw 1.4s var(--ease) .1s both;
}
@keyframes horizon-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.adi-ladder {
  position: absolute; left: 64%; top: 50%;
  width: 420px; transform: translate(-50%, -50%);
}
.adi-ladder i {
  position: absolute; left: 50%; height: 1px;
  background: rgba(255, 255, 255, .22);
  transform: translateX(-50%);
}
.adi-ladder i::before,
.adi-ladder i::after {
  content: attr(data-deg);
  position: absolute; top: -9px;
  font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .35);
}
.adi-ladder i::before { left: -26px; }
.adi-ladder i::after { right: -26px; }

.hero-inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding-top: 40px; padding-bottom: 40px;
}
.hero-title {
  align-self: end;
  max-width: 15ch;
  margin: 0 0 clamp(32px, 6vh, 64px);
  color: var(--white);
}
.hero-title span { display: block; opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero-title span:nth-child(2) { animation-delay: .15s; }
.hero-divider { height: 3px; } /* spacer aligned with horizon */
.hero-sub {
  align-self: start;
  display: grid; grid-template-columns: minmax(0, 560px) auto; gap: 32px; align-items: start; justify-content: space-between;
  padding-top: clamp(32px, 6vh, 64px);
  opacity: 0; animation: rise .9s var(--ease) .45s forwards;
}
.hero-sub p { color: #c8cbd2; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* aircraft reference symbol, fixed while the horizon moves */
.aircraft-symbol {
  position: absolute; left: 69.6%; top: 50%;
  width: 180px; transform: translate(-50%, -50%);
  color: var(--white); opacity: .85;
}

/* instrument readouts */
.readouts {
  position: relative;
  border-top: 1px solid var(--rule-dark);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
}
.readouts .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.readout {
  padding: 20px 24px 22px 0;
  border-right: 1px solid var(--rule-dark);
  margin-right: 24px;
}
.readout:last-child { border-right: 0; margin-right: 0; }
.readout dt { font-size: 0.82rem; color: var(--on-dark-2); margin-bottom: 4px; }
.readout dd {
  margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--white);
  font-variation-settings: "wdth" 115; font-variant-numeric: tabular-nums;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--black);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 112px) 0 clamp(120px, 13vw, 170px);
  overflow: hidden;
}
/* the horizon runs below the intro text, banked slightly */
.page-hero::before {
  content: "";
  position: absolute; left: -10%; right: -10%; bottom: clamp(52px, 6vw, 80px);
  height: 2px; background: var(--red);
  box-shadow: 0 0 22px rgba(215, 20, 26, .7);
  transform: rotate(-2deg);
  animation: horizon-draw 1.2s var(--ease) both;
}
.page-hero::after {
  content: "";
  position: absolute; left: -10%; right: -10%; bottom: -60px;
  height: calc(clamp(52px, 6vw, 80px) + 60px);
  background: linear-gradient(180deg, rgba(215, 20, 26, .2), rgba(215, 20, 26, 0) 80%);
  transform: rotate(-2deg); transform-origin: center top;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; color: var(--white); }
.page-hero p { color: #c8cbd2; max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 0; }
.breadcrumb { display: flex; gap: 10px; font-size: 0.88rem; color: var(--on-dark-2); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { color: var(--red); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.align-center { align-items: center; }

/* ---------- Capability list (home) ---------- */
.cap-list { border-top: 1px solid var(--rule); }
.cap-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 28px; align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding .35s var(--ease), background-color .35s var(--ease);
}
.cap-item::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.cap-item:hover::before { transform: scaleX(1); }
.cap-item:hover { padding-left: 16px; padding-right: 16px; background: var(--white); }
.cap-icon { width: 48px; height: 48px; color: var(--red); }
.cap-item h3 { margin: 0; }
.cap-item p { margin: 0; color: var(--ink-2); }
.cap-go {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cap-item:hover .cap-go { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Flight plan (process, a real sequence) ---------- */
.flightplan { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flightplan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px;
  border-top: 2px dashed rgba(255, 255, 255, .25);
}
.flightplan li { position: relative; padding-right: 24px; }
.wp {
  position: relative; z-index: 1;
  width: 48px; height: 48px; margin-bottom: 24px;
  display: grid; place-items: center;
  background: var(--black);
  border: 2px solid var(--red);
  transform: rotate(45deg);
  transition: background-color .3s var(--ease);
}
.wp b { transform: rotate(-45deg); font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.flightplan li:hover .wp { background: var(--red); }
.wp-code { display: block; font-size: 0.82rem; color: var(--red); font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.flightplan h3 { color: var(--white); margin-bottom: 8px; }
.flightplan p { font-size: 0.95rem; margin: 0; }

/* ---------- Sectors ---------- */
.sector {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--white);
  border-top: 3px solid var(--black);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sector:hover { border-top-color: var(--red); transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.sector svg { width: 40px; height: 40px; color: var(--red); margin-bottom: 20px; }
.sector h3 { margin-bottom: 10px; }
.sector p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--rule-dark); }
.stat { padding: 8px 28px; border-right: 1px solid var(--rule-dark); }
.stat strong {
  display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--white);
  font-variation-settings: "wdth" 125; font-weight: 700; font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.stat strong em { font-style: normal; color: var(--red); }
.stat > span { color: var(--on-dark-2); font-size: 0.95rem; }

/* ---------- Split feature ---------- */
.feature-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--black);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
.feature-visual svg { width: 100%; height: 100%; }
.check-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 12px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg) scale(.8); transform-origin: left top;
}
.bg-black .check-list li, .bg-graphite .check-list li { color: var(--on-dark-2); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--red);
  color: var(--white);
  padding: clamp(56px, 7vw, 88px) 0;
}
.cta-band::after {
  content: ""; position: absolute; right: -6%; top: -40%; bottom: -40%; width: 46%;
  background: var(--black);
  transform: skewX(-18deg);
}
.cta-band .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { margin: 0 0 8px; max-width: 20ch; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--black); }
.btn-light:hover { --btn-bg: var(--red); --btn-fg: var(--white); }

/* ---------- About ---------- */
.values { counter-reset: none; }
.value {
  padding: 28px 0 0;
  border-top: 2px solid var(--black);
}
.value h3 { margin-bottom: 10px; }
.value p { color: var(--ink-2); margin: 0; }

.mv-card {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  background: var(--graphite);
  color: var(--on-dark);
}
.mv-card h3 { color: var(--white); font-size: 1.6rem; }
.mv-card p { color: var(--on-dark-2); margin: 0; font-size: 1.05rem; }
.mv-card.red { background: var(--red); }
.mv-card.red p { color: rgba(255, 255, 255, .9); }

.logbook { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.logbook li { position: relative; padding: 0 0 40px 40px; }
.logbook li:last-child { padding-bottom: 0; }
.logbook li::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px;
  background: var(--alu); border: 2px solid var(--red); transform: rotate(45deg);
}
.logbook time { display: block; font-weight: 700; color: var(--red); font-variation-settings: "wdth" 120; margin-bottom: 4px; }
.logbook h3 { margin-bottom: 6px; }
.logbook p { color: var(--ink-2); margin: 0; }

.team-card { background: var(--white); padding: 28px; border-left: 3px solid var(--red); }
.team-card h3 { margin-bottom: 8px; }
.team-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- Services detail ---------- */
.svc-nav {
  position: sticky; top: 68px; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.svc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a {
  display: block; padding: 18px 16px; white-space: nowrap;
  font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.svc-nav a:hover, .svc-nav a.is-active { color: var(--ink); border-bottom-color: var(--red); }

.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 140px;
}
.svc:last-child { border-bottom: 0; }
.svc-head svg { width: 56px; height: 56px; color: var(--red); margin-bottom: 24px; }
.svc-head .ata { display: inline-block; font-size: .85rem; color: var(--ink-3); margin-bottom: 12px; }
.svc-body p { color: var(--ink-2); }
.svc-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 28px; }
.svc-specs div { background: var(--white); padding: 18px 20px; }
.svc-specs dt { font-size: .82rem; color: var(--ink-3); }
.svc-specs dd { margin: 2px 0 0; font-weight: 600; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 24px; margin: 0; }

/* ---------- Products ---------- */
.catalog-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px;
  background: transparent;
  border: 1.5px solid var(--rule);
  font-weight: 500; font-size: .92rem; color: var(--ink-2);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.search {
  position: relative; min-width: 260px;
}
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px;
  background: var(--white); border: 1.5px solid var(--rule);
  transition: border-color .2s var(--ease);
}
.search input:focus { outline: none; border-color: var(--red); }
.search svg { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; color: var(--ink-3); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product {
  display: flex; flex-direction: column;
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .5); }
.product[hidden] { display: none; }
.product-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--black);
  display: grid; place-items: center;
  overflow: hidden;
}
.product-visual svg { width: 58%; height: 70%; color: var(--white); transition: transform .5s var(--ease); }
.product:hover .product-visual svg { transform: scale(1.06); }
.product-visual .tag {
  position: absolute; left: 0; top: 16px;
  background: var(--red); color: var(--white);
  font-size: .8rem; font-weight: 600; padding: 4px 12px 4px 14px;
}
.product-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 8px; }
.product-body p { color: var(--ink-2); font-size: .97rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 20px; font-size: .85rem; color: var(--ink-3); }
.product-meta b { color: var(--ink); font-weight: 600; }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.empty-state { display: none; padding: 48px 0; text-align: center; }
.empty-state.is-visible { display: block; }

.brand-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule-dark);
}
.brand-strip span {
  display: grid; place-items: center; text-align: center;
  min-height: 92px; padding: 12px;
  border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  font-weight: 600; color: var(--on-dark-2); font-variation-settings: "wdth" 118;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.brand-strip span:hover { color: var(--white); background: rgba(215, 20, 26, .18); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { background: var(--white); padding: clamp(28px, 4vw, 48px); border-top: 4px solid var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .93rem; }
.field label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--alu);
  border: 1.5px solid transparent;
  border-bottom-color: var(--rule);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background: var(--white); border-color: var(--black); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); background: #fff5f5; }
.field-error { display: none; font-size: .85rem; color: var(--red); }
.field.has-error .field-error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }

.form-status {
  display: none;
  margin-top: 20px; padding: 16px 18px;
  font-weight: 500;
  border-left: 4px solid;
}
.form-status.is-success { display: block; background: #edf9f1; border-color: #1c9e4f; color: #11663a; }
.form-status.is-error { display: block; background: #fff1f1; border-color: var(--red); color: var(--red-deep); }

.info-card { background: var(--black); color: var(--on-dark); padding: clamp(28px, 4vw, 40px); }
.info-card h2 { font-size: 1.6rem; color: var(--white); }
.info-list { list-style: none; margin: 24px 0 0; padding: 0; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule-dark); }
.info-list svg { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.info-list dt, .info-list .k { font-size: .85rem; color: var(--on-dark-2); }
.info-list .v { color: var(--white); font-weight: 500; }
.info-list a.v:hover { color: var(--red); }
.zulu-box { margin-top: 24px; padding: 18px 20px; background: var(--graphite); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.zulu-box strong { font-size: 1.5rem; font-variation-settings: "wdth" 120; font-variant-numeric: tabular-nums; color: var(--white); }
.map-frame { margin-top: 24px; aspect-ratio: 4 / 3; background: var(--graphite); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-dark-2); padding-top: clamp(64px, 8vw, 96px); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.footer-grid { display: grid; grid-template-columns: minmax(300px, 1.5fr) 0.8fr 0.9fr 1.4fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 20px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.site-footer h4 { color: var(--white); margin-bottom: 18px; font-size: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-links a { transition: color .2s var(--ease), padding .2s var(--ease); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.newsletter { display: flex; margin-top: 16px; }
.newsletter input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  background: var(--graphite); border: 1px solid var(--graphite-2); color: var(--white);
}
.newsletter input:focus { outline: none; border-color: var(--red); }
.newsletter .btn { min-height: 48px; clip-path: none; }
.newsletter-msg { font-size: .88rem; margin-top: 10px; min-height: 1.4em; }
.newsletter-msg.ok { color: #5bd88a; }
.newsletter-msg.err { color: #ff6b6f; }
.footer-bottom {
  border-top: 1px solid var(--rule-dark);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; padding-bottom: 22px; font-size: .86rem;
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--red); color: var(--white); border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--black); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-group.is-in > * { opacity: 1; transform: none; }
.js .reveal-group.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-group.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-group.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-group.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-group.is-in > *:nth-child(6) { transition-delay: .40s; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound strong { display: block; font-size: clamp(5rem, 16vw, 11rem); line-height: 1; color: var(--red); font-variation-settings: "wdth" 125; }
.notfound p { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; top: 0;
    width: min(360px, 86vw);
    background: var(--black);
    border-left: 1px solid var(--rule-dark);
    padding: 100px 28px 28px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    z-index: 99;
  }
  .menu-open .main-nav { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--rule-dark); }
  .main-nav a::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  .menu-toggle { display: block; z-index: 101; }
  .nav-cta .btn { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 98; }
  .menu-open .nav-backdrop { opacity: 1; visibility: visible; }

  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 24px; border-bottom: 1px solid var(--rule-dark); }
  .flightplan { grid-template-columns: 1fr; gap: 28px; }
  .flightplan::before { left: 23px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed rgba(255,255,255,.25); }
  .flightplan li { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 0; }
  .wp { margin: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .aircraft-symbol { width: 120px; }
}

@media (max-width: 820px) {
  .topbar .hide-sm { display: none; }
  .section-head.split, .grid-2, .svc, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .cap-item { grid-template-columns: 48px 1fr; gap: 12px 20px; }
  .cap-item p { grid-column: 2; }
  .cap-go { display: none; }
  .hero-sub { grid-template-columns: 1fr; }
  .readouts .wrap { grid-template-columns: repeat(2, 1fr); }
  .readout { border-right: 0; margin-right: 0; padding-right: 12px; border-bottom: 1px solid var(--rule-dark); }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .cta-band::after { width: 70%; right: -40%; opacity: .9; }
  .aircraft-symbol, .adi-ladder { display: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .grid-4, .stats, .product-grid, .form-grid, .svc-specs, .footer-grid { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .catalog-bar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .topbar-group { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-group > *, .hero-title span, .hero-sub { opacity: 1; transform: none; }
}

/* ==========================================================================
   Photography
   ========================================================================== */
img.photo { width: 100%; height: 100%; object-fit: cover; }
img.is-broken { display: none; }

/* Hero: engine photo behind the artificial horizon */
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .78; }
.hero:has(.hero-photo) .adi-sky { background: linear-gradient(0deg, rgba(20, 21, 25, .55) 0%, rgba(0, 0, 0, .25) 70%); }
.hero:has(.hero-photo) .adi-ground { background: linear-gradient(180deg, rgba(215, 20, 26, .3), rgba(0, 0, 0, .55) 45%); }
.hero:has(.hero-photo) .adi-ladder,
.hero:has(.hero-photo) .aircraft-symbol { display: none; }

/* Parts showcase tiles */
.parts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.part-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--black); color: var(--white);
}
.part-tile img { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.part-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%);
}
.part-tile::before {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 2;
  width: 100%; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.part-tile:hover img { transform: scale(1.06); }
.part-tile:hover::before, .part-tile:focus-visible::before { transform: scaleX(1); }
.part-tile-body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.part-ata { display: block; font-size: .82rem; color: #ff5a5f; font-weight: 600; margin-bottom: 2px; }
.part-tile strong { font-size: 1.3rem; font-variation-settings: "wdth" 120; line-height: 1.2; }

/* Photo frames */
.feature-visual.photo-frame img { position: absolute; inset: 0; }
.svc-photo {
  margin-top: 28px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alu);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

/* Product cards with photos */
.product-visual img.photo { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.product-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 40%); pointer-events: none; }
.product-visual .tag { z-index: 2; }
.product:hover .product-visual img.photo { transform: scale(1.06); }

/* Inner page heroes with a background photo */
.page-hero.has-photo {
  background-color: var(--black);
  background-image: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.45) 100%), var(--bg);
  background-size: cover; background-position: center;
}

/* Footer contact block */
.footer-contact { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-contact span { display: inline-block; min-width: 72px; color: var(--white); font-weight: 600; }
.footer-contact a:hover { color: var(--white); }

@media (max-width: 1080px) {
  .topbar .hide-md { display: none; }
  .parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-photo { width: 100%; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 70%); mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 70%); }
  .hero-photo img { opacity: .45; }
  .page-hero.has-photo { background-image: linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.82)), var(--bg); }
}
@media (max-width: 600px) {
  .parts-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar-group:first-child { display: none; }
}
.footer-contact li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; font-size: .9rem; }
.footer-contact a { white-space: nowrap; }
a[href^="mailto:"], a[href^="tel:"] { white-space: nowrap; }
