/* ===== Colors and fonts ===== */
.ep-page {
  --bg: #FFFDF9;
  --section: #F0E4D2;
  --heading: #493321;
  --button: #805633;
  --button-dark: #6A4527;
  --text: #30271F;
  --muted: #6B5847;
  --line: #E5DACB;

  --font-hindi: "Tiro Devanagari Hindi", Georgia, serif;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;

  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.ep-page * { box-sizing: border-box; }
.ep-page h1, .ep-page h2, .ep-page h3, .ep-page p { margin: 0; }
.ep-page h1, .ep-page h2, .ep-page h3 { color: var(--heading); font-weight: 400; }
.ep-page button { font-family: inherit; font-size: inherit; cursor: pointer; }

/* ===== Layout helpers ===== */
.ep-band { padding-left: 16px; padding-right: 16px; }
.ep-wrap { max-width: 1100px; margin: 0 auto; }

.ep-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--button);
}

/* ===== Buttons ===== */
.ep-btn {
  display: inline-block;
  background: var(--button);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 14px 26px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.ep-btn:hover { background: var(--button-dark); }
.ep-btn--sm { padding: 10px 18px; font-size: 14px; }
.ep-btn--ghost { background: transparent; color: var(--button); border: 1px solid var(--button); }
.ep-btn--ghost:hover { background: var(--section); }

.ep-link { color: var(--button); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--button); }

/* ===== Hero ===== */
.ep-hero-band { position: relative; overflow: hidden; }

.ep-watermark {
  position: absolute;
  top: 20px;
  right: 0;
  font-family: var(--font-hindi);
  font-size: 160px;
  line-height: 1;
  color: var(--section);
}

.ep-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 50px 0 60px;
}

.ep-hero h1 {
  font-family: var(--font-title);
  font-size: 44px;
  line-height: 1.1;
  margin-top: 16px;
}
.ep-hero h1 em { color: var(--button); }

.ep-lead { margin-top: 20px; max-width: 460px; }
.ep-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Ticket card */
.ep-sheet { position: relative; padding: 14px; max-width: 540px; }
.ep-sheet::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--section);
  border-radius: 6px;
  transform: rotate(3deg);
}

.ep-ticket {
  position: relative;
  background: var(--bg);
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(73, 51, 33, 0.2);
}
.ep-ticket__main { padding: 24px; }
.ep-ticket h2 { font-family: var(--font-hindi); font-size: 34px; line-height: 1.3; margin-top: 12px; }
.ep-ticket dl { margin: 16px 0 0; }
.ep-ticket dl div { display: flex; gap: 12px; margin-bottom: 6px; }
.ep-ticket dt { width: 60px; flex: none; font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ep-ticket dd { margin: 0; }

.ep-perf { border-top: 2px dashed var(--line); margin: 0 16px; }
.ep-ticket__foot { padding: 20px 24px 24px; }
.ep-ticket__foot .ep-btn { display: block; width: 100%; margin-top: 16px; }

.ep-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.ep-cd { background: var(--section); border-radius: 6px; padding: 10px 4px; }
.ep-cd b { display: block; font-family: var(--font-title); font-size: 26px; font-weight: 500; color: var(--heading); }
.ep-cd span { font-size: 11px; text-transform: uppercase; color: var(--muted); }

.ep-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--button);
  border: 1px solid var(--button);
  border-radius: 20px;
  padding: 2px 10px;
}
.ep-roman { font-family: var(--font-title); font-style: italic; color: var(--button); }

/* ===== Stats ===== */
.ep-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ep-strip__in { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.ep-strip__in div { padding: 22px 8px; border-left: 1px solid var(--line); }
.ep-strip__in div:nth-child(odd) { border-left: 0; }
.ep-strip__in b { display: block; font-family: var(--font-title); font-size: 30px; font-weight: 400; color: var(--heading); }
.ep-strip__in span { font-size: 13px; color: var(--muted); }

/* ===== Upcoming events ===== */
.ep-upcoming { padding-top: 56px; padding-bottom: 56px; }
.ep-sechead h2 { font-family: var(--font-title); font-size: 36px; line-height: 1.15; margin-top: 10px; }
.ep-sechead h2 em { color: var(--button); }
.ep-sechead__count { color: var(--muted); font-size: 14px; margin-top: 8px; }

.ep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ep-chip {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
}
.ep-chip:hover { border-color: var(--button); }
.ep-chip[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: #fff; }

.ep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 28px; }

.ep-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ep-card:hover { border-color: var(--button); }
.ep-card[hidden] { display: none; }

.ep-stub { display: flex; justify-content: space-between; align-items: center; background: var(--section); padding: 16px 20px; }
.ep-stub__d { font-family: var(--font-title); font-size: 52px; line-height: 1; color: var(--heading); }
.ep-stub__m { text-align: right; }
.ep-stub__m b { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--button); }
.ep-stub__m span { font-size: 13px; color: var(--muted); }

.ep-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.ep-card h3 { font-family: var(--font-hindi); font-size: 28px; line-height: 1.3; margin-top: 10px; }
.ep-blurb { margin-top: 8px; font-size: 15px; }

.ep-meta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ep-meta span { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.ep-meta svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }

.ep-card__foot { margin-top: auto; padding-top: 18px; }
.ep-bar { height: 4px; background: var(--section); border-radius: 4px; }
.ep-bar i { display: block; height: 4px; background: var(--button); border-radius: 4px; }
.ep-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ep-price { font-family: var(--font-title); font-size: 24px; color: var(--heading); line-height: 1; }
.ep-seats { font-size: 12px; color: var(--muted); margin-top: 6px; }

.ep-empty { padding: 30px 0; color: var(--muted); }
.ep-empty[hidden] { display: none; }

/* ===== Couplet ===== */
.ep-sher { background: var(--section); }
.ep-sher__in { padding: 70px 0; text-align: center; }
.ep-sher blockquote { margin: 22px auto 0; font-family: var(--font-hindi); font-size: 28px; line-height: 1.6; color: var(--heading); }
.ep-sher cite { display: block; margin-top: 18px; font-family: var(--font-title); color: var(--button); }

/* ===== Steps ===== */
.ep-steps { padding-top: 56px; padding-bottom: 56px; }
.ep-steps ol { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.ep-steps li { counter-increment: step; border-top: 1px solid var(--heading); padding-top: 16px; }
.ep-steps li::before { content: counter(step); display: block; font-family: var(--font-title); font-size: 40px; line-height: 1; color: var(--button); margin-bottom: 10px; }
.ep-steps h3 { font-family: var(--font-title); font-size: 20px; font-weight: 500; }
.ep-steps li p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ===== Past events ===== */
.ep-past { background: var(--section); }
.ep-past__in { padding: 56px 0; }
.ep-past__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.ep-pcard { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.ep-pcard time { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--button); }
.ep-pcard h3 { font-family: var(--font-hindi); font-size: 26px; line-height: 1.3; margin-top: 8px; }
.ep-pcard__n { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--font-title); font-size: 20px; color: var(--heading); }
.ep-pcard__n small { font-family: var(--font-body); font-size: 13px; color: var(--muted); }

/* ===== Seat request popup ===== */
.ep-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1000;
  background: rgba(48, 39, 31, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.ep-overlay[hidden] { display: none; }

.ep-panel { position: relative; width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; background: var(--bg); border-radius: 8px; padding: 24px; }
.ep-panel h2 { font-family: var(--font-hindi); font-size: 28px; line-height: 1.3; padding-right: 36px; }
.ep-panel h2.ep-en { font-family: var(--font-title); font-size: 24px; }
.ep-panel .ep-btn { display: block; width: 100%; margin-top: 20px; }

.ep-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--section); color: var(--heading); }
.ep-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }

.ep-field { margin-top: 14px; }
.ep-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); }
.ep-field input, .ep-field select, .ep-out {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.ep-field input:focus, .ep-field select:focus, .ep-out:focus { outline: 2px solid var(--button); }

.ep-err { min-height: 20px; margin-top: 6px; font-size: 13px; color: #9B2C1A; }
.ep-pass { margin-top: 16px; padding: 14px; background: var(--section); border-radius: 6px; font-size: 14px; }
.ep-pass b { font-family: var(--font-hindi); font-size: 18px; font-weight: 400; color: var(--heading); }
.ep-out { margin-top: 14px; height: 120px; resize: none; font-size: 14px; }
.ep-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.ep-sr { position: absolute; left: -9999px; }

/* ===== Hero video and animation ===== */
.ep-hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }

/* Video stays hidden until it is loaded, then fades in */
.ep-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s;
}
.ep-hero-video.is-ready { opacity: 0.5; }

/* Cream layer so the text is always easy to read */
.ep-hero-shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(255, 253, 249, 0.95) 0%, rgba(255, 253, 249, 0.8) 45%, rgba(255, 253, 249, 0.35) 100%);
}

/* Floating glow bubbles */
.ep-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(128, 86, 51, 0.25);
  filter: blur(60px);
  animation: ep-float 14s ease-in-out infinite;
}
.ep-orb--1 { width: 320px; height: 320px; top: -80px; left: -60px; }
.ep-orb--2 { width: 260px; height: 260px; bottom: -60px; left: 40%; background: rgba(228, 210, 184, 0.9); animation-delay: -5s; }
.ep-orb--3 { width: 200px; height: 200px; top: 20%; right: 10%; animation-delay: -9s; }

@keyframes ep-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.15); }
}

/* Poetry words rising slowly */
.ep-word {
  position: absolute;
  bottom: -60px;
  font-family: var(--font-hindi);
  font-size: 34px;
  color: var(--button);
  opacity: 0;
  animation: ep-rise 16s linear infinite;
}
.ep-word--1 { left: 8%; }
.ep-word--2 { left: 30%; animation-delay: 5s; }
.ep-word--3 { left: 55%; animation-delay: 9s; }
.ep-word--4 { left: 78%; animation-delay: 2s; }

@keyframes ep-rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.25; }
  85% { opacity: 0.25; }
  100% { transform: translateY(-700px); opacity: 0; }
}

/* Text slides up when the page loads */
@keyframes ep-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.ep-hero > div:first-child > * { animation: ep-up 0.8s ease both; }
.ep-hero > div:first-child > :nth-child(2) { animation-delay: 0.1s; }
.ep-hero > div:first-child > :nth-child(3) { animation-delay: 0.2s; }
.ep-hero > div:first-child > :nth-child(4) { animation-delay: 0.3s; }

/* Ticket flies in, and the paper behind it sways */
@keyframes ep-in {
  from { opacity: 0; transform: translateX(40px) rotate(4deg); }
  to { opacity: 1; transform: none; }
}
.ep-sheet { animation: ep-in 1s 0.3s ease both; }

@keyframes ep-sway {
  from { transform: rotate(2deg); }
  to { transform: rotate(4.5deg); }
}
.ep-sheet::before { animation: ep-sway 6s ease-in-out infinite alternate; }

/* "Next event" badge with pulsing dot */
.ep-live {
  position: absolute;
  top: 24px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--button);
}
.ep-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--button); animation: ep-pulse 1.6s infinite; }

@keyframes ep-pulse {
  0% { box-shadow: 0 0 0 0 rgba(128, 86, 51, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(128, 86, 51, 0); }
}

/* Seconds box ticks every second */
@keyframes ep-pop {
  0% { transform: translateY(-6px); opacity: 0.4; }
  100% { transform: none; opacity: 1; }
}
.ep-cd b.ep-tick { animation: ep-pop 0.4s ease; }

/* Event cards fade up when you scroll to them */
.ep-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.ep-reveal.ep-in { opacity: 1; transform: none; }

/* ===== Tablet and desktop ===== */
@media (min-width: 700px) {
  .ep-strip__in { grid-template-columns: repeat(4, 1fr); }
  .ep-strip__in div:nth-child(odd) { border-left: 1px solid var(--line); }
  .ep-strip__in div:first-child { border-left: 0; }
  .ep-hero h1 { font-size: 64px; }
  .ep-watermark { font-size: 260px; }
  .ep-sechead h2 { font-size: 46px; }
  .ep-sher blockquote { font-size: 40px; }
}

@media (min-width: 900px) {
  .ep-hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 80px 0 90px; }
  .ep-hero h1 { font-size: 76px; }
}

/* On phones the text sits above the ticket, so shade from top to bottom */
@media (max-width: 899px) {
  .ep-hero-shade {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.92) 0%, rgba(255, 253, 249, 0.7) 100%);
  }
}

/* For people who turn animations off in their device settings */
@media (prefers-reduced-motion: reduce) {
  .ep-page *, .ep-page *::before {
    animation: none !important;
    transition: none !important;
  }
  .ep-reveal { opacity: 1; transform: none; }
}