/* stylelint-disable declaration-block-single-line-max-declarations, color-function-notation, alpha-value-notation, media-feature-range-notation, property-no-vendor-prefix, selector-class-pattern, no-descending-specificity -- compact single-line rules and rgba(var(--x-rgb), a) need the legacy syntax */

/* Alista Salud landing — "sala limpia": dark teal clinical HUD built on the logo's ring */
:root {
  --void: #04110f;
  --deep: #061a17;
  --panel: rgba(12, 42, 38, 0.55);
  --panel-solid: #0a2622;
  --teal: #20726a;
  --teal-rgb: 32, 114, 106;
  --aqua: #5ed6c3;
  --aqua-rgb: 94, 214, 195;
  --mint: #9cccc8;
  --spark: #ea7a2a;
  --spark-hi: #f69642;
  --spark-rgb: 234, 122, 42;
  --ink: #e6f3f0;
  --mute: #8fb3ac;
  --dim: #5d827b;
  --line: rgba(156, 204, 200, 0.14);
  --line-hi: rgba(94, 214, 195, 0.4);
  --display: 'Sora', 'Manrope', sans-serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(var(--aqua-rgb), 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

/* grain, fixed and inert so scrolling never repaints it */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  background: var(--aqua);
  color: var(--void);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

.hud-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.hud-label .idx {
  color: var(--spark-hi);
  margin-right: 0.9em;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  margin-right: 0.7em;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(var(--aqua-rgb), 0.6);
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--aqua-rgb), 0.55);
  }

  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(var(--aqua-rgb), 0);
  }
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  transition:
    transform 0.35s var(--ease),
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s,
    box-shadow 0.35s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--aqua);
  color: #03231e;
  box-shadow:
    0 10px 30px -10px rgba(var(--aqua-rgb), 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px -12px rgba(var(--aqua-rgb), 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary:hover::before {
  transform: translateX(120%);
}

.btn--ghost {
  border: 1px solid var(--line-hi);
  color: var(--ink);
  background: rgba(var(--aqua-rgb), 0.04);
}

.btn--ghost:hover {
  border-color: var(--aqua);
  background: rgba(var(--aqua-rgb), 0.1);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1.02rem;
}

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background-color 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(4, 17, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}

.nav__inner {
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__logo {
  margin-right: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.nav__logo img {
  height: 46px;
  width: auto;
}

.nav.is-scrolled .nav__logo,
.nav.no-hero .nav__logo {
  opacity: 1;
  transform: none;
}

.nav__links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mute);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition:
    color 0.25s,
    background-color 0.25s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
  background: rgba(var(--aqua-rgb), 0.08);
}

.nav__cat {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--aqua);
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid rgba(var(--aqua-rgb), 0.35);
  transition: border-color 0.25s;
}

.nav__cat:hover {
  border-color: var(--aqua);
}

.nav__cta {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--spark);
  color: #fff;
  transition:
    background-color 0.25s,
    transform 0.3s var(--ease);
}

.nav__cta:hover {
  background: var(--spark-hi);
  transform: translateY(-1px);
}

.nav__cta:active {
  transform: scale(0.97);
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  position: relative;
}

.nav__burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

.nav__burger span:first-child {
  top: 17px;
}

.nav__burger span:last-child {
  top: 25px;
}

.nav__burger[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__burger[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 17, 15, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
}

.drawer[hidden] {
  display: none;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
}

.drawer__nav a {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.drawer__nav a span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--spark-hi);
}

.drawer__foot {
  display: grid;
  gap: 0.8rem;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 45%, rgba(var(--teal-rgb), 0.38), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(var(--spark-rgb), 0.1), transparent 70%),
    linear-gradient(180deg, var(--void), var(--deep));
}

.hero::before {
  /* sterile grid */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero__logo {
  width: clamp(220px, 26vw, 380px);
  height: auto;
  margin-bottom: 2.2rem;
  filter: drop-shadow(0 10px 40px rgba(var(--aqua-rgb), 0.18));
}

.hero__eyebrow {
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__title .line > span {
  display: inline-block;
}

.hero__title em {
  font-style: normal;
  color: var(--aqua);
  position: relative;
}

.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0.1em;
  bottom: 0.06em;
  height: 0.08em;
  background: var(--spark);
  transform-origin: left;
  transform: scaleX(0);
  animation: underline 1s 1.4s var(--ease) forwards;
}

@keyframes underline {
  to {
    transform: scaleX(1);
  }
}

.hero__lead {
  max-width: 33rem;
  color: var(--mute);
  font-size: 1.12rem;
  margin-bottom: 2.2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.8rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  max-width: 34rem;
}

.hero__meta > div {
  flex: 1 1 0;
  min-width: 8.5rem;
  padding-right: 1rem;
}

.hero__meta > div + div {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.hero__meta dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero__meta dd {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
}

/* entrance choreography */
.js .hero__logo,
.js .hero__eyebrow,
.js .hero__lead,
.js .hero__ctas,
.js .hero__meta {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.js .hero__title .line > span {
  transform: translateY(105%);
  animation: lift 1s var(--ease) forwards;
}

.js .hero__logo {
  animation-delay: 0.1s;
}

.js .hero__eyebrow {
  animation-delay: 0.35s;
}

.js .hero__title .line:nth-child(1) > span {
  animation-delay: 0.45s;
}

.js .hero__title .line:nth-child(2) > span {
  animation-delay: 0.58s;
}

.js .hero__lead {
  animation-delay: 0.8s;
}

.js .hero__ctas {
  animation-delay: 0.95s;
}

.js .hero__meta {
  animation-delay: 1.1s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lift {
  to {
    transform: none;
  }
}

/* scanner */
.scanner {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  justify-self: center;
  margin: 0;
}

.js .scanner {
  opacity: 0;
  transform: scale(0.92);
  animation: rise 1.4s 0.3s var(--ease) forwards;
}

.scanner__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scanner__ticks {
  transform-origin: 200px 200px;
  animation: spin 60s linear infinite;
}

.scanner__arc {
  transform-origin: 200px 200px;
  transform: rotate(-60deg);
  animation: spin 9s linear infinite;
}

.scanner__track {
  filter: drop-shadow(0 0 18px rgba(var(--aqua-rgb), 0.25));
}

@keyframes spin {
  from {
    transform: rotate(-60deg);
  }

  to {
    transform: rotate(300deg);
  }
}

.scanner__plate {
  position: absolute;
  inset: 20.5%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #eef1f1, #d9dfde 62%, #b9c6c4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 -30px 60px rgba(4, 17, 15, 0.25),
    0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.scanner__plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9%;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 66%);
  transition:
    opacity 0.45s var(--ease),
    transform 0.7s var(--ease),
    filter 0.45s;
}

.scanner__plate img.is-out {
  opacity: 0;
  transform: scale(0.86) translateY(8px);
  filter: blur(6px);
}

.scanner__beam {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 22%;
  top: -25%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--aqua-rgb), 0.28) 70%,
    rgba(var(--aqua-rgb), 0.9) 98%,
    transparent
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.scanner.is-scanning .scanner__beam {
  animation: beam 1.1s var(--ease);
}

@keyframes beam {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(560%);
  }
}

.scanner__corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--aqua);
  opacity: 0.7;
}

.scanner__corner--tl {
  top: 4%;
  left: 4%;
  border-right: 0;
  border-bottom: 0;
}

.scanner__corner--br {
  bottom: 4%;
  right: 4%;
  border-left: 0;
  border-top: 0;
}

.scanner__readout {
  position: absolute;
  left: -6%;
  bottom: 3%;
  width: min(300px, 62%);
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  background: rgba(6, 26, 23, 0.72);
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

.scanner__pause {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.scanner__pause:hover {
  color: var(--aqua);
  border-color: var(--aqua);
}

.scanner__pause:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.scanner__pause svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentcolor;
}

.scanner__play-icon,
.scanner__pause[aria-pressed='true'] .scanner__pause-icon {
  display: none;
}

.scanner__pause[aria-pressed='true'] .scanner__play-icon {
  display: block;
}

.scanner.is-held .scanner__bar span {
  animation-play-state: paused;
}

.scanner__readout .hud-label {
  color: var(--spark-hi);
}

.scanner__cat {
  font-size: 0.78rem;
  color: var(--aqua);
  font-weight: 600;
}

.scanner__name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
}

.scanner__bar {
  display: block;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.scanner__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--aqua);
  transform-origin: left;
  transform: scaleX(0);
}

.scanner__bar span.is-run {
  animation: fill var(--cycle, 2800ms) linear forwards;
}

@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

.scanner__count {
  position: absolute;
  top: 6%;
  right: 0;
  color: var(--ink);
}

.scanner__count span {
  color: var(--aqua);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  color: var(--dim);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--aqua), transparent);
  transform-origin: top;
  animation: drip 2.2s var(--ease) infinite;
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }

  60% {
    transform: scaleY(1);
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ── Brands marquee ─────────────────────────── */
.brands {
  border-block: 1px solid var(--line);
  padding: 2.2rem 0 2.4rem;
  background: var(--deep);
  overflow: hidden;
}

.brands__label {
  text-align: center;
  margin-bottom: 1.4rem;
}

.brands__track {
  display: grid;
  gap: 0.8rem;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.brands__row {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.brands__row--rev {
  animation-direction: reverse;
  animation-duration: 56s;
}

.brands__row span {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mute);
  white-space: nowrap;
  transition: color 0.3s;
}

.brands__row--rev span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(156, 204, 200, 0.45);
}

.brands__row i {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--spark);
  border-radius: 50%;
  flex: none;
}

.brands__track:hover .brands__row {
  animation-play-state: paused;
}

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

/* ── Sections ───────────────────────────────── */
.section {
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
}

.section__head {
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head .hud-label {
  margin-bottom: 1.2rem;
}

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
}

.section__title .mute {
  color: var(--dim);
}

.section__title .accent {
  color: var(--aqua);
}

.section__lead {
  color: var(--mute);
  max-width: 38rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

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

/* ── Catalog bento ──────────────────────────── */
.catalog {
  background: linear-gradient(180deg, var(--deep), var(--void));
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1rem;
}

.tile {
  --mx: 50%;
  --my: 50%;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s;
}

.tile::before {
  /* cursor spotlight */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(var(--aqua-rgb), 0.16),
    transparent 60%
  );
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-hi);
}

.tile:hover::before {
  opacity: 1;
}

.tile:active {
  transform: translateY(-1px) scale(0.99);
}

.tile--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.tile--med,
.tile--cta {
  grid-column: span 2;
}

.tile__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.tile__count {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--aqua);
}

.tile--hero .tile__count {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tile__stack {
  position: relative;
  flex: 1;
  min-height: 110px;
}

.tile__stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: #e9eeed;
  padding: 6%;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  transition:
    transform 0.8s var(--ease),
    opacity 0.6s;
}

.tile--hero .tile__stack img {
  width: 34%;
  max-width: 210px;
}

.tile__stack img:nth-child(1) {
  transform: translate(-115%, -50%) rotate(-8deg) scale(0.86);
  opacity: 0.75;
}

.tile__stack img:nth-child(2) {
  transform: translate(-50%, -54%) rotate(0deg);
  z-index: 2;
}

.tile__stack img:nth-child(3) {
  transform: translate(15%, -50%) rotate(8deg) scale(0.86);
  opacity: 0.75;
}

.tile:hover .tile__stack img:nth-child(1) {
  transform: translate(-135%, -52%) rotate(-12deg) scale(0.9);
  opacity: 1;
}

.tile:hover .tile__stack img:nth-child(3) {
  transform: translate(35%, -52%) rotate(12deg) scale(0.9);
  opacity: 1;
}

.tile:hover .tile__stack img:nth-child(2) {
  transform: translate(-50%, -60%) scale(1.04);
}

.tile__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tile--hero .tile__name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.tile__desc {
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.55;
}

.tile__go {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.35s,
    transform 0.45s var(--ease),
    background-color 0.3s;
}

.tile__go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.tile:hover .tile__go,
.tile:focus-visible .tile__go {
  opacity: 1;
  transform: none;
  background: rgba(var(--aqua-rgb), 0.12);
}

.tile:hover .tile__top .tile__count {
  opacity: 0;
}

.tile--hero:hover .tile__top .tile__count {
  opacity: 1;
}

.tile--cta {
  background: linear-gradient(140deg, var(--spark), #c25f18);
  border-color: transparent;
  justify-content: space-between;
  color: #fff;
}

.tile--cta .hud-label {
  color: rgba(255, 255, 255, 0.8);
}

.tile--cta::before {
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
}

.tile__cta-text {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tile__cta-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease);
}

.tile__cta-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile--cta:hover .tile__cta-arrow {
  transform: translateX(6px);
}

/* ── Process / film ─────────────────────────── */
.process__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.film {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-hi);
  background: var(--panel-solid);
  aspect-ratio: 16 / 9;
  box-shadow:
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 0 8px rgba(var(--aqua-rgb), 0.03);
}

.film__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--aqua);
  opacity: 0.8;
  pointer-events: none;
}

.film__corner--tl {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.film__corner--br {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
}

.film__rec {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.62rem;
  color: var(--ink);
  background: rgba(4, 17, 15, 0.6);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.film__rec .dot {
  background: var(--spark);
  width: 6px;
  height: 6px;
}

.steps {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.6rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition:
    background-color 0.5s,
    border-color 0.5s,
    opacity 0.5s;
  opacity: 0.5;
}

.step.is-active {
  opacity: 1;
  background: var(--panel);
  border-color: var(--line);
}

.step__n {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--spark-hi);
  padding-top: 0.3rem;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.step__go {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.step__go:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
  border-radius: 2px;
}

.step p {
  font-size: 0.94rem;
  color: var(--mute);
}

.step__bar {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.5rem;
  height: 2px;
  background: transparent;
  overflow: hidden;
  border-radius: 2px;
}

.step.is-active .step__bar {
  background: var(--line);
}

.step__bar span {
  display: block;
  height: 100%;
  background: var(--aqua);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ── Coverage map ───────────────────────────── */
.coverage {
  background:
    radial-gradient(60% 60% at 75% 50%, rgba(var(--teal-rgb), 0.22), transparent 70%), var(--void);
}

.coverage__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 1.4rem 1rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.stat:nth-child(even) {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.stat dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.stat dd {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.map {
  position: relative;
}

.map__canvas {
  width: 100%;
  aspect-ratio: 1.45;
}

.map--off {
  display: none;
}

.map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-size: 0.66rem;
}

.map__hub {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 0 4px rgba(var(--spark-rgb), 0.2);
}

.map__live {
  color: var(--aqua);
  margin-left: auto;
  min-height: 1em;
}

/* ── Clients ────────────────────────────────── */
.clients__list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.client {
  display: grid;
  grid-template-columns: 4rem 1.1fr 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.client::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(var(--aqua-rgb), 0.1), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.client:hover::before {
  transform: scaleX(1);
}

.client__n {
  font-family: var(--mono);
  color: var(--spark-hi);
  font-size: 0.85rem;
}

.client h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition:
    transform 0.5s var(--ease),
    color 0.3s;
}

.client:hover h3 {
  transform: translateX(10px);
  color: var(--aqua);
}

.client p {
  color: var(--mute);
  font-size: 0.96rem;
}

/* ── Contact ────────────────────────────────── */
.contact__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
  border: 1px solid var(--line-hi);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(var(--teal-rgb), 0.45), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(var(--spark-rgb), 0.14), transparent 70%),
    var(--panel-solid);
}

.contact__panel::after {
  /* the brand ring, watermark-sized */
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  top: -190px;
  border-radius: 50%;
  border: 44px solid rgba(156, 204, 200, 0.05);
  pointer-events: none;
}

.contact__copy .section__lead {
  margin-bottom: 2rem;
}

.contact__list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  align-content: center;
  position: relative;
  z-index: 1;
}

.channel {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: rgba(4, 17, 15, 0.5);
  border: 1px solid var(--line);
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease),
    background-color 0.3s;
}

a.channel:hover {
  border-color: var(--aqua);
  transform: translateX(6px);
  background: rgba(var(--aqua-rgb), 0.06);
}

.channel__val {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
}

.channel--static .channel__val {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--mute);
}

/* ── Footer ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2rem;
  background: #030d0c;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  height: 56px;
  width: auto;
  margin-bottom: 1.1rem;
}

.footer__brand p {
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 18rem;
  margin-bottom: 1.3rem;
}

.footer__socials {
  display: flex;
  gap: 0.6rem;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--mute);
  transition:
    border-color 0.25s,
    color 0.25s;
}

.footer__socials a:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.footer__socials svg {
  width: 16px;
  height: 16px;
}

.footer__title {
  margin-bottom: 1.1rem;
  color: var(--aqua);
}

.footer__nav {
  display: grid;
  gap: 0.6rem;
}

.footer__nav a {
  font-size: 0.92rem;
  color: var(--mute);
  transition: color 0.25s;
  width: fit-content;
}

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

.footer__legal {
  font-size: 0.82rem !important;
  color: var(--dim) !important;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.footer__bottom .hud-label {
  font-size: 0.62rem;
  color: var(--dim);
}

.footer__ga {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}

.footer__ga:hover {
  color: var(--aqua);
}

.footer__ga img {
  height: 22px;
  width: auto;
  opacity: 0.55;
}

/* ── WhatsApp FAB ───────────────────────────── */
.wa-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1fae5b;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(31, 174, 91, 0.6);
  transition: transform 0.35s var(--ease);
}

.wa-fab svg {
  width: 26px;
  height: 26px;
}

.wa-fab:hover {
  transform: scale(1.08);
}

.wa-fab:active {
  transform: scale(0.96);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links,
  .nav__cat {
    display: none;
  }

  .nav__burger {
    display: block;
  }

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

  .hero {
    padding-bottom: 6rem;
  }

  .scanner {
    width: min(100%, 460px);
  }

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

  .process__grid,
  .coverage__grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .nav__cta {
    display: none;
  }

  .nav__logo {
    opacity: 1;
    transform: none;
  }

  .nav__logo img {
    height: 38px;
  }

  .hero__logo {
    display: none;
  }

  .scanner__readout {
    left: 0;
    width: 72%;
  }

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

  .tile--hero,
  .tile--med,
  .tile--cta {
    grid-column: auto;
    grid-row: auto;
  }

  .tile--hero {
    min-height: 380px;
  }

  .client {
    grid-template-columns: 2.5rem 1fr;
  }

  .client p {
    grid-column: 2;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .wrap,
  .hero__inner {
    width: calc(100% - 2rem);
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }

  .hero__meta > div {
    min-width: 0;
  }

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

  .stat:nth-child(even) {
    padding-left: 1rem;
  }
}

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

  .js .reveal,
  .js .hero__logo,
  .js .hero__eyebrow,
  .js .hero__lead,
  .js .hero__ctas,
  .js .hero__meta,
  .js .scanner,
  .js .hero__title .line > span {
    opacity: 1;
    transform: none;
  }

  .brands__row {
    animation: none;
  }
}
