:root {
  --bg: #05030e;
  --bg-deep: #030109;
  --bg-soft: #0a0718;
  --text: #f6f2ff;
  --muted: #a99fc4;
  --muted-strong: #c3bad9;
  --gold: #f2d3aa;
  --violet: #8b5cf6;
  --violet-soft: #c4b5fd;
  --lilac: #e9d5ff;
  --pink: #f472b6;
  --rose: #fb7185;
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: min(1140px, calc(100% - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 8%, rgba(88, 28, 135, 0.2), transparent 70%),
    radial-gradient(45% 40% at 88% 22%, rgba(190, 24, 93, 0.11), transparent 72%),
    radial-gradient(60% 55% at 50% 100%, rgba(76, 29, 149, 0.16), transparent 70%),
    linear-gradient(180deg, #05030e 0%, #070414 45%, #04020b 100%);
}

::selection {
  background: rgba(244, 114, 182, 0.35);
  color: #fff;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid rgba(244, 114, 182, 0.9);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f8f4ff;
  color: #1a0b2b;
  font-size: 0.85rem;
  transform: translateY(-160%);
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
}

.section {
  position: relative;
  padding: clamp(88px, 12vw, 158px) 0;
  scroll-margin-top: 72px;
}

.section-head {
  width: var(--container);
  max-width: 760px;
  margin: 0 auto clamp(46px, 6.5vw, 84px);
  text-align: center;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  width: clamp(24px, 5vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 211, 170, 0.55));
}

.section-head .eyebrow::after {
  background: linear-gradient(90deg, rgba(242, 211, 170, 0.55), transparent);
}

.section-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.section-subtitle {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  font-weight: 300;
  line-height: 1.75;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, background 0.45s ease, border-color 0.45s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn--primary {
  color: #1c0b2d;
  background: linear-gradient(115deg, #d8ccff 0%, #f6b7dc 52%, #fecdd3 100%);
  box-shadow: 0 16px 46px rgba(244, 114, 182, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.6) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.9s ease;
}

.btn--primary:hover::after {
  transform: translateX(130%);
}

.btn--primary:hover {
  box-shadow: 0 20px 60px rgba(244, 114, 182, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 500;
}

.btn--ghost:hover {
  border-color: rgba(196, 181, 253, 0.4);
  background: rgba(196, 181, 253, 0.09);
}

.btn-arrow {
  transition: transform 0.4s var(--ease-out);
}

.btn--primary:hover .btn-arrow {
  transform: translateX(4px);
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(20px, 4.5vw, 52px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 3, 14, 0.55), rgba(5, 3, 14, 0));
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out), background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}

body.journey .topbar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: rgba(5, 3, 14, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(233, 213, 255, 0.28);
  color: var(--lilac);
  font-family: var(--font-body);
  font-size: 0.72rem;
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.24), inset 0 0 12px rgba(167, 139, 250, 0.14);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
  box-shadow: 0 0 30px rgba(244, 114, 182, 0.4), inset 0 0 14px rgba(244, 114, 182, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lilac), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), top 0.4s ease;
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 23px;
}

body.nav-open .menu-toggle span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 24px 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30, 15, 62, 0.6), transparent 70%),
    linear-gradient(180deg, #070314 0%, #0a0620 48%, #05030e 100%);
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}

.nebula--violet {
  width: 76vmax;
  height: 76vmax;
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle at 45% 45%, rgba(109, 40, 217, 0.72), rgba(76, 29, 149, 0.34) 40%, transparent 68%);
  animation: nebulaFloatOne 22s ease-in-out infinite alternate;
}

.nebula--rose {
  width: 66vmax;
  height: 66vmax;
  top: -8vmax;
  right: -26vmax;
  background: radial-gradient(circle at 50% 50%, rgba(190, 24, 93, 0.5), rgba(136, 19, 55, 0.2) 45%, transparent 70%);
  animation: nebulaFloatTwo 27s ease-in-out infinite alternate;
}

.nebula--indigo {
  width: 90vmax;
  height: 58vmax;
  bottom: -34vmax;
  left: 8%;
  background: radial-gradient(circle at 50% 50%, rgba(67, 56, 202, 0.4), rgba(49, 46, 129, 0.18) 48%, transparent 72%);
  animation: nebulaFloatThree 31s ease-in-out infinite alternate;
}

.stars {
  position: absolute;
  inset: -12%;
  background-repeat: repeat;
  pointer-events: none;
  will-change: transform;
}

.stars--far {
  opacity: 0.45;
  background-image:
    radial-gradient(1px 1px at 24px 36px, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(1px 1px at 128px 92px, rgba(233, 213, 255, 0.7), transparent 100%),
    radial-gradient(1px 1px at 210px 26px, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1.2px 1.2px at 62px 178px, rgba(196, 181, 253, 0.7), transparent 100%),
    radial-gradient(1px 1px at 174px 210px, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 244px 148px, rgba(251, 207, 232, 0.55), transparent 100%),
    radial-gradient(1.1px 1.1px at 288px 68px, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1px 1px at 96px 254px, rgba(255, 255, 255, 0.45), transparent 100%);
  background-size: 320px 320px;
  animation: starDriftFar 150s linear infinite alternate;
}

.stars--mid {
  opacity: 0.7;
  background-image:
    radial-gradient(1.4px 1.4px at 48px 64px, rgba(255, 255, 255, 0.95), transparent 100%),
    radial-gradient(1.2px 1.2px at 188px 32px, rgba(233, 213, 255, 0.9), transparent 100%),
    radial-gradient(1.6px 1.6px at 324px 148px, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1.2px 1.2px at 108px 246px, rgba(251, 207, 232, 0.85), transparent 100%),
    radial-gradient(1.5px 1.5px at 268px 288px, rgba(255, 255, 255, 0.75), transparent 100%),
    radial-gradient(1.1px 1.1px at 396px 82px, rgba(196, 181, 253, 0.9), transparent 100%),
    radial-gradient(1.3px 1.3px at 14px 196px, rgba(255, 255, 255, 0.7), transparent 100%);
  background-size: 440px 440px;
  animation: starDriftMid 110s linear infinite alternate;
}

.stars--near {
  opacity: 0.9;
  background-image:
    radial-gradient(1.8px 1.8px at 92px 96px, rgba(255, 255, 255, 1), transparent 100%),
    radial-gradient(2px 2px at 380px 208px, rgba(255, 240, 250, 0.95), transparent 100%),
    radial-gradient(1.5px 1.5px at 238px 380px, rgba(233, 213, 255, 0.9), transparent 100%),
    radial-gradient(1.7px 1.7px at 522px 76px, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1.4px 1.4px at 156px 494px, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(1.6px 1.6px at 458px 430px, rgba(251, 207, 232, 0.8), transparent 100%);
  background-size: 580px 580px;
  animation: starDriftNear 80s linear infinite alternate;
}

.horizon-glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 130%;
  height: 65%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(129, 74, 196, 0.24), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  top: 20%;
  left: 68%;
  width: 130px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 245, 255, 0.9), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: rotate(-24deg);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
  animation: shootingStar 11s ease-in infinite;
  animation-delay: 3s;
}

.shooting-star--two {
  top: 58%;
  left: 24%;
  width: 90px;
  animation-duration: 15s;
  animation-delay: 8.5s;
  transform: rotate(18deg);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  grid-template-areas:
    "copy visual"
    "actions visual";
  column-gap: clamp(36px, 6vw, 86px);
  align-items: center;
  width: min(1240px, 100%);
}

.hero-content {
  grid-area: copy;
  align-self: end;
  justify-self: start;
  width: 100%;
  max-width: 690px;
  text-align: left;
}

.hero-actions {
  grid-area: actions;
  align-self: start;
  justify-self: start;
  margin-top: 40px;
  text-align: left;
}

.hero-visual {
  position: relative;
  grid-area: visual;
  align-self: center;
  justify-self: end;
  width: min(100%, 408px);
  padding: 12px;
  transition-delay: 0.55s;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 38%, rgba(244, 114, 182, 0.2), transparent 56%),
    radial-gradient(circle at 38% 68%, rgba(139, 92, 246, 0.22), transparent 60%);
  filter: blur(34px);
  pointer-events: none;
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(233, 213, 255, 0.22);
  border-radius: 210px 210px 28px 28px;
  background: linear-gradient(155deg, #1c1034, #100823);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.48),
    0 0 70px rgba(139, 92, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: zoom-in;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 200px 200px 21px 21px;
  pointer-events: none;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.2s var(--ease-out);
}

.hero-photo-img.is-loaded {
  opacity: 1;
}

.hero-photo:hover .hero-photo-img.is-loaded {
  transform: scale(1.025);
}

.hero-photo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 54%, rgba(5, 3, 14, 0.7) 100%);
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute;
  right: 26px;
  bottom: 22px;
  left: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(246, 242, 255, 0.84);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-photo-caption-kicker {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--lilac);
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(233, 213, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--one {
  inset: -5% -13% 9% -13%;
  transform: rotate(-11deg);
}

.hero-orbit--two {
  inset: 10% -20% -2% -20%;
  border-color: rgba(244, 114, 182, 0.14);
  transform: rotate(9deg);
}

.hero-visual-star {
  position: absolute;
  z-index: 4;
  color: rgba(242, 211, 170, 0.85);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 10px rgba(242, 211, 170, 0.55));
  animation: softFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-visual-star--one {
  top: 17%;
  left: -5%;
}

.hero-visual-star--two {
  right: -6%;
  bottom: 19%;
  animation-delay: 2.4s;
}

.hero-badge {
  position: absolute;
  top: 5%;
  right: -4%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(242, 211, 170, 0.28);
  border-radius: 50%;
  background: rgba(12, 6, 26, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotate(5deg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.95;
  color: var(--gold);
}

.hero-badge-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.46rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(242, 211, 170, 0.86);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 211, 170, 0.6));
}

.hero-eyebrow::after {
  background: linear-gradient(90deg, rgba(242, 211, 170, 0.6), transparent);
}

.hero-title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 10.5vw, 8.2rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title-top,
.hero-title-bottom {
  display: block;
  opacity: 0;
  animation: heroLineIn 1.4s var(--ease-out) forwards;
}

.hero-title-top {
  padding-bottom: 0.04em;
  animation-delay: 0.3s;
}

.hero-title-bottom {
  padding-bottom: 0.12em;
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(105deg, #ffffff 0%, #ede4ff 26%, #f5b9dc 62%, #fecdd3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(244, 114, 182, 0.22));
  animation-delay: 0.45s;
}

.hero-subtitle {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: clamp(0.98rem, 2vw, 1.16rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.hero-intro {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(195, 186, 217, 0.82);
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
}

.hero-cta {
  margin-top: 0;
}

.hero .btn {
  margin-top: 0;
}

.hero .hero-eyebrow {
  transition-delay: 0.12s;
}

.hero .hero-subtitle {
  transition-delay: 0.7s;
}

.hero .hero-intro {
  transition-delay: 0.8s;
}

.hero-cta {
  transition-delay: 0.88s;
}

.hero .hero-note {
  transition-delay: 1.05s;
}

.hero-note {
  margin-top: 26px;
  color: rgba(169, 159, 196, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(196, 181, 253, 0.45);
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.scroll-hint-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.6));
  overflow: hidden;
  position: relative;
}

.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background: var(--pink);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

.main-content {
  position: relative;
  z-index: 1;
}

.story {
  background: radial-gradient(ellipse 55% 40% at 50% 0%, rgba(76, 29, 149, 0.14), transparent 70%);
}

.timeline {
  position: relative;
  width: var(--container);
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.4) 8%, rgba(244, 114, 182, 0.3) 92%, transparent);
}

.memory {
  position: relative;
  width: calc(50% - 48px);
  margin-bottom: clamp(34px, 5vw, 62px);
}

.memory:last-child {
  margin-bottom: 0;
}

.memory:nth-child(odd) {
  margin-right: auto;
}

.memory:nth-child(even) {
  margin-left: auto;
}

.memory-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022) 60%, rgba(139, 92, 246, 0.04));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.55s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s ease;
}

.memory-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 181, 253, 0.32);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 50px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.photo-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.photo-trigger:focus-visible {
  outline: 2px solid rgba(244, 114, 182, 0.85);
  outline-offset: 4px;
}

.photo-zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 3, 16, 0.52);
  color: rgba(246, 242, 255, 0.72);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.photo-trigger:hover .photo-zoom-hint,
.photo-trigger:focus-visible .photo-zoom-hint {
  opacity: 1;
  transform: none;
}

.photo-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -46px 64px rgba(5, 3, 14, 0.2);
  pointer-events: none;
}

.photo-frame--portrait {
  aspect-ratio: 4 / 5;
}

.photo-frame--square {
  aspect-ratio: 1 / 1;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #160c2b;
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1px 1px at 72% 16%, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1.4px 1.4px at 38% 68%, rgba(251, 207, 232, 0.7), transparent 100%),
    radial-gradient(1px 1px at 86% 62%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 56% 34%, rgba(233, 213, 255, 0.65), transparent 100%),
    radial-gradient(1.2px 1.2px at 22% 84%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 92% 34%, rgba(255, 255, 255, 0.4), transparent 100%),
    linear-gradient(142deg, #1d1138 0%, #301454 48%, #120b26 100%);
}

.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 38% 42%, rgba(139, 92, 246, 0.28), transparent 52%);
  filter: blur(20px);
}

.photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 34% 32%, #fff8ff 0%, #e9d5ff 28%, #c084fc 52%, rgba(124, 58, 237, 0.24) 72%, transparent 76%);
  filter: blur(6px);
  opacity: 0.8;
  box-shadow: 0 0 60px rgba(192, 132, 252, 0.4);
}

.photo-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68%;
  aspect-ratio: 2.4;
  transform: translate(-50%, -50%) rotate(-17deg);
  border: 1px solid rgba(233, 213, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(192, 132, 252, 0.14);
}

.photo-orbit::after {
  content: "";
  position: absolute;
  top: 4%;
  right: 14%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fdf2ff;
  box-shadow: 0 0 10px rgba(253, 242, 255, 0.9);
}

.photo-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(233, 213, 255, 0.62);
}

.memory-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.memory-img.is-loaded {
  opacity: 1;
}

.memory-card:hover .memory-img.is-loaded {
  transform: scale(1.035);
}

.memory-body {
  padding: clamp(20px, 3vw, 28px);
}

.memory-date {
  display: inline-block;
  color: rgba(242, 211, 170, 0.78);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.memory-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
}

.memory-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
}

.timeline-dot {
  position: absolute;
  top: 44px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac), var(--pink));
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12), 0 0 24px rgba(244, 114, 182, 0.6);
}

.memory:nth-child(odd) .timeline-dot {
  right: -54px;
}

.memory:nth-child(even) .timeline-dot {
  left: -54px;
}

.letters {
  background:
    radial-gradient(ellipse 48% 38% at 12% 30%, rgba(139, 92, 246, 0.1), transparent 70%),
    radial-gradient(ellipse 42% 34% at 88% 70%, rgba(190, 24, 93, 0.08), transparent 70%);
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
  width: var(--container);
  margin: 0 auto;
  align-items: start;
}

.letter-card {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 92px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018) 65%, rgba(139, 92, 246, 0.035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.55s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s ease;
}

.letter-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 114, 182, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 0 46px rgba(244, 114, 182, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.letter-card.is-open {
  border-color: rgba(244, 114, 182, 0.3);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.envelope {
  display: block;
  width: 100%;
  padding: 14px 14px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.envelope-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.72;
  perspective: 900px;
}

.env-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(31deg, transparent 49.55%, rgba(255, 255, 255, 0.07) 49.8%, rgba(255, 255, 255, 0.07) 50.1%, transparent 50.35%) left bottom / 50% 100% no-repeat,
    linear-gradient(-31deg, transparent 49.55%, rgba(255, 255, 255, 0.07) 49.8%, rgba(255, 255, 255, 0.07) 50.1%, transparent 50.35%) right bottom / 50% 100% no-repeat,
    linear-gradient(155deg, #2f1656 0%, #1c0e35 58%, #120a24 100%);
  box-shadow: inset 0 0 44px rgba(139, 92, 246, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.env-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(244, 114, 182, 0.16), transparent 60%);
  pointer-events: none;
}

.env-body {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
}

.env-paper {
  position: absolute;
  top: 14%;
  right: 7%;
  left: 7%;
  z-index: 1;
  height: 66%;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #f8f1ff, #e6d8f3);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.24);
  transform: translateY(45%);
  transition: transform 0.8s var(--ease-out);
}

.env-front {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 58%;
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(31deg, transparent 49.55%, rgba(255, 255, 255, 0.055) 49.8%, rgba(255, 255, 255, 0.055) 50.1%, transparent 50.35%) left top / 50% 100% no-repeat,
    linear-gradient(-31deg, transparent 49.55%, rgba(255, 255, 255, 0.055) 49.8%, rgba(255, 255, 255, 0.055) 50.1%, transparent 50.35%) right top / 50% 100% no-repeat,
    linear-gradient(180deg, #2c154d 0%, #1a0e30 64%, #130a24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -24px 40px rgba(8, 3, 18, 0.28);
  pointer-events: none;
}

.env-flap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: 66%;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #4c2a80 0%, #2b1548 78%, #241238 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32));
  transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.1, 1), filter 0.5s ease;
}

.env-flap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.env-seal {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 228, 230, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fecdd3 0%, #fb7185 38%, #e11d48 68%, #881337 100%);
  color: #fff1f2;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(136, 19, 55, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.3), inset 0 -4px 8px rgba(136, 19, 55, 0.4);
  transform: translate(-50%, -50%);
  transition: transform 0.7s var(--ease-out), opacity 0.45s ease;
}

.envelope:hover .env-paper {
  transform: translateY(30%);
}

.envelope:hover .env-flap {
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.4));
}

.letter-card.is-open .env-flap {
  transform: rotateX(-172deg);
  filter: drop-shadow(0 -10px 16px rgba(0, 0, 0, 0.28));
}

.letter-card.is-open .env-seal {
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.6) rotate(28deg);
}

.letter-card.is-open .env-paper {
  transform: translateY(6%);
}

.envelope-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 10px 24px;
}

.env-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 211, 170, 0.24);
  border-radius: 50%;
  color: rgba(242, 211, 170, 0.8);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.env-title {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.9vw, 1.4rem);
  font-weight: 500;
  line-height: 1.2;
}

.env-cta {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.envelope:hover .env-cta {
  color: var(--pink);
}

.letter-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.8s var(--ease-out), opacity 0.5s ease;
}

.letter-card.is-open .letter-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.letter-inner {
  min-height: 0;
  overflow: hidden;
}

.letter-paper {
  position: relative;
  margin: 4px 14px 16px;
  padding: clamp(22px, 3.4vw, 32px);
  border-radius: 18px;
  color: #2f1d42;
  background-color: #f4ecfb;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(88, 52, 128, 0.07) 32px),
    radial-gradient(circle at 100% 0%, rgba(244, 114, 182, 0.14), transparent 55%),
    linear-gradient(180deg, #fbf7ff, #eee3f7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.letter-paper::before {
  content: "✦";
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(190, 24, 93, 0.35);
  font-size: 0.8rem;
}

.letter-kicker {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9d5f86;
}

.letter-paper h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.16;
  color: #381b52;
}

.letter-paper h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, #b06a9c, transparent);
}

.letter-paper p {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  font-weight: 400;
  line-height: 1.68;
  color: #463257;
}

.letter-sign {
  margin-top: 20px !important;
  font-style: italic;
  font-size: 1.02rem !important;
  color: #8b3f6f !important;
  text-align: right;
}

.letter-close {
  margin-top: 18px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(88, 52, 128, 0.32);
  background: transparent;
  color: #6b4788;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.letter-close:hover {
  color: #8b3f6f;
  border-color: #8b3f6f;
}

.galaxy {
  background: radial-gradient(ellipse 55% 45% at 50% 55%, rgba(76, 29, 149, 0.12), transparent 72%);
}

.galaxy-stage {
  position: relative;
  height: clamp(520px, 76vh, 740px);
  width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(196, 181, 253, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(ellipse at 20% 18%, rgba(190, 24, 93, 0.13), transparent 56%),
    radial-gradient(ellipse at 82% 30%, rgba(67, 56, 202, 0.18), transparent 52%),
    linear-gradient(180deg, #080416 0%, #0e0826 52%, #05030e 100%);
  box-shadow: inset 0 0 140px rgba(2, 0, 10, 0.8), 0 40px 100px rgba(0, 0, 0, 0.42);
  touch-action: pan-y;
}

#galaxyCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.galaxy-nebula {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(58px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.galaxy-nebula--one {
  top: 8%;
  left: 6%;
  width: 52%;
  height: 58%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.26), transparent 66%);
  animation: nebulaFloatOne 20s ease-in-out infinite alternate;
}

.galaxy-nebula--two {
  right: 2%;
  bottom: 4%;
  width: 48%;
  height: 54%;
  background: radial-gradient(circle, rgba(190, 24, 93, 0.17), transparent 66%);
  animation: nebulaFloatTwo 26s ease-in-out infinite alternate;
}

.galaxy-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 4;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(5, 3, 14, 0.38);
  color: rgba(233, 213, 255, 0.62);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.galaxy-stage.has-card .galaxy-hint {
  opacity: 0;
}

.special-stars {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.special-star {
  position: absolute;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.special-star::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  padding: 6px 11px;
  border: 1px solid rgba(233, 213, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 5, 22, 0.82);
  color: rgba(246, 242, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.special-star:hover::after,
.special-star:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.special-star:focus-visible {
  outline: 1px solid rgba(249, 168, 212, 0.8);
  outline-offset: 3px;
}

.galaxy-shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(4, 2, 12, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.galaxy-stage.has-card .galaxy-shade {
  opacity: 1;
  pointer-events: auto;
}

.star-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: min(440px, calc(100% - 36px));
  max-height: calc(100% - 44px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(233, 213, 255, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.2), transparent 55%),
    linear-gradient(160deg, rgba(38, 22, 64, 0.97), rgba(14, 9, 30, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.94);
  transition: opacity 0.45s ease, transform 0.55s var(--ease-out), visibility 0.45s;
}

.star-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 114, 182, 0.7), transparent);
}

.galaxy-stage.has-card .star-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.star-card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.star-card-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--muted-strong);
}

.star-card-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.star-card-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.star-card-close:hover {
  background: rgba(244, 114, 182, 0.14);
  border-color: rgba(244, 114, 182, 0.4);
  transform: rotate(90deg);
}

.star-card-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(145deg, #1d1138, #301454 55%, #120b26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
}

.star-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -34px 50px rgba(5, 3, 14, 0.22);
  pointer-events: none;
}

.star-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.star-card-photo img.is-loaded {
  opacity: 1;
}

.star-card-photo:hover img.is-loaded {
  transform: scale(1.03);
}

.star-card-photo .photo-zoom-hint {
  top: auto;
  right: 10px;
  bottom: 10px;
}

.star-card-ornament {
  display: block;
  color: var(--gold);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 10px rgba(242, 211, 170, 0.6));
}

.star-card-kicker {
  margin-top: 14px;
  color: rgba(242, 211, 170, 0.78);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.star-card-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.12;
}

.star-card-date {
  margin-top: 10px;
  color: rgba(244, 114, 182, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.star-card-text {
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
}

.finale {
  position: relative;
  padding-bottom: clamp(70px, 9vw, 120px);
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(88, 28, 135, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 34% at 50% 75%, rgba(190, 24, 93, 0.1), transparent 70%);
}

.finale-inner {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.finale .eyebrow {
  letter-spacing: 0.3em;
}

.finale-quote {
  max-width: 900px;
  margin: 22px auto 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  background: linear-gradient(115deg, #ffffff 0%, #f1e8ff 32%, #f7bfdc 68%, #fecdd3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(244, 114, 182, 0.14));
  text-wrap: balance;
}

.finale-quote .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(10px);
  transition: opacity 1.1s ease, transform 1.1s var(--ease-out), filter 1.1s ease;
  transition-delay: calc(var(--i) * 65ms);
}

.finale-quote.in .word {
  opacity: 1;
  transform: none;
  filter: none;
}

.finale-message {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.7vw, 1.04rem);
  font-weight: 300;
  line-height: 1.8;
}

.personal-letter {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  margin: clamp(48px, 7vw, 82px) auto 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018) 60%, rgba(139, 92, 246, 0.04));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
}

.letter-photo {
  position: relative;
  display: block;
  width: 100%;
  min-height: 340px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1d1138, #301454 55%, #120b26);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.letter-photo .photo-zoom-hint {
  top: 18px;
  right: 18px;
}

.letter-photo .photo-frame {
  position: absolute;
  inset: 0;
}

.letter-photo-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.letter-photo-img.is-loaded {
  opacity: 1;
}

.personal-letter-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.4vw, 52px);
}

.personal-letter-body h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
}

.personal-letter-body h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.8), transparent);
}

.personal-letter-body > div p {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.04rem, 1.8vw, 1.15rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--muted-strong);
}

.personal-letter-sign {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(249, 168, 212, 0.85);
  text-align: right;
}

#restartJourney {
  margin-top: clamp(42px, 6vw, 64px);
}

.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: var(--container);
  margin: 0 auto;
  padding: 32px 0 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(169, 159, 196, 0.55);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-orbit {
  letter-spacing: 0.4em;
  color: rgba(242, 211, 170, 0.4);
}

.music-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(10, 7, 24, 0.62);
  color: var(--muted-strong);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.music-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(10, 7, 24, 0.62);
  color: var(--muted-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.music-volume-icon {
  font-size: 0.85rem;
  line-height: 1;
  color: var(--lilac);
}

.music-volume-input {
  width: 76px;
  height: 16px;
  margin: 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.music-toggle:hover {
  border-color: rgba(244, 114, 182, 0.38);
  color: var(--text);
  background: rgba(20, 12, 38, 0.78);
}

.music-toggle[aria-pressed="true"] {
  border-color: rgba(244, 114, 182, 0.35);
  color: #fbcfe8;
}

.music-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.music-bars i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--lilac), var(--pink));
  transition: height 0.3s ease;
}

.music-toggle[aria-pressed="true"] .music-bars i {
  animation: equalize 1.1s ease-in-out infinite;
}

.music-toggle[aria-pressed="true"] .music-bars i:nth-child(2) {
  animation-delay: 0.18s;
}

.music-toggle[aria-pressed="true"] .music-bars i:nth-child(3) {
  animation-delay: 0.36s;
}

.music-toggle[aria-pressed="true"] .music-bars i:nth-child(4) {
  animation-delay: 0.52s;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 16px;
  background: rgba(20, 10, 34, 0.92);
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(3, 1, 9, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1px;
  background: rgba(246, 242, 255, 0.9);
}

.lightbox-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover {
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.14);
  transform: rotate(90deg);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(1100px, 92vw);
  margin: 0;
  transform: translateY(10px) scale(0.96);
  transition: transform 0.55s var(--ease-out);
}

.lightbox.is-open .lightbox-figure {
  transform: none;
}

.lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #0b0618;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 80px rgba(139, 92, 246, 0.15);
}

.lightbox-caption {
  max-width: 60ch;
  color: var(--muted-strong);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.95s ease, transform 0.95s var(--ease-out), filter 0.95s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.letter-card.reveal {
  transition: opacity 0.95s ease, transform 0.55s var(--ease-out), filter 0.95s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.btn.reveal {
  transition: opacity 0.95s ease, transform 0.45s var(--ease-out), filter 0.95s ease, box-shadow 0.45s ease, background 0.45s ease, border-color 0.45s ease;
}

.hero .reveal {
  transition-duration: 1.1s;
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(0.32em);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes nebulaFloatOne {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6%, 4%, 0) scale(1.08);
  }
}

@keyframes nebulaFloatTwo {
  from {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  to {
    transform: translate3d(-5%, 6%, 0) scale(0.97);
  }
}

@keyframes nebulaFloatThree {
  from {
    transform: translate3d(-2%, 0, 0) scale(0.98);
  }
  to {
    transform: translate3d(3%, -4%, 0) scale(1.06);
  }
}

@keyframes starDriftFar {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-12px, 8px, 0);
  }
}

@keyframes starDriftMid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(18px, -14px, 0);
  }
}

@keyframes starDriftNear {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-24px, 18px, 0) scale(1.015);
  }
}

@keyframes shootingStar {
  0%,
  84% {
    opacity: 0;
    transform: rotate(-24deg) translate3d(0, 0, 0);
  }
  88% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-24deg) translate3d(-52vw, 30vh, 0);
  }
}

@keyframes scrollPulse {
  0% {
    transform: translateY(-18px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(46px);
    opacity: 0;
  }
}

@keyframes equalize {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 14px;
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.62;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .timeline::before {
    left: 22px;
    transform: none;
  }

  .memory {
    width: 100%;
    padding-left: 62px;
    margin-bottom: 28px;
  }

  .memory:nth-child(odd),
  .memory:nth-child(even) {
    margin-right: 0;
    margin-left: 0;
  }

  .memory:nth-child(odd) .timeline-dot,
  .memory:nth-child(even) .timeline-dot {
    left: 17px;
    right: auto;
    top: 40px;
  }

  .personal-letter {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .letter-photo {
    min-height: 300px;
  }
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "actions";
    row-gap: 34px;
    width: min(640px, 100%);
    text-align: center;
  }

  .hero-content {
    justify-self: center;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-subtitle {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-self: center;
    margin-top: 0;
    text-align: center;
  }

  .hero-cta {
    margin-top: 0;
  }

  .hero-visual {
    justify-self: center;
    width: min(64vw, 330px);
    padding: 0;
  }

  .hero-badge {
    top: 4%;
    right: -4%;
    width: 78px;
    height: 78px;
  }

  .hero-badge-number {
    font-size: 1.8rem;
  }

  .hero-badge-text {
    font-size: 0.42rem;
  }

  .hero .hero-note {
    margin-top: 20px;
  }
}

@media (max-width: 860px) {
  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--stroke);
    border-radius: 22px;
    background: rgba(9, 5, 22, 0.92);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.4s var(--ease-out);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  body.nav-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.8rem;
  }

  .nav a:hover,
  .nav a.is-active {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav a::after {
    display: none;
  }

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

  .personal-letter {
    grid-template-columns: 1fr;
  }

  .letter-photo {
    min-height: 280px;
  }

  .finale-quote {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 36px);
  }

  .hero {
    padding: 88px 18px 56px;
  }

  .hero-layout {
    row-gap: 26px;
  }

  .hero-title {
    font-size: clamp(3.1rem, 15.5vw, 4.6rem);
  }

  .hero-subtitle {
    max-width: 320px;
    margin-top: 20px;
  }

  .hero-intro {
    max-width: 360px;
    margin-top: 14px;
    font-size: 0.88rem;
  }

  .hero-cta {
    margin-top: 0;
  }

  .hero-visual {
    width: min(58vw, 220px);
  }

  .hero-badge {
    right: -3%;
    width: 66px;
    height: 66px;
  }

  .hero-badge-number {
    font-size: 1.55rem;
  }

  .hero-badge-text {
    font-size: 0.37rem;
  }

  .hero .hero-note {
    display: none;
  }

  .hero .btn {
    padding: 15px 24px;
    font-size: 0.82rem;
  }

  .scroll-hint {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .memory {
    padding-left: 44px;
  }

  .timeline::before {
    left: 12px;
  }

  .memory:nth-child(odd) .timeline-dot,
  .memory:nth-child(even) .timeline-dot {
    left: 7px;
    width: 10px;
    height: 10px;
  }

  .memory-card {
    border-radius: 22px;
  }

  .envelope {
    padding: 10px 10px 0;
  }

  .envelope-visual {
    aspect-ratio: 1.55;
  }

  .env-seal {
    width: 38px;
    height: 38px;
  }

  .envelope-meta {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px 4px 20px;
  }

  .env-cta {
    display: none;
  }

  .env-title {
    font-size: 1.18rem;
  }

  .letter-paper {
    margin: 2px 10px 12px;
    padding: 22px 20px;
  }

  .galaxy-stage {
    height: clamp(460px, 70vh, 560px);
    border-radius: 24px;
  }

  .galaxy-hint {
    bottom: 16px;
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    padding: 9px 14px;
  }

  .star-card {
    max-height: calc(100% - 28px);
    border-radius: 22px;
    padding: 22px 20px;
  }

  .star-card-photo {
    aspect-ratio: 3 / 2;
    margin-bottom: 16px;
  }

  .special-star::after {
    font-size: 0.56rem;
    max-width: 46vw;
    white-space: normal;
    text-align: center;
  }

  .letter-photo {
    min-height: 260px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .lightbox-image {
    max-height: 72vh;
    border-radius: 14px;
  }

  .lightbox-caption {
    font-size: 0.95rem;
  }

  .personal-letter-body {
    padding: 26px 22px 30px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 96px;
  }

  .music-player {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .music-toggle {
    padding: 12px 14px;
  }

  .music-volume {
    padding: 10px 12px;
  }

  .music-volume-input {
    width: 58px;
  }

  .music-label {
    display: none;
  }

  .toast {
    right: 14px;
    bottom: 72px;
    max-width: calc(100vw - 28px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .hero .reveal,
  .finale-quote .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-title-top,
  .hero-title-bottom {
    opacity: 1;
  }

  .timeline-dot {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
  }
}
