/* =========================================================
   The ARYAN International School — Annual Cultural Celebration
   Pure CSS. No framework, no build step.
   ========================================================= */

/* ---------- Fonts (local) ---------- */
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --ivory: #f8f1e5;
  --ivory-deep: #f2e8d8;
  --beige: #e9dcc9;
  --saffron: #d97726;
  --vermilion: #b94732;
  --vermilion-deep: #9e3a28;
  --marigold: #e6a23c;
  --terracotta: #a9573b;
  --gold: #b79558;
  --charcoal: #302722;
  --charcoal-deep: #241d19;
  --ink: #302722;
  --ink-soft: #5e514a;
  --line: rgba(48, 39, 34, 0.14);
  --line-gold: rgba(183, 149, 88, 0.45);

  --font-serif: "EB Garamond", "Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 140px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 18px 40px -24px rgba(48, 39, 34, 0.35);
  --shadow-lift: 0 26px 50px -26px rgba(169, 87, 59, 0.45);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.school-name {
  font-family: var(--font-serif);
  font-size: 1.06em;
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.section-title em {
  font-style: italic;
  color: var(--vermilion);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  margin: 20px 0 0;
  font-size: 1.075rem;
  color: var(--ink-soft);
}

/* Small ornament: a diamond flanked by fine gold rules */
.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  margin: 26px 0 0;
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 48px;
  background: var(--line-gold);
}
.ornament span {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  border: 1px solid currentColor;
}
.ornament--center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateY(2px); }

.btn--primary {
  background: var(--vermilion);
  color: var(--ivory);
  box-shadow: 0 10px 26px -14px rgba(185, 71, 50, 0.9);
}
.btn--primary:hover {
  background: var(--vermilion-deep);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--line);
  color: var(--charcoal);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--saffron);
  color: var(--vermilion);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--ivory);
}
.site-header--light {
  position: relative;
  color: var(--charcoal);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.nav__brand {
  display: inline-flex;
  flex-shrink: 0;
  padding: 6px 0;
}
.nav__brand img {
  height: 34px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header--light .nav__link::after { background: var(--saffron); }

.nav__live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  border: 1px solid rgba(230, 162, 60, 0.7);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav__live svg { width: 14px; height: 14px; }
.nav__live:hover,
.nav__live[aria-current="page"] {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--charcoal);
}
.site-header--light .nav__live {
  border-color: var(--saffron);
  color: var(--vermilion);
}
.site-header--light .nav__live:hover,
.site-header--light .nav__live[aria-current="page"] {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: var(--ivory);
}

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.9;
}
.nav__toggle-bars {
  position: relative;
  display: block;
  width: 18px; height: 1.5px;
  margin: auto;
  background: currentColor;
  transition: background-color 0.2s;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav__toggle-bars::before { transform: translateY(-6px); }
.nav__toggle-bars::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav { min-height: 76px; }
  .nav__brand img { height: 28px; }
  .nav__toggle { display: grid; place-items: center; }

  .nav__menu {
    position: absolute;
    top: calc(100% - 4px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 22px;
    background: var(--ivory);
    color: var(--charcoal);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 30px 60px -30px rgba(36, 29, 25, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav__link {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    opacity: 1;
  }
  .nav__link::after { display: none; }
  .nav__live {
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-color: var(--saffron);
    color: var(--vermilion);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(680px, 100svh, 940px);
  padding: 140px 0 120px;
  overflow: hidden;
  background: var(--charcoal-deep);
  color: var(--ivory);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-image: url("../assets/images/orchestra-hero.webp");
  background-size: cover;
  background-position: center 62%;
  filter: blur(12px) saturate(1.2) brightness(1.15);
  transform: scale(1.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(36, 29, 25, 0.55), rgba(36, 29, 25, 0.15) 75%),
    linear-gradient(180deg, rgba(36, 29, 25, 0.7) 0%, rgba(36, 29, 25, 0.2) 30%, rgba(36, 29, 25, 0.25) 70%, rgba(36, 29, 25, 0.75) 100%);
}

/* Toran-style scalloped edge, inspired by festive door hangings */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 22px;
  background:
    radial-gradient(circle at 18px 0, transparent 17px, var(--ivory) 18px) 0 0 / 36px 22px repeat-x;
}

.hero__inner { position: relative; width: 100%; }

.hero__kicker {
  margin: 0 0 clamp(26px, 4vw, 38px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(248, 241, 229, 0.82);
}
.hero__kicker .school-name { font-style: normal; color: var(--ivory); }
.hero__presents {
  display: block;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.06em;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ivory);
}

.hero__logo {
  width: min(640px, 84vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}

.hero__title {
  margin: clamp(30px, 4.5vw, 44px) auto 0;
  max-width: 16ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero__title em { font-style: italic; color: var(--marigold); }

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--marigold);
}
.hero__meta-dot {
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
}

.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  margin: clamp(36px, 5vw, 50px) auto 0;
  border-top: 1px solid rgba(230, 162, 60, 0.35);
  border-bottom: 1px solid rgba(230, 162, 60, 0.35);
}
.schedule__item {
  padding: 20px 16px;
  text-align: center;
}
.schedule__item + .schedule__item { border-left: 1px solid rgba(230, 162, 60, 0.35); }
.schedule__tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 241, 229, 0.62);
}
.schedule__date {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}
.schedule__time {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--marigold);
}

.hero__cta { margin-top: clamp(34px, 4.5vw, 46px); }

@media (max-width: 560px) {
  .hero { padding: 120px 0 96px; }
  .schedule { grid-template-columns: 1fr; }
  .schedule__item + .schedule__item {
    border-left: 0;
    border-top: 1px solid rgba(230, 162, 60, 0.35);
  }
  .hero__meta { flex-direction: column; gap: 6px; letter-spacing: 0.16em; }
  .hero__meta-dot { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about__aside { position: relative; }
.about__aside .section-title { max-width: 9ch; }

.about__mark {
  margin-top: 40px;
  width: 120px;
  height: 160px;
  border: 1px solid var(--line-gold);
  border-radius: 60px 60px 0 0;
  position: relative;
}
.about__mark::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line-gold);
  border-radius: 48px 48px 0 0;
}
.about__mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 12px; height: 12px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--saffron);
}

.about__body p {
  margin: 0 0 1.4em;
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.about__body p:first-child {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--charcoal);
}
.about__body p:first-child .school-name { color: var(--vermilion); }
.about__body p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__aside .section-title { max-width: none; }
  .about__mark { display: none; }
}

/* At a Glance */
.glance {
  background: var(--ivory-deep);
  border-block: 1px solid var(--line);
}
.glance__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat {
  position: relative;
  padding: clamp(34px, 4vw, 48px) clamp(24px, 3vw, 36px) clamp(30px, 3.5vw, 40px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 140px 140px var(--radius) var(--radius);
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid transparent;
  border-radius: 130px 130px 2px 2px;
  transition: border-color 0.45s var(--ease);
  pointer-events: none;
}
.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-gold);
}
.stat:hover::before { border-color: var(--line-gold); }

.stat__tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.stat__value {
  display: block;
  margin-top: 22px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--vermilion);
}
.stat__value sup {
  font-size: 0.42em;
  vertical-align: 0.95em;
  margin-left: 2px;
}
.stat__unit {
  display: block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
}
.stat__label {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .glance__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* Celebration */
.celebration__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.celebration__intro .section-title { max-width: 14ch; }
.celebration__intro .lede { margin: 0; max-width: 48ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--charcoal);
}
.pillar {
  position: relative;
  padding: 34px clamp(18px, 2.4vw, 30px) 10px 0;
}
.pillar + .pillar {
  padding-left: clamp(18px, 2.4vw, 30px);
  border-left: 1px solid var(--line);
}
.pillar__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--saffron);
}
.pillar__icon {
  display: block;
  width: 36px; height: 36px;
  margin: 18px 0 20px;
  color: var(--terracotta);
}
.pillar__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
}
.pillar__text {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.celebration__quote {
  margin: clamp(60px, 8vw, 96px) auto 0;
  max-width: 820px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35;
  color: var(--charcoal);
}
.celebration__quote span { color: var(--vermilion); }

@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 820px) {
  .celebration__intro { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar,
  .pillar + .pillar { padding: 28px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); margin-top: 18px; }
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--charcoal);
  color: var(--ivory);
  position: relative;
}
.gallery .section-title { color: var(--ivory); }
.gallery .section-title em { color: var(--marigold); }
.gallery .eyebrow { color: var(--marigold); }
.gallery .lede { color: rgba(248, 241, 229, 0.7); }

/*
  Editorial grid on 12 columns.
  Row 1-2: a large feature (8 cols) beside two stacked 3:2 frames (4 cols each).
  Row 3: four equal 4:3 frames (3 cols each) for the newer photographs.
*/
.gallery__grid {
  --g-gap: clamp(12px, 1.6vw, 22px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--g-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__grid > li { min-width: 0; grid-column: span 4; }
.gallery__grid > .gallery__item--feature { grid-column: span 8; grid-row: span 2; }
.gallery__grid > .gallery__item--quarter { grid-column: span 3; }

.tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal-deep);
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.gallery__item--feature .tile { aspect-ratio: auto; min-height: 100%; }
.gallery__item--quarter .tile { aspect-ratio: 4 / 3; }
.gallery__item--quarter .tile__caption { padding: 14px 16px; gap: 10px; }
.gallery__item--quarter .tile__title { font-size: clamp(1rem, 1.25vw, 1.15rem); }
.gallery__item--quarter .tile__zoom { width: 34px; height: 34px; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 29, 25, 0) 50%, rgba(36, 29, 25, 0.78) 100%);
  transition: opacity 0.5s var(--ease);
}
/* Inner gold frame that appears on hover / focus */
.tile::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(230, 162, 60, 0);
  border-radius: 2px;
  transition: border-color 0.5s var(--ease), inset 0.5s var(--ease);
  pointer-events: none;
}
.tile:hover img,
.tile:focus-visible img { transform: scale(1.045); }
.tile:hover::before,
.tile:focus-visible::before {
  border-color: rgba(230, 162, 60, 0.75);
  inset: 16px;
}

.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.2vw, 30px);
  text-align: left;
  color: var(--ivory);
}
.tile__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--marigold);
}
.tile__title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.2;
}
.gallery__item--feature .tile__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.tile__zoom {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(248, 241, 229, 0.45);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), background-color 0.3s;
}
.tile__zoom svg { width: 16px; height: 16px; }
.tile:hover .tile__zoom,
.tile:focus-visible .tile__zoom {
  opacity: 1;
  transform: translateY(0);
}

.gallery__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(248, 241, 229, 0.55);
}
.gallery__note::before {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(183, 149, 88, 0.35);
  order: 2;
}
.gallery__note span:last-child { order: 3; }

@media (hover: none) {
  .tile__zoom { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .gallery__grid > li,
  .gallery__grid > .gallery__item--quarter { grid-column: span 6; }
  .gallery__grid > .gallery__item--feature { grid-row: auto; grid-column: 1 / -1; }
  .gallery__item--feature .tile { aspect-ratio: 3 / 2; min-height: 0; }
}
@media (max-width: 560px) {
  .gallery__grid > li,
  .gallery__grid > .gallery__item--quarter,
  .gallery__grid > .gallery__item--feature { grid-column: 1 / -1; }
  .gallery__note::before { display: none; }
  .gallery__note { justify-content: center; }
  .gallery__note span:first-child { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 3vw, 28px);
  background: rgba(28, 22, 19, 0.985);
  color: var(--ivory);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox__count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--marigold);
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px 0;
}
.lightbox__img {
  max-width: min(100%, 1500px);
  max-height: 100%;
  width: auto; height: auto;
  border-radius: 2px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.lightbox__img.is-loaded { opacity: 1; transform: scale(1); }

.lightbox__caption {
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 1px solid rgba(248, 241, 229, 0.3);
  border-radius: 50%;
  background: rgba(36, 29, 25, 0.5);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--charcoal);
}
.lb-btn--prev,
.lb-btn--next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lb-btn--prev { left: clamp(0px, 1.5vw, 16px); }
.lb-btn--next { right: clamp(0px, 1.5vw, 16px); }

@media (max-width: 640px) {
  .lb-btn--prev,
  .lb-btn--next { top: auto; bottom: -8px; transform: none; width: 46px; height: 46px; }
  .lightbox__stage { padding-bottom: 64px; }
}

body.is-locked { overflow: hidden; }

/* Ivory scallops hanging into a dark section below an ivory one */
.scallop-top { position: relative; }
.scallop-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 20px;
  z-index: 1;
  background:
    radial-gradient(circle at 18px 0, var(--ivory) 17px, transparent 18px) 0 0 / 36px 20px repeat-x;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(248, 241, 229, 0.78);
  padding: clamp(64px, 8vw, 96px) 0 32px;
  position: relative;
}
.site-footer--after-dark { border-top: 1px solid rgba(183, 149, 88, 0.22); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.footer__logo {
  width: min(300px, 100%);
  height: auto;
}
.footer__name {
  margin: 22px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.55rem);
  line-height: 1.2;
  color: var(--ivory);
}
.footer__heading {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marigold);
}
.footer__text { margin: 0; font-size: 0.95rem; }
.footer__text + .footer__text { margin-top: 10px; }
.footer__link {
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 162, 60, 0.4);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer__link:hover { color: var(--marigold); border-color: var(--marigold); }

.footer__nav {
  display: grid;
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.footer__nav a { text-decoration: none; transition: color 0.25s var(--ease); }
.footer__nav a:hover { color: var(--marigold); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.social {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(248, 241, 229, 0.25);
  border-radius: 50%;
  color: var(--ivory);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social svg { width: 19px; height: 19px; }
.social:hover {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.footer__bottom {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid rgba(248, 241, 229, 0.12);
  font-size: 0.82rem;
  color: rgba(248, 241, 229, 0.55);
  text-align: center;
}
.footer__bottom p { margin: 0; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Live page ---------- */
.live-intro {
  padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
}
.live-intro .section-title { max-width: 18ch; margin-inline: auto; }
.live-intro .lede { max-width: 54ch; margin-inline: auto; }

.streams {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  padding-bottom: var(--section-y);
}

.stream {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--ivory-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stream--alt { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.stream--alt .stream__info { order: 2; }

.stream__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.stream__title {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.08;
}
.stream__details {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.stream__details div { display: flex; align-items: center; gap: 12px; }
.stream__details svg { width: 18px; height: 18px; color: var(--saffron); flex-shrink: 0; }
.stream__details dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stream__details dd { margin: 0; font-size: 1rem; color: var(--charcoal); }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(217, 119, 38, 0.38), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(230, 162, 60, 0.16), transparent 70%),
    var(--charcoal);
  color: var(--ivory);
  isolation: isolate;
}
.stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 18px;
  z-index: 1;
  background:
    radial-gradient(circle at 14px 0, var(--vermilion) 13px, transparent 14px) 0 0 / 28px 18px repeat-x;
  opacity: 0.9;
}
.stage:has(.soon) {
  aspect-ratio: auto;
  min-height: 340px;
  display: flex;
}
.stage iframe,
.stage video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}

.soon {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(20px, 5vw, 56px) 32px;
  text-align: center;
}
.soon__diya {
  position: relative;
  width: 56px; height: 46px;
  margin-bottom: 18px;
}
.soon__diya::before {
  /* lamp bowl */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 20px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, var(--terracotta), var(--vermilion-deep));
}
.soon__diya::after {
  /* flame */
  content: "";
  position: absolute;
  left: 50%; bottom: 18px;
  width: 14px; height: 24px;
  margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 70%, #fff4d6 0%, var(--marigold) 45%, var(--saffron) 100%);
  box-shadow: 0 0 22px 6px rgba(230, 162, 60, 0.45);
  transform-origin: 50% 100%;
  animation: flicker 2.6s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  40% { transform: scale(1.06, 0.96) rotate(2deg); }
  70% { transform: scale(0.97, 1.04) rotate(-1deg); }
}
.soon__title {
  margin: 0;
  max-width: 26ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.2;
}
.soon__text {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: clamp(0.85rem, 1.3vw, 0.98rem);
  color: rgba(248, 241, 229, 0.74);
}

.countdown {
  display: flex;
  gap: clamp(10px, 2vw, 22px);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.countdown li {
  min-width: clamp(48px, 7vw, 66px);
  padding: 8px 6px;
  border: 1px solid rgba(230, 162, 60, 0.35);
  border-radius: 6px;
}
.countdown strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1;
  color: var(--marigold);
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 241, 229, 0.6);
}

.stage__open {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}
.stage__open p { margin: 0; font-family: var(--font-serif); font-size: 1.4rem; }

@media (max-width: 900px) {
  .stream,
  .stream--alt { grid-template-columns: 1fr; }
  .stream--alt .stream__info { order: 0; }
}
@media (max-width: 560px) {
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
