:root {
  --maroon: #7b1228;
  --maroon-d: #4a0918;
  --maroon-dd: #2a050d;
  --gold: #e2a727;
  --gold-l: #f3cf6b;
  --indigo: #251a52;
  --indigo-d: #150e30;
  --teal: #1fa99b;
  --pink: #e47fb0;
  --yellow: #f2c230;
  --orange: #ef8a1a;
  --cream: #f7f0e1;
  --paper: #f1e6cd;
  --ink: #1d1320;
  --muted: #5d4b52;
  --bark: #7d2f24;
  --leaf: #2f7d4e;
  --f-display: "Anek Gujarati", system-ui, sans-serif;
  --f-body: "Hind Vadodara", system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}
html[lang="gu"] body { line-height: 1.78; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; gap: 24px;
  color: var(--cream);
  transition: background-color .35s ease, box-shadow .35s ease;
}
.top.solid { background: rgba(42, 5, 13, .94); box-shadow: 0 1px 0 rgba(226, 167, 39, .35), 0 10px 30px -18px #000; }
@supports (backdrop-filter: blur(8px)) { .top.solid { background: rgba(42, 5, 13, .82); backdrop-filter: blur(10px); } }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .01em; font-variation-settings: "wdth" 110; }
.brand .dhaja { width: 26px; height: 31px; flex: none; }
.nav { display: none; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15.5px; }
.nav a { text-decoration: none; opacity: .88; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { opacity: 1; border-color: var(--gold); }
.lang {
  margin-left: auto;
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1.5px solid var(--gold); border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  font-weight: 600; font-size: 14px; line-height: 1;
}
.lang-opt { padding: 7px 12px 6px; border-radius: 999px; transition: background-color .2s, color .2s; }
.lang-opt[data-lang="gu"] { padding-bottom: 7px; }
html[lang="en"] .lang-opt[data-lang="en"],
html[lang="gu"] .lang-opt[data-lang="gu"] { background: var(--gold); color: var(--maroon-dd); }
@media (min-width: 820px) {
  .nav { display: flex; }
  .lang { margin-left: 8px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 540px;
  overflow: hidden; background: #120408; color: var(--cream);
  --p: 0; --o: 1;
}
.hero-media, .hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { display: block; }
.hero-img img { object-fit: cover; object-position: 40% 55%; }
@media (max-aspect-ratio: 4/5) { .hero-img img { object-position: 50% 58.5%; } }
.hero-img.then { clip-path: inset(0 0 0 calc(var(--p) * 100%)); opacity: var(--o); }
.hero-img.then img { filter: saturate(1.05) contrast(1.02); }
.hero-line {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%);
  width: 4px; margin-left: -2px;
  background: linear-gradient(var(--gold-l), var(--gold) 40%, var(--orange));
  box-shadow: 0 0 0 1px rgba(42, 5, 13, .35), 0 0 28px 2px rgba(226, 167, 39, .55);
  opacity: var(--line, 0);
}
.hero-line::before, .hero-line::after {
  content: ""; position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(42, 5, 13, .5);
}
.hero-line::before { top: 22%; }
.hero-line::after { top: 72%; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 3, 8, .62) 0, rgba(20, 3, 8, 0) 150px),
    linear-gradient(0deg, rgba(20, 3, 8, .88) 0, rgba(20, 3, 8, .5) 26%, rgba(20, 3, 8, 0) 52%);
}
.tag {
  position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top) + 18px);
  padding: 5px 12px 4px;
  background: rgba(20, 3, 8, .62); color: var(--cream);
  font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: opacity .5s ease;
}
html[lang="gu"] .tag { letter-spacing: .04em; font-size: 15px; }
.tag-today { left: var(--gutter); border-left: 3px solid var(--gold); opacity: var(--today-o, 0); }
.tag-then { right: var(--gutter); border-right: 3px solid var(--gold); opacity: var(--then-o, 1); }
.hero-title {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(clamp(40px, 8vh, 84px) + env(safe-area-inset-bottom));
}
.eyebrow {
  margin: 0 0 4px; color: var(--gold-l);
  font-size: clamp(12.5px, 1.4vw, 15px); font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
html[lang="gu"] .eyebrow { letter-spacing: .05em; font-size: clamp(15px, 1.7vw, 18px); }
.hero h1 {
  margin: 0;
  font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(64px, 16vw, 196px); line-height: .9; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
}
html[lang="gu"] .hero h1 { line-height: 1.12; letter-spacing: 0; font-size: clamp(60px, 15vw, 180px); }

/* ---------- ornament bands ---------- */
.toran {
  height: 30px;
  background:
    radial-gradient(circle at 50% 50%, #eef6f4 0 3.5px, #9fb7b4 4px 4.6px, var(--orange) 5px 8px, transparent 8.6px) 0 0 / 30px 30px,
    conic-gradient(from 45deg at 50% 50%, var(--cream) 0 25%, transparent 0) 0 0 / 30px 30px,
    linear-gradient(var(--indigo), var(--indigo));
  border-top: 3px solid var(--maroon-dd); border-bottom: 3px solid var(--maroon-dd);
}
.toran-light { border-color: var(--maroon); }
.gate {
  height: 16px;
  background: repeating-linear-gradient(90deg,
    var(--pink) 0 44px, #fff 44px 48px,
    var(--teal) 48px 92px, #fff 92px 96px,
    var(--yellow) 96px 140px, #fff 140px 144px,
    var(--orange) 144px 188px, #fff 188px 192px);
}

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 9vw, 108px) 0; }
.sec-title {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
  font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 108;
  font-size: clamp(36px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -.012em;
}
html[lang="gu"] .sec-title { line-height: 1.3; letter-spacing: 0; }
.mirror {
  flex: none; width: .62em; height: .62em; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, #fff 0 10%, #d8e4e6 22%, #8fa6ab 46%, #c9d6d8 58%, transparent 60%),
    radial-gradient(circle, transparent 0 58%, var(--gold) 60% 70%, var(--maroon) 72% 100%);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px currentColor, 0 0 0 7px var(--pink);
}

/* trees */
.sec-trees {
  background:
    radial-gradient(1100px 500px at 50% 0, rgba(123, 18, 40, .55), transparent 70%),
    var(--maroon-dd);
  color: var(--cream);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.sec-trees .mirror { color: var(--maroon-dd); }
.sec-trees .wrap { text-align: center; }
.sec-trees .sec-title, .sec-trees .tree-tabs { justify-content: center; }
.tree-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.tree-tab {
  padding: 9px 18px 8px; border-radius: 999px;
  border: 1.5px solid rgba(243, 207, 107, .6); background: transparent; color: var(--cream);
  font-family: var(--f-display); font-weight: 600; font-size: 17px; font-variation-settings: "wdth" 105;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tree-tab:hover { border-color: var(--gold); }
.tree-tab[aria-selected="true"] { background: var(--gold); color: var(--maroon-dd); border-color: var(--gold); }
.hint { margin: 0 0 18px; font-size: 15px; opacity: .78; }
.tree-frame {
  position: relative;
  width: calc(100% - 2 * var(--gutter)); margin: 0 auto;
  /* the frame takes the photo's shape: as wide as the screen allows, never taller than 84% of it */
  aspect-ratio: var(--ar, 3 / 4);
  max-width: calc(min(84svh, 980px) * var(--arn, .75));
  border-radius: 6px; overflow: hidden;
  background: #f1e4c4;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--maroon), 0 0 0 9px var(--pink), 0 30px 60px -30px #000;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.tree-frame.dragging { cursor: grabbing; }
.tree-pic[hidden] { display: none; }
.tree-pic img {
  position: absolute; left: 0; top: 0;
  max-width: none; width: auto; height: auto;
  transform-origin: 0 0;
  pointer-events: none;
}
.tree-tools {
  position: absolute; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.tree-tools button {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon); color: var(--cream); border: 2px solid var(--gold);
  box-shadow: 0 6px 16px -8px #000;
}
.tree-tools button:hover { background: var(--maroon-d); }
.tree-tools svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* village */
.sec-village {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(31, 169, 155, .16), transparent 70%),
    var(--indigo-d);
  color: var(--cream);
}
.sec-village .mirror { color: var(--indigo-d); }
/* full-width film, edge to edge like the hero */
.village-film {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-height: 100svh;
  background: #000; overflow: hidden;
}
.village-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.village-film::after {           /* soft fade into the section colour below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background: linear-gradient(transparent, var(--indigo-d)); pointer-events: none;
}
.village-copy { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(56px, 9vw, 108px); }
.village-copy p { margin: 0 0 24px; max-width: 46em; font-size: 18px; opacity: .92; }
.video-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 22px 9px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 2px solid var(--gold);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: var(--gold); color: var(--maroon-dd); }
.btn-gold svg { fill: currentColor; }
.btn-gold:hover { background: var(--gold-l); }
.btn-ghost { background: transparent; color: var(--cream); }
.btn-ghost svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost:hover { background: rgba(226, 167, 39, .14); }
/* buttons name the action: "Pause video" shows a pause icon, "Stop music" a crossed-out note */
#videoPlay .i-pause, #videoPlay[data-on] .i-play { display: none; }
#videoPlay[data-on] .i-pause { display: block; }
#musicBtn .i-off, #musicBtn[data-on] .i-on { display: none; }
#musicBtn[data-on] .i-off { display: block; }

/* places */
.sec-places { background: var(--cream); }
.sec-places .mirror { color: var(--cream); }
.sec-places .sec-title { color: var(--maroon); }
.places { display: grid; gap: 48px; margin-top: 12px; }
@media (min-width: 900px) { .places { grid-template-columns: 1fr 1fr; gap: 40px; } }
.place { display: flex; flex-direction: column; gap: 22px; }
.place-copy h3 {
  margin: 0 0 6px;
  font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 106;
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; color: var(--maroon-d);
}
html[lang="gu"] .place-copy h3 { line-height: 1.35; }
.place-copy h3::after {
  content: ""; display: block; width: 72px; height: 8px; margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 16px, transparent 16px 18px, var(--teal) 18px 34px, transparent 34px 36px, var(--yellow) 36px 52px, transparent 52px 54px, var(--orange) 54px 70px);
}
.place-copy p { margin: 12px 0 0; color: #3a2a30; max-width: 36em; }

.gal { position: relative; border-radius: 4px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 2px var(--gold), 0 24px 48px -30px rgba(42, 5, 13, .7); }
.gal-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3.4; position: relative; overflow: hidden; background: var(--maroon-dd); }
/* every photo is shown whole; the spare space is filled with a blurred copy of the same photo */
.gal-track figure::before {
  content: ""; position: absolute; inset: -30px;
  background: var(--bg, none) center / cover;
  filter: blur(22px) brightness(.55) saturate(1.1);
}
@media (max-width: 600px) { .gal-track figure { aspect-ratio: 1 / 1; } }
.gal-track picture, .gal-track img { position: relative; width: 100%; height: 100%; }
.gal-track img { object-fit: contain; }
.gal-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold);
  background: rgba(42, 5, 13, .72); color: var(--cream);
  display: grid; place-items: center;
}
.gal-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gal-btn.prev { left: 10px; }
.gal-btn.next { right: 10px; }
.gal-btn[disabled] { opacity: 0; pointer-events: none; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.gal-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(247, 240, 225, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); transition: background-color .2s, transform .2s; }
.gal-dots span.on { background: var(--gold); transform: scale(1.25); }

/* footer */
.foot { background: var(--maroon-dd); color: var(--cream); }
.foot-inner { display: flex; align-items: center; gap: 12px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot .dhaja { width: 24px; height: 29px; flex: none; }
.foot p { margin: 0; font-size: 15px; opacity: .85; }

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