html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  overflow-x: clip;
  overflow-y: visible;
}
body.menu-open {
  overflow: hidden;
}
#scene {
  touch-action: pan-y;
  opacity: var(--scene-opacity, 1);
}
body > main {
  position: absolute;
  top: 50svh;
}
body > header {
  position: absolute;
}
.grain {
  z-index: 3;
}
.scroll-cue {
  position: absolute;
  top: calc(100svh - 140px);
  left: 9%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgb(var(--muted));
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
}
.scroll-cue span:last-child {
  font-size: 23px;
  color: rgb(var(--accent));
  transition: transform 0.3s;
}
.scroll-cue:hover span:last-child {
  transform: translateY(5px);
}
.nyx-chapter {
  position: relative;
  z-index: 4;
  margin-top: 100svh;
  height: 360svh;
  /* Match the uniform matte in the Nyx frames. */
  background: #f5f5f5;
  color: #19252b;
  --nyx-ink: color-mix(in srgb, rgb(var(--accent)) 35%, #14262c);
}
.nyx-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  box-sizing: border-box;
  padding: 115px max(7vw, 24px) 100px;
  display: flex;
  flex-direction: column;
  overflow: clip;
}
.nyx-heading {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  flex-shrink: 0;
}
.nyx-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.nyx-title-row h2 {
  font:
    400 clamp(52px, 7vw, 106px) / 1.1 Manrope,
    sans-serif;
  letter-spacing: -0.07em;
  margin: 0;
}
.nyx-title-row h2 em {
  font-style: normal;
  color: var(--nyx-ink);
}
.nyx-byline {
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.65;
  color: #677176;
  margin: 0;
  white-space: nowrap;
}
.nyx-subtitle {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
  color: #677176;
  opacity: var(--title-caption, 1);
  transform: translateY(calc((1 - var(--title-caption, 1)) * 20px));
}
.nyx-sequence {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.nyx-film {
  position: relative;
  margin: 0;
  width: min(100%, calc((100svh - 345px) * 1.77778));
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.nyx-media,
.nyx-frame {
  display: contents;
}
#nyx-video {
  transform: scale(0.9);
  transform-origin: center;
  display: block;
  width: 100%;
  height: 100%;
  background: #f5f5f5 url("./media/nyx-scroll-poster-v2.jpg") center / contain
    no-repeat;
  object-fit: contain;
  mix-blend-mode: normal;
  /* Transparent frame edges blend directly into the page without a filter. */
}
.nyx-scroll-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #677176;
  margin: 8px auto 0;
  width: 100%;
  max-width: 1400px;
}
.nyx-scroll-note > div {
  height: 1px;
  flex: 1;
  background: #d8dddd;
}
.nyx-scroll-note i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--nyx-ink);
  transform: scaleX(var(--nyx-progress, 0));
  transform-origin: left;
}
#nyx-load-error {
  position: absolute;
  bottom: 0;
  color: #333;
  font-size: 13px;
}
#nyx-load-error a {
  color: inherit;
}
body > footer {
  z-index: 8;
  pointer-events: none;
}
body > footer .hero-playback {
  pointer-events: auto;
}
.hero-playback {
  margin-left: auto;
  order: 1;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.hero-playback #pause {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(var(--accent) / 0.18);
  background: rgb(var(--surface) / 0.8);
}
.is-scrolled .hero-playback {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.is-scrolled .instruction,
.is-scrolled .footnote {
  opacity: 0;
  pointer-events: none;
}
.menu-open .menu-shell {
  height: 578px;
  max-height: calc(100dvh - 54px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.menu-open .menu-shell.moods-open {
  height: 633px;
}
.menu-open .menu-link:nth-of-type(4) {
  transition-delay: 0.34s;
}
body.pure-form .scroll-cue {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 700px) {
  body > main {
    top: 29svh;
  }
  .scroll-cue {
    left: 8%;
    top: calc(100svh - 140px);
  }
  .nyx-sticky {
    padding: 110px 20px 110px;
  }
  .nyx-title-row {
    gap: 12px;
  }
  .nyx-byline {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .nyx-film {
    width: 100%;
    margin-bottom: 35px;
  }
  .nyx-scroll-note {
    font-size: 7px;
    gap: 12px;
  }
  .menu-open .menu-shell {
    max-height: calc(100dvh - 44px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.nyx-title-word {
  display: inline-block;
  opacity: var(--title-meet, 1);
  transform: translateY(calc((1 - var(--title-meet, 1)) * 48px));
  filter: blur(calc((1 - var(--title-meet, 1)) * 7px));
  will-change: transform, opacity;
}
.nyx-title-word em {
  font-style: normal;
}
.nyx-title-row h2 em.nyx-title-word {
  opacity: var(--title-nyx, 1);
  transform: translateY(calc((1 - var(--title-nyx, 1)) * 56px));
  filter: blur(calc((1 - var(--title-nyx, 1)) * 7px));
}
.nyx-title-row > p {
  opacity: var(--title-caption, 1);
  transform: translateY(calc((1 - var(--title-caption, 1)) * 20px));
}
@media (max-width: 700px) {
}
@media (prefers-reduced-motion: reduce) {
  .nyx-title-word,
  .nyx-title-row h2 em.nyx-title-word,
  .nyx-title-row > p {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
  }
  .nyx-subtitle {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
}

/* Center the supplied white wordmark over the homepage scene. */
body > main.hero-brand {
  left: 50%;
  top: 50svh;
  transform: translate(-50%, -50%);
  width: min(520px, 70vw);
}
.hero-brand h1 {
  margin: 0;
  line-height: 0;
}
.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Compact decorative playback indicator; the entire control stops music. */
body:not(.menu-open) .menu-shell.music-playing {
  width: 280px;
}
.menu-bar .menu-audio-stop {
  display: flex;
  flex: 0 0 42px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  border-radius: 8px;
  color: rgb(var(--accent));
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.6px;
}
.menu-bar .menu-audio-stop[hidden] {
  display: none;
}
.menu-audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 19px;
}
.menu-audio-wave i {
  display: block;
  width: 2px;
  height: 17px;
  border-radius: 2px;
  background: currentColor;
  animation: menu-wave 1.2s ease-in-out infinite alternate;
  transform: scaleY(0.3);
}
.menu-audio-wave i:nth-child(2n) {
  animation-delay: -0.7s;
}
.menu-audio-wave i:nth-child(3n) {
  animation-delay: -0.3s;
  animation-duration: 0.85s;
}
.menu-audio-wave i:nth-child(4n) {
  animation-delay: -1.1s;
}
.menu-audio-stop:hover {
  color: rgb(var(--text));
}
@keyframes menu-wave {
  to {
    transform: scaleY(1);
  }
}
@media (max-width: 700px) {
  body:not(.menu-open) .menu-shell.music-playing {
    width: 254px;
  }
  .menu-open .music-playing .menu-wordmark {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-audio-wave i {
    animation: none;
    transform: scaleY(0.55);
  }
  .menu-audio-wave i:nth-child(2n) {
    transform: scaleY(1);
  }
}

/* Balance playback around the exact center of the menu capsule. */
body:not(.menu-open) .menu-shell.music-playing {
  width: min(350px, calc(100vw - 32px));
}
.music-playing .menu-bar {
  position: relative;
}
.music-playing .menu-bar .menu-audio-stop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  width: 42px;
}
.music-playing .menu-bar #menu-toggle {
  margin-left: auto;
}
.menu-shell.pointer-input button:focus {
  outline: none;
}
@media (max-width: 700px) {
  body:not(.menu-open) .menu-shell.music-playing {
    width: min(320px, calc(100vw - 32px));
  }
}

.menu-audio-wave {
  transition: transform 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}
.music-playing:not(.music-active) .menu-audio-wave {
  transform: scaleY(0.12);
}
.music-playing:not(.music-active) .menu-audio-wave i {
  animation-play-state: paused;
}
.menu-audio-label {
  position: relative;
  display: block;
  width: 36px;
  height: 11px;
  overflow: hidden;
}
.menu-audio-label > span {
  position: absolute;
  inset: 0;
  text-align: center;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.audio-play-label {
  opacity: 0;
  transform: translateY(12px);
}
.music-playing:not(.music-active) .audio-stop-label {
  opacity: 0;
  transform: translateY(-12px);
}
.music-playing:not(.music-active) .audio-play-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
@media (prefers-reduced-motion: reduce) {
  .menu-audio-wave,
  .menu-audio-label > span {
    transition: none;
  }
}

/* Compact, evenly spaced playback controls. */
body:not(.menu-open) .menu-shell.music-playing {
  width: min(280px, calc(100vw - 32px));
}
.music-playing .menu-bar .menu-audio-stop {
  position: static;
  transform: none;
  flex: 0 0 42px;
}
.music-playing .menu-bar {
  justify-content: space-between;
}
.menu-shell #menu-audio-stop:focus,
.menu-shell #menu-toggle:focus {
  outline: none;
}
.menu-shell #menu-audio-stop:focus-visible .menu-audio-label,
.menu-shell #menu-toggle:focus-visible .menu-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu-audio-wave {
  position: relative;
  transform: none !important;
}
.menu-audio-wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.menu-audio-wave i {
  transition: opacity 0.35s ease;
}
.music-playing:not(.music-active) .menu-audio-wave i {
  opacity: 0;
}
.music-playing:not(.music-active) .menu-audio-wave::after {
  opacity: 1;
}
@media (max-width: 700px) {
  body:not(.menu-open) .menu-shell.music-playing {
    width: min(254px, calc(100vw - 32px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-audio-wave::after,
  .menu-audio-wave i {
    transition: none;
  }
}

/* Paused bars settle individually into evenly sized dots. */
.music-playing:not(.music-active) .menu-audio-wave i {
  opacity: 1;
}
.menu-audio-wave::after {
  display: none;
}

/* Four evenly spaced controls, without the toggle's old reserved width. */
body:not(.menu-open) .music-playing .menu-bar {
  display: grid;
  grid-template-columns: 37px 42px 1fr;
  gap: 16px;
  padding: 0 18px;
}
body:not(.menu-open) .music-playing .menu-bar #menu-toggle {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  gap: 14px;
}
@media (max-width: 700px) {
  body:not(.menu-open) .music-playing .menu-bar {
    grid-template-columns: 34px 36px 1fr;
    gap: 12px;
    padding: 0 15px;
  }
  body:not(.menu-open) .music-playing .menu-bar .menu-audio-stop {
    width: 36px;
  }
  body:not(.menu-open) .music-playing .menu-bar #menu-toggle {
    min-width: 0;
    gap: 12px;
  }
}

body:not(.menu-open) .menu-shell.music-playing {
  width: 248px;
}
body:not(.menu-open) .music-playing .menu-bar {
  grid-template-columns: 37px 36px auto;
  gap: 12px;
  padding: 0 16px;
}
body:not(.menu-open) .music-playing .menu-bar .menu-audio-stop {
  width: 36px;
}
body:not(.menu-open) .music-playing .menu-bar #menu-toggle {
  justify-content: flex-start;
  gap: 16px;
}
@media (max-width: 700px) {
  body:not(.menu-open) .menu-shell.music-playing {
    width: 238px;
  }
  body:not(.menu-open) .music-playing .menu-bar {
    grid-template-columns: 34px 36px auto;
    gap: 10px;
    padding: 0 15px;
  }
}

.menu-open .music-playing .menu-bar .menu-audio-stop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Nyx recedes as one complete page; Clu takes over the same pinned stage. */
.nyx-chapter {
  height: 620svh;
  background: #000;
}
.chapter-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  background: #000;
}
.chapter-stage > .nyx-sticky {
  position: relative;
  background: #f5f5f5;
  transform: scale(calc(1 - var(--nyx-exit, 0) * 0.22));
  opacity: calc(1 - var(--nyx-exit, 0));
  filter: blur(calc(var(--nyx-exit, 0) * 18px));
  transform-origin: center;
  border-radius: calc(var(--nyx-exit, 0) * 30px);
}
.clu-intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  opacity: var(--clu-enter, 0);
  filter: blur(calc((1 - var(--clu-enter, 0)) * 22px));
  transform: translateY(calc((1 - var(--clu-enter, 0)) * 35px));
  color: #fff;
}
.clu-intro[inert] {
  pointer-events: none;
}
#clu-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.clu-caption {
  position: absolute;
  z-index: 1;
  top: 88px;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: flex-end;
  font-size: 10px;
  letter-spacing: 2px;
  color: #ffffff90;
}
.clu-play {
  position: absolute;
  bottom: 100px;
  border: 1px solid #ffffff50;
  padding: 12px 20px;
  color: white;
  background: #ffffff14;
}
.clu-play[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .chapter-stage > .nyx-sticky,
  .clu-intro {
    transform: none;
    filter: none;
  }
}

/* A second scroll beat turns the film into a luminous title backdrop. */
.nyx-chapter {
  height: 720svh;
}
@property --clu-film-blur {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --clu-film-dim {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
#clu-video {
  filter: blur(max(calc(var(--clu-title, 0) * 14px), var(--clu-film-blur)));
  transition:
    --clu-film-blur 1.4s ease-in-out,
    --clu-film-dim 1.4s ease-in-out;
}
.clu-intro[data-film-finished="true"] #clu-video {
  --clu-film-blur: 14px;
  --clu-film-dim: 0.5;
}
.clu-continue {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0s 0.5s;
  color: #f6eee4;
  font:
    400 clamp(16px, 1.6vw, 22px)/1.4 Manrope,
    sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px #0009;
}
.clu-continue.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 1s ease 0.35s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
    visibility 0s;
}
.clu-continue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #e1b48f;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  #clu-video,
  .clu-continue,
  .clu-continue.is-visible {
    transition: none;
    transform: none;
  }
}
.clu-title-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #10070180, #0009);
  opacity: var(--clu-title, 0);
}
.clu-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 100px 24px;
  color: #ff9c46;
}
.clu-title h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  line-height: 0.88;
}
.clu-introducing {
  display: block;
  margin-bottom: 24px;
  font-size: clamp(15px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: var(--clu-title, 0);
  transform: translateY(calc((1 - var(--clu-title, 0)) * 24px));
  text-shadow: 0 0 18px #ff710b90;
}
.clu-word {
  display: flex;
  justify-content: center;
  font-size: clamp(100px, 19vw, 270px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.075em;
  padding-right: 0.11em;
}
.clu-word > span {
  display: inline-block;
  opacity: var(--letter-reveal, 0);
  transform: translateY(calc((1 - var(--letter-reveal, 0)) * 70px))
    scale(calc(0.9 + var(--letter-reveal, 0) * 0.1));
  filter: blur(calc((1 - var(--letter-reveal, 0)) * 14px));
  background: linear-gradient(
    165deg,
    #ffe1ab 5%,
    #ffae55 35%,
    #ff741e 65%,
    #f34c13
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow:
    0 0 38px #ff660044,
    0 0 100px #ff5a0028;
}
.clu-title p {
  margin: 36px 0 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(13px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: 0.17em;
  color: #ffb771;
  text-shadow: 0 0 18px #ff700080;
  opacity: var(--clu-subtitle, 0);
  transform: translateY(calc((1 - var(--clu-subtitle, 0)) * 20px));
}
@media (prefers-reduced-motion: reduce) {
  .clu-introducing,
  .clu-word > span,
  .clu-title p {
    transform: none;
    filter: none;
  }
}

/* Sculpted amber title with a scroll-driven specular pass. */
.clu-title {
  perspective: 1000px;
}
.clu-title h2 {
  position: relative;
  isolation: isolate;
}
.clu-introducing {
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: 0.55em;
  margin-bottom: 32px;
  color: #ffd4a7;
}
.clu-word {
  font-size: clamp(110px, 20vw, 290px);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.065em;
  padding-right: 0.065em;
}
.clu-word > span {
  background-image: linear-gradient(
    115deg,
    #6c270c 0%,
    #d76b27 18%,
    #fff3d4 30%,
    #ffb873 38%,
    #9b360d 49%,
    #ffd2a0 61%,
    #fff5e1 65%,
    #d55c18 78%,
    #79300e 100%
  );
  background-size: 240% 100%;
  background-position: calc(var(--clu-title, 0) * 100%) 50%;
  -webkit-text-stroke: 0.7px #ffd4a788;
  filter: blur(calc((1 - var(--letter-reveal, 0)) * 14px))
    drop-shadow(0 2px 0 #6b2c12) drop-shadow(0 12px 22px #0008);
  text-shadow: none;
  transform: translateY(calc((1 - var(--letter-reveal, 0)) * 65px))
    rotateX(calc((1 - var(--letter-reveal, 0)) * 45deg));
  transform-origin: center bottom;
}
.clu-title h2::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -35%;
  right: -35%;
  top: 40%;
  height: 65%;
  background: radial-gradient(ellipse, #ff710b32, transparent 65%);
  opacity: var(--clu-title, 0);
  filter: blur(28px);
}
.clu-title h2::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -22px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #ff811a80 25%,
    #fff0d5 50%,
    #ff811a80 75%,
    transparent
  );
  box-shadow:
    0 0 12px #ff6a00,
    0 0 32px #ff710b66;
  transform: scaleX(var(--clu-subtitle, 0));
  opacity: var(--clu-subtitle, 0);
}
.clu-title p {
  margin-top: 58px;
  font-size: clamp(11px, 1.25vw, 17px);
  letter-spacing: 0.26em;
  color: #efc2a0;
  text-shadow: 0 0 20px #ff7d1733;
}
.clu-title-shade {
  background:
    radial-gradient(ellipse at center, #0f070830, #020203c9 85%),
    linear-gradient(0deg, #0008, #0004);
}
@media (prefers-reduced-motion: reduce) {
  .clu-word > span {
    transform: none;
    filter: none;
  }
}

/* The meaning unfolds within the initials on the next scroll beat. */
.nyx-chapter {
  height: 790svh;
}
.clu-word > span {
  position: relative;
  background: none;
  color: #fffaf4;
  -webkit-text-stroke: 0;
  text-shadow:
    0 0 28px #ff831c30,
    0 0 65px #ff6a0018;
  filter: blur(calc((1 - var(--letter-reveal, 0)) * 14px));
}
.clu-title h2::before,
.clu-title h2::after {
  display: none;
}
.clu-introducing {
  color: #ffe8d5;
  letter-spacing: 0.4em;
}
.clu-word > span small {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, calc(-50% + (1 - var(--clu-meaning, 0)) * 10px));
  font:
    500 clamp(10px, 1.4vw, 19px)/1.4 Manrope,
    sans-serif;
  letter-spacing: 0.06em;
  color: #fff4e8;
  background: #120b08e8;
  padding: 0.35em 0.6em;
  border-radius: 3px;
  white-space: nowrap;
  text-shadow: 0 0 12px #ff812955;
  opacity: var(--clu-meaning, 0);
  clip-path: inset(0 calc((1 - var(--clu-meaning, 0)) * 50%) 0);
}
@media (prefers-reduced-motion: reduce) {
  .clu-word > span {
    filter: none;
  }
}

/* The same initials travel into a three-line, full-name composition. */
.clu-title h2 {
  width: min(900px, 88vw);
}
.clu-word {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(250px, 32vw, 440px);
  font-size: clamp(100px, 19vw, 250px);
  padding: 0;
  letter-spacing: -0.055em;
}
.clu-word > span {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: clamp(100px, 19vw, 250px);
  line-height: 1;
  transform-origin: left center;
  transform: translate(
      calc(var(--start-x) * (1 - var(--unfold, 0))),
      calc(var(--row-y) * var(--unfold, 0))
    )
    scale(calc(1 - var(--unfold, 0) * 0.64));
}
.clu-word > span:nth-child(1) {
  --start-x: 17%;
  --row-y: 0px;
}
.clu-word > span:nth-child(2) {
  --start-x: 0%;
  --row-y: clamp(86px, 10vw, 135px);
}
.clu-word > span:nth-child(3) {
  --start-x: 0%;
  --row-y: clamp(172px, 20vw, 270px);
}
.clu-word > span b {
  font: inherit;
}
.clu-word > span small {
  position: static;
  display: inline-block;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
  transform: none;
  text-shadow: inherit;
  opacity: var(--unfold, 0);
  clip-path: inset(0 calc((1 - var(--unfold, 0)) * 100%) 0 0);
}
.clu-word > span:nth-child(1) {
  left: calc(18% * (1 - var(--unfold, 0)));
  --start-x: 0%;
}
.clu-word > span:nth-child(2) {
  left: calc(43% * (1 - var(--unfold, 0)));
}
.clu-word > span:nth-child(3) {
  left: calc(63% * (1 - var(--unfold, 0)));
}
.clu-introducing {
  text-align: left;
}

/* Actual glyph contours draw into the space opened by the moving initials. */
.nyx-chapter {
  height: 850svh;
}
.clu-title h2 {
  width: min(1250px, 92vw);
}
.clu-lettering {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 12px #ff8a2330);
}
.clu-glyph {
  fill: #fffaf4;
  stroke: #fffaf4;
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clu-glyph.remainder {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill-opacity: 0;
  opacity: 0;
}
.clu-introducing {
  text-align: center;
  margin-bottom: 12px;
}

.clu-introducing {
  transform: translateY(
    calc(
      (1 - var(--clu-title, 0)) * 24px + var(--clu-intro-lower, 0) *
        clamp(24px, 5vw, 68px)
    )
  );
}
@media (prefers-reduced-motion: reduce) {
  .clu-introducing {
    transform: none;
  }
}

/* Track the lettering's top edge as the initials shrink into the full phrase. */
.clu-title h2 {
  container-type: inline-size;
}
.clu-introducing {
  transform: translateY(
    calc((1 - var(--clu-title, 0)) * 24px + var(--clu-intro-lower, 0) * 12cqw)
  );
}
@media (prefers-reduced-motion: reduce) {
  .clu-introducing {
    transform: none;
  }
}

/* The intro becomes the product's masthead, using the same CLU glyphs. */
.nyx-chapter {
  height: 1120svh;
}
.clu-title {
  z-index: 3;
  transform-origin: center;
  transform: translate(
      calc(var(--clu-dock, 0) * (100px - 50vw)),
      calc(var(--clu-dock, 0) * (145px - 50svh))
    )
    scale(calc(1 - var(--clu-dock, 0) * 0.83));
}
.clu-title .clu-introducing {
  opacity: calc(var(--clu-title, 0) * (1 - var(--clu-dock, 0)));
}
#clu-video {
  opacity: calc((1 - var(--clu-page, 0) * 0.92) * var(--clu-film-dim));
}
.clu-caption {
  opacity: calc(1 - var(--clu-dock, 0));
}
.clu-product {
  position: absolute;
  inset: 0;
  padding: 132px max(6vw, 24px) 38px;
  color: #f7f2ec;
  opacity: var(--clu-page, 0);
  transform: translateY(calc((1 - var(--clu-page, 0)) * 35px));
  background:
    radial-gradient(ellipse at 85% 45%, #a6421019, transparent 55%), #08090bf5;
  overflow-y: auto;
}
.clu-product[inert] {
  pointer-events: none;
}
.clu-product-top {
  position: static;
  padding: 0 0 30px 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  font-size: 9px;
  letter-spacing: 2px;
  color: #b4a79a;
}
.clu-product-top > span:first-child {
  line-height: 26px;
}
.clu-product a {
  color: inherit;
  text-decoration: none;
}
.clu-product-top a {
  color: #ffaf73;
}
.clu-product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7vw;
  align-items: center;
  margin-top: 24px;
}
.clu-eyebrow {
  color: #eb9a61;
  font-size: 9px;
  letter-spacing: 2px;
}
.clu-product-copy h3 {
  font:
    500 clamp(32px, 4.2vw, 66px)/1.08 Manrope,
    sans-serif;
  letter-spacing: -0.055em;
  margin: 22px 0;
}
.clu-product-copy h3 em {
  font-style: normal;
  color: #fca464;
}
.clu-product-copy > p {
  color: #aaa7a2;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.8;
  max-width: 420px;
}
.clu-doc-link {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid #e58e4955;
  padding: 18px 0 12px;
  font-size: 12px;
}
.clu-doc-link span {
  color: #ffa96a;
  font-size: 23px;
}
.clu-evidence {
  border: 1px solid #ffffff17;
  border-radius: 18px;
  background: linear-gradient(140deg, #ffffff07, transparent), #101113;
  box-shadow: 0 25px 65px #0005;
  padding: 24px;
}
.clu-evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  letter-spacing: 1px;
}
.clu-evidence-head i {
  display: inline-block;
  height: 5px;
  width: 5px;
  background: #ff9d55;
  border-radius: 50%;
  box-shadow: 0 0 14px #f80;
  margin-right: 7px;
}
.clu-evidence-head small {
  font-size: 8px;
  color: #837b73;
}
.clu-scenarios {
  display: flex;
  gap: 6px;
  margin: 23px 0;
}
.clu-scenarios button {
  flex: 1;
  padding: 10px 6px;
  font-size: 10px;
  border: 1px solid #ffffff10;
  border-radius: 7px;
  color: #999;
}
.clu-scenarios button[aria-pressed="true"] {
  color: #ffc79b;
  background: #ff912014;
  border-color: #ffaa5544;
}
.clu-request small {
  display: block;
  color: #787571;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-bottom: 9px;
}
.clu-request code {
  font-size: 15px;
  color: #e5dfd8;
}
.clu-checks {
  margin: 20px 0;
}
.clu-checks > div {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #ffffff0c;
  font-size: 11px;
  color: #c5beb6;
}
.clu-checks > div > span:first-child {
  color: #706861;
  font-size: 9px;
}
.clu-checks > div > span:last-child {
  margin-left: auto;
  color: #a7bbae;
  font-size: 10px;
}
.clu-verdict {
  display: flex;
  align-items: center;
  gap: 16px;
}
.clu-verdict > span {
  font: 500 22px/1 monospace;
  color: #b9d1bf;
}
.clu-verdict p {
  font-size: 11px;
  line-height: 1.5;
  color: #b4ada4;
}
.is-denied .clu-verdict > span {
  color: #ff986b;
}
.clu-evidence-note {
  font-size: 9px;
  line-height: 1.6;
  color: #817c76;
  margin: 16px 0 0;
}
.clu-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 50px;
  border-top: 1px solid #ffffff14;
  padding-top: 25px;
}
.clu-principles span {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #d3996b;
}
.clu-principles h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0 8px;
}
.clu-principles p {
  font-size: 11px;
  line-height: 1.7;
  color: #898580;
  max-width: 280px;
}
.clu-product-note {
  font-size: 9px;
  color: #77716b;
  margin-top: 24px;
  padding-bottom: 65px;
}
@media (max-width: 700px) {
  .clu-product {
    padding: 125px 24px 70px;
  }
  .clu-product-top {
    padding-left: 100px;
    min-height: 48px;
  }
  .clu-product-top > span {
    display: none;
  }
  .clu-product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .clu-principles {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }
  .clu-product-copy h3 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clu-product {
    transform: none;
  }
}

/* Black takes over behind the acronym's first expansion. */
.clu-title-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--clu-expansion-black, 0);
}

.clu-title .clu-introducing {
  opacity: calc(var(--clu-title, 0) * (1 - var(--clu-intro-exit, 0)));
}

/* A quieter introduction built around the everyday benefit. */
.clu-simple-copy {
  max-width: 850px;
  margin: clamp(25px, 5vh, 70px) auto 0;
  text-align: center;
}
.clu-simple-copy h3 {
  margin: 20px 0 24px;
  font:
    500 clamp(38px, 5.2vw, 76px)/1.08 Manrope,
    sans-serif;
  letter-spacing: -0.055em;
}
.clu-simple-copy h3 em {
  color: #ffb57f;
  font-style: normal;
}
.clu-simple-copy > p {
  max-width: 570px;
  margin: 0 auto;
  color: #b4aea8;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.75;
}
.clu-simple-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
  margin: 36px 0 22px;
  font-size: clamp(13px, 1.4vw, 20px);
}
.clu-simple-flow i {
  font-style: normal;
  color: #796253;
}
.clu-flow-check {
  color: #ffd3b1;
  padding: 14px 22px;
  border: 1px solid #ffa15f38;
  background: #ff8c1910;
  border-radius: 40px;
}
.clu-simple-copy > .clu-simple-detail {
  font-size: 12px;
  max-width: 440px;
  color: #928b85;
}
.clu-simple-copy .clu-doc-link {
  margin-top: 12px;
}
.clu-product-note {
  text-align: center;
  margin-top: 32px;
}
@media (max-width: 700px) {
  .clu-simple-flow {
    gap: 10px;
  }
  .clu-flow-check {
    padding: 12px;
  }
  .clu-simple-copy {
    margin-top: 24px;
  }
}

/* Editorial playground: the visitor inspects suggestions with CLU. */
.clu-product {
  background:
    radial-gradient(ellipse at 20% 80%, #6f341015, transparent 65%), #0b0b0c;
}
.clu-exhibit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  max-width: 1300px;
  margin: 45px auto 0;
  align-items: start;
}
.clu-exhibit-copy {
  align-self: center;
  max-width: 360px;
  padding: 0 0 36px;
}
.clu-exhibit-copy h3 {
  font:
    400 clamp(34px, 3.2vw, 48px)/1.15 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: #e9e5df;
}
.clu-exhibit-copy > p {
  max-width: 33ch;
  font-size: 15px;
  line-height: 1.75;
  color: #a6a29c;
  margin: 0;
}
.clu-permission-example {
  margin: 32px 0 30px;
  padding-left: 18px;
  border-left: 1px solid #e9e5df26;
}
.clu-example-label {
  display: block;
  font-size: 11px;
  color: #888680;
  margin-bottom: 12px;
}
.clu-example-request {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #bcb8b2;
}
.clu-example-result {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #d8c0a8;
}
.clu-example-result svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.clu-project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #c7c3bd;
  font-size: 12px;
  text-decoration: none;
  text-underline-offset: 5px;
}
.clu-project-link > span {
  font-size: 16px;
  color: #a89b8d;
}
.clu-project-link:hover,
.clu-project-link:focus-visible {
  color: #f3eee7;
  text-decoration: underline;
}
.clu-project-link:focus-visible {
  outline: 1px solid #c7c3bd80;
  outline-offset: 6px;
}
.clu-demo {
  margin-top: 6px;
}
.clu-demo-heading {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #d5c4b3;
}
.clu-demo-heading small {
  font-size: 8px;
  color: #756c64;
}
.clu-demo-hint {
  font-size: 12px;
  line-height: 1.6;
  color: #938a82;
  margin: 16px 0 28px;
}
.clu-demo-options button {
  position: relative;
  display: flex;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  border-radius: 0;
  border-top: 1px solid #ffffff1c;
  color: #bbb5ae;
  gap: 24px;
  background: none;
}
.clu-demo-options button:last-child {
  border-bottom: 1px solid #ffffff1c;
}
.clu-demo-number {
  font: 10px monospace;
  color: #93816f;
}
.clu-demo-options button > span:nth-child(2) {
  font:
    400 clamp(18px, 1.8vw, 26px)/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  transition: transform 0.35s ease;
}
.clu-demo-options small {
  display: block;
  font:
    11px/1.5 Manrope,
    sans-serif;
  margin-top: 9px;
  color: #837b73;
  letter-spacing: 0;
}
.clu-demo-options button i {
  margin-left: auto;
  font-style: normal;
  color: #f4b784;
  transition: transform 0.35s;
}
.clu-demo-options button[aria-pressed="true"] {
  color: #fff0df;
}
.clu-demo-options button[aria-pressed="true"] > span:nth-child(2) {
  transform: translateX(8px);
}
.clu-demo-options button[aria-pressed="true"] i {
  transform: rotate(45deg);
}
.clu-demo-answer {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 2px solid #d5b28e;
}
.clu-answer-kicker {
  color: #d5b28e;
  font: 9px monospace;
  letter-spacing: 1.5px;
}
.clu-demo-answer h4 {
  font:
    400 clamp(23px, 2.4vw, 34px)/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
  margin: 14px 0;
}
.clu-demo-answer > p {
  font-size: 12px;
  line-height: 1.8;
  color: #a69c91;
  max-width: 400px;
}
.clu-demo-rule {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}
.clu-demo-rule span {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #776d62;
}
.clu-demo-rule strong {
  font-size: 11px;
  font-weight: 400;
  color: #ddc6af;
}
.clu-demo-answer[data-answer="delete"] {
  border-color: #ff9a63;
}
.clu-demo-disclaimer {
  font-size: 9px;
  line-height: 1.6;
  color: #756c64;
  margin-top: 23px;
}
.clu-cursor-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #ffbd8240;
  background: #251c16e8;
  backdrop-filter: blur(14px);
  border-radius: 7px;
  pointer-events: none;
  opacity: 0;
  font: 9px monospace;
  letter-spacing: 1px;
  color: #ffdbb8;
  transition: opacity 0.2s;
  box-shadow: 0 8px 25px #0004;
}
.clu-cursor-tag.visible {
  opacity: 1;
}
.clu-cursor-tag i {
  width: 4px;
  height: 4px;
  background: #ffc58b;
  border-radius: 50%;
  box-shadow: 0 0 9px #ff8c36;
}
.clu-product-note {
  text-align: left;
  max-width: 1300px;
  margin: 40px auto 0;
}
@media (max-width: 700px) {
  .clu-exhibit {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 15px;
  }
  .clu-exhibit-copy {
    padding-bottom: 0;
  }
  .clu-cursor-tag {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clu-demo-options button > span,
  .clu-demo-options button i {
    transition: none;
  }
  .clu-cursor-tag {
    display: none;
  }
}

.clu-object {
  position: relative;
  min-width: 0;
  height: 480px;
  margin-top: 10px;
}
#clu-object-canvas {
  display: block;
}
.clu-object-labels button {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  align-items: center;
  padding: 0;
  border-radius: 0;
  color: #edd2b5;
  background: none;
  text-align: left;
}
.clu-object-labels button > i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffca93;
  box-shadow:
    0 0 0 5px #ffac4720,
    0 0 16px #ff8c48;
}
.clu-object-labels button > span {
  width: 130px;
  padding: 9px 11px;
  font-size: 11px;
  background: #0b0b0ce8;
  border-radius: 8px;
}
.clu-object-labels button small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #b3a290;
  margin-top: 6px;
}
.clu-object-labels button:hover,
.clu-object-labels button:focus-visible,
.clu-object-labels button.selected {
  opacity: 1 !important;
  z-index: 30 !important;
}
.clu-object-labels button.selected > span {
  box-shadow: 0 0 0 1px #ffb87970;
}
.clu-object-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ffffff13;
  padding-top: 15px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #907e6b;
}
.clu-object-footer button {
  color: #c6ab91;
  font-size: 10px;
  padding: 5px;
}
@media (max-width: 700px) {
  .clu-object {
    height: 400px;
  }
  .clu-object-labels button > span {
    width: 100px;
    font-size: 10px;
    padding: 6px;
  }
  .clu-object-labels button small {
    font-size: 9px;
  }
}

.clu-exhibit {
  grid-template-columns: 0.85fr 1.25fr;
  gap: 5vw;
}
.clu-object {
  height: 580px;
}
.clu-object-labels button > span {
  width: 165px;
  font-size: 15px;
  padding: 11px 13px;
}
.clu-object-labels button small {
  font-size: 12px;
  line-height: 1.55;
}
.clu-product-note {
  font-size: 11px;
  line-height: 1.7;
  max-width: 900px;
}
@media (max-width: 700px) {
  .clu-exhibit {
    grid-template-columns: 1fr;
  }
  .clu-object {
    height: 470px;
  }
  .clu-object-labels button > span {
    width: 115px;
    font-size: 12px;
    padding: 7px;
  }
  .clu-object-labels button small {
    font-size: 11px;
  }
}

.clu-product-top .clu-version {
  display: inline-block;
  color: #e5b38a;
  font: 10px monospace;
  letter-spacing: 1px;
}
.clu-doc-link {
  position: relative;
  overflow: hidden;
  transition: color 0.25s;
}
.clu-doc-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #ffe0b7,
    #ff9d55,
    transparent
  );
  transform: translateX(-110%);
}
.clu-doc-link:hover,
.clu-doc-link:focus-visible {
  color: #ffe0bd;
}
.clu-doc-link:hover::after,
.clu-doc-link:focus-visible::after {
  animation: clu-link-trace 1.6s ease-in-out infinite;
}
.clu-doc-link:hover > span,
.clu-doc-link:focus-visible > span {
  animation: clu-link-arrow 1.6s ease-in-out infinite;
}
@keyframes clu-link-trace {
  0% {
    transform: translateX(-110%);
  }
  80%,
  100% {
    transform: translateX(110%);
  }
}
@keyframes clu-link-arrow {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
  40% {
    transform: translate(5px, -5px);
    opacity: 1;
  }
  55% {
    transform: translate(10px, -10px);
    opacity: 0;
  }
  56% {
    transform: translate(-6px, 6px);
    opacity: 0;
  }
  80% {
    transform: translate(0, 0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clu-doc-link:hover::after,
  .clu-doc-link:focus-visible::after,
  .clu-doc-link:hover > span,
  .clu-doc-link:focus-visible > span {
    animation: none;
  }
}

/* Two arrows trade places without being cropped by the link. */
.clu-doc-link {
  overflow: visible;
}
.clu-doc-link::after {
  clip-path: inset(0);
  transform: none;
  background-size: 250% 100%;
}
.clu-doc-link > span {
  position: relative;
}
.clu-doc-link > span::after {
  content: "↗";
  position: absolute;
  inset: 0;
  opacity: 0;
}
.clu-doc-link:hover > span,
.clu-doc-link:focus-visible > span {
  animation: clu-arrow-out 1.6s ease-in-out infinite;
}
.clu-doc-link:hover > span::after,
.clu-doc-link:focus-visible > span::after {
  animation: clu-arrow-replacement 1.6s ease-in-out infinite;
}
@keyframes clu-link-trace {
  0% {
    background-position: 150% 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80%,
  100% {
    background-position: -50% 0;
    opacity: 0;
  }
}
@keyframes clu-arrow-out {
  0%,
  15% {
    transform: translate(0, 0);
    color: #ffa96a;
  }
  50% {
    transform: translate(12px, -12px);
    color: transparent;
  }
  51%,
  75% {
    transform: translate(0, 0);
    color: transparent;
  }
  100% {
    transform: translate(0, 0);
    color: #ffa96a;
  }
}
@keyframes clu-arrow-replacement {
  0%,
  50% {
    opacity: 0;
    transform: translate(-8px, 8px);
    color: #ffa96a;
  }
  75% {
    opacity: 1;
    transform: translate(0, 0);
    color: #ffa96a;
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
    color: #ffa96a;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clu-doc-link:hover > span,
  .clu-doc-link:focus-visible > span,
  .clu-doc-link:hover > span::after,
  .clu-doc-link:focus-visible > span::after {
    animation: none;
  }
}

.clu-object-labels button > span {
  width: 185px;
}
.clu-object-labels button small {
  line-height: 1.6;
}
.clu-object-footer > span {
  max-width: 65%;
  font-size: 8px;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .clu-object-labels button > span {
    width: 125px;
  }
  .clu-object-labels button small {
    font-size: 10px;
  }
}

.clu-frame-label,
.clu-core-label {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: #ffe0bd;
  font:
    500 14px Manrope,
    sans-serif;
  letter-spacing: 3px;
  text-shadow: 0 0 14px #ff9e4866;
}
.clu-core-label {
  font-size: 12px;
  letter-spacing: 2px;
  background: #120d09c9;
  padding: 5px 7px;
  border-radius: 4px;
}

.clu-core-label {
  color: #ff972f;
  background: transparent;
  padding: 0;
  font-weight: 700;
  text-shadow:
    0 0 8px #ff7b22aa,
    0 0 18px #ff8e4255;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

.clu-frame-label {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff0dc;
  text-shadow: 0 0 16px #ffa35b55;
}

.clu-frame-label {
  color: #ff9a38;
  text-shadow:
    0 0 8px #ff8a36aa,
    0 0 22px #ff721b77,
    0 0 42px #ff6a0033;
}

.clu-core-label {
  width: 80px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 32px;
  letter-spacing: 1px;
}

/* Fracture the checkpoint and clear the stage for Ares. */
.nyx-chapter {
  /* The final viewport overlaps Ares; the transition completes at 9.68 screens. */
  height: 1068svh;
}
.clu-product {
  background: #000;
}

/* Keep projected labels anchored to the canvas when their fade uses a filter. */
.clu-object-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.clu-object-labels button {
  pointer-events: auto;
}

#clu-object-canvas {
  position: absolute;
  pointer-events: none;
  max-width: none;
}
.clu-object {
  overflow: visible;
}

/* The oversized fragment canvas must not create an inner scroll surface. */
.clu-product {
  overflow: clip;
}

/* The wordmark draws along its strokes, with overlapping letter entrances. */
.hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-wordmark path {
  stroke: #fff;
  stroke-width: 19;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: arjia-draw var(--draw-duration) cubic-bezier(0.25, 0.45, 0.45, 1)
    var(--draw-delay) both;
}
@keyframes arjia-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.hero-letter {
  transform-box: fill-box;
  transform-origin: center;
  animation: arjia-scale-wave 1.45s cubic-bezier(0.22, 0.6, 0.3, 1)
    var(--letter-delay) both;
}
@keyframes arjia-scale-wave {
  from {
    transform: translate(var(--letter-spread, 0px), -12px) scale(1.65);
  }
  to {
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-letter {
    animation: none;
    transform: none;
  }
}

/* A restrained light bloom appears only after the lettering settles. */
.hero-brand h1 {
  position: relative;
  isolation: isolate;
}
.hero-wordmark {
  animation: arjia-afterglow 1.6s ease-out 3.5s both;
}
.hero-brand h1::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -8%;
  top: 28%;
  width: 116%;
  height: 43%;
  background: radial-gradient(
    ellipse at center,
    #d3f8ff24 0%,
    #a1e9f00c 43%,
    transparent 72%
  );
  filter: blur(18px);
  transform: rotate(-12deg);
  opacity: 0;
  animation: arjia-light-bloom 2s ease-out 3.5s forwards;
}
@keyframes arjia-afterglow {
  from {
    filter: drop-shadow(0 0 0 #dafaff00);
  }
  to {
    filter: drop-shadow(0 0 5px #dcfaff42) drop-shadow(0 0 19px #b6f3ff21);
  }
}
@keyframes arjia-light-bloom {
  0% {
    opacity: 0;
    transform: translateX(-16px) rotate(-17deg) scaleX(0.85);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
    transform: translateX(0) rotate(-12deg) scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark {
    animation: none;
    filter: drop-shadow(0 0 5px #dcfaff42) drop-shadow(0 0 19px #b6f3ff21);
  }
  .hero-brand h1::after {
    animation: none;
    opacity: 0.7;
  }
}

.hero-brand .hero-description {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 84vw);
  margin: 0;
  text-align: center;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.75;
  color: #d2dfe3;
  text-wrap: pretty;
  text-shadow: 0 2px 18px #0009;
}

.hero-brand .hero-description {
  animation: arjia-description-in 1.25s cubic-bezier(0.22, 0.61, 0.36, 1) 3.45s
    both;
}
@keyframes arjia-description-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand .hero-description {
    animation: none;
  }
}

/* Aperture: the single retained landing interaction. */
.hero-brand .hero-description {
  top: calc(100% - clamp(20px, 2.5vw, 39px) + var(--hero-text-offset, 0px));
  width: min(720px, 86vw);
  pointer-events: auto;
}
.hero-brand h1 {
  translate: 0 var(--hero-logo-offset, 0px);
}
.hero-position-control {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 252px;
  padding: 14px 16px 12px;
  border: 1px solid #d7f5ff20;
  border-radius: 16px;
  background: #101d26eb;
  color: #d9eef3;
  pointer-events: auto;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}
.hero-position-setting + .hero-position-setting {
  margin-top: 16px;
}
.hero-position-control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font:
    500 10px "DM Sans",
    sans-serif;
  letter-spacing: 0.1em;
}
.hero-position-control output {
  font-size: 11px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: #e5faff;
}
.hero-position-control input {
  display: block;
  appearance: none;
  width: 100%;
  height: 24px;
  margin: 7px 0 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.hero-position-control input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: #bde3ea38;
}
.hero-position-control input::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: #bde3ea38;
}
.hero-position-control input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #d4f6f5;
}
.hero-position-control input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #d4f6f5;
}
.hero-position-control input:focus-visible {
  outline: 1px solid #bde3ea80;
  outline-offset: 3px;
  border-radius: 8px;
}
.hero-position-directions {
  display: flex;
  justify-content: space-between;
  color: #adc8d18c;
  font:
    10px "DM Sans",
    sans-serif;
}
.is-scrolled .hero-position-control,
.menu-open .hero-position-control,
body:has(.menu-shell.orb-away) .hero-position-control {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero-position-control {
    top: 100px;
    right: 16px;
    bottom: auto;
    width: 228px;
    padding: 12px 14px 10px;
  }
}
.aperture-stage {
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  cursor: crosshair;
  border-block: 1px solid #c2f3ff17;
  isolation: isolate;
}
.aperture-stage h2 {
  margin: 0;
  font:
    400 clamp(27px, 2.8vw, 43px)/1.13 Manrope,
    sans-serif;
  letter-spacing: -0.06em;
}
.aperture-base {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #73909b;
  mask-image: radial-gradient(
    circle at var(--aperture-x, 0%) var(--aperture-y, 50%),
    transparent max(0px, calc(var(--aperture-radius) - 0.5px)),
    #000 var(--aperture-radius)
  );
}
.aperture-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #d4fff112;
  backdrop-filter: blur(12px);
  clip-path: circle(
    var(--aperture-radius) at var(--aperture-x, 0%) var(--aperture-y, 50%)
  );
  color: #edfff8;
  pointer-events: none;
}
.aperture-reveal > span {
  position: absolute;
  top: calc(50% + 32px);
  font-size: clamp(8px, 1vw, 11px);
  color: #c0e5e0;
}
.aperture-stage:focus-visible {
  outline: 1px solid #b9f7e8;
  outline-offset: 5px;
}
.aperture-stage:focus-visible .aperture-reveal {
  clip-path: inset(0);
  transition: clip-path 0.6s;
}
@media (prefers-reduced-motion: reduce) {
  .aperture-stage:focus-visible .aperture-reveal {
    transition: none;
  }
}

.aperture-stage:focus-visible .aperture-base {
  visibility: hidden;
}

@property --aperture-radius {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
.aperture-stage {
  --aperture-radius: 0px;
  transition: --aperture-radius 0.3s ease-out;
}
.aperture-stage:hover,
.aperture-stage:focus-visible {
  --aperture-radius: 95px;
}
@media (prefers-reduced-motion: reduce) {
  .aperture-stage {
    transition: none;
  }
}

.blank-chapter {
  position: relative;
  min-height: 100svh;
  margin-top: -100svh;
  background: transparent;
  z-index: 4;
  pointer-events: none;
}
body > footer {
  opacity: var(--chapter-ui, 1);
}

@font-face {
  font-family: "Cascadia Mono";
  src: url("./media/fonts/CascadiaMono.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}
.blank-chapter {
  height: 200svh;
  pointer-events: none;
  background: transparent;
}
.ares-title-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  transform: translateY(var(--ares-offset, 0px));
}
.ares-title-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--ares-black, 0);
  pointer-events: none;
}
.ares-type-block {
  position: absolute;
  left: 8vw;
  top: clamp(160px, 23svh, 260px);
  color: #f5f5f5;
  font-family: Menlo, Monaco, "Courier New", monospace;
  opacity: var(--ares-enter, 0);
  transform: scale(calc(0.65 + var(--ares-enter, 0) * 0.35));
  transform-origin: left center;
  filter: blur(calc((1 - var(--ares-enter, 0)) * 12px));
  pointer-events: none;
}
.ares-type-block[data-font="powershell"] {
  font-family: "Cascadia Mono", Consolas, monospace;
}
.ares-type-block.is-visible {
  pointer-events: auto;
}
.ares-type-block h2 {
  font-family: inherit;
  font-size: clamp(76px, 10vw, 150px);
  line-height: 1.2;
  letter-spacing: -0.06em;
  font-weight: 400;
  margin: 10px 0 26px;
  display: flex;
  align-items: baseline;
}
.ares-typed {
  display: inline-flex;
}
.ares-typed > span {
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
}
.has-typed .ares-typed > span {
  animation: ares-letter-type 0.01s steps(1) 0.2s both;
}
.has-typed .ares-typed > span:nth-child(2) {
  animation-delay: 0.4s;
}
.has-typed .ares-typed > span:nth-child(3) {
  animation-delay: 0.58s;
}
.has-typed .ares-typed > span:nth-child(4) {
  animation-delay: 0.79s;
}
.ares-type-caret {
  font-size: 0.7em;
  margin-left: 9px;
  color: #ffffff55;
  animation: ares-cursor-blink 1s steps(1) infinite;
}
.ares-font-options {
  display: flex;
  gap: 8px;
  font-family: Manrope, sans-serif;
}
.ares-font-options button {
  font-size: 11px;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  padding: 8px 14px;
  color: #858585;
}
.ares-font-options button[aria-pressed="true"] {
  color: #fff;
  border-color: #ffffff70;
  background: #ffffff08;
}
@keyframes ares-letter-type {
  to {
    opacity: 1;
    width: 1ch;
  }
}
@keyframes ares-dot-wave {
  0%,
  75%,
  100% {
    opacity: 0.15;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes ares-cursor-blink {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ares-type-block {
    transition: none;
  }
  .ares-type-block.has-typed .ares-typed > span {
    animation: none;
    opacity: 1;
    width: 1ch;
  }
  .ares-type-block.is-visible .ares-loading-dots i,
  .ares-type-caret {
    animation: none;
    opacity: 1;
  }
}

.ares-type-block {
  color: #ff1616;
}
.ares-type-block h2 {
  text-shadow:
    0 0 8px #ff000077,
    0 0 24px #ff000044,
    0 0 48px #ff000022;
}
.ares-type-block h2 {
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.035em;
  gap: 0.45em;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.ares-static-dots {
  letter-spacing: 0.06em;
}
.ares-init {
  font-size: inherit;
  font-weight: 400;
}

/* Apply departure once to the whole scene so its masthead and content stay together. */
.clu-intro {
  transform: translateY(calc((1 - var(--clu-enter, 0)) * 35px))
    scale(calc(1 - var(--clu-depart, 0) * 0.22));
  transform-origin: center;
  filter: blur(
    calc((1 - var(--clu-enter, 0)) * 22px + var(--clu-depart, 0) * 12px)
  );
  opacity: calc(var(--clu-enter, 0) * (1 - var(--clu-depart, 0)));
}
@media (prefers-reduced-motion: reduce) {
  .clu-intro,
  .ares-type-block {
    transform: none;
    filter: none;
  }
}

/* Keep the native video in its own compositor layer during the reveal.
   Only create the section-wide blur surface when Nyx actually exits. */
.chapter-stage > .nyx-sticky:not(.is-exiting) {
  transform: none;
  filter: none;
  border-radius: 0;
}
