/* heard. v3 — "Now Playing" portfolio layer (24 Nov 2026).
   Loads after style.css. Brand teal/coral/cream stay; pink #ff6fb1 is the Now Playing accent
   from Mindy's social edits, so the site and the reels look like one family. */
:root {
  --pink: #ff6fb1;
  --pink-deep: #d6398a;
  --pink-soft: #ffe1ef;
  --wall: #d9d5cd;            /* sampled from the headshot wall so the hero photo melts into the page */
  --serif: "Instrument Serif", Georgia, serif;
  --wave-grad: linear-gradient(90deg, var(--coral), var(--pink));
  --shadow-lg: 0 30px 80px -20px rgba(17,17,17,.28);
}

/* Type: Poppins stays the brand face; Instrument Serif italic is the "heard" accent */
h1 em, h2 em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h2 em { color: var(--pink-deep); }
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 4px var(--pink-soft); }

/* Header scroll waveform: a thin progress line that fills as you scroll */
.site-header { overflow: visible; }
.scrub-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; pointer-events: none; }
.scrub-line i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--wave-grad); }

/* ---------- Hero ---------- */
.np-hero { position: relative; background: var(--wall); padding: 0; overflow: hidden; isolation: isolate; }
.np-hero picture, .np-hero .hero-img { position: absolute; inset: 0; z-index: -1; }
.np-hero .hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.np-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--wall) 0%, rgba(217,213,205,.92) 30%, rgba(217,213,205,.35) 52%, rgba(217,213,205,0) 66%); }
.np-hero .wrap { min-height: min(86vh, 860px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 72px; }
.np-hero .copy { max-width: 560px; }
.np-hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; margin-bottom: .35em; }
.np-hero h1 em { color: var(--pink-deep); font-size: 1.08em; }
.np-hero .lead { color: #2f2d2a; max-width: 470px; }
.np-hero .eyebrow { color: var(--ink); }
.np-hero .trust { border-top-color: rgba(17,17,17,.14); color: #3b3935; }

/* ---------- Now Playing card (hero) + mini player ---------- */
.np-card { margin-top: 34px; width: min(100%, 460px); background: rgba(255,255,255,.62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.75); border-radius: 22px; padding: 16px 18px 14px; box-shadow: var(--shadow-lg); }
.np-top { display: flex; align-items: center; gap: 14px; }
.vinyl { flex: none; width: 52px; height: 52px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, var(--pink) 0 17%, #111 18% 21%, #1d1d1d 22% 100%);
  box-shadow: inset 0 0 0 1px #333; animation: spin 6s linear infinite; animation-play-state: var(--spin, running); }
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 3px, rgba(255,255,255,.06) 3px 4px); }
@keyframes spin { to { transform: rotate(360deg); } }
.np-meta { min-width: 0; flex: 1; }
.np-label { font-family: var(--head); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pink-deep); font-weight: 600; }
.np-title { font-family: var(--head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ctrl { display: flex; gap: 4px; }
.np-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.np-ctrl button:hover { background: rgba(17,17,17,.07); }
.np-ctrl button:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 2px; }
.np-ctrl svg { width: 16px; height: 16px; fill: currentColor; }

.wave { position: relative; display: flex; align-items: center; gap: 2px; height: 46px; margin-top: 12px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.wave:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 4px; border-radius: 6px; }
.wave b { flex: 1; min-width: 2px; border-radius: 3px; background: rgba(17,17,17,.16); height: calc(var(--h) * 100%); transform-origin: 50% 50%;
  transition: background-color .2s; animation: breathe 2.4s ease-in-out infinite; animation-delay: var(--d); animation-play-state: var(--spin, running); }
.wave b.on { background: var(--pink); }
.wave b.on:nth-child(3n) { background: #ff86a0; }
.wave b.on:nth-child(5n) { background: var(--coral); }
@keyframes breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
.wave .head { position: absolute; top: -4px; bottom: -4px; width: 2px; left: calc(var(--p, 0) * 100%); background: var(--ink); border-radius: 2px; pointer-events: none; }
.wave .head::after { content: ""; position: absolute; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.np-time { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }

.mini-player { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: 340px; margin: 0; padding: 12px 14px 10px;
  transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.mini-player.show { transform: none; opacity: 1; }
.mini-player .vinyl { width: 40px; height: 40px; }
.mini-player .wave { height: 30px; margin-top: 8px; }
.mini-player .np-title { font-size: .95rem; }
@media (max-width: 899px) { .mini-player { display: none; } }

/* ---------- Track headers: each home section is a track ---------- */
.track-no { font-family: var(--head); font-size: .78rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-transform: uppercase; }
.track-no::before { content: attr(data-n); color: var(--pink-deep); }
.track-no::after { content: ""; height: 1px; width: 48px; background: currentColor; opacity: .35; }
.bg-ink .track-no { color: #b9b2a8; }
.bg-ink .track-no::before { color: var(--pink); }

/* ---------- Tracklist portfolio ---------- */
.tracklist { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.tl-stage { position: sticky; top: 104px; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #222; box-shadow: var(--shadow-lg); }
.tl-stage picture, .tl-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-stage picture { opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.2s ease; }
.tl-stage picture.on { opacity: 1; transform: none; }
.tl-stage .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; color: #fff; font-size: .85rem;
  background: rgba(17,17,17,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 14px; border-radius: 14px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: var(--pink); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }

.tl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-item { border-bottom: 1px solid var(--line); }
.tl-item a { display: grid; grid-template-columns: 54px 1fr auto; gap: 6px 14px; align-items: baseline; padding: 26px 8px 26px 4px; text-decoration: none; color: var(--ink); position: relative; transition: padding .3s ease; }
.tl-item a::before { content: ""; position: absolute; left: -14px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--wave-grad); transform: scaleY(0); transition: transform .35s ease; }
.tl-item .n { font-family: var(--head); font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-item h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 500; margin: 0; letter-spacing: -0.02em; transition: color .25s; }
.tl-item .len { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.tl-item p { grid-column: 2 / 4; margin: 4px 0 0; color: var(--ink-soft); max-width: 46ch; font-size: .98rem; }
.tl-item .tags { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-item .tags span { font-size: .74rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); background: var(--card); }
.tl-item .thumb { display: none; }
.tl-item.on a { padding-left: 14px; }
.tl-item.on a::before { transform: scaleY(1); }
.tl-item.on h3, .tl-item a:hover h3 { color: var(--pink-deep); }
.tl-item.on .n { color: var(--pink-deep); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 30px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--ink); }
.stats span { font-size: .9rem; color: var(--muted); }

/* ---------- Meet Mindy ---------- */
.meet { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.meet-photos { position: relative; }
.meet-photos .main { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.meet-photos .main img { width: 100%; height: 100%; object-fit: cover; }
.meet-photos .chip { position: absolute; right: -28px; bottom: 36px; width: 46%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 6px solid var(--paper-2); box-shadow: var(--shadow-lg); }
.meet-photos .chip img { width: 100%; height: 100%; object-fit: cover; }
.meet-photos .badge { position: absolute; left: -18px; top: 28px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; font-size: .82rem; line-height: 1.35; box-shadow: var(--shadow-lg); }
.meet-photos .badge b { display: block; font-family: var(--head); font-size: 1rem; }
.sig { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--pink-deep); margin: 8px 0 0; }

/* ---------- Live band (stage photo) ---------- */
.live { position: relative; color: #fff; padding: 0; background: #120e0c; overflow: hidden; }
.live picture img { width: 100%; height: clamp(440px, 70vh, 720px); object-fit: cover; object-position: 50% 35%; display: block; }
.live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,9,8,.85) 0%, rgba(12,9,8,.45) 45%, rgba(12,9,8,0) 75%), linear-gradient(0deg, rgba(12,9,8,.55), transparent 40%); }
.live .wrap { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; left: 0; right: 0; }
.live blockquote { margin: 0; max-width: 620px; font-family: var(--head); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.live blockquote em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--pink); }
.live cite { display: block; margin-top: 18px; font-style: normal; color: #d9d1c7; max-width: 460px; }
.live .track-no { color: #cfc6bb; }
.live .track-no::before { color: var(--pink); }

/* ---------- Research feature ---------- */
.research-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--ink); color: #eae6de; box-shadow: var(--shadow-lg); }
.research-feature .pic { position: relative; min-height: 380px; }
.research-feature .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.research-feature .txt { padding: 44px 44px 40px; }
.research-feature h2, .research-feature h3 { color: #fff; }
.research-feature .eyebrow { color: var(--pink); }
.research-feature ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.research-feature li { padding: 12px 0; border-top: 1px solid #2e2c2a; font-size: .95rem; }
.research-feature li span { display: block; color: #a9a298; font-size: .8rem; }
.research-feature .btn { background: #fff; color: var(--ink); border-color: #fff; }
.research-feature .btn:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.research-feature .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- Generic photo frame + picture helpers ---------- */
.frame { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
picture.img { display: block; overflow: hidden; border-radius: var(--radius); }
picture.img img { width: 100%; height: 100%; object-fit: cover; }
.sector picture img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Section hover polish */
.sector img { transition: transform .6s ease; }
.sector:hover img { transform: scale(1.04); }
.sector { overflow: hidden; }
.sector:hover { border-color: var(--pink); }
.sector .go { color: var(--pink-deep); }
.btn:hover { background: var(--pink-deep); border-color: var(--pink-deep); }
.step::before { color: var(--pink-deep); }
.cta-band { background: linear-gradient(110deg, var(--coral), var(--pink)); }

/* Reveal on scroll (only when JS has run; reduced motion shows everything) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tracklist, .meet { grid-template-columns: 1fr; gap: 40px; }
  .tl-stage { display: none; }
  .tl-item .thumb { display: block; grid-column: 1 / 4; margin-top: 14px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
  .tl-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .tl-item p, .tl-item .tags { grid-column: 1 / 4; }
  .tl-item a { grid-template-columns: 40px 1fr auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .research-feature { grid-template-columns: 1fr; }
  .research-feature .pic { min-height: 0; aspect-ratio: 16 / 9; }
  .meet-photos { max-width: 520px; }
  .meet-photos .chip { right: -8px; }
  .meet-photos .badge { left: -6px; }
}
@media (max-width: 760px) {
  .np-hero::before { display: none; }
  .np-hero picture.hero-img { position: relative; inset: auto; z-index: 0; display: block; height: min(58vh, 520px);
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  .np-hero .hero-img img { height: 100%; object-position: 66% 18%; }
  .np-hero .wrap { min-height: 0; position: relative; margin-top: -64px; padding-top: 0; padding-bottom: 48px; }
  .np-title { white-space: normal; }
  .np-label { letter-spacing: .12em; }
  .np-ctrl button { width: 32px; height: 32px; }
  .np-card .vinyl { width: 44px; height: 44px; }
  .np-hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .np-card { margin-top: 26px; }
  .live picture img { height: 78vh; object-position: 62% 40%; }
  .live::after { background: linear-gradient(0deg, rgba(12,9,8,.9) 0%, rgba(12,9,8,.55) 45%, rgba(12,9,8,.1) 75%); }
  .live .wrap { justify-content: flex-end; padding-bottom: 48px; }
  .research-feature .txt { padding: 30px 24px; }
  .meet-photos .badge { top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --spin: paused; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tl-stage picture { transition: none; }
  .eq i { animation: none; height: 70%; }
}

/* Blog: author box, key takeaways, references (added 24 Nov 2026) */
.author-box { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-top: 56px; align-items: start; }
.author-box .author-photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.author-box h3 { margin: .2em 0 .5em; }
.author-box p { font-size: .95rem; }
@media (max-width: 600px) { .author-box { grid-template-columns: 1fr; } }
.takeaways { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.takeaways h2 { font-size: 1.1rem !important; margin: 0 0 .6em !important; }
.takeaways ul { margin: 0; padding-left: 1.1em; }
.takeaways li { margin-bottom: .35em; }
.refs { font-size: .82rem; color: var(--muted); margin-top: 40px; }
.refs h2 { font-size: 1.1rem !important; }
.refs li { margin-bottom: .5em; overflow-wrap: anywhere; }

/* PhD + Gretsch photo: always show face, guitar headstock and the whole PhD folder (24 Nov 2026) */
picture.img:has(img[src*="phd-gretsch-wide"]) { aspect-ratio: 3 / 2; }
img[src*="phd-gretsch"] { object-position: 50% 55%; }
img.img[src*="phd-gretsch-wide"] { aspect-ratio: 3 / 2; }
img[src*="phd-gretsch-square"] { object-position: 50% 22%; }
/* Keep her face and the clarinet in frame in short containers */
.sleeve img[src*="recital-stage"], .island.photo img[src*="recital-stage"] { object-position: 50% 16%; }
.sleeve img[src*="hero-headshot"] { object-position: 50% 20%; }
img[src*="studio-clarinet"] { object-position: 50% 70%; }
