:root {
  --handoff-progress: 0;
  --handoff-light-pressure: 0;
  --handoff-glass-retract: 0;
  --handoff-glass-width: min(51vw, 920px);
  --handoff-glass-shift: 0px;
  --handoff-glass-counter-shift: 0px;
  --handoff-light-source-opacity: 0;
  --handoff-light-source-scale: .1;
  --handoff-light-field-opacity: 0;
  --handoff-light-field-scale: .88;
  --handoff-rays-opacity: 0;
  --handoff-rays-scale: .84;
  --handoff-light-scene: 0;
  --handoff-approach-reveal: 0;
  --handoff-scene-opacity: 0;
  --handoff-content-opacity: 0;
  --handoff-hero-exit: 0;
  --handoff-character-fade: 0;
  --handoff-header-dark-feather: 1;
  --handoff-header-light-feather: 0;
}

html.hero-handoff-enabled .hero {
  height: 445svh;
  background: var(--abyss);
}

html.hero-handoff-enabled .hero__sticky {
  contain: layout paint;
  isolation: isolate;
  opacity: 1 !important;
  background: var(--abyss);
}

/* The raster exposure replaces the older fixed radial light layer. */
html.hero-handoff-enabled .site-shell::after {
  display: none !important;
}

html.hero-handoff-enabled .hero__world {
  overflow: hidden;
  background: var(--abyss);
  opacity: 1;
  animation: none !important;
  transform: translateZ(0) !important;
}

/* The proof controller owns the opening state and the complete handoff. */
html.hero-handoff-enabled .hero__world,
html.hero-handoff-enabled .hero__glass,
html.hero-handoff-enabled .hero__glass-character,
html.hero-handoff-enabled .hero__copy > * {
  animation: none !important;
}

html.hero-handoff-enabled .hero__world::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(3 10 11 / .62), transparent 46%),
    linear-gradient(0deg, rgb(3 10 11 / .44), transparent 35%);
  opacity: calc(1 - var(--handoff-light-scene));
}

html.hero-handoff-enabled .hero__atmosphere {
  z-index: 0;
  top: 50%;
  left: 50%;
  width: max(112vw, 112svh);
  height: max(112vw, 112svh);
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: translate3d(
      calc(-50% + var(--handoff-progress) * -2.8vw),
      -50%,
      0
    ) scale(calc(1.04 + var(--handoff-hero-exit) * .18));
  transform-origin: 68% 76%;
  animation: none !important;
}

html.hero-handoff-enabled .hero-handoff__light-source {
  position: absolute;
  z-index: 2;
  top: 80%;
  left: 68%;
  width: 52vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--spirit) 0 28%,
    rgb(248 248 244 / .82) 45%,
    rgb(231 236 234 / .34) 68%,
    transparent 100%
  );
  opacity: var(--handoff-light-source-opacity);
  transform: translate3d(-50%, -50%, 0) scale(var(--handoff-light-source-scale));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

html.hero-handoff-enabled .hero-handoff__rays {
  z-index: 5;
  pointer-events: none;
  opacity: var(--handoff-rays-opacity);
  mix-blend-mode: screen;
  position: absolute;
  inset: -6%;
  overflow: hidden;
  transform: translate3d(calc(var(--handoff-light-pressure) * -3vw), 0, 0)
    scale(var(--handoff-rays-scale));
  transform-origin: 68% 80%;
  will-change: transform, opacity;
}

html.hero-handoff-enabled .hero-handoff__rays::before,
html.hero-handoff-enabled .hero-handoff__rays::after {
  display: none;
}

html.hero-handoff-enabled .hero-handoff__rays img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: blur(3px) brightness(1.08);
}

html.hero-handoff-enabled .hero__character {
  z-index: 4;
  right: 3vw;
  bottom: -3svh;
  width: min(70vw, 1180px);
  height: 108%;
  object-fit: contain;
  object-position: right bottom;
  opacity: calc(1 - var(--handoff-character-fade)) !important;
  filter: none;
  transform: translate3d(0, 0, 0);
  transform-origin: 68% 100%;
}

html.hero-handoff-enabled .hero__stars,
html.hero-handoff-enabled .hero__smoke,
html.hero-handoff-enabled .hero__melt {
  display: none !important;
}

html.hero-handoff-enabled .hero__glass-backdrop {
  display: block !important;
  z-index: 1;
  width: 100vw;
  height: 100%;
  filter: none;
  position: absolute;
  inset: 0;
  overflow: visible;
  transform: translate3d(var(--handoff-glass-counter-shift), 0, 0);
  will-change: transform;
}

html.hero-handoff-enabled .hero-handoff__glass-clip {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

html.hero-handoff-enabled .hero__glass-atmosphere {
  top: 50%;
  left: 50%;
  width: max(112vw, 112svh);
  height: max(112vw, 112svh);
  object-fit: cover;
  object-position: center;
  filter: blur(16px) saturate(.86) brightness(.74);
  transform: translate3d(
      calc(-50% + var(--handoff-progress) * -2.8vw),
      -50%,
      0
    ) scale(calc(1.04 + var(--handoff-hero-exit) * .18));
  transform-origin: 68% 76%;
}

html.hero-handoff-enabled .hero__glass-character {
  right: 3vw;
  bottom: -3svh;
  width: min(70vw, 1180px);
  height: 108%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  opacity: calc(1 - var(--handoff-character-fade)) !important;
  filter: blur(13px) saturate(.78) brightness(.76);
  transform: translate3d(0, 0, 0);
  transform-origin: 68% 100%;
}

html.hero-handoff-enabled .hero__glass {
  z-index: 6;
  width: min(51vw, 920px);
  padding: clamp(120px, 9vw, 170px) clamp(36px, 8vw, 150px);
  overflow: visible;
  border-right: 1px solid rgb(248 248 244 / .2);
  background:
    radial-gradient(circle at 20% 28%, rgb(124 185 181 / .08), transparent 48%),
    linear-gradient(100deg, rgb(7 17 18 / .58), rgb(7 17 18 / .28));
  box-shadow:
    calc(38px + var(--handoff-light-pressure) * 34px) 0
      calc(90px + var(--handoff-light-pressure) * 70px)
      rgb(124 185 181 / calc(.04 + var(--handoff-light-pressure) * .2)),
    38px 0 90px rgb(0 0 0 / .14);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
  backdrop-filter: blur(8px) saturate(108%);
  transform: translate3d(var(--handoff-glass-shift), 0, 0);
  will-change: transform;
  visibility: visible !important;
  clip-path: none !important;
}

html.hero-handoff-enabled .hero__glass::after {
  z-index: 0;
  inset: auto;
  top: 50%;
  left: 100%;
  width: max(58vw, 860px);
  height: 160svh;
  background: radial-gradient(
    ellipse 82% 46% at 0 50%,
    rgb(248 248 244 / .17) 0,
    rgb(220 238 233 / .12) 22%,
    rgb(124 185 181 / .06) 48%,
    transparent 78%
  );
  opacity: calc(var(--handoff-light-pressure) * (1 - var(--handoff-hero-exit)));
  transform: translate3d(
      calc((1 - var(--handoff-light-pressure)) * 8%),
      -50%,
      0
    ) scale(calc(.88 + var(--handoff-light-pressure) * .12));
  transform-origin: left center;
  filter: blur(8px);
  mix-blend-mode: screen;
}

html.hero-handoff-enabled .hero-handoff__edge-glow {
  position: absolute;
  z-index: 2;
  top: -8%;
  right: -5px;
  width: 18px;
  height: 116%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(220 238 233 / .28) 36%,
    rgb(248 248 244 / .92) 72%,
    transparent
  );
  box-shadow:
    8px 0 28px rgb(248 248 244 / .48),
    20px 0 68px rgb(124 185 181 / .35);
  opacity: calc(
    var(--handoff-light-pressure) * (1 - var(--handoff-hero-exit))
  );
  filter: blur(2px);
  transform: translate3d(0, 0, 0) scaleY(
    calc(.92 + var(--handoff-light-pressure) * .08)
  );
  transform-origin: center;
  mix-blend-mode: screen;
  will-change: opacity, transform;
}

html.hero-handoff-enabled .hero__copy {
  width: min(100%, 560px);
  opacity: calc(1 - var(--handoff-light-pressure) * .88);
  transform: translate3d(calc(var(--handoff-light-pressure) * -2.5vw), 0, 0);
}

html.hero-handoff-enabled .hero__copy > * {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

html.hero-handoff-enabled .hero__identity {
  --hero-title-size: clamp(68px, 6.7vw, 112px);
  --hero-title-lines-height: 1.76;
  margin-top: clamp(28px, 4vh, 52px);
}

html.hero-handoff-enabled .hero__identity img {
  width: calc(var(--hero-title-size) * var(--hero-title-lines-height));
  height: calc(var(--hero-title-size) * var(--hero-title-lines-height));
  flex: 0 0 auto;
}

html.hero-handoff-enabled .hero h1 {
  font-size: var(--hero-title-size);
  line-height: .88;
}

html.hero-handoff-enabled .hero__lead {
  max-width: 42ch;
  margin-top: clamp(34px, 4vw, 64px);
  letter-spacing: .02em;
  font-size: clamp(19px, 1.35vw, 22px);
  line-height: 1.55;
}


html.hero-handoff-enabled .hero-kora {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: calc(1 - var(--handoff-character-fade));
}

html.hero-handoff-enabled .hero-kora__trigger {
  appearance: none;
  position: absolute;
  z-index: 1;
  top: 8%;
  right: 0;
  width: min(61vw, 1280px);
  height: 92%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: polygon(31% 0, 100% 0, 100% 100%, 9% 100%, 14% 72%, 24% 42%);
  cursor: default;
  pointer-events: auto;
}

html.hero-handoff-enabled .hero-kora__trigger:focus-visible {
  outline: 0;
  box-shadow: none;
}

html.hero-handoff-enabled .hero-kora__trigger:focus-visible + .hero-kora__card {
  border-color: rgb(124 185 181 / .72);
}

html.hero-handoff-enabled .hero-kora__card {
  position: absolute;
  z-index: 2;
  top: clamp(140px, 18svh, 200px);
  left: calc(min(51vw, 920px) + clamp(24px, 3.4vw, 62px));
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: 14px;
  width: min(250px, 28vw);
  min-height: 0;
  padding: 18px;
  color: var(--spirit);
  border: 1px solid rgb(124 185 181 / .42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(27 61 60 / .84), rgb(7 17 18 / .82));
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
  box-shadow: 0 18px 52px rgb(0 8 9 / .3);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-8px, 8px, 0);
  transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .24s var(--ease);
  pointer-events: none;
  display: grid;
}

html.hero-handoff-enabled .hero-kora.is-open .hero-kora__card {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

html.hero-handoff-enabled .hero-kora__portrait-shell {
  width: 92px;
  height: 92px;
  border: 1px solid rgb(248 248 244 / .34);
  border-radius: 50%;
  background: rgb(7 17 18 / .72);
  overflow: hidden;
  display: block;
}

html.hero-handoff-enabled .hero-kora__portrait {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

html.hero-handoff-enabled .hero-kora__copy,
html.hero-handoff-enabled .hero-kora__kicker,
html.hero-handoff-enabled .hero-kora__name,
html.hero-handoff-enabled .hero-kora__bio {
  display: block;
}

html.hero-handoff-enabled .hero-kora__kicker {
  margin-bottom: 3px;
  color: var(--aura);
  font-family: Manrope, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html.hero-handoff-enabled .hero-kora__name {
  margin-bottom: 4px;
  color: var(--spirit);
  font-family: Newsreader, Georgia, serif;
  font-size: 30px;
  font-weight: 300;
  line-height: .95;
  letter-spacing: 0;
}

html.hero-handoff-enabled .hero-kora__bio {
  color: rgb(248 248 244 / .78);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

html.hero-handoff-enabled .hero-handoff__exposure {
  position: absolute;
  z-index: 15;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--handoff-light-field-opacity);
  transform: scale(var(--handoff-light-field-scale));
  transform-origin: 68% 80%;
  will-change: transform, opacity;
}

html.hero-handoff-enabled .hero-handoff__exposure img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Keep the feather below whichever section is entering the navigation zone. */
html.hero-handoff-enabled .site-nav::before,
html.hero-handoff-enabled .site-nav::after {
  content: none !important;
  display: none !important;
}

html.hero-handoff-enabled .site-nav-feather {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  height: var(--site-nav-feather-height, 148px);
  pointer-events: none;
}

html.hero-handoff-enabled .site-nav-feather::before,
html.hero-handoff-enabled .site-nav-feather::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: none;
}

html.hero-handoff-enabled .site-nav-feather::before {
  background: linear-gradient(#071112f0 0%, #07111294 48%, #07111200 100%);
}

html.hero-handoff-enabled .site-nav-feather::after {
  background: linear-gradient(#f8f8f4f5 0%, #f8f8f4a8 48%, #f8f8f400 100%);
}

html.hero-handoff-enabled .site-nav-feather--dark::before,
html.hero-handoff-enabled .site-nav-feather--light::after {
  opacity: 1;
}

html.hero-handoff-enabled .site-nav-feather--dark::after,
html.hero-handoff-enabled .site-nav-feather--light::before {
  opacity: 0;
}

html.hero-handoff-enabled.is-hero-handoff .site-nav-feather::before {
  opacity: var(--handoff-header-dark-feather);
}

html.hero-handoff-enabled.is-hero-handoff .site-nav-feather::after {
  opacity: var(--handoff-header-light-feather);
}

html.hero-handoff-enabled main > section.is-nav-transitioning {
  z-index: 95 !important;
}

html.hero-handoff-enabled .approach {
  z-index: 3;
  height: 775svh;
  margin-top: -445svh;
}

html.hero-handoff-enabled.is-hero-handoff .approach {
  background: transparent;
  pointer-events: none;
}

html.hero-handoff-enabled .approach__sticky {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  width: 100% !important;
  height: 100svh;
  opacity: var(--handoff-scene-opacity) !important;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
}

html.hero-handoff-enabled.is-hero-handoff .approach__sticky {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  z-index: 3;
  pointer-events: none;
}

/* Keep the incoming scene on one compositor surface throughout the handoff.
   This prevents reverse scrolling from exposing the document for a frame. */
html.hero-handoff-enabled .approach__background {
  transition: none !important;
  transform: translate3d(0, 0, 0) !important;
}

html.hero-handoff-enabled .approach__title,
html.hero-handoff-enabled .approach__rail,
html.hero-handoff-enabled .approach__progress {
  opacity: var(--handoff-content-opacity);
}

html.hero-handoff-enabled .approach__title {
  top: auto;
  right: 0;
  bottom: calc(var(--approach-card-bottom) + var(--approach-card-start-height) + 80px);
  width: 50%;
  padding-inline: clamp(42px, 6vw, 120px);
}

html.hero-handoff-enabled .approach.is-handoff-locked .approach__sticky {
  position: sticky;
  inset: auto;
  top: 0;
  width: auto;
  opacity: 1;
}

html.is-paused.hero-handoff-enabled .hero__atmosphere {
  animation-play-state: paused;
}

@media (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  html.hero-handoff-enabled .hero__glass {
    width: 52vw;
    padding-inline: clamp(40px, 5.5vw, 58px);
  }

  html.hero-handoff-enabled .hero__copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  html.hero-handoff-enabled .hero__identity {
    --hero-title-size: clamp(52px, 6.5vw, 66px);
    gap: clamp(14px, 2vw, 18px);
    max-width: 100%;
  }

  html.hero-handoff-enabled .hero__identity h1 {
    min-width: 0;
    max-width: 100%;
  }

  html.hero-handoff-enabled .approach__title {
    top: clamp(210px, 24vh, 300px);
    right: 0;
    bottom: auto;
    width: 50%;
    padding-inline: 24px;
  }

  html.hero-handoff-enabled .approach__title h2 {
    max-width: 100%;
    font-size: clamp(48px, 6.35vw, 58px);
    line-height: 1;
  }

  html.hero-handoff-enabled .approach__title h2 > span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  html.hero-handoff-enabled .approach-card {
    left: 5vw;
    transform: translate3d(
      calc(var(--distance) * clamp(440px, 54vw, 560px)),
      calc(var(--card-lift) * 1px),
      0
    ) scale(var(--card-scale));
  }

  html.hero-handoff-enabled .approach-card-number {
    left: 5vw;
    bottom: calc(
      var(--approach-card-bottom) + var(--approach-card-height) -
      clamp(82px, 9vw, 112px) + var(--number-rise) * clamp(90px, 11vw, 112px)
    );
    transform: translate3d(
      calc(var(--distance) * clamp(440px, 54vw, 560px)),
      0,
      0
    ) scale(var(--card-scale));
  }

  html.hero-handoff-enabled .hero__character,
  html.hero-handoff-enabled .hero__glass-character {
    bottom: -5svh;
    width: 150vw;
    height: auto;
    max-width: none;
    object-position: right bottom;
  }

  html.hero-handoff-enabled .hero__character {
    right: -16vw;
  }

  html.hero-handoff-enabled .hero__glass-character {
    right: -2vw;
  }

  html.hero-handoff-enabled .hero-kora__trigger {
    top: 7%;
    width: 64%;
    height: 93%;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 8% 68%, 16% 38%);
  }

  html.hero-handoff-enabled .hero-kora__card {
    top: clamp(128px, 14svh, 172px);
    left: clamp(28px, 5vw, 48px);
    width: min(360px, 42vw);
  }

  html.hero-handoff-enabled .project-scene {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  html.hero-handoff-enabled .project-scene__copy,
  html.hero-handoff-enabled .project-scene__feature {
    width: 100%;
    min-width: 0;
  }

  html.hero-handoff-enabled .project-scene__copy h2 > span {
    white-space: normal;
  }

  html.hero-handoff-enabled .project-scene__parallels-lockup,
  html.hero-handoff-enabled .project-scene__clearwire-animation {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  html.hero-handoff-enabled .hero {
    height: 390svh;
  }

  html.hero-handoff-enabled .approach {
    height: 730svh;
    margin-top: -390svh;
  }

  html.hero-handoff-enabled .approach__title {
    top: 12vh;
    right: 22px;
    bottom: auto;
    width: auto;
    padding-inline: 0;
    transform: translate3d(
      0,
      calc(var(--approach-mobile-title-shift, 0) * -34vh),
      0
    );
    will-change: transform;
  }

  html.hero-handoff-enabled .approach__title h2 {
    max-width: calc(100vw - 44px);
    font-size: clamp(34px, 12.5vw, 54px);
    line-height: 1;
  }

  html.hero-handoff-enabled .approach__title h2 > span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  html.hero-handoff-enabled .hero__identity {
    --hero-title-size: clamp(46px, 13.2vw, 68px);
    --hero-title-lines-height: 1.8;
  }

  html.hero-handoff-enabled .hero__character {
    right: 50%;
    bottom: -7svh;
    width: min(138vw, 620px);
    height: auto;
    object-position: center bottom;
    transform: translate3d(50%, 0, 0);
  }

  html.hero-handoff-enabled .hero__glass-character {
    right: 50%;
    bottom: -7svh;
    width: min(138vw, 620px);
    height: auto;
    z-index: 2;
    object-position: center bottom;
    filter: blur(10px) saturate(.8) brightness(.76);
    transform: translate3d(50%, 0, 0);
  }

  html.hero-handoff-enabled .hero__glass-atmosphere {
    z-index: 1;
  }

  html.hero-handoff-enabled .hero__copy {
    z-index: 3;
  }

  html.hero-handoff-enabled .hero__glass {
    width: 100%;
    padding: 128px 22px max(48px, env(safe-area-inset-bottom));
    align-items: flex-end;
    border-top: 0;
    border-right: 0;
    background:
      linear-gradient(to top, rgb(7 17 18 / .78), rgb(7 17 18 / .14) 76%),
      linear-gradient(100deg, rgb(7 17 18 / .58), rgb(7 17 18 / .08));
    -webkit-backdrop-filter: blur(10px) saturate(108%);
    backdrop-filter: blur(10px) saturate(108%);
  }

  html.hero-handoff-enabled .hero__glass::after {
    display: none;
  }

  html.hero-handoff-enabled .hero-handoff__edge-glow {
    display: block;
    right: -4px;
    width: 14px;
    box-shadow:
      6px 0 22px rgb(248 248 244 / .48),
      16px 0 52px rgb(124 185 181 / .34);
  }

  html.hero-handoff-enabled .hero h1 {
    font-size: clamp(46px, 13.2vw, 68px);
    line-height: .9;
  }

  html.hero-handoff-enabled .hero__lead {
    max-width: 34ch;
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.5;
  }

  html.hero-handoff-enabled .hero__actions {
    align-items: flex-start;
    gap: 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
  }

  html.hero-handoff-enabled .hero__actions .text-link {
    min-height: 44px;
    padding-block: 10px;
  }

  html.hero-handoff-enabled .hero__actions .text-link--quiet {
    margin-left: 0;
  }

  html.hero-handoff-enabled .hero-kora__trigger {
    top: 7%;
    right: 0;
    width: 100%;
    height: 72%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%, 8% 72%, 12% 34%);
  }

  html.hero-handoff-enabled .hero-kora__card {
    top: max(96px, calc(env(safe-area-inset-top) + 76px));
    right: 18px;
    left: 18px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    width: auto;
    min-height: 94px;
    padding: 14px 16px 14px 14px;
  }

  html.hero-handoff-enabled .hero-kora__portrait-shell {
    width: 64px;
    height: 64px;
  }

  html.hero-handoff-enabled .hero-kora__bio {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.hero-handoff-enabled .hero {
    height: 100svh;
  }

  html.hero-handoff-enabled .approach {
    height: 430svh;
    margin-top: 0;
  }

  html.hero-handoff-enabled .hero__atmosphere {
    animation: none;
  }

  html.hero-handoff-enabled .hero-kora__card {
    transition: none;
  }
}

/* The compact index shares one layout system across tablets and phones. */
@media (width <= 980px) {
  html.hero-handoff-enabled .site-nav.is-open {
    min-height: 92px;
    color: var(--spirit);
    justify-content: space-between;
    padding: max(14px, env(safe-area-inset-top)) clamp(24px, 4vw, 38px) 0;
  }

  html.hero-handoff-enabled .site-nav.is-open::before,
  html.hero-handoff-enabled .site-nav.is-open::after {
    opacity: 0;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__brand {
    z-index: 4;
    height: 17px;
    min-height: 17px;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__wordmark {
    height: 17px;
    min-height: 17px;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__wordmark--light {
    opacity: 1;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__wordmark--dark {
    opacity: 0;
  }

  html.hero-handoff-enabled .site-nav__toggle {
    margin-left: auto;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__toggle {
    z-index: 4;
    width: 52px;
    height: 52px;
    color: var(--spirit);
    border: 1px solid rgb(124 185 181 / .7);
    border-radius: 50%;
    padding: 13px;
    box-shadow: 0 0 0 4px rgb(124 185 181 / .13);
    transition:
      border-color .25s ease,
      background-color .25s ease,
      box-shadow .25s ease;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__toggle:hover,
  html.hero-handoff-enabled .site-nav.is-open .site-nav__toggle:focus-visible {
    background: rgb(124 185 181 / .12);
    border-color: var(--aura);
    box-shadow: 0 0 0 5px rgb(124 185 181 / .2);
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__toggle > span:not(.sr-only) {
    width: 23px;
  }

  html.hero-handoff-enabled .site-nav__links {
    height: 100dvh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, clamp(390px, 54vw, 500px)) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(20px, 3vh, 34px) clamp(24px, 4vw, 48px);
    padding:
      calc(max(14px, env(safe-area-inset-top)) + 96px)
      clamp(24px, 4vw, 38px)
      max(30px, env(safe-area-inset-bottom));
    background-color: #071112;
    background-image:
      linear-gradient(90deg, rgb(7 17 18 / .98) 0%, rgb(7 17 18 / .91) 44%, rgb(7 17 18 / .36) 76%, rgb(7 17 18 / .16) 100%),
      linear-gradient(180deg, rgb(7 17 18 / .08) 58%, rgb(7 17 18 / .58) 100%),
      url("./dist/client/site/navigation/menu-atmosphere.avif");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html.hero-handoff-enabled .site-nav__masked-control {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    max-width: 470px;
    margin-top: clamp(28px, 6.5vh, 82px);
  }

  html.hero-handoff-enabled .site-nav__viewport {
    width: 100%;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  html.hero-handoff-enabled .site-nav__step {
    display: none;
  }

  html.hero-handoff-enabled .site-nav__track {
    counter-reset: mobile-section;
    width: 100%;
    gap: 2px;
    padding: 0;
    display: grid;
    transform: none !important;
  }

  html.hero-handoff-enabled .site-nav__track > a {
    counter-increment: mobile-section;
    color: rgb(248 248 244 / .68);
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    min-height: clamp(56px, 6.5vh, 68px);
    padding: 3px 0;
    font-family: Newsreader, Georgia, serif;
    font-size: clamp(36px, 5.1vw, 46px);
    font-weight: 300;
    line-height: .94;
    letter-spacing: 0;
    white-space: normal;
    display: grid;
    opacity: 0;
    transform: translateY(-9px);
    transition:
      color .28s ease,
      opacity .38s var(--ease),
      transform .46s var(--ease);
  }

  html.hero-handoff-enabled .site-nav__track > a::before {
    content: "0" counter(mobile-section);
    color: rgb(124 185 181 / .64);
    letter-spacing: .14em;
    font-family: Manrope, sans-serif;
    font-size: 8px;
    font-weight: 650;
  }

  html.hero-handoff-enabled .site-nav__track > a::after {
    content: "\2198";
    color: rgb(248 248 244 / .32);
    background: none;
    width: 24px;
    height: 24px;
    place-items: center;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 300;
    display: grid;
    position: static;
    transform: none;
    transition: color .28s ease, transform .28s var(--ease);
  }

  html.hero-handoff-enabled .site-nav__track > a:hover,
  html.hero-handoff-enabled .site-nav__track > a:focus-visible,
  html.hero-handoff-enabled .site-nav__track > a.is-active {
    color: var(--spirit);
  }

  html.hero-handoff-enabled .site-nav__track > a:hover::after,
  html.hero-handoff-enabled .site-nav__track > a:focus-visible::after {
    color: var(--aura);
    transform: translate(3px, 3px);
  }

  html.hero-handoff-enabled .site-nav__track > a.is-active::before,
  html.hero-handoff-enabled .site-nav__track > a.is-active::after {
    color: var(--aura);
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__track > a {
    opacity: 1;
    transform: translateY(0);
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__track > a:nth-child(1) {
    transition-delay: .05s;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__track > a:nth-child(2) {
    transition-delay: .08s;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__track > a:nth-child(3) {
    transition-delay: .11s;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__track > a:nth-child(4) {
    transition-delay: .14s;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__track > a:nth-child(5) {
    transition-delay: .17s;
  }

  html.hero-handoff-enabled .site-nav .site-nav__resume {
    color: var(--spirit);
    background: linear-gradient(180deg, rgb(50 92 84 / .54), rgb(124 185 181 / .23));
    border: 1px solid rgb(248 248 244 / .28);
    border-radius: 8px;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    width: 100%;
    max-width: 470px;
    min-height: 64px;
    margin: 0;
    padding: 9px 12px 9px 22px;
    font-size: 10px;
    opacity: 1;
    -webkit-backdrop-filter: blur(16px) saturate(118%);
    backdrop-filter: blur(16px) saturate(118%);
    box-shadow: 0 16px 42px rgb(0 0 0 / .22);
    transition:
      background-color .28s ease,
      border-color .28s ease,
      transform .28s var(--ease);
    display: grid;
  }

  html.hero-handoff-enabled .site-nav .site-nav__resume:hover,
  html.hero-handoff-enabled .site-nav .site-nav__resume:focus-visible {
    background-color: rgb(124 185 181 / .2);
    border-color: rgb(248 248 244 / .58);
    transform: translateY(-2px);
  }

  html.hero-handoff-enabled .site-nav .site-nav__resume span {
    color: var(--spirit);
    border: 1px solid rgb(248 248 244 / .3);
    border-radius: 50%;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 16px;
    display: grid;
  }
}

@media (width <= 600px) {
  html.hero-handoff-enabled .site-nav.is-open {
    min-height: 80px;
    padding: max(10px, env(safe-area-inset-top)) 20px 0;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__brand,
  html.hero-handoff-enabled .site-nav.is-open .site-nav__wordmark {
    height: 13px;
    min-height: 13px;
  }

  html.hero-handoff-enabled .site-nav.is-open .site-nav__toggle {
    width: 46px;
    height: 46px;
    padding: 11px;
  }

  html.hero-handoff-enabled .site-nav__links {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding:
      calc(max(10px, env(safe-area-inset-top)) + 82px)
      20px
      max(20px, env(safe-area-inset-bottom));
    background-image:
      linear-gradient(90deg, rgb(7 17 18 / .97) 0%, rgb(7 17 18 / .86) 58%, rgb(7 17 18 / .42) 100%),
      linear-gradient(180deg, rgb(7 17 18 / .04) 48%, rgb(7 17 18 / .68) 100%),
      url("./dist/client/site/navigation/menu-atmosphere.avif");
    background-position: center;
  }

  html.hero-handoff-enabled .site-nav__masked-control {
    max-width: none;
    margin-top: clamp(4px, 2.4vh, 18px);
  }

  html.hero-handoff-enabled .site-nav__track {
    gap: 0;
  }

  html.hero-handoff-enabled .site-nav__track > a {
    grid-template-columns: 26px minmax(0, 1fr) 22px;
    column-gap: 8px;
    min-height: clamp(48px, 8.2vh, 58px);
    font-size: clamp(32px, 10vw, 39px);
  }

  html.hero-handoff-enabled .site-nav .site-nav__resume {
    grid-column: 1;
    max-width: none;
    min-height: 58px;
    padding-left: 18px;
  }
}

@media (width <= 430px) {
  html.hero-handoff-enabled .project-scene__copy h2 {
    font-size: clamp(28px, 8.8vw, 40px);
    line-height: .98;
  }
}


@media (hover: none), (pointer: coarse), (max-width: 760px) {
  html.hero-handoff-enabled .hero-kora {
    display: none !important;
  }
}
