:root {
  --bg: #0a0b0d;
  --bg-soft: #121418;
  --bg-panel: #171a1f;
  --panel: rgba(22, 24, 28, 0.88);
  --panel-strong: rgba(28, 31, 36, 0.96);
  --text: #f2f3f5;
  --muted: #9aa1ab;
  --muted-2: #6f7782;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  /* Red used sparingly — CTAs and small accents only */
  --brand: #c62828;
  --brand-dark: #8e1b1b;
  --brand-deeper: #3d1212;
  --brand-light: #e25555;
  --brand-soft: #f0a8a8;
  --accent: var(--brand);
  --accent-rgb: 198, 40, 40;
  --brand-glow: rgba(198, 40, 40, 0.22);
  --brand-glow-soft: rgba(198, 40, 40, 0.1);
  /* Cool steel accents for color without flooding red */
  --steel: #7eb6d4;
  --steel-rgb: 126, 182, 212;
  --steel-soft: rgba(126, 182, 212, 0.16);
  --graphite: #2a2e35;
  --silver: #c8ced6;
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-brand: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphatic: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 8% -8%, rgba(126, 182, 212, 0.1), transparent 58%),
    radial-gradient(48% 45% at 95% 0%, rgba(198, 40, 40, 0.06), transparent 52%),
    linear-gradient(180deg, #101216 0%, var(--bg) 42%, #070809 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body > * {
  position: relative;
  z-index: 2;
}

/* Media queries for reduced motion / touch */
@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  body {
    cursor: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

/* ------------------------------------------------------------------
   Custom cursor
------------------------------------------------------------------ */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.25s ease;
}
.cursor__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}
.cursor__ring {
  position: fixed;
  pointer-events: none;
  z-index: 998;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
    background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.cursor__ring.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.55);
}
.cursor.is-hidden,
.cursor__ring.is-hidden {
  opacity: 0;
}
@media (pointer: coarse) {
  .cursor,
  .cursor__ring {
    display: none;
  }
}

/* Global spotlight follows the cursor on dark surfaces */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    260px 260px at var(--sx, 50%) var(--sy, 20%),
    rgba(var(--accent-rgb), 0.16),
    transparent 60%
  );
  mix-blend-mode: screen;
  opacity: 0.75;
  transition: opacity 0.4s ease;
}

/* ------------------------------------------------------------------
   Scroll progress bar + loader
------------------------------------------------------------------ */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-dark));
  z-index: 200;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.55);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #1a0808 0%, #050307 65%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
  overflow: hidden;
}
.page-loader::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.28), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(122, 15, 15, 0.32), transparent 55%);
  filter: blur(30px);
  animation: loaderAmbient 6s ease-in-out infinite;
}
.page-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
  opacity: 0.6;
}

.loader-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 1.4rem;
}

.loader-mark {
  width: 120px;
  height: 120px;
  animation: loaderFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  border-radius: 22px;
  overflow: hidden;
}
.loader-mark-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 22px;
}

.loader-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  letter-spacing: 0.28em;
  font-weight: 900;
  font-size: 1.35rem;
}
.loader-word {
  display: inline-block;
  color: #fff;
  animation: loaderWord 2.2s ease-in-out infinite;
}
.loader-word--accent {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: 0.35s;
}

.page-loader .loader-bar {
  position: relative;
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.page-loader .loader-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--brand-light), var(--brand), transparent);
  animation: loaderBarSlide 1.5s ease-in-out infinite;
  border-radius: inherit;
}

.loader-caption {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loaderAmbient {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.08) rotate(6deg); opacity: 1; }
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes loaderArcSpin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}
@keyframes loaderGlyphPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}
@keyframes loaderShine {
  0% { transform: translateX(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes loaderWord {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
@keyframes loaderBarSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 1rem 0;
  transition: background 0.35s var(--ease-out), padding 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: none;
  border-bottom: 0;
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover {
  transform: translateY(-1px);
}

.site-logo {
  object-fit: contain;
  display: block;
}
.site-logo--brand {
  width: 40px;
  height: 40px;
  max-width: 40px;
  border-radius: 10px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
.has-wordmark-logo .site-logo--brand {
  width: auto;
  height: 40px;
  max-width: 180px;
  border-radius: 0;
}
.has-wordmark-logo .brand-copy {
  display: none;
}
.site-logo--footer {
  width: 40px;
  height: 40px;
  max-width: 40px;
  border-radius: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
}
.brand-lockup em,
#brand-steel {
  font-style: normal;
  font-weight: 700;
  color: #9aa1ab;
}
.brand small {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
@media (min-width: 981px) {
  .site-nav {
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
}
.site-nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(247, 240, 242, 0.78);
  transition: color 0.2s ease;
}
.site-nav a:not(.nav-cta):hover {
  color: #fff;
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff !important;
  box-shadow: 0 12px 28px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.nav-cta svg {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.nav-cta span {
  position: relative;
  z-index: 1;
}
.nav-cta--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.nav-cta--whatsapp:hover {
  filter: brightness(1.05);
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.nav-cta:hover::before {
  transform: translateX(100%);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: none;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.24rem auto;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.06);
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.6s var(--ease-out);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 3, 7, 0.55) 0%, rgba(5, 3, 7, 0.82) 55%, rgba(5, 3, 7, 0.98) 100%),
    radial-gradient(circle at 82% 22%, rgba(var(--accent-rgb), 0.28), transparent 32%),
    radial-gradient(circle at 8% 78%, rgba(142, 0, 0, 0.24), transparent 30%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 72px 72px; }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-orbs span {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero-orbs span:nth-child(1) {
  width: 340px; height: 340px; top: 8%; left: 4%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), transparent 70%);
}
.hero-orbs span:nth-child(2) {
  width: 260px; height: 260px; top: 42%; right: 6%;
  animation-delay: -5s;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.42), transparent 70%);
}
.hero-orbs span:nth-child(3) {
  width: 220px; height: 220px; bottom: 12%; left: 46%;
  animation-delay: -9s;
  background: radial-gradient(circle, rgba(142, 0, 0, 0.4), transparent 70%);
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(20px, -30px, 0) scale(1.08); }
  66% { transform: translate3d(-16px, 18px, 0) scale(0.95); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.85);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.55);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translate3d(0, 20vh, 0); }
  10% { opacity: 0.9; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translate3d(0, -110vh, 0); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 8rem 0 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--silver);
  backdrop-filter: blur(6px);
}
.hero-eyebrow::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--steel);
  box-shadow: 0 0 0 6px var(--steel-soft);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--steel-soft); }
  50% { box-shadow: 0 0 0 10px rgba(126, 182, 212, 0); }
}

.hero h1 {
  margin: 1.4rem 0 0;
  max-width: 16ch;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-highlight {
  background: linear-gradient(120deg, #fff 0%, var(--silver) 45%, var(--steel) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s linear infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.split-line {
  display: block;
  overflow: hidden;
}
.split-word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
  transition: transform 0.9s var(--ease-emphatic);
}
.split-line.is-in .split-word {
  transform: translateY(0);
}

.hero-lead {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  color: rgba(238, 234, 236, 0.82);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  cursor: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 18px 44px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.08);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.62);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.2rem;
}
.hero-stats div {
  position: relative;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.hero-stats div::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.45), transparent 45%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.hero-stats div:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 26px 60px var(--brand-glow-soft);
}
.hero-stats div:hover::before {
  opacity: 1;
}
.hero-stats strong {
  display: block;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 800;
}
.hero-stats span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: none;
}
.scroll-hint i {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, var(--steel), transparent);
  animation: pulseLine 1.8s ease-in-out infinite;
}
@keyframes pulseLine {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ------------------------------------------------------------------
   Marquee ticker
------------------------------------------------------------------ */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(126, 182, 212, 0.08), rgba(42, 46, 53, 0.5), rgba(198, 40, 40, 0.06));
  padding: 1.1rem 0;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8rem;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: tickerMove 26s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: rgba(247, 240, 242, 0.9);
  white-space: nowrap;
}
.ticker-item::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  font-weight: 600;
  color: rgba(247, 240, 242, 0.86);
}
.strip a {
  color: var(--brand-light);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------ */
.section {
  position: relative;
  padding: 7rem 0;
}
.section--light {
  background: #f4f5f7;
  color: #1a1d22;
}
.section--light .section-head h2,
.section--light .section-head h2 span,
.section--light .catalog-detail-title,
.section--light .catalog-item-card h3,
.section--light .catalog-hub-body strong {
  color: #14171c;
}
.section--light .section-head p,
.section--light .catalog-item-card p,
.section--light .catalog-hub-body em,
.section--light .catalog-detail-copy,
.section--light .catalog-breadcrumb {
  color: #5c6570;
}
.section--light .eyebrow {
  color: #8e1b1b;
  border-color: rgba(198, 40, 40, 0.22);
  background: rgba(198, 40, 40, 0.06);
}
.section--light .section-head h2::after,
.section--light .catalog-category-head h2::after {
  background: var(--brand);
}
.section--muted {
  background: #eceef1;
  color: #1a1d22;
}
.section--muted .section-head h2,
.section--muted .section-head h2 span {
  color: #14171c;
}
.section--muted .section-head p {
  color: #5c6570;
}
.section--muted .eyebrow {
  color: #8e1b1b;
  border-color: rgba(198, 40, 40, 0.22);
  background: rgba(198, 40, 40, 0.06);
}
.section-head {
  max-width: 46rem;
  margin-bottom: 3rem;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 700;
}
.section-head h2,
.split-copy h2,
.contact-copy h2,
.media-copy h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.section-head h2::after,
.split-copy h2::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 3px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.section-head p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   Capabilities cards
------------------------------------------------------------------ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.capability-card {
  position: relative;
  padding: 2rem 1.8rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(200px 200px at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.capability-card::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--brand-glow-soft), transparent 70%);
  transition: transform 0.5s var(--ease-out);
}
.capability-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 30px 80px var(--brand-glow-soft);
}
.capability-card:hover::before {
  opacity: 1;
}
.capability-card:hover::after {
  transform: scale(1.2) rotate(10deg);
}
.capability-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #3a404a, #1c2026);
  border: 1px solid rgba(126, 182, 212, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.capability-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}
.capability-card h3 {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.capability-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.capability-card .capability-tag {
  position: relative;
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-light);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

/* ------------------------------------------------------------------
   About
------------------------------------------------------------------ */
.about-shell {
  display: grid;
  gap: 2.4rem;
}
.about-intro h2 {
  margin: 0 0 1.4rem;
  max-width: 18ch;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #14171c;
}
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}
.about-copy {
  display: grid;
  gap: 0.9rem;
}
.about-copy p {
  margin: 0;
  color: #5c6570;
  font-size: 1rem;
  line-height: 1.7;
}
.about-list {
  margin: 0;
  padding: 1.15rem 1.2rem;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20, 24, 30, 0.04);
}
.about-list li {
  position: relative;
  padding-left: 1.45rem;
  color: #3a424c;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--brand);
}
.about-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}
.about-photo-wrap {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #d7dce3;
  border: 1px solid rgba(20, 24, 30, 0.08);
  box-shadow: 0 18px 40px rgba(20, 24, 30, 0.08);
  min-height: 320px;
}
.about-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.about-photo-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.about-photo-caption strong {
  font-weight: 800;
  color: #fff;
}
.about-facts {
  display: grid;
  gap: 0.85rem;
}
.about-fact {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, 0.08);
  box-shadow: 0 10px 28px rgba(20, 24, 30, 0.04);
}
.about-fact span {
  display: block;
  color: var(--brand);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}
.about-fact strong {
  display: block;
  margin: 0.35rem 0 0.3rem;
  color: #14171c;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.about-fact p {
  margin: 0;
  color: #5c6570;
  font-size: 0.86rem;
  line-height: 1.5;
}
.about-milestones {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.about-milestones li {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, 0.08);
}
.about-milestones strong {
  display: block;
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.about-milestones span {
  color: #14171c;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .about-intro-grid,
  .about-showcase,
  .about-milestones {
    grid-template-columns: 1fr;
  }
  .about-intro h2 {
    max-width: none;
  }
}

/* Keep photo-card look: white titles over the dark image gradient */
.section--muted .industry-card,
.section--light .industry-card {
  background: #0b070a;
  border-color: rgba(20, 24, 30, 0.12);
}
.section--muted .industry-card h3,
.section--light .industry-card h3 {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.section--muted .industry-card p,
.section--light .industry-card p {
  color: rgba(247, 240, 242, 0.88);
}

.section--muted .value-card,
.section--light .value-card {
  background: #fff;
  border-color: rgba(20, 24, 30, 0.08);
}
.section--muted .value-card h3,
.section--light .value-card h3 {
  color: #14171c;
}
.section--muted .value-card p,
.section--light .value-card p {
  color: #5c6570;
}

/* ------------------------------------------------------------------
   Products catalog (hub → category → detail)
------------------------------------------------------------------ */
.products-catalog {
  min-height: 20rem;
}
.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.catalog-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}
.catalog-breadcrumb a:hover {
  text-decoration: underline;
}
.catalog-breadcrumb span {
  opacity: 0.45;
}
.catalog-breadcrumb strong {
  color: inherit;
  font-weight: 700;
}
.catalog-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.catalog-hub-card {
  appearance: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 30, 0.06);
  box-shadow: 0 8px 24px rgba(20, 24, 30, 0.05);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.catalog-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 24, 30, 0.1);
}
.catalog-hub-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #d9dee5 center/cover no-repeat;
}
.catalog-hub-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.05rem 1.05rem;
}
.catalog-hub-body strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.catalog-hub-body em {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.68;
}
.catalog-category-head {
  margin-bottom: 1.5rem;
}
.catalog-category-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
}
.catalog-category-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--brand);
}
.catalog-category-head p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.catalog-item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.catalog-item-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, 0.06);
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 0.95rem;
  box-shadow: 0 8px 22px rgba(20, 24, 30, 0.04);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.catalog-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 24, 30, 0.08);
}
.catalog-item-media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: #d7dce3 center/cover no-repeat;
  border: 0;
}
.catalog-item-card h3 {
  margin: 0.15rem 0.95rem 0;
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.catalog-item-card p {
  margin: 0 0.95rem;
  font-size: 0.84rem;
  line-height: 1.5;
  flex: 1;
}
.catalog-detail-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0.15rem 0.95rem 0;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  color: var(--brand);
  cursor: pointer;
}
.catalog-detail-link:hover {
  color: var(--brand-dark);
}
.catalog-detail-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.catalog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.75rem;
  align-items: start;
}
.catalog-detail-media {
  margin: 0;
  border: 1px solid rgba(20, 24, 30, 0.08);
  background: #fff;
  padding: 0.5rem;
  border-radius: 14px;
}
.catalog-detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.catalog-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
}
.catalog-empty {
  margin: 0;
  padding: 1.5rem 0;
  color: #5c6570;
  font-size: 0.95rem;
}
.products .section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.products .section-head {
  margin-bottom: 2rem;
}
.catalog-detail-copy .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Legacy product cards kept for light-theme fallbacks */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 12, 16, 0.92) 0%, rgba(10, 6, 10, 0.96) 100%);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #100810 var(--product-image) center/cover no-repeat;
}
.product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 7, 0) 40%, rgba(5, 3, 7, 0.55) 100%),
    radial-gradient(140% 80% at 100% 100%, rgba(var(--accent-rgb), 0.28), transparent 55%);
  transition: opacity 0.4s var(--ease-out);
}
.product-media-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
.product-media-index {
  position: absolute;
  bottom: 0.75rem;
  right: 0.9rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--brand-soft);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 30px 70px rgba(var(--accent-rgb), 0.18);
}
.product-card:hover .product-media {
  background-size: 108%;
}
.product-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.4rem;
  gap: 0.55rem;
  flex: 1;
}
.product-card h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
}
.product-card p {
  color: rgba(247, 240, 242, 0.72);
  margin: 0;
  line-height: 1.55;
  font-size: 0.9rem;
  flex: 1;
}
.product-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--brand-soft);
  font-size: 0.88rem;
  transition: color 0.25s ease, gap 0.25s var(--ease-out);
}
.product-card a::after {
  content: '→';
  transition: transform 0.25s var(--ease-out);
}
.product-card a:hover {
  color: #fff;
  gap: 0.55rem;
}
.product-card a:hover::after {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Industries — editorial grid with imagery
------------------------------------------------------------------ */
.industries {
  position: relative;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.industry-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: #0b070a;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.industry-card:hover {
  transform: translateY(-10px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 40px 90px rgba(var(--accent-rgb), 0.22);
}
.industry-media {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  transform: scale(1.02);
  transition: transform 1s var(--ease-out), filter 0.5s ease;
  filter: saturate(1.1) contrast(1.05);
}
.industry-card:hover .industry-media {
  transform: scale(1.12);
  filter: saturate(1.25) contrast(1.1);
}
.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 3, 7, 0.15) 0%, rgba(5, 3, 7, 0.4) 40%, rgba(5, 3, 7, 0.94) 92%),
    radial-gradient(120% 60% at 100% 100%, rgba(var(--accent-rgb), 0.35), transparent 55%);
  transition: background 0.4s ease;
}
.industry-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateY(1.2rem);
  transition: transform 0.5s var(--ease-out);
}
.industry-card:hover .industry-body {
  transform: translateY(0);
}
.industry-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.22);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.industry-eyebrow i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--brand-soft);
  box-shadow: 0 0 8px var(--brand-soft);
}
.industry-body h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.industry-body p {
  margin: 0;
  color: rgba(247, 240, 242, 0.78);
  font-size: 0.88rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s ease;
}
.industry-card:hover .industry-body p {
  max-height: 12rem;
  opacity: 1;
}

/* ------------------------------------------------------------------
   Media showcase
------------------------------------------------------------------ */
.media-showcase {
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.media-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}
.media-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.media-points li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(247, 240, 242, 0.82);
  line-height: 1.55;
}
.media-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.media-player {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 30px 80px var(--brand-glow-soft), var(--shadow-md);
  background: #000;
}
.media-player::before {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.6), transparent 60%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}
.media-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
}
.media-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 4;
  box-shadow: 0 22px 55px rgba(198, 40, 40, 0.55), 0 0 0 6px rgba(198, 40, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  animation: mediaPlayPulse 2.4s ease-in-out infinite;
}
.media-play-btn[hidden] {
  display: none !important;
}
.media-play-btn:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.media-play-btn:hover {
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 26px 70px rgba(198, 40, 40, 0.6), 0 0 0 8px rgba(198, 40, 40, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.media-play-btn svg {
  width: 2rem;
  height: 2rem;
  margin-left: 0.15rem;
  display: block;
}
@keyframes mediaPlayPulse {
  0%, 100% {
    box-shadow: 0 22px 55px rgba(198, 40, 40, 0.55), 0 0 0 6px rgba(198, 40, 40, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow: 0 22px 55px rgba(198, 40, 40, 0.55), 0 0 0 14px rgba(198, 40, 40, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}
.media-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(5, 3, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(10px);
  z-index: 3;
}

/* ------------------------------------------------------------------
   Gallery
------------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 4;
  isolation: isolate;
}
.gallery-item.wide { grid-column: span 8; }
.gallery-item.tall { grid-row: span 2; }
.gallery-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease-out), filter 0.5s ease;
  filter: saturate(0.9) contrast(1.02);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.72));
  z-index: 1;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 100% 100%, rgba(var(--accent-rgb), 0.32), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: 1;
}
.gallery-item:hover .gallery-media {
  transform: scale(1.08);
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  z-index: 2;
}
.gallery-item figcaption::before {
  content: '';
  display: block;
  width: 1.6rem;
  height: 2px;
  background: var(--brand-light);
  margin-bottom: 0.55rem;
  border-radius: 999px;
}

/* ------------------------------------------------------------------
   Values
------------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.value-card {
  position: relative;
  padding: 2rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.7;
}
.value-card h3 {
  margin: 0.9rem 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.value-card.hours ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}
.value-card.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.value-card.hours li:last-child { border-bottom: none; }
.value-card.hours li strong {
  color: var(--brand-soft);
}

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------ */
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.75rem;
  align-items: start;
}
.contact-intro h2 {
  margin: 0 0 0.75rem;
  max-width: 16ch;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #14171c;
}
.contact-intro > p {
  margin: 0 0 1.4rem;
  max-width: 34rem;
  color: #5c6570;
  font-size: 1rem;
  line-height: 1.65;
}
.contact-highlights {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.contact-highlights li {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, 0.08);
  box-shadow: 0 8px 22px rgba(20, 24, 30, 0.04);
}
.contact-highlights strong {
  display: block;
  color: #14171c;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.contact-highlights span {
  display: block;
  color: #6b7380;
  font-size: 0.78rem;
  line-height: 1.4;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.contact-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, 0.08);
  box-shadow: 0 8px 22px rgba(20, 24, 30, 0.04);
}
.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.55rem;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
}
.contact-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: #fff;
}
.contact-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}
.contact-card-line {
  color: #14171c;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.contact-card-sub {
  margin: 0;
  color: #5c6570;
  font-size: 0.86rem;
  line-height: 1.45;
}
.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
}
.contact-card-link svg {
  width: 0.8rem;
  height: 0.8rem;
}
.contact-panel {
  display: grid;
  gap: 1.15rem;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, 0.08);
  box-shadow: 0 18px 40px rgba(20, 24, 30, 0.07);
}
.contact-panel-head {
  display: grid;
  gap: 0.4rem;
}
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  color: #128c7e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}
.contact-panel-head strong {
  color: #14171c;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.contact-panel-head p {
  margin: 0;
  color: #5c6570;
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-channel-group {
  display: grid;
  gap: 0.55rem;
}
.contact-channel-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7380;
  font-weight: 800;
}
.contact-channels {
  display: grid;
  gap: 0.55rem;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 24, 30, 0.08);
  background: #f7f8fa;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-row:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: #fff;
}
.contact-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--brand);
  flex-shrink: 0;
}
.contact-row-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.contact-row-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.contact-row-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7380;
  font-weight: 700;
}
.contact-row-value {
  color: #14171c;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}
.contact-row-arrow {
  color: var(--brand);
  font-weight: 700;
}
.contact-row-actions {
  display: inline-flex;
  gap: 0.35rem;
}
.contact-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 30, 0.1);
  background: #fff;
  color: #3a424c;
}
.contact-row-action svg {
  width: 0.95rem;
  height: 0.95rem;
}
.contact-row-action:hover {
  color: var(--brand);
  border-color: rgba(var(--accent-rgb), 0.35);
}
.contact-row-action--whatsapp {
  color: #128c7e;
}
.contact-row-action--whatsapp:hover {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}
.contact-panel-cta {
  width: 100%;
  justify-content: center;
  margin-top: 0.15rem;
  gap: 0.55rem;
}
.contact-panel-cta--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.28) !important;
}

@media (max-width: 900px) {
  .contact-shell,
  .contact-highlights,
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .contact-intro h2 {
    max-width: none;
  }
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: #030204;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.footer-brand p,
.footer-copy {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------
   Reveal animations
------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-emphatic), transform 0.9s var(--ease-emphatic);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-emphatic), transform 0.8s var(--ease-emphatic);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ------------------------------------------------------------------
   Responsive breakpoints
------------------------------------------------------------------ */
@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 4.8rem 1rem auto;
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: rgba(5, 3, 7, 0.96);
    backdrop-filter: blur(20px);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-toggle {
    display: inline-block;
  }
  .capabilities-grid,
  .hero-stats,
  .product-grid,
  .catalog-item-grid,
  .catalog-detail-layout,
  .industries-grid,
  .values-grid,
  .about-split,
  .media-grid,
  .contact-grid,
  .contact-cards,
  .contact-promise,
  .about-visual {
    grid-template-columns: 1fr 1fr;
  }
  /* Keep all product categories on one row on tablet */
  .catalog-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 12;
    grid-row: auto;
    min-height: 240px;
  }
  .about-media {
    position: static;
  }
  .about-card.primary {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .section { padding: 5rem 0; }
  .hero-content { padding: 6.8rem 0 4rem; }
  .capabilities-grid,
  .hero-stats,
  .product-grid,
  .catalog-hub-grid,
  .catalog-item-grid,
  .catalog-detail-layout,
  .industries-grid,
  .values-grid,
  .about-split,
  .media-grid,
  .contact-grid,
  .contact-cards,
  .contact-promise,
  .about-visual {
    grid-template-columns: 1fr;
  }
  .about-card.primary {
    grid-column: span 1;
  }
  .site-nav a { font-size: 1rem; }
  .ticker-item { font-size: 0.95rem; }
  .ticker::before,
  .ticker::after { width: 3rem; }
}

/* ==================================================================
   Theme toggle button — hidden for now (dark mode only)
================================================================== */
.theme-toggle {
  display: none !important;
}
.theme-toggle:hover {
  transform: rotate(18deg);
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 8px 22px var(--brand-glow-soft);
}
.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}
.theme-toggle-sun { display: none; }
html[data-theme='light'] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  color: #17090c;
  border-color: rgba(60, 15, 15, 0.14);
}
html[data-theme='light'] .theme-toggle:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.4);
}
html[data-theme='light'] .theme-toggle-moon { display: none; }
html[data-theme='light'] .theme-toggle-sun { display: inline-block; }

/* ==================================================================
   LIGHT MODE
================================================================== */
html[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f2f2;
  --bg-soft: #ffffff;
  --bg-panel: #ffffff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --text: #17090c;
  --muted: #6f5b5e;
  --muted-2: #907a7d;
  --line: rgba(60, 15, 15, 0.09);
  --line-strong: rgba(60, 15, 15, 0.16);
  --shadow-lg: 0 30px 70px rgba(60, 15, 15, 0.12);
  --shadow-md: 0 20px 45px rgba(60, 15, 15, 0.08);
  --shadow-brand: 0 20px 60px rgba(198, 40, 40, 0.22);
}

html[data-theme='light'] body {
  color: var(--text);
  background: var(--bg);
}
html[data-theme='light'] body::before {
  background:
    radial-gradient(60% 60% at 12% -10%, rgba(198, 40, 40, 0.08), transparent 60%),
    radial-gradient(50% 50% at 92% 5%, rgba(142, 0, 0, 0.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #efe6e6 100%);
}
html[data-theme='light'] body::after {
  opacity: 0.14;
  mix-blend-mode: multiply;
}

/* Custom cursor invert on light bg */
html[data-theme='light'] .cursor__dot { background: #17090c; }
html[data-theme='light'] .cursor__ring { border-color: rgba(23, 9, 12, 0.7); }

/* Loader keeps its own gradient (looks great in both) */

/* Header + navigation */
html[data-theme='light'] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(60, 15, 15, 0.08), 0 1px 0 rgba(198, 40, 40, 0.14);
}
html[data-theme='light'] .site-header.is-scrolled .brand-copy strong { color: var(--text); }
html[data-theme='light'] .site-header.is-scrolled .brand-copy small { color: var(--muted); }
html[data-theme='light'] .site-header.is-scrolled .site-nav a { color: var(--text); }
html[data-theme='light'] .site-header.is-scrolled .site-nav a:hover { color: var(--brand); }
html[data-theme='light'] .site-header.is-scrolled .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  color: #17090c;
  border-color: rgba(60, 15, 15, 0.14);
}
html[data-theme='light'] .site-header.is-scrolled .nav-toggle span { background: var(--text); }

@media (max-width: 980px) {
  html[data-theme='light'] .site-nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(60, 15, 15, 0.12);
    box-shadow: 0 24px 60px rgba(60, 15, 15, 0.14);
  }
  html[data-theme='light'] .site-nav a { color: var(--text); }
}

/* Hero stays cinematic (video background + white text on dark overlay) */

/* Ticker */
html[data-theme='light'] .ticker {
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.06), rgba(122, 15, 15, 0.1), rgba(198, 40, 40, 0.06));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
html[data-theme='light'] .ticker::before {
  background: linear-gradient(90deg, var(--bg), transparent);
}
html[data-theme='light'] .ticker::after {
  background: linear-gradient(-90deg, var(--bg), transparent);
}
html[data-theme='light'] .ticker-item { color: var(--brand-dark); }

/* Strip */
html[data-theme='light'] .strip { color: var(--text); }
html[data-theme='light'] .strip a { color: var(--brand); }

/* Section eyebrows / headings */
html[data-theme='light'] h1,
html[data-theme='light'] h2,
html[data-theme='light'] h3,
html[data-theme='light'] h4,
html[data-theme='light'] .section-head p { color: var(--text); }
html[data-theme='light'] .section-head p:not(:first-of-type) { color: var(--muted); }

/* Capability cards */
html[data-theme='light'] .capability-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9f9 100%);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(60, 15, 15, 0.06);
}
html[data-theme='light'] .capability-card p { color: var(--muted); }
html[data-theme='light'] .capability-card .capability-tag {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
}

/* About */
html[data-theme='light'] .about-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(60, 15, 15, 0.06);
}
html[data-theme='light'] .about-card p { color: var(--muted); }
html[data-theme='light'] .about-list li { color: var(--muted); }
html[data-theme='light'] .about-list li::before { color: var(--brand); }

/* Timeline */
html[data-theme='light'] .timeline-item p { color: var(--muted); }

/* Product cards */
html[data-theme='light'] .product-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbf6f6 100%);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(60, 15, 15, 0.06);
}
html[data-theme='light'] .product-card:hover {
  box-shadow: 0 30px 70px rgba(198, 40, 40, 0.18);
}
html[data-theme='light'] .product-card h3 { color: var(--text); }
html[data-theme='light'] .product-card p { color: var(--muted); }

/* Industries stay dark by design — cinematic photo cards */

/* Media / operations */
html[data-theme='light'] .media-copy p,
html[data-theme='light'] .media-points li { color: var(--muted); }
html[data-theme='light'] .media-points li::before { color: var(--brand); }

/* Gallery captions */
html[data-theme='light'] .gallery-item figcaption {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.9) 100%);
  color: #fff;
}

/* Values */
html[data-theme='light'] .value-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(60, 15, 15, 0.06);
}
html[data-theme='light'] .value-card p,
html[data-theme='light'] .value-card.hours li span { color: var(--muted); }
html[data-theme='light'] .value-card.hours li { border-color: var(--line); }
html[data-theme='light'] .value-card.hours li strong { color: var(--text); }

/* Contact */
html[data-theme='light'] .contact-bg {
  background:
    radial-gradient(50% 60% at 8% 30%, rgba(var(--accent-rgb), 0.08), transparent 65%),
    radial-gradient(60% 70% at 100% 90%, rgba(142, 0, 0, 0.06), transparent 70%);
}
html[data-theme='light'] .contact-bg::before {
  background-image:
    linear-gradient(rgba(60, 15, 15, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 15, 15, 0.06) 1px, transparent 1px);
}
html[data-theme='light'] .contact-promise-item {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 6px 20px rgba(60, 15, 15, 0.04);
}
html[data-theme='light'] .contact-promise-item strong { color: var(--text); }
html[data-theme='light'] .contact-promise-item span { color: var(--muted-2); }
html[data-theme='light'] .contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f7 100%);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(60, 15, 15, 0.06);
}
html[data-theme='light'] .contact-card-line { color: var(--text); }
html[data-theme='light'] .contact-card-sub { color: var(--muted); }

html[data-theme='light'] .contact-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbf3f3 100%);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 40px 80px rgba(60, 15, 15, 0.1), 0 0 0 1px rgba(var(--accent-rgb), 0.06);
}
html[data-theme='light'] .contact-panel::before { opacity: 0.35; }
html[data-theme='light'] .contact-panel-head strong { color: var(--text); }
html[data-theme='light'] .contact-panel-head p { color: var(--muted); }
html[data-theme='light'] .contact-status {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
  color: var(--text);
}
html[data-theme='light'] .contact-channel-label { color: var(--muted-2); }
html[data-theme='light'] .contact-row {
  background: #ffffff;
  border-color: var(--line);
}
html[data-theme='light'] .contact-row:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.35);
}
html[data-theme='light'] .contact-row-label { color: var(--muted-2); }
html[data-theme='light'] .contact-row-value { color: var(--text); }
html[data-theme='light'] .contact-row-action {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}
html[data-theme='light'] .contact-row-action:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--brand);
}
html[data-theme='light'] .contact-row-action--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  color: #128c47;
}
html[data-theme='light'] .contact-row-action--whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: rgba(37, 211, 102, 0.55);
  color: #0e6d38;
}

/* Footer */
html[data-theme='light'] .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
}
html[data-theme='light'] .site-footer::before {
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.7;
}
html[data-theme='light'] .footer-copy,
html[data-theme='light'] .footer-brand p { color: var(--muted); }
html[data-theme='light'] .footer-brand strong { color: var(--text); }

/* Reduce spotlight/particle intensity so they don't wash out the light bg */
html[data-theme='light'] .spotlight { opacity: 0.5; }
html[data-theme='light'] .hero-particles i { background: rgba(255, 255, 255, 0.6); }

/* Ghost button contrast on light bg */
html[data-theme='light'] .btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
}
html[data-theme='light'] .btn-ghost:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--brand);
}

/* ------------------------------------------------------------------
   AI Chatbot Widget
------------------------------------------------------------------ */
.chatbot {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  font-family: inherit;
}
.chatbot[hidden] {
  display: none !important;
}
.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.15rem 0.7rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(20, 12, 16, 0.96), rgba(46, 14, 20, 0.98));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 22px 55px rgba(198, 40, 40, 0.4), 0 0 0 1px rgba(198, 40, 40, 0.25), var(--shadow-md);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.chatbot-launcher::before {
  content: '';
  position: absolute;
  inset: -60% -40%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 100, 100, 0.35) 60deg,
    transparent 120deg,
    transparent 240deg,
    rgba(255, 100, 100, 0.35) 300deg,
    transparent 360deg
  );
  animation: chatbotLauncherHalo 6s linear infinite;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}
@keyframes chatbotLauncherHalo {
  to { transform: rotate(360deg); }
}
.chatbot-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 80px rgba(198, 40, 40, 0.55), 0 0 0 1px rgba(198, 40, 40, 0.4), var(--shadow-lg);
}
.chatbot-launcher-avatar {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(198, 40, 40, 0.7));
  position: relative;
}
.chatbot-launcher-avatar::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35), 0 0 0 4px rgba(20, 12, 16, 0.98);
  animation: chatbotOnlineDot 1.6s ease-in-out infinite;
}
@keyframes chatbotOnlineDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.9); }
}
.chatbot-launcher-avatar svg,
.chatbot-launcher-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.chatbot-launcher-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 0.86rem;
}
.chatbot-launcher-label strong {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.chatbot-launcher-label span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chatbot-launcher-label span::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.chatbot-launcher-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(198, 40, 40, 0.55);
  animation: chatbotPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes chatbotPulse {
  0% { transform: scale(0.96); opacity: 0.9; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ---------- Mode tabs (Text / Avatar) ---------- */
.chatbot-modes {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.chatbot-modes[hidden] { display: none !important; }
.chatbot-mode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  position: relative;
}
.chatbot-mode-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}
.chatbot-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.chatbot-mode-btn.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(198, 40, 40, 0.28), rgba(198, 40, 40, 0.14));
  border-color: rgba(198, 40, 40, 0.55);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.chatbot-mode-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: #22c55e;
  color: #052e13;
  font-style: normal;
  margin-left: 0.15rem;
}

/* Mode panels: only the active one visible */
.chatbot-text-mode,
.chatbot-avatar-mode {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chatbot-avatar-mode { padding-bottom: 0.35rem; }
.chatbot-panel[data-mode='text'] .chatbot-avatar-mode,
.chatbot-panel[data-mode='avatar'] .chatbot-text-mode {
  display: none;
}
.chatbot-avatar-hint {
  margin: 0.35rem 0.9rem 0.6rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.4;
}

.chatbot.open .chatbot-launcher {
  transform: scale(0.9) translateY(4px);
  opacity: 0.9;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.9rem);
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 560px;
  max-height: calc(100vh - 4rem);
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(198, 40, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-origin: bottom right;
  animation: chatbotOpen 0.32s var(--ease-emphatic);
  backdrop-filter: blur(14px);
}
.chatbot-panel[hidden] {
  display: none !important;
}
@keyframes chatbotOpen {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(198, 40, 40, 0.14), transparent);
}
.chatbot-avatar {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chatbot-avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.chatbot-panel-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.chatbot-panel-title strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.chatbot-panel-title span {
  color: var(--muted);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chatbot-live {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}
.chatbot-icon-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
  position: relative;
}
.chatbot-icon-btn:hover {
  background: rgba(198, 40, 40, 0.16);
  color: var(--brand-light);
}
.chatbot-icon-btn[hidden] { display: none !important; }
.chatbot-icon-btn svg { width: 1rem; height: 1rem; }
.chatbot-icon-btn .chatbot-voice-off { display: none; }
.chatbot-icon-btn.is-off .chatbot-voice-on { display: none; }
.chatbot-icon-btn.is-off .chatbot-voice-off { display: block; }
.chatbot-icon-btn.is-on {
  background: rgba(198, 40, 40, 0.16);
  color: var(--brand-light);
  border-color: rgba(198, 40, 40, 0.4);
}

/* Talking-avatar system: glow + breathing + bob + soundwave + ripple */
.chatbot-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.chatbot-avatar-face {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transform-origin: 50% 60%;
  animation: chatbotBreathe 4s ease-in-out infinite;
}
.chatbot-avatar-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(239, 83, 80, 0.55) 0%, rgba(239, 83, 80, 0) 65%);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.chatbot-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 2px solid rgba(198, 40, 40, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.25s ease;
  z-index: 0;
}
.chatbot-avatar-wave {
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  transform: translateX(-50%);
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 0.5rem;
  z-index: 3;
}
.chatbot-avatar-wave i {
  display: block;
  width: 2.5px;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.55);
  animation: chatbotWave 0.9s ease-in-out infinite;
  transform-origin: bottom;
}
.chatbot-avatar-wave i:nth-child(1) { animation-delay: 0s; }
.chatbot-avatar-wave i:nth-child(2) { animation-delay: 0.12s; }
.chatbot-avatar-wave i:nth-child(3) { animation-delay: 0.24s; }
.chatbot-avatar-wave i:nth-child(4) { animation-delay: 0.36s; }
.chatbot-avatar-wave i:nth-child(5) { animation-delay: 0.18s; }

@keyframes chatbotBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.chatbot-avatar.is-speaking .chatbot-avatar-face {
  animation: chatbotSpeakBob 0.6s ease-in-out infinite;
}
.chatbot-avatar.is-speaking .chatbot-avatar-glow { opacity: 1; }
.chatbot-avatar.is-speaking .chatbot-avatar-ring {
  animation: chatbotAvatarPulse 1.3s ease-out infinite;
  opacity: 1;
}
.chatbot-avatar.is-speaking .chatbot-avatar-wave { display: inline-flex; }
.chatbot-avatar.is-beat .chatbot-avatar-face {
  animation: chatbotSpeakBeat 0.28s ease-out;
}

@keyframes chatbotSpeakBob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg) scale(1); }
  50% { transform: translateY(-1.5px) rotate(1.2deg) scale(1.03); }
}
@keyframes chatbotSpeakBeat {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes chatbotAvatarPulse {
  0% { transform: scale(0.9); opacity: 0.75; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes chatbotWave {
  0%, 100% { height: 20%; opacity: 0.6; }
  50% { height: 100%; opacity: 1; }
}

.chatbot-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  animation: chatbotOpen 0.32s var(--ease-emphatic);
}
.chatbot-stage[hidden] { display: none !important; }
.chatbot-stage-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  display: block;
}
.chatbot-stage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  background: radial-gradient(circle at center, rgba(30, 10, 15, 0.9), rgba(0, 0, 0, 0.95));
  transition: opacity 0.35s ease;
}
.chatbot-stage-loading[hidden] { display: none; }
.chatbot-stage-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid rgba(198, 40, 40, 0.25);
  border-top-color: var(--brand-light);
  animation: chatbotSpin 0.9s linear infinite;
}
@keyframes chatbotSpin {
  to { transform: rotate(360deg); }
}
.chatbot-stage-end {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(198, 40, 40, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}
.chatbot-stage-end:hover { transform: scale(1.05); }
.chatbot-stage-end svg { width: 1.1rem; height: 1.1rem; }

/* When LiveAvatar is active, hide the SVG avatar in the header (visually implicit) */
.chatbot-panel[data-liveavatar='on'] .chatbot-avatar-face,
.chatbot-panel[data-liveavatar='on'] .chatbot-avatar-glow,
.chatbot-panel[data-liveavatar='on'] .chatbot-avatar-ring,
.chatbot-panel[data-liveavatar='on'] .chatbot-avatar-wave { display: none; }
.chatbot-panel[data-liveavatar='on'] .chatbot-avatar {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}
.chatbot-panel[data-liveavatar='on'] .chatbot-stage { aspect-ratio: 16 / 9; }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.chatbot-msg {
  max-width: 82%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: chatbotMsgIn 0.28s var(--ease-out);
}
@keyframes chatbotMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot-msg--bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-msg--user {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 12px 30px rgba(198, 40, 40, 0.35);
}
.chatbot-msg--typing {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chatbot-msg--typing i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--muted);
  animation: chatbotDot 1s infinite ease-in-out;
}
.chatbot-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.chatbot-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbotDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.chatbot-owner-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(198, 40, 40, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chatbot-owner-cta:hover { transform: translateY(-1px); }
.chatbot-owner-cta svg { width: 0.95rem; height: 0.95rem; }

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
}
.chatbot-quick button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.chatbot-quick button:hover {
  background: rgba(198, 40, 40, 0.12);
  border-color: rgba(198, 40, 40, 0.4);
  transform: translateY(-1px);
}
.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.chatbot-form input {
  flex: 1;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chatbot-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.22);
}
.chatbot-send,
.chatbot-mic {
  border: none;
  color: #fff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.chatbot-send {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  box-shadow: 0 10px 25px rgba(198, 40, 40, 0.4);
}
.chatbot-mic {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: none;
}
.chatbot-mic[hidden] { display: none !important; }
.chatbot-mic:hover {
  background: rgba(198, 40, 40, 0.12);
  color: var(--brand-light);
  border-color: rgba(198, 40, 40, 0.4);
}
.chatbot-mic.is-listening {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(198, 40, 40, 0.4);
}
.chatbot-mic-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid rgba(198, 40, 40, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}
.chatbot-mic.is-listening .chatbot-mic-pulse {
  animation: chatbotMicPulse 1.3s ease-out infinite;
  opacity: 1;
}
@keyframes chatbotMicPulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.chatbot-send:hover { transform: translateY(-1px); }
.chatbot-send:disabled { opacity: 0.6; cursor: not-allowed; }
.chatbot-send svg,
.chatbot-mic svg { width: 1.1rem; height: 1.1rem; }

.chatbot-listen {
  margin: 0;
  padding: 0 1rem 0.5rem;
  font-size: 0.75rem;
  color: var(--brand-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chatbot-listen[hidden] { display: none !important; }
.chatbot-listen-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.25);
  animation: chatbotDot 1s infinite ease-in-out;
}
.chatbot-foot {
  padding: 0 1rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.chatbot-foot a {
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 600;
}
.chatbot-foot a:hover { text-decoration: underline; }

/* Light-mode overrides */
html[data-theme='light'] .chatbot-launcher {
  background: linear-gradient(135deg, #ffffff, #fff3f3);
  color: var(--text);
  border-color: rgba(198, 40, 40, 0.18);
}
html[data-theme='light'] .chatbot-launcher-label span {
  color: var(--muted);
}
html[data-theme='light'] .chatbot-panel {
  background: #ffffff;
  color: var(--text);
}
html[data-theme='light'] .chatbot-msg--bot {
  background: rgba(198, 40, 40, 0.06);
  border-color: rgba(198, 40, 40, 0.14);
}
html[data-theme='light'] .chatbot-form input {
  background: #fff;
  color: var(--text);
}

@media (max-width: 520px) {
  .chatbot { right: 1rem; bottom: 1rem; }
  .chatbot-launcher-label { display: none; }
  .chatbot-launcher { padding: 0.5rem; border-radius: 999px; }
  .chatbot-panel {
    width: calc(100vw - 2rem);
    height: 70vh;
  }
}

/* Nav CTA already coloured — leave alone */
