/* ========== Tokens — clinical light / technical blueprint ========== */
:root {
  --bg:         #f6f8fa;
  --bg-surface: #ffffff;
  --bg-tint:    #eef3f7;

  --panel:      #0a1626;   /* deep navy contrast panels */
  --panel-2:    #0e1f33;

  --ink:            #0c1c2c;
  --text-secondary: #46586c;
  --text-muted:     #5d7186;
  --border:         #dde5ec;
  --border-strong:  #c9d4de;

  --accent:        #006e8f;   /* interactive / text-level teal, AA on white */
  --accent-bright: #00b8e0;   /* decorative only */
  --accent-navy:   #0c1c2c;
  --accent-glow:   rgba(0, 184, 224, 0.14);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --text-hero: clamp(2.6rem, 6vw + 0.5rem, 6.2rem);
  --text-2xl:  clamp(2rem, 3.4vw + 0.5rem, 4.2rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.375rem);

  --space-section: clamp(5rem, 4rem + 6vw, 11rem);
  --pad-x: clamp(1.25rem, 4vw, 5rem);

  --shadow-card: 0 1px 2px rgba(12,28,44,0.04), 0 8px 24px rgba(12,28,44,0.06);
  --shadow-lift: 0 2px 4px rgba(12,28,44,0.05), 0 20px 48px rgba(12,28,44,0.12);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 0.6rem 1.2rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110;
  background: linear-gradient(90deg, var(--accent), #1b6fae 55%, var(--accent-purple));
  transform: scaleX(0); transform-origin: left;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.8rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.28) 50%, transparent 75%);
  transform: translateX(-130%);
}
.btn-primary:hover::after { transform: translateX(130%); transition: transform 0.7s var(--ease-out-expo); }
.btn-primary {
  background: var(--accent-navy); color: #fff;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(0,110,143,0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--border-strong); color: var(--ink); background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(0,110,143,0.04);
  transform: translateY(-2px);
}

/* ========== Nav ========== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.nav {
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem var(--pad-x);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(12,28,44,0.05);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.06em; line-height: 1; display: inline-flex; flex-direction: column; gap: 2px;
  color: var(--ink);
}
.nav-wordmark small {
  font-family: var(--font-body); font-weight: 500; font-size: 0.5rem;
  letter-spacing: 0.42em; color: var(--text-muted);
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; margin-left: auto; }
.nav-links a {
  position: relative; font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary); padding: 0.5rem 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.nav-phone {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap; padding: 0.5rem 0.2rem;
  transition: color 0.25s;
}
.nav-phone::before { content: '☎ '; color: var(--accent); }
.nav-phone:hover { color: var(--accent); }
@media (max-width: 900px) { .nav-phone { display: none; } }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  margin-left: auto;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.status-ticker {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  color: var(--accent); padding: 0.35rem var(--pad-x);
  background: #e8f1f5;
  border-bottom: 1px solid rgba(0,110,143,0.12);
  display: flex; align-items: center; gap: 0.5rem;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,110,143,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,110,143,0); }
}

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255,255,255,0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
}
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--ink);
  opacity: 0; transform: translateY(20px);
  animation: mmReveal 0.5s var(--ease-out-expo) forwards;
}
.mobile-menu a:nth-child(2) { animation-delay: 0.06s; }
.mobile-menu a:nth-child(3) { animation-delay: 0.12s; }
.mobile-menu a:nth-child(4) { animation-delay: 0.18s; }
.mobile-menu a:nth-child(5) { animation-delay: 0.24s; }
.mobile-menu a:nth-child(6) { animation-delay: 0.3s; }
@keyframes mmReveal { to { opacity: 1; transform: none; } }

/* ========== Hero — blueprint on paper ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem var(--pad-x) 4rem;
  overflow: hidden;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto;
  background-position: -1px -1px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(246,248,250,0.2) 0%, var(--bg) 78%);
  pointer-events: none;
}
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Full-bleed cinematic hero background — desktop only (mobile keeps the framed stage) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; display: none; }
.hero-bg-film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;
}
.hero-bg-film { opacity: 0; transition: opacity 1.1s ease; }
.hero-bg-film.is-on { opacity: 1; }
.hero-bg-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(246,248,250,0.86) 26%, rgba(246,248,250,0.42) 48%, rgba(246,248,250,0) 70%),
    linear-gradient(0deg, rgba(246,248,250,0.55) 0%, transparent 22%);
}
@media (min-width: 1024px) {
  .hero-bg, .hero-bg-scrim { display: block; }
  .hero-bg {                         /* poster as CSS bg: not an LCP candidate, never fetched on mobile */
    background: var(--bg) url('/assets/mri-hero-bg-poster.jpg') 72% center / cover no-repeat;
  }
  .hero .hero-visual { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
.hero-glow {
  position: absolute; top: 8%; right: -12%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(0,184,224,0.1) 0%, rgba(123,94,167,0.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem; align-items: center;
  max-width: 1400px; margin: 0 auto; width: 100%;
}
.hero-eyebrow .tick {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em;
  color: var(--accent);
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.02em;
  margin: 1.4rem 0 1.8rem; color: var(--ink);
}
.ht-line { display: block; }
.ht-accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, #1b6fae 60%, var(--accent-purple, #7b5ea7) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 56ch; color: var(--text-secondary); font-size: var(--text-lg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-proof { display: flex; gap: 2.6rem; margin-top: 3rem; }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof dt { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.hero-proof dd { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.hero-phone-note { margin-top: 1rem; font-size: 0.88rem; color: var(--text-muted); }
.hero-phone-note a { color: var(--accent); font-weight: 500; }
.hero-phone-note a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Bore visual — blueprint linework */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.bore { position: relative; width: min(420px, 78vw); aspect-ratio: 1; }
.bore-ring { position: absolute; border-radius: 50%; }
.br-1 { inset: 0; border: 1px solid rgba(12,28,44,0.14); animation: spin 60s linear infinite; }
.br-2 { inset: 9%; border: 1px dashed rgba(0,110,143,0.35); animation: spin 38s linear infinite reverse; }
.br-3 { inset: 20%; border: 2px solid rgba(0,110,143,0.2); border-top-color: var(--accent); animation: spin 14s linear infinite; }
.br-4 { inset: 31%; border: 1px dashed rgba(123,94,167,0.45); animation: spin 26s linear infinite reverse; }
.bore-sweep {
  position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,184,224,0.22), transparent 18%);
  animation: spin 5s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%);
  mask: radial-gradient(circle, transparent 38%, #000 39%);
}
.bore-core {
  position: absolute; inset: 41%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,184,224,0.28), rgba(0,184,224,0.03) 70%);
  border: 1px solid rgba(0,110,143,0.45);
  animation: breathe 4s ease-in-out infinite;
}
.bore-crosshair { position: absolute; inset: 0; }
.bore-crosshair::before, .bore-crosshair::after {
  content: ''; position: absolute; background: rgba(12,28,44,0.12);
}
.bore-crosshair::before { left: 50%; top: 6%; bottom: 6%; width: 1px; }
.bore-crosshair::after { top: 50%; left: 6%; right: 6%; height: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }

.hud {
  font-family: var(--font-mono); font-size: 0.68rem;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); padding: 0.9rem 1.2rem;
  min-width: 250px; display: flex; flex-direction: column; gap: 0.45rem;
  box-shadow: var(--shadow-card);
  animation: hudFloat 6s ease-in-out infinite;
}
@keyframes hudFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hud-row { display: flex; justify-content: space-between; gap: 2rem; }
.hud-row span { color: var(--text-muted); letter-spacing: 0.14em; }
.hud-row b { color: var(--ink); font-weight: 400; }
.hud-ok { color: #15803d !important; }

/* Hero film stage — photoreal MRI scanner (Higgsfield) + blueprint overlay */
.hero-stage {
  position: relative; width: min(560px, 94%); aspect-ratio: 1344 / 768;
  border: 1px solid var(--border-strong); overflow: hidden;
  background: linear-gradient(160deg, #eef3f7, var(--bg));
  box-shadow: var(--shadow-card);
}
.hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0; transition: opacity 0.8s ease;
}
.hero-film.is-on { opacity: 1; }
.hero-stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 38%, transparent 52%, rgba(10,22,38,0.12));
  mix-blend-mode: multiply;
}
.hero-blueprint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bp-dot { fill: var(--accent-bright); }
.bp-line { stroke: var(--accent); stroke-width: 1.3; opacity: 0.75; }
.bp-label { fill: var(--ink); font-family: var(--font-mono); font-size: 15px; letter-spacing: 1.4px; }
.bp-sub { fill: var(--text-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; }
.bp-callout { opacity: 0.92; }
.cine-on .bp-callout { opacity: 0; animation: bpReveal 0.8s var(--ease-out-expo) forwards; }
.cine-on .bp-c1 { animation-delay: 0.55s; }
.cine-on .bp-c2 { animation-delay: 0.75s; }
.cine-on .bp-c3 { animation-delay: 0.95s; }
@keyframes bpReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 0.92; transform: none; } }
/* corner scan ticks */
.stage-tick { position: absolute; width: 14px; height: 14px; pointer-events: none; border-color: var(--accent); }
.st-tl { top: 8px; left: 8px; border-top: 1.5px solid; border-left: 1.5px solid; }
.st-tr { top: 8px; right: 8px; border-top: 1.5px solid; border-right: 1.5px solid; }
.st-bl { bottom: 8px; left: 8px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.st-br { bottom: 8px; right: 8px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px; background: rgba(12,28,44,0.12); overflow: hidden;
}
.scroll-cue span {
  position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: var(--accent); animation: cueDrop 2s ease-in-out infinite;
}
@keyframes cueDrop { to { top: 110%; } }

/* ========== Subpage hero + breadcrumbs ========== */
.breadcrumbs {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--text-muted); display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero {
  position: relative; padding: 11rem var(--pad-x) 4.5rem; overflow: hidden;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto;
  background-position: -1px -1px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(246,248,250,0.25) 0%, var(--bg) 80%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw + 0.5rem, 4.6rem);
  line-height: 1.04; letter-spacing: -0.02em; color: var(--ink);
  max-width: 18ch; margin-bottom: 1.4rem;
}
.page-hero .hero-sub { margin-bottom: 0; }
.content-prose { max-width: 72ch; color: var(--text-secondary); }
.content-prose p { margin-bottom: 1.2rem; }
.content-prose strong { color: var(--ink); }
.content-prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin: 2.2rem 0 0.8rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 1rem; border: 1px solid var(--border); }
.spec-table th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-tint); font-weight: 400; }
.spec-table td { color: var(--text-secondary); background: var(--bg-surface); }
.spec-table td:first-child { color: var(--ink); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 1024px) { .two-col { grid-template-columns: 1fr; } }
.photo-frame { margin: 0 0 1.5rem; border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--bg-surface); }
.photo-frame img { width: 100%; height: auto; display: block; }
.photo-frame figcaption {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); padding: 0.55rem 0.9rem; border-top: 1px solid var(--border);
}

/* ========== Blog ========== */
.article-meta {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
}
.article-body { max-width: 72ch; }
.article-body h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
  color: var(--ink); margin: 2.6rem 0 1rem; line-height: 1.15;
}
.article-body p, .article-body li { color: var(--text-secondary); }
.article-body p { margin-bottom: 1.2rem; }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.3rem; display: grid; gap: 0.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; position: relative; z-index: 2; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  border: 1px solid var(--border); background: var(--bg-surface);
  box-shadow: var(--shadow-card); padding: 2rem;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(0,110,143,0.4); box-shadow: var(--shadow-lift); }
.blog-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.blog-card p { color: var(--text-secondary); font-size: 0.93rem; }
.blog-card .card-link { margin-top: auto; }

/* ========== Marquee ========== */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 1.1rem 0; background: var(--bg-surface);
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--text-muted); white-space: nowrap;
}
.marquee-track i { color: var(--accent); font-style: normal; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== Sections ========== */
.section { position: relative; padding: var(--space-section) var(--pad-x); max-width: 1400px; margin: 0 auto; }
.ghost-num {
  position: absolute; top: 1rem; right: var(--pad-x);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 14vw, 14rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(12,28,44,0.07);
  pointer-events: none; user-select: none;
}
.section-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.section-label::before { content: '// '; opacity: 0.5; }
.s-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -0.015em;
  margin-bottom: 1.5rem; color: var(--ink);
}
.section-head { margin-bottom: 3.5rem; position: relative; z-index: 2; }

/* ========== Bento ========== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; position: relative; z-index: 2; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s, box-shadow 0.35s;
}
.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,110,143,0.4);
  box-shadow: var(--shadow-lift);
}
.bento-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--ink); }
.bento-card p { color: var(--text-secondary); font-size: 0.95rem; }
.check-list { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.5rem; }
.check-list li { color: var(--text-secondary); font-size: 0.9rem; padding-left: 1.4rem; position: relative; }
.check-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.card-link { display: inline-block; margin-top: 1.2rem; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.badge-card { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; border-style: dashed; background: var(--bg-tint); box-shadow: none; }
.badge-kicker { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted) !important; }
.badge-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink) !important; }

/* ========== Stats — navy contrast band ========== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(170deg, var(--panel), var(--panel-2));
}
.stat {
  padding: 3.2rem 1.5rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 4rem); color: var(--accent-bright); line-height: 1;
}
.stat-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ========== Why ========== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; position: relative; z-index: 2; }
.why-copy p { color: var(--text-secondary); margin-bottom: 1.2rem; max-width: 52ch; }
.why-canada strong { color: var(--ink); }
.diff-list { list-style: none; display: grid; gap: 1rem; }
.diff-card {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--bg-surface); padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.diff-card:hover { transform: translateX(8px); box-shadow: var(--shadow-lift); }
.diff-card b { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.diff-card span { color: var(--text-secondary); font-size: 0.92rem; }

/* ========== Inventory ========== */
.inv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.inv-track {
  display: flex; gap: 1.1rem; overflow-x: auto; padding: 0.5rem 0 1.5rem;
  cursor: grab; touch-action: pan-x; scrollbar-width: thin;
  scrollbar-color: rgba(0,110,143,0.4) transparent;
  position: relative; z-index: 2;
}
.inv-track.dragging { cursor: grabbing; scroll-behavior: auto; }
.eq-card {
  flex: 0 0 275px; border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  padding: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}
.eq-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.eq-ge:hover { border-color: rgba(0,110,143,0.5); }
.eq-siemens:hover { border-color: rgba(107,79,158,0.5); }
.eq-mobile:hover { border-color: rgba(26,158,92,0.5); }
.eq-img {
  position: relative; height: 150px; overflow: hidden;
  margin-bottom: 0.8rem; background: var(--bg-tint);
}
.eq-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}
.eq-card:hover .eq-img img { transform: scale(1.05); }
.eq-img-note {
  position: absolute; bottom: 0; right: 0;
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); background: rgba(12,28,44,0.55);
  padding: 0.2rem 0.5rem;
}
.eq-brand { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.eq-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.eq-specs { font-size: 0.8rem; color: var(--text-secondary); }
.eq-badge {
  align-self: flex-start; margin-top: 0.6rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(0,110,143,0.4); padding: 0.25rem 0.6rem;
  background: rgba(0,110,143,0.05);
}
.eq-siemens .eq-badge { color: #6b4f9e; border-color: rgba(107,79,158,0.45); background: rgba(107,79,158,0.05); }
.eq-mobile .eq-badge { color: #14794a; border-color: rgba(26,158,92,0.45); background: rgba(26,158,92,0.05); }

/* ========== Process ========== */
.process { max-width: none; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process .section-head, .process .steps { max-width: 1400px; margin-left: auto; margin-right: auto; }
.process .section-head { margin-bottom: 3.5rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; z-index: 2; }
.step { position: relative; padding-top: 1rem; }
.step-n {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(0,110,143,0.5);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--accent);
  box-shadow: 0 0 0 6px rgba(0,110,143,0.06);
  margin-bottom: 1.2rem; background: var(--bg-surface);
  position: relative; z-index: 2;
}
.step::before {
  content: ''; position: absolute; top: calc(1rem + 27px); left: 60px; right: -2rem;
  height: 1px; background: linear-gradient(90deg, rgba(0,110,143,0.4), rgba(0,110,143,0.08));
}
.step:last-child::before { display: none; }
.step h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--ink); }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* ========== Testimonials ========== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; position: relative; z-index: 2; }
.quote-card {
  border: 1px solid var(--border); background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.4rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.quote-card:hover { border-color: rgba(0,110,143,0.35); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.quote-card::before { content: '“'; font-family: var(--font-display); font-size: 3rem; line-height: 0.5; color: var(--accent); }
.quote-card p { font-style: italic; color: var(--text-secondary); font-size: 0.96rem; }
.quote-card footer { margin-top: auto; display: flex; flex-direction: column; }
.quote-card footer b { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.quote-card footer span { color: var(--text-muted); font-size: 0.8rem; }

/* ========== FAQ ========== */
.faq-list { max-width: 860px; position: relative; z-index: 2; display: grid; gap: 0.8rem; }
.faq-item {
  border: 1px solid var(--border); background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s;
}
.faq-item[open], .faq-item:hover { border-color: rgba(0,110,143,0.4); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 1.3rem 3.4rem 1.3rem 1.5rem; position: relative;
  min-height: 44px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.4rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent);
  transition: transform 0.3s var(--ease-out-expo);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.4rem; color: var(--text-secondary); font-size: 0.95rem; max-width: 70ch; }

/* ========== CTA Banner — navy contrast panel ========== */
.cta-banner {
  position: relative; text-align: center; isolation: isolate;
  padding: var(--space-section) var(--pad-x);
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(0,184,224,0.12), transparent 70%),
    linear-gradient(170deg, var(--panel), var(--panel-2));
  overflow: hidden;
}
/* Second AI engine (Seedance / Bytedance) orbit — desktop-only, lazy, multiply-blended
   into the navy so the white studio background vanishes and the scanner reads as tone. */
.cta-film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none; pointer-events: none;
  mix-blend-mode: multiply; filter: grayscale(0.4) contrast(1.05); opacity: 0.9;
}
.cta-film.is-on { display: block; }
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-2xl); line-height: 1.05; margin-bottom: 1.4rem;
  color: #fff;
}
.cta-title em { font-style: normal; color: var(--accent-bright); }
.cta-stat { color: rgba(255,255,255,0.65); font-size: var(--text-lg); margin-bottom: 1rem; }
.cta-stat b { color: #fff; font-weight: 600; }
.cta-banner .hero-actions { justify-content: center; }
.cta-banner .btn-primary { background: var(--accent-bright); color: var(--panel); }
.cta-banner .btn-primary:hover { background: #fff; box-shadow: 0 12px 32px rgba(0,184,224,0.35); }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-banner .btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); background: rgba(0,184,224,0.08); }
.cta-phone {
  margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.22em; color: rgba(255,255,255,0.45);
}

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; position: relative; z-index: 2; }
.contact-form { display: grid; gap: 1.1rem; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 500;
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: max(16px, 1rem); font-weight: 400;
  color: var(--ink); background: var(--bg-surface);
  border: 1px solid var(--border-strong); padding: 0.85rem 1rem;
  border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23006e8f' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,110,143,0.14);
}
.btn-submit { justify-self: start; min-width: 200px; }
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; padding-top: 5.4rem; }
.ci-block { display: flex; flex-direction: column; gap: 0.25rem; border-left: 3px solid var(--accent); padding-left: 1.2rem; }
.ci-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.ci-block b { font-weight: 500; font-size: 1rem; color: var(--ink); }
.ci-block a:hover { color: var(--accent); }
.ci-callout {
  margin-top: 0.8rem; padding: 1.3rem 1.5rem;
  border: 1px dashed rgba(0,110,143,0.45); background: rgba(0,110,143,0.05);
  font-size: 0.92rem; color: var(--text-secondary);
}
.ci-callout b { color: var(--accent); }

/* ========== Footer — navy panel ========== */
.footer { background: linear-gradient(170deg, var(--panel), var(--panel-2)); padding: 4rem var(--pad-x) 0; color: #fff; }
.footer .nav-wordmark { color: #fff; }
.footer .nav-wordmark small { color: rgba(255,255,255,0.45); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  max-width: 1400px; margin: 0 auto; padding-bottom: 3rem;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 1rem; max-width: 36ch; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-grid h3 {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.4rem; font-weight: 400;
}
.footer-grid nav a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.25s; padding: 0.15rem 0; }
.footer-grid nav a:hover { color: var(--accent-bright); }
.footer-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto; padding: 1.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ========== Reveal defaults (JS enhances) ========== */
.reveal, .reveal-seq { opacity: 1; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-7, .span-5, .span-4 { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-top: 7.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-proof { gap: 1.6rem; flex-wrap: wrap; }
  .bento { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .steps { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ghost-num { font-size: 5.5rem; opacity: 0.7; }
}

@media (max-width: 768px) {
  .status-ticker { font-size: 0.55rem; letter-spacing: 0.06em; line-height: 1.5; }
  .footer-grid nav a { padding: 0.45rem 0; }
  .nav-links a { padding: 0.7rem 0; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hud { min-width: 0; width: 100%; }
  .bore { width: min(320px, 74vw); }
  .hero { padding-top: 6.5rem; }
  .hero-title { margin: 1.1rem 0 1.4rem; }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CINEMATIC LAYER — progressive enhancement, all reduced-motion safe
   ============================================================ */

/* ---- WebGL hero canvas (sits behind hero text, fades in) ---- */
#webglHero {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0; transition: opacity 1.2s var(--ease-out-expo);
  pointer-events: none;
}
#webglHero.webgl-ready { opacity: 1; }
#webglHero canvas { width: 100% !important; height: 100% !important; display: block; }
/* When WebGL is live, dim the CSS bore so they don't fight */
.hero:has(#webglHero.webgl-ready) .bore { opacity: 0.18; transition: opacity 1s ease; }

/* ---- Custom cursor (desktop only; class added by JS) ---- */
.has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button, .has-custom-cursor .btn { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; translate: -50% -50%; will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); margin: -3.5px 0 0 -3.5px; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(0,110,143,0.5);
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, border-color 0.25s;
}
.cursor-ring.cursor-hover {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: rgba(0,184,224,0.08); border-color: var(--accent);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- Page-transition scan-wipe (exit-only → never occludes first paint / LCP) ---- */
.page-wipe {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: linear-gradient(120deg, var(--panel) 0%, var(--panel-2) 100%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.34s var(--ease-out-expo);
}
.page-wipe::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent-bright); box-shadow: 0 0 18px var(--accent-bright);
}
.page-leaving .page-wipe { transform: scaleY(1); }

/* ---- Intro flourish (first visit, post-load) ---- */
.boot-flourish {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(246,248,250,0.0);
}
.boot-flourish .boot-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent-bright); box-shadow: 0 0 22px var(--accent-bright);
  transform: translateY(0); opacity: 0;
}
.boot-flourish .boot-readout {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.32em;
  color: var(--accent); opacity: 0;
}
.boot-flourish.boot-run .boot-line {
  animation: bootSweep 1s var(--ease-out-expo) forwards;
}
.boot-flourish.boot-run .boot-readout {
  animation: bootFade 1.1s ease forwards;
}
@keyframes bootSweep {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh); }
}
@keyframes bootFade { 0%,60% { opacity: 0.7; } 100% { opacity: 0; } }

/* ---- Pinned scrollytelling: Process step states ---- */
.process .step { transition: opacity 0.3s ease; }
.process .step .step-n {
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, background 0.4s, color 0.4s;
}
.process .step.step-active .step-n {
  transform: scale(1.12);
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(0,110,143,0.12), 0 10px 30px rgba(0,110,143,0.25);
}
.process .step.step-active::before {
  background: linear-gradient(90deg, var(--accent), rgba(0,110,143,0.2)) !important;
}

/* ---- Magnetic buttons settle smoothly ---- */
.btn, .nav-cta { transition: transform 0.3s var(--ease-out-expo), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s; }

/* Honour reduced-motion / no-JS: cursor + wipe never show without the JS classes,
   and prefers-reduced-motion already neutralises all animation above. */
@media (prefers-reduced-motion: reduce) {
  .page-wipe, .boot-flourish, .cursor-dot, .cursor-ring { display: none !important; }
  #webglHero { display: none !important; }
}
