/* =================================================================
   AKAMBRY SYSTEMS — Cinematic Landing (cool/cyan)
   Palette · Type · Motion · Liquid glass · 10-act tone grading
   ================================================================= */

:root {
  /* Base — space black / deep blue */
  --akm-black:    #020305;
  --akm-coal:     #04080F;
  --akm-graphite: #0B1624;
  --akm-line:     #152030;

  /* Texto */
  --akm-bone:     #E6E8EE;
  --akm-ash:      #8A96A8;
  --akm-mute:     #3A4558;

  /* Electric blue accents */
  --akm-glacier:  #00A6FF;
  --akm-cyan:     #0078CC;
  --akm-deep:     #00305A;

  /* Premium vermillion / blood-orange accents */
  --akm-ember:    #D14424;   /* rich vermillion */
  --akm-fire:     #9E2A14;   /* deep blood-orange */
  --akm-blood:    #6B1A0C;   /* dark oxblood */

  /* WhatsApp */
  --wa-green:     #25D366;

  /* Dynamic color grading — electric blue */
  --grade-r: 0;
  --grade-g: 140;
  --grade-b: 255;
  --grade-a: 0.05;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-brand:   'Orbitron', 'Geist', sans-serif;
  --font-body:    'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--akm-black); color: var(--akm-bone); }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
html, body {
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: pan-y;
  line-height: 1.5;
}
/* Render below-the-fold sections lazily to reduce startup work */
.act,
.cta-final,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* =================================================================
   COSMIC BACKDROP — fixed behind every section
   ================================================================= */
.cosmos-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(0,140,255,0.12) 0%, transparent 60%),
    radial-gradient(50% 40% at 15% 80%, rgba(255,90,19,0.08) 0%, transparent 65%),
    linear-gradient(180deg, #020305 0%, #040C1A 30%, #060810 60%, #020305 100%);
}
.cosmos-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(circle at 25% 30%, rgba(0,140,255,0.12), transparent 35%),
    radial-gradient(circle at 75% 65%, rgba(0,100,200,0.07), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(255,90,19,0.06), transparent 35%);
  filter: blur(48px);
  animation: nebulaDrift 32s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-1.5%, 1%) scale(1.06); }
}
.cosmos-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 80% 10%, rgba(186,230,253,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 45% 80%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 70% 50%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 10% 70%, rgba(186,230,253,0.7), transparent 60%),
    radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 50%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 60% 20%, rgba(186,230,253,0.8), transparent 60%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 95% 50%, rgba(186,230,253,0.5), transparent 60%);
  background-size: 220px 220px, 260px 260px, 200px 200px, 280px 280px, 240px 240px, 200px 200px, 320px 320px, 260px 260px, 180px 180px, 200px 200px;
  background-position: 0 0, 40px 60px, 120px 20px, 80px 140px, 30px 100px, 160px 70px, 50px 30px, 100px 110px, 20px 50px, 140px 90px;
  animation: starsTwinkle 5s ease-in-out infinite alternate;
}
.cosmos-stars::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 85%, #fff, transparent 60%),
    radial-gradient(1px 1px at 35% 25%, rgba(186,230,253,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 75% 65%, #fff, transparent 60%),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 95% 35%, rgba(186,230,253,0.7), transparent 60%),
    radial-gradient(1px 1px at 12% 12%, #fff, transparent 60%),
    radial-gradient(1px 1px at 88% 78%, rgba(186,230,253,0.7), transparent 60%);
  background-size: 180px 180px, 240px 240px, 200px 200px, 280px 280px, 220px 220px, 160px 160px, 300px 300px;
  background-position: 60px 20px, 0 80px, 100px 40px, 30px 130px, 90px 10px, 50px 70px, 140px 50px;
  opacity: 0.7;
  animation: starsTwinkle 4s ease-in-out infinite alternate-reverse;
}
@keyframes starsTwinkle {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Grade wash */
.grade-wash {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(120% 80% at 50% 50%,
    rgba(var(--grade-r), var(--grade-g), var(--grade-b), var(--grade-a)) 0%,
    transparent 70%);
  transition: background 1400ms cubic-bezier(0.22, 0.61, 0.36, 1);
  mix-blend-mode: screen;
}

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  background-image:
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1.2px),
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1.5px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
}
/* Lower GPU pressure on constrained devices while preserving hero video */
.perf-lite .cosmos-nebula,
.perf-lite .cosmos-stars,
.perf-lite .grade-wash {
  animation: none !important;
}
.perf-lite .cosmos-nebula {
  filter: blur(22px);
  opacity: 0.42;
}
.perf-lite .cosmos-stars,
.perf-lite .cosmos-stars::after {
  opacity: 0.45;
}
.perf-lite .grain {
  opacity: 0.28;
}
.perf-lite .liquid-glass {
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}
.perf-lite .ticker-track {
  animation-duration: 16s;
}
.perf-lite .btn-solid,
.perf-lite .btn-wa,
.perf-lite .btn-ghost,
.perf-lite .wa-fab,
.perf-lite .akm-logo-anim img,
.perf-lite .akm-logo-anim::before,
.perf-lite .akm-logo-anim::after,
.perf-lite .cta-bg::after,
.perf-lite .cosmonaut-fab,
.perf-lite .cosmonaut-fab .cosmo-art,
.perf-lite .cosmonaut-fab .cosmo-aura,
.perf-lite .cosmonaut-fab .cosmo-badge {
  animation: none !important;
}

/* TYPE */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--akm-glacier);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--akm-glacier);
  margin-right: 10px;
  box-shadow: 0 0 12px var(--akm-glacier);
  animation: pulse 2.4s ease-in-out infinite;
  transform: translateY(-1px);
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: translateY(-1px) scale(0.9); }
  50%      { opacity: 1;    transform: translateY(-1px) scale(1.2); }
}

.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-variant-numeric: tabular-nums;
}

.ash  { color: var(--akm-ash); }
.bone { color: var(--akm-bone); }
.mute { color: var(--akm-mute); }
.gla  { color: var(--akm-glacier); }
.emb  { color: var(--akm-ember); }

/* LIQUID GLASS */
.liquid-glass {
  position: relative;
  background: rgba(0, 20, 50, 0.45);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 166, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(0,166,255,0.08),
    0 8px 32px rgba(0,0,0,0.5);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 400ms ease,
              border-color 400ms ease;
}
.liquid-glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(160deg,
    rgba(0,166,255,0.30) 0%,
    rgba(0,166,255,0.08) 22%,
    rgba(0,166,255,0)    44%,
    rgba(255,90,19,0)    62%,
    rgba(255,90,19,0.06) 82%,
    rgba(255,90,19,0.22) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 48px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,166,255,0.30),
    inset 0 1px 0 rgba(0,166,255,0.14);
  border-color: rgba(0,166,255,0.30);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background 300ms ease,
              color 300ms ease,
              box-shadow 300ms ease;
  white-space: nowrap;
}
.btn .arr { display: inline-block; transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn-solid {
  background: linear-gradient(135deg, #D14424 0%, #9E2A14 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 0 0 1px rgba(209,68,36,0.35),
    0 10px 28px rgba(120,30,12,0.40);
}
.btn-solid:hover {
  background: linear-gradient(135deg, #E25535 0%, #B23722 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 0 0 1px rgba(226,85,53,0.45),
    0 16px 44px rgba(120,30,12,0.55);
  transform: translateY(-1px);
}
.btn-ghost { color: var(--akm-bone); }
.btn-wa {
  background: var(--wa-green);
  color: #04130A;
  font-weight: 600;
}
.btn-wa:hover { background: #2EE07A; transform: translateY(-1px); }

/* === SHEEN + BREATH GLOW for all buttons (periodic shine) === */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn > * { position: relative; z-index: 2; }
.btn::after {
  content: "";
  position: absolute;
  top: -50%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0)   30%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0)   70%,
    transparent 100%
  );
  transform: translateX(0) skewX(-18deg);
  pointer-events: none;
  z-index: 1;
  animation: btnShine 5.5s ease-in-out infinite;
}
@keyframes btnShine {
  0%   { transform: translateX(0)     skewX(-18deg); opacity: 0; }
  6%   { opacity: 1; }
  18%  { transform: translateX(360%)  skewX(-18deg); opacity: 1; }
  20%  { opacity: 0; }
  100% { transform: translateX(360%)  skewX(-18deg); opacity: 0; }
}
/* Stagger so multiple buttons don't shine in unison */
.hero-ctas .btn:nth-child(2)::after,
.cta-final .ctas .btn:nth-child(2)::after { animation-delay: 1.6s; }
.nav-cta .btn[data-modal-open]::after { animation-delay: 0.8s; }
.nav-cta .btn[data-wa-link]::after    { animation-delay: 2.4s; }

/* Ember breath on solid buttons */
.btn-solid {
  animation: emberBreath 4.2s ease-in-out infinite;
}
.btn-solid:hover { animation: none; }
@keyframes emberBreath {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.18) inset,
      0 0 0 1px rgba(209,68,36,0.32),
      0 10px 28px rgba(120,30,12,0.38),
      0 0 0 0 rgba(209,68,36,0.0);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.22) inset,
      0 0 0 1px rgba(226,85,53,0.55),
      0 12px 34px rgba(120,30,12,0.52),
      0 0 28px 2px rgba(209,68,36,0.28);
  }
}

/* WhatsApp green breath */
.btn-wa {
  box-shadow: 0 0 0 0 rgba(37,211,102,0);
  animation: waBreath 4.2s ease-in-out infinite;
  animation-delay: 1.4s;
}
.btn-wa:hover { animation: none; }
@keyframes waBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
  50%      { box-shadow: 0 10px 30px rgba(37,211,102,0.35), 0 0 24px 2px rgba(37,211,102,0.40); }
}

/* Ghost buttons get a sapphire breath via outer ring */
.btn-ghost {
  animation: ghostBreath 5s ease-in-out infinite;
  animation-delay: 0.6s;
}
.btn-ghost:hover { animation: none; }
@keyframes ghostBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,166,255,0.0), 0 8px 32px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 22px 1px rgba(0,166,255,0.35), 0 8px 32px rgba(0,0,0,0.5); }
}

/* Floating WhatsApp FAB — stronger periodic glow */
.wa-fab { animation: waFabBreath 3.8s ease-in-out infinite; }
.wa-fab:hover { animation: none; }
@keyframes waFabBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.0), 0 12px 36px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 36px 6px rgba(37,211,102,0.55), 0 12px 36px rgba(0,0,0,0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .btn::after,
  .btn-solid, .btn-wa, .btn-ghost, .wa-fab { animation: none !important; }
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 600ms ease, backdrop-filter 600ms ease, border-color 600ms ease, padding 400ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,5,7,0.66);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(31,31,40,0.6);
  padding: 12px clamp(20px, 4vw, 56px);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px;
  background: url('assets/akambry-logo.png') center/contain no-repeat;
  border: none;
  position: relative;
  image-rendering: auto;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.35));
  transition: filter 360ms ease, transform 360ms cubic-bezier(0.2,0.8,0.2,1);
  flex-shrink: 0;
}
.brand:hover .brand-mark {
  transform: scale(1.02);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.42));
}
.brand-mark::after { content: none; }
.nav.scrolled .brand-mark { width: 36px; height: 36px; }

/* ============ AKAMBRY LOGO — system-wide ============ */
/* Subtle watermark / background logo — for use as ambient brand presence */
.akm-watermark {
  position: absolute;
  background: url('assets/akambry-logo.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  filter: saturate(105%);
}
.akm-watermark--giant {
  width: min(90vw, 1100px);
  aspect-ratio: 1.18 / 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.045;
  filter: saturate(108%);
}
.akm-watermark--corner {
  width: 280px; aspect-ratio: 1.18 / 1;
  opacity: 0.035;
}
@media (max-width: 720px) {
  .akm-watermark--giant { width: 130vw; opacity: 0.035; }
  .akm-watermark--corner { width: 180px; opacity: 0.03; }
}

/* Inline logo glyph — for use anywhere a small mark fits naturally */
.akm-glyph {
  display: inline-block;
  width: 1em; height: 1em;
  background: url('assets/akambry-logo.png') center/contain no-repeat;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

/* Animated logo for showcase moments — gentle counter-rotating ring on hover */
.akm-logo-anim {
  position: relative;
  display: inline-grid;
  place-items: center;
}
.akm-logo-anim img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,0.40));
  animation: akmLogoBreath 4.8s ease-in-out infinite;
}
@keyframes akmLogoBreath {
  0%, 100% { filter: drop-shadow(0 1px 8px rgba(0,0,0,0.38)); }
  50%      { filter: drop-shadow(0 1px 10px rgba(0,0,0,0.44)); }
}
.akm-logo-anim::before {
  content: "";
  position: absolute; inset: -14%;
  border-radius: 50%;
  border: 1px dashed rgba(0,166,255,0.18);
  animation: akmRingSpin 24s linear infinite;
  pointer-events: none;
}
.akm-logo-anim::after {
  content: "";
  position: absolute; inset: -22%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(209,68,36,0.35);
  border-right-color: rgba(0,166,255,0.30);
  animation: akmRingSpin 14s linear infinite reverse;
  pointer-events: none;
}
@keyframes akmRingSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .akm-logo-anim img,
  .akm-logo-anim::before,
  .akm-logo-anim::after { animation: none; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-word {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 0.20em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--akm-bone);
}
.brand-sub {
  font-family: 'Michroma', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00A6FF 0%, #D14424 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 2px;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--akm-ash);
  position: relative;
  padding: 4px 0;
  transition: color 200ms;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--akm-glacier);
  transition: right 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover { color: var(--akm-bone); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 18px; font-size: 0.84rem; }
.nav-hamburger { display: none; }

/* Language switcher (EN / ES) */
.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(186,230,253,0.10);
  background: rgba(255,255,255,0.02);
}
.lang-switch button {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0.45;
  transition: opacity 220ms, transform 220ms;
  padding: 0;
}
.lang-switch button:hover { opacity: 0.8; transform: scale(1.05); }
.lang-switch button.is-active {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(186,230,253,0.45), 0 0 14px rgba(56,189,248,0.18);
}
.lang-switch .flag { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: block; }
.lang-switch .flag svg { width: 100%; height: 100%; display: block; }

@media (max-width: 720px) {
  .nav {
    width: calc(100% - 16px);
    max-width: calc(100vw - 16px);
    left: 8px;
    right: 8px;
    transform: none;
    padding: 9px 10px;
  }
  .brand {
    max-width: min(45vw, 170px);
    overflow: hidden;
  }
  .nav-cta {
    min-width: 0;
    gap: 6px;
  }
  .nav-cta .btn-solid {
    padding: 10px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .lang-switch {
    padding: 3px;
  }
  .lang-switch button { width: 28px; height: 28px; }
  .lang-switch .flag { width: 18px; height: 18px; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-hamburger { display: none; }
  .nav { padding-left: 14px; padding-right: 14px; }
  .nav-cta { gap: 8px; flex-shrink: 0; }
  .nav-cta .btn { padding: 10px 15px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { font-size: 0.78rem; letter-spacing: 0.16em; }
  .brand-sub { font-size: 0.42rem; letter-spacing: 0.36em; }
}

/* LAYOUT */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 10;
}
section { position: relative; }

/* PRE-LOAD */
.preload {
  position: fixed; inset: 0;
  background: var(--akm-black);
  z-index: 100;
  display: grid;
  place-items: center;
  transition: opacity 900ms ease 200ms, visibility 0ms 1200ms;
}
.preload.gone { opacity: 0; visibility: hidden; }
.preload-mark {
  text-align: center;
  display: flex; flex-direction: column; gap: 28px;
  align-items: center;
}
.preload-logo {
  width: clamp(96px, 14vw, 168px);
  aspect-ratio: 1.18 / 1;
  background: url('assets/akambry-logo.png') center/contain no-repeat;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  animation: preloadLogo 1100ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards;
  image-rendering: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}
@keyframes preloadLogo {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes preloadLogoPulse {
  0%, 100% { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.42)); }
  50%      { filter: drop-shadow(0 2px 14px rgba(0,0,0,0.52)); }
}
.preload-logo.is-live {
  animation: preloadLogoPulse 3.6s ease-in-out infinite;
}
.preload-word {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--akm-bone);
  position: relative;
}
.preload-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) blur(8px);
  animation: preInk 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes preInk { to { opacity: 1; transform: translateY(0) blur(0); } }
.preload-bar {
  width: 240px; height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.preload-bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--akm-glacier), transparent);
  transform: translateX(-100%);
  animation: preBar 1.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@keyframes preBar { to { transform: translateX(100%); } }
.preload-sub {
  font-family: 'Michroma', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00A6FF 0%, #D14424 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100svh;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media,
.cta-bg {
  background: url('assets/poster-optimized.jpg') center/cover no-repeat;
}
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.3) hue-rotate(-15deg);
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-media video.active { opacity: 1; }
@keyframes heroDrift {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.2%, 0.6%); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 30%, transparent 0%, rgba(5,5,7,0.45) 65%, rgba(5,5,7,0.92) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.55) 0%, transparent 28%, transparent 50%, rgba(5,5,7,0.9) 100%);
  pointer-events: none;
}
.hero-blur-mask {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 25%, rgba(5,5,7,0.2) 45%, rgba(5,5,7,0.7) 65%, rgba(5,5,7,0.95) 82%, rgba(5,5,7,1) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 100px clamp(20px, 4vw, 56px) clamp(40px, 6vh, 100px);
}
.hero-content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    height: auto;
  }
  .hero-inner {
    align-items: flex-end;
    padding:
      calc(clamp(96px, 10.5vh, 118px) + env(safe-area-inset-top))
      clamp(18px, 4.8vw, 28px)
      clamp(16px, 2.6vh, 26px);
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .hero-stack {
    max-width: 100%;
    min-width: 0;
  }
  .hero-h1 {
    font-size: clamp(1.92rem, 8.4vw, 2.72rem);
    margin-bottom: 18px;
    max-width: min(17ch, 100%);
  }
  .hero-sub {
    font-size: clamp(0.98rem, 4.2vw, 1.14rem);
    line-height: 1.52;
    margin-bottom: 24px;
    max-width: 30ch;
  }
  .hero-ctas {
    margin-bottom: 12px;
    gap: 10px;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .scrolldown {
    display: none;
  }
}
.hero-eyebrow {
  display: inline-flex; align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: var(--akm-bone);
  text-transform: uppercase;
}
.hero-h1 {
  font-family: 'Sora', 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  font-size: clamp(2.55rem, 4.55vw, 5.05rem);
  line-height: 0.96;
  color: #f8fbff;
  margin-bottom: 32px;
  letter-spacing: 0;
  text-wrap: balance;
  max-width: 980px;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(0, 92, 155, 0.18);
}
.hero-h1 .l1 {
  display: block;
  margin-bottom: 0.16em;
  color: #f9fcff;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbff 36%, #c8d9e6 70%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-variation-settings: normal;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.44));
}
.hero-h1 .l2 {
  display: block;
  font-size: 0.70em;
  color: #ff9a4a;
  background:
    linear-gradient(92deg, #ffe7d2 0%, #ffb06b 24%, #ff7a2f 55%, #ff4f1f 82%, #ffc08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.98;
  font-style: normal;
  font-weight: 700;
  font-variation-settings: normal;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.70),
    0 0 24px rgba(255, 122, 61, 0.26);
  filter: drop-shadow(0 0 16px rgba(255, 122, 47, 0.18));
}
.hero-sub {
  max-width: 46rem;
  color: #dce8f0;
  font-family: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  line-height: 1.62;
  margin-bottom: 40px;
  font-weight: 560;
  letter-spacing: 0;
  font-style: oblique 7deg;
  text-transform: none;
  background:
    linear-gradient(92deg, #e9fbff 0%, #91e9ff 28%, #35baff 52%, #ffb36f 78%, #ffe2c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.86),
    0 0 14px rgba(0, 166, 255, 0.22),
    0 0 18px rgba(255, 122, 47, 0.12);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-ctas .btn-ghost { padding: 14px 22px; border-radius: 999px; }
.hero-trust {
  display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--akm-mute);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 10px; }
.hero-trust .sep { color: var(--akm-line); }

@media (max-width: 900px) {
  .hero-h1 {
    font-size: clamp(2.06rem, 8vw, 2.9rem);
    line-height: 0.99;
    margin-bottom: 18px;
    max-width: min(18ch, 100%);
  }
  .hero-h1 .l2 {
    font-size: 0.74em;
  }
  .hero-sub {
    font-size: clamp(0.98rem, 4vw, 1.12rem);
    line-height: 1.52;
    margin-bottom: 24px;
    max-width: 31ch;
  }
}

@media (max-width: 430px) {
  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-h1 {
    font-size: clamp(1.82rem, 8.8vw, 2.26rem);
    max-width: 100%;
  }
  .hero-sub {
    font-size: clamp(0.92rem, 4.3vw, 1.02rem);
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 10px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding-left: 14px;
    padding-right: 14px;
    white-space: normal;
    text-align: center;
  }
  .hero-trust {
    display: none;
  }
}

/* HERO · REGISTRATION CARD (absolute, bottom-right — no grid impact) */
.hero-form {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(24px, 5vh, 56px);
  z-index: 5;
  width: 290px;
  max-width: calc(100vw - 40px);
  padding: 16px 16px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  isolation: isolate;
}
@media (max-width: 900px) {
  .hero-form { display: none; }
}
.hero-form-head { display: flex; flex-direction: column; gap: 4px; }
.hero-form-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  color: var(--akm-glacier);
  text-transform: uppercase;
}
.hero-form-eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--akm-glacier);
  box-shadow: 0 0 8px var(--akm-glacier);
  animation: pulse 2s ease-in-out infinite;
}
.hero-form-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--akm-bone);
}
.hero-form-sub { display: none; }
.hero-form-body { display: flex; flex-direction: column; gap: 0; }
.field.hero-field { margin-bottom: 6px; gap: 0; }
.field.hero-field label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.field.hero-field input,
.field.hero-field select {
  padding: 9px 11px;
  font-size: 0.82rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.field.hero-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--akm-ash) 50%),
    linear-gradient(135deg, var(--akm-ash) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.hero-form-submit {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.hero-form-fine {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--akm-mute);
  line-height: 1.4;
}
.hero-form-fine svg { color: var(--akm-glacier); flex-shrink: 0; width: 9px; height: 9px; }
.hero-form-success {
  display: none;
  text-align: center;
  padding: 12px 4px 6px;
}
.hero-form-success.show { display: block; }
.hero-form-success .ico {
  width: 36px; height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--akm-glacier);
  border: 1px solid rgba(0,166,255,0.35);
  background: rgba(0,166,255,0.08);
}
.hero-form-success .ttl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--akm-bone);
  margin-bottom: 4px;
}
.hero-form-success .bdy {
  color: var(--akm-ash);
  font-size: 0.78rem;
}

.live {
  width: 320px;
  padding: 18px 20px;
  align-self: end;
  justify-self: end;
}
@media (max-width: 900px) {
  .live { width: 100%; justify-self: stretch; }
}
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.live-head .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--akm-ash);
  text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 12px rgba(37,211,102,0.7);
  animation: pulse 1.8s ease-in-out infinite;
}
.live-feed { position: relative; height: 132px; overflow: hidden; }
.live-row {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem;
  color: var(--akm-bone);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16,1,0.3,1);
  font-variant-numeric: tabular-nums;
}
.live-row .ind {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--akm-glacier);
  box-shadow: 0 0 8px var(--akm-glacier);
  flex-shrink: 0;
}
.live-row .meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--akm-mute);
  text-transform: uppercase;
}
.live-row.is-in { opacity: 1; transform: translateY(0); }
.live-row.is-out { opacity: 0; transform: translateY(-12px); }
.live-row .who { color: var(--akm-ash); }

.scrolldown {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  color: var(--akm-mute);
  text-transform: uppercase;
}
.scrolldown .rail {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--akm-ash));
  position: relative;
  overflow: hidden;
}
.scrolldown .rail::after {
  content: ""; position: absolute; top: -50%; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--akm-glacier));
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop { to { top: 100%; } }

@media (max-width: 760px) {
  .scrolldown {
    display: none;
  }
}

/* TICKER */
.ticker {
  position: relative;
  background: var(--akm-coal);
  border-top: none;
  border-bottom: none;
  overflow: clip;
  contain: paint;
  z-index: 4;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 48px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  top: 0;
  background: linear-gradient(to bottom, var(--akm-black), transparent);
}
.ticker::after {
  bottom: 0;
  background: linear-gradient(to top, var(--akm-black), transparent);
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  color: var(--akm-ash);
  animation: tickerMove 16s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--akm-glacier); }
.ticker-item .hot { color: var(--akm-ember); }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* COMMON SECTION */
.act {
  padding: clamp(96px, 14vh, 180px) 0;
  position: relative;
  z-index: 4;
  /* Prevent decorative off-canvas elements from creating sideways page scroll */
  overflow-x: hidden;
  overflow-x: clip;
}
.act .eyebrow { margin-bottom: 28px; }
.act h2 { font-size: clamp(2rem, 4.5vw, 4rem); max-width: 22ch; }

/* TENSIÓN */
.tension {
  background: linear-gradient(180deg, transparent 0%, rgba(40,15,5,0.45) 60%, rgba(70,25,8,0.55) 100%);
  position: relative;
  overflow: hidden;
}
.tension::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(234,88,12,0.18), transparent 70%),
    radial-gradient(50% 60% at 10% 80%, rgba(220,38,38,0.10), transparent 70%);
  pointer-events: none;
}
.tension-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .tension-grid { grid-template-columns: 1fr; gap: 48px; } }
.tension h2 { color: var(--akm-bone); }
.tension h2 .accent { color: var(--akm-ember); font-style: italic; font-weight: 400; }
.tension-list { list-style: none; display: flex; flex-direction: column; }
.tension-list li {
  border-top: 1px solid var(--akm-line);
  padding: 24px 0;
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  color: var(--akm-bone);
  line-height: 1.55;
  display: flex; gap: 22px; align-items: flex-start;
}
.tension-list li:last-child { border-bottom: 1px solid var(--akm-line); }
.tension-list .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--akm-fire);
  padding-top: 4px;
  white-space: nowrap;
}

/* SISTEMA */
.sistema {
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(3,105,161,0.22), transparent 70%);
  text-align: center;
}
.sistema h2 { margin-left: auto; margin-right: auto; }
.sistema h2 em { font-style: italic; font-weight: 400; color: var(--akm-glacier); }
.sistema-line {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--akm-ash);
  max-width: 38rem;
  margin: 40px auto 0;
}
.radial { position: relative; width: min(720px, 100%); aspect-ratio: 1.05/1; margin: 56px auto 0; }
.radial svg { width: 100%; height: 100%; overflow: visible; display: block; }
.radial-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 152px; height: 152px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,18,0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(186,230,253,0.16),
    0 0 80px rgba(56,189,248,0.18);
  cursor: pointer;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.radial-core:hover,
.radial-core:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 0 1px rgba(186,230,253,0.34),
    0 0 90px rgba(56,189,248,0.26),
    0 0 44px rgba(234,88,12,0.14);
  outline: none;
}
.radial-core::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(186,230,253,0.16);
  animation: corePulse 4.6s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.radial-core .word {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--akm-bone);
}
.radial-core .logo {
  width: 78px;
  aspect-ratio: 1.18 / 1;
  margin: 0 auto 10px;
  background: url('assets/akambry-logo.png') center/contain no-repeat;
  image-rendering: auto;
  filter: drop-shadow(0 1px 7px rgba(0,0,0,0.44));
  animation: coreLogoFloat 5.2s ease-in-out infinite;
}
@keyframes coreLogoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 1px 7px rgba(0,0,0,0.42)); }
  50%      { transform: translateY(-3px); filter: drop-shadow(0 1px 10px rgba(0,0,0,0.52)); }
}
.radial-core .sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  color: var(--akm-mute);
  margin-top: 6px;
}
.radial-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.radial-node .pip {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(10,10,18,0.9);
  border: 1px solid rgba(186,230,253,0.4);
  box-shadow: 0 0 18px rgba(56,189,248,0.35);
  position: relative;
}
.radial-node .pip::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--akm-glacier);
  animation: nodePulse 4s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
.radial-node .lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--akm-ash);
  text-transform: uppercase;
  white-space: nowrap;
}
.radial path.spoke { stroke: rgba(186,230,253,0.18); stroke-width: 1; fill: none; }
.radial circle.ring { fill: none; stroke: rgba(186,230,253,0.06); stroke-width: 1; }

.system-video-popover {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(92px, 10vh, 118px);
  z-index: 92;
  width: min(520px, calc(100vw - 28px));
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}
.system-video-popover.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.system-video-card {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  background: rgba(4, 7, 13, 0.86);
  border: 1px solid rgba(186,230,253,0.22);
  box-shadow: 0 22px 70px rgba(0,0,0,0.52), 0 0 36px rgba(0,166,255,0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.system-video-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #020305;
  object-fit: cover;
}
.system-video-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--akm-bone);
  background: rgba(5, 8, 14, 0.92);
  border: 1px solid rgba(186,230,253,0.24);
  box-shadow: 0 10px 24px rgba(0,0,0,0.42);
}
.system-video-close:hover,
.system-video-close:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,0.48);
  outline: none;
}
@media (max-width: 760px) {
  .system-video-popover {
    left: 14px;
    right: 14px;
    bottom: 88px;
    width: auto;
  }
  .system-video-card {
    padding: 8px;
    border-radius: 16px;
  }
}

/* SHOWCASE */
.showcase { background: transparent; padding-bottom: 0; }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.showcase-head h2 { color: var(--akm-bone); }
.showcase-head .meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: var(--akm-mute);
}
.showcase-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px clamp(20px, 4vw, 56px) clamp(60px, 10vh, 120px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
}
.showcase-rail::-webkit-scrollbar { display: none; }
.module-card {
  flex: 0 0 min(380px, 80vw);
  min-height: 480px;
  padding: 0;
  display: flex; flex-direction: column;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
}
.module-card .card-visual {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
  background: linear-gradient(160deg, rgba(0,20,50,0.9) 0%, rgba(2,5,10,0.95) 100%);
  border-bottom: 1px solid rgba(0,166,255,0.12);
}
.module-card .card-visual svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.module-card .card-body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column;
  flex: 1; gap: 10px;
}
.module-card .card-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--akm-mute);
}
.module-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--akm-bone);
}
.module-card p {
  color: var(--akm-ash);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.module-card .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--akm-glacier);
  align-self: flex-start;
  border: 1px solid rgba(0,166,255,0.20);
  background: rgba(0,166,255,0.05);
  margin-top: 6px;
  transition: background 300ms, border-color 300ms;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.module-card .pill:hover,
.module-card .pill:focus-visible {
  background: rgba(0,166,255,0.12);
  border-color: rgba(0,166,255,0.40);
  outline: none;
}

/* PROCESO */
.proceso { background: transparent; }
.proceso h2 em { font-style: italic; font-weight: 400; color: var(--akm-glacier); }
.proceso-stack { display: flex; flex-direction: column; gap: 24px; margin-top: 80px; }
.proc-step {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--akm-line);
  position: relative;
}
.proc-step:last-child { border-bottom: 1px solid var(--akm-line); }
@media (max-width: 760px) { .proc-step { grid-template-columns: 1fr; gap: 16px; } }
.proc-step .big {
  font-family: 'Orbitron', 'Geist Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: rgba(0, 166, 255, 0.12);
  -webkit-text-stroke: 1px var(--akm-glacier);
  text-shadow:
    0 0 10px rgba(0, 166, 255, 0.24),
    0 0 24px rgba(0, 166, 255, 0.12);
  transform: skewX(-5deg);
  display: block;
}
.proc-step .title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  letter-spacing: -0.005em;
  color: var(--akm-bone);
  margin-bottom: 14px;
  display: flex; gap: 14px; align-items: baseline;
}
.proc-step .title .tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  color: var(--akm-glacier);
  text-transform: uppercase;
  font-weight: 500;
}
.proc-step .desc {
  font-size: 1rem;
  color: var(--akm-ash);
  max-width: 38rem;
  line-height: 1.65;
}

/* RESULTADOS */
.resultados { background: linear-gradient(180deg, transparent, rgba(6,9,18,0.5)); }
.resultados h2 em { font-style: italic; font-weight: 400; color: var(--akm-glacier); }
.resultados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
@media (max-width: 900px) { .resultados-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  /* Avoid placeholder gap between Process and Evidence on mobile */
  #act-06,
  #act-07 {
    content-visibility: visible;
    contain-intrinsic-size: unset;
  }
  #act-06 {
    padding-bottom: clamp(52px, 7vh, 76px);
  }
  #act-07 {
    padding-top: clamp(52px, 7vh, 76px);
  }
}
@media (max-width: 760px) {
  .act {
    padding-top: clamp(64px, 8vh, 84px);
    padding-bottom: clamp(64px, 8vh, 84px);
  }
  .showcase {
    padding-bottom: 0;
  }
  .showcase-head {
    margin-bottom: 38px;
  }
  .showcase-rail {
    padding-bottom: clamp(44px, 6vh, 58px);
  }
  .proceso-stack {
    margin-top: 42px;
    gap: 14px;
  }
  .proc-step {
    padding: 30px 0;
  }
  .resultados-grid {
    margin-top: 38px;
  }
  .faq-list {
    margin-top: 40px;
  }
}
.case-card {
  padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
  min-height: 360px;
}
.case-meta { display: flex; gap: 14px; align-items: center; }
.case-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--akm-deep), var(--akm-glacier));
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(186,230,253,0.28);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 6px 18px rgba(56,189,248,0.18);
  flex-shrink: 0;
}
.case-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.case-avatar::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,255,255,0.18), transparent 65%);
  pointer-events: none;
}
.case-meta .who { font-weight: 500; color: var(--akm-bone); font-size: 0.95rem; }
.case-meta .where {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--akm-mute);
  text-transform: uppercase;
  margin-top: 4px;
}
.case-metric {
  font-family: 'Orbitron', var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.15rem, 4.4vw, 3rem);
  letter-spacing: 0.01em;
  color: #BAE6FD;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow:
    0 0 4px rgba(0,166,255,0.95),
    0 0 10px rgba(0,166,255,0.55),
    0 0 24px rgba(0,166,255,0.34),
    0 0 42px rgba(0,120,204,0.24);
  animation: neonFlicker 6s ease-in-out infinite;
}
@keyframes neonFlicker {
  0%, 46%, 49%, 82%, 84%, 100% {
    text-shadow:
      0 0 4px rgba(0,166,255,0.95),
      0 0 10px rgba(0,166,255,0.55),
      0 0 24px rgba(0,166,255,0.34),
      0 0 42px rgba(0,120,204,0.24);
  }
  47%, 83% {
    text-shadow:
      0 0 2px rgba(0,166,255,0.55),
      0 0 8px rgba(0,166,255,0.30);
  }
}
.case-metric .unit {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.36em;
  color: var(--akm-ash);
  letter-spacing: 0.22em;
  margin-left: 10px;
  text-shadow: none;
  vertical-align: middle;
}
.case-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04rem;
  color: var(--akm-bone);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.case-period {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--akm-mute);
  text-transform: uppercase;
  margin-top: auto;
}
.case-disclaimer {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--akm-mute);
  text-transform: uppercase;
}

/* FAQ */
.faq {
  background: transparent;
  position: relative;
}
.faq::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(180px, 24vh, 320px);
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(2,3,5,0.0) 0%,
      rgba(2,3,5,0.44) 58%,
      rgba(2,3,5,0.92) 100%),
    radial-gradient(70% 90% at 50% 100%, rgba(0,166,255,0.12), transparent 72%);
  z-index: 2;
}
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 56px; max-width: 880px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  color: var(--akm-bone);
  letter-spacing: -0.005em;
  transition: color 200ms ease;
}
.faq-q .plus {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--akm-line);
  flex-shrink: 0;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), background 200ms;
}
.faq-q .plus svg { width: 12px; height: 12px; }
.faq-item.open .faq-q .plus { transform: rotate(135deg); background: rgba(186,230,253,0.08); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 600ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq-a-inner {
  padding: 0 26px 24px;
  color: var(--akm-ash);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* CTA FINAL */
.cta-final {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(96px, 14vh, 160px) 0;
  isolation: isolate;
}
.cta-final::before,
.cta-final::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 220px;
  z-index: 3;
  pointer-events: none;
}
.cta-final::before {
  top: 0;
  height: clamp(300px, 34vh, 460px);
  background: linear-gradient(
    to bottom,
    rgba(2,3,5,0.98) 0%,
    rgba(2,3,5,0.82) 18%,
    rgba(2,3,5,0.44) 52%,
    rgba(2,3,5,0.10) 78%,
    transparent 100%
  );
}
.cta-final::after {
  bottom: 0;
  height: clamp(300px, 34vh, 460px);
  background: linear-gradient(
    to top,
    rgba(2,3,5,0.98) 0%,
    rgba(2,3,5,0.82) 18%,
    rgba(2,3,5,0.44) 52%,
    rgba(2,3,5,0.10) 78%,
    transparent 100%
  );
}
.cta-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transform-origin: center center;
  filter: brightness(0.55) saturate(1.3) hue-rotate(-15deg);
  opacity: 0;
  transition: opacity 2s ease;
}
.cta-bg video.active { opacity: 1; }
.cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(2,3,5,0.82) 0%,
      rgba(2,3,5,0.36) 8%,
      rgba(2,3,5,0.0) 20%,
      rgba(2,3,5,0.0) 80%,
      rgba(2,3,5,0.36) 92%,
      rgba(2,3,5,0.82) 100%),
    linear-gradient(180deg,
      rgba(2,3,5,0.92) 0%,
      rgba(2,3,5,0.58) 14%,
      rgba(2,3,5,0.18) 34%,
      rgba(2,3,5,0.0) 48%,
      rgba(2,3,5,0.0) 56%,
      rgba(2,3,5,0.18) 68%,
      rgba(2,3,5,0.58) 86%,
      rgba(2,3,5,0.92) 100%);
}
.cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(234,88,12,0.32), transparent 65%),
    radial-gradient(80% 50% at 50% 100%, rgba(220,38,38,0.18), transparent 75%),
    linear-gradient(180deg, rgba(5,5,7,0.3), rgba(5,5,7,0.75));
  mix-blend-mode: screen;
  animation: ctaBreath 9s ease-in-out infinite alternate;
}
@keyframes ctaBreath { from { opacity: 0.7; } to { opacity: 1; } }
.cta-final .wrap { text-align: center; z-index: 4; }
.cta-final .cta-logo {
  display: grid;
  width: clamp(72px, 9vw, 116px);
  aspect-ratio: 1.18 / 1;
  margin: 0 auto 28px;
}
.cta-final .cta-logo img { width: 100%; height: 100%; object-fit: contain; }
.cta-final h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  margin: 28px auto 32px;
  max-width: 18ch;
  color: var(--akm-bone);
}
.cta-final h2 em { font-style: italic; font-weight: 300; color: var(--akm-ember); }
.cta-final p {
  max-width: 38rem;
  margin: 0 auto 40px;
  background: linear-gradient(105deg, #d9f6ff 0%, #46c8ff 34%, #ffe1be 64%, #ff9b45 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.96;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  text-shadow: 0 0 18px rgba(0, 166, 255, 0.16), 0 0 22px rgba(234, 88, 12, 0.10);
}
.cta-final .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.cta-final .signoff {
  font-family: 'Michroma', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00A6FF 0%, #D14424 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.8;
}
@media (max-width: 900px) {
  /* Remove hard seam feeling between FAQ and the final video block on mobile */
  #act-08 {
    padding-bottom: clamp(8px, 2.5vh, 20px);
  }
  #act-09 {
    min-height: 80vh;
    margin-top: -28px;
    padding-top: clamp(26px, 5vh, 52px);
  }
  .cta-final::before,
  .cta-final::after {
    height: 210px;
  }
  .cta-final::before {
    height: clamp(240px, 30vh, 320px);
    background: linear-gradient(
      to bottom,
      rgba(2,3,5,0.98) 0%,
      rgba(2,3,5,0.78) 22%,
      rgba(2,3,5,0.34) 60%,
      transparent 100%);
  }
  .cta-final::after {
    height: clamp(240px, 30vh, 320px);
    background: linear-gradient(
      to top,
      rgba(2,3,5,0.98) 0%,
      rgba(2,3,5,0.78) 22%,
      rgba(2,3,5,0.34) 60%,
      transparent 100%);
  }
  .cta-bg video {
    object-position: 50% 28%;
    transform: scale(1.12);
    filter: brightness(0.68) saturate(1.25) hue-rotate(-12deg);
  }
  .cta-bg::before {
    background:
      linear-gradient(90deg,
        rgba(2,3,5,0.64) 0%,
        rgba(2,3,5,0.24) 9%,
        rgba(2,3,5,0.0) 22%,
        rgba(2,3,5,0.0) 78%,
        rgba(2,3,5,0.24) 91%,
        rgba(2,3,5,0.64) 100%),
      linear-gradient(180deg,
        rgba(2,3,5,0.82) 0%,
        rgba(2,3,5,0.48) 18%,
        rgba(2,3,5,0.12) 42%,
        rgba(2,3,5,0.0) 58%,
        rgba(2,3,5,0.10) 68%,
        rgba(2,3,5,0.48) 84%,
        rgba(2,3,5,0.82) 100%);
  }
}

/* FOOTER */
.footer {
  background: transparent;
  border-top: none;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 80px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 80px);
  position: relative;
  overflow: hidden;
  padding: 80px 0 32px;
}
.footer-stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.55; }
.footer-stars i {
  position: absolute;
  width: 1px; height: 1px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--akm-mute);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer a, .footer li {
  display: inline-flex; gap: 10px; align-items: center;
  color: var(--akm-ash);
  font-size: 0.92rem;
  list-style: none;
  padding: 4px 0;
  transition: color 200ms;
}
.footer li.footer-address {
  align-items: flex-start;
  line-height: 1.35;
  max-width: 28ch;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer a:hover { color: var(--akm-glacier); }
.footer .footer-brand .tag { color: var(--akm-ash); margin-top: 14px; max-width: 32ch; font-size: 0.92rem; }
.footer-socials { display: flex; gap: 12px; margin-top: 22px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--akm-line);
  display: inline-grid; place-items: center;
  padding: 0;
}
.footer-socials a:hover { background: rgba(186,230,253,0.06); border-color: rgba(186,230,253,0.3); }
.footer-bottom {
  border-top: 1px solid var(--akm-line);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--akm-mute);
  text-transform: uppercase;
}

/* FLOATING CONVERSION */
.wa-fab {
  position: fixed;
  right: clamp(18px, 3vw, 28px);
  bottom: clamp(18px, 3vw, 28px);
  z-index: 70;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #04130A;
  display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(37,211,102,0.35), 0 0 0 1px rgba(0,0,0,0.1);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wa-fab::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--wa-green);
  animation: waRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waRing {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }
@media (max-width: 760px) { .wa-fab { bottom: 84px; } }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 65;
  display: none;
  background: rgba(5,5,7,0.92);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--akm-line);
  padding: 10px;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sticky-cta.is-in { transform: translateY(0); }
.sticky-cta .btn { flex: 1; justify-content: center; padding: 14px 16px; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* =================================================================
   KOSMO — official Akambry mascot launcher (image-based)
   Floats bottom-left, no card / no frame / no chrome around the cat.
   States: idle | hover | open | attentive | responding | empathy
   ================================================================= */
.cosmonaut-fab {
  position: fixed;
  left: clamp(14px, 2.4vw, 26px);
  bottom: clamp(60px, 6.4vh, 92px);
  z-index: 70;
  /* The mascot art is ~458×589 (~0.78 aspect). Generous touch target. */
  width: clamp(108px, 13vw, 148px);
  height: clamp(140px, 16.8vw, 192px);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: block;
  /* idle: slow weightless float */
  animation: kosmoFloat 6.4s ease-in-out infinite;
  transform-origin: 50% 80%;
  will-change: transform;
}
.cosmonaut-fab:focus-visible {
  outline: 2px solid rgba(186,230,253,0.85);
  outline-offset: 6px;
  border-radius: 16px;
}

/* The stage gives us a containing block for art + blink + sparks,
   and a separate transform layer that hover/active states drive. */
.cosmonaut-fab .cosmo-stage {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 80%;
  transition:
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cosmonaut-fab .cosmo-stage::before {
  content: none;
}
.cosmonaut-fab .cosmo-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  /* soft breathing — subtle non-uniform scale */
  animation: kosmoBreathe 4.2s ease-in-out infinite;
  filter:
    brightness(1.34)
    contrast(1.04)
    saturate(1.32)
    drop-shadow(0 5px 9px rgba(0, 0, 0, 0.36));
  will-change: transform, filter;
}

/* Blink overlay — positioned over the helmet eyes.
   Quick scale-Y to 0 = blink. Fully decorative. */
.cosmonaut-fab .cosmo-blink {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 44%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0; /* hidden by default — JS triggers blink/expression */
  transition: opacity 120ms ease;
  filter:
    brightness(1.12)
    saturate(1.35)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.26));
}
.cosmonaut-fab .cosmo-blink.show { opacity: 1; }

/* Sparkle/dust burst — fires on click/celebrate */
.cosmonaut-fab .cosmo-spark {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 60%;
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  filter:
    brightness(1.18)
    saturate(1.5)
    blur(0.25px);
}
.cosmonaut-fab.celebrate .cosmo-spark {
  animation: kosmoSparkle 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Soft floor aura — colored glow grounding Kosmo on any background. */
.cosmonaut-fab .cosmo-aura {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 96%;
  height: 22px;
  transform: translateX(-50%);
  background: transparent;
  filter: none;
  opacity: 0;
  animation: none;
  pointer-events: none;
}

/* Unread message badge */
.cosmonaut-fab .cosmo-badge {
  position: absolute;
  top: -11%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 0;
  min-height: 24px;
  max-width: 96px;
  padding: 5px 9px 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8fbff 0%, #8feeff 42%, #ffbc73 100%);
  color: #071018;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  z-index: 3;
  pointer-events: none;
  animation: none;
}

/* Hover: Kosmo leans toward the cursor, looks alert */
.cosmonaut-fab:hover .cosmo-stage,
.cosmonaut-fab:focus-visible .cosmo-stage {
  transform: translateY(-4px) scale(1.05);
  filter: none;
}

/* States — overall fab keyframe + filter tints */
.cosmonaut-fab[data-state="attentive"]  { animation: kosmoLean 2.6s ease-in-out infinite; }
.cosmonaut-fab[data-state="responding"] { animation: kosmoBob 1.05s ease-in-out infinite; }
.cosmonaut-fab[data-state="empathy"]    { animation: kosmoSoft 4.4s ease-in-out infinite; }

.cosmonaut-fab[data-state="responding"] .cosmo-art {
  filter:
    brightness(1.40)
    contrast(1.06)
    saturate(1.42)
    drop-shadow(0 5px 9px rgba(0,0,0,0.36));
}
.cosmonaut-fab[data-state="empathy"] .cosmo-art {
  filter:
    brightness(1.36)
    contrast(1.04)
    saturate(1.34)
    drop-shadow(0 5px 9px rgba(0,0,0,0.34));
}

/* When chat panel is open, hide the badge */
.cosmonaut-fab[aria-expanded="true"] .cosmo-badge { display: none; }

@keyframes kosmoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-1.2deg); }
}
@keyframes kosmoBreathe {
  0%, 100% { transform: scale(1.0); }
  50%      { transform: scale(1.018); }
}
@keyframes kosmoLean {
  0%, 100% { transform: translateY(-2px) rotate(-2deg); }
  50%      { transform: translateY(-5px) rotate(1.4deg); }
}
@keyframes kosmoBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1.6deg); }
}
@keyframes kosmoSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@keyframes kosmoAura {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.85; transform: translateX(-50%) scaleX(1.08); }
}
@keyframes kosmoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(56,189,248,0.6), 0 4px 10px rgba(0,0,0,0.45); }
  50%      { transform: scale(1.12); box-shadow: 0 0 22px rgba(56,189,248,0.9), 0 4px 10px rgba(0,0,0,0.45); }
}
@keyframes kosmoSparkle {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.4) translateY(0); }
  25%  { opacity: 0.95; transform: translateX(-50%) scale(0.85) translateY(-4px); }
  100% { opacity: 0;    transform: translateX(-50%) scale(1.25) translateY(-22px); }
}

@media (max-width: 760px) {
  .cosmos-nebula,
  .cosmos-stars,
  .grade-wash {
    animation: none;
  }
  .wa-fab::after {
    animation: none;
    opacity: 0.35;
  }
  .sticky-cta {
    z-index: 80;
  }
  .wa-fab {
    display: none;
  }
  .cosmonaut-fab {
    left: 12px;
    bottom: 82px;
    width: 74px;
    height: 96px;
    animation: none;
  }
  .cosmonaut-fab .cosmo-art,
  .cosmonaut-fab .cosmo-aura,
  .cosmonaut-fab .cosmo-badge {
    animation: none;
  }
  .cosmonaut-fab .cosmo-badge {
    top: -11%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-height: 22px;
    max-width: 86px;
    padding: 4px 8px;
    font-size: 0.54rem;
  }
  .cosmonaut-panel {
    width: min(92vw, 360px);
    max-height: min(68dvh, 560px);
    border-radius: clamp(14px, 2.4vw, 18px);
    bottom: clamp(148px, 23dvh, 232px);
  }
  .cosmonaut-head {
    padding: clamp(9px, 2.2vw, 12px) clamp(10px, 2.8vw, 14px);
    gap: clamp(8px, 2.2vw, 10px);
  }
  .cosmonaut-avatar {
    width: clamp(36px, 9vw, 44px);
    height: clamp(36px, 9vw, 44px);
  }
  .cosmonaut-name {
    font-size: clamp(0.86rem, 3.4vw, 1rem);
  }
  .cosmonaut-status {
    font-size: clamp(0.45rem, 1.9vw, 0.56rem);
    letter-spacing: 0.2em;
  }
  .cosmonaut-body-chat {
    padding: clamp(10px, 2.8vw, 14px);
    height: clamp(150px, 30dvh, 240px);
    gap: clamp(6px, 1.8vw, 10px);
  }
  .cosmonaut-quick {
    padding: clamp(7px, 2vw, 10px) clamp(9px, 2.6vw, 12px) clamp(9px, 2.6vw, 12px);
    gap: clamp(5px, 1.6vw, 8px);
  }
  .cosmonaut-quick button {
    font-size: clamp(0.5rem, 1.9vw, 0.6rem);
    letter-spacing: 0.12em;
    padding: clamp(6px, 1.6vw, 8px) clamp(8px, 2vw, 11px);
  }
  .cosmonaut-input {
    padding: clamp(7px, 2vw, 10px) clamp(9px, 2.4vw, 12px) clamp(9px, 2.4vw, 12px);
  }
  .cosmonaut-input input {
    height: clamp(34px, 8vw, 40px);
    font-size: clamp(0.76rem, 2.7vw, 0.88rem);
  }
  .cosmo-send {
    width: clamp(34px, 8vw, 40px);
    height: clamp(34px, 8vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmonaut-fab,
  .cosmonaut-fab[data-state] { animation: none !important; }
  .cosmonaut-fab .cosmo-art,
  .cosmonaut-fab .cosmo-aura,
  .cosmonaut-fab .cosmo-badge { animation: none !important; }
  .cosmonaut-fab:hover .cosmo-stage,
  .cosmonaut-fab:focus-visible .cosmo-stage { transform: none; }
}

.cosmonaut-panel {
  position: fixed;
  left: clamp(14px, 2.4vw, 26px);
  /* sit just above the mascot */
  bottom: calc(clamp(60px, 6.4vh, 92px) + clamp(140px, 16.8vw, 192px) + 16px);
  z-index: 75;
  width: 380px;
  max-width: calc(100vw - 28px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12,12,18,0.94), rgba(6,6,10,0.94));
  border: 1px solid rgba(186,230,253,0.18);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.65),
    0 0 0 1px rgba(56,189,248,0.06) inset,
    0 0 60px rgba(56,189,248,0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.2,0.8,0.2,1), transform 380ms cubic-bezier(0.2,0.8,0.2,1);
}
.cosmonaut-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cosmonaut-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(186,230,253,0.10);
  background: radial-gradient(60% 80% at 20% 0%, rgba(56,189,248,0.20), transparent 70%);
}
.cosmonaut-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,122,37,0.26), transparent 42%),
    radial-gradient(circle at 30% 25%, rgba(56,189,248,0.34), rgba(8,8,12,0.86) 68%);
  border: 1px solid rgba(186,230,253,0.46);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 18px rgba(56,189,248,0.36),
    0 0 12px rgba(255,122,37,0.18);
}
.cosmonaut-avatar img {
  width: 122%;
  height: 122%;
  object-fit: cover;
  object-position: center 28%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    brightness(1.14)
    contrast(1.08)
    saturate(1.38)
    drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.cosmonaut-name-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cosmonaut-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--akm-bone);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.cosmonaut-status {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: var(--akm-glacier);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.cosmonaut-status .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--akm-glacier);
  box-shadow: 0 0 10px var(--akm-glacier);
  animation: pulse 1.6s ease-in-out infinite;
}
.cosmonaut-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--akm-ash);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 200ms, background 200ms;
}
.cosmonaut-close:hover { color: var(--akm-bone); background: rgba(255,255,255,0.06); }

.cosmonaut-body-chat {
  padding: 16px;
  height: 320px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(186,230,253,0.25) transparent;
}
.cosmonaut-body-chat::-webkit-scrollbar { width: 4px; }
.cosmonaut-body-chat::-webkit-scrollbar-thumb { background: rgba(186,230,253,0.25); border-radius: 4px; }
.cosmo-msg {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn 380ms cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }
.cosmo-msg.from-bot {
  align-self: flex-start;
  background: rgba(56,189,248,0.10);
  border: 1px solid rgba(186,230,253,0.18);
  color: var(--akm-bone);
  border-bottom-left-radius: 4px;
}
.cosmo-msg.from-user {
  align-self: flex-end;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--akm-bone);
  border-bottom-right-radius: 4px;
}
.cosmo-typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  padding: 12px 14px;
  background: rgba(56,189,248,0.10);
  border: 1px solid rgba(186,230,253,0.18);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.cosmo-typing i {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--akm-glacier);
  animation: typing 1.2s ease-in-out infinite;
}
.cosmo-typing i:nth-child(2) { animation-delay: 0.15s; }
.cosmo-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.cosmonaut-quick {
  padding: 10px 14px 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid rgba(186,230,253,0.10);
}
.cosmonaut-quick button {
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--akm-bone);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(186,230,253,0.2);
  transition: background 220ms, color 220ms;
}
.cosmonaut-quick button:hover {
  background: rgba(56,189,248,0.2);
  color: var(--akm-bone);
}

/* Free-text input — lets the user write inquiries / reports */
.cosmonaut-input {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(186,230,253,0.10);
  background: linear-gradient(180deg, transparent, rgba(56,189,248,0.04));
}
.cosmonaut-input input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(186,230,253,0.18);
  color: var(--akm-bone);
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.cosmonaut-input input::placeholder {
  color: rgba(232, 228, 216, 0.4);
}
.cosmonaut-input input:focus {
  border-color: rgba(186,230,253,0.55);
  background: rgba(56,189,248,0.08);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12);
}
.cosmo-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--akm-black);
  background: var(--akm-glacier);
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(56,189,248,0.35);
  transition: transform 200ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 200ms, opacity 200ms;
  flex-shrink: 0;
}
.cosmo-send:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 8px 20px rgba(56,189,248,0.5); }
.cosmo-send:active { transform: scale(0.96); }
.cosmo-send:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.cosmo-send svg { transform: translateX(-1px); }

@media (max-height: 760px) and (max-width: 1024px) {
  .hero-inner {
    padding-top: calc(clamp(96px, 10vh, 118px) + env(safe-area-inset-top));
    padding-bottom: clamp(20px, 4vh, 40px);
  }
}

/* MODAL */
.modal-bg {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(5,5,7,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(520px, 100%);
  padding: 36px;
  background: rgba(15,15,21,0.88);
  border: 1px solid rgba(186,230,253,0.12);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  position: relative;
  transform: scale(0.96) translateY(10px);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-bg.open .modal { transform: scale(1) translateY(0); }
.modal-logo {
  width: 64px;
  aspect-ratio: 1.18 / 1;
  margin: 0 auto 18px;
}
.modal-logo img { width: 100%; height: 100%; object-fit: contain; }
.modal h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--akm-bone);
  margin-bottom: 10px;
}
.modal p.lead { color: var(--akm-ash); font-size: 0.96rem; margin-bottom: 28px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--akm-ash);
  border: 1px solid var(--akm-line);
}
.modal-close:hover { color: var(--akm-bone); border-color: var(--akm-bone); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--akm-ash);
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--akm-line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--akm-bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms, background 200ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(186,230,253,0.5);
  background: rgba(255,255,255,0.04);
}
.field textarea { resize: vertical; min-height: 80px; }
.modal .btn { width: 100%; justify-content: center; margin-top: 8px; padding: 14px 22px; }
.modal-success { display: none; text-align: center; padding: 16px 0; }
.modal-success.show { display: block; }
.modal-success .ico {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(186,230,253,0.1);
  display: grid; place-items: center;
  color: var(--akm-glacier);
}

/* REVEALS — opt-in via .reveal-on on <html> */
.reveal-on .reveal {
  opacity: 0.001;
  filter: blur(16px);
  transform: translateY(28px);
  transition: opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 1100ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on .reveal.is-in { opacity: 1; filter: blur(0); transform: translateY(0); }
.reveal-on .reveal-stagger > * {
  opacity: 0.001;
  filter: blur(14px);
  transform: translateY(24px);
  transition: opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 1100ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on .reveal-stagger.is-in > * { opacity: 1; filter: blur(0); transform: translateY(0); }
.reveal-on .reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-on .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 120ms; }
.reveal-on .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 240ms; }
.reveal-on .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 360ms; }
.reveal-on .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 480ms; }
.reveal-on .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 600ms; }

.reveal-on .hero-stack > * {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  animation: heroIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-on .hero-stack > *:nth-child(1) { animation-delay: 200ms; }
.reveal-on .hero-stack > *:nth-child(2) { animation-delay: 380ms; }
.reveal-on .hero-stack > *:nth-child(3) { animation-delay: 560ms; }
.reveal-on .hero-stack > *:nth-child(4) { animation-delay: 720ms; }
.reveal-on .hero-stack > *:nth-child(5) { animation-delay: 860ms; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-on .reveal, .reveal-on .reveal-stagger > *, .reveal-on .hero-stack > * {
    opacity: 1; transform: none; filter: none;
  }
}
