/* =============================================================
   v4 — AI consulting site
   Sistema: minimalismo conservador + acentos digitales sutiles
   ============================================================= */

:root {
  /* Inteli-K brand palette */
  --ik-dark-blue: #132238;
  --ik-glauco: #00C8C8;
  --ik-glauco-soft: #4FDCDC;
  --ik-marine: #155DCE;
  --ik-celeste: #5FCEFF;
  --ik-iris: #765FFF;

  --bg: #F7F9FC;              /* paper */
  --bg-2: #EEF2F7;            /* mist */
  --ink: #0B1525;             /* near-black blue */
  --ink-2: #1A2540;
  --ink-soft: #4B5872;        /* graphite */
  --ink-mute: #8893A7;        /* steel */
  --rule: #D9DFE8;            /* fog */
  --rule-soft: #EEF2F7;
  --accent: #00C8C8;          /* glauco — primary brand accent */
  --accent-soft: #4FDCDC;
  --accent-deep: #009C9C;
  --invert-bg: #132238;       /* dark blue */
  --invert-ink: #F7F9FC;
  /* Soft glauco-tinted background — breaks the paper/mist rhythm without
     leaving the brand palette. Used by the Process section. */
  --bg-teal: #E4F2F1;
  --bg-teal-rule: #C9E2E0;

  --font-display: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  /* All accents use DM Sans (single-family system).
     Keeping --font-mono name for compatibility, but it now points to DM Sans. */
  --font-mono: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-1: 0 1px 2px rgba(14,14,12,.04), 0 4px 16px rgba(14,14,12,.04);
  --shadow-2: 0 2px 6px rgba(14,14,12,.06), 0 18px 48px rgba(14,14,12,.07);

  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

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

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

/* =============================================================
   Layout
   ============================================================= */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 110px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,200,200,.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,200,200,.18); }
  50%       { box-shadow: 0 0 0 8px rgba(0,200,200,.05); }
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(40px, 6.5vw, 92px);
  color: var(--ink);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  font-size: clamp(32px, 4.4vw, 60px);
  margin: 12px 0 22px;
}
.h-card {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.18;
  font-size: clamp(20px, 1.6vw, 26px);
  margin: 0 0 12px;
}
.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* =============================================================
   Buttons
   ============================================================= */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  transition: transform .25s var(--ease-out), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-soft); color: #FFFFFF; box-shadow: 0 10px 28px rgba(0,200,200,.35); }
.btn-accent {
  background: var(--accent); color: #FFFFFF;
}
.btn-accent:hover { background: var(--accent-soft); color: #FFFFFF; box-shadow: 0 8px 24px rgba(0,200,200,.35); }
.btn-ghost {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* =============================================================
   Nav
   ============================================================= */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(250,250,247,.92);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-soft); font-weight: 450;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); background: rgba(14,14,12,.04); }
.nav__link--has-menu::after {
  content: ""; display: inline-block; margin-left: 6px;
  width: 5px; height: 5px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
}
.nav__group:hover .nav__link--has-menu::after { transform: rotate(225deg) translateY(0); }

.nav__group { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 18px;
  padding: 16px; min-width: 580px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s var(--ease-out);
}
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__menu-item {
  display: block; padding: 12px 14px; border-radius: 12px;
  transition: background .18s;
}
.nav__menu-item:hover { background: var(--bg-2); }
.nav__menu-item-t { font-weight: 500; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.nav__menu-item-s { font-size: 13px; color: var(--ink-mute); line-height: 1.45; }

.nav__right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(14,14,12,.04); border-radius: 999px; padding: 4px;
}
.lang-toggle button {
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .04em; font-weight: 500;
  color: var(--ink-soft); transition: background .2s, color .2s;
}
.lang-toggle button.is-active { background: var(--ink); color: var(--bg); }

/* =============================================================
   Footer
   ============================================================= */

.footer { background: var(--invert-bg); color: var(--invert-ink); padding: 90px 0 36px; margin-top: 80px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 28px; }
.footer__tag { color: rgba(255,255,255,.6); margin-top: 16px; font-size: 14.5px; max-width: 30ch; line-height: 1.5; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 500; margin: 0 0 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { color: rgba(255,255,255,.85); font-size: 14.5px; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bot { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; color: rgba(255,255,255,.5); font-size: 13px; }
.footer__bot-links { display: flex; gap: 24px; }

/* =============================================================
   Animations — scroll reveal + utility motion
   ============================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1; transform: translateY(0);
}
[data-reveal-up] { transform: translateY(40px); }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-stagger].is-in > * { opacity: 1; transform: translateY(0); }
[data-stagger].is-in > *:nth-child(1) { transition-delay: .04s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .12s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .2s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .28s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: .36s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: .44s; }

/* Hero line-by-line type reveal */
.kt-line {
  display: block; overflow: hidden;
}
.kt-line > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  will-change: transform;
}
.kt-line.is-in > span { transform: translateY(0); }
.kt-line.d2 > span { transition-delay: .1s; }
.kt-line.d3 > span { transition-delay: .2s; }
.kt-line.d4 > span { transition-delay: .3s; }

/* Underline draw on hover */
.link-line {
  position: relative; padding-bottom: 2px;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(1); }

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee {
  display: flex; gap: 80px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-wrap:hover .marquee { animation-play-state: paused; }

/* Card hover lift */
.card-lift { transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* Number counter */
.count-num {
  font-feature-settings: "tnum" 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > *, .kt-line > span { opacity: 1 !important; transform: none !important; }
  .marquee { animation: none; }
  .eyebrow::before { animation: none; }
}

/* =============================================================
   v5 — Disruption layer
   Dos momentos firma: (1) mask-wipe cinético en hero,
                       (2) curtain transitions entre secciones.
   Resto tranquilo, editorial, sofisticado.
   ============================================================= */

:root {
  --ease-curtain: cubic-bezier(.76, 0, .24, 1);
  --ease-letter: cubic-bezier(.2, .9, .15, 1);
}

/* ---- Reveal base más editorial: easings más lentos y deliberados ---- */
[data-reveal] {
  transition-duration: 1.1s;
  transition-timing-function: var(--ease-letter);
}
[data-stagger] > * {
  transition-duration: 1s;
  transition-timing-function: var(--ease-letter);
}
[data-stagger].is-in > *:nth-child(1) { transition-delay: .05s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .14s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .23s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .32s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: .41s; }

/* ---- 1. Hero cinético — mask-wipe en palabra clave ----
   La palabra entra como outline; al activarse se rellena con glauco
   de izquierda a derecha, dibujando un subrayado al final. */
.v5-wipe {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  -webkit-text-stroke: 1.4px rgba(11, 21, 37, .35);
  transition:
    background-size 1.6s var(--ease-curtain) .35s,
    -webkit-text-stroke .55s var(--ease-out) 1.5s;
}
.v5-wipe.is-in {
  background-size: 100% 100%;
  -webkit-text-stroke: 0 transparent;
}
.v5-wipe__rule {
  display: none;
}

/* Char-by-char setup for v5-line — translateY per character, staggered */
.v5-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.22em;  /* room for descenders during animation */
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.v5-line.is-done {
  overflow: visible;  /* let descenders show after entry animation */
}
.v5-line .v5-word {
  display: inline-block;
  white-space: nowrap;
}
.v5-line .v5-char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 1.05s var(--ease-letter),
    opacity .6s var(--ease-out);
  will-change: transform;
}
.v5-line.is-in .v5-char {
  transform: translateY(0);
  opacity: 1;
}
/* Space character keeps width but no transform animation */
.v5-line .v5-char[data-space="1"] {
  transform: none;
  opacity: 1;
  width: .28em;
}

/* Slow scroll progress under hero — a thin line that fills as user scrolls hero out */
.v5-hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 200px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.v5-hero__mark {
  position: absolute;
  right: -10%;
  top: 14%;
  width: clamp(420px, 52%, 820px);
  opacity: .055;
  pointer-events: none;
  transform: rotate(-8deg);
  z-index: 0;
}
.v5-hero__inner {
  position: relative;
  z-index: 2;
}
.v5-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.v5-hero__meta-tick {
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.v5-hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  animation: v5-fadein 1.4s var(--ease-out) 2s forwards;
}
.v5-hero__scroll-arrow {
  display: inline-block;
  width: 20px; height: 20px;
  border: 1px solid var(--ink-mute);
  border-radius: 50%;
  position: relative;
}
.v5-hero__scroll-arrow::before {
  content: "↓";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-size: 11px;
  animation: v5-bob 2.4s var(--ease-out) infinite;
}
@keyframes v5-fadein { to { opacity: 1; } }
@keyframes v5-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* ---- 2. Section reveal on scroll ----
   Cada sección aparece con un fade + subida al entrar al viewport. */
.v5-section {
  position: relative;
}
.v5-section__content {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-letter);
  will-change: opacity, transform;
}
.v5-section.is-running .v5-section__content,
.v5-section.is-ready .v5-section__content {
  opacity: 1;
  transform: none;
}

/* ---- 3. Editorial section header ---- */
.v5-shead {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 96px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.v5-shead__left {
  display: flex; flex-direction: column; gap: 12px;
}
.v5-shead__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.v5-shead__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.v5-shead__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  font-size: clamp(30px, 3.6vw, 52px);
  margin: 0;
  max-width: 18ch;
  color: inherit;
  text-wrap: balance;
}
@media (max-width: 880px) {
  .v5-shead { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- 4. Refined card / row hover (calm, sophisticated) ---- */
.v5-help-list {
  border-top: 1px solid var(--rule);
}
.v5-help-row {
  display: grid;
  grid-template-columns: 80px 1.3fr 2fr 60px;
  gap: 40px;
  align-items: center;
  padding: 38px 8px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding .35s var(--ease-curtain);
  color: var(--ink);
}
.v5-help-row::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0; top: 0;
  width: 0;
  background: var(--accent);
  transition: width .5s var(--ease-curtain);
  z-index: -1;
  opacity: .08;
}
.v5-help-row:hover {
  padding-left: 28px;
}
.v5-help-row:hover::before { width: 100%; }
.v5-help-row__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-mute);
  transition: color .3s;
}
.v5-help-row:hover .v5-help-row__num { color: var(--accent-deep); }
.v5-help-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0;
  max-width: 22ch;
}
.v5-help-row__desc {
  color: var(--ink-soft);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 56ch;
  text-wrap: pretty;
}
.v5-help-row__arrow {
  font-size: 26px;
  color: var(--ink-soft);
  transition: transform .4s var(--ease-curtain), color .3s;
  text-align: right;
}
.v5-help-row:hover .v5-help-row__arrow {
  transform: translateX(10px);
  color: var(--accent-deep);
}
@media (max-width: 880px) {
  .v5-help-row { grid-template-columns: 60px 1fr 40px; gap: 16px; padding: 28px 8px; }
  .v5-help-row:hover { padding-left: 16px; }
  .v5-help-row__desc { grid-column: 2 / -1; padding-top: 8px; }
}

/* ---- 5. Big editorial marquee ---- */
.v5-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding: clamp(40px, 6vw, 72px) 0;
}
.v5-marquee {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: v5-marquee 48s linear infinite;
}
.v5-marquee-wrap:hover .v5-marquee { animation-play-state: paused; }
@keyframes v5-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.v5-marquee__item {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  transition: color .3s;
}
.v5-marquee__item:hover { color: var(--accent-deep); }
.v5-marquee__item-tag {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  letter-spacing: .08em;
}
.v5-marquee__sep {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
}

/* Marquee with logos */
.v5-marquee--logos {
  gap: clamp(72px, 8vw, 120px);
  align-items: center;
}
.v5-marquee__item--logo {
  align-items: center;
  gap: 24px;
}
.v5-marquee__logo {
  height: clamp(36px, 4.4vw, 60px);
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Slight unification — let originals shine but tame any oversized vertical padding */
  object-fit: contain;
}

/* ---- 6. CTA dark with kinetic backdrop ---- */
.v5-cta {
  background: var(--invert-bg);
  color: var(--invert-ink);
  padding: clamp(96px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.v5-cta__bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center end;
  pointer-events: none;
  padding-right: clamp(40px, 8vw, 140px);
}
/* Problem grid — 3 fixed columns on desktop, 1 column on mobile.
   Previously auto-fit minmax(280px,1fr) collapsed to 2 on common widths
   and left the third card alone on its row. */
.v5-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.v5-problem-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  min-height: 260px;
}
@media (max-width: 820px) {
  .v5-problem-grid { grid-template-columns: 1fr; }
  .v5-problem-card { min-height: 0; }
}
/* Constelación quieta — eco silencioso del hero. */
.v5-cta__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* Brand K mark — silent bookend, right-anchored. */
.v5-cta__mark {
  position: relative;
  z-index: 1;
  width: clamp(220px, 28vw, 460px);
  height: auto;
  /* force the multi-color icon to a single faint white tone */
  filter: brightness(0) invert(1);
  opacity: 0.06;
  animation: v5-drift 18s ease-in-out infinite alternate;
}
@keyframes v5-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-2%); }
}
/* Legacy backdrop-text rules kept for any other page that still uses them. */
.v5-cta__bg-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(120px, 16vw, 260px);
  line-height: .85;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, .035);
  white-space: nowrap;
}
.v5-cta__inner { position: relative; z-index: 1; }
.v5-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.08;
  font-size: clamp(34px, 4.2vw, 60px);
  color: var(--invert-ink);
  margin: 0 0 44px;
  max-width: 16ch;
  text-wrap: balance;
}
.btn--xl {
  height: 64px;
  padding: 0 32px;
  font-size: 16.5px;
}

/* ---- 7. Bigger hero display (more architectural) ---- */
.v5-h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.14;   /* was 1.06 — descenders/ascenders were colliding between lines */
  font-size: clamp(28px, 6.2vw, 68px);
  color: var(--ink);
  text-wrap: pretty;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
@media (max-width: 480px) {
  .v5-h-display { font-size: clamp(24px, 7.2vw, 32px); letter-spacing: -0.018em; }
}

/* ---- 8. Refined lead style for hero ---- */
.v5-lead {
  font-size: clamp(16.5px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---- 9. Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .v5-wipe {
    background-size: 100% 100% !important;
    -webkit-text-stroke: 0 transparent !important;
  }
  .v5-wipe__rule { transform: scaleX(1) !important; }
  .v5-line .v5-char { opacity: 1 !important; transform: none !important; }
  .v5-section.is-running .v5-section__veil { animation: none !important; transform: translateY(-101%) !important; }
  .v5-section__content { opacity: 1 !important; transform: none !important; }
  .v5-marquee, .v5-cta__bg-text, .v5-hero__scroll-arrow::before { animation: none !important; }
}

/* ---- 7. Proof carousel — subtle cross-fade quote log ---- */
.v5-proof-car { overflow: hidden; }
.v5-proof-stack {
  position: relative;
  min-height: 280px;
}
@media (min-width: 880px) {
  .v5-proof-stack { min-height: 240px; }
}
.v5-proof-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .7s var(--ease-curtain), transform .7s var(--ease-curtain);
}
.v5-proof-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative; /* so the carousel sizes to the active quote */
}
.v5-proof-dot {
  width: 26px; height: 6px; border-radius: 3px;
  background: var(--rule);
  border: 0; padding: 0; cursor: pointer;
  transition: background .25s, transform .25s;
}
.v5-proof-dot:hover { background: var(--ink-mute); }
.v5-proof-dot[data-active="true"] {
  background: var(--accent);
  transform: scaleX(1.15);
}
.v5-proof-nav {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 16px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.v5-proof-nav:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .v5-proof-stack { min-height: 360px; }
}

/* =============================================================
   Responsive helpers
   ============================================================= */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bot { flex-wrap: wrap; gap: 12px 24px; }
  .footer__bot-links { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .footer { padding: 64px 0 28px; }
  .footer__bot { flex-direction: column; align-items: flex-start; }
}


/* =============================================================
   V5 Contact — dark form section before footer
   ============================================================= */
.v5-contact {
  position: relative;
  background: #132238;
  color: #FFFFFF;
  padding: 72px 40px;
  overflow: hidden;
  font-family: "DM Sans", system-ui, sans-serif;
}
.v5-contact__accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C8C8, #155DCE);
}
.v5-contact__deco {
  position: absolute;
  border: 1px solid rgba(0, 200, 200, 0.12);
  pointer-events: none;
}
.v5-contact__deco--br {
  right: -60px; bottom: -70px;
  width: 280px; height: 280px;
  transform: rotate(15deg);
}
.v5-contact__deco--tr {
  right: 6%; top: 36px;
  width: 64px; height: 64px;
  transform: rotate(30deg);
}
.v5-contact__inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.v5-contact__head { text-align: center; margin-bottom: 40px; }
.v5-contact__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 12px;
}
.v5-contact__sub {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.55);
  margin: 0;
}
.v5-contact__form { display: block; }
.v5-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 16px;
  margin-bottom: 22px;
}
.v5-contact__field { display: flex; flex-direction: column; gap: 6px; }
.v5-contact__field--full { grid-column: 1 / -1; }
.v5-contact__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  letter-spacing: .005em;
}
.v5-contact__req { color: #00C8C8; }
.v5-contact__input,
.v5-contact__textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 11px 14px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .18s, background .18s, box-shadow .18s;
  outline: none;
  box-sizing: border-box;
}
.v5-contact__input::placeholder,
.v5-contact__textarea::placeholder { color: rgba(255,255,255,.30); }
.v5-contact__input:focus,
.v5-contact__textarea:focus {
  border-color: #00C8C8;
  background: rgba(0,200,200,0.06);
  box-shadow: 0 0 0 3px rgba(0,200,200,.10);
}
.v5-contact__textarea { resize: vertical; min-height: 110px; }
.v5-contact__input.is-invalid,
.v5-contact__textarea.is-invalid {
  border-color: #FF6B6B;
  background: rgba(255, 107, 107, 0.06);
}
.v5-contact__err {
  font-size: 11px;
  color: #FF8888;
  letter-spacing: .005em;
}
.v5-contact__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; margin-top: 10px; flex-wrap: wrap;
}
.v5-contact__privacy {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  margin: 0;
  max-width: 360px;
  line-height: 1.5;
}
.v5-contact__privacy-link {
  color: #00C8C8;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,200,200,.4);
}
.v5-contact__privacy-link:hover { border-bottom-color: #00C8C8; }
.v5-contact__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #00C8C8;
  color: #132238;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .005em;
  border: none;
  border-radius: 50px;
  padding: 13px 36px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
  white-space: nowrap;
}
.v5-contact__btn:hover:not(:disabled) {
  background: #4FDCDC;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,200,200,.35);
}
.v5-contact__btn:disabled { opacity: .65; cursor: not-allowed; }
.v5-contact__spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(19,34,56,.25);
  border-top-color: #132238;
  border-radius: 50%;
  animation: v5-contact-spin .8s linear infinite;
}
@keyframes v5-contact-spin { to { transform: rotate(360deg); } }
.v5-contact__api-error {
  margin: 16px 0 0;
  font-size: 12px;
  color: #FF8888;
  line-height: 1.5;
}
.v5-contact__success { text-align: center; padding: 40px 0; }
.v5-contact__success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid #00C8C8;
  background: rgba(0,200,200,.06);
  display: grid; place-items: center;
  margin: 0 auto 22px;
}
.v5-contact__success .v5-contact__title { margin-bottom: 10px; }
@media (max-width: 520px) {
  .v5-contact { padding: 56px 24px; }
  .v5-contact__grid { grid-template-columns: 1fr; }
  .v5-contact__title { font-size: 28px; }
  .v5-contact__foot { flex-direction: column; align-items: stretch; }
  .v5-contact__privacy { max-width: none; text-align: center; }
  .v5-contact__btn { width: 100%; justify-content: center; }
  .v5-contact__deco--br { width: 200px; height: 200px; right: -70px; bottom: -80px; }
  .v5-contact__deco--tr { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .v5-contact__spinner { animation: none; }
}


/* =============================================================
   V5 Contact — CTA-only state + modal popup
   ============================================================= */
.v5-contact__inner--cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.v5-contact__inner--cta .v5-contact__head { margin-bottom: 0; }
.v5-contact__btn--open { padding: 15px 40px; font-size: 15.5px; }

/* Backdrop */
.v5-contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 1000;
  animation: v5-modal-bg .25s ease-out;
}
@keyframes v5-modal-bg { from { opacity: 0; } to { opacity: 1; } }

.v5-contact-modal__panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #132238;
  color: #FFFFFF;
  border: 1px solid rgba(0, 200, 200, 0.18);
  border-radius: 14px;
  padding: 48px 44px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  font-family: "DM Sans", system-ui, sans-serif;
  animation: v5-modal-pop .35s cubic-bezier(.2,.9,.25,1.1);
  /* accent top bar via pseudo */
}
.v5-contact-modal__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C8C8, #155DCE);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
@keyframes v5-modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.v5-contact-modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.v5-contact-modal__close:hover {
  background: rgba(0,200,200,.10);
  border-color: rgba(0,200,200,.4);
  color: #00C8C8;
}
.v5-contact-modal__head { text-align: left; margin-bottom: 28px; }
.v5-contact-modal__head .v5-contact__title { font-size: 28px; }
.v5-contact-modal__done { margin-top: 28px; }

/* Inside the modal, force the inner padding/decor to NOT appear */
.v5-contact-modal__panel .v5-contact__deco { display: none; }

/* Responsive modal */
@media (max-width: 520px) {
  .v5-contact-modal { padding: 0; }
  .v5-contact-modal__panel {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    padding: 64px 24px 32px;
  }
  .v5-contact-modal__panel::before { border-radius: 0; }
  .v5-contact-modal__close { top: 14px; right: 14px; }
  .v5-contact-modal__head .v5-contact__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .v5-contact-modal,
  .v5-contact-modal__panel { animation: none; }
}


/* === Platforms nav link === */
/* Plataformas Inteligentes link — subtle Glauco dot before label */
.nav__link { white-space: nowrap; }
.nav__link--platforms { display: inline-flex; align-items: center; gap: 8px; }
.nav__link-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ik-glauco, #00C8C8);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(0, 200, 200, 0.55);
  animation: nav-dot-pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes nav-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 200, 200, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(0, 200, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 200, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__link-dot { animation: none; }
}
/* Slimmer dropdown now that Servicios has 3 items instead of 4 */
.nav__menu { min-width: 320px; grid-template-columns: 1fr; }

/* Tight nav at narrow desktop widths so 5-item links + CTA don't overflow */
@media (max-width: 1100px) {
  .nav__links { gap: 2px; }
  .nav__link { padding: 10px 10px; font-size: 13.5px; }
  .nav__link--platforms { gap: 6px; }
  .nav__link-dot { width: 6px; height: 6px; }
  .nav__right { gap: 10px; }
}


/* 2x2 fallback when the row gets too tight to keep 4 across */
@media (max-width: 980px) {
  .pf-partner-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .pf-partner-tag { font-size: 11px; }
}
@media (max-width: 520px) {
  .pf-partner-row { grid-template-columns: 1fr; gap: 22px; }
}

/* === Plataformas hero — partners infinite marquee === */
.pf-marquee-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.pf-marquee {
  display: flex;
  width: max-content;
  gap: 64px;
  align-items: center;
  animation: pf-marquee-scroll 36s linear infinite;
}
.pf-marquee-wrap:hover .pf-marquee { animation-play-state: paused; }
@keyframes pf-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.3333%, 0, 0); }
}
.pf-marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pf-marquee-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.pf-marquee-tag {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .pf-marquee { animation: none; }
}

/* === V5 "Por qué Inteli-K" — responsive 4 / 2x2 / 1 with clean dividers === */
.v5-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.v5-why-cell {
  padding: 40px 32px 40px 0;
  border-right: 1px solid rgba(255,255,255,.12);
}
.v5-why-cell:last-child { border-right: none; }

/* 2x2 — add bottom border to top row, fix right border on row-ends */
@media (max-width: 1100px) {
  .v5-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v5-why-cell { border-right: 1px solid rgba(255,255,255,.12); }
  .v5-why-cell:nth-child(2n) { border-right: none; }
  .v5-why-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* single column */
@media (max-width: 620px) {
  .v5-why-grid { grid-template-columns: 1fr; }
  .v5-why-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 32px 0; }
  .v5-why-cell:last-child { border-bottom: none; }
}


/* =============================================================
   v5 — PROCESS section
   "Cómo trabajamos" — 4 step cards on a connected timeline rule
   + 3 supporting metrics. Sits on the soft-teal background tone.
   ============================================================= */
.v5-section--teal { /* class is decorative; bg is set inline so it
                      survives even if this rule is missed */ }
.v5-section--teal .v5-shead {
  border-bottom-color: var(--bg-teal-rule);
}
.v5-process-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: -32px 0 64px;
  text-wrap: pretty;
}
.v5-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.v5-process-step {
  position: relative;
  padding: 0 28px 0 0;
  display: flex;
  flex-direction: column;
}
.v5-process-step:not(:last-child) { padding-right: 32px; }
.v5-process-step__rule {
  position: relative;
  height: 1px;
  background: var(--bg-teal-rule);
  margin-bottom: 28px;
}
.v5-process-step__dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 200, 200, 0.14);
}
.v5-process-step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.v5-process-step__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.18;
  font-size: clamp(20px, 1.6vw, 26px);
  margin: 0 0 14px;
  color: var(--ink);
}
.v5-process-step__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32ch;
  text-wrap: pretty;
}
.v5-process-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 36px;
  border-top: 1px solid var(--bg-teal-rule);
}
.v5-process-metric {
  padding: 4px 32px 4px 0;
  border-right: 1px solid var(--bg-teal-rule);
}
.v5-process-metric:last-child { border-right: none; }
.v5-process-metric__n {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1;
  font-size: clamp(40px, 5vw, 68px);
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.v5-process-metric__l {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 28ch;
  text-wrap: pretty;
}
@media (max-width: 980px) {
  .v5-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .v5-process-metrics { grid-template-columns: 1fr; }
  .v5-process-metric { border-right: none; border-bottom: 1px solid var(--bg-teal-rule); padding: 20px 0; }
  .v5-process-metric:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .v5-process-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   v5 — PLATFORMS detail grid
   4 cards revealing each platform's capabilities on hover/focus.
   Replaces the 4-logos marquee — earns the slot with real content.
   ============================================================= */
.v5-plat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1080px) {
  .v5-plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .v5-plat-grid { grid-template-columns: 1fr; }
}
.v5-plat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  color: var(--ink);
  min-height: 320px;
  overflow: hidden;
  transition:
    border-color .35s var(--ease-out),
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    background .35s var(--ease-out);
}
.v5-plat-card::before {
  /* faint glauco wash that fades in on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,200,200,.05) 0%, rgba(0,200,200,0) 50%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.v5-plat-card:hover,
.v5-plat-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(19, 34, 56, .07);
  outline: none;
}
.v5-plat-card:hover::before,
.v5-plat-card:focus-visible::before { opacity: 1; }
.v5-plat-card__head {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 16px;
}
.v5-plat-card__logo {
  height: 32px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.v5-plat-card__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  transition: color .3s, border-color .3s;
}
.v5-plat-card:hover .v5-plat-card__tag,
.v5-plat-card:focus-visible .v5-plat-card__tag {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}
.v5-plat-card__caps-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  transition: color .3s var(--ease-out);
}
.v5-plat-card__caps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.v5-plat-card__caps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  /* Visible at rest but slightly muted; hover wakes them up. */
  opacity: .72;
  transform: translateX(0);
  transition:
    opacity .35s var(--ease-out),
    transform .35s var(--ease-out),
    color .3s;
}
.v5-plat-card__caps-mark {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  opacity: .55;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.v5-plat-card:hover .v5-plat-card__caps-label,
.v5-plat-card:focus-visible .v5-plat-card__caps-label {
  color: var(--accent-deep);
}
.v5-plat-card:hover .v5-plat-card__caps li,
.v5-plat-card:focus-visible .v5-plat-card__caps li {
  opacity: 1;
  transform: translateX(2px);
  color: var(--ink);
}
.v5-plat-card:hover .v5-plat-card__caps-mark,
.v5-plat-card:focus-visible .v5-plat-card__caps-mark {
  opacity: 1;
  transform: scale(1.15);
}
.v5-plat-card__arrow {
  position: absolute;
  top: 28px;
  right: 24px;
  font-size: 18px;
  color: var(--ink-mute);
  opacity: .6;
  transition: transform .3s var(--ease-out), color .3s, opacity .3s;
}
.v5-plat-card:hover .v5-plat-card__arrow,
.v5-plat-card:focus-visible .v5-plat-card__arrow {
  transform: translate(3px, -3px);
  color: var(--accent-deep);
  opacity: 1;
}

/* Touch / coarse-pointer: caps already visible above; just make sure
   they read at full opacity since there's no hover to brighten them. */
@media (hover: none) {
  .v5-plat-card__caps li { opacity: 1; }
  .v5-plat-card__caps-mark { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .v5-plat-card,
  .v5-plat-card__caps-label,
  .v5-plat-card__caps li,
  .v5-plat-card__arrow,
  .v5-plat-card::before {
    transition: none !important;
  }
}


/* =============================================================
   v5 — NAV mobile/responsive
   - <881px: hide desktop links + CTA label, show burger
   - drawer slides down from the bar
   - >880px: burger hidden, desktop nav as before
   ============================================================= */

/* Burger button — desktop default: hidden */
.nav__burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s;
}
.nav__burger:hover { background: rgba(14,14,12,.04); border-color: var(--ink); }
.nav__burger-lines {
  position: relative;
  display: block;
  width: 18px; height: 12px;
}
.nav__burger-lines > span {
  position: absolute;
  left: 0; right: 0;
  height: 1.6px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .3s var(--ease-out), opacity .2s, top .3s var(--ease-out);
}
.nav__burger-lines > span:nth-child(1) { top: 0; }
.nav__burger-lines > span:nth-child(2) { top: calc(50% - 0.8px); }
.nav__burger-lines > span:nth-child(3) { top: calc(100% - 1.6px); }
.nav.is-menu-open .nav__burger-lines > span:nth-child(1) {
  top: calc(50% - 0.8px); transform: rotate(45deg);
}
.nav.is-menu-open .nav__burger-lines > span:nth-child(2) {
  opacity: 0;
}
.nav.is-menu-open .nav__burger-lines > span:nth-child(3) {
  top: calc(50% - 0.8px); transform: rotate(-45deg);
}

/* Drawer container — desktop default: hidden / inert */
.nav__drawer {
  display: none;
}

/* =============== Mobile breakpoint =============== */
/* Raised to 1000px: 6 nav items + CTA need ~1000px to fit on one row,
   so the drawer takes over below that to avoid a cramped overflow. */
@media (max-width: 1000px) {
  .nav__row { height: 64px; }
  .nav__brand img { height: 24px; }

  /* The desktop link list is already hidden by the earlier rule. */
  .nav__links { display: none; }

  /* Hide the CTA in the bar — it lives inside the drawer at mobile.
     Keep the lang-toggle so language is one tap away. */
  .nav__cta { display: none; }

  /* Show the burger */
  .nav__burger { display: inline-flex; }
  .nav__right { gap: 8px; }

  /* Drawer */
  .nav__drawer {
    display: block;
    position: fixed;
    top: 64px; /* under the bar */
    left: 0; right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity .28s var(--ease-out),
      transform .32s var(--ease-out),
      visibility 0s linear .32s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-menu-open .nav__drawer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity .28s var(--ease-out),
      transform .32s var(--ease-out),
      visibility 0s linear 0s;
  }

  .nav__drawer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 32px var(--pad-x) 48px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav__drawer-link {
    display: flex;
    align-items: center;
    padding: 18px 4px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.012em;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    transition: color .2s, padding .25s var(--ease-out);
  }
  .nav__drawer-link:hover,
  .nav__drawer-link.is-active {
    color: var(--accent-deep);
    padding-left: 8px;
  }
  .nav__drawer-link--platforms { gap: 12px; }
  .nav__drawer-link--platforms .nav__link-dot { width: 8px; height: 8px; }

  /* Services sub-section indented under the parent */
  .nav__drawer-group {
    display: flex;
    flex-direction: column;
  }
  .nav__drawer-sub {
    display: flex;
    flex-direction: column;
    padding: 6px 0 14px 16px;
    border-bottom: 1px solid var(--rule);
    margin-top: -1px; /* swallow the parent's border so they read as one block */
  }
  .nav__drawer-sublink {
    padding: 10px 0;
    font-size: 15px;
    color: var(--ink-soft);
    transition: color .2s, transform .2s var(--ease-out);
  }
  .nav__drawer-sublink:hover {
    color: var(--accent-deep);
    transform: translateX(3px);
  }

  .nav__drawer-foot {
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .nav__drawer-cta {
    height: 56px;
    justify-content: center;
    width: 100%;
    font-size: 16px;
  }
}

/* Tighter on small phones: shorter bar, smaller padding, more breathing room */
@media (max-width: 480px) {
  .nav__row { height: 60px; }
  .nav__brand img { height: 22px; }
  .nav__drawer { top: 60px; }
  .lang-toggle button { padding: 0 10px; font-size: 12px; }
  .nav__drawer-link { font-size: 22px; padding: 16px 4px; }
}

/* Lock scroll behind the open drawer */
body:has(.nav.is-menu-open) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav__drawer,
  .nav__burger-lines > span { transition: none !important; }
}


/* =============================================================
   v5 — FAQ accordion (semantic <details>/<summary>)
   Itemprop attrs mirror the FAQPage JSON-LD so structured-data
   scrapers see the same Q&A twice — improves citation odds.
   ============================================================= */
.v5-faq-list {
  border-top: 1px solid var(--rule);
  max-width: 920px;
}
.v5-faq-item {
  border-bottom: 1px solid var(--rule);
  transition: padding .25s var(--ease-out);
}
.v5-faq-item[open] {
  padding-bottom: 8px;
}
.v5-faq-q {
  list-style: none;
  display: grid;
  grid-template-columns: 64px 1fr 36px;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--ink);
  transition: color .2s, padding .25s var(--ease-out);
}
.v5-faq-q::-webkit-details-marker { display: none; }
.v5-faq-q:hover { color: var(--accent-deep); padding-left: 8px; }
.v5-faq-q-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: uppercase;
  transition: color .2s;
}
.v5-faq-q:hover .v5-faq-q-num,
.v5-faq-item[open] .v5-faq-q-num { color: var(--accent-deep); }
.v5-faq-q-text {
  text-wrap: balance;
}
.v5-faq-q-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  justify-self: end;
  flex-shrink: 0;
}
.v5-faq-q-icon-h,
.v5-faq-q-icon-v {
  position: absolute;
  background: var(--ink-soft);
  transition: transform .35s var(--ease-out), background .25s;
}
.v5-faq-q-icon-h {
  left: 0; right: 0;
  top: 50%; height: 1.6px;
  margin-top: -0.8px;
}
.v5-faq-q-icon-v {
  top: 0; bottom: 0;
  left: 50%; width: 1.6px;
  margin-left: -0.8px;
}
.v5-faq-item[open] .v5-faq-q-icon-v { transform: scaleY(0); }
.v5-faq-item[open] .v5-faq-q-icon-h,
.v5-faq-q:hover .v5-faq-q-icon-h,
.v5-faq-q:hover .v5-faq-q-icon-v { background: var(--accent-deep); }

.v5-faq-a {
  padding: 0 4px 28px;
  display: grid;
  grid-template-columns: 64px 1fr 36px;
  gap: 24px;
}
.v5-faq-a > p {
  grid-column: 2 / 3;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
  text-wrap: pretty;
}
/* Animate content open */
.v5-faq-item[open] .v5-faq-a {
  animation: v5-faq-open .35s var(--ease-out);
}
@keyframes v5-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .v5-faq-q { grid-template-columns: 44px 1fr 28px; gap: 16px; padding: 22px 4px; font-size: 17px; }
  .v5-faq-a { grid-template-columns: 44px 1fr 28px; gap: 16px; padding-bottom: 22px; }
  .v5-faq-a > p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .v5-faq-item, .v5-faq-q, .v5-faq-q-icon-h, .v5-faq-q-icon-v { transition: none !important; }
  .v5-faq-item[open] .v5-faq-a { animation: none !important; }
}
