:root {
  --bg: #fafafa;
  --ink: #0b0b0d;
  --ink-2: #1a1a1a;
  --muted: #6b6b6b;
  --line: rgba(11, 11, 13, 0.14);
  --line-2: rgba(11, 11, 13, 0.08);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-2: rgba(255, 255, 255, 0.22);
  --shadow: 0 22px 60px rgba(11, 11, 13, 0.12);
  --shadow-soft: 0 12px 36px rgba(11, 11, 13, 0.10);
  --radius: 18px;
  --radius-2: 22px;
  --container: 1600px;
  --pad: 120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hide scrollbars but keep functionality */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

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

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transform: translateY(-200%);
  transition: transform 180ms ease;
  z-index: 999;
}
.skip-link:focus {
  transform: translateY(0);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(11, 11, 13, 0.10);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__logo {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.06));
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__link {
  font-size: 14px;
  color: rgba(11, 11, 13, 0.78);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}
.nav__link:hover {
  background: rgba(11, 11, 13, 0.06);
  color: rgba(11, 11, 13, 0.92);
}

/* Circuit lines from F */
.circuit-lines {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4;
  opacity: 0.7;
  overflow: visible;
}
.circuit-lines path,
.circuit-lines circle {
  pointer-events: none;
  overflow: visible;
}
@media (max-width: 980px) {
  .circuit-lines {
    display: none;
  }
}
.circuit-lines line {
  stroke: rgba(11, 11, 13, 0.28);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  animation: circuitPulse 3s ease-in-out infinite;
}
.circuit-lines .circuit-path {
  stroke: rgba(11, 11, 13, 0.48);
  stroke-width: 1.4;
  stroke-dasharray: 2 4;
  animation: circuitPulse 3s ease-in-out infinite;
}
.circuit-lines .current-flow {
  stroke: url(#currentGrad);
  stroke-width: 2.2;
  stroke-dasharray: none;
  opacity: 1;
  filter: blur(0.2px);
  animation: currentFlow 2.5s linear infinite;
}
.circuit-lines .current-flow-vertical {
  stroke: url(#currentGrad2);
  stroke-width: 2.2;
  stroke-dasharray: none;
  opacity: 1;
  filter: blur(0.2px);
  animation: currentFlow 2.2s linear infinite;
}
.circuit-lines .current-particle {
  fill: rgba(11, 11, 13, 0.6);
  r: 2.5;
  filter: blur(0.8px);
  animation: particleMove 2.8s linear infinite;
}
.circuit-lines .circuit-node {
  fill: rgba(11, 11, 13, 0.4);
  r: 2;
  animation: nodePulse 2s ease-in-out infinite;
}
@keyframes circuitPulse {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes currentFlow {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    stroke-dashoffset: 20;
    opacity: 0.6;
  }
}
@keyframes particleMove {
  0% {
    opacity: 0;
    r: 1.5;
  }
  20% {
    opacity: 0.8;
    r: 2.5;
  }
  80% {
    opacity: 0.8;
    r: 2.5;
  }
  100% {
    opacity: 0;
    r: 1.5;
  }
}
@keyframes nodePulse {
  0%, 100% {
    opacity: 0.3;
    r: 1.5;
  }
  50% {
    opacity: 0.6;
    r: 3;
  }
}

/* Screen-based navigation */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.screen {
  position: fixed;
  inset: 0;
  width: calc(100% - 35%);
  height: 100vh;
  background: #fafafa;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
}
.screen--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.screen--transitioning {
  transition-duration: 0.8s;
}

/* Fixed F scene (always visible on right) */
.fixed-scene {
  position: fixed;
  top: 0;
  right: 0;
  width: 35%;
  height: 100vh;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.fixed-scene * {
  pointer-events: none;
}
@media (max-width: 980px) {
  .fixed-scene {
    display: none;
  }
  .screen {
    width: 100%;
  }
}

/* F rotation animation on screen change */
.float--rotating {
  animation: logoRotate 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.float--rotating .float__logo {
  animation: logoSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: 50% 50%;
}
@keyframes logoRotate {
  0% {
    transform: translate3d(calc(var(--px) * 1), calc(var(--py) * 1), 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(calc(var(--px) * 1), calc(var(--py) * 1), 0) rotate(180deg) scale(0.9);
  }
  100% {
    transform: translate3d(calc(var(--px) * 1), calc(var(--py) * 1), 0) rotate(360deg) scale(1);
  }
}

/* Extra spin for the F itself (more noticeable than rotating only the container) */
@keyframes logoSpin {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-220deg);
  }
  100% {
    transform: rotate(-440deg);
  }
}

/* White void background layers */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.bg__radial {
  position: absolute;
  inset: -10%;
  background:
    /* Portal core más sutil y uniforme */
    radial-gradient(1200px 900px at 50% 50%, #fafafa 0%, #fafafa 100%),
    /* Portal core (más "agujero blanco"): núcleo brillante + caída - más sutil */
    radial-gradient(980px 780px at 72% 42%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 10%, rgba(250, 250, 250, 0.05) 35%, transparent 62%),
    /* Halo de absorción (anillo suave) - más sutil */
    radial-gradient(760px 520px at 72% 44%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.0) 60%);
  filter: contrast(1.01);
}
.bg__depth {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(1200px 900px at 10% 30%, rgba(11, 11, 13, 0.06) 0%, rgba(11, 11, 13, 0) 55%),
    radial-gradient(1200px 900px at 85% 85%, rgba(11, 11, 13, 0.07) 0%, rgba(11, 11, 13, 0) 60%),
    radial-gradient(900px 650px at 72% 42%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.bg__lines {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(11, 11, 13, 0.00) 0px,
      rgba(11, 11, 13, 0.00) 22px,
      rgba(11, 11, 13, 0.05) 23px,
      rgba(11, 11, 13, 0.00) 24px
    ),
    repeating-linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.00) 0px,
      rgba(255, 255, 255, 0.00) 34px,
      rgba(255, 255, 255, 0.65) 35px,
      rgba(255, 255, 255, 0.00) 36px
    );
  opacity: 0.12;
  transform: rotate(-4deg);
  mask-image: radial-gradient(closest-side at 72% 42%, #000 0%, rgba(0, 0, 0, 0.7) 48%, transparent 78%);
  animation: linesDrift 18s linear infinite;
}
.bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 650px at 86% 10%, rgba(11, 11, 13, 0.12) 0%, rgba(11, 11, 13, 0.00) 62%),
    radial-gradient(1200px 900px at 0% 100%, rgba(11, 11, 13, 0.06) 0%, rgba(11, 11, 13, 0.00) 60%);
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.bg__rays {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.72) 10%,
      rgba(255, 255, 255, 0) 22%,
      rgba(255, 255, 255, 0.55) 36%,
      rgba(255, 255, 255, 0) 52%,
      rgba(255, 255, 255, 0.44) 68%,
      rgba(255, 255, 255, 0) 86%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.30) 14%,
      rgba(255, 255, 255, 0) 28%,
      rgba(255, 255, 255, 0.22) 42%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0.18) 74%,
      rgba(255, 255, 255, 0) 100%
    );
  opacity: 0.26;
  transform: rotate(-10deg);
  filter: blur(0.35px);
  mix-blend-mode: screen;
  animation: raysMove 14s linear infinite;
}
.bg__particles {
  position: absolute;
  inset: 0;
  opacity: 0.75;
}
.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  animation: grainShift 6s steps(6) infinite;
}

@keyframes raysMove {
  0% {
    transform: translate3d(-6%, -2%, 0) rotate(-10deg);
  }
  100% {
    transform: translate3d(6%, 2%, 0) rotate(-10deg);
  }
}

@keyframes linesDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(-4deg);
  }
  100% {
    transform: translate3d(2%, 1%, 0) rotate(-4deg);
  }
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-2%, 1%, 0);
  }
  40% {
    transform: translate3d(1%, -2%, 0);
  }
  60% {
    transform: translate3d(2%, 1%, 0);
  }
  80% {
    transform: translate3d(-1%, -1%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 108px; /* header offset */
  padding-bottom: 28px;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fafafa;
}
.hero .container {
  padding-left: 60px;
  padding-right: var(--pad);
}
.hero__grid {
  display: block;
  max-width: 100%;
}
.kicker {
  margin: 0 0 14px 0;
  color: rgba(11, 11, 13, 0.60);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero__title {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.1;
}
.hero__sub {
  margin: 12px 0 10px 0;
  color: rgba(11, 11, 13, 0.78);
  font-weight: 600;
  font-size: 16px;
}
.hero__quote {
  margin: 16px 0 20px 0;
  font-size: 15px;
  color: rgba(11, 11, 13, 0.55);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-style: italic;
}
.hero__desc {
  margin: 0;
  max-width: 68ch;
  color: rgba(11, 11, 13, 0.64);
  font-size: 16px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  user-select: none;
}
.btn:focus-visible {
  outline: 3px solid rgba(11, 11, 13, 0.20);
  outline-offset: 3px;
}
.btn--primary {
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.96), rgba(11, 11, 13, 0.88));
  border-color: rgba(11, 11, 13, 0.18);
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 11, 13, 0.16);
}
.btn--outline {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0);
  pointer-events: none;
  transition: border-color 180ms ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary:hover {
  box-shadow: 0 20px 54px rgba(11, 11, 13, 0.20);
}
.btn:hover::after {
  border-color: rgba(255, 255, 255, 0.18);
}

/* CTA hover line sweep */
.btn--outline::before,
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.btn:hover::before {
  opacity: 1;
  animation: sweep 700ms ease;
}
@keyframes sweep {
  from {
    left: -40%;
  }
  to {
    left: 120%;
  }
}

/* Content hub icons */
.content-hub {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.content-hub__title {
  margin: 0 0 14px 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.content-hub__icons {
  display: flex;
  gap: 14px;
}
.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.08);
}
.icon-btn svg {
  width: 26px;
  height: 26px;
  color: rgba(11, 11, 13, 0.76);
}
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 11, 13, 0.22);
  box-shadow: 0 22px 60px rgba(11, 11, 13, 0.12);
}

/* Hero left content */
.hero__left {
  padding-right: 20px;
  padding-left: 0;
}

/* Scene */
.hero__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 40px;
}
.scene {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1.16 / 1;
  display: grid;
  place-items: center;
  --px: 0px;
  --py: 0px;
}
.fixed-scene .scene {
  width: min(580px, 90%);
  max-height: 90vh;
}

/* Subtle geometric planes */
.scene::before,
.scene::after {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    linear-gradient(135deg, transparent 0 52%, rgba(11, 11, 13, 0.04) 52% 53%, transparent 53% 100%),
    linear-gradient(165deg, transparent 0 58%, rgba(11, 11, 13, 0.03) 58% 59%, transparent 59% 100%),
    radial-gradient(closest-side at 70% 45%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0));
  opacity: 0.7;
  filter: blur(0.2px);
  transform: rotate(2deg);
  mask-image: radial-gradient(closest-side at 70% 45%, #000 0%, rgba(0, 0, 0, 0.7) 55%, transparent 80%);
}
.scene::after {
  opacity: 0.5;
  transform: rotate(-2deg);
}

.scene__floor {
  position: absolute;
  width: 90%;
  height: 48%;
  bottom: 6%;
  left: 5%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(11, 11, 13, 0.18), rgba(11, 11, 13, 0.08) 45%, rgba(11, 11, 13, 0) 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.0) 70%);
  filter: blur(1px);
  opacity: 0.95;
  z-index: 1;
}
.scene__floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 25%, rgba(255, 255, 255, 0.3), transparent 60%);
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.scene__geo {
  position: absolute;
  inset: -6%;
  pointer-events: none;
  transform: translate3d(calc(var(--px) * 0.6), calc(var(--py) * 0.6), 0);
  transition: transform 180ms ease;
}
.shard {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.08));
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 22px 70px rgba(11, 11, 13, 0.12),
    0 0 20px rgba(255, 255, 255, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mix-blend-mode: overlay;
  opacity: 0.88;
  transform: rotate(var(--r, 0deg));
  animation: shardFloat 14s ease-in-out infinite;
}
.shard--1 {
  width: 220px;
  height: 130px;
  left: 2%;
  top: 18%;
  --r: -18deg;
  opacity: 0.92;
  animation-delay: -2s;
}
.shard--2 {
  width: 180px;
  height: 120px;
  right: 6%;
  top: 8%;
  --r: 14deg;
  opacity: 0.78;
  animation-delay: -7s;
}
.shard--3 {
  width: 280px;
  height: 150px;
  right: 0%;
  top: 34%;
  --r: -10deg;
  opacity: 0.75;
  animation-delay: -10s;
}
.shard--4 {
  width: 240px;
  height: 140px;
  left: 10%;
  bottom: 20%;
  --r: 12deg;
  opacity: 0.70;
  animation-delay: -12s;
}
.shard--5 {
  width: 280px;
  height: 160px;
  right: 12%;
  bottom: 8%;
  --r: 20deg;
  opacity: 0.68;
  animation-delay: -5s;
}
.line {
  position: absolute;
  height: 1.5px;
  width: 65%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 80%, transparent);
  opacity: 0.75;
  mix-blend-mode: screen;
  transform: rotate(var(--lr, 0deg));
  animation: lineScan 10s linear infinite;
  filter: blur(0.5px);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}
.line--1 {
  top: 22%;
  left: 12%;
  --lr: -18deg;
  animation-delay: -2s;
}
.line--2 {
  top: 52%;
  left: 26%;
  --lr: 10deg;
  opacity: 0.35;
  animation-delay: -7s;
}
.line--3 {
  top: 74%;
  left: 8%;
  --lr: -6deg;
  opacity: 0.28;
  animation-delay: -10s;
}

@keyframes shardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r)) scale(1);
    filter: blur(0px);
    opacity: inherit;
  }
  25% {
    transform: translate3d(2px, -6px, 0) rotate(calc(var(--r) + 2deg)) scale(1.02);
    filter: blur(0.1px);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(calc(var(--r) * -0.8)) scale(1.04);
    filter: blur(0.2px);
    opacity: calc(inherit * 1.1);
  }
  75% {
    transform: translate3d(-2px, -6px, 0) rotate(calc(var(--r) - 2deg)) scale(1.02);
    filter: blur(0.1px);
  }
}
@keyframes lineScan {
  0% {
    transform: translate3d(-8%, 0, 0) rotate(var(--lr));
    opacity: 0.3;
  }
  40% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(12%, 0, 0) rotate(var(--lr));
    opacity: 0.3;
  }
}

.platform {
  position: absolute;
  bottom: 6%;
  right: 4%;
  width: 400px;
  height: 200px;
  display: grid;
  place-items: end center;
  pointer-events: none;
  filter: drop-shadow(0 24px 60px rgba(11, 11, 13, 0.32)) drop-shadow(0 8px 20px rgba(11, 11, 13, 0.18));
  z-index: 5;
}
.platform::before {
  content: "";
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 2px;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 100%);
  filter: blur(1px);
  opacity: 0.6;
  animation: energyRise 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes energyRise {
  0%, 100% {
    opacity: 0.4;
    height: 160px;
  }
  50% {
    opacity: 0.75;
    height: 200px;
  }
}
.platform__tier {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: 
    linear-gradient(180deg, rgba(11, 11, 13, 0.98), rgba(11, 11, 13, 0.92) 40%, rgba(11, 11, 13, 0.88) 100%);
  border: 1.5px solid rgba(237, 237, 237, 0.28);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.12),
    inset 0 -20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(11, 11, 13, 0.1);
}
.platform__tier--1 {
  width: 340px;
  height: 74px;
  bottom: 0;
}
.platform__tier--2 {
  width: 260px;
  height: 60px;
  bottom: 38px;
}
.platform__tier--3 {
  width: 190px;
  height: 48px;
  bottom: 70px;
}
.platform__tier::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(237, 237, 237, 0.22);
  opacity: 0.9;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
}
.platform__tier--1::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0;
  transform: translateX(-30%) skewX(-14deg);
  mix-blend-mode: screen;
  animation: rimSweep 6.5s ease-in-out infinite;
}
@keyframes rimSweep {
  0%,
  50% {
    opacity: 0;
    transform: translateX(-40%) skewX(-14deg);
  }
  65% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translateX(90%) skewX(-14deg);
  }
}
.platform__tier--1::after {
  animation: tierGlow 8s ease-in-out infinite;
}
@keyframes tierGlow {
  0%, 100% {
    border-color: rgba(237, 237, 237, 0.22);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 0 12px rgba(255, 255, 255, 0.15);
  }
}
.platform {
  animation: platformPulse 7.5s ease-in-out infinite;
}
@keyframes platformPulse {
  0%,
  100% {
    filter: drop-shadow(0 24px 60px rgba(11, 11, 13, 0.32)) drop-shadow(0 8px 20px rgba(11, 11, 13, 0.18));
  }
  50% {
    filter: drop-shadow(0 28px 72px rgba(11, 11, 13, 0.38)) drop-shadow(0 10px 24px rgba(11, 11, 13, 0.22));
  }
}

.float {
  position: absolute;
  bottom: 30%;
  right: 16%;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  transform-origin: 50% 70%;
  transform: translate3d(calc(var(--px) * 1), calc(var(--py) * 1), 0);
  transition: transform 180ms ease;
  animation: floaty 4.8s ease-in-out infinite;
  z-index: 10;
}
@keyframes floaty {
  0%,
  100% {
    transform: translate3d(calc(var(--px) * 1), calc(var(--py) * 1), 0) rotate(-1.5deg);
  }
  50% {
    transform: translate3d(calc(var(--px) * 1), calc(var(--py) * 1 - 18px), 0) rotate(1.5deg);
  }
}
.float__logo {
  width: 260px;
  height: 260px;
  filter:
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 48px rgba(255, 255, 255, 0.55))
    drop-shadow(0 22px 60px rgba(11, 11, 13, 0.42))
    drop-shadow(0 4px 8px rgba(11, 11, 13, 0.18))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.35));
  opacity: 1;
  position: relative;
  z-index: 12;
}

/* Transition FX overlay (inside the logo area) */
.float__fx {
  position: absolute;
  inset: 28px;
  border-radius: 28px;
  z-index: 13;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(0.2px);
}
.float__fx::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.75) 45%,
      rgba(255, 255, 255, 0) 65%
    );
  transform: translateY(140%);
  opacity: 0;
}
.float__fx::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transform: scale(0.88);
}

.float--impact .float__fx {
  opacity: 1;
  animation: fxGate 820ms ease-out both;
}
.float--impact .float__fx::before {
  opacity: 0.9;
  animation: fxScan 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.float--impact .float__fx::after {
  opacity: 0.85;
  animation: fxPulse 820ms ease-out both;
}
.float--impact .float__logo {
  animation: fxLogo 820ms ease-out both;
}

@keyframes fxGate {
  0% {
    opacity: 0;
    clip-path: circle(0% at 50% 55%);
  }
  20% {
    opacity: 1;
    clip-path: circle(70% at 50% 55%);
  }
  100% {
    opacity: 0;
    clip-path: circle(120% at 50% 55%);
  }
}
@keyframes fxScan {
  0% {
    transform: translateY(140%);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(-140%);
    opacity: 0;
  }
}
@keyframes fxPulse {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  22% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.16);
    opacity: 0;
  }
}
@keyframes fxLogo {
  0% {
    filter:
      drop-shadow(0 0 24px rgba(255, 255, 255, 0.85))
      drop-shadow(0 0 48px rgba(255, 255, 255, 0.55))
      drop-shadow(0 22px 60px rgba(11, 11, 13, 0.42))
      drop-shadow(0 4px 8px rgba(11, 11, 13, 0.18))
      drop-shadow(0 2px 0 rgba(255, 255, 255, 0.35));
  }
  22% {
    filter:
      drop-shadow(0 0 34px rgba(255, 255, 255, 1))
      drop-shadow(0 0 70px rgba(255, 255, 255, 0.65))
      drop-shadow(0 26px 72px rgba(11, 11, 13, 0.46))
      drop-shadow(0 6px 12px rgba(11, 11, 13, 0.22))
      drop-shadow(0 2px 0 rgba(255, 255, 255, 0.45));
  }
  100% {
    filter:
      drop-shadow(0 0 24px rgba(255, 255, 255, 0.85))
      drop-shadow(0 0 48px rgba(255, 255, 255, 0.55))
      drop-shadow(0 22px 60px rgba(11, 11, 13, 0.42))
      drop-shadow(0 4px 8px rgba(11, 11, 13, 0.18))
      drop-shadow(0 2px 0 rgba(255, 255, 255, 0.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  .float__fx,
  .float__fx::before,
  .float__fx::after,
  .float--impact .float__logo {
    animation: none !important;
  }
  .float--impact .float__fx {
    opacity: 0 !important;
  }
}
.float__logo::selection {
  background: transparent;
}
.float::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0) 70%);
  filter: blur(12px);
  opacity: 1;
  mix-blend-mode: screen;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}
.float::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 60%);
  filter: blur(8px);
  opacity: 0.8;
  mix-blend-mode: overlay;
  z-index: 0;
  animation: glowPulse 3.5s ease-in-out infinite 0.5s;
}
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.halo {
  position: absolute;
  width: 380px;
  height: 280px;
  opacity: 1;
  transform: translate3d(0, 6px, 0);
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}
.halo svg {
  width: 100%;
  height: 100%;
}
.halo__shimmer {
  stroke-dasharray: 90 210;
  stroke-dashoffset: 0;
  stroke-width: 2.8;
  animation: haloSweep 4.8s linear infinite, haloPulse 6.2s ease-in-out infinite;
  opacity: 1;
}
.halo__ring {
  animation: haloPulse 6.2s ease-in-out infinite;
  stroke-width: 1.8;
  opacity: 0.95;
}
@keyframes haloSweep {
  to {
    stroke-dashoffset: -300;
  }
}
@keyframes haloPulse {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}
.halo__ring {
  animation: haloPulse 5.8s ease-in-out infinite;
  stroke-width: 2;
  opacity: 0.98;
}

/* Sections */
.screen .section,
.screen {
  padding: 0;
  min-height: 100vh;
  background: #fafafa;
}
.screen .container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 108px var(--pad) 96px var(--pad);
  box-sizing: border-box;
}
#sobre-mi .container,
#contacto .container {
  padding-top: 140px;
}
.screen .section__head {
  padding-top: 0;
  padding-bottom: 0;
}
.section {
  padding: 96px 0;
}
.section__head {
  max-width: 66ch;
}
.section__title {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  font-size: 36px;
}
.section__subtitle {
  margin: 10px 0 0 0;
  color: rgba(11, 11, 13, 0.64);
}
.section__subtitle--secondary {
  margin-top: 20px;
  color: rgba(11, 11, 13, 0.70);
}

.about {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 16px;
  box-shadow: 0 18px 50px rgba(11, 11, 13, 0.08);
}
.about__card h3 {
  margin: 0 0 8px 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.about__card p {
  margin: 0;
  color: rgba(11, 11, 13, 0.66);
}

.cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 16px;
  box-shadow: 0 18px 60px rgba(11, 11, 13, 0.08);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 11, 13, 0.22);
  box-shadow: 0 24px 72px rgba(11, 11, 13, 0.12);
}
.card__impact {
  margin: 12px -16px -18px -16px;
  background: rgba(11, 11, 13, 0.95);
  color: rgba(255, 255, 255, 0.95);
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
  border-radius: 0 0 var(--radius-2) var(--radius-2);
  margin-top: 14px;
}
.card:hover .card__impact {
  max-height: 120px;
  padding: 18px 16px;
}
.card__impact-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
  padding: 2px 0;
}
.card:hover .card__impact-text {
  opacity: 1;
  transform: translateY(0);
}
.card__top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__title {
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card__meta {
  color: rgba(11, 11, 13, 0.50);
  font-size: 12px;
  margin-top: 0;
}
.card__desc {
  margin: 10px 0 12px 0;
  color: rgba(11, 11, 13, 0.66);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(11, 11, 13, 0.14);
  border-radius: 999px;
  color: rgba(11, 11, 13, 0.72);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tag--tooltip {
  cursor: help;
  position: relative;
}
.tag--tooltip:hover {
  border-color: rgba(11, 11, 13, 0.3);
  background: rgba(255, 255, 255, 0.75);
}
.tag--tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(11, 11, 13, 0.95);
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
  min-width: 240px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(11, 11, 13, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  text-align: left;
}
.tag--tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(11, 11, 13, 0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1001;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.tag--tooltip:hover::after,
.tag--tooltip.tag--tooltip-active::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.tag--tooltip:hover::before,
.tag--tooltip.tag--tooltip-active::before {
  opacity: 1;
  visibility: visible;
}

.section--contact {
  padding-bottom: 110px;
}
.contact {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  box-shadow: 0 22px 70px rgba(11, 11, 13, 0.10);
}
.contact__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.link {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(11, 11, 13, 0.70);
  transition: background 180ms ease, border-color 180ms ease;
}
.link:hover {
  background: rgba(11, 11, 13, 0.06);
  border-color: rgba(11, 11, 13, 0.10);
}

.footer {
  padding: 34px 0 44px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}
.footer__muted {
  color: rgba(11, 11, 13, 0.46);
  font-size: 12px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 620ms ease, transform 620ms ease, filter 720ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Responsive */
@media (max-width: 980px) {
  :root {
    --pad: 26px;
  }
  .hero {
    padding-top: 100px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero__right {
    order: -1;
  }
  .scene {
    width: min(520px, 100%);
  }
  .platform {
    right: 0%;
    width: 320px;
  }
  .float {
    right: 12%;
  }
  .cards,
  .about {
    grid-template-columns: 1fr;
  }
  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
  .header__inner {
    border-radius: 18px;
  }
  .nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__rays,
  .platform,
  .float,
  .halo__shimmer,
  .halo__ring {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}


