:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #6b6b6b;
  --line: #e5e5e5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* =========================================================
   NAV — mobile-first
========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.nav-brand { font-weight: 700; font-size: 10px; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-links {
  position: fixed;
  top: 53px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  display: none;
  padding: 24px 20px 32px;
  gap: 18px;
}
.nav-links.on { display: flex; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: 16px; letter-spacing: 0.1em;
}

/* Desktop nav */
@media (min-width: 720px) {
  .nav-inner { padding: 22px 40px; font-size: 11px; }
  .nav-brand { font-size: 11px; }
  .nav-toggle { display: none; }
  .nav-links {
    position: static; display: flex; flex-direction: row;
    padding: 0; gap: 36px; border: none; background: transparent;
  }
  .nav-links a { font-size: 11px; font-weight: 500; }
  .nav-links a:hover { opacity: 0.5; }
}

/* =========================================================
   HERO — mobile-first
========================================================= */
.hero {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 90px 20px 60px;
  position: relative;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(54px, 16vw, 200px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0 auto 32px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  max-width: 320px;
}

/* META ROW (age + countdown) — single column on mobile */
.meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-width: 880px;
  margin: 0 auto 32px;
  background: var(--line);
  border: 1px solid var(--line);
}
.meta {
  background: var(--bg);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
}
.meta-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink-soft); font-weight: 600;
}
.meta-value {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: background .2s, transform .2s;
}
.cta:hover { background: #333; }
.cta:active { transform: translateY(1px); }

@media (min-width: 720px) {
  .hero { padding: 140px 40px 0; }
  .eyebrow { font-size: 11px; margin-bottom: 32px; }
  .hero-sub { font-size: 15px; max-width: 520px; margin-bottom: 48px; }
  .meta-row { grid-template-columns: 1fr 1fr; margin-bottom: 56px; }
  .meta { padding: 28px 24px; gap: 10px; }
  .meta-label { font-size: 10px; }
  .meta-value { font-size: clamp(18px, 1.8vw, 22px); }
  .cta { padding: 16px 38px; font-size: 11px; }
}

/* =========================================================
   CASCADE — scroll-driven horizontal. Page scrolls down, photos slide L→R.
========================================================= */
.cascade-wrap {
  position: relative;
  height: 300vh; /* extra vertical scroll room to drive the animation */
  background: var(--bg);
}
.cascade-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 40px;
}
.c-track {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding: 0 40px;
  width: max-content;
  will-change: transform;
  transition: transform 0.05s linear;
}
.c-tile {
  flex: 0 0 auto;
  width: 70vw;
  max-width: 340px;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0f0f0;
  transform: translateY(calc(var(--h) * -20px));
  max-height: 70vh;
}
.c-tile:nth-child(even) { aspect-ratio: 4/5; }
.c-tile img { width: 100%; height: 100%; object-fit: cover; }

.cascade-hint {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center;
  gap: 8px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 600; color: var(--ink-soft);
  z-index: 5;
  animation: hintPulse 2s ease-in-out infinite;
}
.cascade-hint .arrow {
  display: inline-block;
  animation: arrowBob 1.8s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (min-width: 720px) {
  .cascade-wrap { height: 350vh; }
  .c-track { gap: 28px; padding: 0 6vw; }
  .c-tile {
    width: clamp(280px, 26vw, 440px);
    transform: translateY(calc(var(--h) * -42px));
    max-height: 75vh;
  }
  .c-tile:nth-child(even) {
    aspect-ratio: 4/5;
    width: clamp(320px, 28vw, 480px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-tile { opacity: 1; animation: none; }
}

/* =========================================================
   SECTIONS
========================================================= */
.section { padding: 80px 20px; }
.section.alt {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.container { max-width: 1440px; margin: 0 auto; }
.container.narrow { max-width: 820px; margin: 0 auto; }
.section-head { text-align: left; margin-bottom: 48px; }

.display {
  font-size: clamp(36px, 10vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.lede {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 640px;
}

@media (min-width: 720px) {
  .section { padding: 160px 40px; }
  .section-head { margin-bottom: 80px; }
  .lede { font-size: clamp(16px, 1.2vw, 20px); }
}

/* =========================================================
   CANDLE
========================================================= */
.candle {
  width: 48px;
  height: 180px;
  margin: 0 auto 24px;
  position: relative;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.flame {
  width: 12px; height: 24px;
  background: var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  margin-bottom: 6px;
  transform-origin: bottom center;
  animation: flicker 1.6s ease-in-out infinite alternate;
  transition: opacity .5s ease, transform .5s ease;
}
.flame.out { opacity: 0; transform: translateY(8px) scale(0.4); animation: none; }
@keyframes flicker {
  0%   { transform: rotate(-2deg) scaleY(1); }
  100% { transform: rotate(2deg) scaleY(1.08); }
}
.wax { width: 6px; height: 130px; background: var(--ink-soft); }
.base { width: 48px; height: 6px; background: var(--ink); margin-top: 6px; }
.candle-state {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.wish-message {
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}
.wish-message.on { opacity: 1; transform: translateY(0); }
.wish-text {
  font-size: clamp(20px, 6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 640px;
  margin: 12px auto 0;
}
@media (min-width: 720px) {
  .candle { width: 60px; height: 220px; margin-bottom: 32px; }
  .flame { width: 14px; height: 28px; }
  .wax { width: 8px; height: 160px; }
  .base { width: 60px; }
  .candle-state { font-size: 11px; margin-bottom: 64px; }
}

/* =========================================================
   FEATURE
========================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 20px;
}
.feature-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.feature-media.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.03) 14px 28px);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 880px) {
  .feature {
    grid-template-columns: 1.1fr 1fr;
    gap: 100px;
    padding: 160px 40px;
    align-items: center;
  }
}

/* =========================================================
   FILTERS
========================================================= */
.filters {
  display: flex; flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filters { scrollbar-width: none; }
.filter {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 14px 14px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s, background .2s;
}
.filter.on { color: white; background: var(--ink); }
@media (min-width: 720px) {
  .filters { flex-wrap: wrap; padding: 16px 0; gap: 4px; margin-bottom: 40px; }
  .filter { font-size: 11px; padding: 8px 16px; letter-spacing: 0.18em; }
  .filter:hover { color: var(--ink); }
}

/* =========================================================
   SCROLL YEAR INDICATOR
========================================================= */
.scroll-year {
  position: sticky;
  top: 53px;
  z-index: 30;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.scroll-year.on { opacity: 1; transform: translateY(0); }
.sy-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 600; color: var(--ink-soft);
}
.sy-value {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sy-progress {
  margin-left: auto;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 600; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 720px) {
  .scroll-year { top: 80px; gap: 20px; padding: 16px 20px; margin-bottom: 24px; }
  .sy-label { font-size: 10px; }
  .sy-value { font-size: clamp(28px, 4vw, 56px); }
  .sy-progress { font-size: 11px; }
}

/* =========================================================
   GALLERY
========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.g-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f0f0f0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s ease;
}
.g-item.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.025) 14px 28px);
}
.g-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  color: white;
  font-size: 9px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}

/* Video tiles */
.g-item.is-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.g-item.is-video.playing video { opacity: 1; }
.g-item .vbadge {
  position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: white;
  font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 5px 8px;
  z-index: 2;
}

@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .g-item:hover img { transform: scale(1.04); }
  .g-item figcaption {
    padding: 20px 24px; font-size: 11px;
    opacity: 0; transition: opacity .4s ease;
  }
  .g-item:hover figcaption { opacity: 1; }
  .g-item.is-video:hover video { opacity: 1; }
  .g-item .vbadge { top: 12px; left: 12px; font-size: 9px; padding: 6px 10px; }
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(255,255,255,0.98);
  display: none;
  align-items: center; justify-content: center;
  padding: 60px 16px;
}
.lightbox.on { display: flex; }
.lb-stage {
  max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lb-media { display: flex; align-items: center; justify-content: center; max-height: 75vh; }
.lb-stage img, .lb-media img, .lb-media video {
  max-width: 100%; max-height: 75vh; object-fit: contain;
  outline: none;
}
.lb-stage figcaption {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink);
}
.lb-close, .lb-nav {
  position: absolute;
  background: transparent; border: none;
  color: var(--ink); font-size: 28px;
  cursor: pointer; padding: 14px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.lb-close { top: 10px; right: 14px; font-size: 36px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 40px; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
@media (min-width: 720px) {
  .lightbox { padding: 80px 60px; }
  .lb-stage img, .lb-media img, .lb-media video { max-height: 80vh; }
  .lb-stage figcaption { font-size: 11px; }
  .lb-close { top: 20px; right: 30px; font-size: 32px; }
  .lb-nav { font-size: 48px; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-close:hover, .lb-nav:hover { opacity: 0.5; }
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  padding: 40px 20px;
  color: var(--ink-soft);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-top: 1px solid var(--line);
}
.footer p { max-width: 1440px; margin: 0 auto; }
@media (min-width: 720px) {
  .footer { padding: 60px 40px; font-size: 11px; }
}

/* =========================================================
   REVEAL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flame { animation: none; }
}
