/* =========================================================
   N R Engineers — site styles
   Palette: Midnight Black #030407 · Electric Cobalt #1558C9 · Acid Lime #D4FF24
   ========================================================= */

:root {
  --bg: #030407;
  --bg-alt: #05070c;
  --card: #0a0e16;
  --card-2: #0d1320;
  --line: rgba(150, 175, 225, .10);
  --line-2: rgba(150, 175, 225, .18);
  --text: #eceff5;
  --muted: #8c95a8;
  --dim: #5a6376;
  --cobalt: #1558c9;
  --cobalt-2: #4a86ee;
  --cobalt-soft: rgba(21, 88, 201, .14);
  --lime: #d4ff24;
  --lime-soft: rgba(212, 255, 36, .12);
  --danger: #ff6b6b;

  --f-sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--f-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--bg); }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--lime); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.btn-lime { background: var(--lime); color: #030407; }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(212, 255, 36, .55); }
.btn-lime:hover .ico { transform: translateX(3px); }
.btn .ico { transition: transform .3s var(--ease); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); }
.btn-ghost:hover { border-color: var(--cobalt-2); background: var(--cobalt-soft); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color .4s;
  border-bottom: 1px solid transparent;
}
/* The blur lives on a pseudo-element: backdrop-filter on .nav itself would trap the fixed mobile menu inside the bar. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(3, 4, 7, .74);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0; transition: opacity .4s;
}
.nav.scrolled { border-color: var(--line); }
.nav.scrolled::before { opacity: 1; }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.mark { width: 38px; height: 38px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-weight: 700; font-stretch: 118%; font-size: 16px; letter-spacing: .01em; text-transform: uppercase; }
.brand-txt small { font: 500 10.5px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.menu { display: flex; gap: 4px; }
.menu a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--muted); border-radius: 8px; transition: color .25s; }
.menu a:hover, .menu a.is-active { color: var(--text); }
.menu a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime); }
.menu .menu-only { display: none; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--f-mono); color: var(--muted); transition: color .25s; }
.nav-phone:hover { color: var(--text); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212, 255, 36, .6); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 36, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(212, 255, 36, 0); } }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.nav.open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Shared type ---------- */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .tick { width: 8px; height: 8px; background: var(--lime); border-radius: 2px; box-shadow: 0 0 16px rgba(212, 255, 36, .7); }
.kicker b { color: var(--lime); font-weight: 500; }
.kicker b::after { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin-left: 12px; background: var(--line-2); }
.kicker-sm { font-size: 11px; }

h1, h2, .h-display { font-stretch: 112%; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: 1.04; max-width: 17em; text-wrap: balance; }
h3 { font-stretch: 108%; font-weight: 650; letter-spacing: -.01em; }

.section { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-lede { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.125rem); max-width: 36em; }
.sec-head-split { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 24px 64px; }
.sec-head-split > div { display: grid; gap: 20px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Tilt (3D cards) ---------- */
[data-tilt] {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .3s, background .3s;
  will-change: transform;
}
[data-tilt].is-tilting { transition: transform .08s linear, border-color .3s, background .3s; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 255, 255, .08), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
[data-tilt].is-tilting::after { opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: max(680px, 100svh);
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52% 60% at 74% 46%, rgba(21, 88, 201, .30), transparent 70%),
    radial-gradient(26% 30% at 82% 72%, rgba(212, 255, 36, .05), transparent 70%),
    radial-gradient(40% 40% at 8% 10%, rgba(21, 88, 201, .10), transparent 70%);
}
.hero::after { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 150, 210, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 210, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); touch-action: pan-y; cursor: grab; }
.hero-stage canvas:active { cursor: grabbing; }
.hero-stage.ready canvas { opacity: 1; }
.hero-fallback { display: none; margin: 0; }
.hero-stage.no-webgl .hero-fallback {
  display: block; position: absolute; right: var(--pad); top: calc(var(--nav-h) + 40px); bottom: 130px;
  width: min(36vw, 460px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(21, 88, 201, .6);
}
.hero-stage.no-webgl .hero-fallback img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage.no-webgl canvas, .hero-stage.no-webgl .hud, .hero-stage.no-webgl .drag-hint { display: none; }

.hud { position: absolute; inset: 0; pointer-events: none; }
.hud-tag {
  position: absolute; left: 0; top: 0;
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0);
  opacity: 0; transition: opacity .8s .6s;
}
.hero-stage.ready .hud-tag { opacity: 1; }
.hud-tag i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--lime); background: rgba(3, 4, 7, .6);
  box-shadow: 0 0 12px rgba(212, 255, 36, .6);
}
.hud-tag i::after { /* leader line */
  content: ""; position: absolute; left: 7px; bottom: 7px; width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--lime), rgba(212, 255, 36, .2));
  transform: rotate(-38deg); transform-origin: left center;
}
.hud-tag span {
  position: absolute; left: 38px; bottom: 26px; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 11px; border-radius: 8px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  background: rgba(5, 8, 14, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hud-tag span b { color: var(--lime); font-weight: 500; }
.hud-tag.flip span { left: auto; right: 38px; }
.hud-tag.flip i::after { left: auto; right: 7px; transform: rotate(38deg); transform-origin: right center; background: linear-gradient(270deg, var(--lime), rgba(212, 255, 36, .2)); }
.drag-hint {
  position: absolute; right: var(--pad); bottom: 104px;
  display: flex; align-items: center; gap: 8px;
  font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  opacity: 0; transition: opacity .8s 1.2s;
}
.hero-stage.ready .drag-hint { opacity: 1; }
.drag-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-inner { flex: 1; display: flex; align-items: center; pointer-events: none; }
.hero-copy { pointer-events: auto; max-width: 610px; padding-block: 48px 56px; display: grid; gap: 26px; }
.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.35rem); line-height: 1; font-stretch: 110%; font-weight: 720;
  letter-spacing: -.03em; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--lime); text-shadow: 0 0 40px rgba(212, 255, 36, .25); }
.lede { color: #b4bccb; font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hero-stats dd { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; font-stretch: 115%; line-height: 1; letter-spacing: -.02em; }
.hero-stats dd.iso { display: flex; align-items: baseline; gap: 6px; }
.hero-stats dd.iso small { font: 500 12px var(--f-mono); color: var(--lime); letter-spacing: .04em; }

.marquee {
  position: relative; border-top: 1px solid var(--line); padding: 22px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 60px; padding-right: 60px; }
.marquee li { font-size: 17px; font-weight: 650; font-stretch: 118%; text-transform: uppercase; letter-spacing: .02em; color: #3f4759; white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   CAPABILITIES
   ========================================================= */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap-card {
  padding: 28px 28px 32px; border-radius: 20px;
  background: linear-gradient(180deg, var(--card-2), var(--card) 60%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
}
.cap-card:hover { border-color: rgba(74, 134, 238, .45); }
.cap-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cap-no { font: 500 13px var(--f-mono); color: var(--lime); }
.cap-tag { font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.cap-ico {
  width: 52px; height: 52px; padding: 10px; border-radius: 14px;
  fill: none; stroke: var(--cobalt-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  background: var(--cobalt-soft); border: 1px solid rgba(74, 134, 238, .25);
  transform: translateZ(36px); transition: stroke .3s, background .3s;
}
.cap-card:hover .cap-ico { stroke: var(--lime); background: rgba(212, 255, 36, .06); border-color: rgba(212, 255, 36, .25); }
.cap-card h3 { font-size: 1.3rem; margin-top: auto; transform: translateZ(20px); }
.cap-card p { color: var(--muted); font-size: .96rem; transform: translateZ(10px); }

/* =========================================================
   MACHINES
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all .25s;
}
.chip span { font: 500 11px var(--f-mono); color: var(--dim); }
.chip:hover { color: var(--text); border-color: var(--cobalt-2); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.is-on span { color: #5b6170; }

.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.m-card {
  display: block; text-align: left; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
}
.m-card.is-hidden { display: none; }
.m-card:hover { border-color: rgba(74, 134, 238, .5); }
.m-ph { position: absolute; inset: 0; }
.m-ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.62) brightness(.8) contrast(1.06);
  transition: transform 1s var(--ease), filter .6s;
}
.m-card:hover .m-ph img { transform: scale(1.05); filter: saturate(1) brightness(.95) contrast(1.02); }
.m-ph::after { /* cobalt tone */
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 88, 201, .18), transparent 40%);
  mix-blend-mode: screen; transition: opacity .6s;
}
.m-card:hover .m-ph::after { opacity: 0; }
.m-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 18px;
  display: grid; gap: 8px;
  background: linear-gradient(180deg, transparent, rgba(3, 4, 7, .78) 38%, rgba(3, 4, 7, .96));
}
.m-no { font: 500 10.5px var(--f-mono); letter-spacing: .14em; color: var(--lime); text-transform: uppercase; }
.m-title { font-size: 1.04rem; font-weight: 650; font-stretch: 106%; line-height: 1.2; letter-spacing: -.005em; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tags i, .m-tags li {
  font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase;
  color: #aab3c4; padding: 5px 7px; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06);
}
.m-open {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(3, 4, 7, .55); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.m-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-card:hover .m-open { background: var(--lime); color: var(--bg); border-color: var(--lime); transform: rotate(45deg); }

.m-cta {
  grid-column: span 3; border-radius: 18px; padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(120% 120% at 100% 0%, #2a6fe0 0%, var(--cobalt) 40%, #0c2f6e 100%);
  border: 1px solid rgba(255, 255, 255, .12);
}
.m-cta .kicker { color: rgba(255, 255, 255, .75); }
.m-cta .kicker b::after { background: rgba(255, 255, 255, .35); }
.m-cta h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; font-stretch: 112%; }
.m-cta p { color: rgba(255, 255, 255, .8); max-width: 34em; }
.m-cta .btn { margin-top: 8px; }
.m-grid.is-filtered .m-cta { grid-column: 1 / -1; min-height: 240px; }

/* =========================================================
   PHARMA
   ========================================================= */
.ph-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ph-badges li {
  display: grid; gap: 6px; padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .9rem; line-height: 1.45;
}
.ph-badges b { color: var(--text); font-weight: 650; font-stretch: 108%; font-size: 1rem; }

.line3d { margin-top: clamp(28px, 5vw, 56px); perspective: 1200px; perspective-origin: 50% -30%; }
.line-floor {
  --tilt: 56deg; --spin: -9deg;
  position: relative; height: 300px; border-radius: 22px;
  transform: rotateX(var(--tilt)) rotateZ(var(--spin)); transform-origin: 50% 50%; transform-style: preserve-3d;
  background:
    linear-gradient(rgba(120, 150, 210, .08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(120, 150, 210, .08) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(70% 90% at 50% 50%, rgba(21, 88, 201, .22), rgba(3, 4, 7, 0) 70%);
  border: 1px solid var(--line-2);
  margin-block: 10px -20px;
}
.belt {
  position: absolute; left: 0; right: 0; top: 50%; height: 56px; margin-top: -28px;
  transform-style: preserve-3d;
  background: repeating-linear-gradient(90deg, #0e1420 0 18px, #121a29 18px 20px);
  border-block: 2px solid #2a3448;
  animation: belt 1.2s linear infinite;
}
@keyframes belt { to { background-position: 20px 0; } }
.belt i {
  position: absolute; left: 0; top: 17px; width: 22px; height: 22px; border-radius: 5px;
  background: var(--lime); box-shadow: 0 0 20px rgba(212, 255, 36, .7);
  transform: translateZ(9px);
  animation: travel 12s linear infinite;
}
.belt i:nth-child(2) { animation-delay: -3s; }
.belt i:nth-child(3) { animation-delay: -6s; }
.belt i:nth-child(4) { animation-delay: -9s; }
@keyframes travel { from { left: -2%; } to { left: 100%; } }
.stations {
  position: absolute; inset: 0; padding: 0 3%;
  display: flex; align-items: center; justify-content: space-between; gap: 2.4%;
  transform-style: preserve-3d;
}
.station { --h: 24px; position: relative; flex: 1; height: 150px; transform-style: preserve-3d; }
.station .block {
  position: absolute; inset: 0; border-radius: 10px;
  transform: translateZ(var(--h)); transform-style: preserve-3d;
  background: linear-gradient(135deg, #1a2336, #0d1320);
  border: 1px solid rgba(150, 175, 225, .22);
  transition: transform .6s var(--ease), background .5s, border-color .5s, box-shadow .5s;
}
.station .block::before { /* front face */
  content: ""; position: absolute; left: -1px; right: -1px; top: 100%; height: var(--h);
  transform-origin: top; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #121a2a, #070a11); border: 1px solid rgba(150, 175, 225, .14);
  transition: height .6s var(--ease), background .5s;
}
.station .block::after { /* cobalt LED strip on top face */
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 3px;
  background: var(--cobalt); box-shadow: 0 0 12px rgba(21, 88, 201, .9); transition: background .4s, box-shadow .4s;
}
.station .sign {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -100%) translateZ(var(--h)) rotateZ(calc(-1 * var(--spin))) rotateX(calc(-1 * var(--tilt)));
  transform-origin: 50% 100%;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 12px; border-radius: 9px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text);
  background: rgba(10, 14, 22, .92); border: 1px solid var(--line-2);
  transition: transform .6s var(--ease), background .4s, color .4s, border-color .4s;
}
.station .sign b { color: var(--lime); font-weight: 500; transition: color .4s; }
.station:hover { --h: 38px; }
.station.is-on { --h: 78px; }
.station.is-on .block { background: linear-gradient(135deg, #2a6fe0, var(--cobalt) 55%, #0f3c8c); border-color: rgba(212, 255, 36, .6); box-shadow: 0 0 60px rgba(21, 88, 201, .55); }
.station.is-on .block::before { background: linear-gradient(180deg, #0f3c8c, #071a3e); }
.station.is-on .block::after { background: var(--lime); box-shadow: 0 0 16px rgba(212, 255, 36, .9); }
.station.is-on .sign { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.station.is-on .sign b { color: var(--bg); }
.station:focus-visible { outline: none; }
.station:focus-visible .sign { outline: 2px solid var(--lime); outline-offset: 3px; }

.ph-panels { margin-top: clamp(24px, 4vw, 44px); }
.ph-panel {
  display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; background: var(--card); border: 1px solid var(--line);
  animation: panelIn .6s var(--ease);
}
.ph-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.ph-intro { display: grid; gap: 14px; align-content: start; }
.ph-step { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.ph-intro h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; font-stretch: 110%; }
.ph-intro p:last-child { color: var(--muted); }
.ph-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.ph-items li {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.ph-items li:hover { border-color: rgba(74, 134, 238, .4); background: var(--cobalt-soft); }
.ph-items b { font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: 10px; }
.ph-items b::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--lime); flex: none; }
.ph-items span { color: var(--muted); font-size: .86rem; padding-left: 16px; }

/* =========================================================
   PROCESS
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background: linear-gradient(90deg, var(--lime), var(--cobalt) 40%, var(--line-2));
}
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step-no {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font: 500 15px var(--f-mono); color: var(--lime);
  background: var(--bg-alt); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 6px var(--bg-alt);
  margin-bottom: 10px; transition: background .3s, color .3s, transform .4s var(--ease);
}
.step:hover .step-no { background: var(--lime); color: var(--bg); transform: translateY(-4px) rotate(-6deg); }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .93rem; }

.roof { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; }
.roof-card { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: #c3cad6; font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 5px;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23D4FF24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.roof-plat { background: linear-gradient(160deg, rgba(21, 88, 201, .2), var(--card) 60%); }
.plats { display: flex; flex-wrap: wrap; gap: 8px; }
.plats li {
  padding: 9px 13px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-weight: 600; font-stretch: 110%; font-size: .9rem; letter-spacing: .01em;
}

/* =========================================================
   INDUSTRY 4.0
   ========================================================= */
.i40 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.i40-legend { display: grid; gap: 8px; }
.i40-legend li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  cursor: default; transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.i40-legend b { font: 500 12px var(--f-mono); color: var(--dim); transition: color .3s; }
.i40-legend strong { display: block; font-weight: 650; font-stretch: 108%; }
.i40-legend span { color: var(--muted); font-size: .9rem; }
.i40-legend li.is-on { border-color: rgba(212, 255, 36, .45); background: rgba(212, 255, 36, .04); transform: translateX(6px); }
.i40-legend li.is-on b { color: var(--lime); }
.i40-visual { perspective: 1600px; display: grid; justify-items: center; gap: 28px; }
.stack {
  --gap: 58px;
  position: relative; width: min(320px, 68vw); aspect-ratio: 1;
  margin: 70px 0 90px;
  transform: rotateX(58deg) rotateZ(-42deg); transform-style: preserve-3d;
}
.i40-visual:hover .stack { --gap: 74px; }
.layer {
  position: absolute; inset: 0; border-radius: 22px;
  transform: translateZ(calc(var(--i) * var(--gap)));
  border: 1px solid rgba(74, 134, 238, .55);
  background:
    linear-gradient(rgba(120, 160, 240, .12) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(120, 160, 240, .12) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(135deg, rgba(21, 88, 201, .42), rgba(21, 88, 201, .08));
  box-shadow: 0 0 50px rgba(21, 88, 201, .25), inset 0 0 30px rgba(21, 88, 201, .25);
  transition: transform .7s var(--ease), border-color .4s, background .4s, box-shadow .4s;
}
.layer span {
  position: absolute; left: 20px; bottom: 18px;
  font: 600 14px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #dfe7ff;
}
.layer::after { /* node */
  content: ""; position: absolute; right: 22px; top: 22px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--cobalt-2); box-shadow: 0 0 14px var(--cobalt-2); transition: background .4s, box-shadow .4s;
}
.layer.is-on {
  border-color: var(--lime);
  background:
    linear-gradient(rgba(212, 255, 36, .12) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(212, 255, 36, .12) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(135deg, rgba(212, 255, 36, .26), rgba(212, 255, 36, .04));
  box-shadow: 0 0 60px rgba(212, 255, 36, .2), inset 0 0 30px rgba(212, 255, 36, .15);
}
.layer.is-on span { color: var(--lime); }
.layer.is-on::after { background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.i40-why { display: grid; gap: 10px; width: 100%; max-width: 440px; }
.i40-why li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: .94rem; }
.i40-why li::before { content: "→"; color: var(--lime); font-family: var(--f-mono); }

/* =========================================================
   CLIENTS & INDUSTRIES
   ========================================================= */
.clients {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.clients li {
  display: flex; align-items: center; min-height: 86px; padding: 18px 22px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 620; font-stretch: 108%; font-size: 1rem; color: #9aa3b5; letter-spacing: -.005em;
  transition: color .3s, background .3s;
}
.clients li:hover { color: var(--text); background: var(--cobalt-soft); }
.ind-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px 64px; align-items: end; margin: clamp(64px, 8vw, 104px) 0 32px; }
.ind-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.08; font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; }
.ind-head p { color: var(--muted); }
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industries li {
  display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
}
.industries li:hover { border-color: rgba(74, 134, 238, .45); }
.industries svg {
  width: 40px; height: 40px; margin-bottom: 10px; fill: none; stroke: var(--cobalt-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transform: translateZ(28px); transition: stroke .3s;
}
.industries li:hover svg { stroke: var(--lime); }
.industries b { font-weight: 650; font-stretch: 106%; font-size: 1.04rem; }
.industries span { color: var(--muted); font-size: .88rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 40%, rgba(21, 88, 201, .18), transparent 70%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.c-lines { display: grid; border-top: 1px solid var(--line); margin-bottom: 28px; }
.c-lines li { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.c-lines span { width: 110px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.c-lines a { font-weight: 550; transition: color .25s; }
.c-lines a:hover { color: var(--lime); }
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.unit { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.unit-tag { font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.unit h3 { font-size: 1.1rem; }
.unit address { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.link-arrow { margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; font-weight: 600; color: var(--cobalt-2); }
.link-arrow::after { content: "↗"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--lime); }
.link-arrow:hover::after { transform: translate(2px, -2px); }

.form-card {
  position: relative; border-radius: 24px; padding: clamp(22px, 3.2vw, 40px);
  background: linear-gradient(180deg, #0d1422, #080b12);
  border: 1px solid rgba(74, 134, 238, .28);
  box-shadow: 0 40px 120px -40px rgba(21, 88, 201, .55);
}
.form-head { display: grid; gap: 6px; margin-bottom: 22px; }
.form-head h3 { font-size: 1.5rem; font-stretch: 110%; }
.form-head p { color: var(--muted); font-size: .92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; align-content: start; }
.field label { font-size: .86rem; font-weight: 550; color: #c3cad6; }
.field label i { color: var(--lime); font-style: normal; }
.field label small { color: var(--dim); font-size: .8rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(3, 4, 7, .7); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 13px 14px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt-2); box-shadow: 0 0 0 4px rgba(21, 88, 201, .25); }
.field .err { display: none; color: var(--danger); font-size: .82rem; }
.field.bad input, .field.bad textarea { border-color: var(--danger); }
.field.bad .err { display: block; }
.machine-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; padding: 10px 12px 10px 14px; border-radius: 11px;
  background: var(--lime-soft); border: 1px solid rgba(212, 255, 36, .35); font-size: .9rem;
}
.machine-chip[hidden] { display: none; }
.machine-chip b { color: var(--lime); font-weight: 600; }
.machine-chip button { width: 28px; height: 28px; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--muted); }
.machine-chip button:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 11px; font-size: .92rem; }
.status.show { display: block; }
.status.ok { background: var(--lime-soft); border: 1px solid rgba(212, 255, 36, .4); color: var(--lime); }
.status.bad { background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .4); color: #ffb3b3; }
.status a { text-decoration: underline; }
.form-note { margin-top: 14px; color: var(--dim); font-size: .82rem; }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding: clamp(64px, 8vw, 110px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-word {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem); font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  line-height: .95; letter-spacing: -.02em;
  background: linear-gradient(180deg, #eceff5 10%, #3a4560 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-line { margin-top: 16px; color: var(--muted); }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: .94rem; }
.foot-col p { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.foot-col a, .foot-col span { color: #b4bccb; transition: color .25s; }
.foot-col a:hover { color: var(--lime); }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font: 500 12px var(--f-mono); color: var(--dim); letter-spacing: .04em; }

.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cobalt); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 14px 40px -10px rgba(21, 88, 201, .9);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--lime); color: var(--bg); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 7, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lb-box {
  position: relative; width: min(1100px, 100%); max-height: calc(100svh - 48px);
  display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2);
  animation: lbIn .45s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lb-fig { margin: 0; background: #000; display: grid; place-items: center; min-height: 0; }
.lb-fig img { width: 100%; height: 100%; max-height: calc(100svh - 48px); object-fit: contain; }
.lb-info { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.lb-info h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; font-stretch: 110%; }
.lb-info .btn { align-self: flex-start; margin-top: 8px; }
.lb-nav { margin-top: auto; display: flex; align-items: center; gap: 14px; font: 500 12px var(--f-mono); color: var(--muted); }
.lb-btn, .lb-close {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); transition: background .25s, border-color .25s;
}
.lb-btn:hover, .lb-close:hover { background: rgba(255, 255, 255, .06); border-color: var(--muted); }
.lb-btn svg, .lb-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: 14px; right: 14px; background: rgba(3, 4, 7, .6); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav-phone { display: none; }
  .m-grid { grid-template-columns: repeat(3, 1fr); }
  .m-cta { grid-column: span 2; }
  .ph-badges { grid-template-columns: repeat(2, 1fr); }
  .station .sign { font-size: 10px; padding: 8px 9px; }
}

@media (max-width: 980px) {
  :root { --nav-h: 64px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .menu {
    position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; gap: 0; padding: 12px var(--pad) 40px;
    background: rgba(3, 4, 7, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav.open { background: rgba(3, 4, 7, .97); }
  .nav.open .menu { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 18px 0; font-size: 1.5rem; font-weight: 650; font-stretch: 112%; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu a.is-active::after { display: none; }
  .menu .menu-only { display: block; }
  .menu .menu-phone { font: 500 1rem var(--f-mono); color: var(--lime); border-bottom: 0; }

  .hero { min-height: 0; }
  .hero-stage { position: relative; inset: auto; order: 2; height: min(96vw, 560px); margin-top: -12px; }
  .hero-inner { order: 1; }
  .marquee { order: 3; }
  .hero-copy { padding-block: 36px 0; max-width: 680px; }
  .drag-hint { bottom: 18px; }
  .hero-stage.no-webgl .hero-fallback { position: relative; inset: auto; width: auto; height: 100%; margin: 0 var(--pad); top: 0; right: 0; bottom: 0; }

  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-head-split, .ind-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--lime), var(--cobalt) 40%, var(--line-2)); }
  .step { grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step-no { grid-row: span 2; margin-bottom: 0; }
  .roof { grid-template-columns: 1fr 1fr; }
  .roof-plat { grid-column: 1 / -1; }
  .i40 { grid-template-columns: 1fr; }
  .i40-visual { order: -1; }
  .stack { margin: 40px 0 70px; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .lb-box { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-fig img { max-height: 58svh; }

  /* Pharma line: flatten into a scrollable tab rail */
  .line3d { perspective: none; margin-top: 28px; }
  .line-floor { transform: none; height: auto; margin: 0; background: none; border: 0; border-radius: 0; }
  .belt { display: none; }
  .stations { position: static; padding: 4px 2px 10px; gap: 8px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .stations::-webkit-scrollbar { display: none; }
  .station { flex: none; height: auto; transform: none; scroll-snap-align: start; }
  .station .block { display: none; }
  .station .sign { position: static; transform: none; font-size: 12px; padding: 12px 14px; }
}

@media (max-width: 700px) {
  .hud { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div { margin-right: 0; padding: 16px 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats > div:nth-child(odd) { border-right: 1px solid var(--line); margin-right: 16px; }
  .hero-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .cta-row .btn { flex: 1 1 auto; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 0; }

  .m-grid {
    display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 12px; scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .m-grid::-webkit-scrollbar { display: none; }
  .m-card { flex: 0 0 76%; scroll-snap-align: start; }
  .m-cta, .m-grid.is-filtered .m-cta { flex: 0 0 86%; min-height: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .ph-badges { grid-template-columns: 1fr; }
  .ph-panel { grid-template-columns: 1fr; }
  .ph-items { grid-template-columns: 1fr; }
  .roof { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .clients li { min-height: 68px; padding: 14px 16px; font-size: .92rem; }
  .industries { grid-template-columns: 1fr; }
  .units { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .c-lines span { width: 100%; }
  .foot-top { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; }
}

/* =========================================================
   INSIGHTS (home cards) + ARTICLE PAGES
   ========================================================= */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  display: flex; flex-direction: column; gap: 14px; min-height: 290px; padding: 28px; border-radius: 20px;
  background: linear-gradient(180deg, var(--card-2), var(--card) 60%); border: 1px solid var(--line);
}
.post-card:hover { border-color: rgba(74, 134, 238, .45); }
.post-meta { display: flex; gap: 12px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.post-meta b { color: var(--lime); font-weight: 500; }
.post-card h3 { font-size: 1.3rem; line-height: 1.2; transform: translateZ(20px); }
.post-card p { color: var(--muted); font-size: .96rem; }
.post-card .link-arrow { margin-top: auto; }

.post-date { margin-top: 18px; font: 500 12px var(--f-mono); letter-spacing: .06em; color: var(--dim); }
.page-top { position: relative; isolation: isolate; padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(32px, 4vw, 48px); overflow: hidden; }
.page-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 70% at 80% 0%, rgba(21, 88, 201, .28), transparent 70%);
}
.page-top::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(120, 150, 210, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 210, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 80% at 70% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(60% 80% at 70% 0%, #000 10%, transparent 70%);
}
.narrow { max-width: 780px; }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 28px; font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.back:hover { color: var(--lime); }
.page-top h1 { margin-top: 18px; font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.04; text-wrap: balance; }
.page-lede { margin-top: 22px; color: #b4bccb; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34em; }

.prose { padding-bottom: clamp(48px, 6vw, 80px); font-size: 1.1rem; line-height: 1.75; color: #c9d0dc; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; color: var(--text); font-stretch: 110%; font-weight: 700; letter-spacing: -.015em; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding: 16px 18px 16px 62px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font: 500 14px var(--f-mono); color: var(--lime); }
.prose blockquote {
  margin: 40px 0 0; padding: 26px 30px; border-left: 3px solid var(--lime); border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(212, 255, 36, .08), transparent);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.35; font-weight: 650; font-stretch: 108%; color: var(--text);
}
.prose blockquote p + p { margin-top: 6px; }

.post-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(56px, 8vw, 100px); padding: clamp(24px, 3vw, 36px); border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(120% 120% at 100% 0%, #2a6fe0 0%, var(--cobalt) 40%, #0c2f6e 100%);
  border: 1px solid rgba(255, 255, 255, .12);
}
.post-cta h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; font-stretch: 112%; }
.post-cta p { color: rgba(255, 255, 255, .8); margin-top: 6px; }
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.more-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.more { padding-bottom: clamp(72px, 9vw, 120px); }
.more .posts { grid-template-columns: repeat(2, 1fr); }
.blog-list { padding-bottom: clamp(72px, 9vw, 120px); }

.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--pad) 60px; }
.nf-code { font-size: clamp(6rem, 22vw, 14rem); font-weight: 800; font-stretch: 125%; line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--cobalt-2), #0c2f6e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 12px; }
.nf p { color: var(--muted); margin: 14px auto 28px; max-width: 30em; }

@media (max-width: 980px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 700px) {
  .kicker { flex-wrap: wrap; row-gap: 4px; }
  .kicker b::after { display: none; }
  .posts, .more .posts { grid-template-columns: 1fr; }
  .post-card { min-height: 0; }
  .prose { font-size: 1.04rem; }
  .prose ol li { padding-left: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .marquee-track { animation: none; }
}
