/* ──────────────────────────────────────────────────────────────────────────
   sampler.css — the "hear it now" player

   The whole site asks people to go and listen somewhere else before they
   have heard a second of it. This is the one component that lets them
   judge the thing on the page they are already on.
   ────────────────────────────────────────────────────────────────────────── */

.hear { position: relative; overflow: hidden;
  padding: clamp(3.4rem,7vw,5.6rem) 0;
  background: var(--night);
  color: var(--ivory); }
.hear::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(212,135,78,.42), transparent 70%),
    radial-gradient(660px 420px at 92% 100%, rgba(212,135,78,.26), transparent 70%); }
.hear-in { position: relative; max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(1.2rem,4vw,2.4rem); }

.hear-head { max-width: 54ch; margin: 0 0 clamp(1.8rem,3.5vw,2.6rem); }
.hear-head .eyebrow { color: var(--gold-light); }
.hear-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(2rem,4.4vw,3.1rem); line-height: 1.07; letter-spacing: -.02em;
  margin: .5rem 0 .7rem; color: var(--ivory); }
.hear-head h2 em { font-style: italic; color: var(--gold-light); }
.hear-head p { font-size: clamp(.98rem,1.4vw,1.08rem); line-height: 1.62;
  color: rgba(243,241,236,0.78); margin: 0; }

/* ── the tabs ─────────────────────────────────────────────────────────── */
.hear-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.hear-tab { font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 500;
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: rgba(5,15,16,.07); color: rgba(243,241,236,0.78);
  border: 1px solid rgba(30,59,61,.16);
  transition: background .35s, color .35s, border-color .35s, transform .35s; }
.hear-tab:hover { background: rgba(5,15,16,.13); color: var(--ivory); }
.hear-tab[aria-selected="true"] { background: var(--gold); color: var(--on-copper);
  border-color: var(--gold); font-weight: 600; transform: translateY(-1px); }
.hear-tab:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ── the deck ─────────────────────────────────────────────────────────── */
.hear-deck { display: grid; gap: clamp(1.2rem,3vw,2.2rem);
  grid-template-columns: minmax(0,1fr) minmax(0,320px); align-items: center;
  background: rgba(5,15,16,.05); border: 1px solid rgba(30,59,61,.13);
  border-radius: 20px; padding: clamp(1.3rem,3vw,2rem); }
@media (max-width: 880px) { .hear-deck { grid-template-columns: 1fr; } }

.hear-now { min-width: 0; }
.hear-book { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem,2.6vw,1.95rem);
  font-weight: 600; line-height: 1.15; margin: 0 0 .2rem; color: var(--ivory); }
.hear-ep { font-family: 'DM Sans', sans-serif; font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold-light); margin: 0 0 .9rem; }
.hear-blurb { font-size: .92rem; line-height: 1.6; color: rgba(243,241,236,0.78);
  margin: 0 0 1.2rem; max-width: 48ch; }

/* ── transport ────────────────────────────────────────────────────────── */
.hear-row { display: flex; align-items: center; gap: 1rem; }
.hear-play { flex: none; width: 60px; height: 60px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--gold); color: var(--on-copper);
  display: grid; place-items: center; position: relative;
  transition: transform .4s cubic-bezier(.22,1.5,.4,1), background .3s; }
.hear-play:hover { transform: scale(1.07); background: var(--gold-light); }
.hear-play:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.hear-play svg { width: 21px; height: 21px; fill: currentColor;
  transform: translateX(2px); }            /* optical centring of the triangle */
.hear-play[data-on] svg { transform: none; }
/* a ring that breathes out of the button while it is playing, so the page
   shows at a glance that sound is coming from it */
.hear-play[data-on]::after { content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--gold);
  animation: hear-pulse 1.9s ease-out infinite; }
@keyframes hear-pulse {
  0%   { transform: scale(.92); opacity: .75; }
  100% { transform: scale(1.35); opacity: 0; }
}

.hear-wave { flex: 1; min-width: 0; height: 56px; display: block;
  cursor: pointer; border-radius: 6px; }
.hear-time { flex: none; font-family: 'DM Sans', sans-serif; font-size: .78rem;
  font-variant-numeric: tabular-nums; color: rgba(243,241,236,0.78);
  white-space: nowrap; }

.hear-foot { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; align-items: center;
  margin-top: 1.1rem; font-size: .8rem; color: rgba(243,241,236,0.78); }
.hear-foot a { color: var(--gold-light); font-weight: 500; }

/* ── cover ────────────────────────────────────────────────────────────── */
.hear-art { position: relative; aspect-ratio: 1; border-radius: 16px;
  overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,.5); }
.hear-art img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .55s ease, transform .9s cubic-bezier(.22,1,.3,1); }
.hear-art[data-swap] img { opacity: 0; transform: scale(1.05); }
@media (max-width: 880px) { .hear-art { max-width: 240px; } }

@media (prefers-reduced-motion: reduce) {
  .hear-play[data-on]::after { animation: none; }
  .hear-play:hover { transform: none; }
  .hear-art img { transition: none; }
}
