:root {
  --paper: #e8e6de;
  --paper-bright: #f2f0e9;
  --ink: #161815;
  --mist: #aebcb6;
  --acid: #d9ff57;
  --line: rgba(22, 24, 21, 0.22);
  --serif: "Iowan Old Style", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Avenir Next", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.055;
  pointer-events: none;
}

body.intro-lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  padding: 22px 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition:
    opacity 650ms ease 760ms,
    transform 850ms var(--ease-out) 700ms;
}

.intro-complete .site-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.brand__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
}

.site-nav {
  display: flex;
  gap: 30px;
}

.site-nav a,
.replay-button {
  position: relative;
}

.site-nav a::after,
.replay-button::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease-out);
}

.site-nav a:hover::after,
.replay-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.replay-button {
  display: flex;
  width: max-content;
  align-items: center;
  justify-self: end;
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.intro-complete .replay-button {
  opacity: 1;
  pointer-events: auto;
}

.replay-button__icon {
  font-size: 17px;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -3;
  right: -15vw;
  bottom: -35vh;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: rgba(184, 202, 192, 0.5);
  content: "";
  filter: blur(90px);
}

.hero__wash {
  position: absolute;
  z-index: -2;
  top: 13%;
  left: 50%;
  width: min(78vw, 1120px);
  height: 74%;
  border: 1px solid rgba(22, 24, 21, 0.11);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(0.86);
  transition: opacity 1.5s ease, transform 1.8s var(--ease-out);
}

.hero__wash::before,
.hero__wash::after {
  position: absolute;
  inset: 8%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.hero__wash::after {
  inset: 16%;
}

.intro-complete .hero__wash {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.intro-copy {
  position: absolute;
  z-index: 22;
  pointer-events: none;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(880px, 86vw);
  justify-content: space-between;
  overflow: hidden;
  transform: translate(-50%, -50%);
  transition: opacity 600ms ease;
}

.intro-copy p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 20px);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(130%);
  transition: opacity 750ms ease, transform 950ms var(--ease-out);
}

.intro-copy p:last-child {
  transition-delay: 120ms;
}

.intro-copy.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

.intro-copy.is-leaving {
  opacity: 0;
}

.intro-copy.is-leaving p {
  transform: translateY(-130%);
}

.memory-field {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.memory-card {
  --mx: 0px;
  --my: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(220px, 23vw, 340px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #c8c9c3;
  box-shadow: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.02);
  transition:
    transform 800ms var(--ease-out),
    opacity 350ms ease;
  transition-delay: calc(var(--i) * 70ms);
}

.intro-running .memory-card {
  will-change: transform, opacity;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 550ms ease, transform 900ms var(--ease-out);
}

.intro-reset .memory-card,
.intro-reset .site-header,
.intro-reset .hero__content,
.intro-reset .hero__wash,
.intro-reset .entry-portal,
.intro-reset .entry-portal::before,
.intro-reset .entry-portal__label,
.intro-reset .intro-copy,
.intro-reset .intro-copy p {
  transition: none !important;
}

.cards-stacked .memory-card {
  z-index: calc(8 + var(--i));
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cards-scattered .memory-card {
  z-index: 8;
  opacity: 0.88;
  transform:
    translate(calc(-50% + var(--x) + var(--mx)), calc(-50% + var(--y) + var(--my)))
    rotate(var(--r)) scale(var(--s));
  transition-duration: 1150ms, 500ms;
  transition-delay: calc(var(--i) * 34ms);
}

.intro-complete .memory-field {
  pointer-events: auto;
}

.intro-complete .memory-card {
  transition-delay: 0ms;
}

.intro-complete .memory-card:hover {
  z-index: 18;
  opacity: 1;
  filter: saturate(1.15);
}

.intro-complete .memory-card:hover img {
  transform: scale(1.06);
}

.entry-portal {
  position: absolute;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  background: rgba(242, 240, 233, 0.97);
  clip-path: circle(0% at 50% 52%);
  opacity: 0;
  pointer-events: none;
}

.entry-portal::before,
.entry-portal__ring {
  position: absolute;
  top: 52%;
  left: 50%;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 24, 21, 0.34);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.entry-portal__ring {
  width: min(24vw, 320px);
}

.entry-portal__label {
  position: absolute;
  top: 52%;
  left: 50%;
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.home-entering .entry-portal {
  clip-path: circle(21% at 50% 52%);
  opacity: 1;
  transition: clip-path 720ms var(--ease-out), opacity 120ms ease;
}

.home-entering .entry-portal::before,
.home-entering .entry-portal__ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 450ms ease 120ms, transform 720ms var(--ease-out);
}

.home-entering .entry-portal__ring {
  transition-delay: 190ms;
}

.home-entering .entry-portal__label {
  opacity: 1;
  transition: opacity 350ms ease 260ms;
}

.home-entering.intro-complete .entry-portal {
  clip-path: circle(100% at 50% 52%);
  opacity: 0;
  transition: clip-path 1150ms var(--ease-out), opacity 440ms ease 760ms;
}

.home-entering.intro-complete .entry-portal::before,
.home-entering.intro-complete .entry-portal__ring {
  opacity: 0;
  transform: translate(-50%, -50%) scale(4.2);
  transition: transform 1050ms var(--ease-out), opacity 380ms ease 620ms;
}

.home-entering.intro-complete .entry-portal__label {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.08);
  transition: opacity 260ms ease, transform 500ms var(--ease-out);
}

.hero__content {
  position: relative;
  z-index: 12;
  display: flex;
  width: min(920px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 88px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(48% 0 48% 0);
  filter: blur(10px);
  transform: translateY(30px) scale(0.965);
  transition:
    opacity 820ms ease 180ms,
    transform 1150ms var(--ease-out) 120ms,
    clip-path 1150ms var(--ease-out) 120ms,
    filter 900ms ease 120ms;
}

.intro-complete .hero__content {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.eyebrow {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin: 0 0 30px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  margin: 0;
  flex-direction: column;
  font-family: var(--serif);
  font-size: clamp(66px, 9.1vw, 136px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero-title__offset {
  align-self: flex-end;
}

.hero h1 i {
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0;
}

.hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero__footer > p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
}

.round-link {
  display: flex;
  width: 108px;
  height: 108px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  gap: 5px;
  transition: background 350ms ease, color 350ms ease, transform 350ms var(--ease-out);
}

.round-link:hover {
  background: var(--ink);
  color: var(--paper-bright);
  transform: rotate(-6deg);
}

.round-link__arrow {
  font-size: 17px;
}

.skip-button {
  position: absolute;
  z-index: 32;
  right: 28px;
  bottom: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: opacity 350ms ease;
}

.intro-complete .skip-button {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  z-index: 16;
  bottom: 22px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 700ms ease 900ms, transform 700ms var(--ease-out) 900ms;
}

.scroll-cue i {
  position: relative;
  width: 46px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--ink);
  content: "";
  animation: scroll-line 1.8s ease-in-out infinite;
  transform: translateX(-100%);
}

.intro-complete .scroll-cue {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll-line {
  55%, 100% { transform: translateX(105%); }
}

.section-shell {
  padding-right: clamp(24px, 4vw, 64px);
  padding-left: clamp(24px, 4vw, 64px);
}

.section-index {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.manifesto {
  padding-top: clamp(110px, 14vw, 210px);
  padding-bottom: clamp(120px, 16vw, 240px);
  background: var(--paper-bright);
}

.manifesto__body {
  display: grid;
  margin-top: 8vw;
  grid-template-columns: minmax(140px, 0.7fr) 2.4fr;
  column-gap: 6vw;
}

.kicker {
  margin: 10px 0 0;
  font-size: 12px;
}

.manifesto h2 {
  max-width: 1100px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5.1vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.manifesto__aside {
  display: grid;
  margin-top: 9vw;
  grid-column: 2;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
}

.manifesto__aside p {
  max-width: 470px;
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.manifesto__aside a {
  align-self: end;
  justify-self: end;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

.programs {
  padding-top: 32px;
  padding-bottom: clamp(110px, 12vw, 180px);
  background: #202520;
  color: #eff0e8;
}

.section-index--light {
  border-color: rgba(239, 240, 232, 0.25);
}

.programs__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 9vw 0 6vw;
}

.programs__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(45px, 7vw, 98px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.programs__heading p {
  margin: 0 0 8px;
  font-size: 12px;
  opacity: 0.62;
}

.program-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
}

.program-card {
  position: relative;
  display: flex;
  min-height: min(590px, 64vw);
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 26px;
  background: #333a34;
}

.program-card > *:not(img, .program-card__shade, .program-card__orb) {
  position: relative;
  z-index: 2;
}

.program-card > p {
  margin: 0 auto auto 0;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.program-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 400;
}

.program-card > span {
  max-width: 330px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.72;
}

.program-card--image > img,
.program-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.program-card__shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(11, 19, 14, 0.82));
}

.program-card--image:hover > img {
  transform: scale(1.045);
}

.program-card--ink {
  background: #b9c7bf;
  color: #172019;
}

.program-card__orb {
  position: absolute;
  z-index: 0;
  top: 16%;
  left: 50%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 32, 25, 0.45);
  border-radius: 50%;
  opacity: 1 !important;
  transform: translateX(-50%);
}

.program-card__orb::before,
.program-card__orb::after {
  position: absolute;
  inset: 12%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.program-card__orb::after {
  inset: 24%;
}

.program-card--mist {
  background: #d8d2c2;
  color: #1c211d;
}

.program-card--mist img {
  width: calc(100% + 52px);
  max-width: none;
  height: 45%;
  margin: 28px -26px -26px;
  object-fit: cover;
  filter: saturate(0.55);
}

.invitation {
  display: flex;
  min-height: 84vh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: var(--acid);
  text-align: center;
}

.invitation > p {
  margin: 0 0 38px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.invitation blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 104px);
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.invitation a {
  margin-top: 55px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

.site-footer {
  display: grid;
  padding-top: 7vw;
  padding-bottom: 34px;
  background: #161815;
  color: #eeeee7;
  grid-template-columns: 1fr auto;
}

.site-footer p {
  margin: 0 0 20px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
}

.footer-mail {
  align-self: end;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8vw;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.08em;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px;
  }

  .site-nav {
    display: none;
  }

  .hero__content {
    width: calc(100% - 36px);
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(53px, 16.2vw, 78px);
    line-height: 0.96;
  }

  .hero-title__offset {
    align-self: flex-start;
  }

  .hero h1 i {
    display: block;
    margin: 12px 0 5px;
    font-size: 0.35em;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .hero__footer {
    margin-top: 26px;
  }

  .hero__footer > p {
    max-width: 220px;
    font-size: 12px;
  }

  .round-link {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    font-size: 10px;
  }

  .skip-button {
    right: 18px;
    bottom: 18px;
  }

  .scroll-cue {
    display: none;
  }

  .intro-copy {
    top: 44%;
    flex-direction: column;
    align-items: center;
    gap: 9px;
  }

  .memory-card {
    width: min(58vw, 250px);
  }

  .entry-portal::before {
    width: 64vw;
  }

  .entry-portal__ring {
    width: 43vw;
  }

  .cards-scattered .memory-card {
    opacity: 0.72;
  }

  .memory-card:nth-child(1) { --x: -43vw !important; --y: -37vh !important; --s: .29 !important; }
  .memory-card:nth-child(2) { --x: -13vw !important; --y: -42vh !important; --s: .24 !important; }
  .memory-card:nth-child(3) { --x: 37vw !important; --y: -34vh !important; --s: .29 !important; }
  .memory-card:nth-child(4) { --x: -38vw !important; --y: -15vh !important; --s: .27 !important; }
  .memory-card:nth-child(5) { --x: 42vw !important; --y: -12vh !important; --s: .23 !important; }
  .memory-card:nth-child(6) { --x: 47vw !important; --y: 10vh !important; --s: .25 !important; }
  .memory-card:nth-child(7) { --x: -44vw !important; --y: 11vh !important; --s: .24 !important; }
  .memory-card:nth-child(8) { --x: 40vw !important; --y: 32vh !important; --s: .28 !important; }
  .memory-card:nth-child(9) { --x: -43vw !important; --y: 34vh !important; --s: .27 !important; }
  .memory-card:nth-child(10) { --x: -18vw !important; --y: 42vh !important; --s: .22 !important; }
  .memory-card:nth-child(11) { --x: 15vw !important; --y: 43vh !important; --s: .23 !important; }
  .memory-card:nth-child(12) { --x: 46vw !important; --y: 46vh !important; --s: .22 !important; }
  .memory-card:nth-child(13) { --x: 15vw !important; --y: -45vh !important; --s: .21 !important; }
  .memory-card:nth-child(14) { --x: 44vw !important; --y: 23vh !important; --s: .22 !important; }

  .manifesto__body {
    display: block;
    margin-top: 70px;
  }

  .manifesto h2 {
    margin-top: 34px;
  }

  .manifesto__aside {
    display: block;
    margin-top: 75px;
  }

  .manifesto__aside a {
    display: inline-block;
    margin-top: 38px;
  }

  .programs__heading {
    display: block;
    padding: 90px 0 50px;
  }

  .programs__heading p {
    margin-top: 25px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 118vw;
  }

  .invitation {
    min-height: 72vh;
  }

  .site-footer {
    display: block;
    padding-top: 90px;
  }

  .footer-mail {
    display: inline-block;
    margin-top: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

.draw-journey {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.draw-journey > section {
  position: relative;
  z-index: 1;
}

.draw-journey > section > * {
  position: relative;
  z-index: 3;
}

.draw-scroll-svg {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.draw-scroll-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  visibility: hidden;
  opacity: 0.72;
}

.draw-scroll-svg--mobile {
  display: none;
}

.draw-path-fallback .draw-scroll-svg path {
  visibility: visible;
  opacity: 0.22;
}

@media (max-width: 767px) {
  .draw-scroll-svg--desktop {
    display: none;
  }

  .draw-scroll-svg--mobile {
    display: block;
  }

  .draw-scroll-svg path {
    stroke-width: 1.8;
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw-scroll-svg path {
    visibility: visible;
    opacity: 0.2;
  }
}

/* Depth gallery homepage — adapted from the interaction model of Codrops Depth Gallery. */
.depth-gallery {
  --depth-bg: #e5e6df;
  --depth-blob-1: #b9d1d4;
  --depth-blob-2: #f2d8a4;
  --depth-velocity: 0;
  --depth-progress: 0%;
  position: absolute;
  z-index: 11;
  inset: 0;
  overflow: hidden;
  background: var(--depth-bg);
  clip-path: circle(0% at 50% 52%);
  opacity: 0;
  outline: none;
  pointer-events: none;
  transition:
    clip-path 1250ms var(--ease-out) 90ms,
    opacity 520ms ease 90ms;
}

.intro-complete .depth-gallery {
  clip-path: circle(100% at 50% 52%);
  opacity: 1;
  pointer-events: auto;
}

.intro-complete .memory-field {
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease 120ms;
}

.intro-reset .depth-gallery,
.intro-reset .memory-field {
  transition: none !important;
}

.depth-gallery__atmosphere {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 26% 54%, color-mix(in srgb, var(--depth-blob-1) 78%, transparent) 0, transparent 38%),
    radial-gradient(circle at 76% 38%, color-mix(in srgb, var(--depth-blob-2) 70%, transparent) 0, transparent 42%),
    var(--depth-bg);
  filter: brightness(calc(1 + var(--depth-velocity) * 0.08));
  transform: scale(calc(1 + var(--depth-velocity) * 0.025));
  transition: filter 120ms linear;
}

.depth-gallery__atmosphere::after {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.2;
}

.depth-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.depth-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 31vw, 470px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.depth-plane--landscape {
  width: clamp(350px, 42vw, 640px);
  aspect-ratio: 1.28 / 1;
}

.depth-plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.015 + var(--depth-velocity) * 0.025));
  transition: transform 160ms linear;
}

.depth-plane.is-current img {
  filter: saturate(1.04) contrast(1.01);
}

.depth-trail {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.depth-trail path {
  fill: none;
  stroke: color-mix(in srgb, var(--depth-blob-1) 68%, var(--ink));
  stroke-dasharray: 0.18 0.82;
  stroke-dashoffset: var(--trail-offset, 0);
  stroke-linecap: round;
  stroke-width: 0.26;
  vector-effect: non-scaling-stroke;
  opacity: calc(0.16 + var(--depth-velocity) * 0.5);
  transition: stroke 300ms ease, opacity 200ms linear;
}

.depth-label {
  position: absolute;
  z-index: 6;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.depth-label--left {
  top: 45%;
  left: 7vw;
  width: min(230px, 19vw);
  transform: translateY(-50%);
}

.depth-label__index {
  display: block;
  margin-bottom: 16px;
  font-size: 9px;
}

.depth-label--left h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.1vw, 62px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
  text-transform: none;
}

.depth-label--left p {
  margin: 16px 0 18px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.7;
  text-transform: none;
}

.depth-label__chip {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--depth-blob-1);
  transition: background 280ms ease;
}

.depth-label--right {
  top: 44%;
  right: 7vw;
  display: grid;
  width: min(250px, 19vw);
  margin: 0;
  gap: 6px;
  transform: translateY(-50%);
}

.depth-label--right > div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
}

.depth-label--right dt,
.depth-label--right dd {
  margin: 0;
}

.depth-label--right dt {
  opacity: 0.56;
}

.depth-progress {
  position: absolute;
  z-index: 7;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.depth-progress i {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(22, 24, 21, 0.22);
}

.depth-progress b {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.depth-instruction,
.depth-continue {
  position: absolute;
  z-index: 7;
  bottom: 48px;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.depth-instruction {
  left: 28px;
}

.depth-instruction span {
  font-weight: 700;
}

.depth-continue {
  right: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 450ms ease, transform 550ms var(--ease-out);
}

.depth-gallery.is-at-end .depth-continue {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.depth-gallery.is-at-end .depth-instruction {
  opacity: 0.35;
}

@media (max-width: 760px) {
  .depth-stage {
    perspective: 780px;
  }

  .depth-plane {
    width: min(68vw, 300px);
  }

  .depth-plane--landscape {
    width: min(82vw, 360px);
  }

  .depth-label--left {
    top: auto;
    right: 18px;
    bottom: 86px;
    left: 18px;
    width: auto;
    transform: none;
  }

  .depth-label__index {
    margin-bottom: 8px;
  }

  .depth-label--left h1 {
    font-size: 46px;
  }

  .depth-label--left p {
    max-width: 220px;
    margin: 8px 0 12px;
    font-size: 11px;
  }

  .depth-label--right {
    display: none;
  }

  .depth-instruction,
  .depth-continue {
    bottom: 45px;
    font-size: 8px;
  }

  .depth-instruction {
    left: 18px;
  }

  .depth-continue {
    right: 18px;
    max-width: 155px;
    text-align: right;
  }

  .depth-progress {
    right: 18px;
    bottom: 22px;
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-trail {
    display: none;
  }

  .depth-plane {
    will-change: auto;
  }
}
