:root {
  --bg: #0c0811;
  --bg-soft: #15101d;
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.12);
  --text: #f9f2f7;
  --muted: #d1c5ce;
  --line: rgba(255,255,255,0.15);
  --accent: #ff8eb5;
  --accent-2: #c7a6ff;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 24px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #26162e 0%, var(--bg) 45%, #09060d 100%);
  color: var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.grain,
.bg-blur,
.hearts { position: fixed; inset: 0; pointer-events: none; }
.grain {
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,0.18) 0 1px, transparent 1px);
  background-size: 120px 120px;
}
.bg-blur {
  filter: blur(90px);
  opacity: 0.5;
}
.blur-1 {
  background: rgba(255, 115, 170, 0.28);
  width: 380px; height: 380px; border-radius: 999px;
  left: -80px; top: 120px;
}
.blur-2 {
  background: rgba(181, 145, 255, 0.24);
  width: 420px; height: 420px; border-radius: 999px;
  right: -100px; top: 520px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px min(4vw, 36px);
  backdrop-filter: blur(20px);
  background: rgba(12,8,17,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}
.nav a, .mobile-menu a { transition: color 0.25s ease, transform 0.25s ease; }
.nav a:hover, .mobile-menu a:hover { color: var(--text); transform: translateY(-2px); }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.mobile-menu {
  position: fixed;
  z-index: 49;
  right: 18px;
  top: 78px;
  display: grid;
  gap: 12px;
  padding: 18px;
  width: 220px;
  border: 1px solid var(--line);
  background: rgba(17, 12, 25, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  visibility: hidden;
  transition: 0.25s ease;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

main, .site-footer {
  width: min(calc(100% - 32px), var(--maxw));
  margin: 0 auto;
}
section { padding: 100px 0; }
.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: #f0bfd5;
  margin-bottom: 12px;
}
.hero h1, .section-heading h2, .letter-wrap h2, .modal-card h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  margin: 0;
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.9rem); }
.hero-text, .story-grid p, .timeline-item p, .letter-wrap p, .modal-scroll p {
  color: var(--muted);
  line-height: 1.8;
}
.hero-text { max-width: 62ch; margin: 24px 0 0; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6f92);
  color: #220d14;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 129, 173, 0.28);
}
.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card, .glass {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}
.stat { padding: 18px; }
.stat-label {
  display: block;
  color: #f3c8d8;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.stat strong { font-size: 1.1rem; }
.float-card { animation: bob 6s ease-in-out infinite; }
.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }

.hero-visual {
  position: relative;
  min-height: 680px;
}
.stack-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow);
  will-change: transform;
}
.stack-photo img { width: 100%; height: 100%; object-fit: cover; }
.stack-1 { width: 68%; height: 74%; right: 4%; top: 4%; transform: rotate(6deg); }
.stack-2 { width: 42%; height: 34%; left: 4%; bottom: 16%; transform: rotate(-8deg); }
.stack-3 { width: 38%; height: 28%; right: 16%; bottom: 0; transform: rotate(10deg); }
.ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.ring-1 { width: 240px; height: 240px; left: 4%; top: 4%; animation: spin 20s linear infinite; }
.ring-2 { width: 420px; height: 420px; right: 0; top: 22%; animation: spinReverse 24s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(2.2rem, 5vw, 4.1rem); }
.story-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.story-grid article { padding: 28px; }
.story-grid .wide { grid-column: span 2; }
.story-grid h3, .timeline-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.16), transparent 25%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.spotlight:hover::before { opacity: 1; }

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.memory-card {
  text-align: left;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.memory-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,7,15,0.82), rgba(10,7,15,0.1));
}
.memory-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 0.9 / 1.12;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.memory-card:hover img { transform: scale(1.06); }
.memory-card span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: white;
  font-weight: 600;
}

.timeline-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
}
.timeline-item { padding: 24px; }
.timeline-item:nth-child(odd) { transform: translateY(34px); }
.timeline-date {
  display: inline-block;
  color: #f0bfd5;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.letter-wrap {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 50px;
  color: var(--muted);
}
.accent { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox, .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(6, 5, 10, 0.72);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: 0.28s ease;
  padding: 20px;
}
.lightbox.open, .modal.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content, .modal-card {
  width: min(100%, 980px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(19, 14, 28, 0.9);
  box-shadow: var(--shadow);
}
.lightbox-content { overflow: hidden; }
.lightbox-content img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #120d18;
}
.lightbox-content p {
  margin: 0;
  padding: 18px 22px 24px;
  color: var(--muted);
}
.modal-card {
  position: relative;
  padding: 28px;
  max-height: min(86vh, 860px);
}
.modal-scroll { overflow: auto; max-height: 58vh; padding-right: 8px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.hearts .heart {
  position: absolute;
  bottom: -40px;
  opacity: 0.38;
  animation: rise linear forwards;
  font-size: var(--size);
  left: var(--left);
  animation-duration: var(--duration);
  animation-delay: var(--delay);
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  15% { opacity: 0.34; }
  100% { transform: translateY(-110vh) translateX(var(--drift)) rotate(25deg); opacity: 0; }
}

@media (max-width: 980px) {
  .hero, .story-grid, .masonry, .timeline-wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; order: -1; }
  .stats { grid-template-columns: 1fr; }
  .timeline-wrap::before { display: none; }
  .timeline-item:nth-child(odd) { transform: none; }
  .story-grid .wide { grid-column: auto; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hero { padding-top: 20px; }
  section { padding: 74px 0; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-visual { min-height: 460px; }
  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}
