/* ============================================================
   SMAR TECHNOLOGIES USA — "Mission Control" design system
   Palette: near-black navy / Cherenkov cyan / SMAR royal blue
   Type: Unbounded (display) · IBM Plex Sans (body) · IBM Plex Mono (tech)
   ============================================================ */

:root {
  --bg: #04070f;
  --bg-2: #071021;
  --bg-3: #0b1730;
  --ink: #eaf2fc;
  --muted: #8fa3bd;
  --cyan: #41e3ff;
  --cyan-soft: rgba(65, 227, 255, .14);
  --blue: #2b55ff;
  --blue-deep: #16279f;
  --amber: #ffb547;
  --line: rgba(65, 227, 255, .12);
  --line-2: rgba(143, 163, 189, .14);
  --radius: 18px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: #04121a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #14294d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #1d3a6b; }

.mono { font-family: var(--font-mono); letter-spacing: .06em; }

img { max-width: 100%; display: block; }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 2000; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 20% { transform: translate(-2%,3%) }
  40% { transform: translate(3%,-2%) } 60% { transform: translate(-3%,-3%) } 80% { transform: translate(2%,2%) }
}

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 3000; box-shadow: 0 0 12px var(--cyan);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 7, 15, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.nav-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo-mark { filter: drop-shadow(0 0 10px rgba(43, 85, 255, .5)); transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
.nav-logo:hover .logo-mark { transform: rotate(-4deg) scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: .12em; }
.logo-text em { font-family: var(--font-mono); font-style: normal; font-size: 9.5px; color: var(--muted); letter-spacing: .28em; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  letter-spacing: .04em; position: relative; transition: color .25s;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--cyan); transition: width .3s; box-shadow: 0 0 8px var(--cyan);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid rgba(65,227,255,.4); color: var(--cyan) !important;
  padding: 9px 20px; border-radius: 100px; transition: all .3s !important;
}
.nav-cta:hover { background: var(--cyan-soft); box-shadow: 0 0 24px rgba(65,227,255,.25); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 1100; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 4vw, 56px) 80px;
  overflow: hidden;
}

/* Video hero. The clip carries its own headline and KPI row, so it must never
   be cropped: the box follows the 16:9 frame and the video is contained inside.
   On viewports wider than 16:9 the cap kicks in and the site background shows
   at the sides — never a cut. */
.hero-video {
  padding: 0; min-height: 0;
  width: 100%; aspect-ratio: 16 / 9; max-height: 100svh;
  background: var(--bg);
}
.hero-video::before { content: none; }
.hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  background: var(--bg);
}
/* top-only scrim so the nav stays legible; the bottom stays clean —
   the video carries its own KPI text down there */
.hero-veil {
  position: absolute; top: 0; left: 0; right: 0; height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,7,15,.65) 0%, rgba(4,7,15,0) 100%);
}
/* sits just under the nav — the foot of the frame holds the video's own KPI row */
.sound-toggle {
  position: absolute; right: clamp(20px, 4vw, 56px); top: 104px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  background: rgba(4,7,15,.65); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 100px;
  color: var(--ink); padding: 12px 20px; cursor: pointer;
  font-size: 11px; letter-spacing: .18em; transition: all .3s;
}
.sound-toggle:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 24px rgba(65,227,255,.2); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle .ic-sound { display: none; }
.sound-toggle.on .ic-sound { display: block; }
.sound-toggle.on .ic-muted { display: none; }
/* no scroll pip over the frame — it landed on top of the video's KPI row */
.hero-video .scroll-hint { display: none; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(65,227,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,227,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 75%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 72% 42%, rgba(43,85,255,.16), transparent 65%),
    radial-gradient(ellipse 45% 38% at 25% 70%, rgba(65,227,255,.07), transparent 70%);
}

.hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: 1340px; margin: 0 auto; width: 100%;
}

.kicker {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan);
  letter-spacing: .3em; margin-bottom: 26px; display: flex; align-items: center; gap: 14px;
}
.kicker::before { content: ""; width: 42px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 1s cubic-bezier(.16,.84,.3,1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes riseUp { to { transform: translateY(0); } }

.accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  text-shadow: 0 0 34px rgba(65,227,255,.35);
}
.accent-blue {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--blue) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(43,85,255,.45));
}

.hero-sub {
  margin-top: 28px; max-width: 540px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.btn {
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 17px 30px; border-radius: 100px; transition: all .3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue), #1a37c9);
  color: #fff; box-shadow: 0 10px 34px rgba(43,85,255,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(43,85,255,.5), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 28px rgba(65,227,255,.18); transform: translateY(-3px); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(65,227,255,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(65,227,255,.55); }
  70% { box-shadow: 0 0 0 12px rgba(65,227,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(65,227,255,0); }
}

/* reactor schematic */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.reactor { width: min(100%, 440px); overflow: visible; }
.ring { transform-origin: 210px 210px; }
.r-slow  { animation: spin 46s linear infinite; }
.r-slow2 { animation: spin 30s linear infinite reverse; }
.r-rev   { animation: spin 60s linear infinite reverse; }
.r-ticks { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.core-glow { animation: breathe 3.6s ease-in-out infinite; transform-origin: 210px 210px; }
@keyframes breathe {
  0%,100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.pebbles circle { animation: twinkle 2.8s ease-in-out infinite; }
.pebbles circle:nth-child(2) { animation-delay: .5s; }
.pebbles circle:nth-child(3) { animation-delay: 1s; }
.pebbles circle:nth-child(4) { animation-delay: 1.4s; }
.pebbles circle:nth-child(5) { animation-delay: .8s; }
.pebbles circle:nth-child(6) { animation-delay: 1.9s; }
@keyframes twinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.orbit { transform-origin: 210px 210px; }
.o1 { animation: spin 7s linear infinite; }
.o2 { animation: spin 11s linear infinite reverse; }
.o3 { animation: spin 16s linear infinite; }
.spec-callout text { opacity: 0; animation: fadeIn .8s ease forwards; }
.spec-callout text:nth-child(1) { animation-delay: 1.2s; }
.spec-callout text:nth-child(2) { animation-delay: 1.5s; }
.spec-callout text:nth-child(3) { animation-delay: 1.8s; }
.spec-callout text:nth-child(4) { animation-delay: 2.1s; }
@keyframes fadeIn { to { opacity: 1; } }

.reactor-status {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); padding: 9px 18px; border-radius: 100px;
  background: rgba(7,16,33,.6); backdrop-filter: blur(6px);
}
.status-lamp {
  width: 9px; height: 9px; border-radius: 50%; background: #3dff9a;
  box-shadow: 0 0 10px #3dff9a; animation: pulse 2.4s infinite;
}

.hero-hud {
  position: relative; z-index: 3;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(40px, 6vh, 80px);
  font-size: 11px; color: rgba(143,163,189,.75); letter-spacing: .18em;
}
.hud-sep { color: rgba(65,227,255,.4); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 14px;
  z-index: 3;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 3px; background: var(--cyan);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- stats ---------- */
.stats {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  background: var(--bg-2); padding: clamp(28px, 3.5vw, 52px) clamp(20px, 2.5vw, 44px);
  transition: background .35s;
}
.stat:hover { background: var(--bg-3); }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 3.6vw, 56px); color: var(--ink); line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.stat-num em {
  font-style: normal; font-family: var(--font-mono); font-size: 12px;
  color: var(--cyan); letter-spacing: .2em;
}
.stat-num .x { color: var(--cyan); font-size: .6em; }
.stat p { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 4.5vw, 68px) clamp(20px, 4vw, 56px); position: relative; }
.section > * { max-width: 1340px; margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: clamp(48px, 6vw, 84px); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 62px); line-height: 1.08; letter-spacing: -.01em;
}
.stroke { color: transparent; -webkit-text-stroke: 1.3px rgba(65,227,255,.75); }
.section-sub { color: var(--muted); max-width: 560px; margin-top: 22px; font-size: 17.5px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.16,.84,.3,1), transform .9s cubic-bezier(.16,.84,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; } .d3 { transition-delay: .36s; }

/* ---------- technology ---------- */
.tech { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
/* desktop puts the video first, the copy second — mobile keeps source order */
.tech-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.tech-grid > .tech-copy { order: 2; }
.tech-grid > .tech-visual-video { order: 1; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.55; font-weight: 300; }
.lead strong { font-weight: 600; color: var(--cyan); }
.tech-copy > p:not(.lead) { color: var(--muted); margin-top: 22px; }

.spec-list { list-style: none; margin-top: 38px; border-top: 1px solid var(--line); }
.spec-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; align-items: baseline;
  transition: padding-left .3s, border-color .3s;
}
.spec-list li:hover { padding-left: 10px; border-bottom-color: rgba(65,227,255,.4); }
.spec-list b { color: var(--cyan); font-weight: 600; letter-spacing: .12em; }
.spec-list span { color: var(--muted); }

.tech-visual { display: flex; flex-direction: column; gap: 26px; margin: 0; }

/* vertical video monolith */
.tech-visual-video { align-items: center; justify-content: center; }
.vframe {
  position: relative; width: min(100%, 430px);
  aspect-ratio: 9 / 16; max-height: 760px;
  border-radius: 22px; padding: 10px;
  background: linear-gradient(160deg, rgba(11,23,48,.9), rgba(7,16,33,.6));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
  animation: vfloat 7s ease-in-out infinite;
}
@keyframes vfloat {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-14px) rotate(.4deg); }
}
.vframe::before {
  content: ""; position: absolute; inset: -2px; border-radius: 24px; z-index: -1;
  background: linear-gradient(140deg, rgba(65,227,255,.5), transparent 30%, transparent 70%, rgba(43,85,255,.5));
  filter: blur(10px); opacity: .55;
  animation: vglow 4s ease-in-out infinite;
}
@keyframes vglow { 0%,100% { opacity: .4; } 50% { opacity: .85; } }
/* dark backing — no poster frame, so nothing flashes before playback */
.vframe video {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px; display: block; background: #050b18;
}
.vframe-ring {
  position: absolute; top: 50%; left: 50%; z-index: -2;
  width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1px dashed rgba(65,227,255,.2); border-radius: 50%;
  animation: spin 40s linear infinite;
}
.vframe-corner {
  position: absolute; width: 26px; height: 26px; z-index: 3;
  border: 2px solid var(--cyan); opacity: .9;
  filter: drop-shadow(0 0 6px rgba(65,227,255,.6));
}
.c-tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.c-tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.c-bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.c-br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
/* no overlay across the video itself — it carries its own on-screen text */
.vframe-scan { display: none; }
.vframe-sound {
  position: absolute; right: 22px; bottom: 52px; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(4,7,15,.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: all .3s;
}
.vframe-sound:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px rgba(65,227,255,.3); }
.vframe-sound svg { width: 20px; height: 20px; }
.vframe-sound .ic-sound { display: none; }
.vframe-sound.on .ic-sound { display: block; }
.vframe-sound.on .ic-muted { display: none; }
.vframe-cap {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  white-space: nowrap; font-size: 10.5px; color: var(--cyan); letter-spacing: .18em;
}
.frame {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-3);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transition: transform .5s cubic-bezier(.16,.84,.3,1), box-shadow .5s;
}
.frame:hover { transform: translateY(-6px); box-shadow: 0 44px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(65,227,255,.25); }
.frame img { width: 100%; transition: transform .8s cubic-bezier(.16,.84,.3,1); }
.frame:hover img { transform: scale(1.03); }
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 20px; font-size: 10.5px; color: var(--cyan); letter-spacing: .16em;
  background: linear-gradient(transparent, rgba(4,7,15,.92));
}
.frame-b { margin-left: clamp(0px, 4vw, 60px); }

/* ---------- infographic board ---------- */
.board {
  margin: 0 auto clamp(64px, 8vw, 120px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; background: rgba(7,16,33,.6);
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
  transition: border-color .5s, box-shadow .5s;
}
.board:hover { border-color: rgba(65,227,255,.35); box-shadow: 0 46px 110px rgba(0,0,0,.6); }
.board-img { position: relative; background: #f2f4f7; }
.board-img img { width: 100%; height: auto; display: block; }

/* ---------- advantages ---------- */
.adv-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px); margin-bottom: clamp(60px, 7vw, 100px);
}
.adv-card {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(28px, 2.6vw, 42px);
  background: linear-gradient(160deg, rgba(11,23,48,.65), rgba(7,16,33,.35));
  overflow: hidden; transition: transform .45s cubic-bezier(.16,.84,.3,1), border-color .45s, box-shadow .45s;
}
.adv-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px 200px at 20% 0%, rgba(65,227,255,.1), transparent 70%);
}
.adv-card:hover { transform: translateY(-8px); border-color: rgba(65,227,255,.4); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.adv-card:hover::before { opacity: 1; }
/* icon and title sit on one line */
.adv-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.adv-icon { width: 46px; height: 46px; flex: none; color: var(--cyan); }
.adv-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(65,227,255,.4)); }
.adv-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.28; text-transform: uppercase; letter-spacing: .02em;
}
.adv-card p { color: var(--muted); font-size: 15.5px; }
.adv-card strong { color: var(--ink); font-weight: 600; }

/* comparison */
.compare {
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: rgba(7,16,33,.5);
}
.compare-head, .compare-row {
  display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 0;
}
.compare-head {
  font-size: 11.5px; letter-spacing: .18em; border-bottom: 1px solid var(--line-2);
}
.compare-head span { padding: 18px 26px; }
.compare-head .c-trad { color: var(--muted); }
.compare-head .c-smr { color: var(--cyan); background: rgba(65,227,255,.06); text-shadow: 0 0 12px rgba(65,227,255,.5); }
.compare-row { border-bottom: 1px solid var(--line); transition: background .3s; }
.compare-row:last-child { border-bottom: 0; }
.compare-row:hover { background: rgba(65,227,255,.03); }
.compare-row span { padding: 20px 26px; font-size: 15px; }
.compare-row .c-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--ink); text-transform: uppercase; }
.compare-row .c-trad { color: rgba(143,163,189,.7); }
.compare-row .c-smr { color: var(--ink); background: rgba(65,227,255,.05); font-weight: 500; }

/* ---------- applications ---------- */
.apps { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.apps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 30px);
}
.app-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(11,23,48,.72), rgba(7,16,33,.42));
  transition: transform .45s cubic-bezier(.16,.84,.3,1), border-color .45s, box-shadow .45s;
}
.app-card:hover {
  transform: translateY(-7px); border-color: rgba(65,227,255,.45);
  box-shadow: 0 34px 70px rgba(0,0,0,.5);
}
.app-media { position: relative; overflow: hidden; background: #050b18; }
/* height:auto is required — the HTML height attribute is a presentational
   hint that would otherwise win over aspect-ratio */
.app-media img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.16,.84,.3,1);
}
.app-card:hover .app-media img { transform: scale(1.04); }
/* seam between the artwork and the card body */
.app-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(65,227,255,.55), transparent);
}
.app-corner {
  position: absolute; width: 20px; height: 20px; z-index: 2;
  border: 2px solid var(--cyan); opacity: 0;
  transition: opacity .4s ease;
}
.app-card:hover .app-corner { opacity: .9; }
.app-corner.c-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.app-corner.c-br { bottom: 14px; right: 12px; border-left: 0; border-top: 0; }

.app-body { padding: clamp(22px, 2.2vw, 32px); }
.app-tag { font-size: 11px; color: var(--cyan); letter-spacing: .22em; display: block; margin-bottom: 12px; }
.app-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 23px);
  text-transform: uppercase; margin-bottom: 12px; letter-spacing: .02em; line-height: 1.25;
}
.app-card p { color: var(--muted); font-size: 15px; }

/* ---------- media ---------- */
.player {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(11,23,48,.85), rgba(7,16,33,.55));
  padding: clamp(20px, 2.4vw, 34px);
  margin-bottom: clamp(40px, 5vw, 64px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.play-btn {
  flex: none; width: clamp(64px, 6vw, 84px); height: clamp(64px, 6vw, 84px);
  border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(140deg, var(--blue), #14259e);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 34px rgba(43,85,255,.4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .3s, box-shadow .3s;
}
.play-btn:hover { transform: scale(1.07); box-shadow: 0 16px 44px rgba(43,85,255,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.play-btn svg { width: 40%; height: 40%; }
.player.playing .ic-play { display: none; }
.player:not(.playing) .ic-pause { display: none; }

.player-main { flex: 1; min-width: 0; }
.player-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.player-tag { font-size: 10.5px; color: var(--cyan); letter-spacing: .22em; }
.player-time { font-size: 12px; color: var(--muted); }
.player-title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.6vw, 21px);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .02em;
}

.wave { position: relative; height: 52px; cursor: pointer; }
.wave-bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 3px; }
.wave-bars i {
  flex: 1 1 0; min-width: 0; background: rgba(143,163,189,.3); border-radius: 2px;
  height: var(--h, 30%); transition: background .3s;
}
.wave-progress {
  position: absolute; inset: 0; width: 0%; overflow: hidden; pointer-events: none;
}
.wave-progress .wave-bars i { background: var(--cyan); box-shadow: 0 0 6px rgba(65,227,255,.5); }
.player.playing .wave-progress .wave-bars i { animation: eq 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.09s); }
@keyframes eq { from { transform: scaleY(.75); } to { transform: scaleY(1.18); } }

.rate-btn {
  flex: none; border: 1px solid var(--line-2); background: none; color: var(--muted);
  font-size: 13px; padding: 10px 16px; border-radius: 100px; cursor: pointer; transition: all .3s;
}
.rate-btn:hover { color: var(--cyan); border-color: var(--cyan); }

/* last block of the section — the section padding supplies the gap below */
.video-wrap { margin-bottom: 0; }
.video-wrap video {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2);
  box-shadow: 0 34px 80px rgba(0,0,0,.55); background: #000;
}
.video-cap { margin-top: 14px; font-size: 11px; color: var(--muted); letter-spacing: .18em; }

.gallery-head { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(40px, 4.5vw, 64px); margin-bottom: 24px; }
.gallery-head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 26px); text-transform: uppercase; }
.gal-nav { display: flex; gap: 10px; }
.gal-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: none; color: var(--ink); font-size: 18px; cursor: pointer; transition: all .3s;
}
.gal-nav button:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 20px rgba(65,227,255,.2); }

/* auto-running carousel: the track slides itself, no visible scrollbar */
/* no scroll-behavior:smooth here — it would cancel each drift increment
   and the track would never move. The arrows request smooth explicitly. */
.gallery {
  display: flex; gap: 18px; overflow: hidden;
  padding-bottom: 4px; margin-bottom: clamp(40px, 4.5vw, 64px);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  flex: 0 0 clamp(260px, 34vw, 460px); margin: 0;
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--bg-3); cursor: zoom-in; position: relative;
  transition: transform .4s cubic-bezier(.16,.84,.3,1), border-color .4s;
}
.gallery figure:hover { transform: translateY(-6px); border-color: rgba(65,227,255,.5); }
.gallery img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.gallery figcaption {
  position: absolute; top: 10px; left: 10px; font-size: 10px; letter-spacing: .18em;
  background: rgba(4,7,15,.8); color: var(--cyan); padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--line);
}

/* ---------- team ---------- */
.team { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

/* photo + caption occupy a third; the roster fills the remaining two thirds */
/* the roster stretches to the photo+caption height, so the two columns stay
   flush however many members are listed */
.team-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 3vw, 46px); align-items: stretch;
}
.team-photo {
  margin: 0; display: flex; flex-direction: column; gap: 20px; align-self: start;
}
.tp-shot {
  position: relative; border-radius: 14px;
  border: 1px solid var(--line-2); padding: 9px;
  background: linear-gradient(160deg, rgba(11,23,48,.9), rgba(7,16,33,.55));
  box-shadow: 0 34px 78px rgba(0,0,0,.55);
}
.tp-shot img {
  width: 100%; height: auto; display: block; border-radius: 7px;
  /* the source is a low-res 2016 archive frame — a slight desaturation
     reads as documentary rather than as a bad upscale */
  filter: grayscale(.42) contrast(1.07) brightness(1.03);
  transition: filter .6s ease, transform .6s cubic-bezier(.16,.84,.3,1);
}
.tp-shot:hover img { filter: grayscale(0) contrast(1.02) brightness(1); transform: scale(1.012); }
.tp-corner {
  position: absolute; width: 22px; height: 22px; z-index: 2;
  border: 2px solid var(--cyan); opacity: .85;
  filter: drop-shadow(0 0 6px rgba(65,227,255,.55));
}
.tp-corner.c-tl { top: -5px; left: -5px; border-right: 0; border-bottom: 0; border-top-left-radius: 7px; }
.tp-corner.c-tr { top: -5px; right: -5px; border-left: 0; border-bottom: 0; border-top-right-radius: 7px; }
.tp-corner.c-bl { bottom: -5px; left: -5px; border-right: 0; border-top: 0; border-bottom-left-radius: 7px; }
.tp-corner.c-br { bottom: -5px; right: -5px; border-left: 0; border-top: 0; border-bottom-right-radius: 7px; }

.tp-caption { border-left: 2px solid var(--cyan); padding-left: 18px; }
.tp-label {
  display: block; font-size: 10px; color: var(--cyan);
  letter-spacing: .18em; margin-bottom: 12px; line-height: 1.5;
}
.tp-caption p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
/* 8 members in 2 columns = 4 rows, which keeps this column the same height
   as the photo + caption beside it */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.member {
  background: var(--bg); padding: clamp(16px, 1.5vw, 22px) clamp(16px, 1.5vw, 24px);
  transition: background .35s; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.member::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .45s;
}
.member:hover { background: var(--bg-3); }
.member:hover::after { width: 100%; }
.member h4 { font-family: var(--font-display); font-weight: 500; font-size: 15px; margin-bottom: 7px; line-height: 1.25; }
.member p { font-size: 9.5px; color: var(--muted); letter-spacing: .11em; line-height: 1.55; }

/* ---------- partners ---------- */
.partners { background: var(--bg-2); }
.partners-board {
  max-width: 1080px; margin: 0 auto;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line-2);
  padding: clamp(22px, 3vw, 46px);
  box-shadow: 0 34px 84px rgba(0,0,0,.5);
  transition: box-shadow .5s, transform .5s cubic-bezier(.16,.84,.3,1);
}
.partners-board:hover { transform: translateY(-5px); box-shadow: 0 44px 100px rgba(0,0,0,.58); }
.partners-board img { width: 100%; height: auto; display: block; }

/* ---------- contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(43,85,255,.22), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
/* start-aligned so the "07" kicker lines up with the section top like every
   other heading — centering pushed it down and broke the vertical rhythm */
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 90px); align-items: start; max-width: 1340px; margin: 0 auto;
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(22px, 2.2vw, 32px);
  background: rgba(7,16,33,.6); transition: all .35s;
}
.contact-card:hover { border-color: var(--cyan); transform: translateX(8px); box-shadow: -8px 0 34px rgba(65,227,255,.12); }
.contact-card span { font-size: 10.5px; color: var(--cyan); letter-spacing: .24em; }
.contact-card strong { color: var(--ink); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; line-height: 1.45; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 56px); background: var(--bg); }
.footer-inner { max-width: 1340px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand img {
  width: clamp(95px, 12vw, 130px); height: auto;
  filter: drop-shadow(0 6px 20px rgba(43,85,255,.35));
}
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer-line { font-size: 10.5px; color: rgba(65,227,255,.55); letter-spacing: .3em; }
.footer-copy { color: rgba(143,163,189,.5); font-size: 12.5px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 4000; display: none;
  align-items: center; justify-content: center;
  background: rgba(2,4,9,.94); backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px); max-height: 86vh; border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,.8); border: 1px solid var(--line-2);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(7,16,33,.8); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer;
  width: 52px; height: 52px; font-size: 20px; transition: all .3s; z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--cyan); border-color: var(--cyan); }
.lb-close { top: 24px; right: 24px; font-size: 26px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-top: 20px; }
  .reactor { width: min(70vw, 340px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .adv-cards { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  /* below the two-thirds breakpoint the photo stacks above the roster */
  .team-layout { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .team-photo { flex-direction: row; align-items: flex-end; gap: 28px; }
  .tp-shot { flex: 0 0 46%; }
  .tp-caption { flex: 1; }
}
@media (max-width: 720px) {
  /* backdrop-filter on .nav would make it the containing block for the
     fixed menu, leaving it half-visible when closed — use a solid bar instead */
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(4,7,15,.95); }
  .nav-links {
    position: fixed; top: 0; left: 0; z-index: 1050;
    width: 100vw; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 34px;
    background: rgba(4,7,15,.98);
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.16,.84,.3,1), visibility .4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { font-size: 20px; }
  .nav-burger { display: block; }
  .stats { grid-template-columns: 1fr 1fr; }
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .compare-head { display: none; }
  .compare-row span { padding: 10px 20px; }
  .compare-row .c-label { padding-top: 18px; color: var(--cyan); }
  .compare-row .c-trad::before { content: "TRADITIONAL — "; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: rgba(143,163,189,.6); }
  .compare-row .c-smr::before { content: "SMR — "; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--cyan); }
  .compare-row .c-smr { padding-bottom: 18px; }
  .apps-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  /* audio player stacks: label, title, waveform, then the play control.
     the speed control is desktop-only — it reads as a stray "1x" on a phone */
  .player { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 20px; }
  .rate-btn { display: none; }
  .player-main { order: 1; }
  .play-btn { order: 2; width: 62px; height: 62px; align-self: center; }
  .player-top { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
  .player-title { font-size: 17px; line-height: 1.3; margin-bottom: 18px; }
  .wave { height: 46px; }
  .wave-bars { gap: 3px; }
  .hero-hud { font-size: 9.5px; }

  /* --- mobile: hero video at true 100% width, never cropped --- */
  .hero-video {
    min-height: 0; height: auto; max-height: none; aspect-ratio: auto;
    padding: 78px 0 0; justify-content: flex-start;
  }
  .hero-video video {
    position: relative; inset: auto;
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    object-fit: contain; background: #04070f;
  }
  .hero-veil { display: none; }
  /* nothing between the hero video and the first section */
  .hero-video .scroll-hint, .sound-toggle { display: none; }

  /* --- mobile: title sits right under the hero video --- */
  .tech { padding-top: 38px; padding-bottom: 26px; }
  /* tighten the run from the BUILD spec row into the white infographic */
  .advantages { padding-top: 26px; }
  .tech .kicker { display: none; }
  .tech .section-head { margin-bottom: 30px; }

  /* --- mobile: video slots between the 1st and 2nd paragraph --- */
  .tech-grid { display: flex; flex-direction: column; gap: 24px; }
  .tech-copy { display: contents; }
  .tech-copy .lead { order: 1; }
  .tech-visual-video { order: 2; margin-bottom: 26px; }
  .tech-copy > p:not(.lead) { order: 3; margin-top: 0; }
  .tech-copy .spec-list { order: 4; margin-top: 4px; }

  /* --- mobile: vertical video full-bleed, edge to edge --- */
  .tech-visual-video { margin-inline: -20px; }
  .vframe {
    width: 100%; max-width: none; max-height: none;
    padding: 0; border-radius: 0; border-left: 0; border-right: 0;
    animation: none; box-shadow: none;
  }
  .vframe::before, .vframe-ring, .vframe-corner { display: none; }
  .vframe video { border-radius: 0; }
  .vframe-scan { left: 0; right: 0; top: 0; border-radius: 0; }
  .vframe-sound { right: 16px; bottom: 16px; }
  .vframe-cap { bottom: -30px; }
  .tech-visual { gap: 52px; }

  /* --- mobile: infographic board full-bleed --- */
  .board {
    margin-inline: -20px; width: calc(100% + 40px);
    border-radius: 0; border-left: 0; border-right: 0;
  }
  .board-bar { font-size: 9.5px; letter-spacing: .16em; gap: 10px; }
  .board-meta { margin-left: 0; flex-basis: 100%; font-size: 9px; }

  /* keep mono strings from forcing horizontal scroll */
  .team-layout { gap: 30px; }
  .team-photo { flex-direction: column; align-items: stretch; gap: 20px; }
  .tp-shot { flex: none; padding: 6px; }
  .tp-caption { padding-left: 16px; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  .player-tag, .player-time, .video-cap, .footer-line { letter-spacing: .12em; }
  .vframe-cap { white-space: normal; text-align: center; width: 100%; }
}

/* dev screenshot mode */
.shot-mode .hero { min-height: 900px; }
.shot-mode .reveal { opacity: 1; transform: none; transition: none; }
.shot-mode .hero-title .line > span { transform: none; animation: none; }
.shot-mode .spec-callout text { opacity: 1; animation: none; }

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