:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-soft: #0a0a0a;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-2: rgba(255, 255, 255, 0.14);

  /* Picante brand palette */
  --brand: #c31c1e;           /* primario */
  --brand-light: #e63946;     /* highlight / hover */
  --brand-warm: #ff4d1c;      /* naranja cálido de apoyo */
  --brand-deep: #5a0a0d;      /* wine para fondos oscuros */
  --brand-glow: rgba(195, 28, 30, 0.55);

  /* Gradient stops unificados */
  --accent-a: #ff4d1c;        /* warm */
  --accent-b: #c31c1e;        /* primario */
  --accent-c: #e63946;        /* light */
  --accent-d: #8b1315;        /* dark red */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 68px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* =============== Custom cursor =============== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s var(--ease);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    border-color 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
}

.cursor.is-hover .cursor-dot,
.cursor.is-cta .cursor-dot { opacity: 0; }
.cursor.is-hover .cursor-ring {
  width: 60px;
  height: 60px;
  background: #fff;
  border-color: #fff;
}
.cursor.is-cta .cursor-ring {
  width: 78px;
  height: 78px;
  background: #fff;
  border-color: #fff;
}
.cursor.is-hidden { opacity: 0; }

@media (hover: none), (max-width: 900px) {
  .cursor { display: none; }
  * { cursor: auto !important; }
}

@media (hover: hover) and (min-width: 901px) {
  body, a, button { cursor: none; }
}

/* =============== Scroll progress =============== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-warm), var(--brand), var(--brand-deep));
  z-index: 100;
  transition: width 0.08s linear;
}

/* =============== Header =============== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
    border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header.on-dark:not(.scrolled) { color: #fff; }
.site-header.on-dark:not(.scrolled) .menu a { color: rgba(255, 255, 255, 0.7); }
.site-header.on-dark:not(.scrolled) .menu a:hover { color: #fff; }
.site-header.on-dark:not(.scrolled) .menu-cta {
  background: #fff;
  color: #000 !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  position: relative;
  height: 22px;
  width: 72px;
  transition: transform 0.35s var(--ease);
}

.brand:hover { transform: scale(1.03); }

.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.5s var(--ease);
}

.brand-logo--dark { opacity: 0; }
.brand-logo--light { opacity: 1; }

.site-header.scrolled .brand-logo--light { opacity: 0; }
.site-header.scrolled .brand-logo--dark { opacity: 1; }

.site-header:not(.on-dark):not(.scrolled) .brand-logo--light { opacity: 0; }
.site-header:not(.on-dark):not(.scrolled) .brand-logo--dark { opacity: 1; }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(195, 28, 30, 0.5); }
  50% { transform: scale(1.15); box-shadow: 0 0 32px rgba(230, 57, 70, 0.7); }
}

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease-soft);
}

.menu a:hover { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu a:focus-visible,
.btn:focus-visible,
.floating-cta:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.on-dark:not(.scrolled) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background 0.25s var(--ease);
}

.site-header.on-dark:not(.scrolled) .nav-toggle-bar {
  background: #fff;
}

.site-header.nav-open .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 55;
}

.site-header.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: min(360px, 88vw);
  height: calc(100dvh - var(--nav-h));
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 48px -24px rgba(0, 0, 0, 0.18);
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), visibility 0.4s;
  z-index: 58;
  overflow-y: auto;
}

.site-header.nav-open .nav-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer-link {
  display: block;
  padding: 14px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: background 0.2s var(--ease-soft);
}

.nav-drawer-link:hover {
  background: var(--bg-soft);
}

.nav-drawer-cta {
  margin-top: 12px;
  text-align: center;
  background: var(--ink);
  color: #fff !important;
}

.nav-drawer-cta:hover {
  background: #000;
}

body.nav-open {
  overflow: hidden;
}

.menu-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

/* =============== Buttons =============== */
.btn {
  --btn-bg: #1d1d1f;
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  background: var(--btn-bg);
  color: var(--btn-color);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.4s var(--ease);
  will-change: transform;
  border: 1px solid transparent;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 0;
}

.btn:hover::before { opacity: 1; }
.btn > * { position: relative; z-index: 1; }

.btn-label {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.2;
  height: 1.2em;
}

.btn-text {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.5s var(--ease);
}

.btn:hover .btn-text { transform: translateY(-100%); }

.btn-arrow {
  display: inline-flex;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  --btn-bg: #000;
  --btn-color: #fff;
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  --btn-bg: rgba(0, 0, 0, 0.04);
  --btn-color: #1d1d1f;
  border-color: var(--line);
}

.btn-ghost:hover {
  --btn-bg: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.hero .btn-ghost,
.section-dark .btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero .btn-ghost:hover,
.section-dark .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.14); }

.btn-light {
  --btn-bg: #fff;
  --btn-color: #000;
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.45);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.5);
}

/* =============== Hero =============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 64px) 0 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #050505;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Más luz en piel / tonos cálidos; overlay ya da contraste al copy */
  filter: saturate(1.04) contrast(1.04) brightness(0.93);
  transform: scale(1.04);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero.is-ready .hero-video {
  transform: scale(1);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Menos negro en el centro (rostros); oscuro solo arriba/abajo para legibilidad */
  background:
    radial-gradient(
      125% 85% at 50% 42%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.12) 45%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.06) 38%,
      rgba(0, 0, 0, 0.08) 62%,
      rgba(0, 0, 0, 0.52) 100%
    ),
    linear-gradient(
      90deg,
      rgba(195, 28, 30, 0.06) 0%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0) 100%
    );
  pointer-events: none;
}

.hero-video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Viñeta suave: no oscurece el rostro central */
  background: radial-gradient(
    120% 75% at 50% 45%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.22) 85%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero-video-wrap {
    background:
      radial-gradient(60% 70% at 20% 20%, rgba(195, 28, 30, 0.35), transparent 60%),
      radial-gradient(60% 70% at 80% 80%, rgba(255, 90, 70, 0.25), transparent 60%),
      #050505;
  }
}

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

.hero .hero-grain {
  opacity: 0.26;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero .eyebrow,
.section-dark .eyebrow { color: rgba(255, 255, 255, 0.55); }

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 8.6vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}

.hero-title.is-in .line > span { transform: translateY(0%); }
.hero-title.is-in .line:nth-child(1) > span { transition-delay: 0.1s; }
.hero-title.is-in .line:nth-child(2) > span { transition-delay: 0.2s; }
.hero-title.is-in .line:nth-child(3) > span { transition-delay: 0.3s; }

.gradient-text {
  background: linear-gradient(
    120deg,
    var(--brand-warm) 0%,
    var(--brand-light) 35%,
    var(--brand) 65%,
    var(--brand-deep) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 10s ease-in-out infinite;
  display: inline-block;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-marquee {
  position: relative;
  z-index: 2;
  margin-top: 88px;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.01em;
}

.marquee-track .dot { color: var(--brand); opacity: 0.9; }

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

.hero-scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.scroll-line span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { top: -40%; }
  100% { top: 100%; }
}

/* =============== Generic Sections =============== */
.section {
  padding: 160px 0;
  position: relative;
}

.section-cta-inline {
  padding: 40px 0 20px;
}

.inline-cta {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #fff, #f7f7f8);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.inline-cta p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-centered { text-align: center; }
.section-centered .lead { margin-left: auto; margin-right: auto; }

.section-head {
  max-width: 820px;
  margin-bottom: 80px;
}

.section-head-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head-centered .eyebrow { justify-content: center; }

.display {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 700;
}

.display .muted {
  color: var(--ink-faint);
  font-weight: 700;
}

.section-dark .display .muted,
.hero .display .muted { color: rgba(255, 255, 255, 0.38); }

.lead {
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.55;
}

.section-dark .lead { color: rgba(255, 255, 255, 0.62); }

.authority-section {
  padding-top: 60px;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.authority-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
}

.authority-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.authority-card p {
  margin: 0;
  color: var(--ink-soft);
}

.quick-results {
  padding-top: 0;
}

.results-wrap {
  border-radius: 20px;
  padding: 30px;
  background: #111116;
  color: #fff;
  border: 1px solid var(--line-dark);
}

.results-wrap h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.results-wrap ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
}

/* =============== Mask reveal =============== */
.mask-reveal .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.mask-reveal .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}

.mask-reveal.is-in .line > span { transform: translateY(0%); }
.mask-reveal.is-in .line:nth-child(1) > span { transition-delay: 0.05s; }
.mask-reveal.is-in .line:nth-child(2) > span { transition-delay: 0.18s; }
.mask-reveal.is-in .line:nth-child(3) > span { transition-delay: 0.3s; }

/* =============== Reveal =============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-in { opacity: 1; transform: none; }

/* =============== Philosophy =============== */
.philosophy {
  padding: 180px 0;
}

.philosophy .display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  letter-spacing: -0.04em;
}

/* =============== Services - BENTO =============== */
.services-section {
  padding: 160px 0;
  background: #000;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(240px, auto);
  gap: 16px;
}

.bento-item {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: #0d0d0f;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.bento-item::before {
  content: attr(data-num);
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s var(--ease);
}

.bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.06),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.bento-item:hover {
  background: #131316;
  border-color: var(--line-dark-2);
  transform: translateY(-3px);
}

.bento-item:hover::after { opacity: 1; }
.bento-item:hover::before { color: rgba(255, 255, 255, 0.5); }

.bento-item h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.bento-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.55;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  margin-bottom: 8px;
}

.card-icon svg { width: 22px; height: 22px; }

.card-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.card-icon-lg svg { width: 28px; height: 28px; }

.card-list {
  margin: 16px 0 0;
  padding: 16px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line-dark);
}

.card-list li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.bento-feature .card-list li {
  background: rgba(195, 28, 30, 0.18);
  border-color: rgba(230, 57, 70, 0.3);
  color: #fff;
}

/* AI Feature tile - spans 2 cols, 2 rows */
.bento-feature {
  grid-column: span 2;
  grid-row: span 2;
  padding: 48px;
  background: linear-gradient(160deg, #0a0608 0%, #140608 50%, #1a0608 100%);
  border-color: rgba(195, 28, 30, 0.32);
  min-height: 520px;
}

.bento-feature-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px circle at 20% 20%, rgba(255, 77, 28, 0.3), transparent 55%),
    radial-gradient(600px circle at 85% 85%, rgba(195, 28, 30, 0.32), transparent 60%),
    radial-gradient(400px circle at 50% 50%, rgba(230, 57, 70, 0.14), transparent 60%);
  filter: blur(10px);
  animation: featureAurora 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes featureAurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

.bento-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 14px;
}

.bento-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05;
  margin-top: 12px !important;
}

.bento-desc {
  font-size: 1.05rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 46ch;
}

.bento-feature .card-list { margin-top: auto; }

.card-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 8px var(--brand-light);
  animation: pulseDot 2s ease-in-out infinite;
}

.bento-wide { grid-column: span 2; }

/* =============== Split / Stats =============== */
.split-section { padding: 160px 0; background: var(--bg); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.stat {
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  background: #ebecef;
}

.stat-num {
  margin: 0 0 6px;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s var(--ease-soft), text-shadow 0.35s var(--ease-soft);
}

.stat--counting .stat-num {
  color: var(--ink);
  text-shadow: 0 0 28px rgba(195, 28, 30, 0.12);
}

.stat-count-done .stat-num {
  color: var(--ink);
  animation: statFinish 0.85s var(--ease-out) forwards;
}

@keyframes statFinish {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.06);
    filter: brightness(1.05);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.stat-num .suffix {
  color: var(--brand);
  margin-left: 2px;
}

.stat-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* =============== Process =============== */
.process-section {
  padding: 180px 0;
  background: #000;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 40px;
}

.process-rail {
  position: relative;
  width: 2px;
  justify-self: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.process-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--brand-warm), var(--brand), var(--brand-deep));
  border-radius: 2px;
  transition: height 0.15s linear;
  box-shadow: 0 0 16px var(--brand-glow);
}

.steps {
  display: grid;
  gap: 24px;
}

.step {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #0d0d0f;
  border: 1px solid var(--line-dark);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.step:hover {
  transform: translateX(6px);
  background: #131316;
  border-color: var(--line-dark-2);
}

.step-num {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.55;
}

/* =============== Clients showcase =============== */
.clients-section {
  padding: 160px 0 180px;
  background:
    radial-gradient(80% 50% at 50% -8%, rgba(195, 28, 30, 0.1), transparent 70%),
    #050505;
}

.clients-section .display .muted {
  color: rgba(255, 255, 255, 0.48);
}

.clients-section .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.clients-showcase {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.client-logo-card {
  min-height: 128px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #0d0d10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.client-logo-card::after {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 120%;
  background: radial-gradient(circle at 50% 0%, rgba(230, 57, 70, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.client-logo-card::before {
  content: attr(data-client-note);
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.68);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  text-align: center;
}

.client-logo-card img {
  width: min(154px, 100%);
  max-height: 48px;
  height: auto;
  object-fit: contain;
  object-position: center;
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.client-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px -26px rgba(230, 57, 70, 0.65);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #111116;
}

.client-logo-card:hover::after {
  opacity: 1;
}

.client-logo-card:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.client-logo-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.faq-section {
  padding-top: 40px;
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fafafb;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.qualifier-copy {
  margin-top: 18px;
}

.qualifier-copy p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.contact-mini-form {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.contact-mini-form label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-mini-form input,
.contact-mini-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
}

.contact-mini-form button {
  justify-self: start;
}

.calendar-scheduling-wrap {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.calendar-scheduling-wrap p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.cta-path-hint {
  margin: 18px auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.contact-channels {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-channels-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.contact-channel-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-channel-link:hover {
  color: rgba(255, 255, 255, 0.88);
}

.contact-channels-sep {
  opacity: 0.45;
}

.form-success {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.form-success-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.form-success-copy {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-success-pre {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow: auto;
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.form-success-reset {
  margin-top: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

.form-success-reset:hover {
  color: rgba(255, 255, 255, 0.85);
}

.cases-section {
  padding-top: 100px;
  background: var(--bg-soft);
}

.cases-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.12);
}

.case-metric {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.case-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.case-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(120deg, #25d366, #128c7e);
  box-shadow: 0 18px 35px -18px rgba(18, 140, 126, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -18px rgba(18, 140, 126, 0.92);
}

/* =============== CTA final =============== */
.cta-section { padding: 80px 0 180px; background: var(--bg); }

.cta-card {
  padding: clamp(64px, 8vw, 120px) clamp(28px, 6vw, 90px);
  border-radius: 40px;
  background: linear-gradient(
    140deg,
    #000 0%,
    #140609 35%,
    #2a080a 70%,
    #3a0a0c 100%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 50px 130px -40px rgba(195, 28, 30, 0.4);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
}

.cta-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(600px circle at 20% 25%, rgba(255, 77, 28, 0.3), transparent 50%),
    radial-gradient(500px circle at 82% 78%, rgba(195, 28, 30, 0.32), transparent 55%),
    radial-gradient(400px circle at 50% 50%, rgba(230, 57, 70, 0.14), transparent 55%);
  filter: blur(10px);
  animation: featureAurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta-card > *:not(.cta-glow) { position: relative; z-index: 1; }

.cta-card .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  justify-content: center;
}

.cta-card .display { color: #fff; }

.cta-card .lead {
  color: rgba(255, 255, 255, 0.7);
  margin-left: auto;
  margin-right: auto;
}

.cta-card .hero-actions {
  justify-content: center;
  margin-top: 40px;
}

/* =============== Footer =============== */
.site-footer {
  padding: 90px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-hero {
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  display: block;
  width: min(420px, 62%);
  height: auto;
  object-fit: contain;
  margin: 0;
  transition: transform 0.6s var(--ease);
}

.footer-logo:hover { transform: scale(1.02); }

.footer-hero p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.footer-col a,
.footer-col span {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease-soft);
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* =============== Responsive =============== */
@media (max-width: 1000px) {
  .split {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .stats { grid-template-columns: 1fr 1fr 1fr; }

  .process-grid {
    grid-template-columns: 30px 1fr;
    gap: 20px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }

  .bento-feature {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 420px;
  }

  .bento-wide { grid-column: span 2; }

  .authority-grid {
    grid-template-columns: 1fr;
  }

  .clients-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .menu--desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    z-index: 70;
  }
}

@media (max-width: 720px) {
  .section { padding: 100px 0; }
  .philosophy, .services-section, .process-section, .split-section, .clients-section { padding: 100px 0; }

  .hero { padding: calc(var(--nav-h) + 40px) 0 60px; }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-item, .bento-feature, .bento-wide {
    grid-column: span 1;
    grid-row: auto;
    min-height: 260px;
    padding: 28px;
  }

  .bento-feature { min-height: 380px; padding: 32px; }

  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .clients-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 52px;
  }

  .client-logo-card {
    min-height: 104px;
    padding: 22px 16px;
  }

  .client-logo-card img {
    width: min(132px, 100%);
    max-height: 34px;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .form-success-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-success-actions .btn {
    justify-content: center;
  }

  .step { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .mask-reveal .line > span, .hero-title .line > span {
    opacity: 1 !important;
    transform: none !important;
  }
}
