.depth-type .case-main,
.depth-type .descent-nav-inner { width: min(90%, 1120px); }
.depth-type .descent-nav {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: blur(15px);
}
.depth-type .descent-nav::after { display: none; }
.depth-type .descent-nav a {
  text-shadow: 0 1px 4px #090d20, 0 0 12px #72bdff00, 0 0 24px #499cff00;
  transition: color .35s ease, text-shadow .45s ease;
}
.depth-type .descent-nav a[aria-current] { box-shadow: none; font-weight: 600; }
.depth-type .descent-nav a:is(:hover, :focus-visible) {
  color: #fff;
  text-shadow: 0 1px 4px #090d20, 0 0 12px #72bdff, 0 0 24px #499cffe0;
}
.depth-type #bastidores { scroll-margin-top: 108px; }

.depth-behind {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  width: min(100%, 920px);
}
.depth-behind figure { margin: 0; }
.depth-split { position: relative; }
.depth-behind :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #101015;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .depth-split {
    --split-edge: calc((1 - var(--split-open, 1)) * 50%);
  }
  .depth-split::before,
  .depth-split::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b5d6ff 24% 76%, transparent);
    opacity: clamp(0, calc((1 - var(--split-open, 1)) * 3.5), .85);
    pointer-events: none;
  }
  .depth-split::before { top: var(--split-edge); }
  .depth-split::after { bottom: var(--split-edge); }
  .depth-split > :is(img, video) { clip-path: inset(var(--split-edge) 0); }
}

.depth-type .descent-hero {
  position: relative;
  display: block;
  padding: clamp(30px, 5vw, 82px) 0 clamp(28px, 4vw, 64px);
}

.depth-type .descent-hero::before,
.depth-type .descent-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -155px;
  inset-inline: min(-5vw, calc((1120px - 100vw) / 2));
  pointer-events: none;
}

.depth-type .descent-hero::before {
  height: clamp(175px, 28vw, 350px);
  background: radial-gradient(ellipse at 53% 0%, #83edff6b, #3bafff30 34%, transparent 72%);
}

.depth-type .descent-hero::after {
  height: clamp(175px, 28vw, 350px);
  background: url('./depth-surface.svg') no-repeat 50% 0 / auto 110%;
  mask-image: linear-gradient(#000 12%, #000b 45%, transparent 94%);
  opacity: .65;
}

.descent-front.descent-transition {
  z-index: 61;
}

.descent-transition-stone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 310vmax;
  height: auto;
  opacity: var(--wipe-opacity, 0);
  filter: grayscale(var(--descent)) brightness(.57) blur(clamp(17px, 3vw, 48px));
  transform: translate3d(-52%, calc(-50% + var(--wipe-y, 75%)), 0)
    rotate(var(--wipe-angle, -28deg));
}

.type-index {
  border-top: 1px solid var(--depth-line);
  padding-top: 10px;
  color: #cbd8ff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.depth-type .type-opening h1 {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 12vw, 168px);
  line-height: .84;
  font-weight: 700;
  letter-spacing: -.044em;
  text-align: left;
  text-transform: uppercase;
  color: #b4cbff;
  pointer-events: none;
}

.depth-type .descent-hero > .descent-film {
  position: relative;
  margin: clamp(14px, 2vw, 28px) 0 0;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 32px 80px #03071888;
}

.type-play {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
.type-play[hidden] { display: none; }

.depth-type .type-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px 36px;
  margin: clamp(18px, 3vw, 32px) 0 0;
}

.depth-type .type-intro p { font-size: clamp(15px, 1.7vw, 19px); }
.depth-type .type-intro .descent-actions { margin: 0; }
.depth-type .descent-actions a { border-radius: 3px; }

.depth-type .case-copy {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  text-align: left;
}
.depth-type .case-copy h2 {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: .96;
}

.depth-type .case-frames { display: block; margin-top: 0; }
.depth-type .case-frames figure { width: min(82%, 920px); border-radius: 6px; }
.depth-type .case-frames figure + figure {
  width: 100%;
  margin: clamp(22px, 4vw, 54px) 0 0;
}
.depth-type .case-frames img { aspect-ratio: auto; object-fit: contain; }

.depth-type .descent-study { width: min(100%, 920px); margin-inline: 0; }
.depth-type .case-next strong { font-size: clamp(54px, 10vw, 154px); }

@media (prefers-reduced-motion: no-preference) {
  .depth-type .type-opening h1,
  .depth-type .type-intro { animation: type-enter .6s ease-out both; }
  .depth-type .type-intro { animation-delay: .08s; }
  .depth-type [data-reveal] { transition: opacity .5s ease, translate .5s ease-out; }
  .depth-type [data-reveal].awaiting-reveal:not(:focus-within) { translate: 0 7px; }
  @keyframes type-enter {
    from { opacity: 0; translate: 0 7px; }
    to { opacity: 1; translate: 0 0; }
  }
}

.depth-glow {
  position: fixed;
  z-index: 60;
  inset: 0 auto auto 0;
}
.depth-trail-bubble {
  position: fixed;
  z-index: 59;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 34% 30%, #e4ffffdf 0 7%, transparent 25%),
              radial-gradient(circle, #6ecfff20 40%, #81e2ff8c 77%, #b5f9ffb0 100%);
  box-shadow: 0 0 7px #62b9ff65;
}
@media (prefers-reduced-motion: reduce) {
  .depth-trail-bubble { display: none; }
  .depth-type .descent-nav a { transition: none; }
}
@media (any-hover: hover) and (any-pointer: fine) {
  .depth-type.glow-active, .depth-type.glow-active :is(a, button) { cursor: none; }
}

@media (max-width: 820px) {
  .depth-type .type-intro { grid-template-columns: 1fr; }
  .depth-type .descent-hero > .descent-film,
  .depth-type .type-intro,
  .depth-type .descent-study { width: 100%; }
}

@media (max-width: 560px) {
  .depth-type .type-opening h1 { font-size: clamp(35px, 15vw, 86px); }
  .depth-type .descent-nav-inner { gap: 0 5px; }
  .depth-type .descent-nav a { font-size: 11px; padding-inline: 3px; }
  .depth-type .case-frames figure { width: 100%; }
}
