:root {
  --navy: #0b1220;
  --navy-deep: #060a13;
  --ink: #111a2c;
  --ivory: #f3ece0;
  --ivory-dim: #b9b2a5;
  --gold: #c9a961;
  --gold-light: #e8d39f;
  --hair: rgba(201, 169, 97, 0.35);
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --caps: "Cormorant SC", "Cormorant Garamond", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
em { font-style: italic; color: var(--gold-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  font-family: var(--caps);
  letter-spacing: 0.32em;
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: lowercase;
}

h2 {
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-top: 0.8rem;
}

/* ---------- INTRO ---------- */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.intro__panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--navy-deep);
  transition: transform 1.6s var(--ease);
}
.intro__panel--top { top: 0; border-bottom: 1px solid var(--hair); }
.intro__panel--bottom { bottom: 0; }
.intro__seal {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease);
}
.crest { width: 110px; height: 110px; }
.crest__ring {
  fill: none; stroke: var(--gold); stroke-width: 1;
  stroke-dasharray: 352; stroke-dashoffset: 352;
  animation: draw 2s var(--ease) forwards;
}
.crest__ring--thin { stroke-width: 0.5; stroke-dasharray: 315; stroke-dashoffset: 315; animation-delay: 0.3s; }
.crest__letter {
  font-family: var(--serif); font-style: italic; font-size: 52px; fill: var(--gold-light);
  opacity: 0; animation: fade 1.4s 0.9s var(--ease) forwards;
}
.intro__line {
  font-family: var(--caps); letter-spacing: 0.4em; font-size: 0.75rem; color: var(--ivory-dim);
  opacity: 0; animation: fade 1.2s 1.4s var(--ease) forwards;
}
.intro.open .intro__panel--top { transform: translateY(-100%); }
.intro.open .intro__panel--bottom { transform: translateY(100%); }
.intro.open .intro__seal { opacity: 0; transform: scale(1.08); }
.intro.gone { display: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- HEADER ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem clamp(1rem, 4vw, 3rem);
  mix-blend-mode: normal;
}
.wordmark {
  font-family: var(--caps); font-size: 1.15rem; letter-spacing: 0.35em;
  color: var(--ivory); text-decoration: none;
}
.wordmark span { color: var(--gold); margin: 0 0.1em; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: clamp(7rem, 16vh, 11rem);
  background: radial-gradient(ellipse 120% 70% at 50% 30%, #16213a 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.moon {
  position: absolute; top: 14%; right: 16%; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fbf4e3, #d9cba8 60%, #a8996f);
  box-shadow: 0 0 80px 20px rgba(241, 223, 176, 0.12), 0 0 200px 60px rgba(241, 223, 176, 0.05);
  opacity: 0.85;
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 44% 22%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 72% 30%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 88% 9%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 6% 34%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 92% 38%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 36% 36%, rgba(255,255,255,.25), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.6; } to { opacity: 1; } }

.hero__copy { position: relative; z-index: 3; text-align: center; padding: 0 1rem; }
.hero__title {
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  margin-top: 1.2rem;
  letter-spacing: -0.01em;
}
.hero__year {
  font-family: var(--caps);
  margin-top: 1.6rem;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.6em;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 1.2rem;
}
.hero__year::before, .hero__year::after { content: ""; width: 48px; height: 1px; background: var(--hair); }

.vessel {
  position: absolute; z-index: 2;
  left: 50%; bottom: 12%;
  width: min(1000px, 110vw);
  transform: translateX(-50%);
  animation: bob 9s ease-in-out infinite;
}
.yacht { width: 100%; height: auto; display: block; }
.yacht__body { filter: drop-shadow(0 0 30px rgba(201,169,97,0.08)); }
.gild { stroke: var(--gold); stroke-width: 1; fill: none; opacity: 0.7; }
.gild--faint { opacity: 0.25; }
.yacht__sweep { animation: sweep 7s 3.5s var(--ease) infinite; }
@keyframes sweep {
  0% { transform: translateX(0); }
  55%, 100% { transform: translateX(1700px); }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(6px) rotate(-0.3deg); }
}
/* A silk veil that covers the bow: we only ever show part of her */
.yacht {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 35%, rgba(0,0,0,0.15) 72%, transparent 88%);
  mask-image: linear-gradient(90deg, #000 0%, #000 35%, rgba(0,0,0,0.15) 72%, transparent 88%);
}

.sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 1;
  background: linear-gradient(180deg, #0c1526 0%, var(--navy-deep) 100%);
  border-top: 1px solid rgba(201,169,97,0.12);
}
.sea__glint {
  position: absolute; top: 0; right: 14%; width: 140px; height: 100%;
  background: repeating-linear-gradient(180deg, rgba(241,223,176,0.18) 0 1px, transparent 1px 9px);
  mask-image: linear-gradient(180deg, black, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
  animation: shimmer 4s ease-in-out infinite alternate;
}
@keyframes shimmer { from { opacity: 0.4; transform: scaleX(0.9); } to { opacity: 0.9; transform: scaleX(1.1); } }


/* staggered entrance after the seal opens */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
body.ready .reveal { opacity: 1; transform: none; }
body.ready .hero__copy .reveal:nth-child(1) { transition-delay: 0.2s; }
body.ready .hero__copy .reveal:nth-child(2) { transition-delay: 0.5s; }
body.ready .hero__copy .reveal:nth-child(3) { transition-delay: 0.9s; }
body.ready .hero__copy .reveal:nth-child(4) { transition-delay: 1.2s; }
body.ready .vessel.reveal { transition-delay: 1.2s; transition-duration: 3s; }

/* ---------- COUNTDOWN ---------- */
.clock {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
}
.clock__unit { display: flex; flex-direction: column; align-items: center; }
.clock__num {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 300; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 60%, #8f7640 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.clock__label {
  margin-top: 0.6rem;
  font-family: var(--caps); letter-spacing: 0.3em; font-size: 0.68rem; color: var(--ivory-dim);
  text-transform: lowercase;
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
  .moon { width: 38px; height: 38px; top: 8%; right: 8%; }
  .eyebrow { letter-spacing: 0.2em; }
  .vessel { bottom: 14%; width: 150vw; left: 78%; }
  .clock { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .crest__ring { stroke-dashoffset: 0; }
  .crest__letter, .intro__line { opacity: 1; }
}
