/* ========== FONTS (Display) ========== */
@font-face{
  font-family: "Clash Display";
  src: url("./assets/fonts/ClashDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Clash Display";
  src: url("./assets/fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Nohemi";
  src: url("./assets/fonts/Nohemi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Nohemi";
  src: url("./assets/fonts/Nohemi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Nohemi";
  src: url("./assets/fonts/Nohemi-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ========== THEME ========== */
:root{
  --bg: #0b0b0b;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.74);
  --v2-accent: #f4b366;
  --v2-accent-soft: rgba(244,179,102,.18);

  /* warm + retro-ish */
  --warm-1: rgba(255, 172, 120, .28);
  --warm-2: rgba(255, 108, 88, .20);
  --warm-3: rgba(255, 220, 160, .18);

  --glass: rgba(20, 20, 20, .28);
  --glass-2: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --glow-yellow: rgba(255, 209, 102, .45);
  --glow-orange: rgba(255, 159, 28, .45);
  --glow-red: rgba(255, 93, 93, .45);

  --ui-font: "Nohemi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  --display-font: "Clash Display", var(--ui-font);
}

*{ box-sizing: border-box; }
html, body{
  height: 100%;
  overflow-x: hidden; /* evita scroll lateral en móvil */
}
/* Evita scroll lateral causado por blobs del hero */
.hero {
  overflow-x: clip;
}
@supports not (overflow: clip){
  .hero { overflow-x: hidden; }
}

/* ✅ NO poner overflow-x hidden aquí si quieres backdrop-filter estable */
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui-font);

  /* ✅ evita scroll lateral sin cargarte el blur */
  overflow-x: clip;
}

/* fallback si el navegador no soporta overflow-x: clip */
@supports not (overflow: clip){
  body{ overflow-x: hidden; }
}

a{ color: inherit; }

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== HEADER ========== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  overflow: visible;

  /* transiciones */
  transition: border-color .18s ease, box-shadow .18s ease;
}

/* ✅ Blur robusto: lo hacemos con un pseudo-elemento */
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.25);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, backdrop-filter .18s ease, -webkit-backdrop-filter .18s ease, box-shadow .18s ease;
  pointer-events: none;
}

/* estado con blur */
.site-header--scrolled::before{
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* Asegura que el contenido quede por encima del pseudo-elemento */
.site-header__inner{
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.brand{
  display: inline-flex;
  align-items: center;
}

.brand img{
  height: 80px; /* layout */
  width: auto;
  display: block;

  transform: scale(1.35);
  transform-origin: left center;
}

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a{
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,.88);
  position: relative;
}

.nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.7), rgba(255,255,255,.0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav a:hover{ color: white; }
.nav a:hover::after{ transform: scaleX(1); }

.nav__cta{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__cta:hover{ background: rgba(255,255,255,.16); }

.menu-btn{
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: white;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1;
}

.menu-btn__label{
  position: relative;
  top: -1px;
}

.menu-btn:hover{ background: rgba(255,255,255,.16); }

/* Mobile nav dropdown */
@media (max-width: 800px){
  .menu-btn{ display: inline-flex; }

  .nav{
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(360px, 92vw);
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    text-align: center;

    background: rgba(20, 20, 20, .35);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .site-header.site-header--menu-open .nav{ display: flex; }

  .brand img{
    height: 60px;
    transform: scale(1.25);
    transform-origin: left center;
  }

  .nav__cta{
    text-align: center;
    display: inline-flex;
    justify-content: center;
  }
}

/* ========== HERO ========== */
.hero{
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 16px 90px;
  position: relative;
  overflow: hidden;

  background-image:
    radial-gradient(900px 420px at 50% 15%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.62));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.hero__bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(0, calc(var(--scrollY, 0px) * -0.06), 0);
  transition: transform .4s ease;
}

.hero__inner{
  width: min(980px, 92vw);
  position: relative;
  z-index: 2;
}

.hero__fade{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11,11,11,0) 0%,
    rgba(11,11,11,.48) 50%,
    rgba(11,11,11,.86) 82%,
    var(--bg) 100%
  );
}

/* blobs */
.blob{
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .75;
  mix-blend-mode: screen;
  transform: translateZ(0);
  animation: floaty 10s ease-in-out infinite;
}

.blob--a{
  left: -120px;
  top: 80px;
  background: radial-gradient(circle at 30% 30%, var(--warm-3), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--warm-1), transparent 55%);
}

.blob--b{
  right: -140px;
  bottom: 80px;
  background: radial-gradient(circle at 30% 30%, var(--warm-2), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--warm-3), transparent 55%);
  animation-duration: 12s;
  animation-delay: -2s;
}
@media (max-width: 900px){
  .blob--a{ left: -220px; }
  .blob--b{ right: -240px; }
}
.noise{
  position: absolute;
  inset: 0;
  opacity: .04;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 28%);
  background-size: 280px 280px;
  mix-blend-mode: soft-light;
}

@keyframes floaty{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-14px,0) scale(1.03); }
}

/* badge */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  color: rgba(255,255,255,.85);
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.badge--soft{
  background: rgba(255,255,255,.06);
}

.badge__dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}

/* shimmer */
.badge::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 40%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(to right, transparent, rgba(255,255,255,.14), transparent);
  animation: shimmer 3.6s ease-in-out infinite;
  opacity: .7;
}

@keyframes shimmer{
  0%{ transform: translateX(-140%) rotate(18deg); }
  100%{ transform: translateX(360%) rotate(18deg); }
}

.hero__title{
  margin: 16px 0 14px;
  font-family: var(--display-font);
  font-size: clamp(44px, 5.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.hero__title span{ display: block; }
.hero__title span:first-child{ font-weight: 400; }
.hero__title span:last-child{ font-weight: 500; }

.hero__subtitle{
  margin: 0 auto 26px;
  width: min(740px, 92vw);
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero__actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: white;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 40%;
  height: 180%;
  transform: rotate(18deg) translateX(-140%);
  background: linear-gradient(to right, transparent, rgba(255,255,255,.24), transparent);
  opacity: .6;
  pointer-events: none;
  transition: transform 1.1s ease;
}

.btn:hover{
  background: rgba(255,255,255,.20);
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0,0,0,.35);
}

.btn:hover::after{
  transform: rotate(18deg) translateX(320%);
}

.btn--ghost{
  background: rgba(0,0,0,.20);
}

.btn--primary{
  border-color: rgba(255,255,255,.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.10));
}

/* ========== SECTIONS ========== */
.section{
  padding: 74px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.section--alt{
  background: transparent;
}

.section::before{
  content: none;
}


.section__head{
  text-align: center;
  margin-bottom: 20px;
}

.section__title{
  margin: 14px 0 10px;
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
}

.section__lead{
  margin: 0 auto;
  width: min(720px, 92vw);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  font-size: 16px;
}

/* ========== APPROACH ========== */
.section--approach .section__head{
  margin-bottom: 4px;
}

.section--approach{
  padding-bottom: 0;
  overflow: visible;
}

.approach-title{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .28em;
  flex-wrap: wrap;
}

.approach-title__word{
  display: inline-block;
  will-change: transform, opacity, filter;
}

.section--desk-break{
  width: 100%;
  padding: 0;
  margin-top: -72px;
  margin-bottom: -24px;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.system-visual{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw - 8px, 1760px);
  height: clamp(380px, 46vw, 76vh);
  margin: 0 auto;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.system-visual__backdrop{
  display: none;
}

.system-sequence{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
}

.section__lead--approach{
  margin-top: 10px;
  margin-bottom: 0;
  width: min(980px, 88vw);
  text-align: center;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.48;
}

.approach-card{
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.22);
}

.approach-card h3{
  margin: 0;
  font: 600 clamp(28px, 2.4vw, 38px)/1.08 var(--display-font);
  letter-spacing: -0.01em;
}

.approach-card p{
  margin: 12px 0 0;
  color: rgba(255,255,255,.84);
  line-height: 1.7;
}

.approach-stage{
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 540px;
  margin-top: -8px;
  overflow: hidden;
  isolation: isolate;
}

.approach-stage__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(1.04) brightness(.8);
}

.approach-stage__fade{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11,11,11,.25) 14%, rgba(11,11,11,.2) 80%, var(--bg) 100%),
    radial-gradient(700px 220px at 50% 0%, rgba(255,183,77,.1), transparent 68%);
}

.approach-card--glass{
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 32px));
  margin: 80px auto;
  padding: 28px 30px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.08) 45%, rgba(255,255,255,.05)),
    rgba(18,20,26,.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(255,255,255,.1),
    0 24px 58px rgba(0,0,0,.42),
    0 0 40px rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.approach-card--glass::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px 120px at 15% 0%, rgba(255,255,255,.18), transparent 70%);
}

.approach-card--glass .approach-card__content{
  position: relative;
  z-index: 1;
}

.approach-card__content h3{
  margin-top: 0;
}

.approach-card__content p{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}

/* ========== IMPACT STAGE ========== */
.impact-stage{
  position: relative;
  width: 100%;
  min-height: 620px;
  margin-top: -130px;
  padding-top: 150px;
  overflow: visible;
  isolation: isolate;
  background: #0b0b0b;
}

#process .section__head{
  position: relative;
  z-index: 3;
}

.impact-stage__image{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  background: #0b0b0b url("./assets/hero.webp") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05) brightness(.72);
  pointer-events: none;
}

.impact-stage__fade{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,11,11,.98) 0%, rgba(11,11,11,.72) 14%, rgba(11,11,11,.44) 30%, rgba(11,11,11,.4) 50%, rgba(11,11,11,.46) 70%, rgba(11,11,11,.76) 86%, rgba(11,11,11,.98) 100%),
    radial-gradient(760px 300px at 50% -5%, rgba(255,183,77,.14), transparent 70%),
    radial-gradient(760px 300px at 50% 105%, rgba(77,179,255,.09), transparent 70%);
  pointer-events: none;
}

.impact-stage::before,
.impact-stage::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 92px;
  z-index: 2;
  pointer-events: none;
}

.impact-stage::before{
  top: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,11,0) 100%);
}

.impact-stage::after{
  bottom: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(11,11,11,0) 100%);
}

.impact-cards{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.impact-card{
  --impact-glow: rgba(255,255,255,.22);
  min-height: 352px;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  background:
    linear-gradient(165deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.08) 35%, rgba(255,255,255,.04) 100%),
    rgba(8,10,14,.54);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(255,255,255,.06),
    0 22px 42px rgba(0,0,0,.34);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  transform: translateY(0) scale(1);
  transition:
    transform .65s cubic-bezier(.16,.84,.24,1),
    box-shadow .65s cubic-bezier(.16,.84,.24,1),
    border-color .65s cubic-bezier(.16,.84,.24,1),
    background .65s cubic-bezier(.16,.84,.24,1);
}

.impact-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(255,255,255,.2), transparent 70%),
    radial-gradient(520px 220px at 30% 120%, rgba(255,255,255,.06), transparent 72%);
  opacity: .36;
  transition: opacity .6s ease;
}

.impact-card:hover{
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(255,255,255,.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(255,255,255,.08),
    0 34px 70px rgba(0,0,0,.48),
    0 0 42px -14px var(--impact-glow);
}

.impact-card:hover::before{
  opacity: .72;
}

.impact-card__icon{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 10px 24px rgba(0,0,0,.36);
  transition: transform .6s cubic-bezier(.16,.84,.24,1), box-shadow .6s cubic-bezier(.16,.84,.24,1);
}

.impact-card__icon::before{
  content: "";
  width: 30px;
  height: 30px;
  display: block;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.impact-card__icon svg{
  width: 24px;
  height: 24px;
  stroke: rgba(255,255,255,.96);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact-card__icon img{
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.impact-card--trust .impact-card__icon{
  border-color: rgba(255,208,87,.42);
  background: linear-gradient(160deg, rgba(255,208,87,.3), rgba(255,208,87,.08));
  color: #ffd86d;
}

.impact-card--trust .impact-card__icon::before{
  -webkit-mask-image: url("./assets/shield.svg");
  mask-image: url("./assets/shield.svg");
}
.impact-card--trust{ --impact-glow: rgba(255,208,87,.34); }

.impact-card--trust .impact-card__icon svg{
  stroke: #ffd86d;
}

.impact-card--systems .impact-card__icon{
  border-color: rgba(110,191,255,.42);
  background: linear-gradient(160deg, rgba(110,191,255,.28), rgba(110,191,255,.08));
  color: #8fd0ff;
}

.impact-card--systems .impact-card__icon::before{
  -webkit-mask-image: url("./assets/system.svg");
  mask-image: url("./assets/system.svg");
}
.impact-card--systems{ --impact-glow: rgba(110,191,255,.34); }

.impact-card--systems .impact-card__icon svg{
  stroke: #8fd0ff;
}

.impact-card--hybrid .impact-card__icon{
  border-color: rgba(255,141,117,.4);
  background: linear-gradient(160deg, rgba(255,141,117,.26), rgba(255,141,117,.08));
  color: #ff9f8a;
}

.impact-card--hybrid .impact-card__icon::before{
  -webkit-mask-image: url("./assets/wand.svg");
  mask-image: url("./assets/wand.svg");
}
.impact-card--hybrid{ --impact-glow: rgba(255,141,117,.34); }

.impact-card--hybrid .impact-card__icon svg{
  stroke: #ff9f8a;
}

.impact-card p{
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,.9);
}

.impact-card:hover .impact-card__icon{
  transform: translateY(-2px) scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 30px rgba(0,0,0,.42);
}

/* grids */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

/* Services layout */
#services .services-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.15fr);
  grid-template-rows: minmax(195px, auto) minmax(320px, auto);
  grid-template-areas:
    "rag rag agents"
    "automation content content";
  gap: 16px;
  margin-top: 28px;
}

#services .service-module{
  --accent: rgba(255,255,255,.55);
  --icon: url("./assets/system.svg");
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,10,14,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(255,255,255,.06),
    0 24px 58px rgba(0,0,0,.35);
  transition: transform .45s ease, border-color .45s ease, box-shadow .45s ease, filter .45s ease;
}

#services .service-module::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.14) 42%, transparent 62%);
  transform: translateX(-125%);
  opacity: .0;
  transition: transform .8s cubic-bezier(.16,.84,.24,1), opacity .35s ease;
}

#services .service-module__bg,
#services .service-module__overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#services .service-module__bg{
  background-size: cover;
  background-position: center;
  transform: scale(1);
  filter: saturate(1.06) contrast(1.03) brightness(1);
  transition: transform .55s ease, filter .55s ease;
}

#services .service-module__overlay{
  background:
    linear-gradient(180deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.26) 36%, rgba(8,10,14,.44) 100%),
    radial-gradient(420px 160px at 0% 0%, rgba(255,255,255,.2), transparent 58%);
  transition: background .55s ease;
}

#services .service-module__content{
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#services .service-module__top{
  display: grid;
  gap: 10px;
}

#services .service-module__badge{
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, #ffffff22);
  background: color-mix(in srgb, var(--accent) 16%, #0f1118);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px rgba(0,0,0,.35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

#services .service-module__badge-icon{
  width: 14px;
  height: 14px;
  background-color: #fff;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

#services .service-module h3{
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(0,0,0,.45);
}

#services .service-module p{
  margin: 0;
  margin-top: auto;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  font-size: 16px;
  max-width: 60ch;
}

#services .service-module__text{
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(6,8,12,.36), rgba(6,8,12,.62));
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
}

#services .service-module:hover{
  transform: scale(1.015);
  border-color: rgba(255,255,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(255,255,255,.08),
    0 34px 78px rgba(0,0,0,.52),
    0 0 44px -16px var(--accent);
}

#services .service-module:hover::after{
  transform: translateX(125%);
  opacity: .65;
}

#services .service-module:hover .service-module__bg{
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.04) brightness(.74) blur(2px);
}

#services .service-module:hover .service-module__overlay{
  background:
    linear-gradient(180deg, rgba(0,0,0,.64), rgba(8,10,14,.7)),
    radial-gradient(420px 180px at 0% 0%, rgba(255,255,255,.08), transparent 58%);
}

#services .service-module--rag{ grid-area: rag; }
#services .service-module--agents{ grid-area: agents; }
#services .service-module--automation{ grid-area: automation; }
#services .service-module--content{ grid-area: content; }

#services .service-module--rag{
  --accent: #ffd86d;
  --icon: url("./assets/system.svg");
}

#services .service-module--agents{
  --accent: #8fd0ff;
  --icon: url("./assets/agente.svg");
}

#services .service-module--automation{
  --accent: #ffb874;
  --icon: url("./assets/flujo.svg");
}

#services .service-module--content{
  --accent: #ff9f8a;
  --icon: url("./assets/contenido.svg");
}

#services .service-module--rag .service-module__bg{
  background-image: url("./assets/Potenci%C3%B3metro.webp");
}

#services .service-module--agents .service-module__bg{
  background-image: url("./assets/Monitor.webp");
}

#services .service-module--automation .service-module__bg{
  background-image: url("./assets/Cron%C3%B3metro.webp");
}

#services .service-module--content .service-module__bg{
  background-image: url("./assets/Contenido.webp");
}

@media (max-width: 980px){
  #services .services-grid{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "rag"
      "agents"
      "automation"
      "content";
  }
}

@media (max-width: 700px){
  #services .service-module{
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  #services .service-module p{
    font-size: 15px;
    line-height: 1.6;
  }
}

.methodology-dots{
  display: none;
}

/* cards */
.card, .tile{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card::before, .tile::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 0% 0%, rgba(255,255,255,.18), transparent 60%);
  opacity: .45;
  pointer-events: none;
}

.card:hover, .tile:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
}

.card h3, .tile h3{
  margin: 10px 0 8px;
  font-size: 18px;
}

.card p{
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.7;
}

.card__media{
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}

.card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .6s ease;
}

.card:hover .card__media img{
  transform: scale(1.06);
}

/* tiles lists */
.tile ul{
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
}

.tile li{
  position: relative;
  padding-left: 16px;
  margin: 6px 0;
}

.tile li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 4px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 213, 138, .95), rgba(255, 138, 71, .92));
  box-shadow: 0 0 14px rgba(255,159,28,.35);
}

.section__cta{
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

/* steps (Impacto) */
#process .steps{
  margin-top: 30px;
  display: grid;
  gap: 18px;
  position: relative;
}

#process .steps::before{
  content: "";
  position: absolute;
  left: 26px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
}

:is(#process, #methodology) .step{
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  box-shadow:
    0 24px 70px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}

#process .step::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 180px at 0% 0%, rgba(255,255,255,.20), transparent 55%);
  opacity: .45;
  pointer-events: none;
}

#process .step__num{
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 20px;
  color: rgba(0,0,0,.75);
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}

#process .step__body h3{
  margin: 0 0 6px;
  font-size: 19px;
}

#process .step__body p{
  margin: 0;
  color: rgba(255,255,255,.80);
  line-height: 1.7;
}

/* colored cards */
#process .step:nth-child(1){
  background:
    linear-gradient(180deg, rgba(255, 209, 102, .14), rgba(255,255,255,.04)),
    rgba(255,255,255,.04);
  border-color: rgba(255, 209, 102, .35);
}

#process .step:nth-child(1) .step__num{
  background: #ffd166;
}

#process .step:nth-child(2){
  background:
    linear-gradient(180deg, rgba(255, 159, 28, .16), rgba(255,255,255,.04)),
    rgba(255,255,255,.04);
  border-color: rgba(255, 159, 28, .35);
}

#process .step:nth-child(2) .step__num{
  background: #ff9f1c;
}

#process .step:nth-child(3){
  background:
    linear-gradient(180deg, rgba(255, 93, 93, .18), rgba(255,255,255,.04)),
    rgba(255,255,255,.04);
  border-color: rgba(255, 93, 93, .35);
}

#process .step:nth-child(3) .step__num{
  background: #ff5d5d;
}

@media (max-width: 700px){
  #process .steps::before{ left: 22px; }
  #process .step{
    grid-template-columns: 70px 1fr;
    padding: 18px 18px;
  }
  #process .step__num{
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}

/* form */
.form{
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

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

@media (max-width: 700px){
  .form__row{ grid-template-columns: 1fr; }
}

.form label{
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.form span{
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.72);
}

.form input,
.form select,
.form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  font: inherit;
  outline: none;
}

.form input:focus,
.form select:focus,
.form textarea:focus{
  border-color: rgba(255,255,255,.28);
}

.form__hint{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.70);
}

.form__hint a{
  color: rgba(255,255,255,.92);
}

/* CTA final */
.cta{
  padding: 90px 0 110px;
  background: #0b0b0b;
}

.cta__box{
  border-radius: 26px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(255, 220, 160, .12), transparent 55%),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.cta__title{
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.2vw, 42px);
}

.cta__lead{
  margin: 0 auto 18px;
  width: min(680px, 92vw);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

/* footer */
.footer{
  padding: 34px 0 54px;
  border-top: 0;
  background: #0b0b0b;
}

.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.footer__left p{
  margin: 6px 0 0;
  color: rgba(255,255,255,.70);
  max-width: 360px;
  line-height: 1.6;
}

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

.footer__right a{
  text-decoration: none;
  color: rgba(255,255,255,.78);
}

.footer__right a:hover{ color: white; }

@media (max-width: 820px){
  .footer__inner{ flex-direction: column; }
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal{
  opacity: 0;
  transform: translateY(26px) scale(.985);
  filter: blur(6px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
}

.reveal.is-in{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ========== PROCESS (EPIC) ========== */
.steps--process{
  margin-top: 34px;
  display: grid;
  gap: 18px;
  position: relative;
  isolation: isolate;
}

.steps--process::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
  display: none;
}

.steps--process.steps--in::before{
  transform: scaleX(1);
}

/* Focus one card on hover */
.steps--process:hover .step{
  opacity: .42;
  transform: translateY(10px) scale(.965);
  filter: blur(2.4px) saturate(.62) brightness(.78);
}

.steps--process .step{
  --hover-glow: rgba(255,255,255,.22);
  transition:
    opacity .72s cubic-bezier(.16,.84,.24,1),
    transform .72s cubic-bezier(.16,.84,.24,1),
    filter .72s cubic-bezier(.16,.84,.24,1),
    box-shadow .72s cubic-bezier(.16,.84,.24,1),
    border-color .72s cubic-bezier(.16,.84,.24,1);
}

.steps--process .step:nth-child(1){ --hover-glow: rgba(255, 209, 102, .36); }
.steps--process .step:nth-child(2){ --hover-glow: rgba(255, 159, 28, .38); }
.steps--process .step:nth-child(3){ --hover-glow: rgba(255, 93, 93, .38); }

.steps--process:hover .step:hover{
  opacity: 1;
  transform: translateY(-14px) scale(1.045);
  filter: blur(0) saturate(1.14) brightness(1.08);
  border-color: rgba(255,255,255,.38);
  box-shadow:
    0 44px 96px rgba(0,0,0,.52),
    0 0 44px -10px var(--hover-glow),
    0 0 0 1px rgba(255,255,255,.10) inset;
}

.steps--process:hover .step:hover::before{
  opacity: .9;
}

@media (prefers-reduced-motion: reduce){
  .steps--process:hover .step{
    opacity: 1;
    transform: none;
    filter: none;
  }
  .steps--process:hover .step:hover{
    transform: none;
  }
}

:is(#process, #methodology) .step{
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  box-shadow:
    0 30px 80px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  transform: translateY(32px) scale(.98);
  opacity: 0;
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}

:is(#process, #methodology) .step::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 60%),
    radial-gradient(800px 220px at 0% 0%, rgba(255,255,255,.26), transparent 55%),
    radial-gradient(600px 180px at 100% 100%, rgba(255,255,255,.12), transparent 60%);
  opacity: .46;
  pointer-events: none;
  transition: opacity .5s ease;
}

:is(#process, #methodology) .step::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 40%;
  height: 180%;
  transform: rotate(18deg) translateX(-140%);
  background: linear-gradient(to right, transparent, rgba(255,255,255,.18), transparent);
  opacity: .45;
  pointer-events: none;
  transition: transform 1.6s ease;
}

:is(#process, #methodology) .step.is-in{
  opacity: 1;
  transform: translateY(0) scale(1);
}

:is(#process, #methodology) .step.is-in::after{
  transform: rotate(18deg) translateX(360%);
}

:is(#process, #methodology) .step__num{
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 20px;
  color: rgba(0,0,0,.75);
  background: rgba(255,255,255,.95);
  box-shadow: 0 14px 36px rgba(0,0,0,.30);
  position: relative;
  z-index: 1;
}

:is(#process, #methodology) .step__body h3{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

:is(#process, #methodology) .step__body p{
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

/* epic colored cards */
:is(#process, #methodology) .step:nth-child(1){
  background:
    linear-gradient(180deg, rgba(255, 209, 102, .20), rgba(255,255,255,.04)),
    rgba(255,255,255,.04);
  border-color: rgba(255, 209, 102, .40);
}

:is(#process, #methodology) .step:nth-child(1) .step__num{
  background: #ffd166;
}

:is(#process, #methodology) .step:nth-child(2){
  background:
    linear-gradient(180deg, rgba(255, 159, 28, .22), rgba(255,255,255,.04)),
    rgba(255,255,255,.04);
  border-color: rgba(255, 159, 28, .42);
}

:is(#process, #methodology) .step:nth-child(2) .step__num{
  background: #ff9f1c;
}

:is(#process, #methodology) .step:nth-child(3){
  background:
    linear-gradient(180deg, rgba(255, 93, 93, .24), rgba(255,255,255,.04)),
    rgba(255,255,255,.04);
  border-color: rgba(255, 93, 93, .42);
}

:is(#process, #methodology) .step:nth-child(3) .step__num{
  background: #ff5d5d;
}

@media (min-width: 900px){
  .steps--process{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .steps--process::before{
    top: 34px;
  }
  :is(#process, #methodology) .step{
    min-height: 260px;
  }
}

@media (max-width: 980px){
  .approach-stage{
    min-height: 500px;
  }

  .approach-card--glass{
    width: min(92vw, 820px);
    margin: 56px auto;
    padding: 24px 22px;
  }

  #methodology .steps--process{
    --step-index: 0;
    display: flex;
    gap: 14px;
    overflow: hidden;
    overflow-y: visible;
    padding-bottom: 8px;
    touch-action: pan-y;
  }

  #methodology .steps--process .step{
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 260px;
    transform: translateX(calc(var(--step-index) * -100%)) !important;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease !important;
    opacity: 1 !important;
  }
}

@media (max-width: 700px){
  .steps--process::before{ top: 22px; }
  :is(#process, #methodology) .step{
    padding: 20px 20px;
  }
  :is(#process, #methodology) .step__num{
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
}

/* Impact node graph */
.impact-graph{
  --p: 0;
  width: min(920px, 94vw);
  height: 360px;
  margin: 30px auto 0;
  position: relative;
  opacity: .95;
}

.impact-graph__svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.impact-graph__line{
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc((1 - var(--p)) * 100);
  opacity: calc(0.25 + var(--p) * 0.75);
  filter: drop-shadow(0 0 12px rgba(0,0,0,.35));
  transition: opacity .3s ease;
}

.impact-graph__line--a{ --h: 45; stroke: hsl(var(--h) 80% calc(40% + var(--p) * 18%)); }
.impact-graph__line--b{ --h: 30; stroke: hsl(var(--h) 85% calc(38% + var(--p) * 18%)); }
.impact-graph__line--c{ --h: 5;  stroke: hsl(var(--h) 85% calc(38% + var(--p) * 18%)); }

.impact-graph__node{
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px rgba(0,0,0,.45));
  transition: transform .4s ease, box-shadow .4s ease, background .4s ease;
}

.impact-graph__node--a{
  left: 14%;
  top: 20%;
  background: hsl(45 85% calc(42% + var(--p) * 20%));
  box-shadow: 0 0 calc(6px + var(--p) * 12px) var(--glow-yellow);
}

.impact-graph__node--b{
  left: 88%;
  top: 28%;
  background: hsl(30 90% calc(40% + var(--p) * 20%));
  box-shadow: 0 0 calc(6px + var(--p) * 12px) var(--glow-orange);
}

.impact-graph__node--c{
  left: 50%;
  top: 88%;
  background: hsl(3 90% calc(40% + var(--p) * 20%));
  box-shadow: 0 0 calc(6px + var(--p) * 12px) var(--glow-red);
}

.impact-graph__node--core{
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .04em;
  color: rgba(0,0,0,.85);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 12px 36px rgba(0,0,0,.35),
    0 0 calc(8px + var(--p) * 18px) rgba(255,255,255,.35);
}

.impact-graph::before{
  content: "";
  position: absolute;
  inset: -10% -10%;
  background:
    radial-gradient(420px 220px at 50% 50%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(520px 260px at 50% 50%, rgba(255,255,255,.04), transparent 72%);
  opacity: .7;
  pointer-events: none;
}

@media (max-width: 900px){
  .impact-cards{
    grid-template-columns: 1fr;
  }

  .impact-stage{
    min-height: auto;
    margin-top: -90px;
    padding-top: 110px;
  }

  .impact-card{
    min-height: 0;
  }

  .impact-graph{
    width: min(720px, 92vw);
    height: 300px;
  }
  .impact-graph__node--a{ left: 12%; top: 22%; }
  .impact-graph__node--b{ left: 88%; top: 26%; }
  .impact-graph__node--c{ top: 86%; }
  .impact-graph__node--core{ width: 72px; height: 72px; font-size: 16px; }
}

@media (max-width: 700px){
  .section{
    padding: 62px 0;
  }

  .section--desk-break{
    margin-top: -46px;
    margin-bottom: -8px;
  }

  .approach-title{
    gap: .18em;
  }

  .system-visual{
    width: min(100vw - 4px, 100%);
    height: clamp(250px, 70vw, 360px);
    border-radius: 0;
  }

  .section__lead--approach{
    margin-top: 8px;
    width: min(94vw, 760px);
    font-size: 15px;
    line-height: 1.5;
  }

  .methodology-dots{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .methodology-dot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  }

  .methodology-dot.is-active{
    background: rgba(255,255,255,.9);
    transform: scale(1.22);
    box-shadow: 0 0 10px rgba(255,255,255,.35);
  }

  .impact-stage{
    margin-top: -60px;
    padding-top: 78px;
  }

  .impact-cards{
    gap: 14px;
    padding: 16px;
  }

  .impact-card{
    padding: 18px 16px;
    border-radius: 16px;
  }

  .impact-card p{
    font-size: 15px;
  }

  .impact-graph{
    width: min(560px, 92vw);
    height: 260px;
  }
  .impact-graph__node{ width: 16px; height: 16px; }
  .impact-graph__node--a{ left: 10%; top: 22%; }
  .impact-graph__node--b{ left: 90%; top: 28%; }
  .impact-graph__node--c{ top: 84%; }
  .impact-graph__node--core{ width: 64px; height: 64px; font-size: 15px; }
}

.impact-graph--active .impact-graph__node{
  transform: translate(-50%, -50%) scale(1.04);
}

/* Seamless section backgrounds */
.section,
.section--alt,
.cta,
.footer{
  background: transparent !important;
  border-top: 0 !important;
}

.section{
  overflow: visible;
}

.section::before,
.cta::before,
.footer::before{
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Hard fix for 1px seams between stacked sections */
main{
  background:
    radial-gradient(1200px 360px at 20% 22%, rgba(255,255,255,.03), transparent 70%),
    radial-gradient(1200px 360px at 80% 68%, rgba(255,255,255,.02), transparent 72%),
    var(--bg);
}

main > section:not(.hero),
main > footer{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

main > section + section{
  margin-top: -1px;
}

/* ========== V2 OVERRIDES ========== */
.site-header--v2::before{
  background: linear-gradient(180deg, rgba(8,8,8,.88), rgba(8,8,8,.44));
}

.site-header--v2.site-header--scrolled::before{
  background: rgba(10,10,10,.76);
  border-bottom-color: rgba(255,255,255,.08);
}

.site-header--v2 .brand img{
  height: 58px;
  transform: scale(1);
}

.nav--v2{
  gap: 22px;
}

.nav--v2 a{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

.nav__cta--v2{
  padding: 12px 18px;
  border-color: rgba(244,179,102,.28);
  background: linear-gradient(180deg, rgba(244,179,102,.22), rgba(244,179,102,.12));
  color: #fff8ee;
}

.hero--v2{
  min-height: 100svh;
  padding: 28px 16px 20px;
  background-image:
    radial-gradient(640px 260px at 50% 54%, rgba(244,179,102,.04), transparent 62%),
    linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.74));
}

.site-header--v2{
  display: none;
}

.floating-nav{
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 60;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  transform: none;
  pointer-events: none;
}

.floating-nav__menu,
.floating-nav__cta{
  pointer-events: auto;
}

.floating-nav__menu{
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: min(920px, calc(100vw - 172px));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(16,16,16,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 14px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(34px) saturate(1.16) brightness(.86);
  -webkit-backdrop-filter: blur(34px) saturate(1.16) brightness(.86);
  overflow: visible;
}

.floating-nav__brand{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  padding: 5px 9px 5px 8px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.floating-nav__brand img{
  height: 54px;
  width: auto;
  display: block;
}

.floating-nav__links{
  display: flex;
  align-items: center;
  padding: 3px 4px;
  gap: 2px;
  min-width: 0;
}

.floating-nav__item{
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  min-width: 46px;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition:
    transform .9s cubic-bezier(.2,.9,.25,1),
    width .9s cubic-bezier(.2,.9,.25,1),
    padding .9s cubic-bezier(.2,.9,.25,1),
    background .9s cubic-bezier(.2,.9,.25,1),
    color .9s cubic-bezier(.2,.9,.25,1),
    gap .9s cubic-bezier(.2,.9,.25,1);
}

.floating-nav__item:hover,
.floating-nav__item:focus-visible{
  gap: 7px;
  padding: 0 14px 0 10px;
  background: rgba(255,255,255,.06);
  color: #ffffff;
}

.floating-nav__icon{
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .85s cubic-bezier(.2,.9,.25,1), transform .85s cubic-bezier(.2,.9,.25,1), width .85s cubic-bezier(.2,.9,.25,1);
}

.floating-nav__icon svg,
.floating-nav__icon img{
  width: 22px;
  height: 22px;
  display: block;
}

.floating-nav__icon img{
  filter: brightness(0) invert(1);
}

.floating-nav__toggle,
.floating-nav__mobile-dropdown{
  display: none;
}

.floating-nav__label{
  display: inline-block;
  max-width: 0;
  overflow: clip;
  white-space: nowrap;
  opacity: 0;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: none;
  transition:
    max-width .88s cubic-bezier(.2,.9,.25,1),
    opacity .88s cubic-bezier(.2,.9,.25,1);
}

.floating-nav__item:hover .floating-nav__icon,
.floating-nav__item:focus-visible .floating-nav__icon{
  width: 0;
  opacity: 0;
  transform: scale(.9);
}

.floating-nav__item:hover .floating-nav__label,
.floating-nav__item:focus-visible .floating-nav__label{
  max-width: 170px;
  opacity: 1;
  text-shadow: none;
}

.floating-nav__cta{
  flex: 0 0 auto;
  min-width: 136px;
  min-height: 54px;
  height: 54px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.34);
  background: linear-gradient(165deg, rgba(255,255,255,.4), rgba(244,179,102,.22));
  color: #fffdf9;
  text-decoration: none;
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 14px 32px rgba(0,0,0,.22);
  transition: transform .85s cubic-bezier(.2,.9,.25,1), box-shadow .85s cubic-bezier(.2,.9,.25,1), border-color .85s cubic-bezier(.2,.9,.25,1), background .85s cubic-bezier(.2,.9,.25,1);
}

.floating-nav__cta:hover,
.floating-nav__cta:focus-visible{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.5);
  background: linear-gradient(165deg, rgba(255,255,255,.48), rgba(244,179,102,.24));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 16px 34px rgba(0,0,0,.26);
}

.hero-media{
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-media__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.04) brightness(.92);
}

.hero__inner--v2{
  min-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 122px 0 28px;
  position: relative;
  z-index: 2;
}

.hero-heading{
  width: min(980px, 94vw);
  margin-top: 8px;
}

.hero-copy{
  margin-top: auto;
  padding-bottom: clamp(18px, 5.4vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: min(760px, 92vw);
}

.badge--v2{
  border-color: rgba(244,179,102,.18);
  background: rgba(10,10,10,.34);
  color: rgba(255,245,231,.88);
}

.hero__title--v2{
  margin: 0;
  font-size: clamp(42px, 5.1vw, 74px);
  line-height: .94;
  letter-spacing: -0.035em;
  text-shadow: 0 16px 44px rgba(0,0,0,.42);
  text-align: center;
}

.hero__subtitle--v2{
  margin: 12px auto 0;
  width: min(680px, 82vw);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  text-wrap: balance;
  text-align: center;
}

.hero__actions--v2{
  margin-top: 16px;
  gap: 12px;
}

.btn--primary-v2{
  border-color: rgba(244,179,102,.28);
  background: linear-gradient(180deg, rgba(244,179,102,.24), rgba(244,179,102,.12));
  color: #fff8f0;
}

.btn--ghost-v2{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}

.section--approach-v2{
  padding-top: 36px;
}

.hero-delayed-reveal{
  opacity: 0;
  transform: translateY(18px) scale(.985);
  filter: blur(14px);
  transition:
    opacity .8s cubic-bezier(.2,.8,.2,1),
    transform .8s cubic-bezier(.2,.8,.2,1),
    filter .8s cubic-bezier(.2,.8,.2,1);
}

.hero-delayed-reveal.is-in{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 800px){
  .floating-nav{
    top: 8px;
    width: calc(100vw - 16px);
    left: 8px;
    right: 8px;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    padding: 0;
  }

  .floating-nav__menu{
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    border-radius: 14px;
    justify-content: space-between;
    padding-right: 4px;
  }

  .floating-nav__brand{
    min-width: 116px;
    border-right: 0;
    padding: 6px 8px 6px 6px;
    justify-content: flex-start;
  }

  .floating-nav__brand img{
    height: 30px;
  }

  .floating-nav__links{
    display: none;
  }

  .floating-nav__toggle{
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    cursor: pointer;
  }

  .floating-nav__toggle span{
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    transition: transform .35s ease, opacity .35s ease;
  }

  .floating-nav__menu.is-mobile-open .floating-nav__toggle span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .floating-nav__menu.is-mobile-open .floating-nav__toggle span:nth-child(2){ opacity: 0; }
  .floating-nav__menu.is-mobile-open .floating-nav__toggle span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

  .floating-nav__mobile-dropdown{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(14,14,14,.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .28s ease, transform .28s ease;
  }

  .floating-nav__mobile-dropdown a{
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 14px;
    background: rgba(255,255,255,.03);
  }

  .floating-nav__menu.is-mobile-open .floating-nav__mobile-dropdown{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .floating-nav__cta{
    min-width: 92px;
    min-height: 38px;
    height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: -0.01em;
  }

  .site-header--v2 .brand img{
    height: 48px;
  }

  .nav--v2{
    gap: 12px;
  }

  .nav--v2 a{
    letter-spacing: .04em;
  }

  .hero--v2{
    min-height: auto;
    padding: 18px 12px 14px;
  }

  .hero__inner--v2{
    min-height: calc(100svh - 32px);
    gap: 10px;
    padding: 98px 0 18px;
  }

  .hero-copy{
    padding-bottom: clamp(10px, 3vh, 22px);
  }

  .hero-heading{
    width: min(92vw, 720px);
    margin-top: 0;
  }

  .hero__title--v2{
    font-size: clamp(34px, 9vw, 52px);
  }

  .hero__subtitle--v2{
    width: min(92vw, 460px);
    font-size: 14px;
  }

}

@media (max-width: 520px){
  .floating-nav{
    width: calc(100vw - 12px);
    left: 6px;
    right: 6px;
    gap: 4px;
  }

  .floating-nav__brand{
    min-width: 102px;
    padding: 6px 7px 6px 5px;
  }

  .floating-nav__brand img{
    height: 25px;
  }

  .floating-nav__toggle{
    width: 34px;
    height: 34px;
  }

  .floating-nav__mobile-dropdown a{
    font-size: 13px;
    padding: 9px 10px;
  }

  .floating-nav__cta{
    min-width: 84px;
    min-height: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
}
