/* ============ JMD — styles ============
   Big headers: Bricolage Grotesque · Body: Figtree · Accent italics: Fraunces
   Palette: cream / sky blue / burnt orange (Joey's), plus a navy ink for text */
:root {
  --cream: #FFFDEB;
  --cream-line: #EEE7C4;
  --blue: #8EB6DC;
  --blue-deep: #6F9CC8;
  --blue-ink: #3D6A99;
  --orange: #D46802;
  --orange-dark: #B85A00;
  --ink: #23324A;
  --gold: #E2B94B;
  --white: #FFFFFF;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --f-accent: "Fraunces", Georgia, serif;

  --radius: 10px;
  --gutter: max(16px, 4vw);

  /* button colors (overridden on the blue section) */
  --btn-fg: var(--orange);
  --btn-fill: var(--orange);
  --btn-on-fill: var(--cream);
  --btn-shadow: var(--ink);
}
.on-blue {
  --btn-fg: var(--cream);
  --btn-fill: var(--cream);
  --btn-on-fill: var(--blue-ink);
  --btn-shadow: var(--ink);
}

@font-face {
  font-family: "Pasadeli Serif"; src: url("assets/pasadeli.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Pasadeli for the three section headers */
.disc h2, .contact h2, .credits-title h1 {
  font-family: "Pasadeli Serif", "Fraunces", Georgia, serif;
  font-weight: 400; letter-spacing: -0.01em; font-variation-settings: normal; line-height: 1; font-synthesis: none;
}
.nw { white-space: nowrap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96; line-height: 0.92; margin: 0; text-wrap: balance;
}
.dot { color: var(--orange); margin: 0 .55em; }

/* ============ BUTTONS ============
   Offset style: retro print block with a hard shadow (data-btn="3" on <html>) */
.ui-btn {
  --pad-y: .7em; --pad-x: 1.15em;
  display: inline-flex; align-items: center; gap: .45em;
  font: 700 .86rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--btn-fg); background: transparent;
  border: 1.5px solid var(--btn-fg); border-radius: 3px;
  padding: var(--pad-y) var(--pad-x);
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.ui-btn:focus-visible { outline: 2px solid var(--btn-fg); outline-offset: 3px; }
.ui-btn:hover, .ui-btn.is-active, .ui-btn.primary { background: var(--btn-fill); color: var(--btn-on-fill); border-color: var(--btn-fill); }
.ui-btn.primary:hover { background: transparent; color: var(--btn-fg); }
.on-blue .ui-btn.primary:hover { color: var(--cream); }
.chip { --pad-y: .6em; --pad-x: .95em; font-size: .78rem; }
.chip span { opacity: .65; font-weight: 600; }

/* 3 — Offset: retro print block with a hard shadow */
[data-btn="3"] .ui-btn { border-width: 2px; border-color: var(--btn-shadow); border-radius: 0; color: var(--btn-shadow);
  background: var(--cream); box-shadow: 3px 3px 0 var(--btn-shadow); }
[data-btn="3"] .on-blue .ui-btn { background: var(--cream); }
[data-btn="3"] .ui-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--btn-shadow); background: var(--cream); color: var(--btn-shadow); }
[data-btn="3"] .ui-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-shadow); }
[data-btn="3"] .ui-btn.primary, [data-btn="3"] .ui-btn.is-active { background: var(--orange); color: var(--cream); }
[data-btn="3"] .ui-btn.primary:hover { background: var(--orange-dark); color: var(--cream); }
[data-btn="3"] .filters, [data-btn="3"] .hero-nav { gap: 12px; }

/* ============ HERO ============ */
.hero { padding: 0; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  min-height: clamp(440px, 66vh, 660px); align-items: stretch;
}
/* Photo fills the full height of the cream section, flush to the edges, about a third of the width */
.hero-photo { margin: 0; position: relative; min-height: 100%; overflow: hidden; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
}
.hero-text {
  align-self: center; justify-self: center; width: min(100%, 760px);
  padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 72px);
}
.hero-text { container-type: inline-size; }
.name { color: var(--blue-ink); font-size: clamp(2.2rem, 11.6cqi, 5.6rem); }
.roles {
  font-family: var(--f-body); text-transform: uppercase; letter-spacing: .14em;
  font-size: clamp(.8rem, 1.4vw, .95rem); font-weight: 700; color: var(--blue-ink); margin: 1.1em 0 0;
}
.swoosh { width: min(420px, 100%); height: 16px; display: block; margin: 4px 0 0; overflow: visible; }
.swoosh path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.hero-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }

/* Roles line: spaced out under the name, larger, in orange */
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-text > * { flex: none; }
.hero .roles { margin-top: 1.7em; font-size: clamp(.95rem, 1.6vw, 1.12rem); color: var(--orange); letter-spacing: .16em; }
.hero .roles .dot { color: var(--blue-ink); }
.hero .swoosh { margin-top: 8px; }
@media (max-width: 520px) { .hero .roles { font-size: .78rem; letter-spacing: .12em; white-space: nowrap; } .hero .roles .dot { margin: 0 .4em; } }
@media (max-width: 860px) { .hero-text { align-items: center; } }
.hero-text { min-width: 0; }



/* ============ DISCOGRAPHY ============ */
.disc {
  background:
    radial-gradient(1200px 500px at 50% -10%, #A6C7E6 0%, rgba(166,199,230,0) 70%),
    linear-gradient(180deg, var(--blue) 0%, #86AFD8 55%, var(--blue-deep) 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
}
.disc-head { text-align: center; padding: 0 var(--gutter); }
.disc h2 { color: var(--cream); font-size: clamp(3.2rem, 9vw, 7.5rem); }

.marquee {
  display: flex; overflow: hidden; margin: 28px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 2.5rem; padding-right: 2.5rem; animation: marquee 140s linear infinite; }
.marquee span {
  font-family: var(--f-body); font-weight: 800; white-space: nowrap;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); text-shadow: 0 0 10px rgba(255,253,235,.55);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 0; max-width: 940px; }

.grid {
  display: grid; gap: clamp(10px, 1.6vw, 22px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1400px; margin: clamp(28px, 4vw, 44px) auto 0; padding: 0 var(--gutter);
}
@media (max-width: 1099px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile {
  position: relative; display: block; overflow: hidden; border-radius: 4px;
  aspect-ratio: 1; background: rgba(35,50,74,.15); text-decoration: none; color: var(--white);
  box-shadow: 0 10px 24px -14px rgba(35,50,74,.55);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
}
.tile > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.tile.is-hidden, .tile.is-clipped { display: none; }
.tile.is-new { animation: tile-in .4s ease both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px); } }

.tile-info {
  position: absolute; inset: 0; padding: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  background: linear-gradient(180deg, rgba(20,30,48,.7), rgba(20,30,48,.88));
  opacity: 0; transition: opacity .25s ease;
}
.tile-artist {
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(.68rem, .95vw, .82rem);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.tile-title { font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.1; margin: 2px 0 6px; }
.tile-roles { font-size: clamp(.62rem, .8vw, .72rem); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FFE2C2; }
.tile-grammy { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F2D27A; }
.tile-listen { position: absolute; top: 8px; right: 10px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.badge {
  position: absolute; top: 7px; left: 7px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 1.5px var(--gold); transition: opacity .25s;
}
.badge img { width: 22px; height: 22px; }

@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -16px rgba(35,50,74,.7); }
  .tile:hover > img { transform: scale(1.04); }
  .tile:hover .tile-info { opacity: 1; }
  .tile:hover .badge { opacity: 0; }
}
.tile:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.tile:focus-visible .tile-info, .tile.is-revealed .tile-info { opacity: 1; }
.tile.is-revealed .badge { opacity: 0; }
.tile.is-revealed .tile-listen { background: var(--orange); color: var(--cream); padding: 3px 7px; border-radius: 2px; top: 7px; right: 7px; }

.disc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 40px auto 0; padding: 0 var(--gutter); }

/* ============ CONTACT ============ */
.contact { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.contact-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-inner:has(.contact-form[hidden]) { grid-template-columns: minmax(0, 680px); justify-content: center; text-align: center; }
.contact-inner:has(.contact-form[hidden]) .swoosh { margin-left: auto; margin-right: auto; }
.contact-inner:has(.contact-form[hidden]) .contact-links { justify-content: center; }
.contact-logo { display: block; width: min(240px, 56%); height: auto; margin: clamp(48px, 7vw, 88px) auto 0; }
.contact h2 { color: var(--blue-ink); font-size: clamp(3.4rem, 9vw, 7rem); }
.contact-copy p { color: var(--orange); font-weight: 600; font-size: 1.08rem; margin: 1em 0; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.contact-copy .email-plain { font-weight: 500; font-size: .9rem; color: var(--blue-ink); opacity: .8; }
.contact-form { background: var(--white); border-radius: 12px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 24px 48px -28px rgba(61,106,153,.5); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); text-transform: none; letter-spacing: 0;
  background: var(--cream); border: 1.5px solid var(--cream-line); border-radius: 6px; padding: .75em .9em; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(142,182,220,.35); }
.contact-form .ui-btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; color: var(--blue-ink); min-height: 1.4em; }

.foot {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter) 40px; font-size: .85rem; font-weight: 600; color: var(--blue-ink); border-top: 1px solid var(--cream-line);
}
.foot img { width: 52px; height: auto; }

/* ============ FULL DISCOGRAPHY PAGE ============ */
.credits-head { max-width: 920px; margin: 0 auto; padding: 40px var(--gutter) 0; }
.credits-head .back { font-weight: 700; font-size: .85rem; color: var(--orange); text-decoration: none; }
.credits-head .back:hover { text-decoration: underline; }
.credits-title { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 4vw, 40px); margin-top: 28px; }
.credits-title h1 { color: var(--blue-ink); font-size: clamp(3.4rem, 11vw, 7rem); }
.credits-title img { width: clamp(120px, 26vw, 230px); height: auto; flex: none; }
.credits-tools { padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.credits-tools { display: grid; gap: 16px; margin-top: 32px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--cream-line); border-radius: 6px; padding: 0 14px; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(142,182,220,.35); }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue-ink); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1.05rem var(--f-body); color: var(--ink); padding: .85em 0; }
.credits-page .filters { justify-content: flex-start; margin: 0; }
.az { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 24px 0 0; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.az a { font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--blue-ink); text-decoration: none; padding: 2px 0; }
.az a:hover { color: var(--orange); }
.az a.is-off { opacity: .25; pointer-events: none; }

.credits { max-width: 920px; margin: 0 auto; padding: 8px var(--gutter) 72px; }
.artist { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 28px; padding: 22px 0; border-bottom: 1px solid var(--cream-line); scroll-margin-top: 16px; }
.artist h2 { font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); padding-top: 2px; }
.artist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.artist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; }
.artist li.is-hidden, .artist.is-empty { display: none; }
.c-title { font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: 1.12rem; color: var(--blue-ink); text-decoration: none; }
a.c-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-feat { font-size: .88rem; font-weight: 600; color: var(--ink); opacity: .7; margin-left: .3em; }
.c-meta { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.c-year { display: none; } /* years show in the pop-up only */
.c-year-shown { font-weight: 600; font-size: .92rem; color: var(--ink); }
.c-type { font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); border: 1.5px solid currentColor; padding: 2px 5px 1px; border-radius: 2px; min-width: 4.1em; text-align: center; }
.c-roles { grid-column: 1 / -1; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A7F5A; }
.c-grammy { color: #A67C00; margin-left: .6em; }
.c-title.has-tracks { cursor: pointer; display: inline-flex; align-items: baseline; gap: .35em; }
.c-disc { width: .82em; height: .82em; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.8; transform: translateY(.08em); transition: transform .5s; }
.c-title.has-tracks:hover .c-disc { transform: translateY(.08em) rotate(180deg); }
.no-results { padding: 40px 0; font-weight: 600; color: var(--blue-ink); }
mark { background: #FBE3B8; color: inherit; border-radius: 2px; }

/* ============ PROJECT POP-UP (credits page) ============
   Cover slides in, the record slides out of the sleeve and spins, tracks fade in one by one. */
.proj {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--ink);
  width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); overflow: visible;
}
.proj::backdrop { background: rgba(35,50,74,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.proj[open]::backdrop { animation: proj-fade .3s ease both; }
.proj.is-closing::backdrop { animation: proj-fade .25s ease reverse both; }
.proj-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px);
  background: var(--cream); border-radius: 14px; padding: clamp(24px, 4vw, 40px);
  max-height: calc(100dvh - 48px); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(20,30,48,.6);
}
.proj[open] .proj-card { animation: proj-pop .5s cubic-bezier(.2,.9,.25,1.05) both; }
.proj.is-closing .proj-card { animation: proj-out .25s ease-in both; }
.proj-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.proj-close:hover { background: var(--cream-line); }
.proj-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.proj-grab { display: none; }

.proj-art { position: relative; align-self: start; aspect-ratio: 1; margin-right: 18%; }
.proj-cover {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: 4px;
  box-shadow: 0 18px 30px -16px rgba(20,30,48,.7);
}
.proj[open] .proj-cover { animation: proj-cover .6s .05s cubic-bezier(.2,.8,.2,1) both; }
.proj-vinyl {
  position: absolute; z-index: 1; inset: 3%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255,255,255,.06) 17.5% 18%, transparent 18.5%),
    repeating-radial-gradient(circle, #1a1d24 0 1.6px, #23272f 1.6px 3.2px);
  box-shadow: inset 0 0 0 2px #111, 0 10px 24px -10px rgba(0,0,0,.6);
}
.proj-vinyl::after { /* sheen */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 12%, rgba(255,255,255,.12) 16%, transparent 22% 62%, rgba(255,255,255,.1) 66%, transparent 72%);
}
.proj-label {
  position: absolute; inset: 33%; border-radius: 50%; background: var(--orange) center / cover no-repeat;
  box-shadow: 0 0 0 3px #111;
}
.proj-label::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: var(--cream); }
.proj-vinyl { opacity: 0; }
.proj[open] .proj-vinyl { animation: proj-slide .6s .62s cubic-bezier(.2,.8,.2,1) both, proj-spin 6s 1.22s linear infinite; }
.proj-badge {
  position: absolute; z-index: 3; top: 8px; left: 8px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--gold);
}
.proj-badge img { width: 22px; height: 22px; }
.proj-badge[hidden] { display: none; }

.proj-body { min-width: 0; display: flex; flex-direction: column; overflow: hidden; max-height: calc(100dvh - 48px - 2 * clamp(24px, 4vw, 40px)); }
.proj-kicker { margin: 0 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.proj-body h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--blue-ink); padding-right: 36px; }
.proj-grammy {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 14px 0 0;
  padding: 6px 12px 6px 8px; border-radius: 3px; background: var(--ink); color: #F2D27A;
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.proj-grammy::before { content: ""; width: 18px; height: 18px; flex: none; background: url("assets/grammy.png") center / contain no-repeat; }
.proj-grammy[hidden] { display: none; }
.proj-artist { margin: 8px 0 0; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .86rem; }
.proj-roles { margin-top: 18px; padding: 12px 14px; background: var(--white); border-radius: 6px; border-left: 3px solid var(--orange); }
.proj-roles span { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8A7F5A; }
.proj-roles p { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.proj-tracks { list-style: none; margin: 22px 0 0; border-top: 1px solid var(--cream-line); padding: 0 4px 0 0; overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; }
.proj-tracks li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--cream-line);
}
.proj[open] .proj-tracks li { animation: proj-row .4s calc(.4s + var(--i) * 40ms) ease both; }
.proj-tracks .n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .8rem; color: #A89F7C; }
.proj-tracks a { font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: 1.06rem; color: var(--blue-ink); text-decoration: none; }
.proj-tracks a:hover { text-decoration: underline; text-underline-offset: 3px; }
.proj-tracks .r { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); text-align: right; }
.proj-listen { align-self: flex-start; margin-top: 20px; }

@keyframes proj-fade { from { opacity: 0; } }
@keyframes proj-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes proj-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes proj-cover { from { opacity: 0; transform: translateX(-28px) rotate(-4deg); } }
@keyframes proj-slide { 0% { opacity: 0; transform: translateX(0) rotate(-40deg); } 1% { opacity: 1; transform: translateX(0) rotate(-40deg); } 100% { opacity: 1; transform: translateX(26%) rotate(0deg); } }
@keyframes proj-spin { from { opacity: 1; transform: translateX(26%) rotate(0deg); } to { opacity: 1; transform: translateX(26%) rotate(360deg); } }
@keyframes proj-row { from { opacity: 0; transform: translateY(6px); } }
@keyframes proj-sheet { from { transform: translateY(100%); } }
@keyframes proj-sheet-out { to { transform: translateY(100%); } }

@media (max-width: 680px) {
  .proj { margin: auto 0 0; width: 100vw; max-height: 92dvh; }
  .proj-card {
    grid-template-columns: 1fr; gap: 16px; border-radius: 16px 16px 0 0; max-height: 92dvh;
    padding: 26px max(18px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px));
  }
  .proj[open] .proj-card { animation: proj-sheet .45s cubic-bezier(.2,.85,.25,1) both; }
  .proj.is-closing .proj-card { animation: proj-sheet-out .25s ease-in both; }
  .proj-card.is-dragging { animation: none !important; transition: none; }
  .proj-grab { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #D9D1A8; }
  .proj-art { width: 132px; margin: 0; }
  .proj-body { overflow: visible; max-height: none; }
  .proj-body h2 { font-size: 2rem; }
  .proj-card { overflow-y: auto; overscroll-behavior: contain; }
  .proj-tracks { overflow: visible; }
  .proj-listen { align-self: stretch; justify-content: center; position: sticky; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .proj[open] .proj-card, .proj[open] .proj-cover, .proj[open] .proj-tracks li { animation: none; }
  .proj[open] .proj-vinyl { animation: none; opacity: 1; transform: translateX(26%); }
}

/* ============ PREVIEW SWITCHER (temporary) ============ */
.preview-switch {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: flex; flex-direction: column; gap: 4px; padding: 6px;
  background: var(--ink); color: var(--cream); border-radius: 8px;
  font: 600 .75rem/1 "Figtree", system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.ps-group { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ps-toggle { display: flex; align-items: center; gap: 10px; padding: 6px 8px; cursor: pointer; border: 0; background: none; color: var(--cream); font: inherit; }
.ps-toggle b { font-weight: 600; opacity: .5; transition: opacity .2s; }
.ps-toggle[aria-checked="false"] b:first-of-type, .ps-toggle[aria-checked="true"] b:last-of-type { opacity: 1; }
.ps-track { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #4A5876; transition: background .2s; flex: none; }
.ps-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); transition: transform .2s; }
.ps-toggle[aria-checked="true"] .ps-track { background: var(--orange); }
.ps-toggle[aria-checked="true"] .ps-track::after { transform: translateX(18px); }
.preview-switch span { padding: 0 8px; opacity: .7; min-width: 64px; }
.preview-switch button { font: inherit; border: 0; cursor: pointer; border-radius: 5px; padding: 8px 11px; background: transparent; color: var(--cream); }
.preview-switch button.on { background: var(--orange); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr !important; min-height: 0; text-align: center; }
  .hero-photo { aspect-ratio: 4 / 4.2; max-height: 72vh; width: 100%; }
  .hero-text { padding: 32px var(--gutter) 48px; }
  .swoosh { margin-left: auto; margin-right: auto; }
  .hero-nav { justify-content: center; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .artist { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .tile-info { padding: 8px; }
  .tile-listen { display: none; }
  .tile.is-revealed .tile-listen { display: block; }
  .preview-switch { left: 12px; right: 12px; }
  .preview-switch span { min-width: 0; }
  .preview-switch button { padding: 7px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { flex-wrap: wrap; justify-content: center; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: .5rem; }
  .marquee-track[aria-hidden] { display: none; }
  .tile.is-new { animation: none; }
}
