/* musicaindiana.it public site. Loaded after Bootstrap 4, which is kept
   only because page contents use a few of its classes (img-fluid, row,
   float-md-right). */

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --ink: #2a211b;
  --muted: #6e6056;
  --line: #eadfce;
  --brand: #8f1d14;        /* deep red of the Saraswati logo */
  --brand-dark: #6d150e;
  --accent: #d9822b;       /* saffron */
  --accent-soft: #fbecd9;
  --accent-text: #a85a12;  /* saffron dark enough for text on cream (AA) */
  --gianni: #3c5a73;       /* Gianni's events: a calm blue next to the red */
  --gianni-soft: #e5edf3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 33, 27, .06), 0 6px 20px rgba(42, 33, 27, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-text);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; color: var(--ink); }
.brand-sub { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--brand-dark); }
.site-nav a.active { background: var(--brand); color: #fff; }
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 1100px) { .brand-sub { display: none; } }
@media (max-width: 520px) { .brand-name { font-size: 1.2rem; } }

@media (max-width: 960px) {
  /* the checkbox stays focusable (Tab, then Space) but invisible */
  .nav-toggle {
    display: block; position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
    opacity: 0; overflow: hidden; pointer-events: none;
  }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--brand); outline-offset: 2px; }
  .nav-toggle-label {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; cursor: pointer;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem;
    background: var(--surface); user-select: none;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 16px; height: 2px; background: var(--ink); position: relative; content: "";
  }
  .nav-toggle-label span::before { position: absolute; top: -5px; }
  .nav-toggle-label span::after { position: absolute; top: 5px; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 14px; margin-left: 0; }
  .site-nav a { padding: 11px 12px; border-radius: 10px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- section bar (Saraswati House / Gianni sub-pages) ---------- */
.section-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.section-bar .wrap { display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.section-bar .wrap::-webkit-scrollbar { display: none; }
.section-bar .section-name { font-family: var(--serif); font-weight: 600; white-space: nowrap; padding: 12px 0; color: var(--brand); }
.section-bar.gianni .section-name { color: var(--gianni); }
.section-bar a.tab {
  white-space: nowrap; text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500;
  padding: 13px 2px; border-bottom: 2px solid transparent;
}
.section-bar a.tab:hover { color: var(--ink); }
.section-bar a.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.section-bar a.tab:focus-visible { outline-offset: -3px; }

/* ---------- page shell ---------- */
.page { padding: 44px 0 72px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin: 6px 0 0; }
.prose { max-width: 760px; }
.prose p, .prose li { color: #3a2f27; }
.prose img { border-radius: 10px; }
.prose iframe { max-width: 100%; border-radius: 12px; }
.content-html::after { content: ""; display: block; clear: both; }
.content-html img.float-md-right, .content-html img.note-float-right { margin: 0 0 1rem 1.5rem; }
.admin-edit { display: inline-block; margin-top: 10px; font-size: .85rem; }

.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.page-cols .prose { max-width: none; }
.aside-card { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.aside-card h2, .aside-card h3 { font-size: 1.15rem; line-height: 1.2; margin: 0 0 10px; }
.aside-card p { font-size: .93rem; margin: 0 0 8px; color: #4a3d33; }
.aside-card .btn-brand, .aside-card .btn-ghost { width: 100%; justify-content: center; margin-top: 8px; }
.aside-card .next { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.aside-card .next a { display: block; text-decoration: none; padding: 6px 0; font-size: .92rem; color: var(--ink); }
.aside-card .next a span { display: block; color: var(--muted); font-size: .82rem; }
.aside-card.sh { border-top: 4px solid var(--brand); }
.aside-card.gianni { border-top: 4px solid var(--gianni); }
@media (max-width: 960px) { .page-cols { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- buttons, chips ---------- */
.btn-brand, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 22px;
  font-weight: 600; font-size: .95rem; text-decoration: none !important; transition: background .15s, color .15s;
}
.btn-brand { background: var(--brand); color: #fff !important; border: 1px solid var(--brand); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn-ghost.on-dark { color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.btn-ghost.on-dark:hover { background: rgba(255, 255, 255, .12); }
.chip {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--brand-dark);
}
.chip.sh { background: #f7e1dc; color: var(--brand-dark); }
.chip.gianni { background: var(--gianni-soft); color: var(--gianni); }
.chip.kind { background: #f1ece4; color: var(--muted); }
.chip.past { background: #ece7e1; color: var(--muted); }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0) 35%, rgba(20, 12, 8, .55) 70%, rgba(20, 12, 8, .85) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 760px; margin: 8px 0 14px; }
.hero p.lead { font-size: clamp(1.02rem, 2vw, 1.2rem); font-weight: 400; max-width: 640px; color: rgba(255, 255, 255, .92); margin-bottom: 26px; }
.hero .eyebrow { color: #fff; }
.hero h1, .hero p.lead, .hero .eyebrow { text-shadow: 0 1px 3px rgba(20, 12, 8, .55); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .hero { min-height: 480px; } .hero .wrap { padding-bottom: 36px; } }

/* ---------- home sections ---------- */
.band { padding: 64px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.band-head h2 { margin: 4px 0 0; }
.band-head a.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.offseason {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px;
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px;
}
.offseason h3 { margin: 0 0 6px; }
.offseason p { margin: 0; color: var(--muted); max-width: 620px; }

.intro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.intro-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.intro-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.intro-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.intro-card h3 { font-size: 1.5rem; margin: 0; }
.intro-card .chip { align-self: flex-start; }
.intro-card p { color: #4a3d33; margin: 0; }
.intro-card .links { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.intro-card.sh { border-top: 4px solid var(--brand); }
.intro-card.gianni { border-top: 4px solid var(--gianni); }
@media (max-width: 800px) { .intro-grid { grid-template-columns: 1fr; } }

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-item { border-top: 2px solid var(--accent); padding-top: 14px; }
.news-item h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.news-item p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 800px) { .news-list { grid-template-columns: 1fr; } }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- event cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .event-grid { grid-template-columns: 1fr; } }
.event-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none !important; color: var(--ink) !important;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(42, 33, 27, .12); }
.event-card .poster { position: relative; aspect-ratio: 4 / 5; background: #f3ece2; display: flex; align-items: center; justify-content: center; }
.event-card .poster img { width: 100%; height: 100%; object-fit: contain; }
.event-card .poster .no-poster { font-family: var(--serif); font-size: 3rem; color: var(--accent); opacity: .6; }
.event-card .datebox {
  position: absolute; left: 14px; top: 14px; background: var(--surface); border-radius: 12px; text-align: center;
  padding: 6px 12px 7px; box-shadow: var(--shadow); line-height: 1.05; min-width: 58px;
}
.datebox .d { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.datebox .m { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.event-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 2px 0 0; }
.event-card .when, .event-card .where { font-size: .9rem; color: var(--muted); margin: 0; }
.event-card .when { color: var(--ink); font-weight: 600; }
.event-grid.compact .poster { aspect-ratio: 1 / 1; }

/* ---------- events page ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filters a {
  text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .9rem; background: var(--surface);
}
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.archive { margin-top: 56px; }
.archive h2 { margin-bottom: 6px; }
.archive-year { margin-top: 26px; }
.archive-year h3 { font-size: 1.1rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.archive-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: baseline;
  padding: 11px 4px; border-bottom: 1px dashed var(--line); text-decoration: none !important; color: var(--ink) !important;
}
.archive-row:hover { background: var(--surface); }
.archive-row .date { color: var(--muted); font-size: .92rem; }
.archive-row .title { font-weight: 500; }
@media (max-width: 640px) {
  .archive-row { grid-template-columns: 1fr; gap: 2px; }
  .archive-row .chip { justify-self: start; }
}
.empty-note { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px 24px; color: var(--muted); }

/* ---------- event detail ---------- */
.event-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; }
.event-detail.no-poster { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.event-detail .poster-full img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.event-detail h1 { margin: 10px 0 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts > li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts .k { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts .v ul { margin: 0; padding-left: 18px; }
.facts .v p { margin: 0; }
.facts .v span + span { display: block; margin-top: .5em; }
.event-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.past-note { background: #efe9e2; border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
@media (max-width: 860px) {
  .event-detail { grid-template-columns: 1fr; gap: 26px; }
  .facts > li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- gallery ---------- */
.album { margin-bottom: 44px; }
.album h2 { margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
/* phones: always two columns, so long albums don't turn into one very tall column */
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- audio, news ---------- */
.stack { display: grid; gap: 18px; max-width: 820px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.panel > h2, .panel h3 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 6px; }
.panel audio { width: 100%; margin-top: 12px; }

/* ---------- contacts ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: #2a211b; color: #e9dfd3; padding: 56px 0 26px; }
.site-footer a { color: #f3d3a8; }
.site-footer h2, .site-footer h4 { color: #fff; font-size: 1.1rem; line-height: 1.2; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
.footer-grid p, .footer-grid li { font-size: .93rem; color: #d8ccbe; margin: 0 0 6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social img { width: 30px; height: 30px; border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 38px; padding-top: 18px; font-size: .82rem; color: #b5a796; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #b5a796; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Motion and ornaments: quiet, slow, and switched off for "reduce motion".
   ========================================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }
::selection { background: #f6d9b5; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* soft cross-fade between pages (browsers that support view transitions) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
}

/* header settles into a slimmer bar with a shadow once the page scrolls */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s; }
.site-header .wrap { transition: min-height .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(42, 33, 27, .08); background: rgba(251, 247, 240, .985); }
.site-header.scrolled .wrap { min-height: 58px; }
.site-nav a { transition: background-color .2s, color .2s; }
.nav-toggle:checked ~ .site-nav { animation: drop-in .25s var(--ease); }

/* a thin line before the small section labels */
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor;
  vertical-align: middle; margin: -2px 10px 0 0; opacity: .75;
}

/* hero: the photo drifts very slowly, the text rises in on load */
.hero img.hero-bg { animation: drift 26s ease-in-out infinite alternate; transform-origin: 30% 35%; will-change: transform; }
.hero .eyebrow, .hero h1, .hero p.lead, .hero .hero-actions { animation: rise 1s var(--ease) both; }
.hero h1 { animation-delay: .12s; }
.hero p.lead { animation-delay: .24s; }
.hero .hero-actions { animation-delay: .36s; }
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 18px; width: 1px; height: 46px; margin-left: -.5px;
  background: rgba(255, 255, 255, .3); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff;
  animation: cue 2.2s ease-in-out infinite;
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* links and buttons */
a.more, .site-footer a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .35s var(--ease), color .2s;
}
a.more:hover, .site-footer a:hover { background-size: 100% 1px; }
.prose a { text-decoration-color: rgba(143, 29, 20, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.btn-brand, .btn-ghost { position: relative; overflow: hidden; transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(143, 29, 20, .25); }
.btn-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-brand:hover::after { transform: translateX(120%); }

/* cards: posters and photos breathe a little on hover */
.event-card .poster, .intro-card { overflow: hidden; }
.event-card .poster img, .intro-card img { transition: transform .8s var(--ease); }
.event-card:hover .poster img, .intro-card:hover img { transform: scale(1.04); }
.event-card .datebox { transition: transform .4s var(--ease); }
.event-card:hover .datebox { transform: translateY(-2px); }
.intro-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.intro-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(42, 33, 27, .12); }
.section-bar a.tab { transition: color .2s, border-color .25s; }

/* gallery thumbnails fade in once loaded (site.js) */
.js .gallery img { opacity: 0; transition: opacity .6s ease, transform .25s; }
.js .gallery img.loaded, .js.reveal-all .gallery img { opacity: 1; }

/* a faint mandala turning very slowly in the corner of the light bands */
.band.alt { position: relative; overflow: hidden; }
.band.alt > .wrap { position: relative; z-index: 1; }
.band.alt::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -170px; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%238f1d14' stroke-width='.7'%3E%3Ccircle cx='100' cy='100' r='97'/%3E%3Ccircle cx='100' cy='100' r='72'/%3E%3Ccircle cx='100' cy='100' r='44'/%3E%3Ccircle cx='100' cy='100' r='14'/%3E%3Cdefs%3E%3Cpath id='a' d='M100 28c13 18 13 38 0 58-13-20-13-40 0-58z'/%3E%3Cpath id='b' d='M100 3c17 13 17 27 0 40-17-13-17-27 0-40z'/%3E%3C/defs%3E%3Cg%3E%3Cuse href='%23a'/%3E%3Cuse href='%23a' transform='rotate(30 100 100)'/%3E%3Cuse href='%23a' transform='rotate(60 100 100)'/%3E%3Cuse href='%23a' transform='rotate(90 100 100)'/%3E%3Cuse href='%23a' transform='rotate(120 100 100)'/%3E%3Cuse href='%23a' transform='rotate(150 100 100)'/%3E%3Cuse href='%23a' transform='rotate(180 100 100)'/%3E%3Cuse href='%23a' transform='rotate(210 100 100)'/%3E%3Cuse href='%23a' transform='rotate(240 100 100)'/%3E%3Cuse href='%23a' transform='rotate(270 100 100)'/%3E%3Cuse href='%23a' transform='rotate(300 100 100)'/%3E%3Cuse href='%23a' transform='rotate(330 100 100)'/%3E%3C/g%3E%3Cg%3E%3Cuse href='%23b' transform='rotate(15 100 100)'/%3E%3Cuse href='%23b' transform='rotate(45 100 100)'/%3E%3Cuse href='%23b' transform='rotate(75 100 100)'/%3E%3Cuse href='%23b' transform='rotate(105 100 100)'/%3E%3Cuse href='%23b' transform='rotate(135 100 100)'/%3E%3Cuse href='%23b' transform='rotate(165 100 100)'/%3E%3Cuse href='%23b' transform='rotate(195 100 100)'/%3E%3Cuse href='%23b' transform='rotate(225 100 100)'/%3E%3Cuse href='%23b' transform='rotate(255 100 100)'/%3E%3Cuse href='%23b' transform='rotate(285 100 100)'/%3E%3Cuse href='%23b' transform='rotate(315 100 100)'/%3E%3Cuse href='%23b' transform='rotate(345 100 100)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: spin 160s linear infinite;
}
.band.alt + .band.alt::before, .band.alt:nth-of-type(even)::before { right: auto; left: -190px; top: auto; bottom: -200px; }

/* saffron-to-red line above the footer */
.site-footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--accent), var(--brand)) 1; }

/* content rises into view while scrolling (site.js); hidden only when JS runs */
.js .band-head, .js .offseason, .js .event-card, .js .intro-card, .js .news-item, .js .video-frame,
.js .page-head, .js .archive-year, .js .album, .js .panel, .js .aside-card, .js .facts,
.js .poster-full, .js .empty-note, .js .filters, .js .tracklist {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .is-visible, .js.reveal-all .band-head, .js.reveal-all .offseason, .js.reveal-all .event-card,
.js.reveal-all .intro-card, .js.reveal-all .news-item, .js.reveal-all .video-frame, .js.reveal-all .page-head,
.js.reveal-all .archive-year, .js.reveal-all .album, .js.reveal-all .panel, .js.reveal-all .aside-card,
.js.reveal-all .facts, .js.reveal-all .poster-full, .js.reveal-all .empty-note, .js.reveal-all .filters, .js.reveal-all .tracklist {
  opacity: 1; transform: none;
}
/* once in, cards keep their hover lift instead of the reveal transform */
.js .event-card.is-visible:hover, .js .intro-card.is-visible:hover { transform: translateY(-3px); transition-delay: 0ms; }
/* after the reveal has run (site.js), hover reacts quickly again */
.js .event-card.revealed, .js .intro-card.revealed {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); transition-delay: 0s;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, 1%); } }
@keyframes cue { 0% { top: -40%; } 60%, 100% { top: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .band-head, .js .offseason, .js .event-card, .js .intro-card, .js .news-item, .js .video-frame,
  .js .page-head, .js .archive-year, .js .album, .js .panel, .js .aside-card, .js .facts,
  .js .poster-full, .js .empty-note, .js .filters, .js .tracklist, .js .gallery img { opacity: 1; transform: none; }
}
.footer-social a { background: none !important; transition: transform .25s var(--ease); }
.footer-social a:hover { transform: translateY(-2px); }

/* ---------- audio: player + track list ---------- */
.filters button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--accent); }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
/* the player and the filters need JavaScript; without it the rows are plain links */
.audio-filters { display: none; }
.js .audio-filters { display: flex; }

.player {
  position: sticky; top: 76px; z-index: 20; max-width: 860px;
  display: none; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "btn np eq" "btn progress progress";
  column-gap: 20px; row-gap: 10px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, #4a3426 0%, #2a211b 55%, #1f1813 100%);
  color: #f3e9dc; border-radius: 18px; padding: 20px 24px; margin-bottom: 26px;
  box-shadow: 0 18px 40px rgba(42, 33, 27, .22);
}
.js .player { display: grid; }
.np-inst.error { color: #f0b9a8; }
.play-btn {
  grid-area: btn; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(217, 130, 43, .55); transition: transform .2s var(--ease), background-color .2s;
}
.play-btn:hover { transform: scale(1.05); background: #a5241a; }
.play-btn svg { width: 28px; height: 28px; fill: currentColor; }
.play-btn .i-pause, .player.playing .play-btn .i-play { display: none; }
.player.playing .play-btn .i-pause { display: block; }
.player.playing .play-btn { animation: pulse 2.4s ease-out infinite; }
.np { grid-area: np; display: flex; flex-direction: column; min-width: 0; }
.np-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e7a85c; }
.np-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title em { font-style: italic; color: #f0c48d; font-size: .8em; }
.np-inst { font-size: .9rem; color: #cdbba7; }
.eq { grid-area: eq; display: flex; align-items: flex-end; gap: 3px; height: 26px; opacity: .35; transition: opacity .3s; }
.eq i { display: block; width: 4px; height: 30%; border-radius: 2px; background: #e7a85c; }
.player.playing .eq { opacity: 1; }
.player.playing .eq i { animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.4s !important; } .eq i:nth-child(3) { animation-delay: -.8s !important; }
.eq i:nth-child(4) { animation-delay: -.2s !important; } .eq i:nth-child(5) { animation-delay: -.6s !important; }
.player-progress { grid-area: progress; display: flex; align-items: center; gap: 14px; }
.player-progress input[type=range] { flex: 1; accent-color: var(--accent); height: 4px; cursor: pointer; }
.player-progress .time { font-variant-numeric: tabular-nums; font-size: .85rem; color: #cdbba7; min-width: 92px; text-align: right; }
@media (max-width: 640px) {
  .player { top: 64px; grid-template-areas: "btn np" "progress progress"; grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .eq { display: none; }
  .play-btn { width: 54px; height: 54px; }
  .np-title { font-size: 1.2rem; }
}

.tracklist { list-style: none; padding: 0; margin: 0; max-width: 860px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tracklist li + li { border-top: 1px solid var(--line); }
.tracklist li[hidden] { display: none; }
.track {
  display: grid; grid-template-columns: 34px 22px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 20px; color: var(--ink) !important; text-decoration: none !important;
  transition: background-color .2s, padding-left .25s var(--ease);
}
.track:hover { background: #fdf8f1; padding-left: 24px; }
.track .num { font-variant-numeric: tabular-nums; color: #807060; font-size: .88rem; }
.track:focus-visible { outline-offset: -3px; }
.track .state { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.track .state i { display: block; width: 3px; height: 3px; border-radius: 1px; background: #d9c8b4; transition: background-color .2s; }
.track .raga { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.track .raga small { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.track .part { margin-left: 8px; font-style: italic; color: var(--accent-text); font-family: var(--serif); }
.track .desc { display: block; font-size: .88rem; color: var(--muted); }
.track .inst { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--gianni-soft); color: var(--gianni); white-space: nowrap; }
.track.active { background: #fbf1e4; box-shadow: inset 3px 0 0 var(--brand); }
.track.active .raga { color: var(--brand); }
.track.active .state i { background: var(--brand); height: 6px; }
.track.active.playing .state i { animation: eq .9s ease-in-out infinite alternate; }
.track.active.playing .state i:nth-child(2) { animation-delay: -.3s; }
.track.active.playing .state i:nth-child(3) { animation-delay: -.6s; }
@media (max-width: 640px) {
  .track { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 12px 14px; }
  .track .state { display: none; }
  .track .inst { font-size: .66rem; padding: 3px 8px; }
}

@keyframes eq { from { height: 20%; } to { height: 100%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 130, 43, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(217, 130, 43, 0); } }
.player-progress .time { color: #e9dcc9; }
.player-progress input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 18px; margin: 0; }
.player-progress input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--p, 0%), rgba(255, 255, 255, .18) var(--p, 0%));
}
.player-progress input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 130, 43, .3);
}
.player-progress input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.player-progress input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.player-progress input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(217, 130, 43, .3); }
.track:not(.active) .state i { opacity: 0; }
.track .state { position: relative; }
.track:not(.active):hover .state::before {
  content: ""; position: absolute; left: 3px; bottom: 1px;
  border-left: 9px solid var(--brand); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
/* the sitar photo: framed from the top left as on the old site; on phones
   centred on Gianni so he is in the narrow crop */
.hero img.hero-sitar { object-position: left top; }
@media (max-width: 640px) { .hero img.hero-sitar { object-position: 46% top; } }

/* ---------- print: everything visible, no sticky bars or controls ---------- */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .js .band-head, .js .offseason, .js .event-card, .js .intro-card, .js .news-item, .js .video-frame,
  .js .page-head, .js .archive-year, .js .album, .js .panel, .js .aside-card, .js .facts,
  .js .poster-full, .js .empty-note, .js .filters, .js .tracklist, .js .gallery img {
    opacity: 1 !important; transform: none !important;
  }
  .site-header, .aside-card { position: static; backdrop-filter: none; background: #fff; }
  .site-header .wrap { min-height: 0; }
  .nav-toggle, .nav-toggle-label, .site-nav, .section-bar, .scroll-cue, .filters, .player,
  .event-actions, .admin-edit, .video-frame, .band.alt::before { display: none !important; }
  .band { padding: 18pt 0; }
  .event-card, .archive-row, .facts > li, .panel, .track { break-inside: avoid; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #999; border-image: none; padding: 18pt 0 0; }
  .site-footer h2, .site-footer h4, .footer-grid p, .footer-grid li, .footer-bottom, .footer-bottom a, .site-footer a { color: #000; }
  .footer-social, .footer-bottom a { display: none; }
}
