:root {
  --ivory: #f5f5f5;
  --ivory-dim: rgba(245, 245, 245, 0.62);
  --gold: #f07211;
  --gold-soft: rgba(240, 114, 17, 0.55);
  --ink: #000000;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--ink);
  color: var(--ivory);
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.02em;
  background: var(--ink);
  overflow-x: hidden;
}

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

::selection {
  background: var(--gold);
  color: var(--ink);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: var(--ivory);
}

.hero::after {
  content: "";
  position: absolute;
  inset: clamp(0.85rem, 2vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  z-index: 4;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-stage .photo {
  transform: scale(1.08);
  filter: saturate(0.92) contrast(1.05);
  animation: hero-in 1.8s var(--ease) both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(12, 11, 10, 0.28) 0%, rgba(12, 11, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 11, 10, 0.45) 0%, rgba(12, 11, 10, 0.15) 38%, rgba(12, 11, 10, 0.55) 100%);
}

.hero-frame {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 10vh;
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vh, 2.25rem);
}

.count-days .count-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5.5rem, 18vw, 13.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: block;
}

.count-days .count-label {
  margin-top: 0.85rem;
}

.count-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  font-weight: 300;
}

.count-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.count-row .count-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.85rem, 5.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  display: block;
  min-width: 1.35em;
}

.count-sep {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  line-height: 1;
  color: var(--gold-soft);
  padding-top: 0.05em;
}

.hero-site {
  position: absolute;
  right: clamp(1.75rem, 3.2vw, 2.85rem);
  bottom: clamp(1.6rem, 3vw, 2.4rem);
  z-index: 5;
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 300;
}

/* ——— Footer / logo ——— */

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 3.25rem 6vw 3.5rem;
}

.mark h1 {
  font-size: 0;
  line-height: 0;
}

.mark img {
  width: clamp(7.5rem, 14vw, 10.5rem);
  height: auto;
  margin-inline: auto;
}

/* ——— Motion ——— */

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.14);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (min-width: 1100px) {
  .count-row .count-num {
    min-width: 1.5em;
  }
}

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

  .hero-stage .photo {
    animation: none;
    transform: scale(1.04);
  }
}
