/* ============================================================
   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); }
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;
}
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; }
}

/* ----- 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: 100px 20px 40px; min-height: auto; }
  .hero-visual { order: -1; max-height: 300px; width: 100%; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ----- 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; }

/* ----- 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; }
