/* ============================================================
   InScope Electronics — Design System
   Black theme · Themable accent (default = InScope Green)
   ============================================================ */

:root,
[data-theme="green"] {
  --accent: #a8d82c;
  --accent-bright: #c2ef3d;
  --accent-dim: #7ea520;
  --accent-glow: rgba(168, 216, 44, 0.35);
  --accent-soft: rgba(168, 216, 44, 0.1);
}
[data-theme="orange"] {
  --accent: #ff6b1a;
  --accent-bright: #ff8a3d;
  --accent-dim: #c54a00;
  --accent-glow: rgba(255, 107, 26, 0.35);
  --accent-soft: rgba(255, 107, 26, 0.1);
}
[data-theme="blue"] {
  --accent: #3d9fff;
  --accent-bright: #5fb5ff;
  --accent-dim: #2070c5;
  --accent-glow: rgba(61, 159, 255, 0.35);
  --accent-soft: rgba(61, 159, 255, 0.1);
}
[data-theme="saffron"] {
  --accent: #ff9e2c;
  --accent-bright: #ffb558;
  --accent-dim: #d07500;
  --accent-glow: rgba(255, 158, 44, 0.35);
  --accent-soft: rgba(255, 158, 44, 0.1);
}
[data-theme="magenta"] {
  --accent: #ff3d88;
  --accent-bright: #ff65a0;
  --accent-dim: #c81560;
  --accent-glow: rgba(255, 61, 136, 0.35);
  --accent-soft: rgba(255, 61, 136, 0.1);
}
[data-theme="white"] {
  --accent: #ffffff;
  --accent-bright: #ffffff;
  --accent-dim: #bbbbbb;
  --accent-glow: rgba(255, 255, 255, 0.35);
  --accent-soft: rgba(255, 255, 255, 0.1);
}

:root,
[data-bg="noir"] {
  --bg:           #000000;
  --surface:      #0a0a0a;
  --surface-2:    #141414;
  --surface-3:    #1c1c1c;
  --ink:          #ededed;
  --ink-2:        #c4c4c4;
  --ink-3:        #8a8a8a;
  --muted:        #5c5c5c;
  --line:         rgba(255,255,255,0.10);
  --line-strong:  rgba(255,255,255,0.22);
  --line-accent:  var(--accent);
}
[data-bg="carbon"] {
  --bg:           #0d1117;
  --surface:      #141a22;
  --surface-2:    #1c232e;
  --surface-3:    #252d3a;
  --ink:          #ededed;
  --ink-2:        #c0c7d3;
  --ink-3:        #8a94a3;
  --muted:        #5c6475;
  --line:         rgba(255,255,255,0.08);
  --line-strong:  rgba(255,255,255,0.20);
  --line-accent:  var(--accent);
}
[data-bg="midnight"] {
  --bg:           #070b1a;
  --surface:      #0f1428;
  --surface-2:    #151c36;
  --surface-3:    #1c2444;
  --ink:          #e9ecff;
  --ink-2:        #bac0de;
  --ink-3:        #7c84a3;
  --muted:        #4e5577;
  --line:         rgba(200,210,255,0.08);
  --line-strong:  rgba(200,210,255,0.22);
  --line-accent:  var(--accent);
}
[data-bg="graphite"] {
  --bg:           #1a1a1a;
  --surface:      #222222;
  --surface-2:    #2a2a2a;
  --surface-3:    #333333;
  --ink:          #ededed;
  --ink-2:        #c4c4c4;
  --ink-3:        #9a9a9a;
  --muted:        #6c6c6c;
  --line:         rgba(255,255,255,0.10);
  --line-strong:  rgba(255,255,255,0.22);
  --line-accent:  var(--accent);
}
[data-bg="paper"] {
  --bg:           #f2efe9;
  --surface:      #e8e3d7;
  --surface-2:    #dfd8c8;
  --surface-3:    #d2c9b5;
  --ink:          #111111;
  --ink-2:        #2a2a2a;
  --ink-3:        #6b6963;
  --muted:        #8a8780;
  --line:         rgba(17,17,17,0.15);
  --line-strong:  rgba(17,17,17,0.35);
  --line-accent:  var(--accent);
}
[data-bg="studio"] {
  --bg:           #ffffff;
  --surface:      #f4f4f2;
  --surface-2:    #ebebe8;
  --surface-3:    #dfdfdb;
  --ink:          #0a0a0a;
  --ink-2:        #2a2a2a;
  --ink-3:        #666666;
  --muted:        #999999;
  --line:         rgba(0,0,0,0.10);
  --line-strong:  rgba(0,0,0,0.25);
  --line-accent:  var(--accent);
}

/* ----- InScope brand face — DIMOD -----
   DIMOD has unusually wide glyphs (~1.5x normal cap advance) and extends
   beyond the em box vertically. These descriptors normalize its metrics
   so it renders at comparable size to other sans fonts in the stack. */
@font-face {
  font-family: 'DIMOD';
  src: url('fonts/DIMOD.woff2') format('woff2'),
       url('fonts/DIMOD.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 70%;
  ascent-override: 80%;
  descent-override: 18%;
  line-gap-override: 0%;
}

:root {

  /* InScope brand face (DIMOD) — reserved for the wordmark / hero brand moments.
     --logotype is kept on Audiowide to preserve the original layout sizing. */
  --brand:    'DIMOD', 'Audiowide', 'Chakra Petch', sans-serif;
  --logotype: 'Audiowide', 'Chakra Petch', 'Space Grotesk', sans-serif;
  --display:  'Chakra Petch', 'Space Grotesk', ui-sans-serif, sans-serif;
  --body:     'Inter', -apple-system, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;

  --r: 2px;
  --dur: 0.4s cubic-bezier(.2,.6,.2,1);
}

/* ----- Base ----- */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--accent); color: #000; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
em { font-style: italic; font-family: var(--display); font-weight: 300; color: var(--accent); }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }

/* ----- Containers ----- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; position: relative; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ----- Typography ----- */
.h1 {
  font-family: var(--logotype);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 5.5vw, 82px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--ink-3); }
.lead {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  max-width: 820px;
  color: var(--ink-2);
}

/* ----- Navigation ----- */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur);
}
nav.top .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
nav.top .brand svg { height: 36px; width: auto; }

/* Real InScope logo — transparent PNG, renders cleanly on any surface. Do not alter. */
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: center;
}
nav.top .logo-img { height: 42px; }
footer .logo-img {
  height: 120px;
  /* Subtle wave-glow — the INSCOPE green pulses like a heartbeat */
  animation: logo-pulse 3.4s cubic-bezier(.4, 0, .2, 1) infinite;
  filter: drop-shadow(0 0 0 var(--accent-glow));
  transition: filter .4s ease;
}
footer .logo-img:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 0 24px var(--accent));
}

/* Heartbeat-wave glow — off → build → peak → decay → off */
@keyframes logo-pulse {
  0%   { filter: drop-shadow(0 0 0   rgba(168,216,44, 0.0))  drop-shadow(0 0 0 rgba(168,216,44, 0.0)); }
  25%  { filter: drop-shadow(0 0 12px rgba(168,216,44, 0.35)) drop-shadow(0 0 24px rgba(168,216,44, 0.18)); }
  45%  { filter: drop-shadow(0 0 22px rgba(168,216,44, 0.65)) drop-shadow(0 0 44px rgba(168,216,44, 0.32)); }
  65%  { filter: drop-shadow(0 0 14px rgba(168,216,44, 0.35)) drop-shadow(0 0 28px rgba(168,216,44, 0.18)); }
  100% { filter: drop-shadow(0 0 0   rgba(168,216,44, 0.0))  drop-shadow(0 0 0 rgba(168,216,44, 0.0)); }
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.footer-brand .wordmark {
  font-family: var(--brand);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

nav.top .brand-text {
  font-family: var(--brand);  /* DIMOD — InScope brand face */
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  height: 36px;           /* match the brand SVG height for perfect baseline alignment */
}
nav.top ul { list-style: none; display: flex; gap: 28px; align-items: center; }
nav.top a.link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur);
}
nav.top a.link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: right var(--dur);
}
nav.top a.link:hover, nav.top a.link.active {
  color: var(--accent);
}
nav.top a.link:hover::after, nav.top a.link.active::after {
  right: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
@media (max-width: 960px) {
  nav.top ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px; gap: 18px; }
  nav.top ul.open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 640px) {
  nav.top { padding: 14px 16px; }
  nav.top .brand { gap: 8px; min-width: 0; }
  nav.top .brand svg { height: 26px; }
  nav.top .brand-text { font-size: 22px; height: 26px; letter-spacing: 0.03em; }
  .menu-toggle { padding: 7px 10px; font-size: 10px; letter-spacing: 0.15em; }
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.6fr;       /* animation now dominates */
  gap: 60px;
  padding: 96px 40px 48px;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: scanDown 8s linear infinite;
  pointer-events: none;
}
@keyframes scanDown {
  0% { transform: translateY(0); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
.hero-title { position: relative; z-index: 2; max-width: 520px; }
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  z-index: 2;
  min-height: 640px;
  width: 100%;
  max-width: 920px;
  margin-left: auto;
}
#hero-3d { position: absolute; inset: 0; }
#hero-seq { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); overflow: visible; }
#hero-seq text { fill: currentColor; }
.hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
}
.hero-meta .cell .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 6px;
}
.hero-meta .cell .v {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 88px 16px 32px; min-height: auto; gap: 28px; }
  .hero-title { max-width: 100%; margin: 0 auto; text-align: center; }
  .hero-title .h1 { font-size: clamp(28px, 7vw, 48px); }
  .hero-visual {
    order: -1;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
  }
  #hero-seq, #hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; padding-top: 16px; }
  .hero-meta .cell .k { font-size: 9px; }
  .hero-meta .cell .v { font-size: 13px; }
}

/* ----- Sections ----- */
section { padding: 80px 0; border-bottom: 1px solid var(--line); position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  margin-bottom: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  section { padding: 56px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}
.divider { height: 1px; background: var(--line); margin: 40px 0; }

/* ----- Marquee ----- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.marquee .sep { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat {
  padding: 36px 20px;
  border-right: 1px solid var(--line);
  transition: background var(--dur);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface); }
.stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat .num em {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  text-shadow: 0 0 24px var(--accent-glow);
  font-style: normal;
}
.stat .lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* ----- Value chain ----- */
.chain { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.step {
  padding: 32px 20px 28px;
  border-right: 1px solid var(--line);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background var(--dur);
  position: relative;
}
.step:last-child { border-right: none; }
.step:hover { background: var(--surface); }
.step:hover .ico svg { stroke: var(--accent); }
.step .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.step .name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.step .ico { height: 72px; margin: 24px 0 16px; display: flex; align-items: center; }
.step .ico svg { width: 72px; height: 72px; stroke: var(--ink); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--dur); }
.step p { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin-top: auto; }
@media (max-width: 1100px) { .chain { grid-template-columns: repeat(3, 1fr); } .step:nth-child(3n) { border-right: none; } }
@media (max-width: 640px) { .chain { grid-template-columns: repeat(2, 1fr); } .step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 240px; } .step:nth-child(2n) { border-right: none; } .step:nth-child(3n) { border-right: 1px solid var(--line); } }

/* ----- Journey ----- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); position: relative; }
.journey::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
}
.phase {
  padding: 44px 32px 48px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  transition: background var(--dur);
  position: relative;
}
.phase:last-child { border-right: none; }
.phase:hover { background: var(--surface); }
.phase-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; position: relative; }
.phase-head::before {
  content: "";
  position: absolute;
  top: -48px;
  left: 0;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent-glow);
}
.phase-num { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px; }
.phase h3 { font-family: var(--display); font-size: clamp(36px, 4.2vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; color: var(--ink); }
.phase-year { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em; margin-top: 14px; }
.phase-lead { font-family: var(--body); font-style: italic; font-size: 16px; font-weight: 300; color: var(--ink); margin-bottom: 16px; line-height: 1.5; }
.phase-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.phase-beats { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.phase-beats li {
  padding: 12px 0 12px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-2);
  transition: padding var(--dur), color var(--dur);
}
.phase-beats li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}
.phase-beats li:hover { padding-left: 28px; color: var(--accent); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } .phase { border-right: none; border-bottom: 1px solid var(--line); } }

/* ----- Language items ----- */
.lang { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.lang-visual svg { width: 100%; stroke: var(--ink); fill: none; stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-items { border-top: 1px solid var(--line); }
.lang-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding var(--dur), background var(--dur);
  position: relative;
}
.lang-row::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur), left var(--dur);
}
.lang-row:hover { padding-left: 16px; }
.lang-row:hover::before { opacity: 1; left: 0; }
.lang-row:hover .t { color: var(--accent); }
.lang-row .n { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.15em; }
.lang-row .t {
  font-family: var(--display);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--dur);
}
.lang-row .t small { display: block; font-family: var(--body); font-size: 12px; font-weight: 300; color: var(--ink-3); margin-top: 4px; text-transform: none; letter-spacing: 0; }
.lang-row .m { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; letter-spacing: 0.15em; text-transform: uppercase; }
@media (max-width: 900px) { .lang { grid-template-columns: 1fr; } .lang-row { grid-template-columns: 40px 1fr 90px; gap: 12px; } }

/* ----- Products ----- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.product:last-child { border-bottom: none; }
.product:nth-of-type(even) .product-visual { order: -1; }
.product-visual {
  aspect-ratio: 5/4;
  border: 1px solid var(--line);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur);
}
.product-visual:hover { border-color: var(--accent); }
.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, var(--accent-soft) 0%, transparent 55%);
  pointer-events: none;
}
.product-visual svg { width: 100%; height: 100%; stroke: var(--ink); fill: none; stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 2; }
.product-info .label {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.product-info .name {
  font-family: var(--display);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 16px 0 8px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.product-info .tag {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 24px;
}
.product-info .desc { font-size: 15px; max-width: 520px; color: var(--ink-2); line-height: 1.65; }
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.spec { display: flex; flex-direction: column; gap: 6px; }
.spec .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.spec .v { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.01em; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .product:nth-of-type(even) .product-visual { order: 0; }
  .product-visual { padding: 24px; }
}

/* ----- Leaders ----- */
.leaders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.leader {
  padding: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background var(--dur);
  position: relative;
  overflow: hidden;
}
.leader:hover { background: var(--surface-2); }
.leader:hover .leader-photo img { transform: scale(1.04); filter: grayscale(0); }
.leader-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #000;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.35) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.leader-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 40%);
  pointer-events: none;
}
.leader-photo .index {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  z-index: 2;
  background: rgba(0,0,0,0.7);
  padding: 6px 10px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.leader-body { padding: 28px 24px 32px; }
.leader .name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.leader .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}
.leader .bio { font-size: 13px; color: var(--ink-2); margin-top: 18px; line-height: 1.65; }
.leader .tags { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.leader .tags span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 9px;
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .leaders { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .leaders { grid-template-columns: 1fr; border-left: none; } .leader { border-right: none; } }

/* ----- ODM ----- */
.odm-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
}
.odm-visual {
  padding: 48px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 60%);
}
.odm-visual svg { width: 100%; height: 100%; max-height: 380px; stroke: var(--ink); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.odm-body { padding: 56px 48px; }
.odm-body h3 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 20px; text-transform: uppercase; color: var(--ink); }
.odm-body p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; max-width: 540px; margin-bottom: 16px; }
.odm-list { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); counter-reset: odm; }
.odm-list li {
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  position: relative;
  counter-increment: odm;
  color: var(--ink);
  transition: color var(--dur), padding-left var(--dur);
}
.odm-list li::before {
  content: counter(odm, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.odm-list li:hover { color: var(--accent); padding-left: 56px; }
@media (max-width: 900px) {
  .odm-wrap { grid-template-columns: 1fr; }
  .odm-visual { border-right: none; border-bottom: 1px solid var(--line); padding: 32px; min-height: 320px; }
  .odm-body { padding: 36px 28px; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--accent);
  color: #000;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all var(--dur);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn:hover { box-shadow: 0 0 30px var(--accent-glow); background: var(--accent-bright); }
.btn:hover::after { transform: translateX(100%); }
.btn .arrow { transition: transform var(--dur); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ----- CTA ----- */
.cta { padding: 100px 0; text-align: left; background: linear-gradient(180deg, var(--bg), var(--surface)); border-bottom: 1px solid var(--line); }
.cta .h1 { max-width: 1180px; }
.cta-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .cta-row { grid-template-columns: 1fr; gap: 32px; } }

/* ----- Footer ----- */
footer { padding: 80px 0 32px; background: #000; color: var(--ink); border-top: 1px solid var(--line); }
footer a { color: var(--ink-2); transition: color var(--dur); }
footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
footer h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 13.5px; font-weight: 300; }
footer .brand-block svg { height: 54px; width: auto; margin-bottom: 16px; }
footer .blurb { font-size: 13.5px; color: var(--ink-3); max-width: 380px; margin-top: 8px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; } }

/* ----- Corner tick marks (engineering drawing) ----- */
.tick { position: absolute; width: 16px; height: 16px; border: 1px solid var(--accent); opacity: 0.5; }
.tick.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.tick.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.tick.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.tick.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* ----- Reveal ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----- Theme switcher ----- */
.theme-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  font-family: var(--mono);
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color var(--dur), background var(--dur);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .dot {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}
.theme-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  padding: 20px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.theme-panel.open { display: flex; }
.theme-panel h6 { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }
.theme-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.theme-color {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color var(--dur), transform var(--dur);
  position: relative;
}
.theme-color:hover { transform: scale(1.08); border-color: #fff; }
.theme-color.active { border: 2px solid #fff; box-shadow: 0 0 12px rgba(255,255,255,0.4); }
.theme-color[data-color="green"] { background: #a8d82c; }
.theme-color[data-color="orange"] { background: #ff6b1a; }
.theme-color[data-color="blue"] { background: #3d9fff; }
.theme-color[data-color="saffron"] { background: #ff9e2c; }
.theme-color[data-color="magenta"] { background: #ff3d88; }
.theme-color[data-color="white"] { background: #fff; }

/* ----- Page header (not home) ----- */
.page-header {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, var(--bg), #000 40%, #000);
}
.page-header .container { position: relative; z-index: 2; }
.page-header .h1 { margin-top: 24px; max-width: 1100px; }
@media (max-width: 900px) { .page-header { padding: 112px 0 48px; } .page-header .h1 { margin-top: 16px; } }

/* ----- Product cards ----- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card {
  padding: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background var(--dur);
  display: flex;
  flex-direction: column;
}
.product-card:hover { background: var(--surface-2); }
.product-card:hover .product-card-visual { border-color: var(--accent); }
.product-card-visual {
  aspect-ratio: 4/3;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color var(--dur);
}
.product-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%);
}
.product-card-visual svg { width: 100%; height: 100%; stroke: var(--ink); fill: none; stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 2; }
.product-card-body { padding: 24px 22px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card .category { font-family: var(--mono); font-size: 9.5px; color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; }
.product-card .title { font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin-top: 8px; color: var(--ink); line-height: 1.1; }
.product-card .desc { font-size: 13px; color: var(--ink-3); margin-top: 12px; line-height: 1.55; flex: 1; }
.product-card .card-specs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.product-card .card-specs .k { font-family: var(--mono); font-size: 9px; color: var(--ink-3); letter-spacing: 0.15em; text-transform: uppercase; }
.product-card .card-specs .v { font-family: var(--display); font-size: 13px; color: var(--ink); font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; border-left: none; } .product-card { border-right: none; } }

/* ----- Contact form ----- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.form-field textarea { min-height: 160px; resize: vertical; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ----- Section intro (single column) ----- */
.intro { max-width: 1080px; margin: 0 auto; }

/* ============================================================
   Products dropdown (nav)
   ============================================================ */
nav.top .dropdown { position: relative; }
nav.top .dropdown > a.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Invisible bridge pseudo-element below the link — absorbs cursor in the gap
   between nav-link bottom and dropdown-menu top. Always hittable so moving
   into it FROM the link keeps the .dropdown:hover state active. Wider than
   the menu so diagonal travel paths still land in it. */
nav.top .dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -40px;
  right: -40px;
  height: 24px;
  pointer-events: auto;
  z-index: 121;
}
nav.top .dropdown .caret {
  font-size: 8px;
  transition: transform var(--dur);
  opacity: 0.7;
  display: inline-block;
  transform: translateY(1px);
}
nav.top .dropdown:hover .caret,
nav.top .dropdown.open .caret,
nav.top .dropdown:focus-within .caret { transform: translateY(1px) rotate(180deg); opacity: 1; }

nav.top .dropdown-menu {
  position: absolute;
  /* Sits flush with the bottom of the .dropdown li. The link's padding-bottom
     + .dropdown::after bridge guarantee an unbroken hover surface. */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-top: none;
  padding: 22px 0 14px; /* 22px top-pad holds the accent bar + arrow */
  background-clip: padding-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur);
  z-index: 120;
  list-style: none;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8), 0 0 40px -10px var(--accent-glow);
}
/* Accent bar across the top of the dropdown — purely decorative. */
nav.top .dropdown-menu::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -1px; right: -1px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  pointer-events: none;
  z-index: 2;
}
/* Little diamond arrow — purely decorative, cannot catch the cursor. */
nav.top .dropdown-menu::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--accent);
  pointer-events: none;
  z-index: 3;
}
nav.top .dropdown:hover .dropdown-menu,
nav.top .dropdown.open .dropdown-menu,
nav.top .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}
nav.top .dropdown-menu li { list-style: none; margin: 0; }
nav.top .dropdown-menu a {
  display: block;
  padding: 11px 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--dur), background var(--dur), padding var(--dur);
  position: relative;
  font-weight: 500;
}
nav.top .dropdown-menu a:hover,
nav.top .dropdown-menu a:focus,
nav.top .dropdown-menu a.active {
  color: var(--accent);
  background: var(--accent-soft);
  padding-left: 34px;
  outline: none;
}
nav.top .dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width var(--dur);
}
nav.top .dropdown-menu a:hover::before,
nav.top .dropdown-menu a:focus::before,
nav.top .dropdown-menu a.active::before { width: 3px; }

nav.top .dropdown-menu .sep {
  height: 1px;
  background: var(--line);
  margin: 6px 22px;
}
nav.top .dropdown-menu .label {
  display: block;
  padding: 6px 28px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 960px) {
  nav.top .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    background: transparent;
    border: none;
    border-left: 2px solid var(--accent);
    padding: 10px 0 10px 14px;
    margin-top: 8px;
    margin-left: 4px;
    box-shadow: none;
    backdrop-filter: none;
  }
  nav.top .dropdown-menu::before,
  nav.top .dropdown-menu::after { display: none; }
  /* bridge pseudo is useless on mobile (nav is inline-expand) */
  nav.top .dropdown::after { display: none; }
  nav.top .dropdown-menu a { padding: 8px 0 8px 14px; font-size: 10px; letter-spacing: 0.2em; }
  nav.top .dropdown-menu a:hover,
  nav.top .dropdown-menu a.active { padding-left: 18px; background: transparent; }
  nav.top .dropdown-menu .sep { margin: 6px 14px 6px 0; }
  nav.top .dropdown-menu .label { padding: 4px 0 6px 14px; }
  nav.top .dropdown .caret { display: none; }
}

/* ============================================================
   Category pages — 7-screen template
   ============================================================ */

/* --- Screen 1 · Category hero --- */
.cat-hero {
  padding: 160px 0 100px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.32;
  mask-image: linear-gradient(180deg, var(--bg), #000 40%, #000);
  -webkit-mask-image: linear-gradient(180deg, var(--bg), #000 40%, #000);
  pointer-events: none;
}
.cat-hero .container { position: relative; z-index: 2; }
.cat-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.cat-hero-title h1.h1 {
  font-size: clamp(44px, 8.2vw, 132px);
  line-height: 0.95;
  margin-top: 24px;
}
.cat-hero-title .lead { margin-top: 28px; max-width: 620px; }
.cat-hero-ctas { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.cat-hero-art {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.cat-hero-art svg {
  width: 88%;
  height: 88%;
  stroke: var(--ink);
  fill: none;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 2;
}
.cat-hero-art .tick {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  opacity: 0.6;
  z-index: 3;
}
.cat-hero-art .tick.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.cat-hero-art .tick.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.cat-hero-art .tick.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.cat-hero-art .tick.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

@media (max-width: 900px) {
  .cat-hero { padding: 112px 0 56px; }
  .cat-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-hero-art { aspect-ratio: 1/1; max-width: 520px; margin: 0 auto; width: 100%; }
}

/* --- Screen 2 · The gap --- */
.gap-screen {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.gap-screen::before {
  content: "THE GAP";
  position: absolute;
  top: 8px;
  right: -4vw;
  font-family: var(--logotype);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 400;
  color: var(--accent);
  opacity: 0.055;
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
.gap-screen .container { position: relative; z-index: 2; }
.gap-head { max-width: 900px; margin-bottom: 48px; }
.gap-head h2 { margin-top: 18px; }
.gap-narrative {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 1080px;
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin-bottom: 64px;
}
.gap-narrative strong { color: var(--accent); font-weight: 400; font-style: italic; }
.gap-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.gap-tile {
  padding: 36px 30px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background var(--dur), border-color var(--dur);
  position: relative;
}
.gap-tile:hover { background: var(--surface-2); }
.gap-tile .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}
.gap-tile .title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.gap-tile .title em { color: var(--accent); font-style: normal; }
.gap-tile .body {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 300;
}
@media (max-width: 900px) {
  .gap-tiles { grid-template-columns: 1fr; border-left: none; }
  .gap-tile { border-right: none; }
}

/* --- Screen 3 · Principles --- */
.principles {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.sec-intro { max-width: 900px; margin-bottom: 56px; }
.sec-intro h2 { margin-top: 18px; }
.sec-intro .lead { margin-top: 22px; }

.principles-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 120px 1.1fr 1.4fr;
  gap: 40px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-top: 10px;
  text-transform: uppercase;
}
.principle-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.principle-body {
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 300;
}
.principle-body strong { color: var(--ink); font-weight: 600; }
.principle-body em { color: var(--accent); font-style: italic; font-family: inherit; }
.principle-body .ref {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .principle { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .principle-num { font-size: 10px; margin-top: 0; }
}

/* --- Screen 4 · Engineering story · four walls --- */
.engineering {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.walls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.wall {
  padding: 40px 30px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background var(--dur);
}
.wall:hover { background: var(--surface-2); }
.wall-glyph {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wall-num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.wall-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.wall-body {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 300;
}
.wall-body strong { color: var(--ink); font-weight: 600; }
.wall-body em { color: var(--accent); font-style: normal; font-family: inherit; }

@media (max-width: 1100px) {
  .walls { grid-template-columns: 1fr 1fr; border-left: none; }
  .wall { border-right: none; }
  .walls .wall:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .walls { grid-template-columns: 1fr; }
  .walls .wall:nth-child(odd) { border-right: none; }
}

/* --- Screen 5 · Range · Mid → Flagship (card grid) --- */
.range {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.range-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.range-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -24px var(--accent-glow), 0 4px 14px rgba(0,0,0,0.3);
}
.range-card-art {
  aspect-ratio: 5 / 3;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.range-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.range-card-art svg {
  width: 100%;
  height: 100%;
  stroke: var(--ink);
  fill: none;
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 2;
}
.range-card-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.range-card-tier {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.range-card-tier::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  border-radius: 50%;
}
.range-card-title {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.05;
}
.range-card-pos {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 22px;
  flex: 1;
  font-weight: 300;
}
.range-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}
.range-card-chip {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.range-card-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur);
}
.range-card-link::after { content: "→"; transition: margin-left var(--dur); }
.range-card:hover .range-card-link::after { margin-left: 4px; }

@media (max-width: 1100px) { .range-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .range-grid { grid-template-columns: 1fr; } }

/* --- Screen 6 · Certifications wall (iconic) --- */
.certs {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cert-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 16px;
}
.cert-tile {
  padding: 32px 20px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  transition: background var(--dur);
}
.cert-tile:hover { background: var(--surface-2); }
.cert-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--surface-2);
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.35);
}
.cert-badge::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--line);
}
.cert-badge .mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.cert-badge .mark.small { font-size: 9.5px; letter-spacing: 0.12em; }
.cert-badge svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 2;
}
.cert-code {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.cert-note {
  font-family: var(--body);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
  font-weight: 300;
}
@media (max-width: 1100px) { .cert-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) {
  .cert-wall { grid-template-columns: repeat(3, 1fr); border-left: none; }
  .cert-tile { border-right: none; }
  .cert-wall .cert-tile:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .cert-wall { grid-template-columns: repeat(2, 1fr); }
  .cert-wall .cert-tile { border-right: none; }
  .cert-wall .cert-tile:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* --- Screen 7 · The difference (closer) --- */
.closer {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg), var(--surface));
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.12;
  pointer-events: none;
  mask-image: linear-gradient(0deg, var(--bg), #000 40%, #000);
  -webkit-mask-image: linear-gradient(0deg, var(--bg), #000 40%, #000);
}
.closer .container { position: relative; z-index: 2; }
.closer .eyebrow { margin-bottom: 20px; }
.closer h2 { margin-top: 6px; margin-bottom: 32px; font-size: clamp(36px, 5.5vw, 88px); }
.closer .lead { margin-bottom: 40px; max-width: 980px; }
.closer-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Related categories strip --- */
.related-cats {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.related-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.related-card {
  padding: 26px 22px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--dur), transform var(--dur), background var(--dur);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: 10px;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.related-card .cat-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.related-card .cat-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.related-card .cat-arrow {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.related-card .cat-arrow::after { content: " →"; transition: margin-left var(--dur); }
.related-card:hover .cat-arrow::after { margin-left: 4px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .related-grid { grid-template-columns: 1fr; } }

/* Section intro with right-aligned meta */
.sec-intro.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.sec-intro.split .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  line-height: 1.8;
}
.sec-intro.split .meta strong { color: var(--accent); font-weight: 500; }
@media (max-width: 900px) { .sec-intro.split { grid-template-columns: 1fr; gap: 24px; } }
