/* Reveal Presets
   Stable presets and experimental drafts for section headings.
   Keep timing slow with a delayed start by default for ongoing exploration. */

@property --mask-top {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 86%;
}

.reveal-heading {
  --reveal-start-delay: 0s;
}

/* ── Layer pre-promotion ─────────────────────────────────────────────
   will-change is scoped behind .wc-ready (added by an IntersectionObserver
   slightly before the reveal trigger) so that off-screen sections don't
   consume GPU layers while idle.  ─────────────────────────────────── */
.wc-ready.reveal-heading--tree-streak .reveal-heading__ghost { will-change: transform, opacity; }

.wc-ready.reveal-heading--slice-converge .slice-heading__slice { will-change: transform, opacity; }
.wc-ready.reveal-heading--slice-converge .slice-heading__geo-bar { will-change: transform, opacity; }

.wc-ready.reveal-heading--slant-unmask .reveal-heading__title span::before,
.wc-ready.reveal-heading--slant-unmask .reveal-heading__title span::after { will-change: transform, opacity, filter; }

.wc-ready.reveal-heading--signal-fracture .reveal-heading__title::before,
.wc-ready.reveal-heading--signal-fracture .reveal-heading__title::after { will-change: transform, opacity, filter, clip-path; }
.wc-ready.reveal-heading--signal-fracture .reveal-heading__title span { will-change: transform, opacity, filter; }
.wc-ready.reveal-heading--signal-fracture .reveal-heading__title span::before,
.wc-ready.reveal-heading--signal-fracture .reveal-heading__title span::after { will-change: transform, opacity, filter; }

.wc-ready.reveal-heading--chrome-fill .chrome-fill-base { will-change: opacity, filter; }
.wc-ready.reveal-heading--chrome-fill .chrome-fill-svg { will-change: opacity; }
.wc-ready.reveal-heading--chrome-fill .reveal-heading__title::before,
.wc-ready.reveal-heading--chrome-fill .reveal-heading__title::after { will-change: opacity; }

.wc-ready.reveal-heading--bookshelf-scan .bookshelf-scan__overlay-train,
.wc-ready.reveal-heading--bookshelf-scan .bookshelf-scan__mask-train-svg { will-change: transform; }
.wc-ready.reveal-heading--bookshelf-scan .bookshelf-scan__spine { will-change: left, opacity; }

.wc-ready.reveal-heading--liquid-unflatten .reveal-heading__title::before,
.wc-ready.reveal-heading--liquid-unflatten .reveal-heading__title::after { will-change: transform, opacity, filter; }
.wc-ready.reveal-heading--liquid-unflatten .reveal-heading__title > span { will-change: transform, opacity, filter; }
.wc-ready.reveal-heading--liquid-unflatten .reveal-heading__title > span::after { will-change: transform, opacity, filter; }

.wc-ready.reveal-heading--paint-surge .paint-layer { will-change: opacity, transform, filter; }
.wc-ready.reveal-heading--paint-surge .paint-undercoat { will-change: transform, opacity; }
.wc-ready.reveal-heading--paint-surge .paint-sheen { will-change: opacity, transform; }
.wc-ready.reveal-heading--paint-surge .brush { will-change: transform, opacity; }
.wc-ready.reveal-heading--paint-surge .brush::before { will-change: transform, opacity; }
.wc-ready.reveal-heading--paint-surge .reveal-heading__title { will-change: opacity, filter; }

.wc-ready.reveal-heading--letter-cloud .cloud-letter { will-change: opacity; }
.wc-ready.reveal-heading--letter-cloud .reveal-heading__title { will-change: opacity; }

.wc-ready.reveal-heading--import-supernova .beam { will-change: opacity, clip-path; }
.wc-ready.reveal-heading--import-supernova .reveal-heading__title { will-change: opacity, filter, transform; }
.wc-ready.reveal-heading--import-supernova .title-ghost,
.wc-ready.reveal-heading--import-supernova .title-flash { will-change: opacity, transform, filter; }

.wc-ready.reveal-heading--waveform .waveform-layer { will-change: filter, opacity; }

.reveal-heading[data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-heading__title {
  position: relative;
  overflow: visible;
}

.reveal-heading__title span {
  position: relative;
  display: inline-block;
}

.reveal-heading__letterline {
  display: inline-block;
}

.reveal-heading__glyph {
  display: inline-block;
}

/* Stable: Signal Settle */
.reveal-heading--signal-settle .eyebrow {
  position: relative;
  width: fit-content;
  opacity: 0;
  transform: translateX(-18px) translateY(6px);
  filter: blur(6px);
  letter-spacing: 0.32em;
  text-shadow: 0 0 12px rgba(47, 210, 255, 0.14);
}

.reveal-heading--signal-settle .reveal-heading__title::before,
.reveal-heading--signal-settle .reveal-heading__title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: inherit;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.reveal-heading--signal-settle .reveal-heading__title::before {
  color: rgba(47, 210, 255, 0.7);
  text-shadow: 0 0 12px rgba(47, 210, 255, 0.28);
}

.reveal-heading--signal-settle .reveal-heading__title::after {
  color: rgba(196, 85, 255, 0.6);
  text-shadow: 0 0 12px rgba(196, 85, 255, 0.22);
}

.reveal-heading--signal-settle .reveal-heading__title span {
  opacity: 0;
  transform: perspective(900px) rotateX(24deg) translateY(20px) scaleY(0.82);
  transform-origin: center 85%;
  letter-spacing: 0.04em;
  filter: blur(10px) saturate(1.2);
  text-shadow:
    0 0 18px rgba(47, 210, 255, 0.1),
    0 0 34px rgba(196, 85, 255, 0.06);
}

.reveal-heading--signal-settle .reveal-heading__title span::before {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 56%;
  height: 0.95em;
  background:
    linear-gradient(90deg, transparent, rgba(47, 210, 255, 0.34) 36%, rgba(255, 255, 255, 0.12) 48%, rgba(196, 85, 255, 0.3) 62%, transparent 76%);
  filter: blur(14px);
  opacity: 0;
  transform: translateY(-50%) skewX(-24deg);
  pointer-events: none;
}

.reveal-heading--signal-settle.is-visible .eyebrow {
  animation: revealSignalEyebrowLift 1.62s cubic-bezier(0.18, 0.84, 0.32, 1) calc(var(--reveal-start-delay) + 0.03s) both;
}

.reveal-heading--signal-settle.is-visible .reveal-heading__title::before {
  animation: revealSignalGhostCyan 1.74s cubic-bezier(0.18, 0.88, 0.3, 1) calc(var(--reveal-start-delay) + 0.06s) both;
}

.reveal-heading--signal-settle.is-visible .reveal-heading__title::after {
  animation: revealSignalGhostMagenta 1.82s cubic-bezier(0.18, 0.88, 0.3, 1) calc(var(--reveal-start-delay) + 0.08s) both;
}

.reveal-heading--signal-settle.is-visible .reveal-heading__title span {
  animation: revealSignalTitleSettle 1.96s cubic-bezier(0.14, 0.88, 0.28, 1) calc(var(--reveal-start-delay) + 0.1s) both;
}

.reveal-heading--signal-settle.is-visible .reveal-heading__title span::before {
  animation: revealSignalEnergySweep 2.24s cubic-bezier(0.16, 0.88, 0.28, 1) calc(var(--reveal-start-delay) + 0.14s) both;
}

.feature-index-header.reveal-heading--signal-settle .feature-index-title span::after {
  --feature-index-streak-tail: clamp(40px, 4.2vw, 58px);
  --feature-index-streak-shift-x: clamp(72px, 9vw, 148px);
  content: "";
  position: absolute;
  top: calc(100% - 0.18em);
  left: calc(-100% - var(--feature-index-streak-tail) - 18px + var(--feature-index-streak-shift-x));
  width: calc(100% + var(--feature-index-streak-tail) + 18px);
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(165, 44, 221, 0) 22%,
    rgba(165, 44, 221, 0.08) 42%,
    rgba(165, 44, 221, 0.24) 68%,
    rgba(255, 255, 255, 0.2) 78%,
    rgba(255, 255, 255, 0.68) 86%,
    rgba(165, 44, 221, 0.6) 93%,
    rgba(165, 44, 221, 0.1) 97%,
    rgba(165, 44, 221, 0) 100%
  );
  filter:
    blur(0.45px)
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.34))
    drop-shadow(0 0 10px rgba(165, 44, 221, 0.5));
  mix-blend-mode: screen;
  transform: scale(1);
}

.feature-index-header.reveal-heading--signal-settle.is-visible .feature-index-title span::after {
  animation: revealFeatureIndexStreak 0.82s cubic-bezier(0.45, 0, 0.95, 0.35) calc(var(--reveal-start-delay) + 0.1s) both;
}

/* Stable: Signal Settle (Logo Lockup) */
.reveal-logo {
  --reveal-start-delay: 0s;
}

.reveal-logo--signal-settle {
  --logo-signal-settle-delay: calc(var(--reveal-start-delay) + 3.4s);
  --logo-signal-end-delay: calc(var(--reveal-start-delay) + 5.355s);
  --logo-signal-layer-fade-duration: 1.44s;
  --logo-signal-ghost-fade-duration: 2.18s;
  --logo-signal-ghost-fade-delay: calc(var(--logo-signal-settle-delay) - var(--logo-signal-ghost-fade-duration) + 0.2s);
  opacity: 0;
  transform: translateX(-18px) translateY(6px);
  filter: blur(6px);
}

.reveal-logo--signal-settle .logo-stencil-wrap {
  isolation: isolate;
}

.reveal-logo--signal-settle .logo-stencil-wrap::before,
.reveal-logo--signal-settle .logo-stencil-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: url("images/Pinako logotype white.png");
  mask-image: url("images/Pinako logotype white.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  z-index: 4;
}

.reveal-logo--signal-settle .logo-stencil-wrap::before {
  background: linear-gradient(135deg, rgba(116, 242, 208, 0.62) 0%, rgba(51, 215, 241, 0.46) 52%, rgba(42, 205, 166, 0.34) 100%);
  filter: blur(2px) drop-shadow(0 0 12px rgba(116, 242, 208, 0.18));
}

.reveal-logo--signal-settle .logo-stencil-wrap::after {
  background: linear-gradient(135deg, rgba(196, 85, 255, 0.78) 0%, rgba(196, 85, 255, 0.44) 100%);
  filter: blur(2px) drop-shadow(0 0 12px rgba(196, 85, 255, 0.22));
}

.reveal-logo--signal-settle .logo-stencil-fill {
  transform-origin: center 15%;
}

.reveal-logo--signal-settle .logo-stencil-fill {
  z-index: 2;
  opacity: 0;
  transform: perspective(900px) rotateX(-24deg) translateY(-20px) scaleY(0.82);
  filter:
    blur(10px)
    saturate(1.2)
    drop-shadow(0 0 18px rgba(47, 210, 255, 0.1))
    drop-shadow(0 0 34px rgba(196, 85, 255, 0.06));
}

.reveal-logo--signal-settle .logo-stencil-fill::before {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 56%;
  height: 42%;
  background:
    linear-gradient(90deg, transparent, rgba(47, 210, 255, 0.34) 36%, rgba(255, 255, 255, 0.12) 48%, rgba(196, 85, 255, 0.3) 62%, transparent 76%);
  filter: blur(14px);
  opacity: 0;
  transform: translateY(-50%) skewX(-24deg);
  pointer-events: none;
}

.reveal-logo--signal-settle .logo-stencil-shade {
  z-index: 3;
  opacity: 0;
}

.reveal-logo--signal-settle .logo-stencil-ghost {
  z-index: 4;
  opacity: 0;
  animation: none;
}

.reveal-logo--signal-settle .logo-stencil-sheen {
  z-index: 6;
  opacity: 0;
}

.hero-copy.is-visible .reveal-logo--signal-settle {
  animation: revealSignalEyebrowLift 3.645s cubic-bezier(0.18, 0.84, 0.32, 1) calc(var(--reveal-start-delay) + 0.0675s) both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-wrap::before {
  animation: revealLogoSignalGhostAquamarine 4.095s cubic-bezier(0.18, 0.88, 0.3, 1) calc(var(--reveal-start-delay) + 0.135s) both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-wrap::after {
  animation: revealLogoSignalGhostMagentaMirror 4.095s cubic-bezier(0.18, 0.88, 0.3, 1) calc(var(--reveal-start-delay) + 0.18s) both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-fill {
  animation: revealLogoSignalTitleSettleAbove 4.41s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--reveal-start-delay) + 0.225s) both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-fill::before {
  animation: revealSignalEnergySweep 5.04s cubic-bezier(0.16, 0.88, 0.28, 1) calc(var(--reveal-start-delay) + 0.315s) both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-sheen {
  animation: revealLogoSignalSheenSettle var(--logo-signal-layer-fade-duration) ease-out var(--logo-signal-end-delay) both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-shade {
  animation: revealLogoSignalShadeFadeIn var(--logo-signal-layer-fade-duration) ease-out var(--logo-signal-end-delay) both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-ghost-1 {
  animation:
    revealLogoSignalGhostAmbient var(--logo-signal-ghost-fade-duration) ease-out var(--logo-signal-ghost-fade-delay) both,
    logoGhost var(--logo-ghost1-duration) ease-in-out var(--logo-signal-settle-delay) infinite both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-ghost-2 {
  animation:
    revealLogoSignalGhostAmbient var(--logo-signal-ghost-fade-duration) ease-out var(--logo-signal-ghost-fade-delay) both,
    logoGhost var(--logo-ghost2-duration) ease-in-out var(--logo-signal-settle-delay) infinite both;
}

.hero-copy.is-visible .reveal-logo--signal-settle .logo-stencil-ghost-3 {
  animation:
    revealLogoSignalGhostAmbient var(--logo-signal-ghost-fade-duration) ease-out var(--logo-signal-ghost-fade-delay) both,
    logoGhost var(--logo-ghost3-duration) ease-in-out var(--logo-signal-settle-delay) infinite both;
}

/* Hero Subtitle: Spectral Cascade */
.scan-divider {
  opacity: 0;
}

.hero-copy.is-visible .scan-divider {
  animation: revealHeroScanDividerFade 2.5s linear 0s both;
}

.hero-copy #hero-description {
  opacity: 0;
}

.hero-copy.is-visible #hero-description {
  animation: revealHeroDescriptionFade 1.1s ease-out 3.51s both;
}

.hero-subtitle--spectral-cascade {
  isolation: isolate;
  overflow: visible;
  --hero-subtitle-travel-y: 1.47em;
}

.hero-subtitle--spectral-cascade span {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  overflow: visible;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, var(--hero-subtitle-travel-y), 0);
  filter: blur(3px) saturate(1.18);
  text-shadow:
    0 0 12px rgba(47, 210, 255, 0.1),
    0 0 22px rgba(255, 215, 251, 0.06);
  will-change: transform, opacity, filter;
}

.hero-subtitle--spectral-cascade span::before,
.hero-subtitle--spectral-cascade span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  display: block;
  white-space: inherit;
  overflow: visible;
}

.hero-subtitle--spectral-cascade span::before {
  color: rgba(126, 244, 232, 0.64);
  transform: translate3d(-12px, 4px, 0) scale(1.02);
  mix-blend-mode: screen;
  text-shadow:
    0 0 10px rgba(135, 244, 255, 0.28),
    0 0 20px rgba(116, 242, 208, 0.16),
    0 0 32px rgba(255, 215, 251, 0.12);
}

.hero-subtitle--spectral-cascade span::after {
  color: rgba(214, 188, 255, 0.52);
  transform: translate3d(12px, -4px, 0);
  mix-blend-mode: screen;
  text-shadow:
    0 0 8px rgba(209, 249, 255, 0.18),
    0 0 18px rgba(216, 200, 255, 0.14);
}

.hero-copy.is-visible .hero-subtitle--spectral-cascade span {
  animation: heroSubtitleSpectralLineIn 2.29s cubic-bezier(0.2, 0.9, 0.24, 1) calc(var(--subtitle-line-order, 0) * 0.5s + 1.22s) both;
}

.hero-copy.is-visible .hero-subtitle--spectral-cascade span::before {
  animation: heroSubtitleSpectralHalo 1.95s cubic-bezier(0.18, 0.84, 0.26, 1) calc(var(--subtitle-line-order, 0) * 0.5s + 1.16s) both;
}

.hero-copy.is-visible .hero-subtitle--spectral-cascade span::after {
  animation: heroSubtitleSpectralGhost 2.01s cubic-bezier(0.18, 0.84, 0.26, 1) calc(var(--subtitle-line-order, 0) * 0.5s + 1.19s) both;
}

.hero-subtitle--spectral-cascade span:nth-child(1) { --subtitle-line-order: 0; }
.hero-subtitle--spectral-cascade span:nth-child(2) { --subtitle-line-order: 1; }
.hero-subtitle--spectral-cascade span:nth-child(3) { --subtitle-line-order: 2; }
.hero-subtitle--spectral-cascade span:nth-child(4) { --subtitle-line-order: 3; }

/* Stable: Tree Streak (iridescent ghost spiral + angle-streak lines) */
.reveal-heading--tree-streak .reveal-heading__text-stack {
  position: relative;
  display: inline-grid;
  isolation: isolate;
  max-width: 100%;
  align-items: start;
  justify-items: start;
}

.reveal-heading--tree-streak .reveal-heading__text,
.reveal-heading--tree-streak .reveal-heading__ghost {
  grid-area: 1 / 1;
}

.reveal-heading--tree-streak .reveal-heading__ghost {
  pointer-events: none;
  display: block;
  width: 100%;
  white-space: normal;
  opacity: 0;
  position: relative;
  isolation: isolate;
  transform-origin: center;
  z-index: 1;
  color: var(--ghost-color-base, rgba(255, 255, 255, 0.26));
  text-shadow: none;
  filter: none;
  transform:
    translate3d(var(--ghost-p0-x, 0px), var(--ghost-p0-y, 0px), 0)
    scale(1.02);
}

.reveal-heading--tree-streak .reveal-heading__ghost::before,
.reveal-heading--tree-streak .reveal-heading__ghost::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  pointer-events: none;
  color: var(--ghost-color, rgba(255, 255, 255, 0.9));
  white-space: normal;
  text-shadow: none;
  opacity: 0;
}

.reveal-heading--tree-streak .reveal-heading__ghost::before {
  transform: translate3d(-0.04em, 0, 0);
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    #000 6px 18px,
    transparent 18px 28px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    #000 6px 18px,
    transparent 18px 28px
  );
  -webkit-mask-size: 34px 100%;
  mask-size: 34px 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.reveal-heading--tree-streak .reveal-heading__ghost::after {
  transform: translate3d(0.042em, 0, 0);
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    #000 0 7px,
    transparent 7px 15px,
    #000 15px 27px,
    transparent 27px 37px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    #000 0 7px,
    transparent 7px 15px,
    #000 15px 27px,
    transparent 27px 37px
  );
  -webkit-mask-size: 37px 100%;
  mask-size: 37px 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.reveal-heading--tree-streak .reveal-heading__ghost--emerald {
  --ghost-color: rgba(92, 255, 205, 0.9);
  --ghost-color-base: rgba(92, 255, 205, 0.22);
  --ghost-angle-deg: 149.5;
  --sl-from: 0px; --sl-to: 32px;
  --sr-from: 0px; --sr-to: -22px;
}

.reveal-heading--tree-streak .reveal-heading__ghost--magenta {
  --ghost-color: rgba(255, 120, 224, 0.9);
  --ghost-color-base: rgba(255, 120, 224, 0.24);
  --ghost-angle-deg: 29.5;
  --sl-from: 6px; --sl-to: -24px;
  --sr-from: -4px; --sr-to: 26px;
}

.reveal-heading--tree-streak .reveal-heading__ghost--blue {
  --ghost-color: rgba(78, 222, 255, 0.9);
  --ghost-color-base: rgba(78, 222, 255, 0.22);
  --ghost-angle-deg: -90.5;
  --sl-from: 3px; --sl-to: 22px;
  --sr-from: 3px; --sr-to: -29px;
}

.reveal-heading--tree-streak .reveal-heading__text {
  position: relative;
  display: block;
  width: 100%;
  z-index: 2;
  color: var(--text);
  opacity: 0;
  transform: none;
  text-shadow: none;
}

.reveal-heading--tree-streak .iridescent-angle-streak {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  left: -40px;
  top: -0.18em;
  width: min(620px, calc(100% + 140px));
  height: calc(100% + 64px);
  overflow: visible;
}

.reveal-heading--tree-streak .iridescent-angle-streak__field {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.38) 16px, #000 34px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.38) 16px, #000 34px, #000 100%);
}

.reveal-heading--tree-streak .iridescent-angle-streak__field-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 215px), rgba(0, 0, 0, 0.42) calc(100% - 110px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 215px), rgba(0, 0, 0, 0.42) calc(100% - 110px), transparent 100%);
}

.reveal-heading--tree-streak .iridescent-angle-streak__instance {
  display: block;
  position: absolute;
  inset: 0;
  transform: translate(var(--line-shift-x, 0px), var(--line-shift-y, 0px));
}

.reveal-heading--tree-streak .iridescent-angle-streak__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reveal-heading--tree-streak .iridescent-angle-streak__shape {
  opacity: 0;
}

.reveal-heading--tree-streak .iridescent-angle-streak__shape--base {
  filter:
    blur(1.8px)
    drop-shadow(0 0 2.5px rgba(80, 255, 170, 0.7))
    drop-shadow(0 0 4.5px rgba(40, 255, 140, 0.5));
}

.reveal-heading--tree-streak .iridescent-angle-streak__shape--core {
  filter: none;
}

.reveal-heading--tree-streak .iridescent-angle-streak__segment {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  mix-blend-mode: screen;
}

.reveal-heading--tree-streak .iridescent-angle-streak__segment--core {
  stroke-width: 1;
}

.reveal-heading--tree-streak.is-visible .reveal-heading__ghost::before {
  animation:
    revealGhostSliceLeft 2.9s cubic-bezier(0.2, 0.78, 0.24, 1) calc(var(--reveal-start-delay) + 0.65s) both,
    revealGhostMaskLeft 2.9s linear calc(var(--reveal-start-delay) + 0.65s) both;
}

.reveal-heading--tree-streak.is-visible .reveal-heading__ghost::after {
  animation:
    revealGhostSliceRight 2.9s cubic-bezier(0.2, 0.78, 0.24, 1) calc(var(--reveal-start-delay) + 0.65s) both,
    revealGhostMaskRight 2.9s linear calc(var(--reveal-start-delay) + 0.65s) both;
}

.reveal-heading--tree-streak.is-visible .iridescent-angle-streak__instance .iridescent-angle-streak__shape {
  animation: revealAngleShape 0.165s ease-out calc(var(--reveal-start-delay) + var(--line-delay, 0s)) both;
}

.reveal-heading--tree-streak.is-visible .iridescent-angle-streak__instance--repeat .iridescent-angle-streak__shape {
  animation: revealAngleShapeRepeat 0.165s ease-out calc(var(--reveal-start-delay) + var(--line-delay, 0s)) both;
}

@keyframes revealGhostSliceLeft {
  0%   { opacity: 0; transform: translate3d(-0.11em, 0, 0); }
  94%  { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(0, 0, 0); }
}

@keyframes revealGhostSliceRight {
  0%   { opacity: 0; transform: translate3d(0.12em, 0, 0); }
  94%  { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(0, 0, 0); }
}

@keyframes revealGhostMaskLeft {
  from { -webkit-mask-position: var(--sl-from, 0px) 0; mask-position: var(--sl-from, 0px) 0; }
  to   { -webkit-mask-position: var(--sl-to, 32px) 0; mask-position: var(--sl-to, 32px) 0; }
}

@keyframes revealGhostMaskRight {
  from { -webkit-mask-position: var(--sr-from, 0px) 0; mask-position: var(--sr-from, 0px) 0; }
  to   { -webkit-mask-position: var(--sr-to, -22px) 0; mask-position: var(--sr-to, -22px) 0; }
}

@keyframes revealAngleShape {
  0% { opacity: 0; }
  24% { opacity: 1; }
  62% { opacity: 0.85; }
  100% { opacity: 0; }
}

@keyframes revealAngleShapeRepeat {
  0% { opacity: 0; }
  24% { opacity: var(--line-peak, 0.9); }
  62% { opacity: var(--line-tail, 0.72); }
  100% { opacity: 0; }
}

.convergence-flash .reveal-heading__text-stack::after {
  content: "";
  position: absolute;
  inset: -50% -25%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(50, 255, 150, 0.25), transparent 55%),
    radial-gradient(ellipse at 55% 40%, rgba(119, 46, 255, 0.2), transparent 55%),
    radial-gradient(ellipse at 80% 55%, rgba(0, 123, 255, 0.25), transparent 55%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  animation: convergenceGlow 0.6s ease-out both;
}

.convergence-flash .reveal-heading__text {
  animation: convergenceTextShadow 0.6s ease-out both;
}

.reveal-heading--tree-streak .convergence-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 6px;
  margin-top: -3px;
  transform-origin: 0 50%;
  transform: rotate(var(--ray-angle, 0deg)) scaleX(0);
  border-radius: 3px;
  filter: blur(5px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.reveal-heading--tree-streak .convergence-ray.active {
  animation: rayFlash 0.6s ease-out both;
}

@keyframes convergenceGlow {
  0% { opacity: 0.8; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.1); }
}

@keyframes convergenceTextShadow {
  0% {
    text-shadow:
      0 0 12px rgba(50, 255, 150, 0.4),
      0 0 28px rgba(119, 46, 255, 0.3),
      0 0 44px rgba(0, 123, 255, 0.25);
  }
  100% {
    text-shadow:
      0 0 12px transparent,
      0 0 28px transparent,
      0 0 44px transparent;
  }
}

@keyframes rayFlash {
  0% {
    opacity: 0.8;
    transform: rotate(var(--ray-angle, 0deg)) scaleX(0.4);
  }
  25% {
    opacity: 0.6;
    transform: rotate(var(--ray-angle, 0deg)) scaleX(1) rotate(3.6deg);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--ray-angle, 0deg)) scaleX(1.1) rotate(9deg);
  }
}

/* ── Slice Converge ──────────────────────────── */

.reveal-heading--slice-converge .slice-heading {
  line-height: 1.3;
  text-wrap: balance;
}

.reveal-heading--slice-converge .slice-heading__container {
  position: relative;
  display: block;
  overflow: visible;
}

/* Override base .reveal-heading__title span (inline-block) for slice children */
.reveal-heading--slice-converge .slice-heading__container > span {
  display: block;
}

.reveal-heading--slice-converge .slice-heading__slice {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  clip-path: inset(
    calc(var(--slice-i) * 100% / var(--slice-total))
    0
    calc((var(--slice-total) - var(--slice-i) - 1) * 100% / var(--slice-total))
    0
  );
}

.reveal-heading--slice-converge .slice-heading__sizer {
  display: block;
  visibility: hidden;
}

.reveal-heading--slice-converge.slices-settled .slice-heading__sizer {
  visibility: visible;
  color: #d8e4f1;
}

.reveal-heading--slice-converge.slices-settled .slice-heading__slice {
  display: none;
}

.reveal-heading--slice-converge .slice-heading__geo-bars {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.reveal-heading--slice-converge .slice-heading__geo-bar {
  position: absolute;
  left: 50%;
  height: 1.5px;
  border-radius: 1px;
}

.reveal-heading--slice-converge .slice-heading__geo-bar::before {
  content: '';
  position: absolute;
  inset: -1px 0;
  border-radius: inherit;
  filter: blur(2px);
  background: inherit;
  opacity: 0.8;
}

.reveal-heading--slice-converge .slice-heading__geo-bar::after {
  content: '';
  position: absolute;
  inset: -3px 0;
  border-radius: inherit;
  filter: blur(6px);
  background: inherit;
  opacity: 0.45;
}

/* Experimental: Scatter Drop */
.reveal-heading--scatter-drop .reveal-heading__title {
  isolation: isolate;
}

.reveal-heading--scatter-drop .reveal-heading__title::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: -1.15em;
  height: 2.55em;
  background:
    linear-gradient(180deg, rgba(240, 248, 255, 0.2), rgba(47, 210, 255, 0.16) 28%, rgba(196, 85, 255, 0.08) 48%, transparent 82%);
  filter: blur(18px);
  opacity: 0;
  transform: translateY(-1.1em) scaleY(1.28);
  pointer-events: none;
}

.reveal-heading--scatter-drop .reveal-heading__title::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: calc(-0.04em + 10px);
  height: 0.48em;
  background:
    radial-gradient(40% 100% at 50% 100%, rgba(220, 248, 255, 0.95), transparent 70%),
    radial-gradient(62% 100% at 50% 100%, rgba(47, 210, 255, 1), rgba(47, 210, 255, 0.68) 42%, transparent 74%);
  filter: blur(6px);
  opacity: 0;
  transform: scaleX(0.32) scaleY(0.55);
  transform-origin: 50% 100%;
  pointer-events: none;
}

.reveal-heading--scatter-drop .reveal-heading__letterline {
  letter-spacing: var(--comfortaa-letter-spacing, 0.03em);
}

.reveal-heading--scatter-drop .reveal-heading__glyph {
  opacity: 0;
  transform: translate3d(var(--glyph-drift-x, 0em), -1.35em, 0) rotate(var(--glyph-tilt, 0deg)) scaleY(var(--glyph-squash, 0.92));
  transform-origin: 50% 100%;
  filter: blur(3px);
  text-shadow:
    0 0 12px rgba(47, 210, 255, 0.08),
    0 0 20px rgba(196, 85, 255, 0.05);
}

.reveal-heading--scatter-drop .reveal-heading__glyph.is-space {
  width: 0.34em;
  opacity: 1;
  transform: none;
  filter: none;
  text-shadow: none;
}

.reveal-heading--scatter-drop.is-visible .reveal-heading__title::before {
  animation: revealScatterVeil 1.84s cubic-bezier(0.18, 0.84, 0.24, 1) calc(var(--reveal-start-delay) + 0.04s) both;
}

.reveal-heading--scatter-drop.is-visible .reveal-heading__title::after {
  animation: revealScatterImpactFlash 1.1s cubic-bezier(0.12, 0.84, 0.24, 1) calc(var(--reveal-start-delay) + (var(--glyph-last-order, 0) * 0.025s) + 0.88s) both;
}

.reveal-heading--scatter-drop.is-visible .reveal-heading__glyph:not(.is-space) {
  animation: revealScatterGlyph 1.54s linear calc(var(--reveal-start-delay) + (var(--glyph-order, 0) * 0.025s)) both;
}

/* Experimental: Cross Skim */
.reveal-heading--cross-skim .reveal-heading__title {
  isolation: isolate;
}

.reveal-heading--cross-skim .reveal-heading__glyph {
  opacity: 0;
  transform: translate3d(var(--glyph-slide-x, 1.2em), 0, 0) rotate(var(--glyph-slide-tilt, 8deg));
  filter: blur(3px);
}

.reveal-heading--cross-skim .reveal-heading__glyph::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 50%;
  height: 0.82em;
  background:
    radial-gradient(60% 100% at 50% 50%, rgba(196, 85, 255, 0.78), rgba(196, 85, 255, 0.24) 48%, transparent 76%);
  filter: blur(10px);
  opacity: 0;
  transform: translateY(-50%) scale(0.35);
  pointer-events: none;
}

.reveal-heading--cross-skim .reveal-heading__glyph.is-space {
  width: 0.34em;
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-heading--cross-skim .reveal-heading__glyph.is-space::after {
  display: none;
}

.reveal-heading--cross-skim.is-visible .reveal-heading__glyph:not(.is-space) {
  animation: revealCrossSkimGlyph 1.36s linear calc(var(--reveal-start-delay) + (var(--glyph-order, 0) * 0.032s)) both;
}

.reveal-heading--cross-skim.is-visible .reveal-heading__glyph:not(.is-space)::after {
  animation: revealCrossSkimFlash 0.46s cubic-bezier(0.18, 0.82, 0.24, 1) calc(var(--reveal-start-delay) + (var(--glyph-order, 0) * 0.032s) + 0.86s) both;
}

/* Experimental: Slant Unmask */
.reveal-heading--slant-unmask .reveal-heading__title {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding-top: 1.35rem;
  padding-left: 1.05em;
  padding-right: 0.3em;
  margin-top: -1.35rem;
  margin-left: -1.05em;
  overflow: visible;
  isolation: isolate;
  clip-path: polygon(0 0, -8% 0, -22% 100%, 0 100%);
  transform-origin: center bottom;
}

.reveal-heading--slant-unmask .reveal-heading__title span {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform-origin: left center;
}

.reveal-heading--slant-unmask.is-visible .reveal-heading__title {
  animation:
    revealSlantMaskSweep 1.78s linear calc(var(--reveal-start-delay) + 0.04s) both,
    revealSlantHop 0.62s linear calc(var(--reveal-start-delay) + 2.22s) both;
}

.reveal-heading--slant-unmask.is-visible .reveal-heading__title span {
  animation: revealSlantStretch 1.78s linear calc(var(--reveal-start-delay) + 0.04s) both;
}

.reveal-heading--slant-unmask .reveal-heading__title span::before,
.reveal-heading--slant-unmask .reveal-heading__title span::after {
  content: "";
  position: absolute;
  inset: -2.2rem -0.24rem -0.08rem;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  mix-blend-mode: screen;
  background-repeat: no-repeat;
}

.reveal-heading--slant-unmask .reveal-heading__title span::before {
  filter: blur(0.8px) saturate(1.14);
  background-image:
    linear-gradient(152deg, rgba(0, 0, 0, 0) 18%, rgba(98, 236, 255, 0.96) 49%, rgba(0, 0, 0, 0) 82%),
    linear-gradient(148deg, rgba(0, 0, 0, 0) 18%, rgba(218, 116, 255, 0.84) 49%, rgba(0, 0, 0, 0) 82%),
    linear-gradient(156deg, rgba(0, 0, 0, 0) 18%, rgba(116, 244, 255, 0.9) 49%, rgba(0, 0, 0, 0) 82%),
    linear-gradient(150deg, rgba(0, 0, 0, 0) 18%, rgba(231, 129, 255, 0.78) 49%, rgba(0, 0, 0, 0) 82%),
    radial-gradient(circle, rgba(116, 244, 255, 1) 0 34%, rgba(116, 244, 255, 0) 64%),
    radial-gradient(circle, rgba(218, 116, 255, 1) 0 34%, rgba(218, 116, 255, 0) 64%),
    radial-gradient(circle, rgba(101, 226, 255, 0.98) 0 34%, rgba(101, 226, 255, 0) 64%),
    radial-gradient(circle, rgba(236, 131, 255, 0.98) 0 34%, rgba(236, 131, 255, 0) 64%);
  background-size:
    3px 28px,
    2px 22px,
    3px 24px,
    2px 18px,
    5px 5px,
    4px 4px,
    4px 4px,
    4px 4px;
  background-position:
    10% 44%,
    24% 42%,
    41% 43%,
    58% 41%,
    12% 48%,
    26% 45%,
    44% 47%,
    60% 45%;
}

.reveal-heading--slant-unmask .reveal-heading__title span::after {
  filter: blur(0.8px) saturate(1.14);
  background-image:
    linear-gradient(28deg, rgba(0, 0, 0, 0) 18%, rgba(95, 228, 255, 0.94) 49%, rgba(0, 0, 0, 0) 82%),
    linear-gradient(32deg, rgba(0, 0, 0, 0) 18%, rgba(232, 121, 255, 0.82) 49%, rgba(0, 0, 0, 0) 82%),
    linear-gradient(24deg, rgba(0, 0, 0, 0) 18%, rgba(112, 244, 255, 0.9) 49%, rgba(0, 0, 0, 0) 82%),
    linear-gradient(36deg, rgba(0, 0, 0, 0) 18%, rgba(220, 114, 255, 0.78) 49%, rgba(0, 0, 0, 0) 82%),
    radial-gradient(circle, rgba(112, 244, 255, 1) 0 34%, rgba(112, 244, 255, 0) 64%),
    radial-gradient(circle, rgba(232, 121, 255, 1) 0 34%, rgba(232, 121, 255, 0) 64%),
    radial-gradient(circle, rgba(100, 224, 255, 0.98) 0 34%, rgba(100, 224, 255, 0) 64%),
    radial-gradient(circle, rgba(224, 118, 255, 0.98) 0 34%, rgba(224, 118, 255, 0) 64%);
  background-size:
    3px 28px,
    2px 22px,
    3px 24px,
    2px 18px,
    5px 5px,
    4px 4px,
    4px 4px,
    4px 4px;
  background-position:
    23% 43%,
    39% 42%,
    68% 43%,
    84% 41%,
    22% 47%,
    40% 45%,
    69% 47%,
    86% 45%;
}

.reveal-heading--slant-unmask.is-visible .reveal-heading__title span::before {
  animation: revealSlantSparkBurstLeft 2.72s cubic-bezier(0.16, 0.68, 0.18, 1) calc(var(--reveal-start-delay) + 2.24s) both;
}

.reveal-heading--slant-unmask.is-visible .reveal-heading__title span::after {
  animation: revealSlantSparkBurstRight 2.68s cubic-bezier(0.16, 0.68, 0.18, 1) calc(var(--reveal-start-delay) + 2.24s) both;
}

/* Experimental: Signal Fracture */
.reveal-heading--signal-fracture .reveal-heading__title {
  isolation: isolate;
}

.reveal-heading--signal-fracture .reveal-heading__title::before,
.reveal-heading--signal-fracture .reveal-heading__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  display: inline-block;
}

.reveal-heading--signal-fracture .reveal-heading__title::before {
  color: rgba(104, 236, 255, 0.92);
  text-shadow: 0 0 14px rgba(47, 210, 255, 0.32);
  clip-path: inset(8% 0 58% 0);
  transform: translate3d(-18px, 0, 0);
}

.reveal-heading--signal-fracture .reveal-heading__title::after {
  color: rgba(218, 116, 255, 0.9);
  text-shadow: 0 0 16px rgba(196, 85, 255, 0.28);
  clip-path: inset(58% 0 8% 0);
  transform: translate3d(20px, 0, 0);
}

.reveal-heading--signal-fracture .reveal-heading__title span {
  position: relative;
  z-index: 1;
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  letter-spacing: var(--comfortaa-letter-spacing, 0.03em);
  text-shadow:
    0 0 10px rgba(47, 210, 255, 0.18),
    0 0 18px rgba(196, 85, 255, 0.12);
}

.reveal-heading--signal-fracture .reveal-heading__title span::before,
.reveal-heading--signal-fracture .reveal-heading__title span::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  pointer-events: none;
  opacity: 0;
}

.reveal-heading--signal-fracture .reveal-heading__title span::before {
  top: 46%;
  height: 0.18em;
  background:
    linear-gradient(90deg, transparent, rgba(104, 236, 255, 0.78), rgba(218, 116, 255, 0.72), transparent);
  filter: blur(2px);
}

.reveal-heading--signal-fracture .reveal-heading__title span::after {
  top: -0.18em;
  bottom: -0.08em;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(104, 236, 255, 0.08) 0 1px,
      rgba(196, 85, 255, 0.04) 1px 2px,
      transparent 2px 8px
    );
  mix-blend-mode: screen;
  filter: blur(0.3px);
}

.reveal-heading--signal-fracture.is-visible .reveal-heading__title::before {
  animation:
    revealSignalFractureGhostCyan 2.15s steps(9, end) calc(var(--reveal-start-delay) + 0.05s) both,
    revealSignalFractureSliceCyan 2.15s steps(11, end) calc(var(--reveal-start-delay) + 0.05s) both;
}

.reveal-heading--signal-fracture.is-visible .reveal-heading__title::after {
  animation:
    revealSignalFractureGhostMagenta 2.2s steps(10, end) calc(var(--reveal-start-delay) + 0.05s) both,
    revealSignalFractureSliceMagenta 2.2s steps(12, end) calc(var(--reveal-start-delay) + 0.05s) both;
}

.reveal-heading--signal-fracture.is-visible .reveal-heading__title span {
  animation: revealSignalFractureMain 2.15s steps(10, end) calc(var(--reveal-start-delay) + 0.05s) both;
}

.reveal-heading--signal-fracture.is-visible .reveal-heading__title span::before {
  animation: revealSignalFractureScan 1.1s steps(7, end) calc(var(--reveal-start-delay) + 0.4s) both;
}

.reveal-heading--signal-fracture.is-visible .reveal-heading__title span::after {
  animation: revealSignalFractureNoise 1.475s steps(8, end) calc(var(--reveal-start-delay) + 0.175s) both;
}

/* Experimental: Portal Relay */
.reveal-heading--portal-relay .reveal-heading__title {
  position: relative;
  display: inline-block;
  isolation: isolate;
  max-width: 100%;
  text-wrap: balance;
}

.reveal-heading--portal-relay .reveal-heading__title::before,
.reveal-heading--portal-relay .reveal-heading__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  white-space: normal;
}

.reveal-heading--portal-relay .reveal-heading__title::before {
  color: rgba(52, 217, 161, 0.88);
  text-shadow: 0 0 18px rgba(52, 217, 161, 0.18);
  transform: translate3d(-0.46em, 0, 0);
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 8px,
    #fff 8px 24px,
    transparent 24px 34px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 8px,
    #fff 8px 24px,
    transparent 24px 34px
  );
}

.reveal-heading--portal-relay .reveal-heading__title::after {
  color: rgba(47, 210, 255, 0.92);
  text-shadow: 0 0 18px rgba(47, 210, 255, 0.22);
  transform: translate3d(0.48em, 0, 0);
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    #fff 0 7px,
    transparent 7px 17px,
    #fff 17px 29px,
    transparent 29px 40px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    #fff 0 7px,
    transparent 7px 17px,
    #fff 17px 29px,
    transparent 29px 40px
  );
}

.reveal-heading--portal-relay .reveal-heading__title span {
  position: relative;
  z-index: 3;
  display: block;
  max-width: 100%;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(0.24em) scaleY(1.06);
  white-space: normal;
  text-shadow:
    0 0 12px rgba(47, 210, 255, 0.16),
    0 0 18px rgba(52, 217, 161, 0.08);
}

.reveal-heading--portal-relay .reveal-heading__title span::before,
.reveal-heading--portal-relay .reveal-heading__title span::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.reveal-heading--portal-relay .reveal-heading__title span::before {
  inset: -0.18em -0.2em -0.12em -0.16em;
  border-radius: 0.38em;
  background:
    linear-gradient(92deg, rgba(47, 210, 255, 0.12), rgba(52, 217, 161, 0.08), transparent 72%),
    repeating-linear-gradient(
      90deg,
      rgba(47, 210, 255, 0.26) 0 1px,
      transparent 1px 18px,
      rgba(52, 217, 161, 0.18) 18px 19px,
      transparent 19px 37px
    ),
    linear-gradient(180deg, rgba(11, 18, 29, 0.97), rgba(6, 12, 21, 0.99));
  border: 1px solid rgba(84, 182, 210, 0.16);
  box-shadow:
    inset 0 0 26px rgba(4, 9, 18, 0.52),
    0 0 26px rgba(8, 16, 28, 0.18);
  clip-path: polygon(0 0, 96% 0, 100% 28%, 100% 100%, 4% 100%, 0 72%);
  opacity: 0.96;
  transform-origin: left center;
}

.reveal-heading--portal-relay .reveal-heading__title span::after {
  left: -0.16em;
  right: -0.12em;
  top: 48%;
  height: 0.16em;
  background: linear-gradient(90deg, transparent, rgba(47, 210, 255, 0.94), rgba(52, 217, 161, 0.82), transparent);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-118%) skewX(-24deg);
}

.reveal-heading--portal-relay.is-visible .reveal-heading__title::before {
  animation: revealPortalRelayGhostLeft 1.85s steps(8, end) calc(var(--reveal-start-delay) + 0.02s) both;
}

.reveal-heading--portal-relay.is-visible .reveal-heading__title::after {
  animation: revealPortalRelayGhostRight 1.9s steps(9, end) calc(var(--reveal-start-delay) + 0.02s) both;
}

.reveal-heading--portal-relay.is-visible .reveal-heading__title span {
  animation: revealPortalRelayMain 1.8s cubic-bezier(0.14, 0.82, 0.18, 1) calc(var(--reveal-start-delay) + 0.02s) both;
}

.reveal-heading--portal-relay.is-visible .reveal-heading__title span::before {
  animation: revealPortalRelayGate 1.66s steps(8, end) calc(var(--reveal-start-delay) + 0.02s) both;
}

.reveal-heading--portal-relay.is-visible .reveal-heading__title span::after {
  animation: revealPortalRelayBeam 1.13s cubic-bezier(0.18, 0.76, 0.2, 1) calc(var(--reveal-start-delay) + 0.41s) both;
}

/* Experimental: Chrome Fill */
.reveal-heading--chrome-fill .reveal-heading__title {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.reveal-heading--chrome-fill .chrome-fill-base {
  position: relative;
  z-index: 5;
  color: var(--text);
  opacity: 0;
  filter: blur(1.4px);
  pointer-events: auto;
}

.reveal-heading--chrome-fill .chrome-fill-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
}

.reveal-heading--chrome-fill .chrome-fill-shape {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.reveal-heading--chrome-fill .chrome-fill-mask-html {
  width: 100%;
  height: 100%;
  color: #fff;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.reveal-heading--chrome-fill .reveal-heading__title::before,
.reveal-heading--chrome-fill .reveal-heading__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}

.reveal-heading--chrome-fill .reveal-heading__title::before {
  color: #fff;
  -webkit-text-stroke: 0.05em #fff;
  text-shadow:
    0 0 12px #fff,
    0 0 28px #fff,
    0 0 56px rgba(215, 190, 255, 1),
    0 0 84px rgba(207, 173, 255, 0.6);
}

.reveal-heading--chrome-fill .reveal-heading__title::after {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
  filter: blur(10px);
  mix-blend-mode: screen;
}

.reveal-heading--chrome-fill.is-visible .chrome-fill-base {
  animation: revealChromeBlobSettle 0.5s cubic-bezier(0.18, 0.82, 0.22, 1) 2.94s both;
}

.reveal-heading--chrome-fill.is-visible .reveal-heading__title::before {
  animation: revealChromeFlash 0.32s ease-out 3s both;
}

.reveal-heading--chrome-fill.is-visible .chrome-fill-svg {
  animation: revealChromePatchFadeOut 0.26s ease-out 3.02s both;
}

@keyframes revealSignalEyebrowLift {
  0% { opacity: 0; transform: translateX(-18px) translateY(6px); filter: blur(6px); }
  65% { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) translateY(0); filter: blur(0); }
}

@keyframes revealSignalGhostCyan {
  0% { opacity: 0; transform: translateX(-22px) skewX(-10deg); }
  30% { opacity: 0.75; }
  100% { opacity: 0; transform: translateX(4px) skewX(0); }
}

@keyframes revealSignalGhostMagenta {
  0% { opacity: 0; transform: translateX(18px) skewX(12deg); }
  34% { opacity: 0.62; }
  100% { opacity: 0; transform: translateX(-3px) skewX(0); }
}

@keyframes revealSignalTitleSettle {
  0% { opacity: 0; transform: perspective(900px) rotateX(24deg) translateY(20px) scaleY(0.82); letter-spacing: 0.08em; filter: blur(10px) saturate(1.2); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: perspective(900px) rotateX(0deg) translateY(0) scaleY(1); letter-spacing: var(--comfortaa-letter-spacing, 0.03em); filter: blur(0) saturate(1); }
}

@keyframes revealSignalEnergySweep {
  0% { opacity: 0; transform: translate(-12%, -50%) skewX(-24deg); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(12%, -50%) skewX(-24deg); }
}

@keyframes revealFeatureIndexStreak {
  0% {
    opacity: 0;
    left: calc(-100% - var(--feature-index-streak-tail) - 18px + var(--feature-index-streak-shift-x));
    transform: scale(1);
  }
  10% {
    opacity: 1;
  }
  82% {
    opacity: 1;
    left: var(--feature-index-streak-shift-x);
    transform: scale(1);
  }
  92% {
    opacity: 1;
    left: calc(var(--feature-index-streak-shift-x) + 8px);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    left: calc(var(--feature-index-streak-shift-x) + 8px);
    transform: scale(1);
  }
}

@keyframes revealLogoSignalGhostAquamarine {
  0% { opacity: 0; transform: translateX(-18px) skewX(-12deg); }
  34% { opacity: 0.42; }
  100% { opacity: 0; transform: translateX(3px) skewX(0); }
}

@keyframes revealLogoSignalGhostMagentaMirror {
  0% { opacity: 0; transform: translateX(18px) skewX(12deg); }
  34% { opacity: 0.7; }
  100% { opacity: 0; transform: translateX(-3px) skewX(0); }
}

@keyframes revealLogoSignalTitleSettleAbove {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(-24deg) translateY(-20px) scaleY(0.82);
    filter: blur(10px) saturate(1.2);
  }
  40% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translateY(0) scaleY(1);
    filter: blur(0) saturate(1);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translateY(0) scaleY(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes revealLogoSignalShadeFadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  68% {
    opacity: calc(var(--logo-shade-opacity, 0.3) * 1.2);
    filter: blur(2px);
  }
  100% {
    opacity: var(--logo-shade-opacity, 0.3);
    filter: blur(0);
  }
}

@keyframes revealLogoSignalSheenSettle {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  68% {
    opacity: 0.16;
    filter: blur(3px);
  }
  100% {
    opacity: var(--logo-sheen-opacity, 0.05);
    filter: blur(0);
  }
}

@keyframes revealLogoSignalGhostAmbient {
  0% {
    opacity: 0;
    filter: blur(calc(var(--logo-ghost-blur, 0.6px) + 4px));
  }
  68% {
    opacity: 0.18;
    filter: blur(calc(var(--logo-ghost-blur, 0.6px) + 1.4px));
  }
  100% {
    opacity: var(--logo-ghost-opacity, 0.1);
    filter: blur(var(--logo-ghost-blur, 0.6px));
  }
}

@keyframes revealHeroScanDividerFade {
  0% { opacity: 0; }
  60% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes revealHeroDescriptionFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroSubtitleSpectralLineIn {
  0% {
    opacity: 0;
    transform: translate3d(0, var(--hero-subtitle-travel-y), 0);
    filter: blur(3px) saturate(1.18);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0) saturate(1);
  }
}

@keyframes heroSubtitleSpectralHalo {
  0% {
    opacity: 0;
    transform: translate3d(-12px, 4px, 0) scale(1.02);
  }
  30% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate3d(5px, -1px, 0) scale(1);
  }
}

@keyframes heroSubtitleSpectralGhost {
  0% {
    opacity: 0;
    transform: translate3d(12px, -4px, 0);
  }
  34% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate3d(-4px, 1px, 0);
  }
}

/* Slice Converge keyframes: none — animation is JS-driven via inline transitions */

@keyframes revealScatterVeil {
  0% { opacity: 0; transform: translateY(-1.1em) scaleY(1.28); }
  22% { opacity: 0.74; }
  100% { opacity: 0; transform: translateY(0.02em) scaleY(0.96); }
}

@keyframes revealScatterImpactFlash {
  0% {
    opacity: 0;
    transform: scaleX(0.32) scaleY(0.55);
  }
  7% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scaleX(1.18) scaleY(1);
  }
}

@keyframes revealScatterGlyph {
  0% {
    opacity: 0;
    transform: translate3d(var(--glyph-drift-x, 0em), -1.35em, 0) rotate(var(--glyph-tilt, 0deg)) scaleY(var(--glyph-squash, 0.92));
    filter: blur(3px);
    animation-timing-function: cubic-bezier(0.12, 0, 0.92, 0.58);
  }
  58% {
    opacity: 1;
    transform: translate3d(var(--glyph-overshoot-x, 0em), var(--glyph-drop-depth, 0.14em), 0) rotate(calc(var(--glyph-tilt, 0deg) * -0.22)) scaleY(1.04);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.18, 0.78, 0.22, 1);
  }
  74% {
    opacity: 1;
    transform: translate3d(var(--glyph-rebound-x, 0em), var(--glyph-bounce-up, -0.07em), 0) rotate(calc(var(--glyph-tilt, 0deg) * 0.1)) scaleY(0.992);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.24, 0.7, 0.24, 1);
  }
  88% {
    opacity: 1;
    transform: translate3d(calc(var(--glyph-rebound-x, 0em) * -0.28), var(--glyph-bounce-down, 0.018em), 0) rotate(calc(var(--glyph-tilt, 0deg) * -0.035)) scaleY(1.002);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.26, 0.72, 0.26, 1);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes revealCrossSkimGlyph {
  0% {
    opacity: 0;
    transform: translate3d(var(--glyph-slide-x, 1.2em), 0, 0) rotate(var(--glyph-slide-tilt, 8deg));
    filter: blur(3px);
    animation-timing-function: cubic-bezier(0.08, 0.82, 0.26, 1);
  }
  76% {
    opacity: 1;
    transform: translate3d(var(--glyph-slide-overshoot, -0.04em), 0, 0) rotate(calc(var(--glyph-slide-tilt, 8deg) * -0.08));
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.2, 0.74, 0.24, 1);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes revealCrossSkimFlash {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.35);
  }
  18% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1.12);
  }
}

@keyframes revealSignalFractureMain {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translate3d(0, 0, 0);
  }
  8% {
    opacity: 0.88;
    filter: blur(7px);
    transform: translate3d(-10px, 0, 0);
  }
  12% {
    opacity: 0.2;
    filter: blur(9px);
    transform: translate3d(12px, 0, 0);
  }
  18% {
    opacity: 0.92;
    filter: blur(5px);
    transform: translate3d(-6px, 0, 0);
  }
  26% {
    opacity: 0.34;
    filter: blur(7px);
    transform: translate3d(8px, 0, 0);
  }
  36% {
    opacity: 0.98;
  
    transform: translate3d(-3px, 0, 0);
  }
  52% {
    opacity: 0.58;
    filter: blur(2px);
    transform: translate3d(4px, 0, 0);
  }
  68% {
    opacity: 1;
  
    transform: translate3d(-1px, 0, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes revealSignalFractureGhostCyan {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(-18px, 0, 0);
  }
  14% {
    opacity: 0.9;
    filter: blur(2px);
    transform: translate3d(9px, 0, 0);
  }
  28% {
    opacity: 0.26;
    transform: translate3d(-12px, 0, 0);
  }
  42% {
    opacity: 0.82;
    transform: translate3d(6px, 0, 0);
  }
  58% {
    opacity: 0.22;
    transform: translate3d(-5px, 0, 0);
  }
  78% {
    opacity: 0.1;
    transform: translate3d(2px, 0, 0);
  }
  100% {
    opacity: 0;
    filter: blur(0);
    transform: none;
  }
}

@keyframes revealSignalFractureGhostMagenta {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(20px, 0, 0);
  }
  12% {
    opacity: 0.88;
    filter: blur(2px);
    transform: translate3d(-8px, 0, 0);
  }
  24% {
    opacity: 0.24;
    transform: translate3d(11px, 0, 0);
  }
  38% {
    opacity: 0.8;
    transform: translate3d(-6px, 0, 0);
  }
  56% {
    opacity: 0.2;
    transform: translate3d(4px, 0, 0);
  }
  76% {
    opacity: 0.08;
    transform: translate3d(-1px, 0, 0);
  }
  100% {
    opacity: 0;
    filter: blur(0);
    transform: none;
  }
}

@keyframes revealSignalFractureSliceCyan {
  0% {
    clip-path: inset(12% 0 54% 0);
  }
  16% {
    clip-path: inset(4% 0 68% 0);
  }
  34% {
    clip-path: inset(38% 0 24% 0);
  }
  52% {
    clip-path: inset(14% 0 56% 0);
  }
  78% {
    clip-path: inset(58% 0 8% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealSignalFractureSliceMagenta {
  0% {
    clip-path: inset(60% 0 6% 0);
  }
  18% {
    clip-path: inset(32% 0 28% 0);
  }
  36% {
    clip-path: inset(72% 0 2% 0);
  }
  54% {
    clip-path: inset(20% 0 44% 0);
  }
  76% {
    clip-path: inset(48% 0 16% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealSignalFractureScan {
  0% {
    opacity: 0;
    transform: translateX(-18%) scaleX(0.74);
  }
  22% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translateX(22%) scaleX(1.08);
  }
}

@keyframes revealSignalFractureNoise {
  0% {
    opacity: 0;
    transform: translateX(-1px);
  }
  16% {
    opacity: 0.58;
    transform: translateX(2px);
  }
  38% {
    opacity: 0.42;
    transform: translateX(-2px);
  }
  66% {
    opacity: 0.18;
    transform: translateX(1px);
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes revealPortalRelayMain {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(0, 0.24em, 0) scaleY(1.06);
  }
  28% {
    opacity: 0.92;
    filter: blur(2px);
    transform: translate3d(-0.08em, 0.08em, 0) scaleY(1.02);
  }
  42% {
    opacity: 0.4;
    filter: blur(5px);
    transform: translate3d(0.08em, 0.1em, 0) scaleY(1.02);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes revealPortalRelayGhostLeft {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate3d(-0.46em, 0, 0);
  }
  14% {
    opacity: 0.84;
    transform: translate3d(0.16em, 0, 0);
  }
  30% {
    opacity: 0.22;
    transform: translate3d(-0.2em, 0, 0);
  }
  48% {
    opacity: 0.58;
    transform: translate3d(0.08em, 0, 0);
  }
  74% {
    opacity: 0.1;
    transform: translate3d(-0.04em, 0, 0);
  }
  100% {
    opacity: 0;
    filter: blur(0);
    transform: none;
  }
}

@keyframes revealPortalRelayGhostRight {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate3d(0.48em, 0, 0);
  }
  12% {
    opacity: 0.88;
    transform: translate3d(-0.14em, 0, 0);
  }
  26% {
    opacity: 0.18;
    transform: translate3d(0.2em, 0, 0);
  }
  44% {
    opacity: 0.56;
    transform: translate3d(-0.08em, 0, 0);
  }
  72% {
    opacity: 0.08;
    transform: translate3d(0.04em, 0, 0);
  }
  100% {
    opacity: 0;
    filter: blur(0);
    transform: none;
  }
}

@keyframes revealPortalRelayGate {
  0% {
    opacity: 0.96;
    transform: translateX(0) scaleX(1.02) skewX(0deg);
  }
  18% {
    opacity: 0.98;
    transform: translateX(0) scaleX(1.02) skewX(-8deg);
  }
  44% {
    opacity: 0.92;
    transform: translateX(20%) scaleX(0.98) skewX(-10deg);
  }
  72% {
    opacity: 0.82;
    transform: translateX(60%) scaleX(0.88) skewX(-14deg);
  }
  100% {
    opacity: 0;
  
    transform: translateX(104%) scaleX(0.72) skewX(-20deg);
  }
}

@keyframes revealPortalRelayBeam {
  0% {
    opacity: 0;
    transform: translateX(-118%) skewX(-24deg);
  }
  18% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
    transform: translateX(118%) skewX(-24deg);
  }
}

@keyframes revealChromePatchLayerA {
  0% {
    opacity: 0;
    background-position:
      -6% 50%,
      4% 30%,
      14% 68%,
      26% 42%,
      38% 60%,
      50% 32%,
      62% 68%,
      74% 40%,
      88% 62%,
      100% 36%;
  }
  12% {
    opacity: 1;
    background-position:
      -4% 48%,
      6% 32%,
      16% 66%,
      28% 44%,
      40% 58%,
      52% 34%,
      64% 66%,
      76% 42%,
      90% 60%,
      102% 38%;
  }
  100% {
    opacity: 1;
    background-position:
      -2% 48%,
      8% 34%,
      18% 64%,
      30% 44%,
      42% 56%,
      54% 36%,
      66% 64%,
      78% 42%,
      92% 58%,
      104% 40%;
  }
}

@keyframes revealChromePatchLayerB {
  0% {
    opacity: 0;
    background-position:
      -2% 36%,
      10% 62%,
      22% 28%,
      34% 56%,
      46% 38%,
      58% 66%,
      70% 30%,
      82% 56%,
      94% 34%,
      106% 64%;
  }
  24% {
    opacity: 0;
  }
  36% {
    opacity: 1;
    background-position:
      0% 38%,
      12% 60%,
      24% 30%,
      36% 54%,
      48% 40%,
      60% 64%,
      72% 32%,
      84% 54%,
      96% 36%,
      108% 62%;
  }
  100% {
    opacity: 1;
    background-position:
      2% 40%,
      14% 58%,
      26% 32%,
      38% 52%,
      50% 42%,
      62% 62%,
      74% 34%,
      86% 52%,
      98% 38%,
      110% 60%;
  }
}

@keyframes revealChromePatchLayerC {
  0% {
    opacity: 0;
    background-position:
      -4% 64%,
      8% 44%,
      20% 72%,
      32% 30%,
      44% 58%,
      56% 40%,
      68% 70%,
      80% 28%,
      92% 52%,
      104% 38%;
  }
  48% {
    opacity: 0;
  }
  60% {
    opacity: 1;
    background-position:
      -2% 62%,
      10% 46%,
      22% 70%,
      34% 32%,
      46% 56%,
      58% 42%,
      70% 68%,
      82% 30%,
      94% 50%,
      106% 40%;
  }
  100% {
    opacity: 1;
    background-position:
      0% 60%,
      12% 48%,
      24% 68%,
      36% 34%,
      48% 54%,
      60% 44%,
      72% 66%,
      84% 32%,
      96% 48%,
      108% 42%;
  }
}

@keyframes revealChromePatchLayerD {
  0% {
    opacity: 0;
    background-position:
      0% 28%,
      12% 56%,
      24% 36%,
      36% 66%,
      48% 30%,
      60% 54%,
      72% 34%,
      84% 68%,
      96% 44%,
      108% 60%;
  }
  68% {
    opacity: 0;
  }
  80% {
    opacity: 1;
    background-position:
      2% 30%,
      14% 54%,
      26% 38%,
      38% 64%,
      50% 32%,
      62% 52%,
      74% 36%,
      86% 66%,
      98% 46%,
      110% 58%;
  }
  100% {
    opacity: 1;
    background-position:
      4% 32%,
      16% 52%,
      28% 40%,
      40% 62%,
      52% 34%,
      64% 50%,
      76% 38%,
      88% 64%,
      100% 48%,
      112% 56%;
  }
}

@keyframes revealChromePatchFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


@keyframes revealChromeBlobSettle {
  0% {
    opacity: 0;
    filter: blur(1.4px);
  }
  42% {
    opacity: 0.22;
    filter: blur(0.9px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes revealChromeFlash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes revealSlantMaskSweep {
  0% {
    clip-path: polygon(0 0, -8% 0, -22% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes revealSlantStretch {
  0% {
    transform: scaleX(4) skewX(-30deg);
  }
  78% {
    transform: scaleX(1.24) skewX(-6deg);
  }
  100% {
    transform: none;
  }
}

@keyframes revealSlantHop {
  0% {
    transform: translateY(0) rotate(0deg) scaleY(1);
    animation-timing-function: cubic-bezier(0.32, 0, 0.24, 1);
  }
  16% {
    transform: translateY(2px) rotate(0.14deg) scaleY(0.992);
    animation-timing-function: cubic-bezier(0.2, 0.84, 0.3, 1);
  }
  54% {
    transform: translateY(-16px) rotate(-0.72deg) scaleY(1.008);
    animation-timing-function: cubic-bezier(0.08, 0.68, 0.22, 1);
  }
  100% {
    transform: translateY(0) rotate(0deg) scaleY(1);
  }
}

@keyframes revealSlantSparkBurstLeft {
  0% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) rotate(0deg) scale(0.96);
    animation-timing-function: cubic-bezier(0.18, 0.84, 0.24, 1);
  }
  8% {
    opacity: 0.98;
  }
  18% {
    opacity: 0.82;
    transform: translate3d(-18px, -22px, 0) rotate(-8deg) scale(1);
    animation-timing-function: cubic-bezier(0.14, 0.46, 0.2, 1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-56px, 30px, 0) rotate(-16deg) scale(0.96);
  }
}

@keyframes revealSlantSparkBurstRight {
  0% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) rotate(0deg) scale(0.96);
    animation-timing-function: cubic-bezier(0.18, 0.84, 0.24, 1);
  }
  8% {
    opacity: 0.98;
  }
  18% {
    opacity: 0.82;
    transform: translate3d(18px, -23px, 0) rotate(8deg) scale(1);
    animation-timing-function: cubic-bezier(0.14, 0.46, 0.2, 1);
  }
  100% {
    opacity: 0;
    transform: translate3d(58px, 28px, 0) rotate(16deg) scale(0.96);
  }
}

/* Experimental: Bookshelf Scan */
.reveal-heading--bookshelf-scan .reveal-heading__title {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.reveal-heading--bookshelf-scan .reveal-heading__title > span:first-child {
  position: relative;
  z-index: 1;
  opacity: 0;
  filter: none;
  transform: none;
}

.reveal-heading--bookshelf-scan {
  overflow: hidden;
}

.reveal-heading--bookshelf-scan .bookshelf-scan__overlay {
  position: absolute;
  top: calc(-0.14em);
  right: calc(-0.16em);
  bottom: -4px;
  left: calc(-0.16em);
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.reveal-heading--bookshelf-scan .bookshelf-scan__mask-layer {
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.reveal-heading--bookshelf-scan .bookshelf-scan__overlay-train,
.reveal-heading--bookshelf-scan .bookshelf-scan__mask-train-svg {
  transform: translateX(var(--bookshelf-train-start-x, 0px));
  opacity: 0;
}

.reveal-heading--bookshelf-scan .bookshelf-scan__overlay-train {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  transform: translateX(var(--bookshelf-train-start-x, 0px));
  opacity: 0;
}

.reveal-heading--bookshelf-scan .bookshelf-scan__overlay-train {
  width: var(--bookshelf-train-width, 100%);
}

.reveal-heading--bookshelf-scan .bookshelf-scan__mask-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.reveal-heading--bookshelf-scan .bookshelf-scan__mask-train-svg {
  transform-box: fill-box;
  transform-origin: 0 0;
  opacity: 1;
}

.reveal-heading--bookshelf-scan .bookshelf-scan__cover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cover-left, 0px);
  width: var(--cover-width, 0px);
  background: var(--bg);
}

.reveal-heading--bookshelf-scan .bookshelf-scan__spine {
  position: absolute;
  top: var(--spine-top, 0px);
  bottom: var(--spine-bottom, 0px);
  left: var(--spine-left, 0px);
  width: var(--spine-width);
  border-radius: 3px;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 84%, rgba(255, 255, 255, 0.015)),
    linear-gradient(90deg, var(--spine-shade), var(--spine-base) 30%, var(--spine-base) 70%, var(--spine-shade));
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.05),
    inset -5px 0 9px rgba(8, 14, 25, 0.38),
    inset 0 -8px 12px rgba(7, 12, 22, 0.2),
    0 0 8px rgba(120, 188, 229, 0.06);
  transform: rotate(var(--spine-tilt, 0deg));
}

.reveal-heading--bookshelf-scan .bookshelf-scan__spine::before {
  content: "";
  position: absolute;
  left: 32%;
  right: 32%;
  top: 20%;
  height: var(--spine-lines-h, 18px);
  background: var(--spine-lines-bg);
  filter: blur(1px);

  pointer-events: none;
}

.reveal-heading--bookshelf-scan .reveal-heading__title.bookshelf-scan--play .bookshelf-scan__overlay-train,
.reveal-heading--bookshelf-scan .reveal-heading__title.bookshelf-scan--play .bookshelf-scan__mask-train-svg {
  opacity: 1;
  animation: revealBookshelfTrainMove var(--bookshelf-train-duration, 0.52s) linear both;
}

.reveal-heading--bookshelf-scan .reveal-heading__title.bookshelf-scan--play > span:first-child {
  opacity: 1;
}

@keyframes revealBookshelfTrainMove {
  0% {
    opacity: 1;
    transform: translateX(var(--bookshelf-train-start-x, 0px));
  }
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--bookshelf-train-end-x, 100%));
  }
}

/* Stable: Liquid Unflatten (Session Restore) */
.reveal-heading--liquid-unflatten .reveal-heading__title-shell {
  position: relative;
  display: inline-block;
  width: min(1100px, 100%);
  padding-bottom: 56px;
  isolation: isolate;
}

/* Pull subtitle up into the shell's padding-bottom zone so the animation
   elements keep their tuned geometry (they anchor to the shell's bottom edge)
   while the visible gap between heading and subtitle stays tight. */
.reveal-heading--liquid-unflatten > p {
  margin-top: -52px;
}

.reveal-heading--liquid-unflatten .reveal-heading__title-shell::before {
  content: "";
  position: absolute;
  left: -4.5%;
  right: -5.5%;
  bottom: 49px;
  height: clamp(58px, 7vw, 96px);
  border-radius: 999px;
  background:
    radial-gradient(38% 92% at 18% 58%, rgba(47, 210, 255, 0.42), transparent 72%),
    radial-gradient(36% 88% at 50% 52%, rgba(116, 242, 208, 0.32), transparent 72%),
    radial-gradient(36% 92% at 82% 52%, rgba(255, 215, 251, 0.26), transparent 74%),
    linear-gradient(180deg, rgba(14, 24, 40, 0.18), rgba(7, 11, 20, 0.72));
  filter: blur(17px);
  opacity: 0;
  transform: scaleX(0.58) scaleY(0.52) translateY(26px);
  transform-origin: center bottom;
}

.reveal-heading--liquid-unflatten .reveal-heading__title-shell::after {
  content: "";
  position: absolute;
  left: 8.5%;
  right: 8%;
  bottom: 64px;
  height: clamp(22px, 2.35vw, 32px);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(90deg, rgba(47, 210, 255, 0.3), rgba(116, 242, 208, 0.22), rgba(255, 215, 251, 0.18));
  filter: blur(10px);
  opacity: 0;
  transform: scaleX(0.66) scaleY(0.7) translateY(18px);
  transform-origin: center bottom;
}

.reveal-heading--liquid-unflatten .reveal-heading__title::before,
.reveal-heading--liquid-unflatten .reveal-heading__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
  background:
    linear-gradient(106deg, #f6fbff 6%, #87f4ff 18%, #2fd2ff 32%, #74f2d0 48%, #9af4e0 58%, #ffd7fb 76%, #9cb6ff 90%, #f6fbff 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform-origin: center bottom;
}

.reveal-heading--liquid-unflatten .reveal-heading__title::before {
  --mask-top: 86%;
  filter: blur(16px);
  transform: translate3d(-14px, 20px, 0) scaleX(1.02) scaleY(0.12);
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--mask-top), black calc(var(--mask-top) + 10%));
  mask-image: linear-gradient(to bottom, transparent var(--mask-top), black calc(var(--mask-top) + 10%));
}

.reveal-heading--liquid-unflatten .reveal-heading__title::after {
  --mask-top: 82%;
  filter: blur(2px);
  transform: translate3d(12px, 16px, 0) scaleX(1.03) scaleY(0.16);
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--mask-top), black calc(var(--mask-top) + 10%));
  mask-image: linear-gradient(to bottom, transparent var(--mask-top), black calc(var(--mask-top) + 10%));
}

.reveal-heading--liquid-unflatten .reveal-heading__title > span {
  --mask-top: 86%;
  position: relative;
  z-index: 3;
  display: block;
  color: var(--text);
  opacity: 0;
  filter: blur(8px);
  transform-origin: center bottom;
  transform: translateY(22px) scaleX(1.06) scaleY(0.12);
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--mask-top), black calc(var(--mask-top) + 10%));
  mask-image: linear-gradient(to bottom, transparent var(--mask-top), black calc(var(--mask-top) + 10%));
  text-shadow:
    0 0 18px rgba(47, 210, 255, 0.12),
    0 0 28px rgba(255, 215, 251, 0.08);
}


.reveal-heading--liquid-unflatten .reveal-heading__title > span::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.05em;
  height: 1.35em;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 28%, rgba(47, 210, 255, 0.32) 52%, rgba(116, 242, 208, 0.26) 70%, rgba(255, 215, 251, 0.16) 100%);
  filter: blur(10px);
  opacity: 0;
  transform-origin: center bottom;
  transform: translateY(20px) scaleY(0.18) scaleX(0.94);
}

.reveal-heading--liquid-unflatten .liquid-trail {
  position: absolute;
  inset: auto auto 0 50%;
  width: clamp(220px, 30vw, 380px);
  height: clamp(38px, 5vw, 64px);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(47, 210, 255, 0.24), rgba(116, 242, 208, 0.2), rgba(255, 215, 251, 0.18), transparent);
  border: 1px solid rgba(160, 233, 255, 0.16);
  filter: blur(3px);
  opacity: 0;
  transform-origin: center bottom;
  transform: translateX(-50%) translateY(22px) scaleX(0.52) scaleY(0.36);
  pointer-events: none;
}

.reveal-heading--liquid-unflatten .liquid-trail--a {
  bottom: 53px;
  left: 50%;
  width: clamp(220px, 30vw, 412px);
  height: clamp(38px, 4.7vw, 64px);
}

.reveal-heading--liquid-unflatten .liquid-trail--b {
  bottom: 46px;
  left: 50%;
  width: clamp(180px, 22vw, 300px);
  height: clamp(24px, 2.93vw, 40px);
  border-color: rgba(255, 215, 251, 0.12);
}

.reveal-heading--liquid-unflatten.is-visible .reveal-heading__title-shell::before {
  animation: liquidPoolCompress 4.06s cubic-bezier(0.16, 0.84, 0.22, 1) calc(var(--reveal-start-delay) + 0s) both;
}

.reveal-heading--liquid-unflatten.is-visible .reveal-heading__title-shell::after {
  animation: liquidSurfaceGlint 1.66s cubic-bezier(0.18, 0.78, 0.22, 1) calc(var(--reveal-start-delay) + 0.16s) both;
}

.reveal-heading--liquid-unflatten.is-visible .reveal-heading__title::before {
  animation: liquidChromaticGhostLeft 1.96s cubic-bezier(0.18, 0.84, 0.24, 1) calc(var(--reveal-start-delay) + 0.08s) both;
}

.reveal-heading--liquid-unflatten.is-visible .reveal-heading__title::after {
  animation: liquidChromaticGhostRight 1.92s cubic-bezier(0.18, 0.84, 0.24, 1) calc(var(--reveal-start-delay) + 0.1s) both;
}

.reveal-heading--liquid-unflatten.is-visible .reveal-heading__title > span {
  animation: liquidTextUnflatten 1.86s linear calc(var(--reveal-start-delay) + 0.06s) both;
}

.reveal-heading--liquid-unflatten.is-visible .reveal-heading__title > span::after {
  animation: liquidSheetFollow 1.58s cubic-bezier(0.18, 0.8, 0.2, 1) calc(var(--reveal-start-delay) + 0.12s) both;
}

.reveal-heading--liquid-unflatten.is-visible .liquid-trail--a {
  animation: liquidTrailRise 1.7s cubic-bezier(0.16, 0.82, 0.2, 1) calc(var(--reveal-start-delay) + 0.02s) both;
}

.reveal-heading--liquid-unflatten.is-visible .liquid-trail--b {
  animation: liquidTrailRise 1.96s cubic-bezier(0.16, 0.82, 0.2, 1) calc(var(--reveal-start-delay) + 0.18s) both;
}

@keyframes liquidPoolCompress {
  0% {
    opacity: 0;
    transform: scaleX(0.58) scaleY(0.52) translateY(26px);
  }
  12% {
    opacity: 0.94;
  }
  28% {
    opacity: 1;
    transform: scaleX(1.06) scaleY(0.94) translateY(2px);
  }
  51% {
    opacity: 0.82;
    transform: scaleX(1) scaleY(0.86) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scaleX(1) scaleY(0.86) translateY(0);
  }
}

@keyframes liquidSurfaceGlint {
  0% {
    opacity: 0;
    transform: scaleX(0.66) scaleY(0.7) translateY(18px);
  }
  28% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: scaleX(1.16) scaleY(1.04) translateY(-6px);
  }
}

@keyframes liquidChromaticGhostLeft {
  0% {
    --mask-top: 86%;
    opacity: 0;
    transform: translate3d(-14px, 20px, 0) scaleX(1.02) scaleY(0.12);
    background-position: 0% 50%;
  }
  36% {
    --mask-top: 38%;
    opacity: 0.8;
    transform: translate3d(-6px, 8px, 0) scaleX(1.01) scaleY(0.68);
  }
  100% {
    --mask-top: -12%;
    opacity: 0;
    transform: translate3d(8px, -2px, 0) scaleX(1) scaleY(1);
    background-position: 100% 50%;
  }
}

@keyframes liquidChromaticGhostRight {
  0% {
    --mask-top: 82%;
    opacity: 0;
    transform: translate3d(12px, 16px, 0) scaleX(1.03) scaleY(0.16);
    background-position: 100% 50%;
  }
  34% {
    --mask-top: 32%;
    opacity: 0.74;
    transform: translate3d(6px, 7px, 0) scaleX(1.02) scaleY(0.76);
  }
  100% {
    --mask-top: -12%;
    opacity: 0;
    transform: translate3d(-5px, -2px, 0) scaleX(1) scaleY(1);
    background-position: 0% 50%;
  }
}

@keyframes liquidTextUnflatten {
  0% {
    --mask-top: 86%;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(22px) scaleX(1.06) scaleY(0.12);
  }
  100% {
    --mask-top: -12%;
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes liquidSheetFollow {
  0% {
    opacity: 0;
    transform: translateY(20px) scaleY(0.18) scaleX(0.94);
  }
  26% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scaleY(1.04) scaleX(1.02);
  }
}

@keyframes liquidTrailRise {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(22px) scaleX(0.52) scaleY(0.36);
  }
  22% {
    opacity: 0.64;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scaleX(1.12) scaleY(1.02);
  }
}

/* Stable: Paint Surge (Theme Appearance) */
.reveal-heading--paint-surge .reveal-heading__title-shell {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 14px 12px 22px;
}

.reveal-heading--paint-surge .paint-frame {
  position: absolute;
  inset: -13px -84px 15px 2px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
  isolation: isolate;
}

.reveal-heading--paint-surge .paint-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.reveal-heading--paint-surge .paint-layer--field {
  z-index: 2;
  filter: saturate(1.08);
}

.reveal-heading--paint-surge .paint-layer--imprint {
  z-index: 3;
  filter: saturate(1.08);
  opacity: 0;
}

.reveal-heading--paint-surge .paint-undercoat {
  position: absolute;
  inset: 8% 4% 10%;
  border-radius: 34px;
  opacity: 0.96;
  background:
    linear-gradient(118deg,
      rgba(255, 84, 147, 0.28) 0%,
      rgba(255, 180, 61, 0.34) 18%,
      rgba(96, 255, 168, 0.28) 34%,
      rgba(54, 209, 255, 0.28) 52%,
      rgba(98, 94, 255, 0.22) 68%,
      rgba(255, 104, 214, 0.28) 84%,
      rgba(255, 164, 70, 0.3) 100%);
  filter: blur(16px);
  transform: scaleX(0.84) scaleY(0.9) translateY(14px);
  transform-origin: center center;
}

.reveal-heading--paint-surge .paint-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.12) 24%,
      rgba(255, 255, 255, 0.05) 44%,
      rgba(255, 255, 255, 0) 64%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-16%);
}

.reveal-heading--paint-surge .brush {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: var(--radius);
  opacity: 0;
  background:
    linear-gradient(96deg,
      hsl(var(--h1), 94%, 78%) 0%,
      hsl(var(--h2), 92%, 64%) 22%,
      hsl(var(--h3), 88%, 56%) 58%,
      hsl(var(--h1), 82%, 42%) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 10px rgba(0, 0, 0, 0.14);
  transform-origin: center center;
  transform:
    translate3d(var(--tx), var(--ty), 0)
    rotate(var(--rot))
    scaleX(0.14);
}

.reveal-heading--paint-surge .brush::before,
.reveal-heading--paint-surge .brush::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  border-radius: inherit;
  opacity: 0.8;
  pointer-events: none;
}

.reveal-heading--paint-surge .brush::before {
  left: 3%;
  width: 20%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  filter: blur(2px);
}

.reveal-heading--paint-surge .brush::after {
  right: -1%;
  width: 18%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(18, 10, 24, 0.34));
  filter: blur(1px);
}

.reveal-heading--paint-surge .speck {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  opacity: 0;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 60% 60%, hsl(var(--h1), 94%, 64%), hsl(var(--h2), 88%, 48%) 70%, rgba(0, 0, 0, 0) 100%);
  transform:
    translate3d(var(--tx), var(--ty), 0)
    rotate(var(--rot))
    scale(0.25);
}

.reveal-heading--paint-surge .reveal-heading__title {
  position: relative;
  z-index: 5;
  margin: 0;
  opacity: 0;
  filter: blur(1.4px);
}

.reveal-heading--paint-surge .reveal-heading__title > span {
  display: block;
  position: relative;
}

.reveal-heading--paint-surge .flash-copy {
  position: absolute;
  inset: 14px 12px 22px;
  z-index: 7;
  pointer-events: none;
  margin: 0;
  opacity: 0;
}

.reveal-heading--paint-surge .flash-copy span {
  display: block;
}

.reveal-heading--paint-surge .flash-copy--outline {
  color: #fff;
  -webkit-text-stroke: 0.05em #fff;
  text-shadow:
    0 0 12px #fff,
    0 0 28px #fff,
    0 0 56px rgba(215, 190, 255, 1),
    0 0 84px rgba(207, 173, 255, 0.6);
}

.reveal-heading--paint-surge .flash-copy--glow {
  color: #fff;
  -webkit-text-fill-color: #fff;
  filter: blur(10px);
  mix-blend-mode: screen;
}

.reveal-heading--paint-surge.is-visible .paint-layer--field {
  opacity: 1;
  animation:
    paintFieldAppear 0.01s linear calc(var(--reveal-start-delay) + 0s) both,
    paintFieldDrop 0.66s cubic-bezier(0.22, 0.8, 0.22, 1) calc(var(--reveal-start-delay) + 1.28s) both;
}

.reveal-heading--paint-surge.is-visible .paint-layer--field .paint-undercoat,
.reveal-heading--paint-surge.is-visible .paint-layer--field .paint-sheen {
  display: none;
}

.reveal-heading--paint-surge.is-visible .paint-layer--imprint {
  animation: paintImprintLifecycle 2.7s linear calc(var(--reveal-start-delay) + 0s) both;
}

.reveal-heading--paint-surge.is-visible .paint-layer--imprint .paint-undercoat,
.reveal-heading--paint-surge.is-visible .paint-layer--imprint .paint-sheen {
  display: none;
}

.reveal-heading--paint-surge.is-visible .reveal-heading__title {
  animation: revealChromeBlobSettle 0.5s cubic-bezier(0.18, 0.82, 0.22, 1) calc(var(--reveal-start-delay) + 2.26s) both;
}

.reveal-heading--paint-surge.is-visible .flash-copy--outline,
.reveal-heading--paint-surge.is-visible .flash-copy--glow {
  animation: revealChromeFlash 0.32s ease-out calc(var(--reveal-start-delay) + 2.32s) both;
}

.reveal-heading--paint-surge.is-visible .brush,
.reveal-heading--paint-surge.is-visible .speck {
  animation-name: brushStrokeIn;
  animation-duration: var(--dur);
  animation-delay: calc(var(--reveal-start-delay) + var(--delay));
  animation-timing-function: cubic-bezier(0.2, 0.84, 0.22, 1);
  animation-fill-mode: both;
}

@keyframes paintFieldAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes brushStrokeIn {
  0% {
    opacity: 0;
    transform:
      translate3d(var(--tx), var(--ty), 0)
      rotate(var(--rot))
      scaleX(0.14);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform:
      translate3d(0, 0, 0)
      rotate(var(--rot))
      scaleX(1);
  }
}

@keyframes paintFieldDrop {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scaleY(1);
    filter: saturate(1.08);
  }
  100% {
    opacity: 0;
    transform: translateY(112px) rotate(2deg) scaleY(0.92);
    filter: saturate(1.06) blur(1.5px);
  }
}

@keyframes revealChromeBlobSettle {
  0% {
    opacity: 0;
    filter: blur(1.4px);
  }
  42% {
    opacity: 0.22;
    filter: blur(0.9px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes paintImprintLifecycle {
  0% { opacity: 0; }
  47% { opacity: 0; }
  50% { opacity: 1; }
  84% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes revealChromeFlash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 900px) {
  .reveal-heading--paint-surge .paint-frame {
    inset: -15px -24px 13px 8px;
  }

  .reveal-heading--paint-surge .flash-copy {
    inset: 14px 10px 22px;
  }
}

@media (max-width: 720px) {
  .reveal-heading--paint-surge .paint-frame {
    inset: -13px -20px 13px 12px;
  }

  .reveal-heading--paint-surge .reveal-heading__title > span,
  .reveal-heading--paint-surge .flash-copy span {
    white-space: normal;
  }
}

/* Stable: Letter Cloud (Keyboard Shortcuts) */
.reveal-heading--letter-cloud .reveal-heading__title-shell {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 12px 16px 16px;
}

.reveal-heading--letter-cloud .letter-cloud {
  position: absolute;
  inset: -30px -40px -20px -30px;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.reveal-heading--letter-cloud .cloud-letter {
  position: absolute;
  font-family: sans-serif;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.reveal-heading--letter-cloud .reveal-heading__title {
  position: relative;
  z-index: 1;
  margin: 0;
  opacity: 0;
}

.reveal-heading--letter-cloud .title-glyph {
  position: relative;
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.reveal-heading--letter-cloud .title-glyph.is-space {
  width: 0.34em;
}

.reveal-heading--letter-cloud .title-glyph::after {
  content: "";
  position: absolute;
  left: -16%;
  right: -16%;
  top: 50%;
  height: 0.9em;
  border-radius: 50%;
  background: radial-gradient(60% 100% at 50% 50%, rgba(53, 239, 166, 0.8), rgba(144, 38, 245, 0.3) 50%, transparent 76%);
  filter: blur(8px);
  opacity: 0;
  transform: translateY(-50%) scale(0.3);
  pointer-events: none;
}

.reveal-heading--letter-cloud.is-visible .cloud-letter {
  animation: cloudLetterLife var(--life-dur) ease-in-out calc(var(--reveal-start-delay) + var(--in-delay)) both;
}

.reveal-heading--letter-cloud.is-visible .reveal-heading__title {
  animation: titleAppear 1.12s ease-out calc(var(--reveal-start-delay) + 0.64s) both;
}

.reveal-heading--letter-cloud.is-visible .title-glyph:not(.is-space) {
  animation: glyphColorSwitch 0.3s ease-out calc(var(--reveal-start-delay) + var(--glyph-delay)) both;
}

.reveal-heading--letter-cloud.is-visible .title-glyph:not(.is-space)::after {
  animation: glyphFlash 0.4s cubic-bezier(0.18, 0.82, 0.24, 1) calc(var(--reveal-start-delay) + var(--glyph-delay)) both;
}

@keyframes cloudLetterLife {
  0% { opacity: 0; }
  15% { opacity: var(--peak, 0.8); }
  65% { opacity: var(--peak, 0.8); }
  100% { opacity: 0; }
}

@keyframes titleAppear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes glyphColorSwitch {
  0% {
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  100% {
    -webkit-text-fill-color: var(--text);
    color: var(--text);
    background: none;
  }
}

@keyframes glyphFlash {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.3);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1.1);
  }
}

/* Stable: Import Supernova (Universal Import) */
.reveal-heading--import-supernova .reveal-heading__title-shell {
  position: relative;
  display: inline-block;
  width: min(1120px, 100%);
  padding: 26px 0 20px;
  isolation: isolate;
}

.reveal-heading--import-supernova .beam-field {
  position: absolute;
  inset: -16% -8% -18%;
  --impact-x: 50%;
  --impact-y: 50%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.reveal-heading--import-supernova .beam {
  position: absolute;
  left: var(--impact-x);
  top: var(--impact-y);
  width: var(--length);
  height: var(--thickness);
  opacity: 0;
  border-radius: 999px;
  transform-origin: right center;
  transform: translate(-100%, -50%) rotate(var(--angle));
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--beam-color) 54%, white));
  clip-path: inset(0 100% 0 0 round 999px);
}

.reveal-heading--import-supernova .beam::before {
  content: "";
  position: absolute;
  inset: 24% 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      color-mix(in srgb, var(--beam-color) 72%, white 28%) 26%,
      color-mix(in srgb, var(--beam-color) 48%, white 52%) 78%,
      rgba(255, 255, 255, 0.94) 100%);
  opacity: 0.96;
  filter: blur(0.7px);
}

.reveal-heading--import-supernova .beam > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      color-mix(in srgb, var(--beam-color) 22%, transparent 78%) 20%,
      color-mix(in srgb, var(--beam-color) 34%, transparent 66%) 50%,
      color-mix(in srgb, var(--beam-color) 22%, transparent 78%) 80%,
      rgba(255, 255, 255, 0) 100%);
  filter: blur(4px);
  opacity: 0.86;
}

.reveal-heading--import-supernova .beam::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(var(--thickness) * 3.4);
  height: calc(var(--thickness) * 3.4);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 1) 0%, color-mix(in srgb, var(--beam-color) 72%, white 28%) 38%, rgba(255, 255, 255, 0) 74%);
  transform: translate(-20%, -50%);
  filter: blur(1px);
  opacity: 0;
}

.reveal-heading--import-supernova .beam--a { --angle: 9deg; --length: clamp(360px, 42vw, 540px); --thickness: 3.6px; --beam-color: #78e7ff; --head-delay: 0.1s; }
.reveal-heading--import-supernova .beam--b { --angle: -34deg; --length: clamp(300px, 34vw, 480px); --thickness: 2.9px; --beam-color: #ff7fcc; --head-delay: 0.22s; }
.reveal-heading--import-supernova .beam--c { --angle: 146deg; --length: clamp(280px, 30vw, 430px); --thickness: 4.1px; --beam-color: #65ffc8; --head-delay: 0.34s; }
.reveal-heading--import-supernova .beam--d { --angle: -151deg; --length: clamp(340px, 38vw, 500px); --thickness: 3.5px; --beam-color: #ffc96d; --head-delay: 0.46s; }
.reveal-heading--import-supernova .beam--e { --angle: 102deg; --length: clamp(240px, 24vw, 360px); --thickness: 2.2px; --beam-color: #8da0ff; --head-delay: 0.58s; }

.reveal-heading--import-supernova .nova-haze,
.reveal-heading--import-supernova .nova-core,
.reveal-heading--import-supernova .nova-flash,
.reveal-heading--import-supernova .nova-ring,
.reveal-heading--import-supernova .nova-ring--inner,
.reveal-heading--import-supernova .nova-ripple {
  position: absolute;
  left: var(--impact-x, 50%);
  top: var(--impact-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.reveal-heading--import-supernova .nova-haze {
  width: clamp(180px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(120, 231, 255, 0.22),
      rgba(255, 127, 204, 0.24),
      rgba(255, 201, 109, 0.18),
      rgba(101, 255, 200, 0.22),
      rgba(141, 160, 255, 0.18),
      rgba(120, 231, 255, 0.22));
  filter: blur(24px);
  mix-blend-mode: screen;
}

.reveal-heading--import-supernova .nova-core {
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(214, 248, 255, 0.94) 24%, rgba(120, 231, 255, 0.62) 48%, rgba(255, 255, 255, 0) 74%);
  filter: blur(0.6px);
  box-shadow:
    0 0 22px rgba(120, 231, 255, 0.76),
    0 0 54px rgba(255, 127, 204, 0.32),
    0 0 84px rgba(141, 160, 255, 0.24);
}

.reveal-heading--import-supernova .nova-flash {
  width: clamp(34px, 4vw, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.96) 28%, rgba(255, 255, 255, 0) 72%);
  filter: blur(6px);
}

.reveal-heading--import-supernova .nova-ring,
.reveal-heading--import-supernova .nova-ring--inner {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 18px rgba(120, 231, 255, 0.42),
    0 0 32px rgba(255, 127, 204, 0.22);
}

.reveal-heading--import-supernova .nova-ring {
  width: 18px;
  aspect-ratio: 1;
}

.reveal-heading--import-supernova .nova-ring--inner {
  width: 12px;
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.78);
}

.reveal-heading--import-supernova .nova-ripple {
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(120, 231, 255, 0.1) 18%, rgba(255, 255, 255, 0) 66%);
  filter: blur(14px);
}

.reveal-heading--import-supernova .title-stack {
  position: relative;
  z-index: 4;
  font-family: "Comfortaa", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 1.95rem);
  letter-spacing: var(--comfortaa-letter-spacing);
  line-height: 1.2;
}

.reveal-heading--import-supernova .reveal-heading__title,
.reveal-heading--import-supernova .title-ghost,
.reveal-heading--import-supernova .title-flash {
  display: block;
  width: min(1080px, 100%);
  margin: 0;
  line-height: inherit;
  letter-spacing: inherit;
  font: inherit;
  text-wrap: balance;
}

.reveal-heading--import-supernova .reveal-heading__title {
  position: relative;
  color: var(--text);
  opacity: 0;
  filter: blur(22px) saturate(1.22);
  transform: scale(0.14);
  transform-origin: center center;
}

.reveal-heading--import-supernova .title-ghost,
.reveal-heading--import-supernova .title-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
}

.reveal-heading--import-supernova .title-ghost--cyan {
  color: rgba(120, 231, 255, 0.88);
  mix-blend-mode: screen;
  filter: blur(8px);
  transform: translateX(-2px) scale(0.16);
}

.reveal-heading--import-supernova .title-ghost--rose {
  color: rgba(255, 127, 204, 0.82);
  mix-blend-mode: screen;
  filter: blur(10px);
  transform: translateX(2px) scale(0.16);
}

.reveal-heading--import-supernova .title-flash {
  color: #fff;
  -webkit-text-stroke: 0.04em rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 14px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 255, 255, 0.92),
    0 0 54px rgba(120, 231, 255, 0.78),
    0 0 80px rgba(255, 127, 204, 0.42);
  transform: scale(0.12);
}

.reveal-heading--import-supernova.is-visible .beam--a { animation: importSupernovaBeamLine 0.92s linear calc(var(--reveal-start-delay) + 0.06s) both; }
.reveal-heading--import-supernova.is-visible .beam--b { animation: importSupernovaBeamLine 0.86s linear calc(var(--reveal-start-delay) + 0.18s) both; }
.reveal-heading--import-supernova.is-visible .beam--c { animation: importSupernovaBeamLine 0.9s linear calc(var(--reveal-start-delay) + 0.3s) both; }
.reveal-heading--import-supernova.is-visible .beam--d { animation: importSupernovaBeamLine 0.84s linear calc(var(--reveal-start-delay) + 0.42s) both; }
.reveal-heading--import-supernova.is-visible .beam--e { animation: importSupernovaBeamLine 0.78s linear calc(var(--reveal-start-delay) + 0.54s) both; }

.reveal-heading--import-supernova.is-visible .beam::after {
  animation: importSupernovaBeamHead 0.76s linear calc(var(--reveal-start-delay) + var(--head-delay)) both;
}

.reveal-heading--import-supernova.is-visible .nova-haze {
  animation: importSupernovaHazeGather 0.92s cubic-bezier(0.2, 0.82, 0.24, 1) calc(var(--reveal-start-delay) + 0.74s) both;
}

.reveal-heading--import-supernova.is-visible .nova-core {
  animation: importSupernovaCoreCharge 0.86s cubic-bezier(0.22, 0.86, 0.24, 1) calc(var(--reveal-start-delay) + 0.82s) both;
}

.reveal-heading--import-supernova.is-visible .nova-flash {
  animation: importSupernovaFlashBurst 0.36s ease-out calc(var(--reveal-start-delay) + 1.28s) both;
}

.reveal-heading--import-supernova.is-visible .nova-ring {
  animation: importSupernovaRingExpand 0.62s cubic-bezier(0.18, 0.76, 0.24, 1) calc(var(--reveal-start-delay) + 1.24s) both;
}

.reveal-heading--import-supernova.is-visible .nova-ring--inner {
  animation: importSupernovaRingInner 0.5s cubic-bezier(0.18, 0.76, 0.24, 1) calc(var(--reveal-start-delay) + 1.28s) both;
}

.reveal-heading--import-supernova.is-visible .nova-ripple {
  animation: importSupernovaRipple 0.72s ease-out calc(var(--reveal-start-delay) + 1.26s) both;
}

.reveal-heading--import-supernova.is-visible .title-ghost--cyan {
  animation: importSupernovaTitleGhostCyan 0.89s cubic-bezier(0.18, 0.82, 0.22, 1) calc(var(--reveal-start-delay) + 1.32s) both;
}

.reveal-heading--import-supernova.is-visible .title-ghost--rose {
  animation: importSupernovaTitleGhostRose 0.89s cubic-bezier(0.18, 0.82, 0.22, 1) calc(var(--reveal-start-delay) + 1.32s) both;
}

.reveal-heading--import-supernova.is-visible .title-flash {
  animation: importSupernovaTitleFlash 0.49s ease-out calc(var(--reveal-start-delay) + 1.36s) both;
}

.reveal-heading--import-supernova.is-visible .reveal-heading__title {
  animation: importSupernovaTitleResolve 0.84s cubic-bezier(0.18, 0.82, 0.22, 1) calc(var(--reveal-start-delay) + 1.32s) both;
}

@keyframes importSupernovaBeamLine {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0 round 999px);
  }
  12% {
    opacity: 1;
  }
  86% {
    opacity: 0.9;
    clip-path: inset(0 0 0 0 round 999px);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0 round 999px);
  }
}

@keyframes importSupernovaBeamHead {
  0% {
    opacity: 0;
    transform: translate(-20%, -50%) scale(0.7);
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 1;
    transform: translate(calc(var(--length) - 18px), -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--length) - 6px), -50%) scale(1.24);
  }
}

@keyframes importSupernovaHazeGather {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.34);
    filter: blur(30px);
  }
  50% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
    filter: blur(20px);
  }
}

@keyframes importSupernovaCoreCharge {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.28);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6);
  }
}

@keyframes importSupernovaFlashBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.24);
  }
  26% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(7.2);
  }
}

@keyframes importSupernovaRingExpand {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(15);
  }
}

@keyframes importSupernovaRingInner {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(10);
  }
}

@keyframes importSupernovaRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
  }
  30% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.8);
  }
}

@keyframes importSupernovaTitleGhostCyan {
  0% {
    opacity: 0;
    transform: translateX(-4px) scale(0.16);
    filter: blur(14px);
  }
  34% {
    opacity: 0.94;
    transform: translateX(-10px) scale(1.06);
  }
  100% {
    opacity: 0;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes importSupernovaTitleGhostRose {
  0% {
    opacity: 0;
    transform: translateX(4px) scale(0.16);
    filter: blur(16px);
  }
  34% {
    opacity: 0.88;
    transform: translateX(10px) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes importSupernovaTitleFlash {
  0% {
    opacity: 0;
    transform: scale(0.14);
  }
  32% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes importSupernovaTitleResolve {
  0% {
    opacity: 0;
    filter: blur(22px) saturate(1.22);
    transform: scale(0.14);
  }
  48% {
    opacity: 0.9;
    filter: blur(6px) saturate(1.12);
    transform: scale(0.995);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .reveal-heading--import-supernova .beam-field {
    inset: -10% -8% -14%;
  }

  .reveal-heading--import-supernova .beam--a { --length: clamp(280px, 48vw, 420px); }
  .reveal-heading--import-supernova .beam--b { --length: clamp(260px, 38vw, 360px); }
  .reveal-heading--import-supernova .beam--c { --length: clamp(220px, 34vw, 320px); }
  .reveal-heading--import-supernova .beam--d { --length: clamp(250px, 42vw, 380px); }
  .reveal-heading--import-supernova .beam--e { --length: clamp(170px, 24vw, 240px); }
}

@media (max-width: 720px) {
  .reveal-heading--import-supernova .reveal-heading__title-shell {
    width: 100%;
    padding-top: 18px;
  }

  .reveal-heading--import-supernova .beam-field {
    inset: -6% -10% -10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-logo,
  .reveal-logo .logo-stencil-wrap::before,
  .reveal-logo .logo-stencil-wrap::after,
  .reveal-logo .logo-stencil-fill,
  .reveal-logo .logo-stencil-fill::before,
  .reveal-logo .logo-stencil-shade,
  .reveal-logo .logo-stencil-ghost,
  .reveal-logo .logo-stencil-sheen {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal-logo .logo-stencil-wrap::before,
  .reveal-logo .logo-stencil-wrap::after,
  .reveal-logo .logo-stencil-fill::before,
  .reveal-logo .logo-stencil-sheen {
    opacity: 0 !important;
  }

  .reveal-logo .logo-stencil-shade {
    opacity: var(--logo-shade-opacity, 0.3) !important;
  }

  .reveal-logo .logo-stencil-ghost {
    opacity: var(--logo-ghost-opacity, 0.1) !important;
  }

  .hero-subtitle--spectral-cascade span,
  .hero-subtitle--spectral-cascade span::before,
  .hero-subtitle--spectral-cascade span::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
  }

  .hero-subtitle--spectral-cascade span::before,
  .hero-subtitle--spectral-cascade span::after {
    opacity: 0 !important;
  }

  .hero-copy #hero-description {
    animation: none !important;
    opacity: 1 !important;
  }

  .reveal-heading .eyebrow,
  .reveal-heading .reveal-heading__title,
  .reveal-heading .reveal-heading__title span,
  .reveal-heading .reveal-heading__letterline,
  .reveal-heading .reveal-heading__glyph {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal-heading .reveal-heading__title::before,
  .reveal-heading .reveal-heading__title::after,
  .reveal-heading .reveal-heading__title span::before,
  .reveal-heading .reveal-heading__title span::after {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal-heading--tree-streak .reveal-heading__ghost {
    opacity: 0 !important;
    transform: none !important;
  }

  .reveal-heading--tree-streak .reveal-heading__text {
    opacity: 1 !important;
  }

  .reveal-heading--tree-streak .iridescent-angle-streak {
    display: none !important;
  }

  .reveal-heading--waveform .waveform-layer--magenta,
  .reveal-heading--waveform .waveform-layer--cyan {
    opacity: 0 !important;
  }
}
