/* ============================================================
   AMNOCIDIA — Design tokens, components, layouts
   Palette: deep navy (surface) + paper + accent blue.
   Type: Barlow (display + body) + JetBrains Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --navy:        #1A1A4F;
  --navy-deep:   #0E0E36;
  --navy-mid:    #22225C;
  --midnight:    #080820;
  --ink:         #15152E;
  --paper:       #FAFAFC;
  --paper-tint:  #F2F3F7;
  --rule:        #E6E7EE;
  --fg:          #15152E;
  --fg-mute:     #5F6476;
  --fg-faint:    #9A9EAD;
  --on-navy:          #FAFAFC;
  --on-navy-mute:     rgba(250,250,252,0.72);
  --on-navy-faint:    rgba(250,250,252,0.48);
  --on-navy-rule:     rgba(250,250,252,0.14);
  --ember:       #4A6CF7;
  --ember-glow:  rgba(74,108,247,0.35);
  --ember-soft:  #E6ECFF;

  --bg:          var(--paper);
  --surface:     #FFFFFF;

  --f-display: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  --maxw:        1360px;
  --maxw-ed:     1120px;
  --maxw-text:   64ch;
  --gutter-min:  20px;
  --header-h:    68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0A0A24;
    --paper-tint: #11112F;
    --rule:       rgba(250,250,252,0.10);
    --fg:         #FAFAFC;
    --fg-mute:    rgba(250,250,252,0.68);
    --fg-faint:   rgba(250,250,252,0.42);
    --bg:         var(--paper);
    --surface:    #141438;
    --ember-soft: rgba(74,108,247,0.14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:      #0A0A24;
  --paper-tint: #11112F;
  --rule:       rgba(250,250,252,0.10);
  --fg:         #FAFAFC;
  --fg-mute:    rgba(250,250,252,0.68);
  --fg-faint:   rgba(250,250,252,0.42);
  --bg:         var(--paper);
  --surface:    #141438;
  --ember-soft: rgba(74,108,247,0.14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
body.scrolled::before { background: rgba(250, 250, 252, 0.92); backdrop-filter: blur(14px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.scrolled::before { background: rgba(10, 10, 36, 0.88); }
}
:root[data-theme="dark"] body.scrolled::before { background: rgba(10, 10, 36, 0.88); }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--ember); color: #fff; }

/* -------- typography -------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; font-weight: 600; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.on-navy { color: var(--on-navy-mute); }
.hero .eyebrow.on-navy { color: #ffffff; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

.lede {
  font-family: var(--f-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: var(--maxw-text);
}
.lede.on-navy { color: var(--on-navy-mute); }

.mono {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* -------- layout primitives -------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left:  max(var(--gutter-min), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter-min), env(safe-area-inset-right, 0px));
}
.wrap-ed { max-width: var(--maxw-ed); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(56px, 8vw, 96px); }

.navy { background: var(--navy); color: var(--on-navy); }
.navy .lede { color: var(--on-navy-mute); }
.navy h1, .navy h2, .navy h3 { color: var(--on-navy); }
.navy .eyebrow { color: var(--on-navy-mute); }
.navy .rule { background: var(--on-navy-rule); }

.midnight { background: var(--midnight); color: var(--on-navy); }
.midnight .lede { color: var(--on-navy-mute); }
.midnight h1, .midnight h2, .midnight h3 { color: var(--on-navy); }

.rule { height: 1px; background: var(--rule); width: 100%; }

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 8px 24px -8px var(--ember-glow);
}
.btn-primary:hover { background: #3b4ed6; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid currentColor;
  color: var(--on-navy);
}
.btn-ghost:hover { background: var(--on-navy); color: var(--navy); }

.btn-outline {
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding-bottom: 2px;
}
.btn-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transform-origin: left;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.btn-text:hover::after { opacity: 1; transform: scaleX(0.4); }
.btn-text svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.btn-text:hover svg { transform: translateX(4px); }
.navy .btn-text, .midnight .btn-text { color: var(--on-navy); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 50;
  transition: background .4s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  color: var(--on-navy);
  border-bottom: 1px solid transparent;
}
body.scrolled .site-header {
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-color: var(--rule);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.scrolled .site-header {
    background: rgba(10, 10, 36, 0.88);
    color: var(--on-navy);
  }
}
:root[data-theme="dark"] body.scrolled .site-header {
  background: rgba(10, 10, 36, 0.88);
  color: var(--on-navy);
}

body:not(.on-home) .site-header {
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-color: var(--rule);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body:not(.on-home) .site-header {
    background: rgba(10, 10, 36, 0.88);
    color: var(--on-navy);
  }
}
:root[data-theme="dark"] body:not(.on-home) .site-header {
  background: rgba(10, 10, 36, 0.88);
  color: var(--on-navy);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo svg { width: 28px; height: 32px; }
.nav-logo .wordmark { font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.nav-logo-img { height: 44px; width: auto; display: block; }
@media (max-width: 640px) { .nav-logo-img { height: 38px; } }
body.on-home:not(.scrolled) .nav-logo-img { filter: brightness(0) invert(1); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity .3s var(--ease);
  position: relative;
  padding-block: 4px;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ember);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid currentColor;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}
body.scrolled .nav-cta,
body:not(.on-home) .nav-cta { border-color: var(--ember); color: var(--ember); }
.nav-cta:hover { background: var(--ember); color: #fff !important; border-color: var(--ember); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 1.5px;
  background: currentColor;
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.open,
  .nav-cta.open { display: inline-flex; }
  .nav-links.open {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px max(var(--gutter-min), env(safe-area-inset-left, 0px)) 32px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open a {
    font-family: var(--f-display);
    font-size: 1.5rem;
    padding-block: 12px;
    opacity: 1;
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav-links.open { background: var(--paper); color: var(--fg); }
  }
  :root[data-theme="dark"] .nav-links.open { background: var(--paper); color: var(--fg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--midnight);
  color: var(--on-navy);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: clamp(64px, 10vh, 120px);
}
@media (max-width: 640px) {
  .hero { min-height: 86vh; min-height: 86dvh; }
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 20%, #1a1a52 0%, #0a0a28 60%, #050514 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in;
  z-index: 0;
}
.hero-video.loaded { opacity: 1; }
body.hero-has-video .shuttle { opacity: 0; transition: opacity 1s ease-out; }
body.hero-has-video .orb { opacity: 0.15; }
body.hero-has-video .particles { opacity: 0.25; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-1 { top: 10%; left: 8%; width: 42vw; height: 42vw; background: radial-gradient(circle, #4040a8 0%, transparent 65%); }
.orb-2 { bottom: -10%; right: 5%; width: 48vw; height: 48vw; background: radial-gradient(circle, #2a2a7a 0%, transparent 70%); animation-duration: 26s; animation-delay: -8s; }
.orb-3 { top: 40%; right: 25%; width: 24vw; height: 24vw; background: radial-gradient(circle, rgba(74,108,247,0.4) 0%, transparent 70%); opacity: 0.35; animation-duration: 32s; animation-delay: -4s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2vw, -2vw) scale(1.08); }
  100% { transform: translate(-2vw, 2vw) scale(0.95); }
}

.particles {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.shuttle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.85;
}
.shuttle svg { width: min(78vw, 980px); height: auto; max-height: 70vh; }
.shuttle .trail-line { stroke-dasharray: 4 8; animation: dashflow 14s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -200; } }
.shuttle .shuttle-node { animation: pulse-node 4s ease-in-out infinite; }
.shuttle .shuttle-node.n2 { animation-delay: -1.3s; }
.shuttle .shuttle-node.n3 { animation-delay: -2.6s; }
@keyframes pulse-node {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.15); }
}
.shuttle .mito-pulse { transform-origin: center; animation: mito 5s ease-in-out infinite; }
@keyframes mito { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.shuttle .energy-ping { animation: ping 3.5s ease-out infinite; transform-origin: center; }
@keyframes ping {
  0%   { opacity: 0; transform: scale(0.6); }
  40%  { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.6); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    /* left-to-right: dark on the left where text sits, lighter on the right so video shows */
    linear-gradient(90deg, rgba(5,5,20,0.78) 0%, rgba(5,5,20,0.55) 35%, rgba(5,5,20,0.25) 65%, rgba(5,5,20,0.15) 100%),
    /* top-to-bottom: subtle at top, strong at bottom for scroll cue readability */
    linear-gradient(180deg, rgba(5,5,20,0.35) 0%, rgba(5,5,20,0) 20%, rgba(5,5,20,0) 55%, rgba(5,5,20,0.80) 100%);
  z-index: 1;
}
@media (max-width: 860px) {
  .hero-scrim {
    /* mobile — headline sits over the center, so darken more evenly */
    background:
      linear-gradient(180deg, rgba(5,5,20,0.65) 0%, rgba(5,5,20,0.35) 30%, rgba(5,5,20,0.45) 60%, rgba(5,5,20,0.85) 100%);
  }
}

.hero-content { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px 64px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--on-navy);
  text-wrap: balance;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.25);
}
.hero-headline em { font-style: italic; font-weight: 100; color: var(--ember); }

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #e8e9f2;
  max-width: 44ch;
  line-height: 1.5;
  margin: 24px 0 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 0 2px rgba(0,0,0,0.4);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 240px; }
@media (max-width: 860px) { .hero-side { min-width: 0; } }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid var(--on-navy-rule);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.04);
  max-width: 300px;
}
.hero-meta .k { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-faint); }
.hero-meta .v { font-family: var(--f-display); font-size: 1.1rem; color: var(--on-navy); line-height: 1.3; }
.hero-meta .row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 6px; border-bottom: 1px solid var(--on-navy-rule); }
.hero-meta .row:last-child { border-bottom: none; }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--on-navy-mute);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.scroll-cue-line {
  width: 1px; height: 42px;
  background: linear-gradient(180deg, transparent, var(--on-navy-mute), transparent);
  background-size: 100% 200%;
  animation: scrollcue 2.4s ease-in-out infinite;
}
@keyframes scrollcue { 0% { background-position: 0 -100%; } 100% { background-position: 0 100%; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

.motion-toggle {
  position: absolute;
  bottom: 24px; right: calc(max(var(--gutter-min), env(safe-area-inset-right, 0px)) + 4px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-navy-mute);
  border: 1px solid var(--on-navy-rule);
  border-radius: 999px;
  background: rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
  z-index: 3;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.motion-toggle:hover { color: var(--on-navy); background: rgba(0,0,0,0.3); }
body.motion-paused .orb,
body.motion-paused .shuttle *,
body.motion-paused .particles circle { animation-play-state: paused !important; }

/* ============================================================
   BRAND INTRO
   ============================================================ */
.intro-section { background: var(--paper); position: relative; }
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-left .eyebrow { margin-bottom: 20px; }
.intro-left h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 400; }
.intro-left h2 em { font-style: italic; font-weight: 300; color: var(--navy); }
.intro-right { padding-top: 12px; }
.intro-right .lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 28px; }
.intro-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
@media (max-width: 480px) { .intro-stat-row { grid-template-columns: 1fr; gap: 24px; } }
.stat .n { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 400; color: var(--navy); line-height: 1; display: block; }
.stat .l { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--fg-mute); max-width: 32ch; }

/* ============================================================
   MAIN PRODUCT SHOWCASE
   ============================================================ */
.main-product { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.main-product::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(74,108,247,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(80,80,200,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.mp-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .mp-grid { grid-template-columns: 1fr; } }

.mp-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #2a2a78 0%, #1a1a4f 60%, #0e0e36 100%);
  box-shadow: 0 60px 100px -40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.mp-visual-inner { width: 72%; height: 82%; display: flex; align-items: center; justify-content: center; position: relative; }

.bottle { width: 220px; height: 380px; position: relative; transform: translateY(0); animation: bottle-float 7s ease-in-out infinite; }
.bottle svg { width: 100%; height: 100%; }
@keyframes bottle-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

.mp-badge {
  position: absolute;
  top: 20px; left: 20px;
  display: inline-flex; gap: 6px; align-items: center;
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-mute);
  border: 1px solid var(--on-navy-rule);
  border-radius: 999px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}
.mp-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }

.mp-spec {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  display: flex; gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--on-navy-rule);
  border-radius: 14px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(14px);
  justify-content: space-between; flex-wrap: wrap;
}
.mp-spec .mp-spec-item { display: flex; flex-direction: column; min-width: 0; }
.mp-spec .k { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-faint); margin-bottom: 2px; }
.mp-spec .v { font-family: var(--f-display); font-size: 1.05rem; color: var(--on-navy); }

.mp-copy .eyebrow { margin-bottom: 20px; }
.mp-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: -0.02em; }
.mp-copy h2 em { font-style: italic; font-weight: 300; color: var(--ember); }
.mp-copy .lede { margin-top: 24px; }
.mp-feat { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; }
.mp-feat li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--on-navy-rule); }
.mp-feat li:last-child { border-bottom: 1px solid var(--on-navy-rule); }
.mp-feat .idx { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--on-navy-faint); min-width: 32px; padding-top: 2px; }
.mp-feat .t { color: var(--on-navy); font-size: 0.98rem; }
.mp-feat .d { color: var(--on-navy-mute); font-size: 0.9rem; margin-top: 2px; }
.mp-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ============================================================
   THE RANGE
   ============================================================ */
.range-section { background: var(--paper); }
.range-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 760px) { .range-head { grid-template-columns: 1fr; } }
.range-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; letter-spacing: -0.02em; }
.range-head h2 em { font-style: italic; font-weight: 300; }
.range-head .lede { font-size: 1.05rem; }

.range-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 1100px) { .range-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .range-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .range-grid { grid-template-columns: 1fr; } }

.range-card {
  background: var(--paper);
  padding: 28px 24px 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: background .3s var(--ease);
  min-height: 320px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.range-card:hover { background: var(--paper-tint); }
.range-card:hover .range-arrow { transform: translate(4px, -4px); opacity: 1; }
.range-card .mono-idx { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--fg-faint); }
.range-card .mol-mark { height: 72px; display: flex; align-items: center; justify-content: flex-start; margin-top: 4px; }
.range-card .mol-mark svg { width: 72px; height: 72px; }
.range-card h3 { font-size: 1.3rem; font-weight: 400; line-height: 1.2; color: var(--fg); letter-spacing: -0.01em; }
.range-card .formula { font-family: var(--f-mono); font-size: 0.75rem; color: var(--fg-mute); letter-spacing: 0.02em; }
.range-card .tag { font-size: 0.85rem; color: var(--fg-mute); line-height: 1.4; flex: 1; }
.range-arrow { position: absolute; top: 24px; right: 24px; width: 20px; height: 20px; color: var(--fg-mute); opacity: 0.7; transition: transform .4s var(--ease), opacity .3s var(--ease); }

/* ============================================================
   SCIENCE
   ============================================================ */
.science-section { background: var(--paper-tint); position: relative; overflow: hidden; }
.science-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); margin-bottom: clamp(48px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .science-head { grid-template-columns: 1fr; } }
.science-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; }
.science-head h2 em { font-style: italic; font-weight: 300; }

.science-diagram { background: var(--surface); border-radius: 20px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--rule); }
.science-diagram h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 24px; }
.science-diagram-svg { width: 100%; max-width: 760px; margin-inline: auto; }

.science-callout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; margin-top: 48px; }
@media (max-width: 760px) { .science-callout { grid-template-columns: 1fr; } }
.science-callout > div { background: var(--surface); padding: 28px 24px; }
.science-callout .k { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 10px; }
.science-callout h4 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 400; margin: 0 0 8px; color: var(--fg); letter-spacing: -0.01em; }
.science-callout p { font-size: 0.9rem; color: var(--fg-mute); line-height: 1.5; margin: 0; }

.science-disclaimer { margin-top: 48px; padding: 20px 24px; border-left: 2px solid var(--ember); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 0.88rem; color: var(--fg-mute); line-height: 1.55; max-width: 56rem; }
.science-disclaimer strong { color: var(--fg); font-weight: 600; font-family: var(--f-display); letter-spacing: 0; }

/* ============================================================
   WHY AMNOCIDIA
   ============================================================ */
.why-section { background: var(--paper); }
.why-head { max-width: 44rem; margin-bottom: clamp(48px, 6vw, 80px); }
.why-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; }
.why-head h2 em { font-style: italic; font-weight: 300; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--rule); }
.why-card .icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.why-card .icon svg { width: 100%; height: 100%; }
.why-card h3 { font-size: 1.2rem; font-weight: 400; letter-spacing: -0.01em; }
.why-card p { font-size: 0.92rem; color: var(--fg-mute); margin: 0; line-height: 1.55; }

/* ============================================================
   VIDEO STORIES
   ============================================================ */
.video-section { background: var(--midnight); color: var(--on-navy); }
.video-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 760px) { .video-head { grid-template-columns: 1fr; } }
.video-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; }
.video-head h2 em { font-style: italic; font-weight: 300; color: var(--ember); }
.video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
@media (max-width: 980px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--navy-mid); cursor: pointer; transition: transform .4s var(--ease); }
.video-grid > :first-child { aspect-ratio: 16 / 10; grid-row: span 2; }
@media (max-width: 980px) { .video-grid > :first-child { aspect-ratio: 16 / 10; grid-row: auto; } }
.video-card:hover { transform: translateY(-3px); }
.video-card:hover .play-ring { transform: translate(-50%, -50%) scale(1.1); }
.video-card .bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 30%, #2a2a7a 0%, #1a1a4f 50%, #0e0e36 100%); }
.video-card .bg.v2 { background: radial-gradient(ellipse at 70% 20%, #353580 0%, #1a1a4f 60%, #080820 100%); }
.video-card .bg.v3 { background: radial-gradient(ellipse at 20% 80%, rgba(74,108,247,0.3) 0%, #1a1a4f 55%, #080820 100%); }
.video-card .play-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border: 1.5px solid var(--on-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease); backdrop-filter: blur(6px); background: rgba(0,0,0,0.1); }
.video-card .play-ring::before { content: ""; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--on-navy); margin-left: 3px; }
.video-card .vmeta { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.video-card .vcat { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-mute); }
.video-card .vtitle { font-family: var(--f-display); font-size: 1.2rem; font-weight: 400; color: var(--on-navy); margin-top: 6px; line-height: 1.2; letter-spacing: -0.01em; }
.video-card .vdur { font-family: var(--f-mono); font-size: 0.75rem; color: var(--on-navy-mute); padding: 4px 8px; border: 1px solid var(--on-navy-rule); border-radius: 4px; white-space: nowrap; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; }
.faq-head h2 em { font-style: italic; font-weight: 300; }
.faq-head p { color: var(--fg-mute); margin-top: 16px; max-width: 32ch; }

.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; font-family: var(--f-display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 400; color: var(--fg); letter-spacing: -0.005em; line-height: 1.3; }
.faq-plus { width: 20px; height: 20px; flex: 0 0 auto; position: relative; color: var(--fg-mute); transition: transform .3s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: currentColor; inset: 50% 0 auto; height: 1.5px; transform: translateY(-50%); }
.faq-plus::after { transform: translateY(-50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item.open .faq-plus::after { transform: translateY(-50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); color: var(--fg-mute); }
.faq-a-inner { overflow: hidden; }
.faq-a-inner > div { padding: 0 0 24px; max-width: 60ch; font-size: 0.98rem; line-height: 1.6; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(74,108,247,0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 10%, rgba(70,70,180,0.3) 0%, transparent 55%);
}
.fc-inner { position: relative; text-align: center; padding-block: clamp(72px, 10vw, 120px); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.fc-inner h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; letter-spacing: -0.025em; max-width: 20ch; }
.fc-inner h2 em { font-style: italic; font-weight: 300; color: var(--ember); }
.fc-inner .lede { max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.fc-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--midnight); color: var(--on-navy); padding-block: 72px 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--on-navy-rule); }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
.foot-brand { grid-column: span 1; }
@media (max-width: 980px) { .foot-brand { grid-column: 1 / -1; } }
.foot-brand .wordmark { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.foot-brand .wordmark svg { width: 24px; height: 28px; }
.foot-logo-img { height: 64px; width: auto; display: block; filter: brightness(0) invert(1); }
.foot-brand p { color: var(--on-navy-mute); font-size: 0.92rem; max-width: 32ch; line-height: 1.55; }
.foot-col h4 { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy-faint); margin: 0 0 16px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--on-navy-mute); font-size: 0.9rem; transition: color .3s var(--ease); }
.foot-col a:hover { color: var(--on-navy); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; flex-wrap: wrap; }
.foot-bot p, .foot-bot a { font-size: 0.82rem; color: var(--on-navy-faint); }
.foot-social { display: flex; gap: 14px; }
.foot-social a { width: 32px; height: 32px; border: 1px solid var(--on-navy-rule); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--on-navy-mute); transition: background .3s var(--ease), color .3s var(--ease); }
.foot-social a:hover { background: var(--on-navy); color: var(--navy); }
.foot-social svg { width: 14px; height: 14px; }

/* ============================================================
   SECONDARY PAGES
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(72px, 10vw, 128px));
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.page-hero .wrap { max-width: var(--maxw-ed); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; max-width: 16ch; }
.page-hero h1 em { font-style: italic; font-weight: 300; color: var(--ember); }
.page-hero .lede { margin-top: 28px; font-size: clamp(1.1rem, 1.4vw, 1.25rem); max-width: 56ch; }

/* About page */
.about-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }
.about-split .eyebrow { margin-bottom: 20px; }
.about-split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; }
.about-split h2 em { font-style: italic; font-weight: 300; }
.about-split .text { font-size: 1.05rem; color: var(--fg-mute); line-height: 1.65; max-width: var(--maxw-text); }
.about-split .text p { margin-bottom: 1.2em; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; margin-top: 48px; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.values-grid > div { background: var(--surface); padding: 32px 28px; }
.values-grid .n { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--fg-faint); margin-bottom: 24px; }
.values-grid h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 12px; }
.values-grid p { font-size: 0.95rem; color: var(--fg-mute); line-height: 1.55; }

/* Products page */
.products-main-hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(72px, 10vw, 128px); position: relative; overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(72px, 10vw, 128px)); }
.products-main-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(80,80,200,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(74,108,247,0.08) 0%, transparent 50%);
}
.products-main-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .products-main-grid { grid-template-columns: 1fr; } }
.products-section { background: var(--paper); }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; overflow: hidden; }
.compare-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.compare-table th, .compare-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; min-width: 160px; }
.compare-table th { background: var(--paper-tint); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--fg-mute); position: sticky; top: 0; }
.compare-table th:first-child { min-width: 200px; }
.compare-table td.name { font-family: var(--f-display); font-size: 1.05rem; color: var(--fg); font-weight: 400; }
.compare-table td.formula { font-family: var(--f-mono); color: var(--fg-mute); font-size: 0.82rem; }
.compare-table tr:last-child td { border-bottom: none; }

/* Product detail page */
.pd-section { background: var(--paper); padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(56px, 7vw, 96px)); }
.pd-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-visual { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a2a78 0%, #1a1a4f 60%, #0e0e36 100%); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5); }
.pd-visual .bottle { width: 180px; height: 320px; }
.pd-visual .mp-badge { color: var(--on-navy-mute); }
.pd-copy .eyebrow { margin-bottom: 20px; }
.pd-copy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; letter-spacing: -0.02em; }
.pd-copy h1 em { font-style: italic; font-weight: 300; color: var(--navy); }
.pd-copy .formula { font-family: var(--f-mono); font-size: 0.85rem; color: var(--fg-mute); margin-top: 16px; letter-spacing: 0.02em; }
.pd-copy .pd-lede { margin-top: 24px; font-size: 1.1rem; color: var(--fg-mute); line-height: 1.6; }

.pd-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; margin-top: 32px; }
@media (max-width: 480px) { .pd-dl { grid-template-columns: 1fr; } }
.pd-dl > div { background: var(--surface); padding: 18px 20px; }
.pd-dl .k { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 6px; }
.pd-dl .v { font-family: var(--f-display); font-size: 1.1rem; }

.pd-sections { margin-top: 48px; display: grid; gap: 32px; }
.pd-s { padding-top: 24px; border-top: 1px solid var(--rule); }
.pd-s h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: 12px; }
.pd-s p { color: var(--fg-mute); max-width: 56ch; line-height: 1.6; }
.pd-s ul { color: var(--fg-mute); padding-left: 18px; line-height: 1.65; max-width: 56ch; }
.pd-s ul li { margin-bottom: 6px; }

.pd-notice { margin-top: 32px; padding: 20px 22px; border: 1px solid var(--ember); background: var(--ember-soft); border-radius: 12px; font-size: 0.92rem; color: var(--ink); line-height: 1.55; max-width: 56rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pd-notice { color: var(--fg); background: rgba(74,108,247,0.12); }
}
:root[data-theme="dark"] .pd-notice { color: var(--fg); background: rgba(74,108,247,0.12); }
.pd-notice strong { font-family: var(--f-display); color: var(--ember); margin-right: 6px; }

.pd-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.pd-related { background: var(--paper-tint); }
.pd-related h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin-bottom: 32px; }
.pd-related h2 em { font-style: italic; font-weight: 300; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 1.6rem; font-weight: 400; margin-bottom: 16px; }
.contact-info p { color: var(--fg-mute); max-width: 36ch; line-height: 1.6; margin-bottom: 32px; }
.contact-info .cinfo-row { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-top: 1px solid var(--rule); }
.contact-info .cinfo-row:last-child { border-bottom: 1px solid var(--rule); }
.contact-info .k { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.contact-info .v { font-family: var(--f-body); font-size: 1rem; color: var(--fg); }

.contact-form { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(28px, 4vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { font-family: var(--f-body); font-size: 1rem; color: var(--fg); background: transparent; border: none; border-bottom: 1px solid var(--rule); padding: 10px 0 12px; transition: border-color .3s var(--ease); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-bottom-color: var(--navy); }
.form-field textarea { resize: vertical; min-height: 120px; font-family: var(--f-body); }
.form-field.error input, .form-field.error select, .form-field.error textarea { border-bottom-color: var(--ember); }
.form-field .err { font-size: 0.78rem; color: var(--ember); min-height: 1em; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; font-size: 0.88rem; color: var(--fg-mute); line-height: 1.5; }
.form-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ember); flex: 0 0 auto; }
.form-submit { background: var(--navy); color: var(--on-navy); padding: 16px 28px; border-radius: 999px; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: background .3s var(--ease); }
.form-submit:hover { background: var(--ember); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-submit .spinner { width: 14px; height: 14px; border: 1.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.form-submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-top: 20px; padding: 16px 20px; border-radius: 10px; font-size: 0.92rem; display: none; }
.form-status.success { display: block; background: rgba(26, 26, 79, 0.08); color: var(--navy); border: 1px solid rgba(26, 26, 79, 0.2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-status.success { background: rgba(250,250,252,0.06); color: var(--fg); border-color: rgba(250,250,252,0.14); }
}
:root[data-theme="dark"] .form-status.success { background: rgba(250,250,252,0.06); color: var(--fg); border-color: rgba(250,250,252,0.14); }

/* Legal pages */
.legal-section { background: var(--paper); padding-block: clamp(56px, 7vw, 96px); }
.legal-section .wrap { max-width: 820px; }
.legal-section h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 400; margin: 40px 0 16px; letter-spacing: -0.01em; }
.legal-section h2:first-of-type { margin-top: 0; }
.legal-section h3 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; margin: 24px 0 10px; letter-spacing: 0; }
.legal-section p, .legal-section ul { color: var(--fg-mute); line-height: 1.65; margin-bottom: 1em; max-width: 66ch; font-size: 0.98rem; }
.legal-section ul { padding-left: 22px; }
.legal-section ul li { margin-bottom: 6px; }
.legal-section .draft-notice { padding: 20px 24px; border: 1px dashed var(--ember); border-radius: 10px; color: var(--fg); background: var(--ember-soft); margin-bottom: 48px; font-size: 0.92rem; line-height: 1.55; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legal-section .draft-notice { background: rgba(74,108,247,0.1); color: var(--fg); }
}
:root[data-theme="dark"] .legal-section .draft-notice { background: rgba(74,108,247,0.1); color: var(--fg); }
.legal-section .draft-notice strong { font-family: var(--f-display); color: var(--ember); margin-right: 6px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 20px; background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: 6px; z-index: 100; font-size: 0.9rem; }
.skip-link:focus { top: 20px; }

/* 404 page */
.err-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); background: var(--paper); text-align: center; }
.err-wrap .inner { max-width: 44ch; padding: 48px 20px; }
.err-wrap .code { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--fg-faint); text-transform: uppercase; margin-bottom: 20px; }
.err-wrap h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; }
.err-wrap p { color: var(--fg-mute); margin-bottom: 32px; }

/* ============================================================
   PRODUCTS DROPDOWN (nav submenu)
   ============================================================ */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-chev { opacity: 0.65; transition: transform .3s var(--ease); flex-shrink: 0; }
.nav-item.has-dropdown:hover .nav-chev,
.nav-item.has-dropdown:focus-within .nav-chev { transform: rotate(180deg); opacity: 1; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 340px;
  background: rgba(10, 10, 36, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.02);
  z-index: 100;
}

/* Invisible bridge so dropdown doesn't close when crossing the gap */
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-head {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 10px;
  gap: 2px;
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s var(--ease);
}
.dropdown-head:hover { background: rgba(74, 108, 247, 0.08); }
.dh-k { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.14em; color: rgba(250,250,252,0.5); font-weight: 500; }
.dh-t { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--on-navy); letter-spacing: -0.01em; }

.dropdown-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(250, 250, 252, 0.72);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown-item:hover {
  background: rgba(74, 108, 247, 0.12);
  color: var(--on-navy);
}

.di-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-navy);
  font-style: italic;
  flex-shrink: 0;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown-item:hover .di-mark {
  background: #4A6CF7;
  color: #fff;
}
.di-text { display: flex; flex-direction: column; min-width: 0; }
.di-name { font-size: 0.92rem; font-weight: 500; color: inherit; line-height: 1.3; }
.di-tag {
  font-size: 0.76rem;
  color: rgba(250, 250, 252, 0.5);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

/* On scrolled / non-home pages: dropdown trigger text turns dark, dropdown stays dark */
body.scrolled .nav-chev,
body:not(.on-home) .nav-chev { color: var(--ink); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-links.open .nav-item.has-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open .nav-item.has-dropdown > a {
    width: 100%;
    padding-block: 12px;
    border-bottom: none;
  }
  .nav-links.open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 0 16px 0;
    min-width: 0;
    width: 100%;
  }
  .nav-links.open .dropdown-head { padding: 10px 14px; }
  .nav-links.open .dh-t { font-size: 1rem; }
  .nav-links.open .dropdown-item { padding: 8px 14px; }
  .nav-links.open .di-mark { width: 32px; height: 32px; font-size: 0.9rem; }
  .nav-links.open .di-name,
  .nav-links.open .dropdown-head { color: var(--ink); }
  .nav-links.open .dh-k,
  .nav-links.open .di-tag { color: var(--fg-mute); }
  .nav-links.open .dropdown-item { color: var(--ink); }
  .nav-links.open .dropdown-item:hover .di-mark { background: #4A6CF7; color: #fff; }
}

/* ============================================================
   PRODUCTS DROPDOWN — Hover opens, click expands variants
   ============================================================ */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-chev { opacity: 0.65; transition: transform .3s var(--ease); flex-shrink: 0; }
.nav-item.has-dropdown:hover .nav-chev,
.nav-item.has-dropdown:focus-within .nav-chev { transform: rotate(180deg); opacity: 1; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 340px;
  background: rgba(10, 10, 36, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

/* Invisible bridge so cursor doesn't lose hover crossing the gap */
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Expander button (All Variants) ---------- */
.dropdown-expander {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  color: var(--on-navy);
  font-family: var(--f-body);
  transition: background .2s var(--ease);
}
.dropdown-expander:hover { background: rgba(74, 108, 247, 0.1); }
.exp-text { display: flex; flex-direction: column; gap: 2px; }
.dh-k {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(250, 250, 252, 0.55);
  font-weight: 500;
}
.dh-t {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--on-navy);
  letter-spacing: -0.01em;
}
.exp-chev {
  opacity: 0.7;
  transition: transform .3s var(--ease);
  flex-shrink: 0;
  color: var(--on-navy);
}
.dropdown-expander[aria-expanded="true"] .exp-chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* ---------- Expandable variants panel ---------- */
.variants-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.variants-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.dropdown-expander[aria-expanded="true"] + .variants-panel {
  grid-template-rows: 1fr;
}

.dropdown-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 2px 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(250, 250, 252, 0.72);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown-item:hover {
  background: rgba(74, 108, 247, 0.12);
  color: var(--on-navy);
}

.di-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-navy);
  font-style: italic;
  flex-shrink: 0;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown-item:hover .di-mark {
  background: #4A6CF7;
  color: #fff;
}
.di-text { display: flex; flex-direction: column; min-width: 0; }
.di-name { font-size: 0.92rem; font-weight: 500; color: inherit; line-height: 1.3; }
.di-tag {
  font-size: 0.76rem;
  color: rgba(250, 250, 252, 0.5);
  margin-top: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-links.open .nav-item.has-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open .nav-item.has-dropdown > a {
    width: 100%;
    padding-block: 12px;
    border-bottom: none;
  }
  .nav-links.open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 0 12px 0;
    min-width: 0;
    width: 100%;
  }
  .nav-links.open .dropdown-expander { padding: 10px 14px; color: var(--ink); }
  .nav-links.open .dropdown-expander:hover { background: var(--paper-tint); }
  .nav-links.open .dh-k { color: var(--fg-faint); }
  .nav-links.open .dh-t { color: var(--ink); font-size: 1rem; }
  .nav-links.open .exp-chev { color: var(--ink); }
  .nav-links.open .dropdown-item { padding: 8px 14px; color: var(--ink); }
  .nav-links.open .dropdown-item:hover { background: var(--paper-tint); color: var(--ink); }
  .nav-links.open .di-mark { width: 32px; height: 32px; font-size: 0.9rem; background: var(--rule); }
  .nav-links.open .di-name { color: var(--ink); }
  .nav-links.open .di-tag { color: var(--fg-mute); }
  .nav-links.open .dropdown-rule { background: var(--rule); }
}

/* ============================================================
   SECONDARY ACCENT — Orange highlights (used sparingly)
   Blue remains the primary brand accent for CTAs & focus.
   Orange adds strategic warmth in identity, data markers,
   interactive details, and atmospheric glows.
   ============================================================ */

/* ---- 1. Logo accent dot (brand heritage) ---------- */
.nav-logo svg circle,
.foot-brand .wordmark svg circle {
  fill: #F0442D !important;
}

/* ---- 2. Eyebrow prefix dash (every section) ---------- */
.eyebrow::before {
  background: #F0442D;
  opacity: 0.9;
}

/* ---- 3. Product card index numbers (01 · Base form) ---------- */
.mono-idx {
  color: #F0442D;
}

/* ---- 4. Science section callout numbers (01 — Transport) ---------- */
.science-callout .k {
  color: #F0442D;
  opacity: 0.9;
}

/* ---- 5. About page value numbers (01 — Mission) ---------- */
.values-grid .n {
  color: #F0442D;
}

/* ---- 6. FAQ expand/collapse plus icon ---------- */
.faq-plus::before,
.faq-plus::after {
  background: #F0442D;
}

/* ---- 7. Flagship product badge pulsing dot ---------- */
.mp-badge .dot {
  background: #F0442D;
  box-shadow: 0 0 10px #F0442D;
}

/* ---- 8. Final CTA background warm glow ---------- */
.final-cta::before {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(240, 68, 45, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 10%, rgba(70, 70, 180, 0.30) 0%, transparent 55%);
}

/* ---- 9. Hero ambient orb (subtle warm atmosphere) ---------- */
.orb-3 {
  background: radial-gradient(circle, rgba(240, 68, 45, 0.4) 0%, transparent 70%);
}

/* ---- 10. Draft notice & product warning banners ---------- */
.pd-notice,
.draft-notice {
  border-color: #F0442D;
  background: #FFE8E3;
}
.pd-notice strong,
.draft-notice strong {
  color: #F0442D;
}

/* ---- 11. Italic highlight words in all headings ---------- */
h1 em, h2 em, h3 em,
.hero-headline em,
.display em {
  color: #F0442D !important;
}


/* ============================================================
   VIDEO CARDS — Clickable YouTube cards + Modal lightbox
   ============================================================ */

/* Video card as button (clickable) */
.video-card {
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}
.video-card:focus-visible { outline: 2px solid var(--ember, #F0442D); outline-offset: 3px; }

/* YouTube thumbnail background */
.video-card[data-youtube] .bg {
  background-image: var(--yt-thumb, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .6s var(--ease);
}
.video-card:hover .bg { transform: scale(1.05); }

/* Dark overlay for text readability over thumbnail */
.video-card[data-youtube]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}
.video-card .play-ring,
.video-card .vmeta { z-index: 2; }

/* ===== MODAL ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: videoFadeIn .25s var(--ease);
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1120px;
  aspect-ratio: 16 / 9;
  animation: videoScaleIn .3s var(--ease);
}

.video-modal-player {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.video-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .video-modal-close { top: -46px; width: 36px; height: 36px; }
  .video-modal { padding: 12px; }
}

@keyframes videoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes videoScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Lock body scroll when modal open */
body.modal-open { overflow: hidden; }