/* =========================================
   Eulerian Bots — Editorial Studio
   bone white · ink · one ember accent
   Inter Tight + Instrument Serif italic
   ========================================= */

:root {
  --bone: #f4f1ea;
  --bone-2: #ece8df;
  --ink: #141311;
  --ink-2: #232019;
  --muted: #6f6a61;
  --hairline: rgba(20, 19, 17, 0.14);
  --hairline-light: rgba(244, 241, 234, 0.18);
  --ember-base: #e8500a;
  --ember: var(--ember-base);
  --ember-bright: #ff5f0f;
  /* ember fails WCAG AA on --bone (3.33). This is the on-light variant: 4.79.
     Light sections below rebind --ember to it, so descendants adapt on their own. */
  --ember-ink: #bf3d00;
  --danger: #ff4d4d;

  /* Two darks, one hue family. Previously 12 near-blacks drifted across warm,
     cool and neutral, so section seams read as muddy rather than deliberate. */
  --night: #06090e;
  --night-2: #0d1017;

  --font: "Inter", "Inter Tight", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

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

  --sec-pad: clamp(4.5rem, 8vw, 7rem);
  --radius-card: 14px;
  --shadow-rest: 0 1px 2px rgba(20, 19, 17, 0.05), 0 18px 44px -14px rgba(20, 19, 17, 0.18);
  --shadow-lift: 0 2px 4px rgba(20, 19, 17, 0.06), 0 30px 60px -18px rgba(20, 19, 17, 0.28);
}

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

html {
  scroll-behavior: smooth;
  /* anchor jumps land clear of the sticky navbar */
  scroll-padding-top: 76px;
}

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

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* ===== Light/dark rhythm =====
   Sections alternate bone -> night down the page. The cream sections rebind
   --ember to its AA-safe variant so every descendant adapts without being
   listed here; dark islands inside them rebind back. */
.navbar,
.marquee,
.products,
.gallery,
.partners {
  --ember: var(--ember-ink);
}

.gallery-scope {
  --ember: var(--ember-base);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
}

.container {
  width: min(92%, 1240px);
  margin: 0 auto;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* ================= Nav ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  height: 34px;
  width: auto;
  display: block;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo:hover .logo-img,
.curve-logo:hover .logo-img,
.mothership-logo:hover .logo-img {
  transform: scale(1.03);
  filter: none;
  opacity: 0.95;
}

.logo-text {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin: 0 auto;
}

.nav-links a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--night);
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--ember);
}

/* underline sweep on hover */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.btn-connect {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone);
  background: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

.btn-connect:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

/* ================= Buttons & links ================= */
.btn-ink {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  background: var(--ink);
  color: var(--bone);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-ink:hover {
  background: var(--ember);
  transform: translateY(-2px);
}

.btn-ink.light {
  background: var(--bone);
  color: var(--ink);
}

.btn-ink.light:hover {
  background: var(--ember);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  transition: color 0.3s, border-color 0.3s;
}

/* holds the primary CTA and the brochure download side by side */
.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

/* Secondary to .link-arrow — no underline, so it doesn't compete with the CTA.
   Inherits its page's text colour rather than using --muted, because the dark
   product pages would render --muted (#6f6a61) at 3.87 against their near-black
   background. Inheriting keeps one rule correct on both the cream and dark pages. */
.link-brochure {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.72;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}

.link-brochure svg {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.link-brochure:hover,
.link-brochure:focus-visible {
  color: var(--ember);
  opacity: 1;
}

/* end-of-page placeholder row on the product pages */
.brochure-endcap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.link-arrow span {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--ember);
  border-color: var(--ember);
}

.link-arrow:hover span {
  transform: translate(3px, -3px);
}

/* down-arrow variant for same-page anchors */
.link-arrow.down:hover span {
  transform: translateY(3px);
}

/* press acknowledgment on all pill buttons */
.btn-ink:active,
.btn-hero:active,
.btn-connect:active,
.btn:active,
.product-copy .link-arrow:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.08s;
}

/* ================= Hero (dark cinematic, reference layout) ================= */
.hero {
  position: relative;
  /* subtract the sticky navbar so the caption is never pushed below the fold */
  height: calc(100vh - 64px);
  min-height: 580px;
  overflow: hidden;
  color: var(--bone);
  background:
    radial-gradient(1200px 600px at 50% 0%, var(--night-2), transparent 70%),
    radial-gradient(ellipse at center, var(--night-2) 0%, var(--night) 100%);
}

/* giant brand word — glows first, then lives behind the robot */
.hero-word {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  z-index: 1;
  height: 1em;
  font-size: clamp(2.2rem, 7.8vw, 8.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  transition: opacity 3s var(--ease), transform 3s var(--ease), filter 3s var(--ease);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* each word is anchored to the exact screen center, so the gap
   always sits on the robot's head regardless of word lengths */
.hero-word span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  color: #ffffff;
  -webkit-text-stroke: none;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.95))
          drop-shadow(0 0 35px rgba(232, 80, 10, 0.85))
          drop-shadow(0 0 60px rgba(232, 80, 10, 0.5));
  transition: color 1.2s var(--ease), filter 1.5s var(--ease), opacity 1.5s var(--ease);
  /* smoky entrance + glitch/flicker cycles */
  animation: cyber-smoke 3.8s cubic-bezier(0.19, 1, 0.22, 1) forwards, cyber-flicker 4s 2, cyber-glitch 5s 2;
  display: inline-block;
}

.hero-word span:first-child {
  right: calc(50% + clamp(1.2rem, 4vw, 4.8rem));
}

.hero-word span:last-child {
  left: calc(50% + clamp(1.2rem, 4vw, 4.8rem));
}

/* triggered by JS once the Spline scene has loaded:
   the word settles — stays visible behind the robot with a calmer glow */
.hero-word.fade {
  opacity: 0.85;
}

.hero-word.fade span {
  color: rgba(255, 255, 255, 0.95);
  -webkit-text-stroke: none;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.85))
          drop-shadow(0 0 35px rgba(232, 80, 10, 0.75))
          drop-shadow(0 0 65px rgba(232, 80, 10, 0.45));
  animation: cyber-breathe 4s ease-in-out infinite alternate;
}

/* Robotic neon flicker */
@keyframes cyber-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 0.99;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.85))
            drop-shadow(0 0 25px rgba(232, 80, 10, 0.7));
  }
  20%, 24%, 55% {
    opacity: 0.25;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.15)) 
            drop-shadow(0 0 6px rgba(232, 80, 10, 0.15));
  }
  22% {
    opacity: 0.05;
    filter: none;
  }
}

/* Cyber skew/glitch animation to give a robotic UI feel */
@keyframes cyber-glitch {
  0%, 94%, 100% {
    transform: skew(0deg) translate(0, 0);
  }
  95% {
    transform: skew(6deg) translate(-3px, 1px);
  }
  96% {
    transform: skew(-8deg) translate(3px, -2px);
  }
  97% {
    transform: skew(0deg) translate(0, 0);
  }
  30%, 32% {
    transform: skew(3deg) translate(1px, -1px);
  }
  31% {
    transform: skew(-4deg) translate(-2px, 1px);
  }
  33% {
    transform: skew(0deg) translate(0, 0);
  }
}

/* Calmer breathing glow after load */
@keyframes cyber-breathe {
  0% {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 30px rgba(232, 80, 10, 0.6))
            drop-shadow(0 0 50px rgba(232, 80, 10, 0.35));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.85))
            drop-shadow(0 0 45px rgba(232, 80, 10, 0.75))
            drop-shadow(0 0 75px rgba(232, 80, 10, 0.5));
  }
}

/* Futuristic smoke dissolve-in and condensation */
@keyframes cyber-smoke {
  0% {
    filter: blur(28px) brightness(2.8)
            drop-shadow(0 0 45px rgba(232, 80, 10, 0.95))
            drop-shadow(0 0 90px rgba(232, 80, 10, 0.8));
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  25% {
    opacity: 0.85;
    filter: blur(14px) brightness(1.8)
            drop-shadow(0 0 35px rgba(232, 80, 10, 0.9))
            drop-shadow(0 0 70px rgba(232, 80, 10, 0.7));
    transform: translateY(-5px) scale(1.02);
  }
  65% {
    opacity: 0.98;
    filter: blur(4px) brightness(1.2)
            drop-shadow(0 0 15px rgba(232, 80, 10, 0.85));
    transform: translateY(1px) scale(0.995);
  }
  100% {
    filter: blur(0px) brightness(1)
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 20px rgba(232, 80, 10, 0.75));
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* particles background behind the robot and titles */
.spline-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

/* iframe extends past the hero's bottom edge so the
   "Built with Spline" badge is cropped by overflow:hidden */
.spline-backdrop iframe {
  width: 100%;
  height: calc(100% + 72px);
  border: none;
  display: block;
}

/* robot fills the hero, centered, above the word */
.spline-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* viewer extends past the bottom edge so the watermark corner is cropped */
spline-viewer {
  position: absolute;
  inset: 0 0 -56px 0;
  width: 100%;
  height: calc(100% + 56px);
  display: block;
}

/* caption band: headline bottom-left, blurb + CTA bottom-right */
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-left: auto;
  margin-right: auto;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.9), 
    0 4px 30px rgba(0, 0, 0, 0.7);
}

.hero-title em {
  color: var(--ember-bright);
  text-shadow: 0 0 12px rgba(255, 95, 15, 0.45);
}

.hero-aside {
  max-width: 340px;
  text-align: right;
}

.hero-aside p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.2rem;
}

.btn-hero {
  pointer-events: auto;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-hero:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--night);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

/* Spline Watermark Cover Overlay - Hidden as shadow DOM handles it cleanly */
.spline-watermark-cover {
  display: none !important;
}

@media (max-width: 820px) {
  .spline-stage {
    height: 70%;
    top: 5%;
    bottom: auto;
  }

  .hero-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    bottom: 3rem;
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 6.5vw, 2.5rem);
  }

  .hero-aside {
    text-align: left;
  }

  .hero-aside p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .hero-word {
    top: 12%;
    font-size: clamp(2.2rem, 8.5vw, 4rem);
  }

  .hero-word span:first-child {
    right: calc(50% + 0.75rem);
  }
  
  .hero-word span:last-child {
    left: calc(50% + 0.75rem);
  }
}

/* ================= Marquee ================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
  background: var(--bone);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* gap:0 + per-item margin so -50% lands exactly on the loop seam */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track > span,
.marquee-track > i {
  margin-right: 2.5rem;
}

.marquee-track span {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--ember);
  font-style: normal;
  font-size: 0.7rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ================= Section heads ================= */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.section-head p {
  color: var(--muted);
  max-width: 380px;
  font-size: 0.98rem;
}

/* ================= Products ================= */
.products {
  padding: var(--sec-pad) 0 3.5rem;
}

.product-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 5rem 0;
  border-top: 1.5px solid var(--hairline);
  position: relative;
}

.product-row.flip .product-copy {
  order: 2;
}

.product-row.flip .product-media {
  order: 1;
}

.product-index {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ember);
  margin-bottom: 1rem;
}

.product-copy {
  position: relative;
  z-index: 2;
}

.product-copy h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.2rem;
  color: var(--ink);
  text-transform: uppercase;
}

.product-copy p {
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 2rem;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* Telemetry specs grid matching Cannondale spec table */
.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.8rem;
  margin-bottom: 2.2rem;
  border-top: 1px solid rgba(20, 19, 17, 0.08);
  padding-top: 1.5rem;
  max-width: 440px;
}

.spec-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* values are authored in caps; no transform so LoRaWAN/77GHz/200m keep their case */
.spec-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.product-copy .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  background: transparent;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.product-copy .link-arrow span {
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.product-copy .link-arrow:hover {
  color: var(--bone);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}

.product-copy .link-arrow:hover span {
  transform: translate(2.5px, -2.5px);
}

.product-media {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  transition: transform 0.08s linear;
  will-change: transform;
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-rest);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-media.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone-2);
}

.product-media.media-placeholder::after {
  content: "Image coming soon";
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ================= Services ================= */
.services-scroll {
  background: var(--night);
  color: #ffffff;
}

.services-scroll-track {
  height: 250vh;
  position: relative;
}

.services-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.services-sticky-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.services-overlay-content {
  position: relative;
  z-index: 10;
  padding-top: 6.5rem;
  pointer-events: none;
}

.services-overlay-content h2 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.services-overlay-content p {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* scroll-staged service captions over the brain sequence */
.services-captions {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.service-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 380px;
}

.service-caption:nth-child(odd) {
  left: clamp(1.5rem, 7vw, 8rem);
}

.service-caption:nth-child(even) {
  right: clamp(1.5rem, 7vw, 8rem);
  text-align: right;
}

/* JS animates the inner wrapper so positioning stays in CSS */
.caption-inner {
  opacity: 0;
  will-change: opacity, transform;
}

.caption-index {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ember);
  margin-bottom: 0.6rem;
}

.service-caption h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  margin-bottom: 0.5rem;
}

.service-caption p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

@media (max-width: 768px) {
  .service-caption,
  .service-caption:nth-child(odd),
  .service-caption:nth-child(even) {
    left: 1.25rem;
    right: 1.25rem;
    top: auto;
    bottom: 9%;
    transform: none;
    max-width: none;
    text-align: left;
  }
}

/* ================= Gallery ================= */
.gallery {
  padding: var(--sec-pad) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.gallery-scope {
  position: relative;
  background: var(--night-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.gallery-scope:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.scope-viewfinder {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scope-viewfinder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: brightness(0.85) contrast(1.05);
}

.gallery-scope:hover img {
  transform: scale(1.06);
  filter: brightness(0.95) contrast(1.1);
}

.scope-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: var(--night-2);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.6s var(--ease), background-color 0.6s var(--ease), background-image 0.6s var(--ease);
}

.gallery-scope:hover .scope-placeholder {
  color: var(--ember);
  background-color: var(--night-2);
  background-image: 
    linear-gradient(rgba(232, 35, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 35, 26, 0.04) 1px, transparent 1px);
}

.placeholder-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.25;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.gallery-scope:hover .placeholder-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(232, 35, 26, 0.3));
}

.placeholder-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* HUD corners */
.scope-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
  z-index: 5;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), filter 0.4s var(--ease);
  pointer-events: none;
}

.scope-bracket.top-left {
  top: 15px;
  left: 15px;
  border-width: 1.5px 0 0 1.5px;
}

.scope-bracket.top-right {
  top: 15px;
  right: 15px;
  border-width: 1.5px 1.5px 0 0;
}

.scope-bracket.bottom-left {
  bottom: 15px;
  left: 15px;
  border-width: 0 0 1.5px 1.5px;
}

.scope-bracket.bottom-right {
  bottom: 15px;
  right: 15px;
  border-width: 0 1.5px 1.5px 0;
}

/* Hover shifts brackets closer to simulate crosshair lock-on */
.gallery-scope:hover .scope-bracket {
  border-color: var(--ember);
  filter: drop-shadow(0 0 4px var(--ember));
}

.gallery-scope:hover .scope-bracket.top-left { transform: translate(3px, 3px); }
.gallery-scope:hover .scope-bracket.top-right { transform: translate(-3px, 3px); }
.gallery-scope:hover .scope-bracket.bottom-left { transform: translate(3px, -3px); }
.gallery-scope:hover .scope-bracket.bottom-right { transform: translate(-3px, -3px); }

/* Scanline animation — full-height gradient band moved by transform
   (compositor-only, no per-frame layout) with eased turnarounds */
.scope-scanline {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(to bottom, transparent 48.5%, rgba(232, 80, 10, 0.35) 50%, transparent 51.5%);
  z-index: 4;
  opacity: 0;
  transform: translateY(-100%);
  will-change: transform;
  pointer-events: none;
}

.gallery-scope:hover .scope-scanline {
  animation: scan-vertical 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  opacity: 1;
}

@keyframes scan-vertical {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

/* HUD Overlay tags */
.scope-status {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: rgba(20, 19, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-scope:hover .scope-status {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.scope-status.warning {
  border-color: var(--ember-bright);
  color: var(--ember-bright);
}

.scope-status.danger {
  border-color: var(--danger);
  color: var(--danger);
  animation: blink-status 0.8s steps(2, start) infinite;
}

.scope-status.success {
  border-color: #4caf50;
  color: #4caf50;
}

@keyframes blink-status {
  to { border-color: transparent; color: transparent; }
}

.scope-telemetry {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 6;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}

.gallery-scope:hover .scope-telemetry {
  opacity: 1;
  color: #ffffff;
}

/* ================= Partners ================= */
.partners {
  border-top: 1px solid var(--hairline);
  padding: 4.5rem 0 5rem;
}

.partners-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.partners-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* multiply blend knocks white logo boxes into the bone surface */
.partners-logos img {
  height: 44px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.75;
  mix-blend-mode: multiply;
  transition: filter 0.3s, opacity 0.3s;
}

.partners-logos img:hover {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}

/* ================= Outro: contact + footer (dark) ================= */
.outro {
  /* was var(--ink) — a warm light-mode text token used as a background, which
     clashed against the cool --night of the FAQ section directly above it */
  background: var(--night);
  color: var(--bone);
  padding: var(--sec-pad) 0 2.5rem;
  overflow: hidden;
}

.outro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.outro-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 2.5rem;
}

.outro-copy h2 em {
  color: var(--ember);
}

.outro-details {
  list-style: none;
}

.outro-details li {
  color: rgba(244, 241, 234, 0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.outro-details li:first-child,
.outro-details li:nth-child(2) {
  color: var(--bone);
  font-weight: 600;
  font-size: 1.15rem;
}

.outro-details a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-light);
  transition: color 0.25s, border-color 0.25s;
}

.outro-details a:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* editorial underline-style form */
.outro-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.6rem;
}

.outro-form input,
.outro-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-light);
  padding: 0.7rem 0;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bone);
  transition: border-color 0.3s;
  resize: none;
}

.outro-form input::placeholder,
.outro-form textarea::placeholder {
  color: rgba(244, 241, 234, 0.4);
}

.outro-form input:focus,
.outro-form textarea:focus,
.outro-form input:focus-visible,
.outro-form textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--ember);
}

#formStatus {
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 1.4em;
  color: rgba(244, 241, 234, 0.6);
}

/* giant wordmark */
.footer-wordmark {
  font-size: clamp(4rem, 16.5vw, 15rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: center;
  margin-top: 5rem;
  color: var(--night);
  /* Inter's 900-weight A and R are built from overlapping sub-shapes (crossbar
     over diagonals, leg over bowl). A plain stroke traces every contour, so
     those internal seams show as stray boxes. paint-order draws the stroke
     first and lets the fill cover the seams — only the true outer edge remains.
     Stroke is doubled because the fill hides its inner half. */
  paint-order: stroke fill;
  -webkit-text-stroke: 3px rgba(232, 80, 10, 0.55);
  text-shadow: 0 0 40px rgba(232, 80, 10, 0.14);
  user-select: none;
  white-space: nowrap;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline-light);
  margin-top: 3rem;
  padding-top: 1.6rem;
  padding-bottom: 2rem;
  font-size: 0.85rem;
  color: rgba(244, 241, 234, 0.5);
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

/* footer links rhyme with the nav's small-caps voice */
.footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 234, 0.6);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--ember);
}

/* ================= Reveal ================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Fire Bot experience page (dark theater)
   ========================================= */
.fb-page {
  background: var(--night);
  /* dark OS scrollbar/form controls on the dark theater page */
  color-scheme: dark;
}

.fb-back {
  position: fixed;
  top: 1.2rem;
  left: 1.4rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  background: rgba(10, 8, 6, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.fb-back:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.fb-intro {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: var(--bone);
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 80, 10, 0.16), transparent 70%),
    var(--night);
}

/* Split layout override */
.fb-intro--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 5vw 4rem;
  text-align: left;
}

.intro-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
}

/* --- Left column: text --- */
.fb-intro-left {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
}

.hud-status-tag--inline {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--ember);
  text-shadow: 0 0 4px rgba(232, 80, 10, 0.4);
  margin-bottom: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--ember);
  opacity: 0;
  transform: translateY(-5px);
  animation: fadeSlideIn 0.8s 0.3s forwards;
}

@keyframes fadeSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

.fb-intro-left .fb-intro-kicker {
  margin-bottom: 1rem;
}

.fb-intro-left h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.fb-intro-left .fb-intro-sub {
  max-width: 460px;
  margin-top: 1.4rem;
  color: rgba(244, 241, 234, 0.6);
  font-size: 1rem;
  line-height: 1.75;
}

.fb-intro-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* --- Right column: 3D model --- */
.fb-intro-right {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 80vh;
  min-height: 500px;
}

.fb-intro-right .hero-model-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-model-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

.hero-model-container canvas:active {
  cursor: grabbing;
}

/* Orbit hint — sits at bottom of model column */
.fb-intro-right .model-orbit-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  background: rgba(5, 5, 6, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 241, 234, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  pointer-events: none;
  animation: hint-pulse 3s ease-in-out infinite;
}

.model-orbit-hint svg {
  opacity: 0.5;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Scroll hint — bottom center of entire section */
.fb-intro--split .fb-intro-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

/* --- Mobile: stack vertically --- */
@media (max-width: 900px) {
  .fb-intro--split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 5rem 6vw 3rem;
  }
  .fb-intro-left {
    align-items: center;
    padding-right: 0;
    order: 1;
  }
  .fb-intro-left .fb-intro-sub {
    max-width: 100%;
  }
  .fb-intro-right {
    order: 2;
    height: 55vh;
    min-height: 320px;
  }
  .hud-status-tag--inline {
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid var(--ember);
    padding-bottom: 0.3rem;
  }
}

.fb-intro-hud-box {
  position: relative;
  padding: 3rem 4rem;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hud-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.2);
  border-style: solid;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease),
    border-color 1.2s var(--ease), filter 1.2s var(--ease);
}

.hud-bracket.top-left {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  transform: translate(-20px, -20px);
  opacity: 0;
}

.hud-bracket.top-right {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  transform: translate(20px, -20px);
  opacity: 0;
}

.hud-bracket.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  transform: translate(-20px, 20px);
  opacity: 0;
}

.hud-bracket.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  transform: translate(20px, 20px);
  opacity: 0;
}

.fb-intro-hud-box.locked-on .hud-bracket {
  transform: translate(0, 0);
  opacity: 0.85;
  border-color: var(--ember);
  filter: drop-shadow(0 0 4px var(--ember));
}

.hud-status-tag {
  position: absolute;
  top: -9px;
  left: 20px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  background: var(--night);
  padding: 0 8px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.8s var(--ease) 0.5s, transform 0.8s var(--ease) 0.5s,
    color 0.8s var(--ease) 0.5s;
}

.fb-intro-hud-box.locked-on .hud-status-tag {
  opacity: 0.95;
  transform: translateY(0);
  color: var(--ember);
  text-shadow: 0 0 4px rgba(232, 80, 10, 0.4);
}

.fb-intro-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.2rem;
}

.fb-intro h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.fb-intro-sub {
  max-width: 560px;
  margin-top: 1.4rem;
  color: rgba(244, 241, 234, 0.6);
  font-size: 1rem;
  line-height: 1.75;
}

.fb-intro-hint {
  margin-top: 3.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* specs — big editorial numbers, no boxes */
.fb-specs {
  background: var(--bone);
  color: var(--ink);
  padding: 6.5rem 0;
}

.fb-specs-title {
  text-align: center;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.fb-specs-sub {
  text-align: center;
  color: var(--muted);
  margin: 0.7rem auto 3.5rem;
  max-width: 520px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat-tile {
  text-align: center;
  padding: 2.6rem 1rem;
  border-right: 1px solid var(--hairline);
}

.stat-tile:nth-child(4n) {
  border-right: none;
}

.stat-tile:nth-child(n + 5) {
  border-top: 1px solid var(--hairline);
}

.stat-figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
}

.stat-num {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ember);
}

.stat-label {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-footnote {
  text-align: center;
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.fb-outro {
  padding: 7rem 8vw;
  text-align: center;
  color: var(--bone);
  background: var(--night);
}

.fb-outro h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.fb-outro p {
  color: rgba(244, 241, 234, 0.6);
  margin-top: 0.8rem;
}

.fb-outro-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* buttons used on dark page */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-gradient {
  background: var(--bone);
  color: var(--ink);
}

.btn-gradient:hover {
  background: var(--ember);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(244, 241, 234, 0.3);
}

.btn-ghost:hover {
  border-color: var(--bone);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ================= Scroll story ================= */
.firebot-scroll {
  height: 420vh;
  position: relative;
  background: var(--night);
}

.firebot-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#firebotCanvas,
#floodCanvas,
#model3dContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#floodCanvas {
  cursor: grab;
}

#floodCanvas:active {
  cursor: grabbing;
}

#model3dContainer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Drag to inspect indicator */
.drag-inspect-hint {
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  background: rgba(5, 5, 6, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 241, 234, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  pointer-events: none;
  animation: hint-pulse 3s ease-in-out infinite;
}

.drag-inspect-hint svg {
  opacity: 0.65;
  color: var(--ember);
}

/* feature cards beside the bot */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes siri-rotate {
  to { --angle: 360deg; }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.fb-card {
  position: absolute;
  top: 50%;
  width: min(310px, 26vw);
  opacity: 0;
  transform: translateY(-50%) translateY(var(--drift, 30px));
  pointer-events: none;
  filter: blur(10px);
  /* opacity is scroll-driven by firebot.js every tick — transitioning it
     makes cards trail the scrub; only the blur toggle animates */
  transition: filter 0.6s var(--ease);
}

.fb-card.active {
  filter: blur(0px);
  pointer-events: auto;
}

.fb-card.left {
  left: 3%;
}

.fb-card.right {
  right: 3%;
}

.fb-card-glow {
  position: relative;
  animation: card-float 4.5s ease-in-out infinite;
}

/* Hide gradient borders and glows completely */
.fb-card-glow::before,
.fb-card-glow::after {
  display: none !important;
}

.fb-card-inner {
  position: relative;
  z-index: 1;
  margin: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
  border-radius: 0;
  transition: transform 0.08s linear;
  will-change: transform;
}

#flood-scroll .fb-card-inner {
  background: rgba(5, 5, 6, 0.78) !important;
  border: 1px solid rgba(244, 241, 234, 0.08) !important;
  border-left: 3px solid var(--ember) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  padding: 2.2rem 2rem !important;
  border-radius: 16px !important;
}

.fb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ember);
  margin-bottom: 0.6rem;
}

/* Pulsing robotic beacon indicator */
.fb-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
  0% { opacity: 0.35; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.fb-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.fb-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.65);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ================= Responsive ================= */
@media (max-width: 1000px) {
  .product-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 2.5rem 0;
    margin-bottom: 0;
  }
  
  .product-row.flip .product-copy {
    order: 1;
  }

  .product-row.flip .product-media {
    order: 2;
  }

  .showcase-inner {
    grid-template-columns: 1fr;
  }

  .outro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-item {
    grid-template-columns: 50px 1fr;
  }

  .service-item p {
    grid-column: 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-tile:nth-child(4n) {
    border-right: 1px solid var(--hairline);
  }

  .stat-tile:nth-child(2n) {
    border-right: none;
  }

  .stat-tile:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }

  #heroBotCanvas {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 820px) {
  .fb-card {
    top: auto;
    bottom: 5vh;
    left: 50% !important;
    right: auto !important;
    width: min(340px, 88vw);
    transform: translateX(-50%) translateY(var(--drift, 30px));
  }

  .drag-inspect-hint {
    top: 5rem;
    font-size: 0.55rem;
    padding: 0.35rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-right {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244, 241, 234, 0.97);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a {
    width: 100%;
    padding: 0.6rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .outro-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .firebot-scroll {
    height: 300vh;
  }

  .footer-wordmark {
    letter-spacing: -0.03em;
  }

  .product-specs-grid {
    gap: 1rem 1.2rem;
  }

  .spec-val {
    font-size: 0.8rem;
    letter-spacing: 0;
  }
}

@media (max-width: 400px) {
  .product-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* ================= IMPACT METRICS SECTION ================= */
.metrics-section {
  padding: 5.5rem 0;
  background-color: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 35, 26, 0.5);
  box-shadow: 0 10px 30px rgba(232, 35, 26, 0.2);
}

.metric-val {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--ember) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.metric-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(232, 35, 26, 0.12);
  border: 1px solid rgba(232, 35, 26, 0.3);
  border-radius: 6px;
  font-weight: 700;
}

/* ================= SYSTEM ARCHITECTURE SECTION ================= */
.architecture-section {
  padding: 8rem 0;
  background-color: var(--night);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.architecture-section .section-head h2 {
  color: #ffffff !important;
}

.architecture-section .section-head p {
  color: #94a3b8 !important;
}

.arch-header {
  margin-bottom: 4rem;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.arch-card {
  position: relative;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}

.arch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.arch-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 35, 26, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.arch-card:hover::before {
  opacity: 1;
}

.arch-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(232, 35, 26, 0.12);
  border: 1px solid rgba(232, 35, 26, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
  margin-bottom: 1.5rem;
}

.arch-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.arch-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.arch-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.arch-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.arch-spec-pill {
  font-family: var(--mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
}

/* ================= FIELD MISSIONS SECTION ================= */
.missions-section {
  padding: 8rem 0;
  background-color: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.missions-section .section-head h2 {
  color: #ffffff !important;
}

.missions-section .section-head p {
  color: #94a3b8 !important;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.mission-card {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.mission-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 35, 26, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.mission-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ember);
  margin-bottom: 1rem;
}

.mission-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.mission-text {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.mission-footer {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #64748b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

/* ================= FAQ ACCORDION SECTION ================= */
.faq-section {
  padding: 8rem 0;
  background-color: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-section .section-head h2 {
  color: #ffffff !important;
}

.faq-section .section-head p {
  color: #94a3b8 !important;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-item.active {
  border-color: rgba(232, 35, 26, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

.faq-button {
  width: 100%;
  padding: 1.6rem 2rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  gap: 1rem;
}

.faq-button:hover {
  color: var(--ember);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--ember);
  color: #ffffff;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s var(--ease);
  padding: 0 2rem;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: 0 2rem 1.6rem;
}

.faq-content p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 1024px) {
  .metrics-grid,
  .arch-grid,
  .missions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid,
  .arch-grid,
  .missions-grid {
    grid-template-columns: 1fr;
  }
  .metric-val {
    font-size: 2.25rem;
  }
  .arch-card {
    padding: 1.75rem;
  }
}

/* ============================================================
   EULERIAN BOTS — AESTHETIC UPGRADE & INTERACTIVE FX SYSTEM
   ============================================================ */

/* ---------- 2. Thermal FLIR Gallery Viewfinder Mode ---------- */
.flir-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.flir-btn {
  background: rgba(20, 19, 17, 0.06);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.flir-btn:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.flir-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Thermal FLIR Filter active on gallery scopes */
.gallery.flir-mode .scope-viewfinder img {
  filter: contrast(1.5) saturate(3) hue-rotate(185deg) invert(0.9) brightness(1.1);
  transition: filter 0.5s ease;
}

.gallery.flir-mode .scope-scanline {
  background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.6), transparent);
}

.gallery.flir-mode .scope-status {
  background: rgba(0, 242, 255, 0.2) !important;
  color: #00f2ff !important;
  border: 1px solid #00f2ff !important;
}

/* ---------- 4. Glowing Card Border Sweep ---------- */
.product-row {
  position: relative;
  overflow: hidden;
}

.product-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  transition: left 0.75s ease;
}

.product-row:hover::before {
  left: 100%;
}

/* ---------- Hero Particle Canvas Overlay ---------- */
#heroParticleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

/* ---------- Product Category Filter Bar ---------- */
.product-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0 3.5rem 0;
}

.product-filter-btn {
  background: rgba(20, 19, 17, 0.05);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.product-filter-btn:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.product-filter-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 4px 15px rgba(20, 19, 17, 0.2);
}

.product-row.filtered-out {
  display: none !important;
}

/* ---------- Slide-Over Quick Spec Sheet Drawer ---------- */
.spec-drawer-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.spec-drawer-trigger:hover {
  background: var(--ember, #e8231a);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(232, 35, 26, 0.5);
  color: #fff;
}

.spec-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spec-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.spec-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(90vw, 420px);
  height: 100vh;
  background: #080c14;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}

.spec-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.drawer-close-btn:hover {
  color: var(--ember, #e8231a);
}

.drawer-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-spec-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.25s ease;
}

.drawer-spec-card:hover {
  border-color: rgba(232, 35, 26, 0.4);
}

.drawer-card-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ember, #e8231a);
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.drawer-spec-card h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.drawer-spec-card p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.drawer-card-link {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.drawer-card-link:hover {
  color: var(--ember-bright, #ff5248);
}

.drawer-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Canvas Hotspots ---------- */
.canvas-hotspot {
  position: absolute;
  z-index: 25;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.hotspot-dot {
  width: 16px;
  height: 16px;
  background: rgba(232, 35, 26, 0.9);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(232, 35, 26, 0.8);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(232, 35, 26, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(232, 35, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 35, 26, 0); }
}

.hotspot-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(13, 16, 23, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.canvas-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

