:root {
  --black: #020104;
  --night: #09040f;
  --plum: #1d0826;
  --rose: #ff4f92;
  --pink: #ffd3e7;
  --violet: #8a5cff;
  --cyan: #82fff4;
  --gold: #ffe0a3;
  --white: #fff8fd;
  --muted: rgba(255, 248, 253, 0.72);
  --soft: rgba(255, 248, 253, 0.54);
  --glass: rgba(255, 248, 253, 0.09);
  --glass-strong: rgba(255, 248, 253, 0.16);
  --line: rgba(255, 248, 253, 0.18);
  --line-hot: rgba(255, 79, 146, 0.52);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --glow: 0 0 34px rgba(255, 79, 146, 0.34), 0 0 80px rgba(138, 92, 255, 0.18);
  --max: 1180px;
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(2, 1, 4, 0.98), rgba(29, 8, 38, 0.98) 48%, rgba(3, 2, 10, 0.98)),
    var(--black);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: -35%;
  z-index: -3;
  content: "";
  background:
    conic-gradient(from 120deg, rgba(255, 79, 146, 0.18), rgba(138, 92, 255, 0.22), rgba(130, 255, 244, 0.1), rgba(255, 79, 146, 0.18)),
    linear-gradient(110deg, rgba(255, 211, 231, 0.08), rgba(0, 0, 0, 0), rgba(138, 92, 255, 0.12));
  filter: blur(60px);
  opacity: 0.8;
  animation: auroraShift 18s ease-in-out infinite alternate;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
  pointer-events: none;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

body:not(.is-unlocked) {
  overflow: hidden;
}

body:not(.is-unlocked) .site-header,
body:not(.is-unlocked) .story-world,
body:not(.is-unlocked) .cinema-footer,
body:not(.is-unlocked) .museum-modal,
body:not(.is-unlocked) .mobile-menu-button,
body:not(.is-unlocked) .scroll-progress,
body:not(.is-unlocked) .cursor-glow,
body:not(.is-unlocked) .heart-layer,
body:not(.is-unlocked) .particle-layer,
body:not(.is-unlocked) .music-player {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body:not(.is-unlocked) .loading-screen {
  display: none;
}

body.is-unlocked .site-header,
body.is-unlocked .story-world,
body.is-unlocked .cinema-footer,
body.is-unlocked .museum-modal,
body.is-unlocked .mobile-menu-button,
body.is-unlocked .scroll-progress,
body.is-unlocked .cursor-glow,
body.is-unlocked .heart-layer,
body.is-unlocked .particle-layer,
body.is-unlocked .music-player {
  opacity: 1;
  visibility: visible;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--pink);
  background:
    linear-gradient(135deg, rgba(2, 1, 4, 0.98), rgba(29, 8, 38, 0.96)),
    var(--black);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.loader-ring {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--rose);
  border-right-color: var(--violet);
  border-radius: 50%;
  box-shadow: var(--glow);
  animation: spin 1.1s linear infinite;
}

.is-loaded .loading-screen {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.secret-entry {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  color: #f4f4f4;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #000;
  place-items: center;
}

.secret-card {
  position: relative;
  z-index: 1;
  width: min(320px, calc(100vw - 40px));
  padding: 0;
  background: #050505;
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.72);
  text-align: left;
}

.secret-card::before {
  display: none;
  content: none;
}

.secret-form {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.secret-form input {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  color: #f4f4f4;
  background: #000;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.secret-form input:focus {
  border-color: #777;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.secret-form input::placeholder {
  color: #777;
}

.secret-submit {
  min-height: 42px;
  color: #111;
  font-weight: 700;
  background: #f2f2f2;
  border: 1px solid #f2f2f2;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secret-submit:hover {
  color: #fff;
  background: #000;
  transform: translateY(-1px);
}

.secret-error {
  min-height: 20px;
  margin: 0;
  color: #d8d8d8;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
}

.secret-entry.is-wrong .secret-card {
  animation: shakeGate 0.38s ease;
}

.secret-entry.is-unlocking {
  animation: unlockGate 0.72s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.secret-entry.is-unlocking .secret-card {
  animation: unlockCard 0.72s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 450;
  background:
    linear-gradient(135deg, rgba(255, 79, 146, 0.94), rgba(10, 3, 20, 0.98) 42%, rgba(138, 92, 255, 0.94));
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.is-leaving .page-transition {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--violet), var(--cyan));
  box-shadow: 0 0 18px rgba(255, 79, 146, 0.7);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 480;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 211, 231, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 79, 146, 0.5), 0 0 70px rgba(138, 92, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  mix-blend-mode: screen;
}

.cursor-glow.is-active {
  opacity: 0.85;
}

.cursor-glow.is-hovering {
  width: 48px;
  height: 48px;
  border-color: rgba(130, 255, 244, 0.75);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 58px;
  padding: 10px 12px 10px 18px;
  background: rgba(7, 4, 12, 0.62);
  border: 1px solid rgba(255, 248, 253, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.brand::before {
  width: 10px;
  height: 10px;
  content: "";
  background: linear-gradient(135deg, var(--rose), var(--cyan));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 79, 146, 0.9);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  position: relative;
  min-height: 38px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: rgba(255, 248, 253, 0.1);
  box-shadow: inset 0 0 20px rgba(255, 79, 146, 0.08);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex: 0 0 42px;
  margin-left: auto;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(255, 248, 253, 0.09);
  border: 1px solid rgba(255, 248, 253, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle::before {
  position: absolute;
  inset: 0;
  display: grid;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  content: "☰";
  place-items: center;
}

.nav-toggle span {
  display: block;
  position: absolute;
  right: 10px;
  left: 10px;
  width: auto;
  height: 2px;
  margin: 0;
  background: var(--white);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle::before {
  content: "×";
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-button {
  position: fixed;
  top: 18px;
  right: 18px;
  left: auto;
  z-index: 240;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
  background: rgba(255, 79, 146, 0.9);
  border: 1px solid rgba(255, 248, 253, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  cursor: pointer;
}

.story-world {
  position: relative;
  z-index: 2;
}

.inner-world {
  padding-bottom: 80px;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.cinematic-panel,
.page-hero,
.letter-scene {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  perspective: 1200px;
}

.hero {
  align-items: center;
  padding: 130px clamp(22px, 7vw, 100px) 82px;
}

.scene-video,
.scene-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-video {
  z-index: -3;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.03);
}

.scene-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 1, 4, 0.84), rgba(9, 4, 15, 0.35) 48%, rgba(2, 1, 4, 0.8)),
    linear-gradient(0deg, rgba(2, 1, 4, 0.94), rgba(2, 1, 4, 0.12) 52%, rgba(2, 1, 4, 0.48));
}

.hero-content {
  width: min(780px, 100%);
  transform-style: preserve-3d;
}

.kicker {
  margin-bottom: 14px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

.hero-subtitle,
.page-hero-content p,
.section-heading p,
.portal-card p,
.memory-card p,
.modal-panel p,
.letter-card p,
.hidden-message,
.cinema-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 34px;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  overflow: hidden;
  font-weight: 800;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 54px rgba(255, 79, 146, 0.3);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 248, 253, 0.08);
  border: 1px solid rgba(255, 248, 253, 0.22);
  backdrop-filter: blur(16px);
}

.primary-button::before,
.ghost-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.primary-button:hover,
.ghost-button:hover {
  box-shadow: var(--glow);
  transform: translateY(-3px) scale(1.01);
}

.primary-button:hover::before,
.ghost-button:hover::before {
  transform: translateX(120%);
}

.primary-button:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

.scroll-cue {
  position: absolute;
  right: clamp(22px, 6vw, 78px);
  bottom: 32px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.86rem;
}

.scroll-cue span {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--pink), transparent);
  animation: cuePulse 1.7s ease-in-out infinite;
}

.hero-constellation,
.letter-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform-style: preserve-3d;
}

.depth-layer {
  position: absolute;
  width: min(24vw, 250px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 253, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 50px rgba(255, 79, 146, 0.18);
  opacity: 0.62;
  transform-style: preserve-3d;
  animation: driftCard 8s ease-in-out infinite alternate;
}

.layer-one {
  top: 16%;
  right: 11%;
  transform: translateZ(70px) rotate(-7deg);
}

.layer-two {
  right: 25%;
  bottom: 10%;
  transform: translateZ(130px) rotate(9deg);
  animation-delay: -2s;
}

.layer-three {
  top: 40%;
  right: 3%;
  transform: translateZ(30px) rotate(5deg);
  animation-delay: -4s;
}

.museum-gate,
.timeline-section,
.gallery-section,
.reason-lab {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading .kicker {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  margin-bottom: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.portal-card {
  position: relative;
  display: grid;
  gap: 13px;
  align-content: start;
  min-height: 270px;
  padding: 16px 16px 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 248, 253, 0.12), rgba(255, 248, 253, 0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.portal-card::before,
.memory-card::before,
.video-card::before,
.letter-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 79, 146, 0.24), transparent 38%, rgba(130, 255, 244, 0.12));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portal-card:hover::before,
.memory-card:hover::before,
.video-card:hover::before,
.letter-card:hover::before {
  opacity: 1;
}

.portal-number {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-grid;
  min-width: 48px;
  height: 32px;
  margin: 0;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(2, 1, 4, 0.48);
  border: 1px solid rgba(255, 248, 253, 0.22);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 22px rgba(130, 255, 244, 0.12);
  backdrop-filter: blur(14px);
  place-items: center;
}

.portal-media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(158px, 18vw, 224px);
  margin: 0 0 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 211, 231, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 79, 146, 0.18), rgba(138, 92, 255, 0.12));
  border: 1px solid rgba(255, 248, 253, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  transform: translateZ(18px);
}

.portal-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 34%, rgba(2, 1, 4, 0.42)),
    radial-gradient(circle at 80% 20%, rgba(255, 211, 231, 0.14), transparent 38%);
  pointer-events: none;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.06) brightness(0.9);
  transition: transform 0.65s ease, filter 0.65s ease;
}

.portal-card:nth-child(2) .portal-media img,
.portal-card:nth-child(3) .portal-media img {
  object-position: center 32%;
}

.portal-card:nth-child(4) .portal-media img {
  object-position: center 45%;
}

.portal-card:hover .portal-media img {
  filter: saturate(1.12) contrast(1.08) brightness(0.98);
  transform: scale(1.06);
}

.portal-card h3,
.portal-card p {
  position: relative;
  z-index: 1;
}

.page-hero {
  align-items: end;
  min-height: 72vh;
  padding: 140px clamp(20px, 7vw, 96px) 70px;
}

.page-hero-content {
  width: min(900px, 100%);
}

.page-hero-content p:not(.kicker) {
  width: min(690px, 100%);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.timeline-section {
  position: relative;
}

.memory-timeline {
  position: relative;
  display: grid;
  gap: 34px;
  padding: 20px 0;
}

.memory-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--rose), var(--violet), transparent);
  box-shadow: 0 0 28px rgba(255, 79, 146, 0.7);
}

.memory-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 20px;
  width: calc(50% - 42px);
  min-height: 280px;
  padding: 15px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 248, 253, 0.12), rgba(255, 248, 253, 0.05));
  border: 1px solid rgba(255, 248, 253, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
}

.memory-card:nth-child(odd) {
  margin-right: auto;
}

.memory-card:nth-child(even) {
  margin-left: auto;
}

.memory-card::after {
  position: absolute;
  top: 42px;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--pink);
  border: 4px solid rgba(255, 79, 146, 0.88);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(255, 79, 146, 0.9);
}

.memory-card:nth-child(odd)::after {
  right: -51px;
}

.memory-card:nth-child(even)::after {
  left: -51px;
}

.memory-image-wrap {
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius);
}

.memory-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.memory-card:hover .memory-image-wrap img {
  transform: scale(1.08);
}

.memory-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
}

.memory-month {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(130, 255, 244, 0.08);
  border: 1px solid rgba(130, 255, 244, 0.18);
  border-radius: var(--radius);
}

.memory-date {
  margin-bottom: 12px;
  color: var(--soft);
}

.memory-open {
  width: fit-content;
  min-height: 40px;
  margin-top: 12px;
  padding: 10px 13px;
  color: var(--white);
  font-weight: 800;
  background: rgba(255, 248, 253, 0.1);
  border: 1px solid rgba(255, 248, 253, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
  perspective: 1300px;
}

.gallery-tile {
  position: relative;
  grid-column: span 3;
  min-height: 310px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 248, 253, 0.08);
  border: 1px solid rgba(255, 248, 253, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transform-style: preserve-3d;
}

.gallery-tile:nth-child(6n + 1),
.gallery-tile:nth-child(6n + 5) {
  grid-column: span 5;
  min-height: 400px;
}

.gallery-tile:nth-child(6n + 3) {
  grid-column: span 4;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.gallery-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 1, 4, 0.45), transparent 58%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.gallery-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  color: rgba(255, 248, 253, 0.94);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(255, 211, 231, 0.16), rgba(130, 255, 244, 0.08)),
    rgba(2, 1, 4, 0.48);
  border: 1px solid rgba(255, 248, 253, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 22px rgba(255, 79, 146, 0.12);
  backdrop-filter: blur(14px);
  pointer-events: none;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.gallery-tile:hover img {
  filter: saturate(1.14) contrast(1.06);
  transform: scale(1.1) translateZ(20px);
}

.gallery-tile:hover::after {
  opacity: 0.18;
}

.gallery-tile:hover .gallery-label {
  background:
    linear-gradient(135deg, rgba(255, 79, 146, 0.2), rgba(130, 255, 244, 0.1)),
    rgba(2, 1, 4, 0.56);
  border-color: rgba(255, 211, 231, 0.28);
  transform: translateY(-2px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.video-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 248, 253, 0.13), rgba(255, 248, 253, 0.05));
  border: 1px solid rgba(255, 248, 253, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
}

.video-preview-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.video-card video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--black);
  filter: saturate(1.06);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.video-card:hover video {
  filter: saturate(1.2) brightness(1.08);
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: rgba(2, 1, 4, 0.48);
  border: 1px solid rgba(255, 248, 253, 0.26);
  border-radius: 50%;
  box-shadow: var(--glow);
}

.museum-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 88px 18px 28px;
}

.museum-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 1, 4, 0.82);
  backdrop-filter: blur(18px);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 430px) minmax(0, 1fr);
  gap: 28px;
  width: min(1020px, 100%);
  max-height: calc(100vh - 120px);
  padding: 18px;
  overflow: auto;
  background: linear-gradient(145deg, rgba(255, 248, 253, 0.15), rgba(255, 248, 253, 0.07));
  border: 1px solid rgba(255, 248, 253, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(24px);
  animation: modalRise 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-panel img,
.modal-stage img,
.modal-stage video {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--black);
  border-radius: var(--radius);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--white);
  font-weight: 800;
  background: rgba(2, 1, 4, 0.52);
  border: 1px solid rgba(255, 248, 253, 0.24);
  border-radius: var(--radius);
  cursor: pointer;
}

.media-panel {
  display: block;
  width: min(1120px, 100%);
}

.modal-stage {
  display: grid;
  min-height: min(70vh, 680px);
  place-items: center;
  padding: 34px 14px 8px;
}

.modal-caption {
  margin: 12px 14px 6px;
  color: var(--muted);
  text-align: center;
}

.letter-world {
  min-height: 100vh;
}

.letter-scene {
  align-items: center;
  padding: 140px 18px 92px;
}

.letter-scene::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 1, 4, 0.96), rgba(29, 8, 38, 0.78), rgba(2, 1, 4, 0.96)),
    url("../assets/images/IMG_7449.jpg") center / cover;
  filter: saturate(1.08);
}

.letter-scene::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(0deg, rgba(2, 1, 4, 0.9), rgba(2, 1, 4, 0.18), rgba(2, 1, 4, 0.82));
}

.letter-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.letter-card,
.hidden-message {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 248, 253, 0.14), rgba(255, 248, 253, 0.06));
  border: 1px solid rgba(255, 248, 253, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.letter-card {
  max-height: min(70vh, 680px);
  min-height: 240px;
  margin: 28px 0 22px;
  padding: clamp(24px, 5vw, 44px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  transform-style: preserve-3d;
}

.typewriter {
  min-height: 154px;
  margin-bottom: 0;
  color: rgba(255, 248, 253, 0.88);
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
  line-height: 1.85;
}

.typewriter::after {
  content: "|";
  color: var(--cyan);
  animation: blink 0.85s steps(2, start) infinite;
}

.hidden-message {
  max-height: 0;
  margin-top: 22px;
  padding: 0 30px;
  overflow-x: hidden;
  overflow-y: hidden;
  color: rgba(255, 248, 253, 0);
  line-height: 1.75;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 95, 162, 0.78) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  text-align: left;
  transition: max-height 0.65s ease, padding 0.65s ease, color 0.45s ease, box-shadow 0.45s ease;
  white-space: pre-wrap;
  word-break: break-word;
}

.hidden-message.is-visible {
  max-height: min(70vh, 720px);
  padding: 28px 32px;
  overflow-y: auto;
  color: rgba(255, 248, 253, 0.88);
  box-shadow: var(--shadow), var(--glow);
}

.letter-card::-webkit-scrollbar,
.hidden-message::-webkit-scrollbar,
.secret-letter-card::-webkit-scrollbar {
  width: 8px;
}

.letter-card::-webkit-scrollbar-track,
.hidden-message::-webkit-scrollbar-track,
.secret-letter-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.letter-card::-webkit-scrollbar-thumb,
.hidden-message::-webkit-scrollbar-thumb,
.secret-letter-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5fa2, #9b5cff);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .letter-card {
    max-height: 65vh;
    padding: 20px 18px;
  }

  .hidden-message.is-visible {
    max-height: 65vh;
    padding: 20px 18px;
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

.reason-lab {
  display: grid;
  gap: 30px;
}

.one-reason-section {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0;
}

.one-reason-card {
  position: relative;
  display: grid;
  gap: 20px;
  min-height: 420px;
  padding: clamp(28px, 6vw, 58px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 248, 253, 0.15), rgba(255, 248, 253, 0.06));
  border: 1px solid rgba(255, 248, 253, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  text-align: center;
  backdrop-filter: blur(24px);
  transform-style: preserve-3d;
}

.one-reason-card::before {
  position: absolute;
  inset: -1px;
  content: "";
  background: linear-gradient(135deg, rgba(255, 79, 146, 0.24), transparent 38%, rgba(130, 255, 244, 0.16));
  opacity: 0.8;
  pointer-events: none;
}

.one-reason-card > * {
  position: relative;
  z-index: 1;
}

.one-reason-intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
}

.one-reason-card .primary-button {
  justify-self: center;
}

.one-reason-text {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 248, 253, 0);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.5;
  transition: max-height 0.7s ease, color 0.45s ease, transform 0.45s ease, text-shadow 0.45s ease;
  transform: translateY(16px) scale(0.98);
}

.one-reason-text.is-visible {
  max-height: 220px;
  color: var(--white);
  text-shadow: 0 0 28px rgba(255, 79, 146, 0.45);
  transform: translateY(0) scale(1);
}

.heart-layer,
.particle-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.floating-heart,
.particle {
  position: absolute;
  bottom: -10vh;
  left: var(--left);
  opacity: 0;
  animation: riseParticle var(--duration) linear var(--delay) infinite;
}

.floating-heart {
  color: rgba(255, 211, 231, 0.4);
  font-size: var(--size);
}

.particle {
  width: var(--size);
  height: var(--size);
  background: rgba(130, 255, 244, 0.54);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(130, 255, 244, 0.65);
}

.reveal,
.reveal-hero {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.reveal.is-visible,
.reveal-hero.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.magnetic {
  will-change: transform;
}

.cinema-footer {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 248, 253, 0.12);
}

.cinema-footer p {
  margin-bottom: 0;
  text-align: center;
}

/* Premium story refinements for the unlocked website */
body.is-unlocked {
  background:
    linear-gradient(140deg, rgba(2, 1, 4, 0.98), rgba(18, 7, 24, 0.98) 44%, rgba(3, 2, 10, 0.98)),
    var(--black);
}

body.is-unlocked .site-header {
  min-height: 64px;
  padding: 12px 14px 12px 18px;
  background: rgba(5, 3, 9, 0.72);
  border-color: rgba(255, 248, 253, 0.2);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34), 0 0 44px rgba(255, 79, 146, 0.08);
}

body.is-unlocked .brand {
  font-size: 0.98rem;
}

body.is-unlocked .site-nav a {
  padding: 11px 14px;
  color: rgba(255, 248, 253, 0.68);
}

body.is-unlocked .site-nav a.is-active {
  background: rgba(255, 248, 253, 0.12);
}

body.is-unlocked .scene-video {
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.06);
}

body.is-unlocked .scene-overlay {
  background:
    linear-gradient(90deg, rgba(2, 1, 4, 0.9), rgba(9, 4, 15, 0.28) 46%, rgba(2, 1, 4, 0.86)),
    linear-gradient(0deg, rgba(2, 1, 4, 0.96), rgba(2, 1, 4, 0.2) 50%, rgba(2, 1, 4, 0.6));
}

body.is-unlocked h1 {
  max-width: 980px;
  font-size: 5.8rem;
  line-height: 0.92;
}

body.is-unlocked h2 {
  max-width: 860px;
  font-size: 3.7rem;
  line-height: 1;
}

body.is-unlocked h3 {
  font-size: 1.45rem;
}

body.is-unlocked .kicker {
  color: rgba(130, 255, 244, 0.86);
}

body.is-unlocked .hero {
  align-items: end;
  min-height: 100svh;
  padding: 160px clamp(28px, 7vw, 110px) 96px;
}

body.is-unlocked .hero-content {
  width: min(900px, 100%);
}

body.is-unlocked .hero-subtitle,
body.is-unlocked .page-hero-content p:not(.kicker) {
  max-width: 760px;
  font-size: 1.23rem;
}

body.is-unlocked .page-hero {
  min-height: 76svh;
  padding: 160px clamp(26px, 7vw, 104px) 82px;
}

body.is-unlocked .hero-constellation {
  opacity: 0.86;
}

body.is-unlocked .depth-layer {
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.05);
}

body.is-unlocked .museum-gate,
body.is-unlocked .timeline-section,
body.is-unlocked .gallery-section,
body.is-unlocked .one-reason-section {
  padding: 132px 0;
}

body.is-unlocked .section-heading {
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.05fr);
  gap: 46px;
  margin-bottom: 48px;
}

body.is-unlocked .section-heading p {
  font-size: 1.03rem;
}

body.is-unlocked .portal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body.is-unlocked .portal-card {
  display: grid;
  min-height: 360px;
  padding: 18px 18px 24px;
  align-content: start;
  gap: 14px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 79, 146, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 253, 0.13), rgba(255, 248, 253, 0.045));
  border-color: rgba(255, 248, 253, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.is-unlocked .portal-card:hover {
  border-color: rgba(130, 255, 244, 0.34);
  box-shadow: var(--shadow), 0 0 48px rgba(130, 255, 244, 0.1);
  transform: translateY(-8px);
}

body.is-unlocked .portal-number {
  position: absolute;
  top: 24px;
  right: 24px;
  margin: 0;
  color: rgba(130, 255, 244, 0.76);
  font-size: 0.9rem;
}

body.is-unlocked .portal-card h3 {
  margin-bottom: 2px;
}

body.is-unlocked .memory-timeline {
  gap: 54px;
}

body.is-unlocked .memory-card {
  grid-template-columns: minmax(220px, 42%) 1fr;
  gap: 0;
  width: calc(54% - 48px);
  min-height: 340px;
  padding: 12px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.is-unlocked .memory-card:hover {
  border-color: rgba(255, 211, 231, 0.34);
  box-shadow: var(--shadow), 0 0 48px rgba(255, 79, 146, 0.12);
  transform: translateY(-6px);
}

body.is-unlocked .memory-content {
  padding: 26px;
}

body.is-unlocked .memory-image-wrap {
  min-height: 316px;
}

body.is-unlocked .gallery-grid {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 96px;
  gap: 14px;
}

body.is-unlocked .gallery-tile {
  grid-column: span 3;
  grid-row: span 3;
  min-height: 0;
}

body.is-unlocked .gallery-tile:nth-child(6n + 1),
body.is-unlocked .gallery-tile:nth-child(6n + 5) {
  grid-column: span 5;
  grid-row: span 4;
  min-height: 0;
}

body.is-unlocked .gallery-tile:nth-child(6n + 3) {
  grid-column: span 4;
  grid-row: span 3;
}

body.is-unlocked .video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.is-unlocked .video-card,
body.is-unlocked .letter-card,
body.is-unlocked .hidden-message,
body.is-unlocked .one-reason-card {
  border-color: rgba(255, 248, 253, 0.22);
}

body.is-unlocked .video-card video {
  aspect-ratio: 16 / 9;
}

body.is-unlocked .letter-shell {
  width: min(920px, 100%);
}

body.is-unlocked .letter-card {
  min-height: 300px;
  padding: 44px;
}

body.is-unlocked .typewriter {
  font-size: 1.24rem;
  line-height: 1.95;
}

body.is-unlocked .one-reason-section {
  width: min(980px, calc(100% - 36px));
}

body.is-unlocked .one-reason-card {
  min-height: 500px;
  align-content: center;
  padding: 64px;
}

body.is-unlocked .one-reason-text {
  font-size: 2rem;
}

/* Mature cinematic polish */
body.is-unlocked::before {
  opacity: 0.58;
  filter: blur(84px);
}

body.is-unlocked::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 92px 92px;
}

body.is-unlocked .site-header {
  background:
    linear-gradient(180deg, rgba(16, 12, 24, 0.76), rgba(7, 5, 12, 0.58));
  border-color: rgba(255, 248, 253, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

body.is-unlocked .brand::before {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  opacity: 0.78;
}

body.is-unlocked .site-nav a {
  border: 1px solid transparent;
}

body.is-unlocked .site-nav a:hover,
body.is-unlocked .site-nav a.is-active {
  background: rgba(255, 248, 253, 0.075);
  border-color: rgba(255, 248, 253, 0.12);
}

body.is-unlocked .hero-content,
body.is-unlocked .page-hero-content {
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
}

body.is-unlocked .hero-content {
  padding-bottom: 16px;
}

body.is-unlocked .scene-overlay {
  background:
    linear-gradient(90deg, rgba(2, 1, 4, 0.93), rgba(9, 4, 15, 0.34) 47%, rgba(2, 1, 4, 0.84)),
    linear-gradient(0deg, rgba(2, 1, 4, 0.98), rgba(2, 1, 4, 0.12) 48%, rgba(2, 1, 4, 0.64));
}

body.is-unlocked .hero-subtitle,
body.is-unlocked .page-hero-content p:not(.kicker),
body.is-unlocked .section-heading p {
  color: rgba(255, 248, 253, 0.7);
}

body.is-unlocked .primary-button,
body.is-unlocked .ghost-button,
body.is-unlocked .memory-open {
  border-radius: 8px;
  letter-spacing: 0;
}

body.is-unlocked .primary-button {
  background:
    linear-gradient(135deg, rgba(255, 79, 146, 0.88), rgba(138, 92, 255, 0.82)),
    rgba(255, 248, 253, 0.08);
  box-shadow: 0 18px 48px rgba(255, 79, 146, 0.22);
}

body.is-unlocked .ghost-button,
body.is-unlocked .memory-open {
  background: rgba(255, 248, 253, 0.075);
  border-color: rgba(255, 248, 253, 0.16);
}

body.is-unlocked .museum-gate,
body.is-unlocked .timeline-section,
body.is-unlocked .gallery-section,
body.is-unlocked .one-reason-section {
  width: min(var(--max), calc(100% - 40px));
}

body.is-unlocked .section-heading {
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 248, 253, 0.1);
}

body.is-unlocked .portal-card,
body.is-unlocked .memory-card,
body.is-unlocked .video-card,
body.is-unlocked .letter-card,
body.is-unlocked .hidden-message,
body.is-unlocked .one-reason-card,
body.is-unlocked .modal-panel {
  background:
    linear-gradient(145deg, rgba(255, 248, 253, 0.105), rgba(255, 248, 253, 0.035)),
    rgba(5, 4, 10, 0.5);
  border-color: rgba(255, 248, 253, 0.16);
  box-shadow: 0 26px 82px rgba(0, 0, 0, 0.42);
}

body.is-unlocked .portal-card::before,
body.is-unlocked .memory-card::before,
body.is-unlocked .video-card::before,
body.is-unlocked .one-reason-card::before {
  opacity: 0.42;
}

body.is-unlocked .portal-card:hover,
body.is-unlocked .memory-card:hover,
body.is-unlocked .video-card:hover,
body.is-unlocked .gallery-tile:hover {
  border-color: rgba(255, 211, 231, 0.28);
  box-shadow: 0 30px 96px rgba(0, 0, 0, 0.52), 0 0 44px rgba(255, 79, 146, 0.1);
}

body.is-unlocked .memory-timeline::before {
  background: linear-gradient(180deg, transparent, rgba(255, 211, 231, 0.44), rgba(138, 92, 255, 0.22), transparent);
}

body.is-unlocked .memory-month {
  color: rgba(255, 211, 231, 0.92);
  background: rgba(255, 211, 231, 0.08);
  border-color: rgba(255, 211, 231, 0.16);
}

body.is-unlocked .memory-image-wrap,
body.is-unlocked .video-preview-wrap {
  border-radius: 8px;
}

body.is-unlocked .gallery-tile {
  background: rgba(255, 248, 253, 0.055);
  border-color: rgba(255, 248, 253, 0.13);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

body.is-unlocked .gallery-tile::after {
  background: linear-gradient(0deg, rgba(2, 1, 4, 0.58), transparent 62%);
}

body.is-unlocked .letter-scene::before {
  filter: saturate(1.03) contrast(1.08);
}

body.is-unlocked .one-reason-card {
  overflow: hidden;
}

body.is-unlocked .cinema-footer {
  margin-top: 18px;
  padding-bottom: 92px;
  border-top-color: rgba(255, 248, 253, 0.1);
}

.floating-heart {
  width: var(--size);
  height: var(--size);
  color: transparent;
  background: radial-gradient(circle, rgba(255, 211, 231, 0.34), transparent 64%);
  border-radius: 50%;
  filter: blur(0.2px);
}

/* Final dark museum atmosphere */
body.is-unlocked {
  background:
    radial-gradient(circle at 16% 10%, rgba(93, 24, 88, 0.38), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(255, 79, 146, 0.18), transparent 26%),
    radial-gradient(circle at 54% 88%, rgba(72, 32, 128, 0.3), transparent 42%),
    linear-gradient(140deg, rgba(2, 1, 4, 0.99), rgba(15, 4, 17, 0.99) 34%, rgba(7, 5, 16, 0.99) 72%, rgba(2, 1, 4, 0.99)),
    var(--black);
}

body.is-unlocked::before {
  background:
    conic-gradient(from 142deg, rgba(255, 79, 146, 0.12), rgba(138, 92, 255, 0.18), rgba(70, 16, 44, 0.12), rgba(255, 211, 231, 0.08), rgba(255, 79, 146, 0.12)),
    radial-gradient(circle at 62% 44%, rgba(255, 211, 231, 0.08), transparent 38%);
  opacity: 0.72;
}

body.is-unlocked::after {
  background-image:
    radial-gradient(circle at center, rgba(255, 248, 253, 0.075) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 92px 92px, 92px 92px, 92px 92px;
  opacity: 0.68;
}

body.is-unlocked .site-header {
  background:
    linear-gradient(180deg, rgba(9, 5, 14, 0.8), rgba(9, 5, 14, 0.55)),
    rgba(5, 4, 9, 0.42);
  border-bottom-color: rgba(255, 248, 253, 0.12);
  box-shadow: 0 18px 72px rgba(0, 0, 0, 0.26);
}

body.is-unlocked .brand {
  color: rgba(255, 248, 253, 0.96);
}

body.is-unlocked .site-nav a {
  color: rgba(255, 248, 253, 0.72);
}

body.is-unlocked .site-nav a:hover,
body.is-unlocked .site-nav a.active {
  color: var(--white);
  background: rgba(255, 211, 231, 0.08);
  box-shadow: 0 0 28px rgba(255, 79, 146, 0.1);
}

body.is-unlocked .site-header,
body.is-unlocked .portal-card,
body.is-unlocked .memory-card,
body.is-unlocked .gallery-tile,
body.is-unlocked .video-card,
body.is-unlocked .letter-card,
body.is-unlocked .hidden-message,
body.is-unlocked .one-reason-card {
  border-radius: 12px;
}

body.is-unlocked .hero,
body.is-unlocked .page-hero,
body.is-unlocked .letter-scene {
  isolation: isolate;
}

body.is-unlocked .story-world {
  background:
    linear-gradient(180deg, rgba(2, 1, 4, 0), rgba(255, 248, 253, 0.012) 28%, rgba(2, 1, 4, 0) 70%),
    radial-gradient(circle at 12% 48%, rgba(255, 79, 146, 0.08), transparent 32%),
    radial-gradient(circle at 88% 74%, rgba(138, 92, 255, 0.08), transparent 34%);
}

body.is-unlocked .museum-gate,
body.is-unlocked .timeline-section,
body.is-unlocked .gallery-section,
body.is-unlocked .one-reason-section {
  position: relative;
}

body.is-unlocked .museum-gate::before,
body.is-unlocked .timeline-section::before,
body.is-unlocked .gallery-section::before,
body.is-unlocked .one-reason-section::before {
  position: absolute;
  inset: 8% 5% auto auto;
  z-index: -1;
  width: min(360px, 42vw);
  height: min(360px, 42vw);
  background: radial-gradient(circle, rgba(255, 79, 146, 0.09), transparent 62%);
  border-radius: 50%;
  content: "";
  filter: blur(16px);
  pointer-events: none;
}

body.is-unlocked .scene-video {
  filter: saturate(0.96) contrast(1.12) brightness(0.72);
}

body.is-unlocked .scene-overlay {
  background:
    radial-gradient(circle at 58% 34%, rgba(255, 79, 146, 0.16), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(138, 92, 255, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(2, 1, 4, 0.9), rgba(7, 3, 12, 0.5) 46%, rgba(2, 1, 4, 0.82)),
    linear-gradient(180deg, rgba(2, 1, 4, 0.5), rgba(2, 1, 4, 0.78) 58%, rgba(2, 1, 4, 0.98));
}

body.is-unlocked .section-heading,
body.is-unlocked .page-hero-content,
body.is-unlocked .portal-card,
body.is-unlocked .memory-card,
body.is-unlocked .gallery-tile,
body.is-unlocked .video-card,
body.is-unlocked .letter-card,
body.is-unlocked .one-reason-card {
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.36), 0 0 38px rgba(92, 35, 89, 0.12);
}

body.is-unlocked .section-heading {
  border-color: rgba(255, 248, 253, 0.1);
}

body.is-unlocked .portal-card,
body.is-unlocked .memory-card,
body.is-unlocked .gallery-tile,
body.is-unlocked .video-card,
body.is-unlocked .letter-card,
body.is-unlocked .hidden-message,
body.is-unlocked .one-reason-card {
  background:
    linear-gradient(150deg, rgba(255, 248, 253, 0.1), rgba(255, 248, 253, 0.032)),
    rgba(5, 4, 10, 0.56);
  border-color: rgba(255, 248, 253, 0.14);
}

body.is-unlocked .primary-button,
body.is-unlocked .ghost-button,
body.is-unlocked .memory-open {
  min-height: 48px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

body.is-unlocked .primary-button {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 248, 253, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(255, 79, 146, 0.92), rgba(138, 92, 255, 0.86));
}

body.is-unlocked .ghost-button {
  background: rgba(255, 248, 253, 0.055);
  border-color: rgba(255, 248, 253, 0.16);
}

body.is-unlocked .portal-card:hover,
body.is-unlocked .memory-card:hover,
body.is-unlocked .video-card:hover,
body.is-unlocked .gallery-tile:hover {
  transform: translateY(-5px);
}

body.is-unlocked .cinema-footer {
  color: rgba(255, 248, 253, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 146, 0.08), transparent 36%),
    linear-gradient(180deg, transparent, rgba(255, 248, 253, 0.018));
}

@keyframes auroraShift {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(8deg) scale(1.08);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shakeGate {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  50% {
    transform: translateX(8px);
  }

  75% {
    transform: translateX(-4px);
  }
}

@keyframes unlockGate {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }
}

@keyframes unlockCard {
  to {
    opacity: 0;
    filter: none;
    transform: translateY(-14px);
  }
}

@keyframes playerFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

@keyframes equalize {
  from {
    height: 7px;
  }

  to {
    height: 23px;
  }
}

@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes driftCard {
  from {
    margin-top: 0;
  }

  to {
    margin-top: -22px;
  }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes riseParticle {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.8);
  }

  16% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translateY(-120vh) rotate(22deg) scale(1.2);
  }
}

@media (min-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }
}

@media (min-width: 841px) {
  .mobile-menu-button {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    left: 14px;
    width: calc(100vw - 28px);
    padding-right: 58px;
    transform: none;
  }

  .site-header::after {
    display: none;
    content: "";
  }

  .nav-open .site-header::after {
    content: "";
  }

  .site-nav a {
    padding-inline: 9px;
    font-size: 0.82rem;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-card {
    grid-template-columns: 1fr;
  }

  body.is-unlocked h1 {
    font-size: 4.4rem;
  }

  body.is-unlocked h2 {
    font-size: 3rem;
  }

  body.is-unlocked .memory-card {
    width: calc(50% - 42px);
  }

  body.is-unlocked .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: grid !important;
    place-items: center;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 220;
    background: rgba(255, 79, 146, 0.9);
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(7, 4, 12, 0.94);
    border: 1px solid rgba(255, 248, 253, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 44px;
    padding: 13px;
    font-size: 0.96rem;
  }

  .hero,
  .page-hero,
  .letter-scene {
    min-height: 88vh;
    padding-inline: 18px;
  }

  .hero-content,
  .page-hero-content,
  .letter-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-constellation,
  .letter-orbit {
    opacity: 0.36;
  }

  .depth-layer {
    width: 36vw;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading .kicker {
    margin-bottom: 0;
  }

  .memory-timeline::before {
    left: 10px;
  }

  .memory-card,
  .memory-card:nth-child(odd),
  .memory-card:nth-child(even) {
    width: calc(100% - 36px);
    margin-left: 36px;
    margin-right: 0;
  }

  .memory-card:nth-child(odd)::after,
  .memory-card:nth-child(even)::after {
    left: -35px;
    right: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-tile,
  .gallery-tile:nth-child(6n + 1),
  .gallery-tile:nth-child(6n + 3),
  .gallery-tile:nth-child(6n + 5) {
    grid-column: span 3;
    min-height: 300px;
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }

  body.is-unlocked h1 {
    font-size: 3.55rem;
  }

  body.is-unlocked h2 {
    font-size: 2.45rem;
  }

  body.is-unlocked .hero,
  body.is-unlocked .page-hero,
  body.is-unlocked .letter-scene {
    min-height: 86svh;
    padding: 116px 18px 72px;
  }

  body.is-unlocked .hero-subtitle,
  body.is-unlocked .page-hero-content p:not(.kicker) {
    font-size: 1.05rem;
  }

  body.is-unlocked .portal-grid,
  body.is-unlocked .video-grid {
    grid-template-columns: 1fr;
  }

  body.is-unlocked .memory-card,
  body.is-unlocked .memory-card:nth-child(odd),
  body.is-unlocked .memory-card:nth-child(even) {
    width: calc(100% - 36px);
  }

  body.is-unlocked .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 82px;
  }

  body.is-unlocked .gallery-tile,
  body.is-unlocked .gallery-tile:nth-child(6n + 1),
  body.is-unlocked .gallery-tile:nth-child(6n + 3),
  body.is-unlocked .gallery-tile:nth-child(6n + 5) {
    grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    padding: 8px 8px 8px 12px;
    padding-right: 58px;
    transform: none;
  }

  .brand {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1;
  }

  .page-hero-content p:not(.kicker),
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .museum-gate,
  .timeline-section,
  .gallery-section,
  .reason-lab {
    width: min(100% - 28px, var(--max));
    padding: 82px 0;
  }

  .portal-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 0;
  }

  .portal-number {
    top: 14px;
    right: 14px;
    min-width: 44px;
    height: 30px;
  }

  .portal-media {
    height: clamp(145px, 48vw, 190px);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-tile,
  .gallery-tile:nth-child(6n + 1),
  .gallery-tile:nth-child(6n + 3),
  .gallery-tile:nth-child(6n + 5) {
    grid-column: auto;
    min-height: 360px;
  }

  .memory-card {
    padding: 12px;
  }

  .memory-image-wrap {
    min-height: 290px;
  }

  .hidden-message.is-visible {
    max-height: 65vh;
    padding: 20px 18px;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .modal-stage {
    min-height: 54vh;
    padding-top: 48px;
  }

  .secret-entry {
    padding: 16px;
  }

  .secret-card {
    width: 100%;
    padding: 22px;
  }

  body.is-unlocked h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

  body.is-unlocked h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  body.is-unlocked .hero,
  body.is-unlocked .page-hero,
  body.is-unlocked .letter-scene {
    min-height: 84svh;
    padding: 108px 16px 64px;
  }

  body.is-unlocked .museum-gate,
  body.is-unlocked .timeline-section,
  body.is-unlocked .gallery-section,
  body.is-unlocked .one-reason-section {
    padding: 78px 0;
  }

  body.is-unlocked .portal-card {
    min-height: 0;
    padding: 16px 16px 20px;
  }

  body.is-unlocked .memory-content {
    padding: 18px 8px 8px;
  }

  body.is-unlocked .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  body.is-unlocked .gallery-tile,
  body.is-unlocked .gallery-tile:nth-child(6n + 1),
  body.is-unlocked .gallery-tile:nth-child(6n + 3),
  body.is-unlocked .gallery-tile:nth-child(6n + 5) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  body.is-unlocked .letter-card {
    min-height: 280px;
    padding: 24px;
  }

  body.is-unlocked .one-reason-card {
    min-height: 430px;
    padding: 28px;
  }

  body.is-unlocked .one-reason-text {
    font-size: 1.45rem;
  }

}

/* Final deployment polish */
body.is-unlocked {
  background:
    radial-gradient(circle at 12% 8%, rgba(104, 27, 86, 0.42), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(108, 54, 174, 0.24), transparent 28%),
    radial-gradient(circle at 50% 105%, rgba(82, 6, 28, 0.34), transparent 42%),
    linear-gradient(145deg, #020104 0%, #0b0410 38%, #120515 68%, #030205 100%);
}

body.is-unlocked .site-header {
  background:
    linear-gradient(180deg, rgba(12, 7, 16, 0.82), rgba(8, 5, 12, 0.66)),
    rgba(5, 4, 8, 0.6);
  border-color: rgba(255, 248, 253, 0.14);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34), 0 0 30px rgba(255, 79, 146, 0.07);
}

body.is-unlocked .site-nav a.is-active,
body.is-unlocked .site-nav a:hover {
  color: var(--white);
  background: rgba(255, 211, 231, 0.08);
}

body.is-unlocked .scene-overlay {
  background:
    radial-gradient(circle at 72% 42%, rgba(138, 92, 255, 0.18), transparent 34%),
    radial-gradient(circle at 20% 38%, rgba(255, 79, 146, 0.14), transparent 36%),
    linear-gradient(90deg, rgba(2, 1, 4, 0.92), rgba(2, 1, 4, 0.54) 52%, rgba(2, 1, 4, 0.78)),
    linear-gradient(180deg, rgba(2, 1, 4, 0.42), rgba(2, 1, 4, 0.96));
}

body.is-unlocked .hero-content,
body.is-unlocked .page-hero-content {
  text-align: left;
}

body.is-unlocked .hero h1,
body.is-unlocked .page-hero h1 {
  max-width: 780px;
  letter-spacing: 0;
}

body.is-unlocked .hero-subtitle {
  max-width: 590px;
}

body.is-unlocked .depth-layer {
  opacity: 0.8;
  border-color: rgba(255, 248, 253, 0.2);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48), 0 0 38px rgba(255, 79, 146, 0.14);
}

body.is-unlocked .portal-card,
body.is-unlocked .memory-card,
body.is-unlocked .gallery-tile,
body.is-unlocked .video-card,
body.is-unlocked .letter-card,
body.is-unlocked .hidden-message,
body.is-unlocked .one-reason-card {
  background:
    linear-gradient(145deg, rgba(255, 248, 253, 0.105), rgba(255, 248, 253, 0.035)),
    linear-gradient(180deg, rgba(13, 8, 18, 0.82), rgba(5, 4, 9, 0.72));
  border-color: rgba(255, 248, 253, 0.135);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.is-unlocked .portal-card:hover,
body.is-unlocked .memory-card:hover,
body.is-unlocked .video-card:hover,
body.is-unlocked .gallery-tile:hover {
  border-color: rgba(255, 211, 231, 0.28);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.5), 0 0 42px rgba(255, 79, 146, 0.11);
}

body.is-unlocked .memory-timeline {
  counter-reset: memory-card;
}

body.is-unlocked .memory-card {
  counter-increment: memory-card;
}

body.is-unlocked .memory-content::before {
  display: inline-grid;
  min-width: 42px;
  height: 28px;
  margin-bottom: 14px;
  color: rgba(255, 211, 231, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 211, 231, 0.075);
  border: 1px solid rgba(255, 211, 231, 0.14);
  border-radius: 999px;
  content: counter(memory-card, decimal-leading-zero);
  place-items: center;
}

body.is-unlocked .gallery-grid {
  gap: clamp(12px, 2vw, 20px);
}

body.is-unlocked .gallery-tile,
body.is-unlocked .video-preview-wrap,
body.is-unlocked .memory-image-wrap {
  border-radius: 16px;
}

body.is-unlocked .gallery-tile img,
body.is-unlocked .memory-image-wrap img,
body.is-unlocked .video-preview-wrap video {
  filter: saturate(1.02) contrast(1.07) brightness(0.92);
}

body.is-unlocked .letter-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 211, 231, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(255, 248, 253, 0.115), rgba(255, 248, 253, 0.04)),
    rgba(6, 5, 9, 0.72);
}

body.is-unlocked .one-reason-card::after {
  position: absolute;
  right: clamp(22px, 6vw, 62px);
  bottom: clamp(18px, 5vw, 46px);
  z-index: 0;
  color: rgba(255, 248, 253, 0.055);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 1;
  content: "01";
  pointer-events: none;
}

body.is-unlocked .cinema-footer {
  padding-bottom: 112px;
  border-top-color: rgba(255, 248, 253, 0.08);
}

@media (min-width: 841px) {
  body.is-unlocked .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
    gap: clamp(36px, 6vw, 92px);
    align-items: center;
  }

  body.is-unlocked .hero-content {
    grid-column: 1;
    max-width: 700px;
  }

  body.is-unlocked .hero-constellation {
    z-index: -1;
    opacity: 1;
  }

  body.is-unlocked .hero-constellation .layer-one {
    top: 18%;
    right: 12%;
    width: min(23vw, 270px);
  }

  body.is-unlocked .hero-constellation .layer-two {
    right: 25%;
    bottom: 12%;
    width: min(20vw, 235px);
  }

  body.is-unlocked .hero-constellation .layer-three {
    top: 46%;
    right: 4%;
    width: min(18vw, 215px);
  }
}

@media (max-width: 840px) {
  body.is-unlocked .hero-content,
  body.is-unlocked .page-hero-content {
    text-align: left;
  }

  body.is-unlocked .depth-layer {
    opacity: 0.42;
  }
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
