:root{
  --ink: #0b1f1c;
  --ink-2: #123029;
  --gold: #e8a63d;
  --gold-soft: #f0c674;
  --coral: #e2604a;
  --ivory: #f4eee1;
  --sage: #8fa8a2;
  --line: rgba(244,238,225,0.14);
  --edge: clamp(1rem, 4vw, 2.5rem);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;
}

*{ box-sizing: border-box; }

html, body{ margin: 0; padding: 0; }

body{
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
}

.stage{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--edge) + 20px) calc(var(--edge) + 20px);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stage::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--ink) 90%);
  z-index: 1;
  pointer-events: none;
}

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

.corner{
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--gold);
  opacity: 0.55;
  z-index: 2;
}
.corner-tl{ top: var(--edge); left: var(--edge); border-right: none; border-bottom: none; }
.corner-tr{ top: var(--edge); right: var(--edge); border-left: none; border-bottom: none; }
.corner-bl{ bottom: var(--edge); left: var(--edge); border-right: none; border-top: none; }
.corner-br{ bottom: var(--edge); right: var(--edge); border-left: none; border-top: none; }

.top-row{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.eyebrow{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.monogram{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--sage);
}

.center-block{
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}

.names{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.name-line{ display: block; }
.amp-line{ display: flex; align-items: baseline; gap: 0.28em; }

.amp{
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 0.85em;
  display: inline-block;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe{
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.date-row{
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.rule{
  width: clamp(2rem, 6vw, 4.5rem);
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  flex: none;
}

.countdown{
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1rem, 3vw, 2.25rem);
  margin-top: 0.25rem;
}

.unit{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  min-width: 3.2ch;
}

.num{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
  display: inline-block;
}

.num.pulse{
  animation: pulse 0.4s ease;
}

@keyframes pulse{
  0% { transform: scale(1.15); color: var(--gold-soft); }
  100% { transform: scale(1); color: var(--ivory); }
}

.label{
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
}

.bottom-row{
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--sage);
  letter-spacing: 0.02em;
}

.bottom-row p{ margin: 0; }

.reveal{
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(.16,.8,.24,1) forwards;
  animation-delay: calc(var(--d) * 90ms + 150ms);
}

@keyframes rise{
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce){
  .reveal{ animation: none !important; opacity: 1; transform: none; }
  .amp{ animation: none !important; }
  .num.pulse{ animation: none !important; }
}

@media (max-width: 520px){
  .countdown{ gap: 0.9rem; }
  .unit{ min-width: 2.6ch; }
}
