:root {
  --sky-top: #D8D1C9;
  --sky-mid: #CFC8BF;
  --haze: #948E82;
  --paper: #EDE7DF;
  --paper-deep: #E3DCD3;
  --ink: #1E2530;
  --ink-soft: #4A4F57;
  --sunrise: #8C5440;
  --line: rgba(30, 37, 48, 0.18);

  --script: 'Ephesis', cursive;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --telugu: 'Noto Serif Telugu', serif;

  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: inherit; }
a { color: inherit; }

.caps {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em; /* balance the trailing tracking */
}
.script { font-family: var(--script); font-weight: 400; }
.muted { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 28%, #B4AEA3 52%, var(--haze) 70%);
  overflow: hidden;
}
.hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: max(5svh, 32px) var(--gutter) 0;
}
.ganapati {
  width: 64px;
  height: 71px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ganapati path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.7s ease-in-out forwards; animation-delay: calc(0.15s + var(--i) * 0.11s); }
.ganapati .g-dot, .ganapati .g-fill { fill: var(--ink); stroke: none; opacity: 0; animation: appear 0.5s ease forwards 1.3s; }
.ganapati .g-fill { stroke: var(--ink); stroke-width: 1.2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.telugu { font-family: var(--telugu); font-weight: 500; font-size: 18px; margin-top: 8px; }
.hero__text > .caps { margin-top: 22px; }

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  color: var(--sunrise);
}
.names .script { font-size: clamp(84px, 24vw, 132px); line-height: 0.86; }
.names .amp { font-size: clamp(44px, 12vw, 64px); line-height: 1.05; }
.invite { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 18px; }
.engagement { font-size: clamp(60px, 17vw, 88px); line-height: 0.95; color: var(--ink); }
.rule { width: 48px; height: 1px; background: var(--ink); margin: 18px 0 16px; }
.date { font-family: var(--serif); font-size: clamp(34px, 9vw, 44px); line-height: 1.1; margin-top: 6px; }
.muhurtham { font-size: 16px; letter-spacing: 0.06em; margin-top: 6px; }

.hero__photo {
  position: relative;
  flex: 1 0 46svh;
  margin-top: -14svh;
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
}
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: #F6F2EA;
  padding: 14px 18px 30px;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 1px;
  height: 16px;
  background: currentColor;
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* entrance animations */
.fade { opacity: 0; animation: rise 0.8s ease forwards; animation-delay: var(--d); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.write {
  padding: 0 0.3em 0.22em;
  margin-bottom: -0.22em;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 240% 100%;
  mask-size: 240% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: write 1.3s ease-in-out forwards;
  animation-delay: var(--d);
}
@keyframes write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 12vw, 112px) var(--gutter); }

.countdown { text-align: center; background: var(--paper); }
.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 560px;
  margin: 28px auto 0;
}
.unit { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; }
.unit + .unit { border-left: 1px solid var(--line); }
.num { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 12vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.label { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__after { font-size: clamp(56px, 16vw, 96px); color: var(--sunrise); margin-top: 20px; }
.countdown__note { margin-top: 24px; color: var(--ink-soft); font-size: 15px; }

.film { text-align: center; background: var(--paper-deep); }
.film__frame {
  width: min(100%, 380px);
  margin: 28px auto 0;
  aspect-ratio: 9 / 16;
  background: var(--haze);
  box-shadow: 0 30px 60px -30px rgba(30, 37, 48, 0.45);
}
.film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__hint { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

.band { margin: 0; height: clamp(260px, 50vw, 520px); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

.details {
  display: grid;
  gap: 64px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
}
.detail { display: flex; flex-direction: column; gap: 12px; }
.detail .caps { padding-left: 0; color: var(--ink-soft); }
.detail__big { font-family: var(--serif); font-size: clamp(25px, 6.6vw, 38px); line-height: 1.15; }
address { font-style: normal; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.map { margin-top: 14px; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(0.95); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: #2E3644; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(30, 37, 48, 0.07); }
.btn:focus-visible, .scroll-cue:focus-visible { outline: 2px solid var(--sunrise); outline-offset: 3px; }

.next {
  display: grid;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: center;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .next { grid-template-columns: 1fr 1fr; gap: 64px; } }
.next__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 43% 50%; }
.next__text { display: flex; flex-direction: column; gap: 10px; }
.next__text .caps { padding-left: 0; color: var(--ink-soft); }
.next__title { font-size: clamp(64px, 16vw, 96px); line-height: 0.95; color: var(--sunrise); padding-bottom: 0.1em; }

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 72px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  background: var(--sky-top);
  text-align: center;
}
.footer__names { font-size: clamp(40px, 12vw, 56px); line-height: 1.1; color: var(--sunrise); white-space: nowrap; }
.footer__url { font-size: 13px; letter-spacing: 0.08em; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* wide screens: text on the sky to the left, the two of you to the right */
@media (min-width: 1000px) {
  .hero { flex-direction: row; align-items: stretch; }
  .hero__text { flex: 0 0 48%; justify-content: center; padding: 6svh 3vw; }
  .hero__photo { flex: 1 1 auto; margin: 0; }
  .hero__photo img {
    object-position: 66% 70%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
    mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .write, .ganapati path, .ganapati .g-dot, .ganapati .g-fill, .scroll-cue::after {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}
