/* ============ TOKENS ============ */
:root {
  /* Chapter color world — tweened by GSAP as you cross chapter boundaries */
  --bg: #050608;
  --ink: #f2f4f6;
  --dim: #97a0a8;
  --accent: #4db8ff;

  --display: 'Archivo Black', sans-serif;
  --body: 'Inter', sans-serif;
}

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

html { scroll-behavior: auto; } /* Lenis owns scrolling; native smooth would fight it */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: none; /* color changes are frame-driven by GSAP, not CSS transitions */
}

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

/* ============ PAINT CANVAS ============ */
#paint {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* CSS fallback when WebGL is unavailable: the tweened --bg still gives
   chapter color transitions, just without the paint. */
body.no-webgl #paint { display: none; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(1.1rem, env(safe-area-inset-top)) 5vw 1.1rem;
  mix-blend-mode: difference; /* nav stays legible across every chapter color */
}

.nav-logo {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: #fff;
}

.nav-links { display: flex; gap: 1.6rem; }

.nav-links a {
  color: #fff;
  opacity: 0.6;
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.8rem 0.2rem; /* keeps touch target ≥44px despite small type */
  transition: opacity 0.3s;
}

.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }

/* hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* full-screen mobile menu — its own solid layer (outside the nav's blend) */
.nav-overlay {
  display: none; /* desktop: never shown */
  position: fixed;
  inset: 0;
  z-index: 90; /* under the nav bar (100) so the logo + X stay tappable */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: rgba(4, 6, 10, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-overlay a {
  font-family: var(--display);
  font-size: clamp(1.4rem, 7vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-overlay.open a { opacity: 1; transform: none; }
.nav-overlay.open a:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay.open a:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay.open a:nth-child(3) { transition-delay: 0.20s; }
.nav-overlay.open a:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay.open a:nth-child(5) { transition-delay: 0.32s; }

/* ============ CHAPTERS ============ */
.chapter {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 18svh 6vw;
  position: relative;
}

.chapter-inner {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 2.2rem;
}

/* hero tagline — the first line a visitor reads: the money promise */
.hero-tagline {
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.9vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1.6rem;
  line-height: 1.35;
}

.hero-tagline::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.8em;
  margin-bottom: 0.18em;
}

.display {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8.5vw, 6.5rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
}

/* split-text masking: each word sits in an overflow-hidden sleeve */
.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em; /* keep descenders inside the mask */
  margin-bottom: -0.08em;
}

.split .word > .inner {
  display: inline-block;
  will-change: transform;
}

.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--dim);
  max-width: 34em;
}

.copy {
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.75;
  color: var(--dim);
  max-width: 36em;
}

.copy + .copy { margin-top: 1.4rem; }

/* hero */
.chapter-hero { text-align: center; }
.chapter-hero .lede { margin: 0 auto; }

/* hero: straight ASCII banner, toned to the site's blue palette */
.chapter-hero { position: relative; }
.hero-ascii { display: block; width: 100%; max-width: 880px; aspect-ratio: 12 / 5; margin: 2rem auto 0;
  border-radius: 14px; border: 0.5px solid rgba(77,184,255,0.18); background: #06101a; overflow: hidden; }
.chapter-hero .lede { margin: 0 auto; max-width: 600px; }
.chapter-hero .display { margin-bottom: 1.4rem; }
.chapter-hero .hero-sub { max-width: 600px; margin: 0 auto 2rem; color: var(--dim);
  font-size: clamp(1.05rem, 2.3vw, 1.32rem); line-height: 1.55; }
.chapter-hero .hero-cta { margin-bottom: 0.5rem; }

/* chapter-name eyebrows removed per request */
.kicker { display: none; }

.scroll-hint {
  position: absolute;
  bottom: max(2.2rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.hint-bar {
  width: 1px;
  height: 34px;
  background: var(--dim);
  transform-origin: top;
  animation: hintPulse 2.2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* process strip (The Current) */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.process-num {
  font-family: var(--display);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.process h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  margin: 0.8rem 0 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process p {
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* services */
.services-lede { margin-bottom: 3rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 2.4rem;
  margin-top: 1rem;
}

.service-for {
  margin-top: 0.6rem;
  font-size: 0.78rem !important;
  color: var(--accent) !important;
  opacity: 0.85;
}

.service-num {
  font-family: var(--display);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.service h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  margin: 1rem 0 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service p {
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* break: full-bleed flowing-water VIDEO (symbiosissystems.io's current.mp4)
   over a teal base — screen blend drops the video's black so only the light
   streams glow, exactly like the symbiosis treatment. */
.chapter-break {
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate; /* seal the screen-blend backdrop to this section only */
  background: linear-gradient(135deg, #041018 0%, #06222e 52%, #03131c 100%);
}

/* layer 1: animated procedural-water canvas (always moving, ambient base) */
.break-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

/* layer 2: the real flowing-water video, scrubbed by scroll. Screen blend
   drops its black so the streams glow over the canvas + teal. Starts hidden
   and fades in as you scroll into the section (set inline by scroll.js). */
.break-water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;        /* explicit tier: canvas(0) < video(1) < vignette(2) < text(3) */
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: opacity;
}

.chapter-break .chapter-inner {
  position: relative;
  z-index: 3;        /* text rides over canvas(0), video(1), vignette(2) */
  max-width: 900px;
}

.chapter-break .copy { margin-left: auto; margin-right: auto; }

/* legibility: frost the wave behind the body copy so it reads over the ASCII */
.chapter-break .break-copy {
  max-width: 660px;
  color: #dce8ef;
  padding: 16px 26px;
  border-radius: 14px;
  background: rgba(4, 12, 18, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 10px rgba(2, 8, 14, 0.9);
}

/* subtle vignette so the centered text stays legible over the bright water */
.chapter-break::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(2,8,14,0) 35%, rgba(2,8,14,0.55) 100%);
}

.break-accent {
  margin-top: 2.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(4, 12, 18, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 8px rgba(2, 8, 14, 0.9);
}

.cap-a { color: var(--dim); }
.cap-b { color: var(--accent); }

/* proof (case study) */
.roas {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin: 3.4rem 0 3rem;
}

.roas-num {
  font-family: var(--display);
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 1;
  color: var(--accent);
}

.roas-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.stat dt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 0.7rem;
}

.stat dd {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  margin: 0;
}

.stat-note { font-size: 0.92rem; }

/* ============ AI EMPLOYEES MOVEMENT ============ */

/* undertow — the problem: open loops */
.loops {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2.4rem;
  margin: 2.8rem 0;
  max-width: 40rem;
}

.loops li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.loops li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.loops-note { max-width: 38em; }

/* crew — what the AI employee is: three pillars */
.ai-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin: 3.4rem 0 2.4rem;
}

.pillar-num {
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.ai-pillars h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0.9rem 0 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-pillars p {
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

.crew-roles { font-size: 0.95rem; }
.crew-roles strong { color: var(--ink); font-weight: 600; }

/* install — the offer: timeline, deliverables, packages */
.chapter-install .chapter-inner { max-width: 1040px; }

.install-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin: 3rem 0 4.5rem;
  counter-reset: none;
}

.install-steps li { position: relative; padding-top: 1.4rem; }

.install-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.install-steps span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.install-steps h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0.7rem 0 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.install-steps p { color: var(--dim); font-size: 0.86rem; line-height: 1.6; }

.install-subhead {
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-bottom: 1.6rem;
}

.deliverables {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 2.4rem;
  margin-bottom: 4.5rem;
  max-width: 44rem;
}

.deliverables li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

/* packages */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.package {
  border: 1px solid color-mix(in srgb, var(--dim) 30%, transparent);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.package.featured {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 40px -12px var(--accent);
}

.package-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.package h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0.4rem 0 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.package .price {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.package .price em {
  font-style: normal;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-transform: uppercase;
}

.package ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
}

.package li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  color: var(--dim);
}

.package li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.install-reassure { font-size: 0.95rem; max-width: 42em; }

.install-reassure a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  white-space: nowrap;
}

.install-reassure a:hover { border-bottom-color: var(--accent); }

/* ============ THE DEEP — Private AI Box ============ */
.chapter-trench .chapter-inner { max-width: 1040px; }

/* the box: a featured card carrying the on-the-table close line */
.box-card {
  margin: 3.2rem 0 4rem;
  padding: 2.6rem 2.4rem;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 0 60px -20px var(--accent);
}

.box-card-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.box-quote {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.8vw, 1.85rem);
  line-height: 1.42;
  letter-spacing: 0.005em;
  color: var(--ink);
  max-width: 22em;
}

.box-quote::before { content: "\201C"; color: var(--accent); }
.box-quote::after  { content: "\201D"; color: var(--accent); }

.box-spec {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--dim) 24%, transparent);
}

.box-spec li { display: flex; flex-direction: column; gap: 0.45rem; }

.box-spec strong {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  color: var(--accent);
  line-height: 1;
}

.box-spec span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  line-height: 1.45;
}

/* four packages → a 2×2 block instead of the install 3-up row */
.package-grid.two-by-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

/* shore / CTA */
.chapter-shore { text-align: center; }
.chapter-shore .copy { margin: 0 auto 3rem; }
/* rendered (so the frames decode) but hidden behind the dot canvas */
.whale-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none; z-index: 0; }
.shore-dots {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 1;
  /* deep-ocean backdrop so the whale's true colors pop (OG dots-on-dark look) */
  background: radial-gradient(ellipse 120% 90% at 50% 60%, #0a1f33 0%, #051320 45%, #02070e 100%);
}
/* legibility scrim: darkens behind the footer text, above the dots */
.chapter-shore::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 82% 58% at 50% 44%,
    rgba(2,7,14,0.92) 0%, rgba(2,7,14,0.72) 36%, rgba(2,7,14,0.3) 60%, transparent 78%);
}
.chapter-shore .chapter-inner { position: relative; z-index: 2; }
.chapter-shore .display,
.chapter-shore .copy,
.chapter-shore .footer-meta,
.chapter-shore .cta-button {
  text-shadow: 0 2px 18px rgba(2,7,14,0.9), 0 1px 3px rgba(2,7,14,0.8);
}

.cta-button {
  display: inline-block;
  padding: 1.15rem 2.6rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transition: background 0.35s, color 0.35s;
}

.cta-button:hover, .cta-button:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16svh;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dim);
}

/* ============ MOBILE ============ */
@media (max-width: 680px) {
  .nav-links { display: none; }      /* inline links → hamburger */
  .nav-toggle { display: flex; }
  .nav-overlay { display: flex; }
  .service-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .chapter { padding: 14svh 7vw; }
  .footer-meta { flex-direction: column; gap: 0.6rem; align-items: center; }

  .process { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 3rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .roas { margin: 2.4rem 0 2.2rem; flex-direction: column; gap: 0.6rem; align-items: flex-start; }

  /* break: tighten the centered copy on phones */
  .break-copy { font-size: 0.95rem; }

  /* AI employees movement: collapse multi-column grids on phones */
  .loops { grid-template-columns: 1fr; gap: 0.7rem; }
  .ai-pillars { grid-template-columns: 1fr; gap: 2rem; }
  .install-steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.4rem; margin-bottom: 3.5rem; }
  .deliverables { grid-template-columns: 1fr; gap: 0.7rem; }
  .package-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .package-grid.two-by-two { grid-template-columns: 1fr; }
  .package.featured { order: -1; }

  /* the deep — box spec collapses to a 2-up grid on phones */
  .box-card { padding: 2rem 1.6rem; }
  .box-spec { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
}

/* ============ TALK-TO-MARINA VOICE FAB ============ */
/* Floating "Talk to our AI" mic — opens the Retell Marina voice orb.
   Tints itself with the live chapter --accent as you scroll. */
.marina-fab[hidden] { display: none !important; }

.marina-fab {
  position: fixed;
  right: max(1.4rem, env(safe-area-inset-right));
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  z-index: 88; /* above content, below nav-overlay(90)/nav(100)/Cal modal */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem 0.85rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, rgba(4, 8, 14, 0.82));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 8px 30px -8px var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: marinaPulse 2.8s ease-in-out infinite;
}

.marina-fab:hover,
.marina-fab:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 26%, rgba(4, 8, 14, 0.86));
  box-shadow: 0 12px 42px -8px var(--accent);
  outline: none;
}

.marina-fab-mic { flex: none; color: #fff; }
.marina-fab-label { white-space: nowrap; }

@keyframes marinaPulse {
  0%, 100% { box-shadow: 0 8px 30px -8px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 8px 30px -8px var(--accent), 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
}

@media (max-width: 680px) {
  .marina-fab { padding: 0.85rem; gap: 0; }
  .marina-fab-label { display: none; } /* mic-only circle on phones */
}

/* ============ REDUCED MOTION ============ */
/* JS also branches on this; CSS covers the no-JS / pre-JS state. */
@media (prefers-reduced-motion: reduce) {
  .hint-bar { animation: none; }
  .split .word > .inner { transform: none !important; }
  .marina-fab { animation: none; }
}
