/* ==========================================================================
   ragav.net: modern theme
   Quiet and restrained. Two worlds: "pro" (deep green-black) and "music"
   (deep wine), with a muted gold used sparingly. Tamil touches stay small:
   a faint kolam dot grid, Tamil numerals, a hairline zari edge.
   ========================================================================== */

:root {
    --gold: #b59c6d;
    --gold-dim: rgba(181, 156, 109, .22);
    --ink: #e4e0d7;
    --ink-2: #a9a59b;
    --ink-3: #75726a;

    --bg: #0b130f;
    --bg-2: #0e1712;
    --panel: #121c16;
    --line: rgba(228, 224, 215, .08);

    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --tamil: "Arima", "Noto Serif Tamil", serif;

    --radius: 6px;
    --max: 1040px;
}

.world-music {
    --bg: #100a0c;
    --bg-2: #140d10;
    --panel: #191014;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 300 15.5px/1.75 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold-dim); transition: color .2s, border-color .2s; }
a:hover { color: var(--gold); border-color: var(--gold); }
strong { color: var(--ink); font-weight: 500; }
::selection { background: var(--gold); color: #0a0a08; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.tamil { font-family: var(--tamil); }

/* ---------- Zari: a single hairline at the very top ---------- */
.zari { position: fixed; inset: 0 0 auto 0; height: 1px; z-index: 60; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: .5; }
.zari-band { display: none; }

/* ---------- Temple motifs (line art, kept faint) ---------- */
.motif { display: block; width: 100%; height: auto; color: var(--gold); }
.hero-motif { position: absolute; pointer-events: none; color: var(--gold); }
.hero > .hero-motif { right: max(-40px, calc((100vw - var(--max)) / 2 - 300px)); bottom: -10px; width: 330px; opacity: .13; }
.hero > .hero-motif.peacock { right: calc((100vw - var(--max)) / 2 - 20px); bottom: 8px; width: 460px; opacity: .085; }
.page-hero > .hero-motif.small { right: calc((100vw - var(--max)) / 2); bottom: 0; width: 150px; opacity: .14; }

/* double hairline with small gopuram "teeth" between: a temple wall band */
.temple-band {
    width: min(var(--max), 100% - 48px); margin: 0 auto; height: 9px; opacity: .45;
    border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim);
    background: conic-gradient(from 135deg at 50% 0, rgba(181, 156, 109, .45) 90deg, transparent 0) 0 4px / 12px 6px repeat-x;
}

/* feather ornament sitting on each section's top line */
.ornament { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 180px; padding: 0 14px; background: var(--bg); color: var(--gold); opacity: .55; }
.ornament .motif-feather path:first-child, .ornament .motif-feather path:nth-child(2) { display: none; }
.ornament .motif-feather circle:nth-last-child(-n+2) { display: none; }

/* thin frame lines at the edges of the content column */
@media (min-width: 1180px) {
    body::before {
        content: ""; position: fixed; inset: 0 calc((100vw - var(--max)) / 2 - 40px); pointer-events: none; z-index: 0;
        border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    }
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: 0; }
.display { font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: .01em; }
.display em { font-style: italic; }
.role-line { font: 400 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 14px 0 26px; }
.lede em { font-style: italic; color: var(--ink); }
.display-sm { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.eyebrow { font: 400 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.lede { font-size: 1rem; color: var(--ink-2); max-width: 58ch; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 1px; inset-inline: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-inner { width: min(var(--max), 100% - 48px); margin: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav a { border: 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { font: 400 .95rem/1 var(--tamil); color: var(--gold); }
.brand-name { font: 400 1.15rem/1 var(--serif); letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .8rem; letter-spacing: .04em; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.world-switch i { display: none; }
.nav-toggle { display: none; }

/* ---------- Buttons: understated text links ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 2px; font: 400 .8rem/1 var(--sans); letter-spacing: .06em; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, color .2s; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn i { font-size: .7rem; opacity: .7; }
.btn-gold { border-color: var(--gold-dim); }
.btn-ghost { }
.nav-links .btn { padding: 6px 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; }
.hero::before { /* kolam dot grid, barely there */
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(181, 156, 109, .5) .8px, transparent 1.2px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 45% 60% at 80% 40%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 45% 60% at 80% 40%, #000, transparent 70%);
    opacity: .22;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 260px; gap: 80px; align-items: start; }
.hero .vanakkam { font: 400 .82rem/1 var(--tamil); color: var(--ink-3); margin-bottom: 22px; display: block; letter-spacing: .04em; }
.hero h1 { margin-bottom: 0; }
.hero .lede { margin: 0 0 16px; }
.hero .lede + .hero-cta { margin-top: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.portrait { position: relative; justify-self: end; width: 100%; }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: 130px 130px 4px 4px; overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.35) contrast(1.02) brightness(.92); }
.portrait-tag { display: none; }

.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.stat { padding: 20px 20px 0 0; }
.stat + .stat { padding-left: 20px; }
.stat b { display: block; font: 400 1.6rem/1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.stat span { font-size: .74rem; color: var(--ink-3); letter-spacing: .02em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; border-top: 1px solid var(--line); }
.section.alt { background: transparent; }
.section-head { display: grid; grid-template-columns: 56px 1fr; gap: 16px; margin-bottom: 48px; align-items: baseline; }
.numeral { font: 400 1.1rem/1 var(--tamil); color: var(--gold); opacity: .7; }
.section-head .lede { margin-top: 12px; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.card { position: relative; padding: 26px 0; border-top: 1px solid var(--line); }
.card.feature { grid-column: span 2; }
.card .when { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.card h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.card p { color: var(--ink-2); margin: 0 0 10px; font-size: .9rem; }
.chips { margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--ink-3); }
.chips li { display: inline; }
.chips li + li::before { content: " · "; color: var(--gold); opacity: .6; }

/* ---------- Timeline ---------- */
.timeline-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.col-title { font: 400 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline .yr { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 3px; }
.timeline h4 { font-size: 1.15rem; margin-bottom: 2px; }
.timeline .org { color: var(--ink-2); font-size: .86rem; }
.timeline .note { color: var(--ink-3); font-size: .8rem; }

/* ---------- Research ---------- */
.book { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 0 0 48px; margin-bottom: 8px; }
.book-covers { display: flex; }
.book-covers a { border: 0; }
.book-covers img { height: 150px; width: auto; border-radius: 2px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .8); }
.book-covers img + img { margin-left: 12px; }
.book h3 { font-size: 1.5rem; margin: 4px 0 8px; }

.pub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.pub-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.pub-list .meta { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pub-list a.t { display: block; color: var(--ink); font: 400 1.1rem/1.35 var(--serif); margin: 4px 0 2px; border: 0; }
.pub-list a.t:hover { color: var(--gold); }
.pub-list .v { color: var(--ink-3); font-size: .8rem; }
.more { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- News (reuses _includes/news.html markup) ---------- */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.feed { list-style: none; margin: 0; padding: 0 12px 0 0; max-height: 440px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.feed li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.feed .dates span { display: inline; font-size: .74rem; color: var(--ink-3); }
.feed .dates span + span::before { content: " "; }
.feed .content { color: var(--ink-2); font-size: .88rem; }

/* ---------- Music world ---------- */
.stage-hero { padding-top: 190px; padding-bottom: 120px; }
.stage-hero::before { display: none; }
.stage-hero .bg { position: absolute; inset: 0; background: url(/img/personal/stage.jpg) center 60% / cover; opacity: .14; filter: grayscale(.6); }
.stage-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.band { display: flex; flex-direction: column; border-bottom: 0; color: var(--ink); }
.band:hover { color: var(--ink); }
.band .logo { height: 40px; display: flex; align-items: center; margin-bottom: 18px; }
.band .logo img { max-height: 40px; width: auto; filter: grayscale(1) brightness(1.4); opacity: .55; transition: opacity .3s; }
.band:hover .logo img { opacity: .85; }
.band .role { color: var(--ink-3); font-size: .74rem; letter-spacing: .06em; }
.band .go { margin-top: auto; padding-top: 10px; font-size: .78rem; color: var(--ink-3); }
.band:hover .go { color: var(--gold); }
.band .go i { font-size: .6rem; margin-left: 4px; }

.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.videos li { display: flex; flex-direction: column-reverse; }
.videos .date { padding: 10px 0 0; font: 400 1rem/1.3 var(--serif); color: var(--ink-2); }
.videos .circle { display: none; }
.videos iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border: 0; border-radius: var(--radius); }
.embed { border-radius: var(--radius); overflow: hidden; }
.embed iframe { display: block; width: 100%; border: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photo-link { display: block; border: 0; }
.photo-link img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--radius); filter: grayscale(.4) brightness(.85); transition: filter .4s; }
.photo-link:hover img { filter: none; }
.photo-link span { display: block; margin-top: 10px; font-size: .78rem; color: var(--ink-3); }

/* ---------- Publications page ---------- */
.page-hero { padding: 160px 0 48px; }
.notice { font-size: .74rem; color: var(--ink-3); max-width: 80ch; margin-top: 20px; }
.filters { position: sticky; top: 65px; z-index: 10; padding: 12px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters .container { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.filter-btn { font: 400 .78rem/1 var(--sans); letter-spacing: .04em; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink-3); cursor: pointer; transition: color .2s, border-color .2s; }
.filter-btn:hover { color: var(--ink); }
.filter-btn.on { color: var(--ink); border-bottom-color: var(--gold); }
.filters .count { margin-left: auto; font-size: .74rem; color: var(--ink-3); }

.pitems .item { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; }
.pitems .item::before { content: attr(data-year); grid-row: 1 / 3; color: var(--ink-3); font: 400 .8rem/2 var(--sans); }
.pitems .item.hide { display: none; }
.pitems .pubmain { position: relative; padding-right: 110px; }
.pitems .pubtitle { font: 400 1.15rem/1.35 var(--serif); margin: 0 0 6px; color: var(--ink); }
.pitems .pubauthor { font-size: .8rem; color: var(--ink-3); }
.pitems .pubauthor a { color: var(--ink-3); border: 0; }
.pitems .pubauthor a:hover { color: var(--ink); }
.pitems .pubauthor strong { color: var(--ink-2); font-weight: 400; }
.pitems .pubcite { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
.pitems .label { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-right: 8px; }
.pitems .pubassets { position: absolute; right: 0; top: 2px; display: flex; gap: 2px; }
.pitems .pubassets a { width: 28px; height: 28px; display: grid; place-items: center; border: 0; color: var(--ink-3); font-size: .78rem; }
.pitems .pubassets a:hover { color: var(--gold); }
.pitems .pubassets a.pubcollapse { order: 99; }
.pitems .pubdetails { grid-column: 2; display: none; margin-top: 12px; padding-left: 16px; border-left: 1px solid var(--gold-dim); }
.pitems .item.open .pubdetails { display: block; }
.pitems .item.open .pubcollapse i { transform: rotate(45deg); }
.pitems .pubdetails h4 { font: 400 .64rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.pitems .pubdetails p { color: var(--ink-2); font-size: .86rem; margin: 0 0 8px; }
.pitems .pubdetails img { max-width: 100%; border-radius: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--line); }
.footer-ornament { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin: 0 auto 52px; color: var(--gold); opacity: .5; }
.footer-ornament span { width: 64px; }
.footer-ornament .flip { transform: scaleX(-1); }
.footer-ornament > .motif-feather { width: 200px; margin-bottom: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.footer-grid h2 { margin-bottom: 12px; }
.footer-grid p { font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding-top: 28px; }
.footer-links a { color: var(--ink-2); padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.footer-links a:hover { color: var(--gold); }
.footer-links i { width: 20px; color: var(--ink-3); font-size: .8rem; }
.footer-base { display: flex; justify-content: space-between; margin-top: 52px; font-size: .72rem; color: var(--ink-3); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-motif { display: none; }
    .hero-grid, .timeline-wrap, .news-grid, .split, .footer-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-side { max-width: 340px; }
    .band-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 0; }
    .stat:nth-child(3) { padding-left: 0; }
    .pub-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .nav-toggle { display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; }
    .nav-toggle span { width: 20px; height: 1px; background: var(--ink); }
    .nav-links { position: fixed; inset: 65px 0 auto; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s; z-index: -1; }
    .nav-links a { padding: 11px 0; width: 100%; font-size: .92rem; }
    .nav-links .btn { margin-top: 8px; width: auto; }
    .nav.open .nav-links { transform: none; }
    .nav.open { background: var(--bg-2); }
    .work-grid, .band-grid { grid-template-columns: 1fr; }
    .card.feature { grid-column: auto; }
    .hero { padding-top: 130px; }
    .section { padding: 72px 0; }
    .section-head { grid-template-columns: 1fr; gap: 6px; }
    .timeline li { grid-template-columns: 1fr; gap: 2px; }
    .book { grid-template-columns: 1fr; }
    .pitems .item { grid-template-columns: 1fr; }
    .pitems .item::before { grid-row: auto; }
    .pitems .pubmain { padding-right: 0; }
    .pitems .pubassets { position: static; margin-bottom: 6px; }
    .pitems .pubdetails { grid-column: 1; }
    .footer-links { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Ornament, frames and original-page styles
   ========================================================================== */
:root {
    --corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23b59c6d' stroke-width='1' stroke-linecap='round'%3E%3Cg transform=''%3E%3Cpath d='M2 58V20C2 9 9 2 20 2H58'/%3E%3Cpath d='M8 50V24C8 14 14 8 24 8H50' opacity='.6'/%3E%3Cpath d='M14 30C14 20 20 14 30 14C38 14 41 22 35 25C31 27 28 23 31 21'/%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23b59c6d'/%3E%3C/g%3E%3C/svg%3E");
    --corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23b59c6d' stroke-width='1' stroke-linecap='round'%3E%3Cg transform='rotate%2890 30 30%29'%3E%3Cpath d='M2 58V20C2 9 9 2 20 2H58'/%3E%3Cpath d='M8 50V24C8 14 14 8 24 8H50' opacity='.6'/%3E%3Cpath d='M14 30C14 20 20 14 30 14C38 14 41 22 35 25C31 27 28 23 31 21'/%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23b59c6d'/%3E%3C/g%3E%3C/svg%3E");
    --corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23b59c6d' stroke-width='1' stroke-linecap='round'%3E%3Cg transform='rotate%28180 30 30%29'%3E%3Cpath d='M2 58V20C2 9 9 2 20 2H58'/%3E%3Cpath d='M8 50V24C8 14 14 8 24 8H50' opacity='.6'/%3E%3Cpath d='M14 30C14 20 20 14 30 14C38 14 41 22 35 25C31 27 28 23 31 21'/%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23b59c6d'/%3E%3C/g%3E%3C/svg%3E");
    --corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23b59c6d' stroke-width='1' stroke-linecap='round'%3E%3Cg transform='rotate%28270 30 30%29'%3E%3Cpath d='M2 58V20C2 9 9 2 20 2H58'/%3E%3Cpath d='M8 50V24C8 14 14 8 24 8H50' opacity='.6'/%3E%3Cpath d='M14 30C14 20 20 14 30 14C38 14 41 22 35 25C31 27 28 23 31 21'/%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23b59c6d'/%3E%3C/g%3E%3C/svg%3E");
    --flourish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-160 -22 320 44' fill='none' stroke='%23b59c6d' stroke-width='1' stroke-linecap='round'%3E%3Cg%3E%3Cpath d='M10 0C28 -10 44 9 62 1C76 -5 90 -9 104 -2C114 3 113 15 104 15C97 15 96 6 102 5C106 5 106 10 103 10'/%3E%3Cpath d='M38 2C42 12 54 15 60 9C63 5 59 1 56 4'/%3E%3Cpath d='M70 -3C68 -12 76 -18 83 -14C87 -11 84 -6 80 -8'/%3E%3Cpath d='M104 -2C120 2 134 -2 150 0'/%3E%3C/g%3E%3Cg transform='scale%28-1 1%29'%3E%3Cpath d='M10 0C28 -10 44 9 62 1C76 -5 90 -9 104 -2C114 3 113 15 104 15C97 15 96 6 102 5C106 5 106 10 103 10'/%3E%3Cpath d='M38 2C42 12 54 15 60 9C63 5 59 1 56 4'/%3E%3Cpath d='M70 -3C68 -12 76 -18 83 -14C87 -11 84 -6 80 -8'/%3E%3Cpath d='M104 -2C120 2 134 -2 150 0'/%3E%3C/g%3E%3Cpath d='M0 -7L6 0L0 7L-6 0Z'/%3E%3Ccircle cx='0' cy='0' r='1.4' fill='%23b59c6d' stroke='none'/%3E%3Cpath d='M-3 -10Q0 -16 3 -10M-3 10Q0 16 3 10'/%3E%3C/svg%3E");
}

/* ---------- Curly flourishes ---------- */
.motif-flourish { color: var(--gold); }
.ornament { width: 260px; padding: 0 18px; opacity: .6; }
.ornament.bottom { top: auto; bottom: -12px; }
.page-hero { position: relative; border-bottom: 1px solid var(--line); }
.flourish-left { width: 230px; margin: 2px 0 24px -12px; opacity: .55; }
.footer-ornament > .motif-flourish { width: 240px; margin-bottom: 6px; }
.footer-flourish { width: 210px; margin: 22px 0 0 -10px; opacity: .4; }
.role-line { margin-bottom: 18px; }

/* ---------- Frames: hairline box with an inner rule and scrolled corners ---------- */
.frame { position: relative; border: 1px solid var(--gold-dim); padding: 44px 48px; }
.frame::before {
    content: ""; position: absolute; inset: 6px; pointer-events: none;
    border: 1px solid rgba(181, 156, 109, .09);
    background:
        var(--corner-tl) left top / 46px 46px no-repeat,
        var(--corner-tr) right top / 46px 46px no-repeat,
        var(--corner-br) right bottom / 46px 46px no-repeat,
        var(--corner-bl) left bottom / 46px 46px no-repeat;
    opacity: .75;
}
.book.frame { padding: 48px 56px; margin: 0; }
.book .hero-cta { margin-top: 22px; }

/* ---------- Scrollable panels (news, shows, publications) ---------- */
.scroll-panel { padding: 22px 40px; }
.scroll-panel .feed { max-height: 460px; }
.scroll-panel.tall .pitems { max-height: 72vh; overflow: auto; padding-right: 18px; scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent; }
.scroll-panel.tall .pitems .item:last-child { border-bottom: 0; }

/* ---------- Social icons ---------- */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); font-size: .85rem; }
.social a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Navigation with Music menu ---------- */
.nav-links { gap: 22px; font-size: .78rem; }
.nav-group { position: relative; }
.nav-group > a i { font-size: .5rem; margin-left: 3px; opacity: .6; }
.nav-menu {
    position: absolute; top: calc(100% + 14px); left: -18px; min-width: 200px; padding: 10px 0;
    display: none; flex-direction: column; background: var(--bg-2); border: 1px solid var(--gold-dim);
}
.nav-menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: flex; }
.nav-menu a { padding: 8px 18px; color: var(--ink-2); }
.nav-menu a:hover { color: var(--gold); }

/* ---------- Music hub ---------- */
.band-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.band .logo img { filter: none; opacity: 1; max-height: 48px; }
.band:hover .logo img { opacity: 1; }

/* ---------- Video links (replacing YouTube embeds) ---------- */
.watch { position: relative; display: block; max-width: 440px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; color: var(--ink-2); }
.watch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(.6) brightness(.6); transition: filter .4s; }
.watch:hover { border-color: var(--gold-dim); color: var(--gold); }
.watch:hover img { filter: grayscale(.1) brightness(.85); }
.watch .play { position: absolute; left: 50%; top: calc(50% - 18px); width: 46px; height: 46px; margin-left: -23px; border: 1px solid var(--gold); border-radius: 50%; }
.watch .play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 12px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.watch > span:last-child { display: block; padding: 10px 14px; font-size: .76rem; letter-spacing: .06em; border-top: 1px solid var(--line); }
.watch.playlist { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.watch.playlist .play { position: relative; left: auto; top: auto; margin: 0; flex: 0 0 38px; height: 38px; width: 38px; }
.watch.playlist .play::after { left: 14px; top: 11px; border-left-width: 10px; border-top-width: 7px; border-bottom-width: 7px; }
.watch.playlist > span:last-child { padding: 0; border: 0; }

/* ---------- Audio players, toned to the theme ---------- */
iframe.player { display: block; width: 100%; border: 1px solid var(--line) !important; border-radius: 4px; background: transparent; }
iframe.player.sc { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
iframe.player.spotify { filter: saturate(.25) sepia(.15); }

/* ---------- Original page markup (Profile, Professional, Contact, Research, Thaalam, LKP) ---------- */
.legacy { width: min(var(--max), 100% - 48px); margin: 0 auto; padding: 150px 0 90px; }
.legacy a { color: var(--ink); }
.legacy p, .legacy li { color: var(--ink-2); font-size: .93rem; }
.legacy .pageheader { position: relative; border: 1px solid var(--gold-dim); padding: 48px 52px; margin-bottom: 64px; }
.legacy .pageheader::before {
    content: ""; position: absolute; inset: 6px; pointer-events: none; border: 1px solid rgba(181, 156, 109, .09);
    background: var(--corner-tl) left top / 46px 46px no-repeat, var(--corner-tr) right top / 46px 46px no-repeat,
        var(--corner-br) right bottom / 46px 46px no-repeat, var(--corner-bl) left bottom / 46px 46px no-repeat;
    opacity: .75;
}
.legacy .pageheader + .pagecontents, .legacy .pagecontents + .section-container { margin-top: 0; }
.legacy .section-container + .pagecontents { margin-top: 40px; }

.legacy .row { display: flex; flex-wrap: wrap; gap: 0 44px; }
.legacy .row > * { flex: 1 1 100%; min-width: 0; }
.legacy .row > .col-md-8, .legacy .row > .col-md-7, .legacy .row > .col-sm-8 { flex: 1 1 52%; }
.legacy .row > .col-md-4, .legacy .row > .col-md-3, .legacy .row > .col-sm-4 { flex: 0 1 28%; }
.legacy .row > .col-md-2 { flex: 0 0 64px; }
.legacy .row > .col-md-6 { flex: 1 1 40%; }
.legacy .text.row > .col-md-10 { flex: 1 1 0; }
.legacy .clearfix { display: none; }

.legacy h1.title, .legacy h2.title {
    font: 400 clamp(1.9rem, 3.2vw, 2.5rem)/1.15 var(--serif); color: var(--ink); margin: 0 0 26px; padding-bottom: 36px;
    background: var(--flourish) left bottom / 210px 30px no-repeat;
}
.legacy .section-container > .row > .section-container > h2.title, .legacy .section-container > h2.title { margin-top: 64px; }
.legacy .pageheader h2.title, .legacy .pageheader h1.title { margin-top: 0; }
.legacy h2.title img, .legacy h1.title img { float: right; max-height: 56px; width: auto !important; margin-left: 14px; }
#aws h2.title img[src*="amazon"] { max-height: 32px; margin-top: 14px; }
.legacy .pageheader h2.title img[src*="deep"] { max-height: 190px; max-width: 160px; }
.legacy .title.text-center, .legacy .subtitle.text-center { text-align: center; margin: 64px 0 22px; }
.legacy .title.text-center h3, .legacy .subtitle h3 {
    display: inline-block; font: 400 1.6rem/1.2 var(--serif); color: var(--ink); padding: 0 0 34px; margin: 0;
    background: var(--flourish) center bottom / 190px 26px no-repeat; min-width: 220px;
}
.legacy h3 { font: 400 1.35rem/1.25 var(--serif); color: var(--ink); margin: 26px 0 10px; }
.legacy h4 { font: 400 1.12rem/1.3 var(--serif); color: var(--ink); margin: 0 0 4px; }
.legacy b, .legacy strong { color: var(--ink); font-weight: 500; }

.legacy img.img-responsive { float: right; width: auto !important; max-width: 64px; max-height: 40px; margin: 2px 0 8px 18px; }

/* Card lists: Industry Experience and Education */
.legacy .ul-card, .legacy .ul-dates, .legacy .timeline, .legacy .ul-boxed, .legacy .ul-withdetails { list-style: none; margin: 0; padding: 0; }
.legacy .ul-card { border: 1px solid var(--line); padding: 0 28px; margin-bottom: 18px; position: relative; }
.legacy .ul-card::before, .legacy .ul-card::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); background: var(--bg); top: -4px; }
.legacy .ul-card::before { left: -4px; } .legacy .ul-card::after { right: -4px; }
.legacy .ul-card > li { display: grid; grid-template-columns: 110px 1fr; gap: 26px; padding: 24px 0; }
.legacy .ul-card > li + li { border-top: 1px solid var(--line); }
.legacy .ul-card .dy { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2px; }
.legacy .ul-card .dy span { font-variant-numeric: tabular-nums; }
.legacy .ul-card .degree { font: 400 1.25rem/1.1 var(--serif); color: var(--gold); }
.legacy .ul-card .year { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.legacy .ul-card .description { min-width: 0; grid-column: 2; }
.legacy .ul-card .dy + .description { grid-row: 1; }
/* Roles within one company read as a progression: a single connecting thread, no dividers */
.legacy .ul-card .description { position: relative; }
.legacy .ul-card .dy ~ .description:nth-last-child(n+2), .legacy .ul-card .dy ~ .description:nth-last-child(n+2) ~ .description { padding-left: 22px; }
.legacy .ul-card .dy ~ .description:nth-last-child(n+2)::before, .legacy .ul-card .dy ~ .description:nth-last-child(n+2) ~ .description::before {
    content: ""; position: absolute; left: 1px; top: 9px; width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); background: var(--bg);
}
.legacy .ul-card .dy ~ .description:nth-last-child(n+2)::after, .legacy .ul-card .dy ~ .description:nth-last-child(n+2) ~ .description:not(:last-child)::after {
    content: ""; position: absolute; left: 4px; top: 18px; bottom: -24px; width: 1px; background: var(--gold-dim);
}
.legacy .ul-card > li { row-gap: 0; }
.legacy .ul-card .description + .description { margin-top: 16px; }
.legacy .ul-card .what { font: 400 1.18rem/1.3 var(--serif); color: var(--ink); margin: 0 0 2px; }
.legacy .ul-card .where { font-size: .85rem; color: var(--ink-3); margin: 0; }

/* Date lists: Academic Experience, Talks and Lectures */
.legacy .ul-dates { border-top: 1px solid var(--line); margin-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent; }
.legacy .ul-dates > li { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.legacy .ul-dates .dates span { display: block; font-size: .78rem; color: var(--ink-3); line-height: 1.5; }
.legacy .ul-dates .dates span:first-child { color: var(--gold); }
.legacy .ul-dates .content p { margin: 2px 0 0; font-size: .88rem; }

/* Timelines: Professional work, Teaching, Thaalam, LKP */
.legacy .timeline { position: relative; margin: 8px 0 20px; }
.legacy .timeline::before { content: ""; position: absolute; left: 168px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold-dim), var(--line) 30%, var(--line) 70%, var(--gold-dim)); }
.legacy .timeline > li { position: relative; border: 0; display: grid; grid-template-columns: 150px 1fr; gap: 0 48px; padding: 20px 0; }
.legacy .timeline > li > .date { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: right; padding-top: 4px; }
.legacy .timeline > li > .circle { position: absolute; left: 164px; top: 27px; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--bg); transform: rotate(45deg); }
.legacy .timeline > li > .data { grid-column: 2; }
.legacy .timeline .subject { font: 400 1.2rem/1.35 var(--serif); color: var(--ink); margin-bottom: 6px; }
.legacy .timeline .text.row { gap: 0 16px; align-items: flex-start; }
.legacy .timeline .text .col-md-2 img.img-responsive { float: none; margin: 4px 0 0; }
.legacy .timeline .text ul { padding-left: 18px; margin: 4px 0 0; }
.legacy .timeline .text ul li { display: list-item; padding: 2px 0; border: 0; font-size: .88rem; }
.legacy .timeline .text ul li::marker { color: var(--gold); }
.legacy .timeline .text p { margin: 2px 0; font-size: .88rem; }

.label { display: inline-block; font: 400 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--gold-dim); color: var(--gold); border-radius: 2px; }
.legacy .label-success { color: var(--ink-2); border-color: var(--line); }

.legacy .ul-boxed li { padding: 10px 14px; border: 1px solid var(--line); margin-bottom: 8px; }
.legacy .ul-withdetails > li { padding: 24px 0; border-top: 1px solid var(--line); }
.legacy .ul-withdetails .row { align-items: flex-start; }
.legacy .ul-withdetails .imageoverlay { display: none; }
.legacy .ul-withdetails .image img { float: none; max-width: 100%; max-height: none; filter: grayscale(.3); opacity: .85; border-radius: 4px; }
.legacy .ul-withdetails .meta { font-size: .78rem; color: var(--ink-3); }

/* Music pages (Thaalam, LKP) header block */
.legacy #gallery-header > .section-container > .row > .col-md-4 img { max-width: 190px; height: auto; margin-bottom: 18px; }
.legacy #gallery-header .col-md-4 a { border: 0; display: inline-block; margin-right: 18px; }
.legacy #gallery-header .col-md-4 i[class*="icon-3x"] { font-size: 1.35rem; color: var(--ink-3); transition: color .2s; }
.legacy #gallery-header .col-md-4 a:hover i { color: var(--gold); }
.legacy #gallery-header .col-md-4 br { display: none; }
.legacy #gallery-header iframe.player { margin-top: 22px; }
.legacy .section.pageheader { margin-bottom: 56px; }
.legacy #contact img[src*="email"] { display: inline-block; vertical-align: middle; filter: invert(.88); opacity: .8; }

@media (max-width: 920px) {
    .nav-toggle { display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; }
    .nav-toggle span { width: 20px; height: 1px; background: var(--ink); }
    .nav-links { position: fixed; inset: 65px 0 auto; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s; z-index: -1; max-height: calc(100vh - 65px); overflow: auto; }
    .nav-links > a, .nav-group > a { padding: 10px 0; width: 100%; font-size: .9rem; display: block; }
    .nav-links .btn { margin-top: 8px; width: auto; }
    .nav.open .nav-links { transform: none; }
    .nav.open { background: var(--bg-2); }
    .nav-group { width: 100%; }
    .nav-menu { position: static; display: flex; border: 0; border-left: 1px solid var(--gold-dim); padding: 0 0 6px 4px; min-width: 0; background: none; }
    .nav-menu a { padding: 7px 14px; font-size: .86rem; }
    .legacy .row > * { flex: 1 1 100% !important; }
    .legacy .timeline::before { left: 4px; }
    .legacy .timeline > li { grid-template-columns: 1fr; padding-left: 28px; }
    .legacy .timeline > li > .circle { left: 0; }
    .legacy .timeline > li > .date { text-align: left; }
    .legacy .timeline > li > .data { grid-column: 1; }
    .band-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .frame, .legacy .pageheader { padding: 32px 26px; }
    .scroll-panel { padding: 12px 20px; }
    .legacy .ul-card { padding: 0 18px; }
    .legacy .ul-card > li { grid-template-columns: 1fr; gap: 8px; }
    .legacy .ul-card .description { grid-column: 1; }
    .legacy .ul-card .dy + .description { grid-row: auto; }
    .legacy .ul-card .dy { flex-direction: row; gap: 10px; align-items: baseline; }
    .legacy .ul-dates > li { grid-template-columns: 1fr; gap: 4px; }
    .legacy .ul-dates .dates span { display: inline; margin-right: 8px; }
}


/* ==========================================================================
   Sidebar layout (replaces the top bar and footer)
   ========================================================================== */
:root { --sb: 272px; }
html { scroll-padding-top: 24px; }
.nav, .footer { display: none; }
body::before { display: none; }
.topbar { display: none; }

.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sb); z-index: 40;
    background: var(--bg-2);
    border-right: 1px solid var(--gold-dim);
    box-shadow: inset -6px 0 0 -5px rgba(181, 156, 109, .12);
}
.sidebar::after { /* second hairline: double rule like a temple border */
    content: ""; position: absolute; top: 0; bottom: 0; right: 5px; width: 1px; background: rgba(181, 156, 109, .1);
}
.sidebar-inner { height: 100%; overflow-y: auto; padding: 40px 34px 26px 32px; display: flex; flex-direction: column; scrollbar-width: none; }
.sidebar-inner::-webkit-scrollbar { display: none; }
.sidebar a { border: 0; }

.sb-profile { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--ink); }
.sb-portrait { display: block; box-sizing: border-box; width: 100%; aspect-ratio: 5 / 6; max-height: 36vh; border-radius: 110px 110px 3px 3px; overflow: hidden; border: 1px solid var(--gold-dim); padding: 3px; }
.sb-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 106px 106px 2px 2px; filter: grayscale(.3) brightness(.92); }
.sb-name { font: 400 1.45rem/1.1 var(--serif); letter-spacing: .01em; }
.sb-profile:hover .sb-name { color: var(--gold); }
.sb-roles { list-style: none; padding: 0; margin: 10px 0 0; }
.sb-roles li { font-size: .72rem; line-height: 1.7; color: var(--ink-3); letter-spacing: .02em; }
.sb-roles li:first-child { color: var(--gold); }
.sb-flourish { width: 190px; margin: 18px 0 18px -14px; opacity: .55; }

.sb-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.sb-nav a { position: relative; display: block; padding: 7px 0 7px 18px; font-size: .84rem; letter-spacing: .03em; color: var(--ink-2); transition: color .2s; }
.sb-nav a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border: 1px solid var(--gold-dim); transform: rotate(45deg); transition: background .2s, border-color .2s; }
.sb-nav a:hover { color: var(--ink); }
.sb-nav a:hover::before { border-color: var(--gold); }
.sb-nav a.active { color: var(--gold); }
.sb-nav a.active::before { background: var(--gold); border-color: var(--gold); }
.sb-sub { margin: 0 0 4px 20px; padding-left: 12px; border-left: 1px solid var(--line); }
.sb-sub a { padding: 4px 0 4px 6px; font-size: .78rem; color: var(--ink-3); }
.sb-sub a::before { display: none; }

.sb-foot { margin-top: auto; padding-top: 24px; }
.sb-foot .btn { width: 100%; justify-content: center; }
.sb-social { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 16px 0 0; }
.sb-social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-3); font-size: .78rem; }
.sb-social a:hover { color: var(--gold); border-color: var(--gold); }
.sb-elephant { width: 64px; margin: 22px auto 8px; color: var(--gold); opacity: .4; }
.sb-copy { margin: 0; text-align: center; font-size: .66rem; color: var(--ink-3); letter-spacing: .03em; }

/* Main content sits to the right of the sidebar */
.main { margin-left: var(--sb); position: relative; z-index: 1; min-height: 100vh; }
.main .container, .legacy, .temple-band { width: min(var(--max), 100% - 96px); }
.hero { padding: 110px 0 100px; }
.hero > .hero-motif { right: 24px; }
.hero > .hero-motif.peacock { right: 24px; }
.page-hero { padding: 90px 0 44px; }
.page-hero > .hero-motif.small { right: 48px; }
.legacy { padding: 80px 0 90px; }
.filters { top: 0; }
.zari { left: var(--sb); }
.main > section:last-child, .main > .legacy:last-child { padding-bottom: 110px; }

@media (max-width: 1100px) {
    :root { --sb: 236px; }
    .sidebar-inner { padding: 32px 24px 22px; }
    .main .container, .legacy, .temple-band { width: calc(100% - 64px); }
}

/* Small screens: sidebar slides in from the left */
@media (max-width: 920px) {
    .topbar {
        display: flex; align-items: center; justify-content: space-between; position: fixed; inset: 0 0 auto; height: 60px; padding: 0 20px; z-index: 30;
        background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    }
    .topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); border: 0; }
    .topbar .nav-toggle { display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; }
    .topbar .nav-toggle span { width: 20px; height: 1px; background: var(--ink); }
    .sidebar { width: min(300px, 86vw); transform: translateX(-102%); transition: transform .35s ease; z-index: 50; }
    .sb-open .sidebar { transform: none; }
    .sb-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
    .sb-open .sb-scrim { opacity: 1; pointer-events: auto; }
    .main { margin-left: 0; }
    .zari { left: 0; }
    .main .container, .legacy, .temple-band { width: calc(100% - 40px); }
    .hero { padding-top: 100px; }
    .page-hero { padding-top: 100px; }
    .legacy { padding-top: 90px; }
    .filters { top: 60px; }
    html { scroll-padding-top: 72px; }
}

/* ==========================================================================
   Unified media list (Thaalam Studios)
   ========================================================================== */
.legacy .media-section { margin-top: 8px; }
.legacy iframe.player.spotify.big { height: 480px; margin-bottom: 34px; }
.media-filters { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; padding: 0 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.media-filters .count { margin-left: auto; font-size: .74rem; color: var(--ink-3); }
.media-panel { padding: 14px 30px; }
.legacy .media-list { list-style: none; margin: 0; padding: 0 14px 0 0; max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent; }
.media-item.hide { display: none; }
.media-item + .media-item { border-top: 1px solid var(--line); }
.media-item a { display: grid; grid-template-columns: 64px 1fr 34px; gap: 18px; align-items: center; padding: 12px 0; border: 0; color: var(--ink); }
.mi-thumb { position: relative; width: 64px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; color: var(--gold); font-size: .95rem; }
.mi-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.55); transition: filter .3s; }
.mi-thumb i { position: relative; opacity: .85; }
.mi-text { min-width: 0; display: flex; flex-direction: column; }
.mi-title { font: 400 1.05rem/1.3 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-sub { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.mi-play { position: relative; width: 30px; height: 30px; border: 1px solid var(--gold-dim); border-radius: 50%; transition: border-color .2s, background .2s; }
.mi-play::after { content: ""; position: absolute; left: 11px; top: 9px; border-left: 9px solid var(--gold); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.media-item a:hover .mi-title { color: var(--gold); }
.media-item a:hover .mi-play { border-color: var(--gold); background: rgba(181, 156, 109, .08); }
.media-item a:hover .mi-thumb img { filter: grayscale(0) brightness(.8); }
@media (max-width: 680px) {
    .legacy iframe.player.spotify.big { height: 380px; }
    .media-panel { padding: 8px 16px; }
    .media-item a { grid-template-columns: 52px 1fr 28px; gap: 12px; }
    .mi-thumb { width: 52px; height: 34px; }
    .mi-title { white-space: normal; }
}

/* ---------- Photo column: CV + book under the portrait ---------- */
.hero-side { width: 100%; padding-top: 10px; }
.hero-side .cv-btn { display: flex; justify-content: center; gap: 8px; width: 100%; }
.book-mini { margin-top: 18px; padding: 22px 20px 20px; text-align: center; }
.book-mini .eyebrow { margin: 0 0 12px; }
.book-mini .book-covers { justify-content: center; }
.book-mini .book-covers img { height: 140px; }
.book-mini .book-covers img + img { margin-left: 10px; }
.book-mini h3 { font-size: 1.08rem; line-height: 1.3; margin: 14px 0 6px; }
.book-mini .muted { font-size: .8rem; margin: 0 0 10px; }
.book-mini .book-links { font-size: .8rem; letter-spacing: .04em; }
.book-mini .book-links span { color: var(--gold-dim); margin: 0 6px; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
    .feed li { grid-template-columns: 1fr; gap: 2px; }
    .legacy .pageheader h2.title img[src*="deep"] { float: none !important; display: block; margin: 0 0 18px; max-width: 150px; }
    .legacy .pageheader h2.title img { max-width: 64px; }
    .band .logo img + img { margin-left: 10px; }
}
.band .logo img + img { margin-left: 14px; }

/* ---------- Curriculum Vitae plaque ---------- */
.cv-plaque {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px 18px 18px; border: 1px solid var(--gold-dim); color: var(--ink); text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(181, 156, 109, .08), transparent 70%);
    transition: border-color .25s, background .25s;
}
.cv-plaque::before { /* inner hairline with corner scrolls */
    content: ""; position: absolute; inset: 5px; pointer-events: none;
    border: 1px solid rgba(181, 156, 109, .14);
    background:
        var(--corner-tl) left top / 24px 24px no-repeat,
        var(--corner-tr) right top / 24px 24px no-repeat,
        var(--corner-br) right bottom / 24px 24px no-repeat,
        var(--corner-bl) left bottom / 24px 24px no-repeat;
}
.cv-plaque::after { /* diamond set into the top border */
    content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; pointer-events: none;
    transform: translateX(-50%) rotate(45deg); background: var(--bg); border: 1px solid var(--gold);
}
.cv-flourish { display: block; width: 150px; height: 20px; background: var(--flourish) center / contain no-repeat; opacity: .75; }
.cv-flourish.down { transform: scaleY(-1); }
.cv-title { font: italic 500 1.35rem/1.1 var(--serif); letter-spacing: .02em; color: var(--gold); }
.cv-sub { font: 400 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.cv-sub i { font-size: .7rem; }
.cv-plaque:hover { border-color: var(--gold); background: radial-gradient(ellipse at 50% 0%, rgba(181, 156, 109, .15), transparent 75%); }
.cv-plaque:hover .cv-sub { color: var(--gold); }

/* ---------- Sidebar portrait: temple arch ornament ---------- */
.sb-arch { position: relative; display: block; width: 100%; padding: 8px 8px 0; margin-top: 14px; }
.sb-arch::before { /* outer arch, a second hairline around the photo */
    content: ""; position: absolute; inset: 0 0 6px; pointer-events: none;
    border: 1px solid rgba(181, 156, 109, .28); border-bottom: 0; border-radius: 120px 120px 0 0;
}
.sb-arch::after { /* corner scrolls where the arch meets its base */
    content: ""; position: absolute; left: -4px; right: -4px; bottom: 2px; height: 26px; pointer-events: none;
    background: var(--corner-bl) left bottom / 26px 26px no-repeat, var(--corner-br) right bottom / 26px 26px no-repeat;
}
.sb-finial { /* kalasam-like finial at the apex: diamond, stem and dot */
    position: absolute; top: -14px; left: 50%; width: 12px; height: 22px; transform: translateX(-50%); z-index: 1;
    background:
        radial-gradient(circle, var(--gold) 0 1.6px, transparent 2.2px) center top / 6px 6px no-repeat,
        linear-gradient(var(--gold-dim), var(--gold-dim)) center 6px / 1px 6px no-repeat;
}
.sb-finial::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 7px;
    transform: translateX(-50%) rotate(45deg); background: var(--bg-2); border: 1px solid var(--gold);
}
.sb-arch-base { /* plinth: double rule with the flourish centred on it */
    display: block; height: 18px; margin: 6px -8px 0;
    background:
        var(--flourish) center / 150px 18px no-repeat,
        linear-gradient(rgba(181, 156, 109, .35), rgba(181, 156, 109, .35)) center 7px / 100% 1px no-repeat,
        linear-gradient(rgba(181, 156, 109, .15), rgba(181, 156, 109, .15)) center 11px / 100% 1px no-repeat;
}

/* ---------- Tamil title under each section heading ---------- */
.ta-title {
    display: block; margin-top: .75em;
    font: 400 max(.46em, .86rem)/1.35 var(--tamil);
    letter-spacing: .02em; text-transform: none; font-style: normal;
    color: var(--gold); opacity: .8;
}
h1 .ta-title, .display .ta-title { font-size: max(.4em, 1rem); margin-top: .9em; }
.section-head .ta-title { font-size: max(.5em, .95rem); }
.ta-inline { font-family: var(--tamil); letter-spacing: .02em; text-transform: none; }
