@font-face {
  font-family: "GZ Syne";
  src: url("../fonts/Syne-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "GZ Space";
  src: url("../fonts/SpaceGrotesk-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "GZ Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/*
 * Grupo Zaid — dirección visual editorial 2026.
 * Implementación original inspirada en las categorías funcionales de Azurio.
 */

:root {
  --shell: min(1480px, calc(100% - clamp(1.25rem, 4vw, 5rem)));
  --header-height: 6rem;
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.65, 0, .35, 1);
  --studio-black: #080a0d;
  --studio-panel: #10151b;
  --studio-cyan: #43d8ff;
  --studio-orange: #ff713f;
  --studio-red: #ef315d;
  --studio-lime: #b8eb42;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scrollbar-color: var(--color-primary) var(--color-background);
  scrollbar-width: thin;
}

body {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  font-family: "GZ Space", Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--color-primary) 19%, transparent), transparent 31rem),
    radial-gradient(circle at 85% 24%, color-mix(in srgb, var(--color-accent) 13%, transparent), transparent 30rem),
    var(--color-background);
}

body::before {
  z-index: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-border) 60%, transparent) 1px, transparent 1px);
  background-size: clamp(38px, 4vw, 68px) clamp(38px, 4vw, 68px);
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 72%);
  opacity: .22;
}

body::after {
  position: fixed;
  z-index: 9999;
  inset: 0;
  translate: 0 100%;
  background: linear-gradient(115deg, var(--color-primary-deep), var(--color-primary) 42%, var(--color-accent));
  content: "";
  pointer-events: none;
}

body.is-leaving::after {
  animation: curtain-in 420ms var(--ease-smooth) forwards;
}

body.is-entering::after {
  animation: curtain-out 680ms var(--ease-smooth) forwards;
}

@keyframes curtain-in { to { translate: 0 0; } }
@keyframes curtain-out { from { translate: 0 0; } to { translate: 0 -100%; } }

.section,
.hero,
.page-hero,
.footer {
  isolation: isolate;
}

.section {
  padding-block: clamp(6rem, 11vw, 11rem);
}

.section--surface {
  overflow: clip;
  border-block-color: color-mix(in srgb, var(--color-border) 72%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-background-alt) 90%, transparent),
    color-mix(in srgb, var(--color-surface) 55%, transparent));
}

.section--surface::before {
  position: absolute;
  z-index: -1;
  width: clamp(18rem, 34vw, 38rem);
  aspect-ratio: 1;
  inset: -18% -8% auto auto;
  border: 1px solid color-mix(in srgb, var(--color-primary-light) 25%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--color-primary) 28%, transparent), transparent 62%);
  content: "";
  opacity: .55;
}

.eyebrow {
  gap: .8rem;
  color: var(--color-text-muted);
  font-family: "GZ Mono", ui-monospace, monospace;
  font-size: clamp(.66rem, .8vw, .82rem);
  font-weight: 500;
  letter-spacing: .11em;
}

.eyebrow::before {
  width: .65rem;
  height: .65rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.section-title {
  max-width: 13ch;
  font-size: clamp(3rem, 6.3vw, 7.2rem);
  font-weight: 520;
  letter-spacing: -.065em;
  line-height: .92;
  text-wrap: balance;
  font-family: "GZ Syne", "GZ Space", sans-serif;
}

.lead {
  max-width: 42rem;
  font-size: clamp(1.03rem, 1.35vw, 1.34rem);
}

/* Encabezado editorial y menú de pantalla completa */
.header {
  top: 0;
  z-index: 300;
  border-bottom-color: transparent;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 82%, transparent), transparent);
  backdrop-filter: none;
  transition: background 350ms ease, border-color 350ms ease;
}

.header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: color-mix(in srgb, var(--color-background) 82%, transparent);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .12);
  backdrop-filter: blur(22px) saturate(145%);
}

.header__inner { position: relative; z-index: 301; height: var(--header-height); }

.brand {
  position: relative;
  z-index: 2;
  width: clamp(8.5rem, 12vw, 11rem);
}

.brand::after {
  position: absolute;
  right: -.8rem;
  bottom: -.3rem;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--studio-orange);
  box-shadow: 0 0 1rem var(--studio-orange);
  content: "";
}

.nav { display: none; }
.menu-button { display: inline-grid; }

.icon-button {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--color-border) 85%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface-soft) 48%, transparent);
  backdrop-filter: blur(12px);
}

.mobile-nav {
  position: fixed;
  z-index: 290;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 0;
  overflow: auto;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.25rem, 4vw, 5rem) 3rem;
  translate: 0 -105%;
  border: 0;
  background:
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--color-accent) 62%, transparent), transparent 24rem),
    radial-gradient(circle at 76% 75%, color-mix(in srgb, var(--color-primary) 58%, transparent), transparent 28rem),
    var(--color-background);
  opacity: 1;
  visibility: visible;
  transition: translate 700ms var(--ease-spring);
}

.mobile-nav::before {
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: clamp(20rem, 45vw, 46rem);
  aspect-ratio: 1;
  border: clamp(2rem, 6vw, 7rem) solid color-mix(in srgb, var(--studio-orange) 62%, transparent);
  border-radius: 50%;
  content: "";
  opacity: .45;
}

.mobile-nav.is-open { translate: 0 0; }

.mobile-nav a {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: .12em 0;
  border: 0;
  color: var(--color-text);
  font-size: clamp(2.7rem, 7vw, 7rem);
  font-weight: 540;
  letter-spacing: -.06em;
  line-height: .98;
  transition: color 220ms ease, translate 320ms var(--ease-spring);
  font-family: "GZ Syne", "GZ Space", sans-serif;
}

.mobile-nav a::after {
  display: inline-block;
  margin-left: .55em;
  color: var(--color-text-muted);
  font-family: "GZ Mono", monospace;
  font-size: .14em;
  content: "↗";
  vertical-align: middle;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--studio-orange);
  translate: .18em 0;
}

body.menu-open { overflow: hidden; }

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 3.35rem;
  padding-inline: 1.35rem;
  border-radius: 999px;
  box-shadow: none;
  transition: color 280ms ease, border-color 280ms ease, transform 280ms var(--ease-spring);
}

.button::before {
  position: absolute;
  z-index: -1;
  inset: 100% 0 auto;
  height: 110%;
  border-radius: 50% 50% 0 0;
  background: var(--color-text);
  content: "";
  transition: inset 420ms var(--ease-spring), border-radius 420ms ease;
}

.button:hover {
  color: var(--color-background);
  transform: translateY(-3px);
}

.button:hover::before {
  inset: 0;
  border-radius: inherit;
}

/* Hero cinematográfico con capas y gráficos abstractos */
.hero {
  min-height: max(760px, 100svh);
  overflow: clip;
  padding: clamp(1.35rem, 2.5vw, 2.5rem) 0 clamp(3rem, 6vw, 6rem);
  background:
    radial-gradient(circle at 52% 48%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 24rem),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-background-alt) 55%, transparent));
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 14%;
  left: -7%;
  width: clamp(12rem, 22vw, 24rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--color-primary-light) 30%, transparent);
  box-shadow:
    0 0 0 4rem color-mix(in srgb, var(--color-primary) 4%, transparent),
    0 0 0 8rem color-mix(in srgb, var(--color-primary) 3%, transparent);
}

.hero::after {
  right: -12%;
  bottom: -24%;
  width: clamp(22rem, 45vw, 54rem);
  aspect-ratio: 1;
  background: conic-gradient(from 20deg, var(--color-primary), var(--studio-cyan), var(--studio-orange), var(--studio-red), var(--color-primary));
  filter: blur(80px);
  opacity: .18;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  min-height: calc(100svh - var(--header-height) - clamp(7rem, 13vw, 13rem));
  isolation: isolate;
}

.hero__grid > :first-child {
  position: relative;
  z-index: 4;
  grid-area: 1 / 1;
  width: 100%;
  align-self: start;
}

.hero .eyebrow { margin-left: clamp(0rem, 4vw, 5rem); }

.display {
  max-width: 23ch;
  margin: 0;
  font-size: clamp(3.1rem, 5.6vw, 6.4rem);
  font-weight: 530;
  letter-spacing: -.075em;
  line-height: .9;
  text-wrap: balance;
  font-family: "GZ Syne", "GZ Space", sans-serif;
}

.display .gradient-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(95deg, var(--studio-orange), var(--studio-red) 48%, var(--studio-cyan));
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 2rem color-mix(in srgb, var(--studio-red) 22%, transparent));
}

.hero .lead {
  position: relative;
  z-index: 5;
  max-width: 38rem;
  margin: clamp(1.2rem, 2vw, 2rem) clamp(0rem, 4vw, 5rem) 0 auto;
  color: var(--color-text-muted);
}

.hero .hero__actions {
  position: relative;
  z-index: 6;
  justify-content: flex-end;
  margin-right: clamp(0rem, 4vw, 5rem);
}

.hero__note {
  margin-left: auto;
  margin-right: clamp(0rem, 4vw, 5rem);
}

.hero-art {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 51%;
  width: clamp(18rem, 37vw, 39rem);
  height: clamp(18rem, 37vw, 39rem);
  transform: translate(-50%, -50%);
  perspective: 1000px;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-art::before {
  inset: 9%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95), transparent 6%),
    radial-gradient(circle at 33% 28%, var(--studio-cyan), transparent 16%),
    radial-gradient(circle at 60% 70%, var(--studio-red), transparent 56%),
    linear-gradient(145deg, var(--color-primary-deep), #111 62%);
  box-shadow:
    inset -3rem -2rem 5rem rgba(0, 0, 0, .78),
    inset 2rem 1rem 4rem rgba(255, 113, 63, .26),
    0 2rem 7rem rgba(0, 0, 0, .6),
    0 0 5rem color-mix(in srgb, var(--color-primary) 25%, transparent);
  animation: orb-breathe 7s ease-in-out infinite alternate;
}

.hero-art::after {
  inset: -3%;
  border: 1px solid color-mix(in srgb, var(--studio-cyan) 42%, transparent);
  border-top-color: var(--studio-orange);
  border-left-color: transparent;
  animation: orbit-spin 18s linear infinite;
}

.hero-art__orbit {
  inset: -12%;
  border-color: color-mix(in srgb, var(--color-text) 18%, transparent);
  animation: orbit-spin-reverse 28s linear infinite;
}

.hero-art__orbit::before,
.hero-art__orbit::after {
  border: 0;
  box-shadow: 0 0 2rem currentColor;
}

.hero-art__orbit::before {
  top: 8%;
  left: 9%;
  width: 1rem;
  height: 1rem;
  color: var(--studio-lime);
  background: var(--studio-lime);
}

.hero-art__orbit::after {
  right: 4%;
  bottom: 17%;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--studio-orange);
  background: var(--studio-orange);
}

.hero-art__core {
  z-index: 3;
  inset: 31%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(5, 12, 18, .42);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
}

.hero-art__core img {
  width: 70%;
  filter: brightness(0) invert(1) drop-shadow(0 0 1.3rem rgba(85, 191, 255, .5));
}

html[data-theme="light"] .hero-art__core img { filter: none; }

.hero-art__tile {
  z-index: 5;
  width: clamp(8.5rem, 13vw, 13rem);
  border-color: color-mix(in srgb, var(--color-text) 17%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--color-background) 68%, transparent);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
}

.hero-art__tile--one { top: 4%; right: -13%; }
.hero-art__tile--two { right: -20%; bottom: 9%; }
.hero-art__tile--three { bottom: -3%; left: -17%; }

@keyframes orb-breathe {
  from { scale: .96; filter: saturate(.9); }
  to { scale: 1.03; filter: saturate(1.2); }
}

@keyframes orbit-spin { to { rotate: 360deg; } }
@keyframes orbit-spin-reverse { to { rotate: -360deg; } }

.marquee {
  z-index: 2;
  rotate: -1.25deg;
  border-block: 0;
  background: var(--studio-orange);
  color: #101010;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .24);
}

.marquee__track { padding-block: 1rem; }

.marquee__item {
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  font-weight: 850;
}

.marquee__item::after { color: #101010; content: "✦"; }

/* Bento, portafolio y bloques sticky */
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: clamp(21rem, 34vw, 32rem);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: clamp(1.3rem, 2.5vw, 2.7rem);
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--color-surface) 90%, transparent),
    color-mix(in srgb, var(--color-background-alt) 68%, transparent));
  transform-style: preserve-3d;
  transition: border-color 300ms ease, box-shadow 450ms var(--ease-spring), transform 450ms var(--ease-spring);
}

.card::before {
  position: absolute;
  z-index: -1;
  top: -28%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 8%),
    radial-gradient(circle at 35% 35%, var(--color-primary-light), transparent 16%),
    linear-gradient(145deg, var(--color-primary), var(--color-primary-deep));
  box-shadow: inset -2rem -2rem 4rem rgba(0, 0, 0, .54);
  content: "";
  opacity: .78;
  transition: scale 600ms var(--ease-spring), rotate 900ms var(--ease-spring);
}

.card--orange::before {
  background: radial-gradient(circle at 30% 28%, #fff, transparent 7%), linear-gradient(145deg, var(--color-action-light), var(--color-action), #6f1d0c);
}

.card--red::before {
  background: radial-gradient(circle at 30% 28%, #fff, transparent 7%), linear-gradient(145deg, var(--color-accent-light), var(--color-accent), #5e0d26);
}

.card:hover {
  border-color: color-mix(in srgb, var(--color-primary-light) 68%, transparent);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, .3);
}

.card:hover::before { scale: 1.13; rotate: 10deg; }

.brand-card__logo,
.brand-card__tag,
.card h3,
.card p,
.card__link {
  position: relative;
  z-index: 2;
}

.brand-card__logo {
  width: 46%;
  min-width: 9rem;
  padding: .9rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-background) 74%, transparent);
  backdrop-filter: blur(12px);
}

.card h3 {
  max-width: 10ch;
  margin-top: auto;
  font-size: clamp(2rem, 3.4vw, 4rem);
  letter-spacing: -.055em;
  line-height: .94;
}

.split { gap: clamp(4rem, 10vw, 10rem); }
.sticky { top: calc(var(--header-height) + 2rem); }

.step {
  position: relative;
  min-height: 10rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  transition: padding 350ms var(--ease-spring);
}

.step:hover { padding-inline: 1.2rem; }

.step h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.8rem);
  letter-spacing: -.045em;
}

.step__number {
  font-family: "GZ Mono", monospace;
  font-size: .72rem;
}

.metric {
  min-height: clamp(15rem, 22vw, 22rem);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, color-mix(in srgb, var(--color-primary-light) 28%, transparent), transparent 28%),
    color-mix(in srgb, var(--color-surface-soft) 82%, transparent);
  box-shadow: inset -2rem -2rem 5rem rgba(0, 0, 0, .22);
}

.metric strong {
  font-size: clamp(3rem, 6vw, 7rem);
  letter-spacing: -.07em;
}

.quote {
  max-width: none;
  padding: clamp(3rem, 8vw, 8rem) 0;
  border: 0;
  background: transparent;
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-weight: 520;
  letter-spacing: -.06em;
  line-height: .95;
  text-align: center;
}

.gallery-card {
  position: relative;
  min-height: clamp(21rem, 31vw, 30rem);
  overflow: hidden;
  padding: clamp(1.5rem, 2.6vw, 2.6rem);
  border-radius: 0;
  background: var(--studio-panel);
  transition: border-radius 500ms var(--ease-spring), transform 500ms var(--ease-spring), box-shadow 500ms ease;
}

.gallery-card::before,
.gallery-card::after {
  position: absolute;
  content: "";
  transition: transform 700ms var(--ease-spring);
}

.gallery-card::before {
  top: 9%;
  right: 8%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 27%, rgba(255, 255, 255, .9), transparent 7%),
    linear-gradient(145deg, var(--gallery-color, var(--color-primary-light)), #10141b 72%);
  box-shadow: inset -2rem -2rem 4rem rgba(0, 0, 0, .7);
}

.gallery-card::after {
  top: 15%;
  right: 3%;
  width: 67%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 50%;
}

.gallery-card h3,
.gallery-card p {
  position: relative;
  z-index: 2;
}

.gallery-card h3 {
  max-width: 8ch;
  margin-top: auto;
  font-size: clamp(2rem, 3.3vw, 3.8rem);
  line-height: .94;
}

.gallery-card:hover {
  z-index: 2;
  border-radius: 2.5rem;
  box-shadow: 0 3rem 7rem rgba(0, 0, 0, .38);
  transform: scale(1.035);
}

.filters {
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

.filter-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "GZ Mono", monospace;
  font-size: .7rem;
}

.filter-button.is-active {
  background: var(--color-text);
  color: var(--color-background);
}

.logo-panel {
  min-height: clamp(24rem, 48vw, 42rem);
  overflow: hidden;
  border-radius: 50% 50% 2rem 2rem;
  background:
    radial-gradient(circle at 35% 25%, var(--studio-cyan), transparent 8%),
    radial-gradient(circle at 52% 44%, var(--color-primary), transparent 34%),
    radial-gradient(circle at 66% 68%, var(--studio-red), transparent 43%),
    var(--studio-panel);
}

.logo-panel img {
  position: relative;
  z-index: 2;
  width: 58%;
  filter: brightness(0) invert(1);
}

html[data-theme="light"] .logo-panel img { filter: none; }

.faq__item {
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}

.faq__item:last-child { border-bottom: 1px solid var(--color-border); }

.faq__button {
  min-height: 6.5rem;
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);
}

.faq__icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: rotate 350ms var(--ease-spring), background 250ms ease;
}

.faq__button[aria-expanded="true"] .faq__icon {
  rotate: 45deg;
  background: var(--studio-orange);
  color: #111;
}

/* Héroes interiores */
.page-hero {
  min-height: max(620px, 82svh);
  overflow: clip;
  padding: calc(var(--header-height) + clamp(4rem, 9vw, 9rem)) 0 clamp(4rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 70% 44%, color-mix(in srgb, var(--color-primary) 25%, transparent), transparent 23rem),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-background-alt) 65%, transparent));
}

.page-hero::before {
  position: absolute;
  z-index: -1;
  top: 16%;
  right: 7%;
  width: clamp(15rem, 34vw, 36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 26%, rgba(255, 255, 255, .9), transparent 6%),
    radial-gradient(circle at 36% 30%, var(--studio-cyan), transparent 14%),
    linear-gradient(145deg, var(--color-primary), var(--studio-panel) 75%);
  box-shadow: inset -3rem -3rem 5rem rgba(0, 0, 0, .66), 0 3rem 8rem rgba(0, 0, 0, .38);
  content: "";
}

.page-hero--orange::before {
  background: radial-gradient(circle at 31% 26%, #fff, transparent 6%), linear-gradient(145deg, var(--studio-orange), #521a10 72%);
}

.page-hero--red::before {
  background: radial-gradient(circle at 31% 26%, #fff, transparent 6%), linear-gradient(145deg, var(--studio-red), #421122 72%);
}

.page-hero::after {
  top: 6%;
  right: 2%;
  bottom: auto;
  width: clamp(18rem, 44vw, 47rem);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  animation: orbit-spin 24s linear infinite;
}

.page-hero .shell {
  position: relative;
  z-index: 2;
}

.page-hero h1,
.page-hero .display {
  max-width: 10ch;
  font-size: clamp(4rem, 9.5vw, 10.5rem);
  font-weight: 530;
  letter-spacing: -.075em;
  line-height: .86;
  font-family: "GZ Syne", "GZ Space", sans-serif;
}

.page-hero .lead {
  max-width: 38rem;
  margin-top: clamp(2rem, 5vw, 5rem);
}

/* Slider accesible */
.studio-slider { position: relative; overflow: hidden; }
.studio-slider__viewport { overflow: hidden; }

.studio-slider__track {
  display: flex;
  transition: transform 700ms var(--ease-spring);
}

.studio-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: clamp(31rem, 61vw, 48rem);
  overflow: hidden;
  padding: clamp(2rem, 6vw, 6rem);
  border: 1px solid var(--color-border);
  border-radius: clamp(1.5rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 68% 37%, var(--slide-color, var(--color-primary)), transparent 26%),
    linear-gradient(135deg, var(--studio-panel), color-mix(in srgb, var(--slide-color, var(--color-primary)) 32%, #090b0e));
  color: #f3f7fa;
}

.studio-slide::before {
  position: absolute;
  right: 7%;
  bottom: -25%;
  width: min(56vw, 42rem);
  aspect-ratio: 1;
  border: clamp(2rem, 7vw, 7rem) solid color-mix(in srgb, var(--slide-color, var(--color-primary)) 68%, transparent);
  border-radius: 50%;
  content: "";
}

.studio-slide__number {
  font-family: "GZ Mono", monospace;
  font-size: .72rem;
  letter-spacing: .1em;
}

.studio-slide h3 {
  position: relative;
  z-index: 2;
  max-width: 10ch;
  margin: clamp(8rem, 17vw, 15rem) 0 1rem;
  font-size: clamp(3rem, 7vw, 7.8rem);
  letter-spacing: -.065em;
  line-height: .88;
  font-family: "GZ Syne", "GZ Space", sans-serif;
}

.studio-slide p {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  color: rgba(243, 247, 250, .72);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.studio-slider__controls {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.2rem;
}

.studio-slider__button {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
}

.studio-slider__progress {
  position: relative;
  flex: 1;
  height: 1px;
  margin-left: 1rem;
  overflow: hidden;
  background: var(--color-border);
}

.studio-slider__progress > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--studio-orange);
  transition: width 600ms var(--ease-spring);
}

/* Contacto, footer, cursor y regreso al inicio */
.contact-panel {
  overflow: hidden;
  border-radius: clamp(1.5rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 4% 8%, color-mix(in srgb, var(--studio-orange) 32%, transparent), transparent 22rem),
    radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--color-primary) 38%, transparent), transparent 28rem),
    color-mix(in srgb, var(--color-surface-soft) 90%, transparent);
}

.form input,
.form select,
.form textarea {
  border-radius: 0;
  border-width: 0 0 1px;
  background: transparent;
}

.footer {
  overflow: clip;
  padding-top: clamp(5rem, 10vw, 10rem);
  background:
    radial-gradient(circle at 84% 80%, color-mix(in srgb, var(--color-accent) 27%, transparent), transparent 26rem),
    var(--studio-black);
  color: #f3f7fa;
}

.footer__brand img {
  width: min(18rem, 80%);
  filter: brightness(0) invert(1);
}

.footer__bottom { min-height: 6rem; }

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: "GZ Display", "GZ Syne", sans-serif;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__credit::before {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--studio-orange);
  content: "";
}

.back-to-top {
  position: fixed;
  z-index: 220;
  right: clamp(1rem, 2.2vw, 2rem);
  bottom: clamp(5.2rem, 8vw, 6.5rem);
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  translate: 0 1rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-background) 72%, transparent);
  color: var(--color-text);
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity 260ms ease, translate 320ms var(--ease-spring), background 220ms ease;
}

.back-to-top.is-visible {
  translate: 0 0;
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--studio-orange);
  color: #101010;
}

.motion-cursor {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  translate: -50% -50%;
  border: 1px solid color-mix(in srgb, var(--color-text) 72%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-background) 35%, transparent);
  color: var(--color-text);
  font-family: "GZ Mono", monospace;
  font-size: .52rem;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: width 220ms var(--ease-spring), height 220ms var(--ease-spring), opacity 180ms ease, background 220ms ease;
}

.motion-cursor.is-visible { opacity: 1; }

.motion-cursor.is-active {
  width: 5rem;
  height: 5rem;
  border-color: transparent;
  background: var(--studio-orange);
  color: #101010;
}

@media (max-width: 980px) {
  .hero { min-height: 920px; }
  .hero__grid { align-items: start; }

  .hero .lead {
    max-width: 31rem;
    margin: 20rem 0 0;
  }

  .hero .hero__actions {
    justify-content: flex-start;
    margin-right: 0;
  }

  .hero__note { margin-left: 0; margin-right: 0; }

  .hero-art {
    top: 53%;
    left: 65%;
    width: 30rem;
    height: 30rem;
  }

  .grid--4 { grid-template-columns: 1fr; }
  .metric { border-radius: 2rem; }
  .page-hero::before { right: -14%; opacity: .72; }
}

@media (max-width: 680px) {
  :root { --header-height: 4.7rem; }
  .header__actions > .button { display: none; }
  .brand { width: 8.3rem; }

  .mobile-nav {
    align-content: start;
    padding-top: 7.5rem;
  }

  .mobile-nav a {
    width: 100%;
    padding-block: .28em;
    border-bottom: 1px solid var(--color-border);
    font-size: clamp(2.4rem, 13vw, 4.2rem);
  }

  .hero {
    min-height: 850px;
    padding-top: 1.5rem;
  }

  .display { font-size: clamp(3.1rem, 13vw, 4.7rem); }
  .hero .eyebrow { margin-left: 0; }

  .hero-art {
    top: 49%;
    left: 74%;
    width: 23rem;
    height: 23rem;
    opacity: .86;
  }

  .hero-art__tile { display: none; }
  .hero .lead { margin-top: 14rem; }
  .hero .hero__actions { display: grid; }
  .hero .hero__actions .button { width: 100%; }
  .section-title { font-size: clamp(2.7rem, 14vw, 4.8rem); }

  .page-hero { min-height: 680px; }

  .page-hero h1,
  .page-hero .display {
    font-size: clamp(3.6rem, 17vw, 6rem);
  }

  .page-hero::before {
    top: 38%;
    right: -32%;
    width: 22rem;
  }

  .page-hero::after {
    top: 32%;
    right: -45%;
    width: 27rem;
  }

  .card { min-height: 29rem; }
  .metric { min-height: 15rem; }
  .quote { text-align: left; }
  .studio-slide { min-height: 36rem; }
  .studio-slide h3 { margin-top: 11rem; }
  font-family: "GZ Syne", "GZ Space", sans-serif;
}

@media (pointer: coarse), (hover: none) {
  .motion-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .hero-art::before,
  .hero-art::after,
  .hero-art__orbit,
  .page-hero::after {
    animation: none !important;
  }

  .mobile-nav,
  .studio-slider__track,
  .card,
  .gallery-card {
    transition-duration: 1ms !important;
  }

  .motion-cursor { display: none; }
}

.has-gsap .reveal { opacity: 1; transform: none; }

/* Escenas operativas: mantenimiento y error 404 */
.status-page {
  display: grid;
  min-height: calc(100svh - 6rem);
  overflow: clip;
  place-items: center;
  padding-block: clamp(4rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 76% 46%, color-mix(in srgb, var(--color-primary) 26%, transparent), transparent 30rem),
    radial-gradient(circle at 15% 18%, color-mix(in srgb, var(--studio-orange) 16%, transparent), transparent 24rem);
}

.status-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.status-page__brand {
  display: block;
  width: clamp(10rem, 16vw, 15rem);
  margin-bottom: clamp(3rem, 7vw, 7rem);
}

.status-page h1 {
  max-width: 10ch;
  margin: 0;
  font-family: "GZ Syne", "GZ Space", sans-serif;
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 550;
  letter-spacing: -.075em;
  line-height: .86;
}

.status-page .gradient-text {
  background: linear-gradient(95deg, var(--studio-orange), var(--studio-red), var(--studio-cyan));
  background-clip: text;
  color: transparent;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  color: var(--color-text-muted);
  font-family: "GZ Mono", monospace;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status-list span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.status-list i {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--studio-lime);
  box-shadow: 0 0 1rem var(--studio-lime);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.status-list span:nth-child(2) i { animation-delay: .35s; }
.status-list span:nth-child(3) i { animation-delay: .7s; background: var(--studio-orange); box-shadow: 0 0 1rem var(--studio-orange); }

.status-machine {
  position: relative;
  width: min(42vw, 38rem);
  aspect-ratio: 1;
  place-self: center;
}

.status-machine__ring,
.status-machine__core,
.status-machine__satellite {
  position: absolute;
  border-radius: 50%;
}

.status-machine__ring { border: 1px solid color-mix(in srgb, var(--color-text) 24%, transparent); }
.status-machine__ring--outer { inset: 0; border-top-color: var(--studio-cyan); animation: orbit-spin 20s linear infinite; }
.status-machine__ring--middle { inset: 17%; border-right-color: var(--studio-orange); animation: orbit-spin-reverse 14s linear infinite; }

.status-machine__core {
  inset: 31%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 23%, #fff, transparent 5%),
    linear-gradient(145deg, var(--studio-cyan), var(--color-primary) 40%, var(--studio-red));
  box-shadow: inset -2rem -2rem 4rem rgba(0,0,0,.62), 0 2rem 6rem rgba(0,0,0,.42), 0 0 4rem color-mix(in srgb, var(--color-primary) 42%, transparent);
  animation: orb-breathe 4s ease-in-out infinite alternate;
}

.status-machine__core img { width: 55%; filter: brightness(0) invert(1); }
.status-machine__satellite { width: 1.1rem; aspect-ratio: 1; box-shadow: 0 0 1.6rem currentColor; }
.status-machine__satellite--one { top: 8%; left: 28%; color: var(--studio-lime); background: currentColor; animation: satellite-float 3.8s ease-in-out infinite alternate; }
.status-machine__satellite--two { right: 4%; bottom: 28%; color: var(--studio-orange); background: currentColor; animation: satellite-float 4.8s .5s ease-in-out infinite alternate-reverse; }
.status-machine__satellite--three { bottom: 5%; left: 24%; color: var(--studio-cyan); background: currentColor; animation: satellite-float 3.3s .2s ease-in-out infinite alternate; }

.status-machine p {
  position: absolute;
  right: 0;
  bottom: 10%;
  margin: 0;
  color: var(--color-text-muted);
  font-family: "GZ Mono", monospace;
  font-size: clamp(.6rem, .8vw, .76rem);
  letter-spacing: .08em;
}

.status-footer { padding-top: 0; }

.error-page {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--color-primary) 24%, transparent), transparent 25rem),
    var(--color-background);
}

.error-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62vw, 43rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}

.error-orbit__ring,
.error-orbit__planet,
.error-orbit__signal { position: absolute; border-radius: 50%; }

.error-orbit__ring {
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
  border-top-color: var(--studio-orange);
  border-bottom-color: var(--studio-cyan);
  animation: orbit-spin 16s linear infinite;
}

.error-orbit__planet {
  top: 8%;
  left: 18%;
  width: 15%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--studio-orange), var(--studio-red));
  box-shadow: inset -1rem -1rem 2rem rgba(0,0,0,.5), 0 0 3rem color-mix(in srgb, var(--studio-red) 42%, transparent);
  animation: satellite-float 3.5s ease-in-out infinite alternate;
}

.error-orbit__signal {
  right: 9%;
  bottom: 13%;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-background) 72%, transparent);
  color: var(--studio-cyan);
  font-family: "GZ Mono", monospace;
  font-size: 1.5rem;
  backdrop-filter: blur(12px);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.error-page > div { position: relative; z-index: 2; }
.error-page__code { color: color-mix(in srgb, var(--color-text) 10%, transparent); text-shadow: 0 0 3rem color-mix(in srgb, var(--color-primary) 34%, transparent); }

@keyframes status-pulse { 50% { opacity: .35; scale: .78; } }
@keyframes satellite-float { to { translate: 0 -1.2rem; rotate: 14deg; } }

/* WhatsApp al centro derecho; regreso al inicio permanece abajo. */
.whatsapp {
  top: 50%;
  right: clamp(.8rem, 1.6vw, 1.5rem);
  bottom: auto;
  transform: translateY(-50%);
  transition: background 220ms ease, transform 260ms var(--ease-spring);
}

.whatsapp:hover { transform: translateY(-50%) translateX(-4px); }

@media (max-width: 800px) {
  .status-page__grid { grid-template-columns: 1fr; }
  .status-machine { width: min(88vw, 31rem); grid-row: 1; opacity: .76; }
  .status-page__content { grid-row: 2; }
  .status-page__brand { margin-bottom: 3rem; }
}

@media (max-width: 680px) {
  .whatsapp {
    right: .65rem;
    width: 3.15rem;
    height: 3.15rem;
    padding: 0;
    justify-content: center;
  }
  .whatsapp span { display: none; }
  .error-orbit { width: 34rem; }
}

@media (prefers-reduced-motion: reduce) {
  .status-list i,
  .status-machine__ring,
  .status-machine__core,
  .status-machine__satellite,
  .error-orbit__ring,
  .error-orbit__planet,
  .error-orbit__signal { animation: none !important; }
}
/* Movimiento editorial reforzado */
.motion-loader {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.2rem, 3vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--color-primary) 30%, transparent), transparent 28rem),
    var(--studio-black);
  color: #f3f7fa;
  transition: clip-path 720ms var(--ease-smooth), visibility 720ms;
  clip-path: inset(0 0 0 0);
}

.motion-loader.is-complete {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  visibility: hidden;
}

.motion-loader__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-family: "GZ Mono", monospace;
  font-size: clamp(.6rem, .85vw, .8rem);
  letter-spacing: .08em;
}

.motion-loader__count {
  font-family: "GZ Syne", sans-serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 520;
  letter-spacing: -.07em;
}

.motion-loader__stage {
  position: relative;
  display: grid;
  width: min(42vw, 30rem);
  aspect-ratio: 1;
  place-self: center;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  animation: loader-orbit 3.2s linear infinite;
}

.motion-loader__stage::before,
.motion-loader__stage::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.motion-loader__stage::before {
  inset: 12%;
  border: clamp(1.4rem, 4vw, 4rem) solid color-mix(in srgb, var(--studio-orange) 68%, transparent);
  border-left-color: var(--studio-cyan);
}

.motion-loader__stage::after {
  top: 5%;
  left: 27%;
  width: 1rem;
  aspect-ratio: 1;
  background: var(--studio-lime);
  box-shadow: 0 0 1.8rem var(--studio-lime);
}

.motion-loader__stage img {
  position: relative;
  z-index: 2;
  width: 36%;
  filter: brightness(0) invert(1);
  animation: loader-logo 1.35s ease-in-out infinite alternate;
}

.motion-loader__line {
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.14);
}

.motion-loader__line-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--studio-cyan), var(--studio-orange), var(--studio-red));
}

.motion-word-mask {
  display: inline-flex;
  overflow: hidden;
  padding-bottom: .05em;
  vertical-align: bottom;
}

.motion-word {
  display: inline-block;
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  z-index: 12000;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--studio-cyan), var(--studio-orange), var(--studio-red));
  box-shadow: 0 0 1rem var(--studio-orange);
}

.display .gradient-text {
  background-size: 220% 100%;
  animation: headline-gradient 5s ease-in-out infinite alternate;
}

.hero-art__tile--one { animation: card-float 4.6s ease-in-out infinite alternate; }
.hero-art__tile--two { animation: card-float 5.3s .5s ease-in-out infinite alternate-reverse; }
.hero-art__tile--three { animation: card-float 4.1s .9s ease-in-out infinite alternate; }

.hero-art__core {
  animation: core-float 5s ease-in-out infinite alternate;
}

.hero-art__glow,
.hero-art__scanner {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.hero-art__glow {
  inset: 19%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--studio-cyan) 24%, transparent), transparent 68%);
  translate: var(--scene-x, 0) var(--scene-y, 0);
  filter: blur(18px);
  animation: glow-pulse 3.4s ease-in-out infinite alternate;
}

.hero-art__scanner {
  top: 21%;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--studio-cyan), transparent);
  box-shadow: 0 0 1rem var(--studio-cyan);
  animation: scanner-move 3.1s ease-in-out infinite;
}

.studio-slide::before {
  animation: slide-ring 7s ease-in-out infinite alternate;
}

.gallery-card::after {
  animation: gallery-orbit 10s linear infinite;
}

/* Controles compactos solicitados */
.header__actions .button--small {
  min-height: 2.75rem;
  padding: .62rem .95rem;
  font-size: .78rem;
}

.studio-slide .button {
  min-height: 2.75rem;
  padding: .65rem .95rem;
  font-size: .78rem;
}

.whatsapp {
  min-height: 2.75rem;
  padding: .65rem .82rem;
  gap: .4rem;
  font-size: .74rem;
}

.back-to-top {
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
}

@keyframes loader-orbit { to { rotate: 360deg; } }
@keyframes loader-logo { to { scale: 1.12; rotate: -8deg; } }
@keyframes headline-gradient { to { background-position: 100% 50%; filter: drop-shadow(0 0 2.5rem color-mix(in srgb, var(--studio-cyan) 38%, transparent)); } }
@keyframes card-float { to { translate: 0 -1rem; rotate: 2deg; } }
@keyframes core-float { to { translate: .55rem -.7rem; scale: 1.04; } }
@keyframes glow-pulse { to { scale: 1.24; opacity: .45; } }
@keyframes scanner-move { 0%,100% { translate: 0 1rem; opacity: 0; } 35%,65% { opacity: 1; } 50% { translate: 0 13rem; } }
@keyframes slide-ring { to { rotate: 18deg; scale: 1.08; } }
@keyframes gallery-orbit { to { rotate: 360deg; } }

@media (max-width: 680px) {
  .motion-loader__stage { width: min(72vw, 22rem); }
  .header__actions .button--small { display: none; }
  .whatsapp { width: 2.8rem; height: 2.8rem; min-height: 2.8rem; }
  .back-to-top { width: 2.8rem; height: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-loader { display: none; }
  .display .gradient-text,
  .hero-art__tile,
  .hero-art__core,
  .hero-art__glow,
  .hero-art__scanner,
  .studio-slide::before,
  .gallery-card::after { animation: none !important; }
}

/* Animación tipográfica, scroll inercial y núcleo circular */
html.has-lenis,
html.has-lenis body {
  height: auto;
}

html.has-lenis,
html.has-lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.has-lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.motion-word {
  display: inline-flex;
}

.motion-letter {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 125%, 0) rotate(5deg);
  transform-origin: 20% 100%;
  will-change: transform, opacity;
}

.hero-art__core {
  inset: 30%;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: visible;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(85, 191, 255, .18), transparent 34%),
    radial-gradient(circle at 65% 72%, rgba(201, 39, 44, .2), transparent 38%),
    rgba(5, 12, 18, .58);
  box-shadow:
    inset 0 0 2rem rgba(85, 191, 255, .08),
    0 0 0 .55rem rgba(255, 255, 255, .025),
    0 1rem 3rem rgba(0, 0, 0, .38);
  animation: core-float 5s ease-in-out infinite alternate;
  isolation: isolate;
}

.hero-art__core::before,
.hero-art__core::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-art__core::before {
  inset: -15%;
  border: 1px solid color-mix(in srgb, var(--studio-cyan) 62%, transparent);
  border-top-color: var(--studio-orange);
  border-left-color: transparent;
  box-shadow: 0 0 1.4rem color-mix(in srgb, var(--studio-cyan) 12%, transparent);
  animation: core-ring-forward 9s linear infinite;
}

.hero-art__core::after {
  inset: -27%;
  border: 1px dashed color-mix(in srgb, var(--color-text) 21%, transparent);
  border-right-color: var(--studio-red);
  animation: core-ring-reverse 15s linear infinite;
}

.hero-art__core img {
  width: 66%;
  max-height: 66%;
  object-fit: contain;
  transform-origin: center;
  animation: core-logo-breathe 3.8s ease-in-out infinite alternate;
}

.back-to-top span {
  transition: transform 280ms var(--ease-spring);
}

.back-to-top:hover span,
.back-to-top.is-returning span {
  animation: back-arrow-rise .72s var(--ease-smooth) infinite;
}

@keyframes core-ring-forward {
  to { transform: rotate(360deg); }
}

@keyframes core-ring-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes core-logo-breathe {
  from { transform: scale(.96); filter: brightness(0) invert(1) drop-shadow(0 0 .7rem rgba(85, 191, 255, .25)); }
  to { transform: scale(1.035); filter: brightness(0) invert(1) drop-shadow(0 0 1.35rem rgba(85, 191, 255, .58)); }
}

@keyframes back-arrow-rise {
  0% { transform: translateY(.35rem); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: translateY(-.35rem); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-letter {
    opacity: 1;
    transform: none;
  }

  .hero-art__core::before,
  .hero-art__core::after,
  .hero-art__core img,
  .back-to-top span {
    animation: none !important;
  }
}
