/* ==========================================================================
   www.sarod.ca — Pandit Arnab Chakrabarty · site.css
   Design system: ds-sarod-1 (frozen). Vanilla CSS, file:// safe.
   ==========================================================================

   CONTRACT — every page copies the blocks below VERBATIM.
   Only change: move aria-current="page" to the link of the current page
   (in BOTH the desktop nav and the mobile menu). Home has no nav link, so on
   index.html no desktop link carries aria-current; the mobile "Home" does.
   Canonical URLs are https://www.sarod.ca/<page> (no .html), and links now use
   that same form. Apache maps /<page> to <page>.html and redirects the old
   .html URLs, so there is one address per page. (The site no longer opens from file://.)

   ---- 1. <head> boilerplate ------------------------------------------------
   <!doctype html>
   <html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>About · Pandit Arnab Chakrabarty, sarod</title>
     <meta name="description" content="...">
     <link rel="canonical" href="https://www.sarod.ca/about">
     <meta name="color-scheme" content="light">
     <meta name="theme-color" content="#F2E6CE">
     <meta property="og:type" content="website">
     <meta property="og:title" content="...">
     <meta property="og:description" content="...">
     <meta property="og:url" content="https://www.sarod.ca/about">
     <meta property="og:image" content="https://www.sarod.ca/assets/img/og-share.jpg">
     <meta name="twitter:card" content="summary_large_image">
     <link rel="icon" href="assets/img/favicon.svg" type="image/svg+xml">
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Cormorant+SC:wght@400;500;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Noto+Serif+Devanagari:wght@400;500&family=Playfair+Display:wght@700;900&display=swap">
     <link rel="stylesheet" href="assets/css/site.css">
     <script>document.documentElement.classList.add('js')</script>
     <script src="assets/js/site.js" defer></script>
   </head>
   <body class="has-hero">   (index only; every other page: <body class="no-hero">)

   ---- 2. Skip link + header (first children of <body>) --------------------
   <a class="skip-link" href="#main">Skip to main content</a>
   <header class="site-header" data-site-header>
     <div class="site-header__bar">
       <a class="brand" href="/" aria-label="Arnab Chakrabarty, home">
         <svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 22c-4.2 0-5.6-3.3-4.6-6.2.7-2.2 2.2-2.9 2.7-4.1l.6-7.3M12 22c4.2 0 5.6-3.3 4.6-6.2-.7-2.2-2.2-2.9-2.7-4.1l-.6-7.3"/><path d="M10.7 4.4Q12 2.4 13.3 4.4M12 20.3V4.6"/><circle cx="12" cy="17" r="2.4"/><path d="M10.5 6.1H9M13.5 7.6H15M10.3 9.1H8.8"/></svg>
         <span class="brand__name">Arnab Chakrabarty</span>
       </a>
       <nav class="site-nav" aria-label="Primary">
         <ul class="site-nav__list">
           <li><a href="/about">About</a></li>
           <li><a href="/lineage">Lineage</a></li>
           <li><a href="/music">Music</a></li>
           <li><a href="/concerts">Concerts</a></li>
           <li><a href="/teaching">Teaching</a></li>
           <li><a href="/gallery">Gallery</a></li>
           <li><a href="/press">Press</a></li>
           <li><a href="/outreach">Outreach</a></li>
           <li><a href="/contact">Contact</a></li>
         </ul>
       </nav>
       <div class="site-header__tools">
         <button class="tanpura-toggle" type="button" data-tanpura aria-pressed="false" aria-label="Tanpura drone">
           <svg class="icon" aria-hidden="true" focusable="false"><use href="#i-tanpura"/></svg>
           <span class="tanpura-toggle__text" data-tanpura-text>Tanpura</span>
         </button>
         <button class="menu-toggle" type="button" data-menu-open aria-controls="mobile-menu" aria-expanded="false">
           <svg class="icon" aria-hidden="true" focusable="false"><use href="#i-menu"/></svg>
           <span class="visually-hidden">Open site menu</span>
         </button>
       </div>
     </div>
   </header>

   ---- 3. Mobile menu (directly after </header>) ----------------------------
   <dialog class="mobile-menu" id="mobile-menu" aria-label="Site menu" data-mobile-menu>
     <div class="mithila-frame mobile-menu__frame">
       <div class="mithila-frame__inner mobile-menu__inner">
         <div class="mobile-menu__top">
           <span class="brand__name">Arnab Chakrabarty</span>
           <button class="icon-btn" type="button" data-menu-close>
             <svg class="icon" aria-hidden="true" focusable="false"><use href="#i-close"/></svg>
             <span class="visually-hidden">Close site menu</span>
           </button>
         </div>
         <nav aria-label="Site menu">
           <ol class="mobile-menu__list">
             <li><a href="/index">Home</a></li>
             <li><a href="/about">About</a></li>
             <li><a href="/lineage">Lineage</a></li>
             <li><a href="/music">Music</a></li>
             <li><a href="/concerts">Concerts</a></li>
             <li><a href="/teaching">Teaching</a></li>
             <li><a href="/gallery">Gallery</a></li>
             <li><a href="/press">Press</a></li>
             <li><a href="/outreach">Outreach</a></li>
             <li><a href="/contact">Contact</a></li>
           </ol>
         </nav>
         <p class="mobile-menu__foot label"><a href="mailto:info@sarod.ca">info@sarod.ca</a> · <a href="tel:+16476735653">+1 (647) 673-5653</a></p>
       </div>
     </div>
   </dialog>

   ---- 4. Main -------------------------------------------------------------
   <main id="main" tabindex="-1"> ... </main>
   Inner pages (body.no-hero) open main with a masthead:
     <header class="masthead wrap">
       <p class="label">Biography</p>
       <h1 class="display display--page">About</h1>
       <p class="subdisplay">A life strung between Lucknow and the world</p>
       <div class="rule" data-glyph="❦" role="presentation"></div>
     </header>

   ---- 5. Footer (last child of <body>, before nothing else) ---------------
   <footer class="site-footer">
     <div class="mithila-band" aria-hidden="true"></div>
     <div class="site-footer__grid wrap">
       <div class="site-footer__col">
         <p class="brand brand--footer"><span class="brand__name">Arnab Chakrabarty</span></p>
         <p class="site-footer__line">Sarod · Shahjahanpur–Lucknow tradition</p>
         <p class="site-footer__contact"><a href="mailto:info@sarod.ca">info@sarod.ca</a> · <a href="tel:+16476735653">+1&nbsp;(647)&nbsp;673-5653</a></p>
       </div>
       <nav class="site-footer__col" aria-label="Footer">
         <ul class="site-footer__links">
           <li><a href="/about">About</a></li><li><a href="/lineage">Lineage</a></li>
           <li><a href="/music">Music</a></li><li><a href="/concerts">Concerts</a></li>
           <li><a href="/teaching">Teaching</a></li><li><a href="/gallery">Gallery</a></li>
           <li><a href="/press">Press</a></li><li><a href="/outreach">Outreach</a></li>
           <li><a href="/contact">Contact</a></li>
         </ul>
       </nav>
       <div class="site-footer__col">
         <p class="label">Patronage</p>
         <p class="site-footer__line">Sustain new recordings, archive work and teaching.</p>
         <a class="btn btn--gold" href="https://www.patreon.com/REPLACE" data-config-href="patreonUrl" rel="noopener">Become a patron</a>
         <ul class="social" aria-label="Social media">
           <li><a class="social__link" href="#" data-config-href="social.youtube" rel="noopener"><svg class="icon" aria-hidden="true" focusable="false"><use href="#i-youtube"/></svg><span class="visually-hidden">YouTube</span></a></li>
           <li><a class="social__link" href="https://www.instagram.com/arnab.sarod/" data-config-href="social.instagram" rel="noopener"><svg class="icon" aria-hidden="true" focusable="false"><use href="#i-instagram"/></svg><span class="visually-hidden">Instagram, @arnab.sarod</span></a></li>
           <li><a class="social__link" href="#" data-config-href="social.facebook" rel="noopener"><svg class="icon" aria-hidden="true" focusable="false"><use href="#i-facebook"/></svg><span class="visually-hidden">Facebook</span></a></li>
           <li><a class="social__link" href="#" data-config-href="social.tiktok" rel="noopener"><svg class="icon" aria-hidden="true" focusable="false"><use href="#i-tiktok"/></svg><span class="visually-hidden">TikTok</span></a></li>
         </ul>
       </div>
     </div>
     <div class="site-footer__colophon wrap">
       <p>© <span data-year>2026</span> Arnab Chakrabarty. Photographs and texts used with permission.</p>
       <p class="colophon">Set in Playfair Display, EB Garamond and Cormorant; borders drawn after the Mithila painters of Bihar. <span class="colophon__end" aria-hidden="true">❦</span></p>
     </div>
   </footer>

   JS (site.js) injects: the SVG sprite (#i-* icons, #m-* Mithila motifs),
   the .grain overlay, the lightbox <dialog>. Nothing else is required.

   ---- 6. Component reference (class / data-attribute → markup) -----------
   LAYOUT     .wrap (max 1280px, gutters) · .wrap--narrow (880px) · .prose (68ch)
              .section · .section--tight · .section--deep (paper-deep band)
              .section--night (indigo band; re-maps tokens locally)
              .section--wall (plaster/cork wall for poster boards)
              .split (text/media 2-col ≥1024) · .split--reverse · .cols (auto-fit grid)
              + the .od-* primitives (see OD-LAYOUT-PRIMITIVES below).
   TYPE       h1/.display · .display--page · h2/.h2 · h3/.h3 · .subdisplay · .lede
              .label · .smallcaps · .deva (add lang="hi" or lang="sa") · .muted
              .quote:  <figure class="quote"><blockquote><p>…</p></blockquote>
                       <figcaption><cite>Name, source</cite></figcaption></figure>
   ORNAMENT   <div class="rule" data-glyph="❦" role="presentation"></div>  (glyph optional: ✦ ❦ ✥)
              <div class="ornament-divider" role="presentation"></div>  (Mithila lotus between rules)
              .frame (double rule) · .frame--mithila (frame + Mithila bands) · .corners (lotus corner flourishes; uses ::before/::after)
              <div class="mithila-band" aria-hidden="true"></div>  (repeating leaf-chain; CSS-mask drawn in var(--ink); no JS needed)
              <div class="mithila-frame"><div class="mithila-frame__inner">…</div></div>  (bands top/bottom + side vines + lotus corners)
              Motifs from the sprite: <svg class="mithila-motif" aria-hidden="true" focusable="false"><use href="#m-peacock"/></svg>
                 ids: #m-peacock #m-fish #m-lotus #m-vine #m-leafchain · modifiers .mithila-motif--lg / --flip
   ICONS      <svg class="icon" aria-hidden="true" focusable="false"><use href="#i-NAME"/></svg>
              NAME: sarod tanpura play youtube instagram facebook tiktok spotify bandcamp apple tidal
                    deezer youtube-music shazam download pin close chevron-left chevron-right
                    chevron-down menu mail phone external arrow-right patreon calendar
   PHOTO      .sepia (filter) · <div class="print"><img …></div> (silver-gelatin grain+vignette)
              Placeholder-safe image: <figure class="ph" data-label="gallery-01.jpg"><img src="assets/img/gallery-01.jpg" alt="…"></figure>
              (any element may be .ph; on load error JS adds .is-missing → ornamental paper card showing data-label)
   BUTTONS    .btn (ink) · .btn--ghost (ruled) · .btn--gold (ink on gold-glow) · .btn--on-dark (cream ruled, for hero/night)
              .btn--sm · .icon-btn (44px square) · .is-loading state (set by forms JS)
   LINKS      default rust + underline; hover ink. .string-link = vibrating gold string on hover (desktop).
   HERO       see ".hero" section below for full markup. .raga-clock filled by JS.
   REVEAL     data-reveal on any block · data-reveal-stagger on a parent (children reveal 40ms apart)
   COUNTERS   <ul class="counters"><li class="od-stat counter"><span class="counter__num" data-count-to="35" data-suffix="+">35+</span><span class="label">Countries</span></li></ul>
   TABLE      <table class="table-letterpress"> with <td data-label="Venue"> on every cell (stacks <640px)
   LIGHTBOX   <a href="big.jpg" data-lightbox="groupname" data-caption="Caption"><img …></a> (dialog is auto-created)
   VIDEO      <div class="yt-facade" data-yt-id="OSTh6j7J4U0" data-yt-title="Raga Nand, alap and gat"></div>
              (JS adds poster + play button; or render all CONFIG.youtube with <div data-yt-list></div>)
   FORMS      <form data-validate [data-endpoint="newsletter"] [data-success="…"] novalidate>
                <div class="field"><label for="f-name">Name <span class="req" aria-hidden="true">*</span></label>
                  <input id="f-name" name="name" required autocomplete="name" aria-describedby="f-name-hint f-name-err">
                  <p class="field__hint" id="f-name-hint">As you would like to be addressed.</p>
                  <p class="field__error" id="f-name-err" aria-live="polite"></p></div>
                <button class="btn" type="submit">Send</button>
                <p class="form-status" role="status" aria-live="polite"></p></form>
              (JS creates .form-errors summary at top of form when needed)
   POSTERS    <ul class="poster-wall" data-poster-wall></ul> (rendered from CONFIG.images.posters) or hand-written:
              <li class="pin" style="--tilt:-2deg"><a class="ph" href="…" data-lightbox="posters" data-caption="…" data-label="poster-01.jpg"><img …></a><p class="pin__caption">…</p></li>
   GALLERY    <div class="masonry" data-gallery></div> (from CONFIG.images.gallery) or hand-written .masonry > figure.gallery-item
   CONCERTS   [data-concerts-upcoming] (list + Event JSON-LD) · [data-concerts-past] (letterpress table)
              [data-concert-strip] (one-line "next concert") · <svg data-world-map viewBox="0 0 360 180"></svg> + optional <ul data-world-map-list></ul>
   MUSIC      [data-spotify-embed] (iframe when CONFIG.spotifyArtistUri set, otherwise a placeholder note)
              <ul class="stream-links"><li><a class="stream-link" href="…"><svg class="icon"…><use href="#i-spotify"/></svg>Spotify</a></li></ul>
   TIERS      <div class="tiers"><article class="tier [tier--featured]"><p class="label">…</p><h3 class="tier__name">…</h3><p class="tier__price">…</p><ul class="tier__list">…</ul><a class="btn">…</a></article></div>
              <section class="commission corners"> premium ornate module </section>
   ACCORDION  <details class="accordion"><summary>Question</summary><div class="accordion__body">…</div></details>
   TAGS       <span class="tag">Hindustani</span> · .tag--sample (used for sample concert listings)
   CONFIG     links: any <a data-config-href="patreonUrl|social.youtube|social.instagram|social.facebook|social.tiktok|..."> gets its href from SAROD_CONFIG.
              text: <span data-config-text="contact.email"></span>; <span data-year></span> gets current year.
   UTILITIES  .visually-hidden · .skip-link · .muted · .center · .mt-0 · .nowrap
   ========================================================================== */

/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }
  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */


/* ==========================================================================
   0. REGISTERED PROPERTIES — lets the raga clock crossfade sky colours (4s)
   ========================================================================== */
@property --sky-top      { syntax: '<color>';  inherits: true; initial-value: #E9A955; }
@property --sky-bottom   { syntax: '<color>';  inherits: true; initial-value: #8B4A2B; }


/* ==========================================================================
   1. TOKENS
   Contrast (WCAG 2.x), verified by calculation:
     day:   ink/paper 16.9:1 · ink-soft/paper 8.8:1 · rust/paper 5.5:1 · rust/paper-deep 4.5:1
     night: cream/indigo 12.9:1 · ink-soft/indigo 9.4:1 · rust(#D98A5F)/indigo 5.9:1, /paper-deep 5.2:1
     .btn--gold: ink on gold-glow 10:1.  Gold is NEVER used for text on paper.
   ========================================================================== */
:root {
  /* palette (ds-sarod-1) */
  --paper: #F2E6CE;
  --paper-deep: #E3D2B0;
  --ink: #1C140D;
  --ink-soft: #4A3A28;
  --gold: #C98A2E;
  --gold-glow: #F0B65A;
  --rust: #8B4A2B;
  --indigo-night: #1A2233;

  /* fixed (theme-independent) values for image overlays */
  --cream: #F2E6CE;
  --ink-fixed: #1C140D;
  --paper-edge: #111827;          /* vignette target in night palette */
  --hairline: rgba(139, 74, 43, .45);
  --vignette: rgba(74, 44, 20, .20);
  --foxing: rgba(139, 74, 43, .07);
  --wall: #D3B894;                /* plaster/cork wall, derived from paper-deep + rust */

  /* type */
  --f-display: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-sub: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
  --f-body: 'EB Garamond', Garamond, 'Iowan Old Style', Georgia, serif;
  --f-sc: 'Cormorant SC', 'Cormorant Garamond', Garamond, Georgia, serif;
  --f-deva: 'Noto Serif Devanagari', 'Kohinoor Devanagari', 'Devanagari MT', serif;

  /* 8px spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 10vw, 128px);
  --radius: 2px;
  --header-h: 64px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-reveal: 700ms;
  --t-ui: 200ms;
  --stagger: 40ms;

  /* raga-clock defaults (dusk); site.js overwrites per prahar */
  --sky-top: #E9A955;
  --sky-bottom: #8B4A2B;
  transition: --sky-top 4s ease, --sky-bottom 4s ease;

  /* texture data-URIs (colour-neutral masks or baked sepia noise) */
  --tex-noise: url("../img/tex/tex-noise.svg");
  --tex-fibre: url("../img/tex/tex-fibre.svg");
  --tex-grain: url("../img/tex/tex-grain.svg");
  --mask-band: url("../img/tex/mask-band.svg");
  --mask-vine: url("../img/tex/mask-vine.svg");
  --mask-corner: url("../img/tex/mask-corner.svg");
  --mask-corner-br: url("../img/tex/mask-corner-br.svg");
  --mask-lotus: url("../img/tex/mask-lotus.svg");
  --mask-chevron: url("../img/tex/mask-chevron.svg");

  color-scheme: light;
}


/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s2));
  overflow-x: hidden;
}
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video, iframe, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* Paper substrate: fibre + speckle tiles scroll with the page (painted on the canvas);
   a fixed layer (body::before) carries foxing spots and the darker edge vignette. Never flat. */
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--f-body);
  font-size: 1.25rem;            /* 20px — EB Garamond has a small x-height */
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    var(--tex-noise),
    var(--tex-fibre),
    radial-gradient(120% 60% at 50% 0%, rgba(255, 250, 235, .10), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(120, 80, 40, .035) 100%);
  background-size: 220px 220px, 320px 320px, 100% 100%, 100% 100%;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(3px 3px at 12% 18%, var(--foxing), transparent 100%),
    radial-gradient(18px 14px at 83% 12%, var(--foxing), transparent 100%),
    radial-gradient(9px 9px at 71% 64%, var(--foxing), transparent 100%),
    radial-gradient(26px 20px at 8% 82%, var(--foxing), transparent 100%),
    radial-gradient(5px 5px at 44% 91%, var(--foxing), transparent 100%),
    radial-gradient(14px 12px at 92% 77%, var(--foxing), transparent 100%),
    radial-gradient(40px 30px at 30% 40%, var(--foxing), transparent 100%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 58%, var(--vignette) 100%);
}

::selection { background: var(--gold-glow); color: var(--ink-fixed); }

/* Links: rust + underline; hover = ink (never lighter/grey) */
a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color var(--t-ui) var(--ease), text-decoration-thickness var(--t-ui) var(--ease);
}
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* Focus: gold ring, 3px offset, with a 1px ink inner line so it reads on any ground */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}
main:focus-visible, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

hr { border: 0; border-top: 1px solid var(--rust); margin: var(--s5) 0; }
abbr[title] { text-decoration: underline dotted; }
small { font-size: .8em; }
strong, b { font-weight: 500; }


/* ==========================================================================
   3. GRAIN OVERLAY (injected by site.js as <div class="grain" aria-hidden="true">)
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--tex-grain);
  background-size: 180px 180px;
  opacity: .025;
  /* ponytail: static on purpose — the old stepping grain + multiply blend repainted and
     re-blended the entire viewport 5×/s, which was the main CPU/fan cost */
}
/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(880px + 2 * var(--gutter)); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose > h2, .prose > h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--rust); }

main { display: block; }
body.no-hero main { padding-top: var(--header-h); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section:not(.section--deep):not(.section--night):not(.section--wall) + .section:not([class*="section--"]) { padding-top: 0; }
/* headings placed outside .section-head still need air before their lede */
:where(h2, .h2) + p.lede { margin-top: var(--s2); }
/* config links still set to REPLACE stay hidden until a real URL is entered in site.js */
[data-placeholder], li:has(> [data-placeholder]) { display: none !important; }
.section--deep {
  background-color: var(--paper-deep);
  background-image: var(--tex-noise);
  background-size: 220px 220px;
  border-block: 1px solid var(--rust);
}
/* Night band: locally re-maps tokens so every component inside just works */
.section--night {
  --paper: #1A2233; --paper-deep: #222C40; --ink: #F2E6CE; --ink-soft: #D6C6A6; --rust: #D98A5F;
  --hairline: rgba(217, 138, 95, .38);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(90% 70% at 50% 0%, rgba(240, 182, 90, .10), transparent 70%), var(--tex-grain);
  background-size: 100% 100%, 180px 180px;
  background-blend-mode: normal, soft-light;
}
.section--wall { background-color: var(--wall); background-image: var(--tex-noise), var(--tex-fibre); background-size: 220px 220px, 320px 320px; }

.section__head { margin-bottom: var(--s5); max-width: 60rem; }
.section__head > * + * { margin-top: var(--s2); }
.section__head.center { margin-inline: auto; }

.split { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); }
  .split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--reverse > :first-child { order: 2; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.cols { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.cols--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

/* Surfaces — paper-deep with rules, never drop-shadow cards */
.surface {
  background-color: var(--paper-deep);
  background-image: var(--tex-noise);
  background-size: 220px 220px;
  border-top: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
  padding: var(--s4);
}
.surface > * + * { margin-top: var(--s2); }


/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */
h1, .display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .95;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.display--black { font-weight: 900; }
.display--page { font-size: clamp(2.75rem, 7vw, 6rem); }
@media (max-width: 374px) { h1, .display:not(.hero__name) { font-size: 2.6rem; } } /* keeps "Chakrabarty" inside 320px viewports */
h2, .h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
h4, .h4 { font-family: var(--f-body); font-weight: 500; font-size: 1.1875rem; line-height: 1.4; }

.subdisplay {
  font-family: var(--f-sub);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.375rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.lede { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.6; color: var(--ink); max-width: 60ch; }
.label, .smallcaps {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: lowercase;     /* Cormorant SC renders lowercase as small caps */
  color: var(--ink-soft);
}
.smallcaps { letter-spacing: .08em; font-size: 1.05em; color: inherit; }
.label a { color: inherit; }
.deva { font-family: var(--f-deva); font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 1.6; }
.raga { font-family: var(--f-sub); font-style: italic; font-weight: 400; font-size: 1.1em; }
.muted { color: var(--ink-soft); }
.center { text-align: center; margin-inline: auto; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }

/* Pull quote — large centred Cormorant italic */
.quote {
  max-width: 52rem;
  margin: var(--s6) auto;
  padding-inline: var(--s2);
  text-align: center;
}
.quote blockquote, .quote > p { margin: 0; }
.quote p {
  font-family: var(--f-sub);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
.quote p::before { content: "\201C"; }
.quote p::after  { content: "\201D"; }
.quote figcaption, .quote footer { margin-top: var(--s3); }
.quote cite {
  font-family: var(--f-sc);
  font-style: normal;
  font-size: .9375rem;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: var(--ink-soft);
}
.quote cite::before { content: "— "; color: var(--rust); }
.quote--left { text-align: left; margin-inline: 0; }


/* ==========================================================================
   6. ORNAMENTS
   ========================================================================== */
/* .rule — hairline rust rule with a centred glyph.
   <div class="rule" data-glyph="✦" role="presentation"></div>   (default glyph ❦; CSS only) */
.rule {
  --rule-gap: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5em;
  margin-block: var(--s4);
  font-family: var(--f-sub);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold);
  background:
    linear-gradient(var(--rust), var(--rust)) left center / calc(50% - var(--rule-gap)) 1px no-repeat,
    linear-gradient(var(--rust), var(--rust)) right center / calc(50% - var(--rule-gap)) 1px no-repeat;
}
.rule::before { content: "❦"; }
.rule[data-glyph]::before { content: attr(data-glyph); }
.rule[data-glyph=""] { --rule-gap: 0px; }
.rule[data-glyph=""]::before { content: none; }
.rule--short { max-width: 14rem; margin-inline: auto; }
.rule--left { max-width: 10rem; margin-inline: 0; }

/* .ornament-divider — Mithila lotus between double rules
   <div class="ornament-divider" role="presentation"></div> */
.ornament-divider {
  position: relative;
  height: 32px;
  margin-block: var(--s5);
  background:
    linear-gradient(var(--rust), var(--rust)) left calc(50% - 2px) / calc(50% - 48px) 1px no-repeat,
    linear-gradient(var(--rust), var(--rust)) left calc(50% + 2px) / calc(50% - 48px) 1px no-repeat,
    linear-gradient(var(--rust), var(--rust)) right calc(50% - 2px) / calc(50% - 48px) 1px no-repeat,
    linear-gradient(var(--rust), var(--rust)) right calc(50% + 2px) / calc(50% - 48px) 1px no-repeat;
}
.ornament-divider::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 64px; height: 32px;
  margin-left: -32px;
  background-color: var(--ink);
  -webkit-mask: var(--mask-lotus) center / contain no-repeat;
  mask: var(--mask-lotus) center / contain no-repeat;
}

/* .frame — double-rule frame with an outer hairline */
.frame {
  position: relative;
  padding: clamp(var(--s3), 4vw, var(--s5));
  border: 3px double var(--rust);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rust);
  margin: 7px;
  background-color: var(--paper);
}
/* .frame's 7px margin (room for the outer ring) must not undo .wrap's centring */
.wrap.frame { margin-inline: auto; width: calc(100% - 2 * var(--gutter)); }
.frame--deep { background-color: var(--paper-deep); box-shadow: 0 0 0 6px var(--paper-deep), 0 0 0 7px var(--rust); }
.frame--mithila { padding-block: calc(clamp(var(--s3), 4vw, var(--s5)) + 28px); }
.frame--mithila::before, .frame--mithila::after {
  content: "";
  position: absolute;
  left: var(--s2); right: var(--s2);
  height: 20px;
  background-color: var(--ink);
  -webkit-mask: var(--mask-band) left center / auto 100% repeat-x;
  mask: var(--mask-band) left center / auto 100% repeat-x;
  opacity: .85;
}
.frame--mithila::before { top: var(--s2); }
.frame--mithila::after { bottom: var(--s2); }

/* .corners — lotus flourishes top-left + bottom-right (uses both pseudo-elements) */
.corners { position: relative; }
.corners::before, .corners::after {
  content: "";
  position: absolute;
  width: 44px; height: 44px;
  background-color: var(--rust);
  -webkit-mask: var(--mask-corner) center / contain no-repeat;
  mask: var(--mask-corner) center / contain no-repeat;
  pointer-events: none;
}
.corners::before { top: 6px; left: 6px; }
.corners::after { bottom: 6px; right: 6px; transform: rotate(180deg); }

/* Mithila band — repeating leaf-chain strip, drawn as a mask so it takes var(--ink) */
.mithila-band {
  display: block;
  width: 100%;
  height: 28px;
  background-color: var(--ink);
  opacity: .82;
  -webkit-mask: var(--mask-band) left center / auto 100% repeat-x;
  mask: var(--mask-band) left center / auto 100% repeat-x;
}
.mithila-band--sm { height: 18px; }
.mithila-band--rust { background-color: var(--rust); opacity: 1; }

/* Mithila frame — bands top/bottom, vines left/right, lotus corners */
.mithila-frame {
  position: relative;
  padding: 44px 40px;
}
.mithila-frame::before, .mithila-frame::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  height: 24px;
  background-color: var(--ink);
  opacity: .82;
  -webkit-mask: var(--mask-band) left center / auto 100% repeat-x;
  mask: var(--mask-band) left center / auto 100% repeat-x;
  pointer-events: none;
}
.mithila-frame::before { top: 8px; }
.mithila-frame::after { bottom: 8px; }
.mithila-frame__inner { position: relative; height: 100%; }
.mithila-frame__inner::before, .mithila-frame__inner::after {
  content: "";
  position: absolute;
  top: -12px; bottom: -12px;
  width: 20px;
  background-color: var(--ink);
  opacity: .82;
  -webkit-mask: var(--mask-vine) center top / 100% auto repeat-y;
  mask: var(--mask-vine) center top / 100% auto repeat-y;
  pointer-events: none;
}
.mithila-frame__inner::before { left: -34px; }
.mithila-frame__inner::after { right: -34px; transform: scaleX(-1); }
.mithila-frame > .mithila-frame__inner { z-index: 1; }
@media (max-width: 480px) {
  .mithila-frame { padding: 36px 28px; }
  .mithila-frame::before, .mithila-frame::after { left: 2px; right: 2px; height: 18px; }
  .mithila-frame__inner::before { left: -26px; width: 16px; }
  .mithila-frame__inner::after { right: -26px; width: 16px; }
}

/* Sprite motifs (#m-peacock, #m-fish, #m-lotus, #m-vine, #m-leafchain) */
.mithila-motif {
  width: 64px; height: 64px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .88;
}
.mithila-motif--lg { width: 128px; height: 128px; }
.mithila-motif--flip { transform: scaleX(-1); }
.mithila-motif--rust { stroke: var(--rust); }
.motif-row { display: flex; justify-content: center; align-items: center; gap: var(--s3); }

/* Icons — one stroke-only family, 1.5px, non-scaling (set on sprite paths) */
.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.sarod-sprite { position: absolute; width: 0; height: 0; overflow: hidden; color: var(--ink); }


/* ==========================================================================
   7. PHOTOGRAPHS — sepia, silver-gelatin print, missing-image placeholder
   ========================================================================== */
.sepia { filter: sepia(.85) contrast(1.15) brightness(.95) saturate(.9); }
.sepia--soft { filter: sepia(.5) contrast(1.08) saturate(.95); }

.print {
  position: relative;
  display: block;
  padding: 10px;
  background: #F7EEDB;
  border: 1px solid var(--hairline);
  isolation: isolate;
}
.print > img { width: 100%; }
.print::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 80% at 50% 50%, transparent 55%, rgba(28, 20, 13, .45) 100%),
    var(--tex-grain);
  background-size: 100% 100%, 180px 180px;
  mix-blend-mode: multiply;
  opacity: .75;
}

/* .ph — wrapper for any image that may not exist yet. JS adds .is-missing on error. */
.ph { position: relative; display: block; background-color: var(--paper-deep); overflow: hidden; }
.ph > img { width: 100%; }
.ph.is-missing {
  aspect-ratio: var(--ph-ratio, 4 / 5);
  min-height: 180px;
  background-color: var(--paper-deep);
  background-image:
    var(--tex-noise),
    radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(74, 44, 20, .14) 100%);
  background-size: 220px 220px, 100% 100%;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.ph.is-missing > img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; }
.ph.is-missing::before {        /* lotus corners + centre lotus, in ink */
  content: "";
  position: absolute;
  inset: 22px;
  background-color: var(--ink);
  -webkit-mask: var(--mask-corner) top left / 36px 36px no-repeat, var(--mask-corner-br) bottom right / 36px 36px no-repeat, var(--mask-lotus) center 38% / 64px 32px no-repeat;
  mask: var(--mask-corner) top left / 36px 36px no-repeat, var(--mask-corner-br) bottom right / 36px 36px no-repeat, var(--mask-lotus) center 38% / 64px 32px no-repeat;
  opacity: .6;
}
.ph.is-missing::after {
  content: attr(data-label);
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 6px 14px;
  max-width: calc(100% - 48px);
  font-family: var(--f-sub);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: center;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
  background: var(--paper-deep);
}
/* the double rule of the placeholder frame */
.ph.is-missing { box-shadow: inset 0 0 0 12px var(--paper-deep), inset 0 0 0 13px var(--rust), inset 0 0 0 16px var(--paper-deep), inset 0 0 0 17px var(--rust); }


/* ==========================================================================
   8. HEADER
   ========================================================================== */
.skip-link {
  position: fixed;
  top: var(--s1); left: var(--s1);
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sc);
  letter-spacing: .14em;
  text-transform: lowercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; color: var(--paper); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  color: var(--cream);
  background: linear-gradient(180deg, rgba(28, 20, 13, .62) 0%, rgba(28, 20, 13, .28) 60%, rgba(28, 20, 13, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.site-header.is-solid, body.no-hero .site-header {
  color: var(--ink);
  background: var(--paper);
  background-image: var(--tex-noise);
  background-size: 220px 220px;
  border-bottom-color: var(--rust);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header a { color: inherit; text-decoration: none; }
.site-header:not(.is-solid) { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
body.no-hero .site-header { text-shadow: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.brand__mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark path, .brand__mark circle { vector-effect: non-scaling-stroke; }
.brand__name {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 359px) { .brand__name { letter-spacing: .12em; font-size: .8125rem; } }

.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 22px); }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-sc);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: lowercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-ui) var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::before {
  content: "✦";
  position: absolute;
  left: 50%; bottom: -4px;
  transform: translateX(-50%);
  font-size: .55rem;
  color: var(--gold);
}
.site-header.is-solid .site-nav a:hover, body.no-hero .site-nav a:hover { color: var(--rust); }

.site-header__tools { display: flex; align-items: center; gap: 4px; }
.tanpura-toggle, .menu-toggle, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-family: var(--f-sc);
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.tanpura-toggle:hover, .menu-toggle:hover, .icon-btn:hover { border-color: currentColor; }
.tanpura-toggle__text { display: none; }
.tanpura-toggle[aria-pressed="true"] { border-color: currentColor; }
.tanpura-toggle[aria-pressed="true"] .icon { color: var(--gold-glow); }
.site-header.is-solid .tanpura-toggle[aria-pressed="true"] .icon,
body.no-hero .tanpura-toggle[aria-pressed="true"] .icon { color: var(--gold); }
.tanpura-toggle[aria-pressed="true"] .icon { animation: tanpura-pulse 4s ease-in-out infinite; }
.tanpura-toggle[data-state="resume"] { border-style: dashed; border-color: currentColor; }
@keyframes tanpura-pulse { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.08); } 20% { transform: scale(1); } }
@media (min-width: 768px) { .tanpura-toggle__text { display: inline; } }

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .site-nav { display: block; }
  .menu-toggle { display: none; }
  .tanpura-toggle__text { display: none; }
  .brand__name { font-size: .8125rem; letter-spacing: .16em; }
}
@media (min-width: 1280px) {
  .site-nav a { font-size: .9375rem; }
  .brand__name { font-size: .9375rem; letter-spacing: .22em; }
  .tanpura-toggle__text { display: inline; }
}
@media (min-width: 1440px) { .site-nav__list { gap: 26px; } }


/* ==========================================================================
   9. MOBILE MENU — native <dialog> opened with showModal()
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--s2);
  border: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--tex-noise), var(--tex-fibre), radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, var(--vignette) 100%);
  background-size: 220px 220px, 320px 320px, 100% 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu::backdrop { background: rgba(28, 20, 13, .5); }
.mobile-menu[open] { display: block; animation: menu-fade 300ms var(--ease) both; }
.mobile-menu__frame { min-height: 100%; }
.mobile-menu__inner { display: flex; flex-direction: column; gap: var(--s4); min-height: calc(100svh - 120px); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.mobile-menu__list { display: grid; gap: 2px; counter-reset: menu; }
.mobile-menu__list li { counter-increment: menu; }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  min-height: 48px;
  padding-block: 4px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu__list a::before {
  content: counter(menu, lower-roman) ".";
  min-width: 2.2em;
  font-family: var(--f-sub);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--rust);
}
.mobile-menu__list a:hover { color: var(--rust); }
.mobile-menu__list a[aria-current="page"] { color: var(--rust); }
.mobile-menu__list a[aria-current="page"]::after { content: "✦"; font-size: .9rem; color: var(--gold); margin-left: auto; }
.mobile-menu__foot { margin-top: auto; }
.mobile-menu[open] .mobile-menu__list li {
  animation: menu-item var(--t-reveal) var(--ease) both;
  animation-delay: calc(80ms + var(--i, 0) * var(--stagger));
}
@keyframes menu-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-item { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
html.menu-open { overflow: hidden; }


/* ==========================================================================
   10. FOOTER
   ========================================================================== */
/* a coloured last section already separates itself from the footer */
main:has(> .section:last-child:is(.section--deep, .section--wall, .section--night)) + .site-footer { margin-top: 0; }
.site-footer {
  margin-top: var(--section);
  padding-bottom: var(--s5);
  background-color: var(--paper-deep);
  background-image: var(--tex-noise), var(--tex-fibre);
  background-size: 220px 220px, 320px 320px;
  border-top: 1px solid var(--rust);
  font-size: 1.0625rem;
}
.site-footer > .mithila-band { margin-top: var(--s2); }
.site-footer__grid {
  display: grid;
  gap: var(--s5);
  padding-top: var(--s6);
  padding-bottom: var(--s5);
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); } }
.site-footer__col > * + * { margin-top: var(--s2); }
.brand--footer { margin: 0; }
.brand--footer .brand__name { font-size: 1.0625rem; }
.site-footer__line { color: var(--ink-soft); }
.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s3); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-sc); letter-spacing: .12em; text-transform: lowercase; }
.social { display: flex; flex-wrap: wrap; gap: 4px; }
.social__link {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.social__link:hover { color: var(--rust); border-color: var(--rust); }
.site-footer__colophon {
  display: grid;
  gap: var(--s1);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline);
  font-size: .9375rem;
  color: var(--ink-soft);
}
@media (min-width: 1024px) { .site-footer__colophon { grid-template-columns: auto 1fr; gap: var(--s4); } .colophon { text-align: right; } }
.colophon { font-family: var(--f-sub); font-style: italic; font-size: 1.0625rem; }
.colophon__end { color: var(--gold); font-style: normal; margin-left: 4px; }


/* ==========================================================================
   11. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 44px;
  padding: 0 26px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: lowercase;
  text-decoration: none;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.btn:hover { --btn-bg: var(--rust); --btn-bd: var(--rust); color: var(--paper); text-decoration: none; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  border-top-color: var(--ink);
  border-bottom-color: var(--ink);
  box-shadow: inset 0 3px 0 -2px var(--ink), inset 0 -3px 0 -2px var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--paper-deep); --btn-bd: transparent; color: var(--ink); border-top-color: var(--rust); border-bottom-color: var(--rust); }
.btn--gold { --btn-bg: var(--gold-glow); --btn-fg: #1C140D; --btn-bd: #1C140D; }
.btn--gold:hover { --btn-bg: var(--gold); --btn-bd: #1C140D; color: #1C140D; }
.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: var(--cream); }
.btn--on-dark:hover { --btn-bg: var(--cream); --btn-bd: var(--cream); color: #1C140D; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn .icon { width: 20px; height: 20px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 1.5px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
@media (max-width: 479px) { .btn-row { flex-direction: column; align-items: stretch; } .btn-row > .btn { justify-content: center; } }


/* ==========================================================================
   12. STRING LINK — hover draws a gold string that vibrates (damped sine)
   ========================================================================== */
.string-link { position: relative; display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .string-link { text-decoration: none; }
  .string-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 300ms var(--ease);
  }
  .string-link:not(:hover)::after { background: currentColor; transform: scaleX(1); height: 1px; opacity: .6; }
  .string-link:hover::after { transform: scaleX(1); animation: string-pluck 900ms linear 1; }
}
@keyframes string-pluck {
  0%   { translate: 0 0; }
  8%   { translate: 0 -2.4px; }
  16%  { translate: 0 2px; }
  24%  { translate: 0 -1.6px; }
  32%  { translate: 0 1.25px; }
  40%  { translate: 0 -.95px; }
  50%  { translate: 0 .7px; }
  60%  { translate: 0 -.45px; }
  70%  { translate: 0 .28px; }
  82%  { translate: 0 -.12px; }
  100% { translate: 0 0; }
}


/* ==========================================================================
   13. HERO — one composite, layered by masks and parallax
   Markup (index.html):
   <section class="hero" data-hero aria-labelledby="hero-title">
     <div class="hero__stage" aria-hidden="true">
       <div class="hero__sky"><img src="assets/img/hero.webp" alt="" fetchpriority="high"></div>
       <div class="hero__palace"><img src="assets/img/hero.webp" alt=""></div>
       <div class="hero__terrace"><img src="assets/img/hero.webp" alt=""></div>
       <div class="hero__artist"><img src="assets/img/hero.webp" alt=""></div>
       <div class="hero__veil"></div>
     </div>
     <div class="hero__content wrap">
       <p class="label">Sarod · Shahjahanpur–Lucknow gharana</p>
       <h1 class="display" id="hero-title">Arnab Chakrabarty</h1>
       <p class="subdisplay">…</p>
       <div class="btn-row"><a class="btn btn--gold" href="music.html">Listen</a> <a class="btn btn--on-dark" href="concerts.html">Concerts</a></div>
     </div>
     <p class="raga-clock" data-raga-clock></p>
   </section>
   The stage is decorative (alt=""): describe the scene in a visually-hidden
   sentence inside .hero__content. Every size crops toward the artist (30% from the left).
   JS sets --px/--py (±12px) on .hero; each layer multiplies by its --depth.
   ========================================================================== */
.hero {
  --px: 0px;
  --py: 0px;
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: #1C140D;
}
.hero__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__sky, .hero__palace, .hero__terrace, .hero__artist {
  position: absolute;
  inset: -16px;
  translate: calc(var(--px) * var(--depth, 0)) calc(var(--py) * var(--depth, 0));
  will-change: translate;
}
.hero__sky > img, .hero__palace > img, .hero__terrace > img, .hero__artist > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 30% 50%; /* artist sits left of centre in the photo */
}
.hero__sky { --depth: .25; }
.hero__sky::after {        /* raga-clock tint */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, transparent 42%, var(--sky-bottom) 100%);
  opacity: .45; /* plain alpha instead of soft-light: blend modes re-blend on every parallax frame */
}
.hero__palace {
  --depth: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 34%, #000 60%, transparent 72%);
  mask-image: linear-gradient(180deg, transparent 20%, #000 34%, #000 60%, transparent 72%);
}
.hero__terrace {
  --depth: .75;
  -webkit-mask-image: linear-gradient(180deg, transparent 54%, #000 68%);
  mask-image: linear-gradient(180deg, transparent 54%, #000 68%);
}
.hero__artist {
  --depth: 1;
  -webkit-mask-image: radial-gradient(ellipse 24% 18% at 50% 70%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 24% 18% at 50% 70%, #000 50%, transparent 100%);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 20, 13, .74) 0%, rgba(28, 20, 13, .38) 30%, rgba(28, 20, 13, 0) 50%),
    linear-gradient(0deg, rgba(28, 20, 13, .55) 0%, rgba(28, 20, 13, 0) 22%);
}
.hero__content {
  position: relative;
  z-index: 2;
  align-self: start;
  padding-top: calc(var(--header-h) + var(--s4));
  padding-bottom: var(--s6);
  text-shadow: 0 2px 22px rgba(0, 0, 0, .4);
}
.hero__content > * + * { margin-top: var(--s2); }
.hero__content .label { color: var(--cream); letter-spacing: .24em; }
.hero__content .display { color: var(--cream); max-width: 11ch; }
/* hero name: always exactly two lines ("Arnab" / "Chakrabarty"), never wrapped mid-name.
   The size follows the text column's width (cqi) so the longer word, Chakrabarty, always fits. */
.hero__content { container-type: inline-size; }
.hero__content .hero__name { max-width: none; overflow-wrap: normal; }
.hero__name > span { display: block; white-space: nowrap; }
.hero__content .hero__name { font-size: min(clamp(3rem, 9vw, 8rem), 13.5cqi); }
.hero__content .subdisplay { color: #EADCC0; max-width: 28ch; }
.hero__content .btn-row { margin-top: var(--s4); }
@media (max-width: 767px) {
  /* Phones: the buttons sit at the foot of the picture, clear of the artist's face,
     just above the raga clock. */
  .hero__content { align-self: stretch; display: flex; flex-direction: column; padding-bottom: calc(var(--s2) + 2.75rem); }
  .hero__content > .btn-row { margin-top: auto; padding-top: var(--s4); }
}
@media (max-width: 767px) and (max-height: 700px) {
  /* Short phones: the face sits higher, so the subtitle joins the buttons at the bottom. */
  .hero__content > .subdisplay { margin-top: auto; font-size: 1.15rem; }
  .hero__content > .btn-row { margin-top: var(--s3); padding-top: 0; }
}
.hero a:not(.btn) { color: var(--cream); }

/* Raga clock caption — small and unobtrusive */
.raga-clock {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--s2);
  margin: 0;
  font-family: var(--f-sub);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  text-align: center;
}
.raga-clock:empty { display: none; }
.raga-clock .deva { font-style: normal; font-size: .95em; }
.raga-clock::before { content: "✦"; color: var(--gold-glow); font-style: normal; margin-right: 8px; font-size: .75em; }
/* anywhere outside the hero */
.raga-clock--inline { position: static; color: var(--ink-soft); text-shadow: none; text-align: left; }

@media (min-width: 768px) {
  .hero__content { align-self: end; padding-bottom: var(--s7); }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(28, 20, 13, .80) 0%, rgba(28, 20, 13, .5) 32%, rgba(28, 20, 13, 0) 58%),
      linear-gradient(0deg, rgba(28, 20, 13, .6) 0%, rgba(28, 20, 13, 0) 30%),
      linear-gradient(180deg, rgba(28, 20, 13, .45) 0%, rgba(28, 20, 13, 0) 18%);
  }
  .raga-clock { left: auto; text-align: right; max-width: 30rem; bottom: var(--s3); }
}
@media (min-width: 1024px) {
  .hero__sky > img, .hero__palace > img, .hero__terrace > img, .hero__artist > img { object-position: 30% 50%; }
  .hero__artist {
    -webkit-mask-image: radial-gradient(ellipse 16% 30% at 55% 62%, #000 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 16% 30% at 55% 62%, #000 50%, transparent 100%);
  }
  .hero__content .display { font-size: min(clamp(4rem, 8vw, 8rem), 13.5cqi); }
}
/* landscape desktop: keep the seated artist right of the text column */
@media (min-width: 1024px) and (min-aspect-ratio: 4/3) {
  .hero__sky > img, .hero__palace > img, .hero__terrace > img, .hero__artist > img { object-position: 30% 50%; }
}

/* Wide / landscape screens: the photo is landscape (1536×1024), so it runs full-bleed
   from under the header to the foot of the hero. The artist sits left of centre, so the
   text moves right, over the wall, with a veil from the right edge to keep it legible. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero__sky > img, .hero__palace > img, .hero__terrace > img, .hero__artist > img { object-position: 30% 45%; }
  .hero__artist {
    -webkit-mask-image: radial-gradient(ellipse 20% 34% at 34% 58%, #000 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 20% 34% at 34% 58%, #000 50%, transparent 100%);
  }
  .hero__veil {
    background:
      linear-gradient(270deg, rgba(28, 20, 13, .82) 0%, rgba(28, 20, 13, .55) 30%, rgba(28, 20, 13, 0) 58%),
      linear-gradient(0deg, rgba(28, 20, 13, .55) 0%, rgba(28, 20, 13, 0) 24%),
      linear-gradient(180deg, rgba(28, 20, 13, .45) 0%, rgba(28, 20, 13, 0) 18%);
  }
  .hero__content {                       /* top of the wall, clear of the sarod's pegs */
    align-self: start;
    padding-top: calc(var(--header-h) + clamp(var(--s4), 8vh, var(--s8)));
    justify-self: end;
    width: min(46%, 42rem);
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--s2) clamp(var(--s4), 6vw, var(--s8));
    padding-bottom: var(--s6);
  }
}

/* Article layout: text column + image at the side (magazine style).
   Stacks on small screens (image after text); side by side from 900px. .article--flip puts the image left. */
.article { display: grid; gap: var(--s5); }
.article__text { min-width: 0; }
.article__text .prose { max-width: 68ch; }
.article__fig { margin: 0; align-self: start; }
.article__figs { display: grid; gap: var(--s4); align-self: start; }
.article__credit { display: block; margin-top: 4px; font-family: var(--f-body, serif); font-style: normal; font-size: .8125rem; letter-spacing: .02em; color: var(--ink-soft); }
.article__fig img { display: block; width: 100%; height: auto; }
.article__fig figcaption { margin-top: var(--s1); font-family: var(--f-sub); font-style: italic; font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .article { grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); gap: var(--s6); }
  .article--flip { grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr); }
  .article--flip .article__fig, .article--flip .article__figs { grid-column: 1; grid-row: 1; }
  .article > .article__fig, .article__figs { position: sticky; top: calc(var(--header-h) + var(--s3)); }
}

/* Interior page masthead (body.no-hero) */
.masthead { padding-top: clamp(40px, 8vw, 96px); padding-bottom: var(--s4); text-align: center; }
.masthead > * + * { margin-top: var(--s2); }
.masthead .subdisplay { max-width: 36ch; margin-inline: auto; }
.masthead .rule { max-width: 22rem; margin-inline: auto; }


/* ==========================================================================
   14. REVEAL — ink bloom (clip wipe + blur + opacity). Gated on html.js.
   ========================================================================== */
.js [data-reveal]:not(.is-in),
.js [data-reveal-stagger]:not(.is-in) > * {
  opacity: 0;
  filter: blur(6px);
  clip-path: inset(0 0 100% 0);
}
.js [data-reveal],
.js [data-reveal-stagger] > * {
  transition:
    opacity var(--t-reveal) var(--ease),
    filter var(--t-reveal) var(--ease),
    clip-path var(--t-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].is-in,
.js [data-reveal-stagger].is-in > * {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}
/* after the bloom, drop the clip so focus rings/tilts are not cut (JS adds .is-settled) */
.js [data-reveal].is-settled,
.js [data-reveal-stagger].is-settled > * { clip-path: none; filter: none; transition: none; }


/* ==========================================================================
   15. COUNTERS
   ========================================================================== */
.counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s3);
  padding-block: var(--s5) var(--s4);
  border-top: 3px double var(--rust);
  border-bottom: 1px solid var(--rust);
  text-align: center;
}
@media (min-width: 768px) { .counters { grid-template-columns: repeat(var(--counter-cols, 4), minmax(0, 1fr)); } }
.counter { display: grid; align-content: start; justify-items: center; }  /* numbers share a top line; a two-line label just runs longer */
.counter__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.counter .label { margin-top: var(--s1); }


/* ==========================================================================
   16. TABLE — letterpress
   ========================================================================== */
.table-letterpress {
  width: 100%;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.table-letterpress caption { caption-side: top; text-align: left; padding-bottom: var(--s2); font-family: var(--f-sub); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }
.table-letterpress th {
  padding: 12px 14px;
  text-align: left;
  vertical-align: bottom;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .16em;
  text-transform: lowercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rust);
}
.table-letterpress td { padding: 14px; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.table-letterpress tr:last-child td { border-bottom: 0; }
.table-letterpress .num { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
@media (max-width: 639px) {
  .table-letterpress thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-letterpress, .table-letterpress tbody, .table-letterpress tr, .table-letterpress td { display: block; width: 100%; }
  .table-letterpress tr { padding-block: var(--s2); border-bottom: 1px solid var(--hairline); }
  .table-letterpress tr:last-child { border-bottom: 0; }
  .table-letterpress caption { display: block; }
  .table-letterpress td { position: relative; padding: 4px 0 4px calc(7.5rem + var(--s2)); border: 0; }
  .table-letterpress td::before {
    content: attr(data-label);
    font-family: var(--f-sc);
    font-weight: 600;
    font-size: .8125rem;
    letter-spacing: .14em;
    text-transform: lowercase;
    color: var(--ink-soft);
    position: absolute; left: 0; top: 4px; width: 7.5rem;
    padding-top: 3px;
  }
  .table-letterpress td:not([data-label])::before { content: none; }
  .table-letterpress td:not([data-label]) { padding-left: 0; }
}


/* ==========================================================================
   17. LIGHTBOX — native <dialog class="lightbox"> (auto-created by site.js)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--s2);
  border: 0;
  color: var(--cream);
  background-color: rgba(17, 24, 39, .96);
  background-image: var(--tex-grain);
  background-size: 180px 180px;
  background-blend-mode: soft-light;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s2); }
.lightbox::backdrop { background: rgba(17, 24, 39, .8); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.lightbox__count { font-family: var(--f-sc); letter-spacing: .18em; text-transform: lowercase; color: #D6C6A6; }
.lightbox__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s1); min-height: 0; }
.lightbox__figure { margin: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--s2); justify-items: center; }
.lightbox__figure .ph { background: transparent; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; width: 100%; }
/* .ph wrapper: out-rank `.ph > img { width: 100% }`, which would crop tall images */
.lightbox__img, .ph > .lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 8px;
  background: #F7EEDB;
  outline: 1px solid rgba(242, 230, 206, .35);
  outline-offset: 6px;
}
.lightbox__caption {
  max-width: 60ch;
  text-align: center;
  font-family: var(--f-sub);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--cream);
}
.lightbox .icon-btn { color: var(--cream); border-color: rgba(242, 230, 206, .4); }
.lightbox .icon-btn:hover { border-color: var(--cream); }
.lightbox .ph.is-missing { width: min(80vw, 480px); height: auto; --ph-ratio: 4 / 5; }
@media (max-width: 639px) {
  .lightbox__stage { grid-template-columns: minmax(0, 1fr); }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: -4px; z-index: 2; background: rgba(17, 24, 39, .7); }
  .lightbox__prev { left: 0; } .lightbox__next { right: 0; }
}


/* ==========================================================================
   18. VIDEO FACADE + ORNATE FRAME
   ========================================================================== */
.ornate-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--rust);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--rust);
  margin: 6px;
  background: var(--paper-deep);
}
.yt-facade {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1C140D;
  isolation: isolate;
}
.yt-facade.ornate-frame { aspect-ratio: auto; background: var(--paper-deep); }
.yt-facade.ornate-frame > .yt-facade__inner { aspect-ratio: 16 / 9; }
.yt-facade__inner { position: relative; overflow: hidden; background: #1C140D; aspect-ratio: 16 / 9; }
.yt-facade__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.55) contrast(1.08) brightness(.82);
  transition: filter 400ms var(--ease), scale 700ms var(--ease);
}
.yt-facade:hover .yt-facade__poster { filter: sepia(.2) contrast(1.05) brightness(.9); scale: 1.02; }
.yt-facade__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: radial-gradient(ellipse at center, rgba(28, 20, 13, .15), rgba(28, 20, 13, .5));
  color: var(--cream);
}
.yt-facade__play::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border: 3px double var(--cream);
  background: rgba(28, 20, 13, .55);
  transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.yt-facade__play .icon { position: relative; width: 34px; height: 34px; translate: 2px 0; }
.yt-facade__play:hover::before { background: #8B4A2B; }
.yt-facade__play:focus-visible { outline-offset: -8px; box-shadow: none; }
.yt-facade__title {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  margin: 0;
  pointer-events: none;
  font-family: var(--f-sub);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(28, 20, 13, .85), transparent);
}
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.video-card { margin: 0; }
.video-card figcaption { margin-top: var(--s2); }
.video-card__title { font-family: var(--f-sub); font-style: italic; font-size: 1.375rem; line-height: 1.3; }
.video-card__meta { font-size: 1rem; color: var(--ink-soft); }
.video-grid { display: grid; gap: var(--s5) var(--s4); grid-template-columns: minmax(0, 1fr); }
/* fixed column counts so 3 videos never leave an empty cell: 1 → 2 (odd last one spans the row) → 3 */
@media (min-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--s4) / 2); }
}
@media (min-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid > :last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
}

/* Spotify embed + streaming links */
.spotify-embed iframe { width: 100%; height: 352px; display: block; transition: height 200ms var(--ease); border: 0; border-radius: var(--radius); }
.player-tabs { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s2); border-bottom: 1px solid var(--rust); }
.player-tab {
  min-height: 44px; padding: 0 var(--s2);
  font: 500 1rem/1 "Cormorant SC", "EB Garamond", serif; letter-spacing: .18em; text-transform: lowercase;
  color: var(--ink-soft); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.player-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--rust); }
@media (hover: hover) { .player-tab:hover { color: var(--ink); } }
.spotify-embed__placeholder { padding: var(--s4); text-align: center; }
.stream-links { display: flex; flex-wrap: wrap; gap: var(--s1); }
.stream-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--f-sc);
  letter-spacing: .1em;
  text-transform: lowercase;
  text-decoration: none;
  transition: border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.stream-link:hover { color: var(--rust); border-color: var(--rust); }


/* ==========================================================================
   19. FORMS
   ========================================================================== */
.form { display: grid; gap: var(--s3); max-width: 44rem; }
.form-row { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; align-content: start; }
/* side-by-side fields share one set of rows (label / input / hint / error), so the inputs line up
   even when one label wraps to two lines or only one field has a hint */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .form-row { grid-template-rows: repeat(4, auto); row-gap: 6px; }
    .form-row > .field { grid-row: span 4; grid-template-rows: subgrid; }
  }
}
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.field > label, .field legend {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--ink);
}
.req { color: var(--rust); margin-left: 2px; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.1875rem;
  line-height: 1.5;
  transition: border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background: var(--paper) var(--mask-chevron) right 12px center / 20px no-repeat;
}
.field--select { position: relative; }
.field--select::after {
  content: none;
  position: absolute;
  right: 12px; bottom: 12px;
  width: 24px; height: 24px;
  background: var(--ink);
  -webkit-mask: var(--mask-chevron) center / contain no-repeat;
  mask: var(--mask-chevron) center / contain no-repeat;
  pointer-events: none;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.field__hint { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.field__error { font-size: 1rem; line-height: 1.5; color: var(--rust); font-weight: 500; }
.field__error:empty { display: none; }
.field__error:not(:empty)::before { content: "✕ "; font-weight: 400; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select,
.field [aria-invalid="true"] { border-color: var(--rust); box-shadow: inset 0 0 0 1px var(--rust); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin-top: 5px; accent-color: var(--rust); }
.field--check label { font-family: var(--f-body); font-size: 1.0625rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
fieldset.field { border: 0; padding: 0; margin: 0; }

.form-errors {
  padding: var(--s3);
  border: 3px double var(--rust);
  background: var(--paper-deep);
}
.form-errors:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-errors h2, .form-errors__title { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -.01em; }
.form-errors ul { margin-top: var(--s1); padding-left: 1.2em; }
.form-errors li::marker { color: var(--rust); }
.form-status { font-family: var(--f-sub); font-style: italic; font-size: 1.25rem; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.is-success { padding: var(--s2) var(--s3); border-top: 1px solid var(--rust); border-bottom: 1px solid var(--rust); color: var(--ink); }
.form-status.is-success::before { content: "❦ "; color: var(--gold); font-style: normal; }
.form-status.is-error { padding: var(--s2) var(--s3); border: 3px double var(--rust); color: var(--rust); }

/* Newsletter one-liner */
.newsletter { display: grid; gap: var(--s2); }
.newsletter__row { display: grid; gap: var(--s2); }
@media (min-width: 640px) { .newsletter__row { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; } }
.newsletter__row > input { margin: 0; }
.newsletter__row > .btn { height: auto; margin: 0; }


/* ==========================================================================
   20. POSTER WALL — pinned posters on plaster
   ========================================================================== */
.poster-wall {
  display: grid;
  /* auto-fit + a 4-column floor: never more than 4 per row, so cards stretch instead of leaving empty tracks */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(15rem, calc((100% - 3 * var(--s4)) / 4))), 1fr));
  align-items: start; /* landscape posters keep their own height */
  gap: var(--s6) var(--s4);
  padding: var(--s6) var(--s3);
  background-color: var(--wall);
  background-image:
    var(--tex-noise),
    var(--tex-fibre),
    radial-gradient(60% 50% at 20% 30%, rgba(255, 245, 220, .14), transparent 70%),
    radial-gradient(50% 40% at 80% 75%, rgba(80, 40, 15, .10), transparent 70%);
  background-size: 220px 220px, 320px 320px, 100% 100%, 100% 100%;
  border-block: 1px solid var(--rust);
}
.pin {
  position: relative;
  margin: 0;
  padding: 10px 10px 12px;
  background: #F7EEDB;
  color: #1C140D;
  rotate: var(--tilt, 0deg);
  box-shadow: 0 1px 0 rgba(28, 20, 13, .12), 0 14px 20px -14px rgba(28, 20, 13, .55);
  transition: rotate 400ms var(--ease), translate 400ms var(--ease);
}
.pin::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -8px; left: 50%;
  width: 16px; height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #F0B65A 0%, #C98A2E 55%, #6B4214 100%);
  box-shadow: 0 3px 3px -1px rgba(28, 20, 13, .45);
}
.pin:hover { rotate: 0deg; translate: 0 -4px; }
.pin a { display: block; color: inherit; }
.pin img { width: 100%; }
.pin__caption { margin-top: 8px; font-family: var(--f-sub); font-style: italic; font-size: 1.0625rem; line-height: 1.35; color: #4A3A28; }
.pin .ph.is-missing::after { background: #E3D2B0; color: #4A3A28; }


/* ==========================================================================
   21. MASONRY GALLERY
   ========================================================================== */
.masonry { columns: 1; column-gap: var(--s3); }
@media (min-width: 640px)  { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
@media (min-width: 1440px) { .masonry { columns: 4; } }
.masonry > * { break-inside: avoid; margin: 0 0 var(--s3); display: block; width: 100%; }
.gallery-item { margin: 0 0 var(--s3); }
.gallery-item > a { display: block; text-decoration: none; }
.gallery-item img { width: 100%; transition: filter 400ms var(--ease); }
.gallery-item figcaption { margin-top: 8px; font-family: var(--f-sub); font-style: italic; font-size: 1.0625rem; line-height: 1.35; color: var(--ink-soft); }
.gallery-item > a:hover img { filter: brightness(1.04) contrast(1.04); }


/* ==========================================================================
   22. CONCERTS + MAP (rendered by site.js)
   ========================================================================== */
.concert-list { display: grid; gap: 0; border-top: 3px double var(--rust); }
.concert {
  display: grid;
  gap: var(--s1) var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) { .concert { grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; } }
.concert__date { display: grid; line-height: 1; }
.concert__day { font-family: var(--f-display); font-weight: 700; font-size: 2.75rem; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.concert__month { font-family: var(--f-sc); font-size: .9375rem; letter-spacing: .18em; text-transform: lowercase; color: var(--ink-soft); margin-top: 6px; }
.concert__place { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; line-height: 1.25; }
.concert__venue { color: var(--ink-soft); }
.concert__note { font-family: var(--f-sub); font-style: italic; font-size: 1.0625rem; }
.concert-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s2);
  padding: 12px var(--s3);
  border-top: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
  font-size: 1.0625rem;
}
.concert-strip__label { font-family: var(--f-sc); letter-spacing: .18em; text-transform: lowercase; color: var(--ink-soft); }
.concert-strip__label::before { content: "✦ "; color: var(--gold); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--rust);
  border-radius: var(--radius);
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--rust);
  background: transparent;
  white-space: nowrap;
}
.tag--sample { border-style: dashed; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.world-map { width: 100%; height: auto; overflow: visible; }
.world-map__grid { fill: none; stroke: var(--hairline); stroke-width: .35; vector-effect: non-scaling-stroke; }
.world-map__frame { fill: none; stroke: var(--rust); stroke-width: 1; vector-effect: non-scaling-stroke; }
.world-map__land { fill: none; stroke: var(--ink-soft); stroke-width: .8; vector-effect: non-scaling-stroke; opacity: .7; }
.map-pin { cursor: pointer; outline: none; }
.map-pin__hit { fill: transparent; }
.map-pin__dot { fill: var(--gold); stroke: var(--ink); stroke-width: .6; }
.map-pin__halo { fill: none; stroke: var(--gold); stroke-width: .6; opacity: .7; transform-box: fill-box; transform-origin: center; animation: pin-halo 3.2s var(--ease) 3; }
.map-pin:focus-visible .map-pin__dot, .map-pin:hover .map-pin__dot { stroke-width: 1.4; fill: var(--gold-glow); }
.map-pin:focus-visible .map-pin__halo { stroke: var(--ink); stroke-width: 1; opacity: 1; animation: none; }
@keyframes pin-halo { from { scale: .6; opacity: .9; } to { scale: 2.2; opacity: 0; } }
.map-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--s2); font-family: var(--f-sc); letter-spacing: .12em; text-transform: lowercase; }
.map-list li::before { content: "✦ "; color: var(--gold); }
.map-list__btn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: .2em;
}
.map-list__btn:hover { color: var(--rust); }
.map-pin.is-active .map-pin__dot { fill: var(--gold-glow); stroke-width: 1.4; }
.map-pin.is-active .map-pin__halo { stroke: var(--ink); opacity: 1; animation: none; }
/* pin details card — positioned by JS beside the active pin (transform only) */
.map-host { position: relative; }
.map-card {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: min(20rem, calc(100% - 16px)); max-height: calc(100% - 16px); overflow-y: auto;
  padding: var(--s3); background: var(--paper); color: var(--ink);
  border: 1px solid var(--rust); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rust), 0 12px 28px rgb(28 20 13 / .22);
  font-size: 1rem; line-height: 1.5;
  animation: map-card-in 200ms var(--ease) both;
}
.map-card[hidden] { display: none; }
.map-card__country { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.map-card__label { margin-top: var(--s2); font-family: var(--f-sc); letter-spacing: .14em; text-transform: lowercase; color: var(--rust); }
.map-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.map-card li > * { display: block; }
.map-card time { font-weight: 500; }
.map-card__place, .map-card em, .map-card__empty { color: var(--ink-soft); }
.map-card em { font-family: var(--f-sub); font-size: 1.0625rem; }
.map-card a { color: var(--rust); }
@keyframes map-card-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .map-card { animation: none; } }
.map-caption { margin-top: var(--s1); font-size: 1rem; color: var(--ink-soft); }


/* ==========================================================================
   23. TIERS + COMMISSION
   ========================================================================== */
.tiers { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
.tier {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  background-color: var(--paper-deep);
  background-image: var(--tex-noise);
  background-size: 220px 220px;
  border-top: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
}
.tier--featured { border: 3px double var(--rust); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--rust); margin: 6px; }
.tier__name { font-family: var(--f-display); font-size: 1.625rem; }
.tier__price { font-family: var(--f-sub); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.tier__price small { font-size: .7em; color: var(--ink-soft); }
.tier__list { display: grid; gap: 8px; padding: 0; list-style: none; font-size: 1.0625rem; }
.tier__list li { padding-left: 1.4em; position: relative; }
.tier__list li::before { content: "✦"; position: absolute; left: 0; top: .1em; color: var(--rust); font-size: .8em; }
.tier > .btn { margin-top: auto; align-self: flex-start; }

.commission {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
  padding: clamp(var(--s5), 7vw, var(--s7)) clamp(var(--s3), 6vw, var(--s7));
  background-color: var(--paper-deep);
  background-image: var(--tex-noise), radial-gradient(70% 60% at 50% 0%, rgba(240, 182, 90, .18), transparent 70%);
  background-size: 220px 220px, 100% 100%;
  border: 3px double var(--rust);
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--rust);
  margin: 9px;
  text-align: center;
}
.commission > * { max-width: 44rem; margin-inline: auto; }
.commission .mithila-band { max-width: 20rem; }


/* ==========================================================================
   24. ACCORDION + MISC
   ========================================================================== */
.accordion { border-top: 1px solid var(--rust); }
.accordion:last-of-type { border-bottom: 1px solid var(--rust); }
.accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 56px;
  padding-block: 12px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
  content: "";
  flex: none;
  width: 24px; height: 24px;
  background: var(--rust);
  -webkit-mask: var(--mask-chevron) center / contain no-repeat;
  mask: var(--mask-chevron) center / contain no-repeat;
  transition: transform var(--t-ui) var(--ease);
}
.accordion[open] > summary::after { transform: rotate(180deg); }
.accordion > summary:hover { color: var(--rust); }
.accordion__body { padding-bottom: var(--s3); max-width: 68ch; }
.accordion__body > * + * { margin-top: .9em; }

.lineage-chain { display: grid; gap: 0; justify-items: center; text-align: center; }
.lineage-chain > li { position: relative; padding-block: var(--s2); }
.lineage-chain > li + li::before { content: ""; display: block; width: 1px; height: 32px; margin: 0 auto var(--s2); background: var(--rust); }

.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s3); }
.dl-grid > div { display: contents; } /* each dt/dd pair is wrapped, so rows can be added and removed */
.dl-grid dt { font-family: var(--f-sc); letter-spacing: .14em; text-transform: lowercase; color: var(--ink-soft); }

/* ==========================================================================
   25. UTILITIES
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.no-js-hide { display: none; }
.js .no-js-hide { display: revert; }


/* ==========================================================================
   26. REDUCED MOTION — everything off: no parallax, grain, blooms
   ========================================================================== */

/* ===========================================================================
   TRANSITIONS — one motion language for the whole site
   enter: 240–440ms ease-out (--ease) · exit: ~65% of enter, ease-in (--ease-in)
   Only transform / opacity / clip-path animate. Reduced motion: everything
   below is switched off (VT guarded here; the global block zeroes the rest).
   =========================================================================== */
:root { --ease-in: cubic-bezier(.55, 0, 1, .45); --t-enter: 240ms; --t-exit: 160ms; }

/* 1 · Page → page: native cross-document View Transitions (Chrome/Edge 126+, Safari 18.2+;
       other browsers simply navigate). The header is a shared element, so it stays put
       while the page beneath it hands off: old page sinks and fades, new one rises in. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  main { view-transition-name: page; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  ::view-transition-old(page) { animation: page-out var(--t-exit) var(--ease-in) both; }
  ::view-transition-new(page) { animation: page-in 360ms var(--ease) 60ms both; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in  { from { opacity: 0; transform: translateY(10px); } }

/* 2 · Loading bridge: the hero arrives in reading order — label, name line by line,
       tagline, buttons — so the first paint resolves instead of popping in. */
.hero__content > .label,
.hero__name > span,
.hero__content > .subdisplay,
.hero__content > .btn-row { animation: rise-in 440ms var(--ease) both; }
.hero__content > .label       { animation-delay: 80ms; }
.hero__name > span:first-child { animation-delay: 140ms; }
.hero__name > span:last-child  { animation-delay: 200ms; }
.hero__content > .subdisplay  { animation-delay: 300ms; }
.hero__content > .btn-row     { animation-delay: 360ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(.4em); clip-path: inset(0 0 100% 0); } to { clip-path: inset(-.5em); } }

/* 3 · State changes: dialogs (lightbox, video player) now have an exit as well as an entrance.
       display/overlay transition discretely so the close animates instead of snapping shut. */
.lightbox, .video-modal, .lightbox::backdrop, .video-modal::backdrop {
  opacity: 0;
  transition: opacity var(--t-exit) var(--ease-in), transform var(--t-exit) var(--ease-in),
              overlay var(--t-exit) allow-discrete, display var(--t-exit) allow-discrete;
}
.video-modal { transform: translateY(8px) scale(.98); }
.lightbox[open], .video-modal[open], .lightbox[open]::backdrop, .video-modal[open]::backdrop {
  opacity: 1; transform: none;
  transition-duration: var(--t-enter); transition-timing-function: var(--ease);
}
@starting-style {
  .lightbox[open], .lightbox[open]::backdrop, .video-modal[open]::backdrop { opacity: 0; }
  .video-modal[open] { opacity: 0; transform: translateY(8px) scale(.98); }
}
/* lightbox image swap (prev/next) */
.lightbox__img { transition: opacity var(--t-enter) var(--ease); }
.lightbox__img.is-swapping { opacity: 0; transition-duration: var(--t-exit); transition-timing-function: var(--ease-in); }

/* player tab swap: the old embed dims, the new one fades up once it has loaded */
#player-panel iframe { transition: opacity var(--t-enter) var(--ease), height 200ms var(--ease); }
#player-panel iframe.is-loading { opacity: .25; transition-duration: var(--t-exit); transition-timing-function: var(--ease-in); }

/* 4 · Section handoffs: the ink-bloom reveals already stage each section; the map card and
       lineage card get a small lift so they read as coming from the pin/name they belong to. */
@keyframes map-card-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .hero__name > span { animation: none !important; }
  .video-modal { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  :root { transition: none; }
  .grain { animation: none; }
  .hero__sky, .hero__palace, .hero__terrace, .hero__artist { translate: none !important; }
  .map-pin__halo { animation: none; opacity: 0; }
  .js [data-reveal]:not(.is-in),
  .js [data-reveal-stagger]:not(.is-in) > *,
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; filter: none; clip-path: none; transition: none; }
  .pin, .pin:hover { transition: none; translate: none; }
  .mobile-menu[open] .mobile-menu__list li { animation: none; }
  .string-link:hover::after { animation: none; }
  .tanpura-toggle[aria-pressed="true"] .icon { animation: none; }
}

/* ==========================================================================
   27. PRINT
   ========================================================================== */
@media print {
  .site-header, .mobile-menu, .grain, .hero__stage, .raga-clock, .tanpura-toggle, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero__content .display, .hero__content .subdisplay, .hero__content .label { color: #000; text-shadow: none; }
  a { color: #000; }
}

/* "Watch on YouTube" text links: logo + label instead of a raw URL (music, press) */
.perf__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.perf__link .icon { width: 1.25em; height: 1.25em; flex: none; }

/* Video modal — shared <dialog> opened by play buttons and "Watch on YouTube" links */
.video-modal {
  width: min(1100px, 94vw);
  max-height: 94vh;
  padding: var(--s2);
  border: 1px solid var(--gold);
  background: #120d08;
  color: var(--cream);
  box-shadow: 0 0 0 4px #120d08, 0 0 0 5px var(--gold), 0 30px 80px rgba(0, 0, 0, .6);
}
.video-modal[open] { display: grid; gap: var(--s2); }
.video-modal::backdrop { background: rgba(17, 24, 39, .82); }
.video-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.video-modal__title { margin: 0; min-width: 0; font-family: var(--f-sub); font-style: italic; font-size: 1.125rem; color: var(--cream); }
.video-modal .icon-btn { color: var(--cream); border-color: rgba(242, 230, 206, .4); flex: none; }
.video-modal .icon-btn:hover { border-color: var(--cream); }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
