/* ============================================================
   Bionova Nexus — Interactive 3D Experience
   Design system: "Bioluminescent Lab"
   ============================================================ */

:root {
  /* Core palette */
  --void: #060f0d;
  --forest-950: #08130f;
  --forest-900: #0a1a16;
  --forest-800: #0f261f;
  --forest-700: #16362c;
  --forest-line: rgba(120, 200, 170, 0.12);

  /* Bioluminescent accents */
  --emerald: #2fb488;
  --bio: #57e3a8;
  --bio-soft: #8bf0c3;
  --sage: #9fc9b8;
  --sage-dim: rgba(159, 201, 184, 0.62);

  /* Neutrals */
  --ivory: #eef4ef;
  --ivory-dim: rgba(238, 244, 239, 0.72);
  --amber: #e2c07a;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: break-word; }
p { margin: 0; }

::selection { background: var(--bio); color: var(--void); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 200;
  background: var(--bio); color: var(--void); padding: 0.6rem 1rem;
  border-radius: 8px; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--bio);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3D canvas background ---------- */
#bio-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient glow following pointer */
.cursor-glow {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87,227,168,0.10), transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  left: 50%; top: 30%;
  transition: opacity 0.4s;
  will-change: transform;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.content { position: relative; z-index: 3; }

section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bio);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bio));
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.35s, color 0.25s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--bio);
  color: var(--void);
  box-shadow: 0 0 0 rgba(87,227,168,0);
}
.btn-primary:hover {
  background: var(--bio-soft);
  box-shadow: 0 12px 40px -8px rgba(87,227,168,0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
  border-color: rgba(159,201,184,0.22);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(87,227,168,0.6);
  background: rgba(87,227,168,0.08);
  color: var(--bio-soft);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 19, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--forest-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
  transition: height 0.4s;
}
.nav.scrolled .nav-inner { height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand .mark { width: 34px; height: 34px; }
.brand .mark svg { width: 100%; height: 100%; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dim);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ivory-dim);
  padding: 0.5rem 0.62rem;
  border-radius: 8px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.32rem;
  height: 1px;
  background: var(--bio);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-cta .btn { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ivory); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(6, 15, 13, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 0.5rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 600;
  color: var(--ivory);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--forest-line);
  transition: color 0.25s, padding-left 0.25s;
}
.mobile-menu a:hover { color: var(--bio); padding-left: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(85% 75% at 22% 46%, rgba(6,15,13,0.86) 0%, rgba(6,15,13,0.5) 42%, transparent 72%);
}
.hero-visual { z-index: 1; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 700;
  margin-top: 1.6rem;
  line-height: 1.02;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--bio) 10%, var(--sage) 55%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ivory-dim);
  max-width: 34em;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Line-mask reveal */
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: block; will-change: transform; }

/* Hero stat rail */
.hero-rail {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--forest-line);
}
.hero-rail-item {
  padding: 1.1rem 1.1rem 1.1rem 0;
  border-right: 1px solid var(--forest-line);
}
.hero-rail-item:last-child { border-right: none; }
.hero-rail-item dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio);
  margin-bottom: 0.4rem;
}
.hero-rail-item dd { margin: 0; font-size: 0.82rem; color: var(--sage-dim); line-height: 1.45; }

/* Hero visual frame (canvas shows through, this adds the corner ring) */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1.05;
  border-radius: var(--radius);
  border: 1px solid var(--forest-line);
  background: radial-gradient(120% 120% at 50% 0%, rgba(47,180,136,0.09), transparent 60%);
  overflow: hidden;
}
.hero-visual .corner {
  position: absolute; width: 18px; height: 18px; border: 1px solid var(--bio); opacity: 0.5;
}
.hero-visual .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero-visual .corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hero-visual .corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hero-visual .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dim);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-hint .bar { width: 1px; height: 42px; background: linear-gradient(var(--bio), transparent); animation: drop 2.2s var(--ease-in-out) infinite; }
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- Sequence marquee ---------- */
.marquee {
  border-top: 1px solid var(--forest-line);
  border-bottom: 1px solid var(--forest-line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: rgba(8,19,15,0.5);
  backdrop-filter: blur(6px);
}
.marquee-track {
  display: flex;
  gap: 0; /* spacing lives inside each span so the -50% loop stays seamless */
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--sage-dim);
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 3.5rem; padding-right: 3.5rem; }
.marquee-track b { color: var(--bio); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section shell ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 1rem;
}
.section-head p { margin-top: 1.1rem; color: var(--ivory-dim); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,38,31,0.65), rgba(8,19,15,0.5));
  border: 1px solid var(--forest-line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s, transform 0.15s var(--ease-out);
  will-change: transform;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(87,227,168,0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.svc-card:hover { border-color: rgba(87,227,168,0.4); }
.svc-card:hover::before { opacity: 1; }
.svc-card .svc-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bio);
  letter-spacing: 0.1em;
  transform: translateZ(30px);
}
.svc-card h3 {
  font-size: 1.45rem;
  margin-top: 1.4rem;
  transform: translateZ(24px);
  transition: color 0.3s;
}
.svc-card:hover h3 { color: var(--bio-soft); }
.svc-card p {
  margin-top: 0.8rem;
  color: var(--ivory-dim);
  font-size: 0.95rem;
  transform: translateZ(16px);
}
.svc-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  transform: translateZ(12px);
}
.svc-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--sage);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--forest-line);
  background: rgba(87,227,168,0.05);
}
.svc-link {
  margin-top: auto;
  padding-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bio);
  transform: translateZ(20px);
}
.svc-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* ---------- Quality (before work begins) ---------- */
.quality {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
/* margin matches the UA default for <dl>, which this used to be (see index.html). */
.quality-list { display: grid; gap: 0; margin: 1em 0; border: 1px solid var(--forest-line); border-radius: var(--radius); overflow: hidden; }
.quality-item {
  padding: 1.5rem 1.6rem;
  border-bottom: 1px solid var(--forest-line);
  transition: background 0.3s, padding-left 0.3s;
  cursor: default;
}
.quality-item:last-child { border-bottom: none; }
.quality-item:hover { background: rgba(87,227,168,0.05); padding-left: 2.1rem; }
.quality-item h4 {
  font-size: 1.08rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.quality-item h4::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--bio);
  box-shadow: 0 0 12px var(--bio);
  transition: transform 0.3s;
}
.quality-item:hover h4::before { transform: rotate(45deg) scale(1.2); }
.quality-item p { margin-top: 0.6rem; color: var(--ivory-dim); font-size: 0.92rem; }

/* ---------- Process ---------- */
.process { position: relative; }
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 34px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--forest-line) 10%, var(--forest-line) 90%, transparent);
}
.process-line {
  position: absolute;
  top: 34px; left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--bio), var(--emerald));
  box-shadow: 0 0 12px var(--bio);
  width: 0;
}
.process-step { position: relative; padding-top: 0; }
.process-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1px solid var(--forest-line);
  background: var(--forest-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--bio);
  position: relative;
  z-index: 2;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
}
.process-step:hover .process-num {
  border-color: var(--bio);
  box-shadow: 0 0 24px -4px var(--bio);
  transform: translateY(-4px);
}
.process-step h3 { font-size: 1.15rem; margin-top: 1.3rem; }
.process-step p { margin-top: 0.6rem; color: var(--ivory-dim); font-size: 0.88rem; }

/* ---------- Domains (applications/industries) ---------- */
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); }
.domain-col h3 { font-size: 1.3rem; margin-bottom: 1.4rem; display:flex; align-items:center; gap:0.6rem; }
.domain-col h3 .tag { font-family: var(--font-mono); font-size:0.62rem; color: var(--bio); border:1px solid var(--forest-line); padding:0.2rem 0.55rem; border-radius:999px; letter-spacing:0.1em; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-list a {
  display: inline-flex; align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--forest-line);
  background: rgba(15,38,31,0.5);
  font-size: 0.86rem;
  color: var(--ivory-dim);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, color 0.25s, background 0.25s;
}
.chip-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(87,227,168,0.5);
  color: var(--bio-soft);
  background: rgba(87,227,168,0.08);
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(87,227,168,0.22);
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(47,180,136,0.22), transparent 55%),
    linear-gradient(180deg, rgba(15,38,31,0.85), rgba(8,19,15,0.9));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); max-width: 16ch; }
.cta-band p { margin-top: 0.9rem; color: var(--ivory-dim); max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--forest-line);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
  background: var(--forest-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand p { margin-top: 1.1rem; color: var(--sage-dim); font-size: 0.9rem; max-width: 34ch; }
.footer-brand address {
  font-style: normal;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--sage-dim);
  line-height: 1.7;
}
.footer-brand address a { color: var(--bio); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.88rem; color: var(--ivory-dim); transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: var(--bio); padding-left: 4px; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--forest-line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--sage-dim);
}
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--bio); }

/* ---------- Reveal defaults ----------
   Hidden only when JS is active (.js). A failsafe class shows everything
   if the animation engine never initializes, so content is never stuck hidden. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(26px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }

html.anim-failsafe [data-reveal],
html.anim-failsafe [data-reveal-stagger] > *,
html.anim-failsafe .reveal-line > span {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- Responsive ---------- */
/* Collapse primary nav to the hamburger before it gets cramped */
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 140px; }
  /* The 3D helix is already full-bleed behind — drop the empty framed panel */
  .hero-visual { display: none; }
  .quality { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  /* nav already collapsed at 1080px */
  .services-grid { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; gap: 2rem; }
  .process-track::before, .process-line { display: none; }
  .process-step { display: grid; grid-template-columns: 68px 1fr; column-gap: 1.2rem; align-items: center; }
  .process-step h3 { margin-top: 0; }
  .process-step p { grid-column: 2; margin-top: 0.4rem; }
  .hero-rail { grid-template-columns: 1fr 1fr; }
  .hero-rail-item:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
  /* On phones the hamburger owns navigation; menu already holds the quote CTA */
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 520px) {
  .hero-rail { grid-template-columns: 1fr; }
  .hero-rail-item { border-right: none; border-bottom: 1px solid var(--forest-line); padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-stagger] > *, .reveal-line > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
