/* ═══════════════════════════════════════════════════════════════
   QMW Industries — Built to Protect.
   Design system per DESIGN.md — charcoal base, orange ≤10%, Barlow only.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Colour */
  --qmw-orange: #EC7A2D;
  --qmw-orange-dark: #C45E1A;
  --qmw-orange-light: #F5A96B;
  --qmw-yellow: #F5B81A;
  --qmw-charcoal: #2E3340;
  --qmw-charcoal-mid: #3C4455;
  --qmw-charcoal-light: #515B6E;
  --qmw-slate: #8B96A8;
  --qmw-off-white: #F4F3F0;
  --accent-soft: rgba(236, 122, 45, 0.15);
  --border-hairline: rgba(255, 255, 255, 0.06);

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-sub: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;

  --fs-hero: clamp(64px, 9vw, 120px);
  --fs-display: clamp(48px, 6vw, 80px);
  --fs-h2: 36px;
  --fs-h3: 24px;
  --fs-lead: 20px;
  --fs-body: 15px;
  --fs-body-sm: 13px;
  --fs-caption: 12px;
  --fs-label: 11px;

  /* Layout */
  --max-w: 1280px;
  --gutter: 80px;
  --nav-h: 56px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
  --dur-fast: 120ms;
  --dur-slow: 320ms;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.20);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.30);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--qmw-charcoal);
  color: var(--qmw-off-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--qmw-orange); color: var(--qmw-charcoal); }

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

.container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 120px; position: relative; }

/* ── Typographic primitives ── */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--qmw-orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

.section-head { margin-bottom: 56px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  box-shadow: var(--shadow-1);
}
.btn--solid { background: var(--qmw-orange); color: #FFFFFF; }
.btn--solid:hover { background: var(--qmw-orange-dark); }
.btn--ghost { border: 1px solid var(--qmw-charcoal-light); color: var(--qmw-off-white); box-shadow: none; }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--qmw-orange); }
.btn--lg { min-height: 56px; padding: 16px 36px; font-size: 18px; }

/* ═══ Preloader ═══ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--qmw-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__bar {
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: var(--qmw-orange);
}
.preloader__inner { text-align: center; }
.preloader__logo {
  width: clamp(220px, 30vw, 380px);
  height: auto;
  margin-inline: auto;
}
.preloader__meta {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
}
.preloader__label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--qmw-slate);
}
.preloader__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--qmw-orange);
  font-variant-numeric: tabular-nums;
}
.preloader__curtain {
  position: absolute;
  inset: 0;
  background: var(--qmw-charcoal);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

/* Native cursors — the custom DOM cursor was removed (it lagged behind the
   real pointer when the hero dropped frames). Buttons/links use the OS
   pointer via the base `button { cursor: pointer }` and anchor defaults. */

/* ═══ Film grain ═══
   (replaces the vertical grid-overlay lines, removed per review)
   A whisper of animated grain over everything: fixed overlay, oversized so
   the steps() jitter never exposes an edge. Reduced-motion users get static
   grain via the global animation kill. */
body::after {
  content: '';
  position: fixed;
  inset: -120px;
  z-index: 950;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  animation: grain-jitter 0.9s steps(6) infinite;
}
@keyframes grain-jitter {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-34px, 22px); }
  40%  { transform: translate(18px, -41px); }
  60%  { transform: translate(-52px, -13px); }
  80%  { transform: translate(41px, 37px); }
  100% { transform: translate(0, 0); }
}

/* ═══ Navigation ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 80;
  background: rgba(46, 51, 64, 0.97);
  border-bottom: 1px solid rgba(236, 122, 45, 0.25);
  transition: transform var(--dur-slow) var(--ease),
              background-color 320ms var(--ease), border-color 320ms var(--ease);
}
/* over the cinematic hero the nav floats transparent until the page scrolls */
body:has(.hero--reel) .nav:not(.nav--solid) {
  background: transparent;
  border-bottom-color: transparent;
}
/* during the intro only the logo shows; the menu items fade in over the
   take's final glide, finishing exactly as the machine comes to rest */
.nav__links, .nav__cta, .nav__burger { transition: opacity 2000ms var(--ease); }
.nav--bare .nav__links, .nav--bare .nav__cta, .nav--bare .nav__burger {
  opacity: 0;
  pointer-events: none;
}
/* the logo is constant: same size, same place, always visible. During the
   intro it simply rides alone while the menu items wait for the settle. */
.nav.is-hidden { transform: translateY(-100%); }
/* backdrop strip above the bar: fills the phone's status-bar zone (time/battery)
   with the nav's own background so re-showing on scroll-up never leaves a
   see-through gap over it. Inherits the transparent state on the reel hero,
   and rides the same translateY when the nav hides. */
.nav::before {
  content: '';
  position: absolute;
  bottom: 100%; left: 0; right: 0;
  height: 120px;
  background: inherit;
}
.nav__inner {
  height: 100%;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo { display: flex; align-items: baseline; gap: 8px; }
.nav__logo-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--qmw-orange);
  letter-spacing: -0.01em;
}
.nav__logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--qmw-off-white);
}
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qmw-slate);
  padding-block: 4px;
  transition: color var(--dur) var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--qmw-orange);
  transition: right var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--qmw-orange); }
.nav__links a:hover::after { right: 0; }
.nav__cta { min-height: 36px; padding: 6px 18px; font-size: 13px; }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;   /* 44px minimum touch target */
  align-items: center;
}
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--qmw-off-white); transition: transform var(--dur) var(--ease); }

/* ═══ Mobile menu ═══ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--qmw-charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; gap: 8px; }
.menu__links a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  text-transform: uppercase;
  line-height: 1.05;
}
.menu__meta { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; color: var(--qmw-slate); }

/* ═══ Hero ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
/* Q-angle diagonal stripe — the only repeating background pattern */
.hero__stripes {
  position: absolute;
  top: 0; right: 0;
  width: 420px; height: 420px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(236, 122, 45, 0.05) 0px, rgba(236, 122, 45, 0.05) 2px,
    transparent 2px, transparent 14px
  );
  -webkit-mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__content { position: relative; z-index: 2; padding-top: 40px; }
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(70px, 10.5vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.015em;
  display: flex;
  flex-direction: column;
}
.hero__title-line { display: block; }
.hero__title-dot { color: var(--qmw-orange); }
.hero__lead {
  max-width: 520px;
  margin-top: 32px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--qmw-slate);
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.hero__actions-note {
  font-family: var(--font-sub);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-body-sm);
  color: var(--qmw-slate);
}
.hero__foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__stats {
  list-style: none;
  display: flex;
  gap: 56px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1;
}
.hero__stat-num sup { color: var(--qmw-orange); font-size: 0.6em; }
.hero__stat-label { font-size: var(--fs-caption); color: var(--qmw-slate); }
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--qmw-slate);
}
.hero__scroll-line {
  width: 1.5px;
  height: 48px;
  background: var(--qmw-charcoal-light);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--qmw-orange);
  animation: scroll-drip 2.2s var(--ease) infinite;
}
@keyframes scroll-drip {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ═══ Manifesto ═══ */
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 1080px;
  margin-top: 24px;
}
.manifesto__text .word { opacity: 0.14; }
.manifesto__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}
.manifesto__col {
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  background: var(--qmw-charcoal-mid);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.manifesto__col:hover { border-color: rgba(236, 122, 45, 0.30); box-shadow: var(--shadow-2); }
/* Corner brackets — engineering crop marks */
.manifesto__col::before, .manifesto__col::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--qmw-orange);
}
.manifesto__col::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.manifesto__col::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.manifesto__col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  margin-bottom: 12px;
}
.manifesto__col p { color: var(--qmw-slate); font-size: var(--fs-body); }

/* ═══ Capabilities ═══ */
.caps__list { border-top: 1px solid var(--border-hairline); }
.caps__row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 48px;
  align-items: center;
  gap: 32px;
  padding-block: 36px;
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
  transition: padding-left var(--dur-slow) var(--ease);
}
.caps__row::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--qmw-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.caps__row:hover::before { transform: scaleX(1); }
.caps__row:hover { padding-left: 16px; }
.caps__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--qmw-orange);
  letter-spacing: 0.1em;
}
.caps__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}
.caps__row:hover .caps__name { color: var(--qmw-orange); }
.caps__desc { color: var(--qmw-slate); font-size: var(--fs-body); max-width: 440px; }
.caps__arrow {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qmw-orange);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.caps__arrow svg { width: 20px; height: 20px; }
.caps__row:hover .caps__arrow { background: var(--qmw-orange); color: #FFFFFF; }

/* ═══ Process ═══ */
.process { padding-block: 120px 0; overflow: hidden; }
.process__head { margin-bottom: 64px; }
.process__viewport { position: relative; }
.process__track {
  display: flex;
  gap: 24px;
  /* align the first card with the .container content edge: the container is
     max-width'd and centred, so above 1440px viewports a plain gutter pad
     left the track hugging the viewport edge (latent since day one - only
     visible on wide monitors, worst on ultrawide) */
  padding-inline: max(var(--gutter), calc((100% - var(--max-w)) / 2));
  width: max-content;
}
.process__panel {
  width: min(560px, 78vw);
  min-height: 380px;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--qmw-charcoal-mid);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.process__panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.process__panel-bg img,
.process__panel-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(1);
  transition: filter 0.6s ease, opacity 0.6s ease;
}
.process__panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 51, 64, 0.30);
}
/* Only the card in focus comes alive in full colour */
.process__panel.is-active .process__panel-bg img,
.process__panel.is-active .process__panel-bg video {
  filter: grayscale(0);
  opacity: 0.55;
}
.process__panel-num, .process__panel-body {
  position: relative;
  z-index: 1;
}
.process__panel::before, .process__panel::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--qmw-orange);
}
.process__panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.process__panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.process__panel-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--qmw-charcoal-light);
}
.process__panel-body { margin-top: auto; padding-top: 48px; }
.process__panel-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 48px);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 12px;
}
.process__panel p { color: var(--qmw-slate); max-width: 380px; }
.process__progress { padding-block: 40px 120px; }
/* Mobile: the pinned horizontal scroll is desktop-only (main.js gates it at
   769px) and its JS mobile branch expects STACKED cards — but the track stayed
   a horizontal row at every width, leaving panels 2-4 unreachable off-screen.
   Stack them vertically; the per-panel reveal + nearest-centre focus take over. */
@media (max-width: 768px) {
  .process { padding-block: 80px; }
  .process__head { margin-bottom: 40px; }
  .process__track {
    flex-direction: column;
    width: auto;
    gap: 16px;
    padding-inline: var(--gutter);
  }
  .process__panel { width: 100%; min-height: 320px; padding: 28px; }
  /* the scrub progress bar is meaningless without the pin */
  .process__progress { display: none; }
}
.process__progress-bar {
  height: 2px;
  background: var(--qmw-charcoal-mid);
  position: relative;
  overflow: hidden;
}
.process__progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qmw-orange);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* ═══ Testing ═══ */
.testing {
  background: var(--qmw-charcoal-mid);
  border-block: 1px solid var(--border-hairline);
}
.testing__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}
.testing__title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--qmw-orange);
}
.testing__title-dot { color: var(--qmw-orange); }
.testing__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  margin-top: 64px;
}
.testing__copy { font-size: var(--fs-lead); line-height: 1.6; color: var(--qmw-off-white); }
.testing__facts { list-style: none; }
.testing__facts li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--qmw-slate);
  font-size: var(--fs-body);
  position: relative;
  padding-left: 20px;
}
/* Brand bullet: 6px orange square rotated 45° */
.testing__facts li::before {
  content: '';
  position: absolute;
  left: 0; top: 28px;
  width: 6px; height: 6px;
  background: var(--qmw-orange);
  transform: rotate(45deg);
  border-radius: 1px;
}
.testing__facts strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--qmw-off-white);
  letter-spacing: 0.04em;
}

/* ═══ Sectors ═══ */
.sectors__list { border-top: 1px solid var(--border-hairline); }
.sectors__item { border-bottom: 1px solid var(--border-hairline); }
.sectors__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 32px;
  padding-block: 28px;
  text-align: left;
  transition: padding-left var(--dur-slow) var(--ease);
}
.sectors__toggle:hover { padding-left: 16px; }
.sectors__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--qmw-orange);
  letter-spacing: 0.1em;
}
.sectors__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  text-transform: uppercase;
  line-height: 1;
  transition: color var(--dur) var(--ease);
}
.sectors__toggle:hover .sectors__name { color: var(--qmw-orange); }
.sectors__icon {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  justify-self: end;
}
.sectors__icon::before, .sectors__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--qmw-orange);
  transition: transform var(--dur-slow) var(--ease);
}
.sectors__icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.sectors__icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.sectors__toggle[aria-expanded="true"] .sectors__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.sectors__panel { overflow: hidden; height: 0; }
.sectors__panel p {
  padding: 0 0 32px 112px;
  color: var(--qmw-slate);
  max-width: 640px;
  font-size: var(--fs-lead);
}

/* ═══ CTA ═══ */
.cta { overflow: hidden; }
.cta__stripes {
  position: absolute;
  bottom: 0; left: 0;
  width: 380px; height: 380px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(236, 122, 45, 0.04) 0px, rgba(236, 122, 45, 0.04) 2px,
    transparent 2px, transparent 14px
  );
  -webkit-mask-image: radial-gradient(circle at bottom left, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at bottom left, #000 0%, transparent 70%);
  pointer-events: none;
}
.cta__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}
.cta__title-dot { color: var(--qmw-orange); }
.cta__note {
  margin-top: 24px;
  font-size: var(--fs-lead);
  color: var(--qmw-slate);
  max-width: 520px;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.cta__locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 24px;
  margin-top: 96px;
}
.cta__location {
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--qmw-charcoal-mid);
  padding: 32px;
  position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cta__location:hover { border-color: rgba(236, 122, 45, 0.30); box-shadow: var(--shadow-2); }
.cta__location::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--qmw-orange);
  border-right: none; border-bottom: none;
}
.cta__location h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  margin-bottom: 12px;
}
.cta__location p { color: var(--qmw-slate); }
.cta__location a { color: var(--qmw-off-white); transition: color var(--dur) var(--ease); }
.cta__location a:hover { color: var(--qmw-orange); }

/* ═══ Footer ═══ */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding-block: 56px 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer__blurb { margin-top: 16px; font-size: var(--fs-body-sm); color: var(--qmw-slate); max-width: 340px; }
/* Social buttons: official platform marks in the approved reversed (white) monochrome,
   icon-only (no label). Marks stay off-white; only the button chrome reacts on hover. */
.footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(244, 243, 240, 0.16); border-radius: 2px;
  color: var(--qmw-off-white);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer__social svg { width: 19px; height: 19px; fill: var(--qmw-off-white); }
.footer__social:hover { border-color: var(--qmw-orange); background: rgba(236, 122, 45, 0.10); }
.footer__social:focus-visible { outline: 2px solid var(--qmw-orange); outline-offset: 3px; }
.footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qmw-orange);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: var(--fs-body-sm);
  color: var(--qmw-slate);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--qmw-orange); }
.footer__addr { font-size: var(--fs-body-sm); color: var(--qmw-slate); margin-bottom: 16px; }
.footer__addr strong { display: block; color: var(--qmw-off-white); font-weight: 600; margin-bottom: 2px; }
.nav__logo-img { height: 30px; width: auto; }
.footer__logo-img { height: 40px; width: auto; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 40px;
  text-transform: uppercase;
  color: var(--qmw-orange);
  line-height: 1;
}
.footer__tagline {
  margin-top: 8px;
  font-family: var(--font-sub);
  font-style: italic;
  font-weight: 500;
  color: var(--qmw-slate);
  font-size: var(--fs-body-sm);
}
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qmw-slate);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--qmw-orange); }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--qmw-charcoal-light);
  font-size: var(--fs-caption);
}

/* ═══ Reveal defaults (JS enhances) ═══ */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
/* (gsap intro hooks — the reel hero manages its own copy reveal, so it is excluded) */
.js .hero:not(.hero--reel) [data-hero-lead],
.js .hero:not(.hero--reel) [data-hero-actions],
.js .hero:not(.hero--reel) [data-hero-foot] { opacity: 0; }
/* content-page (phero) hero title + meta: JS splits/animates them after
   document.fonts.ready, so hide them from first paint (like [data-reveal])
   or they flash visible -> hidden -> animate on load. product.js reveals
   them (opacity 1) when it animates; reduced-motion reveals them below. */
.js [data-phero-title], .js [data-phero-meta] { opacity: 0; }
/* hero background image/video: product.js sets it opacity 0 then fades it in,
   so it must be hidden from first paint too - otherwise the whole hero image
   paints visible, then JS snaps it hidden and fades it back = a blink on load */
.js [data-media-reveal] { opacity: 0; }
/* sidebar cards (reference panel / quote form): hidden from first paint and
   revealed with the main column, so the sidebar never shows alone on load
   while the data-reveal left column is still hidden */
.js .sidebar .pcard { opacity: 0; transform: translateY(24px); }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .caps__row { grid-template-columns: 56px 1fr 48px; }
  .caps__desc { grid-column: 2 / 3; grid-row: 2; }
  .caps__arrow { grid-row: 1; grid-column: 3; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding-block: 80px; }
  .section-head { margin-bottom: 40px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__stats { gap: 28px 40px; flex-wrap: wrap; }
  .hero__scroll { display: none; }
  /* No WebGL model on phones (see main.js) — the hero is type-led here. */
  .hero__canvas { display: none; }
  .hero__content { padding-top: 24px; }
  .hero__lead { max-width: none; }
  /* Stack the CTAs full-width — cleaner than an awkward wrap, bigger tap targets */
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__foot { padding-bottom: 24px; }
  .manifesto__grid { grid-template-columns: 1fr; margin-top: 48px; }
  .caps__row { gap: 16px; padding-block: 28px; }
  .process { padding-top: 80px; }
  .process__panel { min-height: 320px; padding: 28px; }
  .process__progress { padding-block: 32px 80px; }
  .testing__body { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .sectors__toggle { grid-template-columns: 44px 1fr 40px; gap: 16px; }
  .sectors__icon { width: 36px; height: 36px; }
  .sectors__panel p { padding-left: 60px; }
  .cta__locations { grid-template-columns: 1fr; margin-top: 64px; }
  .footer__top { flex-direction: column; }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js [data-phero-title], .js [data-phero-meta], .js [data-media-reveal],
  .js .sidebar .pcard,
  .js [data-hero-lead], .js [data-hero-actions], .js [data-hero-foot] {
    opacity: 1;
    transform: none;
  }
  .manifesto__text .word { opacity: 1; }
}
