@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Inter:wght@300;400;500&display=swap");

:root {
  color: #f5f5f2;
  background: #050608;
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050608;
}

body {
  cursor: grab;
}

body:active {
  cursor: grabbing;
}

body:has(.memory-detail.is-visible) {
  cursor: default;
}

body:has(.password-gate) {
  cursor: default;
}

.password-gate {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: #f5f5f2;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(174, 184, 214, 0.055), transparent 28%),
    radial-gradient(ellipse at 34% 62%, rgba(216, 184, 111, 0.028), transparent 34%),
    radial-gradient(ellipse at 74% 24%, rgba(64, 74, 102, 0.042), transparent 32%),
    linear-gradient(180deg, #050608, #030405 78%);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.65, 0, 0.35, 1);
}

.password-gate.is-leaving {
  opacity: 0;
  transform: scale(1.018);
}

.gate-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 24%, rgba(246, 210, 122, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 18%, rgba(245, 245, 242, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 72%, rgba(174, 184, 214, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 76%, rgba(246, 210, 122, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 51% 34%, rgba(245, 245, 242, 0.18) 0 1px, transparent 2px);
  opacity: 0.72;
  animation: gate-star-drift 9s ease-in-out infinite;
}

.gate-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(88vw, 380px);
  padding: 2px;
  transform: translateY(-1vh);
}

.password-gate.is-error .gate-panel {
  animation: gate-error 0.42s ease;
}

.gate-number {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(76px, 12vw, 132px);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: 0.045em;
  color: rgba(245, 245, 242, 0.92);
  text-shadow:
    0 0 34px rgba(216, 184, 111, 0.18),
    0 0 72px rgba(174, 184, 214, 0.08);
}

.gate-kicker {
  margin: 28px 0 34px;
  color: rgba(245, 245, 242, 0.62);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.gate-input {
  width: min(100%, 300px);
  height: 46px;
  border: 1px solid rgba(216, 184, 111, 0.28);
  border-radius: 999px;
  outline: none;
  color: rgba(245, 245, 242, 0.9);
  background: rgba(5, 6, 8, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(245, 245, 242, 0.05),
    0 18px 58px rgba(0, 0, 0, 0.34);
  font: 300 18px Inter, system-ui, sans-serif;
  letter-spacing: 0.24em;
  text-align: center;
  transition: border-color 0.34s ease, box-shadow 0.34s ease, background 0.34s ease;
}

.gate-input:focus {
  border-color: rgba(216, 184, 111, 0.54);
  background: rgba(5, 6, 8, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(245, 245, 242, 0.06),
    0 0 28px rgba(216, 184, 111, 0.09),
    0 18px 58px rgba(0, 0, 0, 0.36);
}

.gate-enter {
  appearance: none;
  margin-top: 18px;
  padding: 11px 22px;
  border: 1px solid rgba(216, 184, 111, 0.38);
  border-radius: 999px;
  color: rgba(245, 245, 242, 0.82);
  background: rgba(5, 6, 8, 0.22);
  font: 400 11px Inter, system-ui, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.32s ease, color 0.32s ease, box-shadow 0.32s ease, transform 0.32s ease;
}

.gate-enter:hover,
.gate-enter:focus-visible {
  border-color: rgba(216, 184, 111, 0.66);
  color: rgba(245, 245, 242, 0.96);
  box-shadow: 0 0 26px rgba(216, 184, 111, 0.12);
  transform: translateY(-1px);
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 184, 111, 0.2) rgba(3, 4, 5, 0.72);
  background:
    radial-gradient(ellipse at 50% 46%, rgba(174, 184, 214, 0.052), transparent 25%),
    radial-gradient(ellipse at 30% 62%, rgba(191, 160, 131, 0.026), transparent 32%),
    radial-gradient(ellipse at 75% 24%, rgba(64, 74, 102, 0.045), transparent 34%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.52), #030405 76%);
}

.app-shell::-webkit-scrollbar {
  width: 7px;
}

.app-shell::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(3, 4, 5, 0.88), rgba(5, 6, 8, 0.7));
}

.app-shell::-webkit-scrollbar-thumb {
  border: 2px solid rgba(3, 4, 5, 0.78);
  border-radius: 999px;
  background: rgba(216, 184, 111, 0.18);
}

.app-shell::-webkit-scrollbar-thumb:hover {
  background: rgba(231, 199, 161, 0.28);
}

.scene-layer {
  position: absolute;
  inset: 0;
}

.scene-layer::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at center, transparent 34%, rgba(5, 6, 8, 0.46) 76%, rgba(3, 4, 5, 0.9) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(5, 6, 8, 0.24) 60%, rgba(3, 4, 5, 0.78) 100%),
    linear-gradient(90deg, rgba(3, 4, 5, 0.64), transparent 20%, transparent 80%, rgba(3, 4, 5, 0.64));
  mix-blend-mode: normal;
}

.memory-active .scene-layer {
  filter: saturate(0.62) brightness(0.5);
  transition: filter 1.2s ease;
}

.secret-active .scene-layer {
  filter: saturate(0.46) brightness(0.34);
  transition: filter 1.35s ease;
}

.memory-active.app-shell {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.watch-progress {
  position: fixed;
  top: 18vh;
  right: 18px;
  z-index: 8;
  width: 1px;
  height: 64vh;
  pointer-events: none;
  background: rgba(245, 245, 242, 0.045);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.watch-progress.is-visible {
  opacity: 0.38;
}

.watch-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--progress));
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(216, 184, 111, 0.46), rgba(216, 184, 111, 0.055));
  transition: transform 0.35s ease;
}

.chapter-hud {
  position: fixed;
  top: 50%;
  right: 30px;
  z-index: 9;
  display: grid;
  gap: 13px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.chapter-hud.is-visible {
  opacity: 0.36;
  pointer-events: auto;
}

.chapter-hud.is-visible:hover,
.chapter-hud.is-visible:focus-within {
  opacity: 0.62;
}

.chapter-hud button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 18px;
  padding: 4px 0;
  border: 0;
  color: rgba(245, 245, 242, 0.32);
  background: transparent;
  font: 400 10px Inter, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.chapter-dot {
  order: 2;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(216, 184, 111, 0.18);
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.72);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.chapter-hud button.is-secret-marker .chapter-dot {
  width: 4px;
  height: 4px;
  border-color: rgba(245, 245, 242, 0.16);
  background: rgba(245, 245, 242, 0.06);
  box-shadow: none;
}

.chapter-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: max-width 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
}

.chapter-hud:hover .chapter-label,
.chapter-hud button:focus-visible .chapter-label {
  max-width: 92px;
  opacity: 1;
  transform: translateX(0);
}

.chapter-hud button.is-secret-marker .chapter-label,
.chapter-hud:hover button.is-secret-marker .chapter-label,
.chapter-hud button.is-secret-marker:focus-visible .chapter-label {
  max-width: 0;
  opacity: 0;
}

.chapter-hud button:hover,
.chapter-hud button.is-active {
  color: rgba(245, 245, 242, 0.66);
}

.chapter-hud button:hover .chapter-dot,
.chapter-hud button.is-active .chapter-dot {
  border-color: rgba(216, 184, 111, 0.48);
  background: rgba(216, 184, 111, 0.18);
  box-shadow: 0 0 14px rgba(216, 184, 111, 0.09);
  transform: scale(1.08);
}

.chapter-hud button.is-secret-marker:hover .chapter-dot {
  border-color: rgba(216, 184, 111, 0.26);
  background: rgba(216, 184, 111, 0.12);
  box-shadow: 0 0 10px rgba(216, 184, 111, 0.08);
  transform: scale(1.08);
}

.opening-copy,
.universe-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  color: #f5f5f2;
}

.opening-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 2.8vh, 34px);
  padding-top: clamp(26px, 4.4vw, 58px);
}

.brandline {
  position: static;
  transform: translateY(0);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 1.76vw, 27px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.11em;
  text-align: center;
  opacity: 0.74;
  white-space: nowrap;
  text-shadow:
    0 0 18px rgba(245, 245, 242, 0.12),
    0 0 34px rgba(216, 184, 111, 0.08);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.brandline span,
.together-days span,
.scene-number span {
  display: block;
  text-align: center;
}

.brandline span:first-child,
.scene-number span:first-child,
.together-days span:first-child {
  white-space: nowrap;
}

.brandline span:nth-child(2) {
  margin-top: 7px;
  color: rgba(245, 245, 242, 0.42);
  font-family: Inter, sans-serif;
  font-size: clamp(9px, 0.78vw, 12px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 14px rgba(245, 245, 242, 0.1),
    0 0 28px rgba(174, 184, 214, 0.07);
}

.brandline span:nth-child(3) {
  margin-top: 5px;
  color: rgba(231, 199, 161, 0.42);
  font-family: Inter, sans-serif;
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 14px rgba(231, 199, 161, 0.12),
    0 0 30px rgba(216, 184, 111, 0.08);
}

.together-days {
  position: static;
  transform: translateY(0);
  color: rgba(245, 245, 242, 0.48);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 14px rgba(245, 245, 242, 0.1),
    0 0 28px rgba(216, 184, 111, 0.06);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.together-days span + span {
  margin-top: 5px;
  color: rgba(174, 184, 214, 0.4);
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 12px rgba(174, 184, 214, 0.12),
    0 0 26px rgba(216, 184, 111, 0.05);
}

.origin-hint {
  position: absolute;
  bottom: clamp(34px, 7vh, 72px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.76);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.origin-hint::after {
  display: block;
  width: 1px;
  height: 28px;
  margin: 14px auto 0;
  content: "";
  background: linear-gradient(180deg, rgba(246, 210, 122, 0), rgba(246, 210, 122, 0.74));
  animation: hint-drift 2.8s ease-in-out infinite;
}

.opening-copy.is-universe .brandline {
  opacity: 0;
  transform: translateY(-12px);
}

.opening-copy.is-universe .together-days {
  opacity: 0;
  transform: translateY(-10px);
}

.opening-copy.is-universe .origin-hint {
  opacity: 0;
  transform: translate(-50%, 14px);
}

.scene-number {
  position: absolute;
  top: clamp(24px, 4vw, 46px);
  left: clamp(24px, 4vw, 52px);
  max-width: min(320px, 74vw);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 2.1vw, 31px);
  font-weight: 300;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.scene-number span + span {
  margin-top: 8px;
  color: rgba(231, 199, 161, 0.48);
  font-family: Inter, sans-serif;
  font-size: clamp(10px, 0.86vw, 12px);
  font-weight: 300;
  letter-spacing: 0.18em;
}

.universe-instruction {
  position: absolute;
  bottom: clamp(28px, 5vw, 56px);
  left: 50%;
  width: min(80vw, 520px);
  transform: translate(-50%, 10px);
  color: rgba(245, 245, 242, 0.58);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.8;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.universe-copy.is-visible .scene-number,
.universe-copy.is-visible .universe-instruction {
  opacity: 1;
  transform: translate(0, 0);
}

.universe-copy.is-visible .universe-instruction {
  transform: translate(-50%, 0);
}

.memory-active .universe-copy {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.secret-active .universe-copy {
  opacity: 0;
  transition: opacity 1s ease;
}

.memory-detail {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 72px);
  color: #f5f5f2;
  pointer-events: none;
  opacity: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
  transition: opacity 0.42s ease;
}

.memory-detail.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.memory-detail.is-returning {
  opacity: 0;
}

.memory-passing-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.memory-passing-particles::before,
.memory-passing-particles::after {
  position: absolute;
  width: 2px;
  height: 2px;
  content: "";
  border-radius: 50%;
  background: rgba(216, 184, 111, 0.38);
  box-shadow:
    24vw 12vh 0 rgba(216, 184, 111, 0.16),
    52vw 42vh 0 rgba(174, 184, 214, 0.12),
    82vw 66vh 0 rgba(245, 245, 242, 0.1);
  opacity: 0;
  transform: translate3d(-12vw, 8vh, 120px);
}

.memory-detail.is-visible .memory-passing-particles::before {
  animation: particle-pass-a 6.6s ease-in-out 0.3s infinite;
}

.memory-detail.is-visible .memory-passing-particles::after {
  animation: particle-pass-b 8.2s ease-in-out 1.4s infinite;
}

.memory-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(300px, 0.82fr);
  gap: clamp(22px, 4vw, 54px);
  width: min(1040px, 92vw);
  min-height: min(620px, 74vh);
  padding: clamp(18px, 2.6vw, 32px);
  overflow: visible;
  background:
    radial-gradient(circle at 18% 16%, rgba(245, 245, 242, 0.012), transparent 30%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.18), rgba(5, 6, 8, 0.08));
  border: 0;
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(245, 245, 242, 0.035);
  transform:
    translate3d(calc(var(--origin-x) - 50vw), calc(var(--origin-y) - 50vh), -220px)
    rotateX(4deg)
    rotateY(-6deg)
    scale(0.28);
  transform-style: flat;
  transform-origin: center;
  opacity: 0;
  pointer-events: auto;
  contain: layout paint;
  will-change: opacity, transform;
  transition: opacity 0.46s ease, transform 0.78s cubic-bezier(0.65, 0, 0.35, 1);
}

.memory-card::before,
.memory-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.memory-card::before {
  background:
    linear-gradient(90deg, rgba(216, 184, 111, 0.24) 0 42px, transparent 42px calc(100% - 42px), rgba(216, 184, 111, 0.24) calc(100% - 42px)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(216, 184, 111, 0.14) 0 34px, transparent 34px calc(100% - 34px), rgba(216, 184, 111, 0.14) calc(100% - 34px)) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(216, 184, 111, 0.24) 0 42px, transparent 42px calc(100% - 42px), rgba(216, 184, 111, 0.14) calc(100% - 42px)) left / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(216, 184, 111, 0.24) 0 42px, transparent 42px calc(100% - 42px), rgba(216, 184, 111, 0.14) calc(100% - 42px)) right / 1px 100% no-repeat;
  opacity: 0.58;
}

.memory-card::after {
  top: 50%;
  right: 0;
  bottom: auto;
  left: 46%;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 184, 111, 0.1), rgba(216, 184, 111, 0.025), transparent);
  opacity: 0.46;
}

.memory-detail.is-visible .memory-card {
  opacity: 1;
  transform:
    translate3d(0, 0, 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    scale(1);
}

.memory-detail.is-returning .memory-card {
  transform:
    translate3d(calc(var(--origin-x) - 50vw), calc(var(--origin-y) - 50vh), -220px)
    rotateX(5deg)
    rotateY(-8deg)
    scale(0.26);
  opacity: 0;
}

.memory-image-frame {
  position: relative;
  z-index: 2;
  justify-self: center;
  align-self: center;
  width: min(100%, 560px);
  max-height: min(58vh, 640px);
  aspect-ratio: 4 / 3;
  padding: 9px;
  background: linear-gradient(135deg, rgba(231, 226, 216, 0.9), rgba(183, 176, 163, 0.82));
  border: 1px solid rgba(245, 245, 242, 0.18);
  box-shadow:
    16px 22px 62px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(216, 184, 111, 0.07);
  transform: rotateZ(-1deg) rotateY(-0.7deg) rotateX(0.6deg) scale(0.86);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 0.38s ease 0.02s, transform 0.72s cubic-bezier(0.65, 0, 0.35, 1) 0.02s;
}

.memory-detail.is-visible .memory-image-frame {
  opacity: 1;
  transform: rotateZ(-1deg) rotateY(-0.7deg) rotateX(0.6deg) scale(1);
}

.memory-image-frame::before {
  position: absolute;
  inset: 10px -8px -10px 12px;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(231, 199, 161, 0.08), transparent 32%),
    rgba(14, 12, 10, 0.68);
  opacity: 0.72;
  transform: translateZ(0);
}

.memory-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(58vh, 640px);
  object-fit: cover;
  filter: contrast(1) saturate(0.94) brightness(0.92);
  transform: translateZ(0);
}

.memory-copy {
  position: relative;
  z-index: 10;
  align-self: center;
  max-width: 40em;
  justify-self: center;
  padding: 4px 0;
  transform: translateX(18px);
  opacity: 0;
  pointer-events: auto;
  will-change: opacity, transform;
  transition: opacity 0.42s ease 0.08s, transform 0.58s cubic-bezier(0.65, 0, 0.35, 1) 0.08s;
}

.memory-copy::before {
  display: block;
  width: min(100%, 280px);
  height: 1px;
  margin: 0 0 24px;
  content: "";
  background: linear-gradient(90deg, rgba(216, 184, 111, 0.24), transparent);
}

.section-kicker {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  color: rgba(231, 199, 161, 0.62);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.6;
  text-transform: uppercase;
}

.section-kicker span + span {
  color: rgba(174, 184, 214, 0.48);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: none;
}

.memory-detail.is-visible .memory-copy {
  opacity: 1;
  transform: translateX(0);
}

.memory-date {
  margin: 0 0 18px;
  color: rgba(231, 199, 161, 0.76);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.memory-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(34px, 3.9vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  color: rgba(245, 245, 242, 0.94);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.memory-location {
  display: inline-flex;
  margin: 18px 0 28px;
  padding: 6px 10px;
  border: 1px solid rgba(174, 184, 214, 0.15);
  border-radius: 999px;
  color: rgba(174, 184, 214, 0.66);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(174, 184, 214, 0.025);
}

.memory-story {
  margin: 0 0 34px;
  max-width: 38em;
  color: rgba(245, 245, 242, 0.78);
  font-size: clamp(14px, 1.34vw, 17px);
  font-weight: 300;
  line-height: 2;
}

.memory-back {
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(216, 184, 111, 0.28);
  border-radius: 0;
  padding: 10px 0;
  color: rgba(245, 245, 242, 0.72);
  background: transparent;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 40;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow: 0 0 0 rgba(216, 184, 111, 0);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.memory-back:hover {
  color: rgba(245, 245, 242, 0.9);
  border-color: rgba(216, 184, 111, 0.62);
  background: transparent;
  box-shadow: 0 10px 24px -20px rgba(216, 184, 111, 0.38);
  transform: translateY(-1px);
}

.memory-back:active {
  color: rgba(245, 245, 242, 0.96);
  border-color: rgba(216, 184, 111, 0.78);
  transform: translateY(0);
}

.memory-timeline {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  margin-top: 100vh;
  padding: clamp(136px, 20vh, 214px) clamp(22px, 6vw, 88px) clamp(164px, 20vh, 236px);
  color: #f5f5f2;
  background:
    radial-gradient(ellipse at 76% 18%, rgba(174, 184, 214, 0.038), transparent 30%),
    radial-gradient(ellipse at 24% 58%, rgba(216, 184, 111, 0.026), transparent 36%),
    linear-gradient(180deg, rgba(5, 6, 8, 0), #050608 12%, #030405 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.memory-timeline.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.timeline-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease 0.12s, transform 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.12s;
}

.memory-timeline.is-visible .timeline-inner {
  opacity: 1;
  transform: translateY(0);
}

.timeline-header {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(260px, 1fr);
  gap: clamp(22px, 5vw, 72px);
  margin-bottom: clamp(112px, 17vh, 188px);
  padding-top: 18px;
  border-top: 1px solid rgba(216, 184, 111, 0.12);
}

.timeline-header p {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  color: rgba(231, 199, 161, 0.5);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.timeline-header p span + span,
.daily-header p span + span {
  color: rgba(174, 184, 214, 0.48);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: none;
}

.timeline-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(42px, 6.3vw, 86px);
  font-weight: 300;
  line-height: 0.92;
  color: rgba(245, 245, 242, 0.84);
}

.heading-cn {
  display: block;
  margin-top: 18px;
  color: rgba(231, 199, 161, 0.52);
  font-family: Inter, sans-serif;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.8;
}

.timeline-list {
  display: grid;
  gap: clamp(116px, 18.5vh, 208px);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 72px);
  padding-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid rgba(216, 184, 111, 0.085);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline-item:focus-visible {
  outline: 1px solid rgba(216, 184, 111, 0.36);
  outline-offset: 12px;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-date-block {
  display: grid;
  align-content: start;
  gap: 12px;
  color: rgba(245, 245, 242, 0.48);
}

.timeline-year {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 300;
  line-height: 0.9;
}

.timeline-date {
  color: rgba(231, 199, 161, 0.46);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.timeline-work {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(240px, 0.58fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
}

.timeline-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 8px;
  background: linear-gradient(135deg, rgba(231, 226, 216, 0.86), rgba(178, 171, 160, 0.76));
  border: 1px solid rgba(245, 245, 242, 0.12);
  box-shadow:
    16px 28px 78px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(216, 184, 111, 0.032);
  transform: rotateZ(-0.55deg);
  animation: timeline-image-float 7.2s ease-in-out infinite;
}

.timeline-item-2 .timeline-image-frame {
  aspect-ratio: 5 / 3.45;
  transform: rotateZ(0.45deg);
}

.timeline-item-3 .timeline-image-frame {
  aspect-ratio: 3.4 / 4.25;
}

.timeline-item-4 .timeline-image-frame {
  aspect-ratio: 1 / 1;
  width: min(86%, 460px);
}

.timeline-item-5 .timeline-image-frame {
  aspect-ratio: 4.6 / 3;
  transform: rotateZ(-0.25deg);
}

.timeline-image-frame::before {
  position: absolute;
  inset: 10px -7px -9px 11px;
  z-index: -1;
  content: "";
  background: rgba(14, 12, 10, 0.62);
  opacity: 0.48;
}

.timeline-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.84) brightness(0.86);
}

.timeline-copy {
  max-width: 390px;
}

.timeline-location {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid rgba(174, 184, 214, 0.14);
  border-radius: 999px;
  color: rgba(174, 184, 214, 0.62);
  background: rgba(174, 184, 214, 0.026);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-copy h2 {
  margin: 0 0 22px;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 300;
  line-height: 0.98;
  color: rgba(245, 245, 242, 0.88);
}

.timeline-copy p:last-child {
  margin: 0;
  color: rgba(245, 245, 242, 0.66);
  font-size: clamp(14px, 1.28vw, 16px);
  font-weight: 300;
  line-height: 1.95;
}

.daily-gallery {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: clamp(112px, 16vh, 176px) clamp(22px, 7vw, 110px) clamp(150px, 20vh, 220px);
  color: #f5f5f2;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(174, 184, 214, 0.03), transparent 32%),
    radial-gradient(ellipse at 80% 52%, rgba(216, 184, 111, 0.022), transparent 34%),
    linear-gradient(180deg, #030405, #050608 42%, #030405 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.daily-gallery.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.daily-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease 0.14s, transform 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.14s;
}

.daily-gallery.is-visible .daily-inner {
  opacity: 1;
  transform: translateY(0);
}

.daily-header {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(260px, 1fr);
  gap: clamp(22px, 5vw, 72px);
  margin-bottom: clamp(88px, 13vh, 150px);
  border-top: 1px solid rgba(216, 184, 111, 0.14);
  padding-top: 18px;
}

.daily-header p {
  display: grid;
  gap: 7px;
  margin: 0;
  color: rgba(231, 199, 161, 0.58);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.daily-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 300;
  line-height: 0.92;
  color: rgba(245, 245, 242, 0.9);
}

.daily-masonry {
  column-count: 3;
  column-gap: clamp(46px, 6vw, 88px);
}

.daily-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(78px, 10vw, 132px);
  break-inside: avoid;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.65, 0, 0.35, 1), filter 0.8s ease;
}

.daily-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.daily-item:hover {
  transform: translateY(-5px);
}

.daily-item:focus-visible {
  outline: 1px solid rgba(216, 184, 111, 0.54);
  outline-offset: 10px;
}

.daily-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.35;
  background: rgba(245, 245, 242, 0.035);
  box-shadow:
    16px 28px 82px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(216, 184, 111, 0.028);
  overflow: hidden;
  animation: daily-image-float 8.4s ease-in-out infinite;
}

.daily-item-2 .daily-image-frame,
.daily-item-6 .daily-image-frame {
  aspect-ratio: 5.4 / 3.6;
}

.daily-item-3 .daily-image-frame {
  aspect-ratio: 1 / 1.05;
}

.daily-item-4 .daily-image-frame {
  aspect-ratio: 3.2 / 4.9;
}

.daily-item-5 .daily-image-frame {
  aspect-ratio: 4.8 / 3.1;
}

.daily-item-7 .daily-image-frame {
  aspect-ratio: 1 / 1.42;
}

.daily-item-1,
.daily-item-5 {
  margin-top: clamp(18px, 4vh, 48px);
}

.daily-item-3,
.daily-item-7 {
  margin-top: clamp(42px, 8vh, 86px);
}

.daily-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.035) saturate(0.82) brightness(0.84);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), filter 0.9s ease;
}

.daily-item:hover .daily-image-frame img {
  transform: scale(1.016);
  filter: contrast(1.045) saturate(0.86) brightness(0.92);
}

.daily-copy {
  padding-top: 16px;
  opacity: 0.68;
  transform: translateY(4px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.daily-item:hover .daily-copy {
  opacity: 1;
  transform: translateY(0);
}

.daily-date {
  margin: 0 0 9px;
  color: rgba(231, 199, 161, 0.6);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.daily-copy h2 {
  margin: 0 0 9px;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(22px, 2.45vw, 34px);
  font-weight: 300;
  line-height: 1;
  color: rgba(245, 245, 242, 0.88);
}

.daily-copy p:last-child {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(245, 245, 242, 0.56);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.ending-scene {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(130px, 18vh, 190px) clamp(22px, 6vw, 88px) clamp(150px, 18vh, 210px);
  overflow: hidden;
  color: #f5f5f2;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(174, 184, 214, 0.04), transparent 30%),
    radial-gradient(ellipse at 50% 62%, rgba(216, 184, 111, 0.025), transparent 34%),
    linear-gradient(180deg, #030405, #050608 42%, #020304 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.ending-scene.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ending-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 28%, rgba(216, 184, 111, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(245, 245, 242, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 68%, rgba(174, 184, 214, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 76%, rgba(216, 184, 111, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 58%, rgba(245, 245, 242, 0.09) 0 1px, transparent 2px);
  opacity: 0.38;
  animation: ending-dust-drift 12s ease-in-out infinite;
}

.ending-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 720px;
  text-align: center;
}

.ending-heading {
  display: grid;
  gap: 8px;
  margin: 0 0 clamp(28px, 5vh, 48px);
  color: rgba(231, 199, 161, 0.58);
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1.6;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
}

.ending-heading strong {
  color: rgba(245, 245, 242, 0.68);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: none;
}

.ending-scene.is-visible .ending-heading {
  animation: ending-line-in 1.55s ease 0.18s forwards;
}

.ending-inner p {
  margin: 0 0 20px;
  color: rgba(245, 245, 242, 0.74);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(14px);
}

.ending-scene.is-visible .ending-inner p {
  animation: ending-line-in 1.65s ease forwards;
  animation-delay: calc(0.38s + var(--line-index) * 0.56s);
}

.ending-mark {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: clamp(34px, 7vh, 74px);
  color: rgba(245, 245, 242, 0.9);
  opacity: 0;
  transform: translateY(12px);
}

.ending-scene.is-visible .ending-mark {
  animation: ending-line-in 1.55s ease 2.2s forwards;
}

.ending-transform-dust {
  position: absolute;
  top: 42%;
  left: 50%;
  width: clamp(190px, 26vw, 360px);
  height: clamp(70px, 9vw, 118px);
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 48%, rgba(216, 184, 111, 0.26) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 34%, rgba(245, 245, 242, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 62%, rgba(216, 184, 111, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 38%, rgba(174, 184, 214, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 58%, rgba(216, 184, 111, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 42%, rgba(245, 245, 242, 0.14) 0 1px, transparent 2px);
  opacity: 0;
  filter: blur(0.2px);
  transform: translate(-50%, -50%) scale(0.74);
}

.ending-scene.is-visible .ending-transform-dust {
  animation: ending-transform-dust 6.4s ease-in-out 2.55s infinite;
}

.ending-number,
.ending-infinity {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(74px, 13vw, 156px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-shadow: 0 0 44px rgba(216, 184, 111, 0.1);
}

.ending-number {
  animation: ending-number-fade 6.4s ease-in-out 2.55s infinite;
}

.ending-arrow {
  margin: 18px 0 12px;
  color: rgba(216, 184, 111, 0.52);
  font-size: 22px;
  line-height: 1;
  animation: ending-arrow-breathe 5.6s ease-in-out infinite;
}

.ending-infinity {
  color: rgba(216, 184, 111, 0.76);
  opacity: 0.18;
  animation: ending-infinity-rise 6.4s ease-in-out 2.55s infinite;
}

.secret-room {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f5f5f2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(174, 184, 214, 0.02), transparent 24%),
    radial-gradient(ellipse at 50% 54%, rgba(216, 184, 111, 0.012), transparent 34%),
    rgba(1, 2, 3, 0.84);
  transition: opacity 1.1s ease;
}

.secret-room.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.secret-room.is-leaving {
  opacity: 0;
}

.secret-starfield,
.secret-wormhole {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.secret-starfield {
  background:
    radial-gradient(circle at 18% 22%, rgba(216, 184, 111, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(174, 184, 214, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 68%, rgba(245, 245, 242, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 74%, rgba(216, 184, 111, 0.09) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 36%, rgba(245, 245, 242, 0.08) 0 1px, transparent 2px);
  opacity: 0.28;
  animation: secret-star-drift 12s ease-in-out infinite;
}

.secret-wormhole {
  opacity: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(216, 184, 111, 0.075) 35px 36px, transparent 38px 72px),
    radial-gradient(circle at 50% 50%, rgba(174, 184, 214, 0.16), rgba(216, 184, 111, 0.08) 18%, transparent 42%);
  transform: scale(0.18) rotate(0deg);
}

.secret-room.is-entering .secret-wormhole {
  animation: secret-wormhole-enter 1.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.secret-room.is-leaving .secret-wormhole {
  animation: secret-wormhole-leave 1.05s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.secret-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(250px, 0.72fr);
  gap: clamp(24px, 4.2vw, 52px);
  align-items: center;
  width: min(880px, 86vw);
  min-height: min(500px, 68vh);
  padding: clamp(18px, 2.7vw, 32px);
  border: 1px solid rgba(216, 184, 111, 0.11);
  background:
    radial-gradient(ellipse at 26% 20%, rgba(245, 245, 242, 0.012), transparent 28%),
    rgba(3, 4, 5, 0.26);
  box-shadow:
    0 34px 108px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(245, 245, 242, 0.028);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 0.9s ease 0.45s, transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.38s;
}

.secret-card::before,
.secret-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.secret-card::before {
  inset: 14px;
  border: 1px solid rgba(216, 184, 111, 0.038);
  opacity: 0.54;
}

.secret-card::after {
  inset: auto 18% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 184, 111, 0.12), transparent);
}

.secret-room.is-entering .secret-card {
  opacity: 0.18;
  transform: translateY(10px) scale(0.92);
}

.secret-room.is-visible:not(.is-entering) .secret-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.secret-room.is-leaving .secret-card {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition-delay: 0s;
}

.secret-image-frame {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
  aspect-ratio: 4 / 3;
  padding: 8px;
  background: linear-gradient(135deg, rgba(231, 226, 216, 0.82), rgba(176, 169, 158, 0.72));
  border: 1px solid rgba(245, 245, 242, 0.14);
  box-shadow:
    14px 20px 66px rgba(0, 0, 0, 0.52),
    0 0 28px rgba(216, 184, 111, 0.032);
  transform: rotateZ(-0.8deg);
  animation: secret-card-float 7.8s ease-in-out infinite;
}

.secret-image-frame::before {
  position: absolute;
  inset: 10px -7px -9px 11px;
  z-index: -1;
  content: "";
  background: rgba(14, 12, 10, 0.62);
  opacity: 0.68;
}

.secret-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.82) brightness(0.88);
}

.secret-copy {
  align-self: center;
  max-width: 370px;
}

.secret-kicker {
  margin-bottom: 20px;
}

.secret-date {
  margin: 0 0 18px;
  color: rgba(231, 199, 161, 0.72);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.secret-copy h1 {
  margin: 0 0 28px;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 300;
  line-height: 0.94;
  color: rgba(245, 245, 242, 0.96);
}

.secret-content {
  margin: 0;
  white-space: pre-line;
  color: rgba(245, 245, 242, 0.8);
  font-size: clamp(14px, 1.32vw, 17px);
  font-weight: 300;
  line-height: 2.05;
}

.secret-controls {
  position: absolute;
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(245, 245, 242, 0.38);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.secret-controls button,
.secret-back {
  appearance: none;
  border: 0;
  border-radius: 0;
  color: rgba(245, 245, 242, 0.7);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.secret-controls button {
  width: 28px;
  height: 28px;
  padding: 0;
  color: rgba(231, 199, 161, 0.58);
  font-size: 22px;
  line-height: 1;
}

.secret-back {
  position: absolute;
  left: clamp(20px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 32px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 184, 111, 0.28);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.secret-controls button:hover,
.secret-back:hover {
  color: rgba(245, 245, 242, 0.9);
  border-color: rgba(216, 184, 111, 0.52);
  box-shadow: none;
  transform: translateY(-1px);
}

canvas {
  display: block;
  touch-action: none;
}

@keyframes hint-drift {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  50% {
    opacity: 0.86;
    transform: translateY(7px);
  }
}

@keyframes gate-star-drift {
  0%,
  100% {
    opacity: 0.58;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.82;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes gate-error {
  0%,
  100% {
    transform: translateX(0) translateY(-1vh);
  }

  22% {
    transform: translateX(-8px) translateY(-1vh);
  }

  48% {
    transform: translateX(7px) translateY(-1vh);
  }

  72% {
    transform: translateX(-4px) translateY(-1vh);
  }
}

@keyframes particle-pass-a {
  0% {
    opacity: 0;
    transform: translate3d(-10vw, 10vh, 120px);
  }

  18%,
  68% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translate3d(110vw, -18vh, 120px);
  }
}

@keyframes particle-pass-b {
  0% {
    opacity: 0;
    transform: translate3d(98vw, 76vh, 80px);
  }

  16%,
  64% {
    opacity: 0.46;
  }

  100% {
    opacity: 0;
    transform: translate3d(-14vw, 20vh, 80px);
  }
}

@keyframes timeline-image-float {
  0%,
  100% {
    transform: translateY(0) rotateZ(-0.55deg);
  }

  50% {
    transform: translateY(-8px) rotateZ(-0.35deg);
  }
}

@keyframes daily-image-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes ending-dust-drift {
  0%,
  100% {
    opacity: 0.44;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.66;
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes ending-line-in {
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ending-number-fade {
  0%,
  30% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  52% {
    opacity: 0.42;
    filter: blur(1.2px);
    transform: translateY(5px) scale(0.975);
  }

  72%,
  100% {
    opacity: 0.18;
    filter: blur(2px);
    transform: translateY(9px) scale(0.95);
  }
}

@keyframes ending-infinity-rise {
  0%,
  32% {
    opacity: 0.12;
    filter: blur(2px);
    transform: translateY(10px) scale(0.92);
  }

  58% {
    opacity: 0.54;
    filter: blur(0.8px);
    transform: translateY(4px) scale(0.97);
  }

  78%,
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes ending-transform-dust {
  0%,
  22% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  46% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1);
  }

  78%,
  100% {
    opacity: 0.12;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes ending-arrow-breathe {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(0);
  }

  50% {
    opacity: 0.82;
    transform: translateY(5px);
  }
}

@keyframes secret-star-drift {
  0%,
  100% {
    opacity: 0.45;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.66;
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes secret-wormhole-enter {
  0% {
    opacity: 0;
    transform: scale(0.12) rotate(0deg);
  }

  36% {
    opacity: 0.76;
  }

  100% {
    opacity: 0;
    transform: scale(2.8) rotate(84deg);
  }
}

@keyframes secret-wormhole-leave {
  0% {
    opacity: 0;
    transform: scale(2.1) rotate(84deg);
  }

  42% {
    opacity: 0.48;
  }

  100% {
    opacity: 0;
    transform: scale(0.18) rotate(0deg);
  }
}

@keyframes secret-card-float {
  0%,
  100% {
    transform: translateY(0) rotateZ(-0.8deg);
  }

  50% {
    transform: translateY(-7px) rotateZ(-0.55deg);
  }
}

@media (max-width: 980px) and (min-width: 721px) {
  .daily-masonry {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .watch-progress {
    top: auto;
    right: 68px;
    bottom: 22px;
    left: 68px;
    width: auto;
    height: 1px;
  }

  .watch-progress span {
    transform: scaleX(var(--progress));
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(216, 184, 111, 0.72), rgba(216, 184, 111, 0.08));
  }

  .chapter-hud {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 50%;
    display: flex;
    gap: 14px;
    padding: 8px 12px;
    transform: translateX(-50%);
  }

  .chapter-hud button {
    padding: 6px;
  }

  .chapter-label {
    display: none;
  }

  .chapter-dot {
    width: 7px;
    height: 7px;
  }

  .gate-panel {
    width: min(86vw, 340px);
    transform: translateY(-2vh);
  }

  .gate-number {
    font-size: clamp(70px, 22vw, 104px);
  }

  .gate-kicker {
    margin: 24px 0 28px;
    letter-spacing: 0.2em;
  }

  .opening-copy {
    gap: 18px;
    padding-top: 30px;
  }

  .brandline {
    font-size: 17px;
    letter-spacing: 0.08em;
  }

  .brandline span:nth-child(2),
  .brandline span:nth-child(3) {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .together-days {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .together-days span + span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .scene-number span + span {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .section-kicker {
    gap: 4px;
    margin-bottom: 14px;
    letter-spacing: 0.18em;
  }

  .section-kicker span + span,
  .timeline-header p span + span,
  .daily-header p span + span {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .heading-cn {
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .universe-instruction {
    bottom: 28px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .memory-card {
    grid-template-columns: 1fr;
    width: min(92vw, 560px);
    min-height: auto;
    gap: 20px;
    padding: 18px 16px 24px;
  }

  .memory-card::after {
    top: 47%;
    left: 18px;
    right: 18px;
  }

  .memory-image-frame {
    width: min(100%, 500px);
    max-height: 38vh;
  }

  .memory-copy {
    max-width: min(100%, 38em);
    justify-self: stretch;
  }

  .memory-copy::before {
    margin-bottom: 18px;
  }

  .memory-copy h1 {
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1.08;
    text-wrap: balance;
  }

  .memory-story {
    font-size: 14px;
    line-height: 1.78;
  }

  .memory-timeline {
    padding: 116px 22px 132px;
  }

  .timeline-header,
  .timeline-item,
  .timeline-work {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    gap: 18px;
    margin-bottom: 86px;
  }

  .timeline-header h1 {
    font-size: clamp(38px, 12.5vw, 56px);
    line-height: 0.96;
  }

  .timeline-list {
    gap: 104px;
  }

  .timeline-item {
    gap: 20px;
    padding-top: 30px;
  }

  .timeline-date-block {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .timeline-year {
    font-size: 34px;
  }

  .timeline-date {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .timeline-work {
    gap: 22px;
  }

  .timeline-image-frame,
  .timeline-item-4 .timeline-image-frame {
    width: 100%;
  }

  .timeline-copy h2 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .daily-gallery {
    padding: 104px 22px 132px;
  }

  .daily-header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 70px;
  }

  .daily-masonry {
    column-count: 1;
  }

  .daily-item {
    margin-bottom: 56px;
    margin-top: 0;
  }

  .daily-masonry {
    column-count: 2;
    column-gap: 18px;
  }

  .daily-copy {
    padding-top: 12px;
  }

  .daily-copy h2 {
    font-size: clamp(21px, 7vw, 30px);
  }

  .daily-copy p:last-child {
    font-size: 11px;
    line-height: 1.55;
  }

  .ending-scene {
    min-height: 100svh;
    padding: 98px 24px 156px;
  }

  .ending-inner p {
    font-size: 18px;
    line-height: 1.9;
    letter-spacing: 0.04em;
  }

  .ending-heading {
    margin-bottom: 24px;
  }

  .ending-heading strong {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .ending-number,
  .ending-infinity {
    font-size: clamp(68px, 25vw, 104px);
  }

  .ending-transform-dust {
    width: 240px;
    height: 82px;
  }

  .secret-card {
    grid-template-columns: 1fr;
    width: min(92vw, 520px);
    min-height: auto;
    gap: 24px;
    padding-bottom: 88px;
  }

  .secret-image-frame {
    width: min(100%, 440px);
    max-height: 38vh;
  }

  .secret-copy h1 {
    font-size: 46px;
  }

  .secret-controls {
    right: 18px;
    bottom: 18px;
  }

  .secret-back {
    left: 18px;
    bottom: 18px;
  }
}

@media (max-width: 430px) {
  .daily-masonry {
    column-count: 1;
  }

  .daily-item {
    margin-bottom: 58px;
  }
}
