/* ===== Billy White Music — redesign ===== */
:root {
  --bg: #0e0d0b;
  --bg-2: #16140f;
  --panel: #1c1a14;
  --ink: #f3efe6;
  --muted: #a39c8c;
  --line: #2c2920;
  --gold: #c9a25b;
  --gold-soft: #e0c790;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 3rem);
  background: rgba(14,13,11,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  letter-spacing: .18em; color: var(--ink);
}
.brand:hover { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: .5rem 1rem; border-radius: 2px;
}
.nav-cta:hover { background: var(--gold); color: var(--bg) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201,162,91,.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 70%);
}
.eyebrow {
  color: var(--gold); letter-spacing: .42em; text-transform: uppercase;
  font-size: .72rem; margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(3.5rem, 13vw, 9rem);
  letter-spacing: .02em;
  background: linear-gradient(180deg, #fff, #cfc7b4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { color: var(--muted); font-size: clamp(.9rem, 2.4vw, 1.15rem); letter-spacing: .22em; text-transform: uppercase; margin-top: 1.2rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block; padding: .85rem 1.8rem; border-radius: 2px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  transition: transform .15s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-soft); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 1.4rem; animation: bob 2s infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) clamp(1.2rem, 5vw, 2rem); }
.section-split { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 3rem; }
.section-num { color: var(--gold); font-size: .8rem; letter-spacing: .3em; }
.section-head h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-top: .4rem; }
.section-sub { color: var(--muted); margin-top: .6rem; }
.lead { font-size: 1.25rem; color: var(--ink); margin-bottom: 1.2rem; font-family: var(--serif); }
.muted-note { color: var(--gold); opacity: .65; font-size: .82rem; font-style: italic; margin-top: 1rem; }

/* ===== Music ===== */
.music-embed { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.music-embed iframe { display: block; }
.music-link { margin-top: 1.4rem; color: var(--muted); }
.video-embed { margin-top: 2rem; }
.video-label { color: var(--gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .7rem; }
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.compositions { margin-top: 3rem; }
.compositions-title { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-soft); margin-bottom: .2rem; }
.compositions-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.3rem; }
.compositions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.composition figcaption { margin-top: .6rem; display: flex; flex-direction: column; gap: .15rem; }
.composition .comp-title { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-style: normal; }
.composition .comp-title em { color: var(--muted); font-size: .9rem; }
.composition .comp-meta { color: var(--gold); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 780px) { .compositions-grid { grid-template-columns: 1fr; } }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.about-media img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--line); }
.pullquote { margin-top: 1.4rem; padding-left: 1.1rem; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--gold-soft); line-height: 1.4; }
.pullquote cite { display: block; margin-top: .6rem; font-size: .78rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.about-copy .lead { color: var(--ink); }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-facts dt { color: var(--gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.about-facts dd { color: var(--ink); margin-top: .15rem; }
.about-facts em { font-style: italic; }
.review { max-width: 760px; margin: 0 auto 2.5rem; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic; line-height: 1.35; color: var(--ink); text-align: center; }
.review cite { display: block; margin-top: 1rem; font-family: var(--sans); font-size: .8rem; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 2rem 1.8rem; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card h3 { font-size: 1.7rem; color: var(--gold-soft); margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .credits { list-style: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.card .credits li { color: var(--ink); font-size: .9rem; line-height: 1.35; }
.card .credits li .credit-role { display: block; color: var(--gold); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .1rem; }
.card .credits li em { color: var(--muted); font-style: italic; }

/* ===== Shows ===== */
.shows { list-style: none; }
.show {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.show-date { color: var(--gold); letter-spacing: .1em; font-size: .9rem; }
.show-venue { font-family: var(--serif); font-size: 1.4rem; }
.show-city { color: var(--muted); font-size: .9rem; }

/* ===== Press ===== */
.press-links { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.press-link { font-family: var(--serif); font-size: 1.5rem; }

/* ===== Contact ===== */
.section-contact { text-align: center; border-top: 1px solid var(--line); }
.contact-inner .btn { margin: 1rem 0; }
.socials { margin-top: 1.5rem; display: flex; gap: 1.5rem; justify-content: center; }
.socials a { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.socials a:hover { color: var(--gold); }

/* ===== Footer ===== */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem clamp(1.2rem, 5vw, 2rem); border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 380px; }
  .nav-links a { padding: 1rem clamp(1.2rem,5vw,3rem); border-top: 1px solid var(--line); }
  .nav-cta { border: 0; color: var(--gold) !important; }
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  .show { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* ===== Interactive piano keyboard (hero) ===== */
.hero { gap: clamp(1.4rem, 4vw, 2.4rem); }
.keyboard-wrap {
  perspective: 1100px;
  width: min(1000px, 94vw);
  margin-top: .4rem;
}
.keyboard {
  position: relative;
  display: flex;
  height: clamp(150px, 26vw, 240px);
  padding: 12px 8px 0;
  transform: rotateX(26deg);
  transform-style: preserve-3d;
  transform-origin: center 78%;
  border-radius: 6px 6px 12px 12px;
  background: linear-gradient(#241f17, #0c0a07);
  box-shadow: 0 34px 70px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.06);
  touch-action: none;
  user-select: none;
}
.key { font: inherit; padding: 0; cursor: pointer; outline: none; appearance: none; }

/* White (natural) keys */
.key.white {
  position: relative;
  flex: 1 1 0;
  margin: 0 1px;
  border: 1px solid #b9b2a0;
  border-top: none;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #fbf7ec 0%, #f1ead8 70%, #e6ddc6 100%);
  box-shadow: inset 0 -10px 14px rgba(120,105,75,.18), inset 0 2px 0 #fff;
  transform-origin: center top;
  transition: transform .05s ease, filter .05s ease, box-shadow .05s ease;
}
/* weathered, uneven ivory */
.key.white:nth-child(3n) { filter: brightness(.985) sepia(.06); }
.key.white:nth-child(4n) { filter: brightness(.97) sepia(.1); }
.key.white::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(150,130,90,.05) 0 2px, transparent 2px 7px);
  opacity: .5;
}
.key.white.hover { filter: brightness(1.03); }
.key.white.pressed {
  transform: rotateX(7deg);
  filter: brightness(.9);
  box-shadow: inset 0 -6px 12px rgba(90,75,45,.32);
}

/* Black (sharp) keys */
.key.black {
  position: absolute; top: 0; z-index: 3;
  height: 62%;
  border-radius: 0 0 4px 4px;
  border: 1px solid #000;
  background: linear-gradient(180deg, #3a352c 0%, #14110c 70%, #000 100%);
  box-shadow: 0 6px 8px rgba(0,0,0,.5), inset 0 -6px 6px rgba(255,255,255,.06);
  transform-origin: center top;
  transition: transform .05s ease, filter .05s ease;
}
.key.black.hover { filter: brightness(1.5); }
.key.black.pressed { transform: rotateX(8deg); filter: brightness(.8); }

/* Bonus keys: gold letter + dot */
.key.white.bonus { box-shadow: inset 0 -10px 14px rgba(160,120,40,.25), inset 0 2px 0 #fff; }
.key.white.bonus::before {
  content: ''; position: absolute; left: 50%; bottom: 30px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--gold); opacity: .55;
}
.key-letter {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 600; font-size: clamp(.8rem, 1.6vw, 1.05rem);
  color: var(--gold); opacity: .85; pointer-events: none;
}
/* Facet word printed vertically on the bonus keys (topic → bottom qualifier) */
.key-facet-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg);
  width: auto; max-width: 96%; text-align: center; pointer-events: none;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(.5rem, 1vw, .8rem); line-height: 1.1; letter-spacing: .02em;
  color: #4a3f23; white-space: nowrap;
}
.key-facet-sub {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(.42rem, .8vw, .6rem); letter-spacing: .04em;
  text-transform: uppercase; color: #6b6147; pointer-events: none;
}
.kb-hint { color: var(--muted); font-size: .85rem; letter-spacing: .06em; }
.kb-hint span { color: var(--gold); }

/* Flash a section when a facet key jumps to it */
.flash-target { animation: flashTarget 1.5s ease; }
@keyframes flashTarget {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,91,0);  outline-color: rgba(201,162,91,0); }
  18%  { box-shadow: 0 0 0 4px rgba(201,162,91,.7); outline: 2px solid rgba(201,162,91,.9); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,91,0);  outline-color: rgba(201,162,91,0); }
}

/* ===== Bonus section ===== */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.bonus-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 1.8rem 1.6rem; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bonus-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.bonus-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 1rem;
  border: 1px solid var(--gold); color: var(--gold); border-radius: 4px;
  font-family: var(--serif); font-size: 1.2rem;
}
.bonus-card h3 { font-size: 1.4rem; color: var(--gold-soft); margin-bottom: .5rem; }
.bonus-card p { color: var(--muted); font-size: .92rem; }
.bonus-card.flash { animation: flashCard 1.3s ease; }
@keyframes flashCard {
  0% { box-shadow: 0 0 0 0 rgba(201,162,91,0); }
  15% { box-shadow: 0 0 0 3px rgba(201,162,91,.7); border-color: var(--gold); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,91,0); }
}

@media (max-width: 760px) {
  .keyboard { height: clamp(120px, 34vw, 180px); }
  .key-letter { font-size: .7rem; bottom: 5px; }
}

/* ===== Album feature (Music) ===== */
.album { display: flex; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
.album-cover { width: 240px; max-width: 42%; border-radius: 6px; border: 1px solid var(--line); display: block; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.album-label { color: var(--gold); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.album-title { font-size: 2rem; margin: .2rem 0; }
.album-meta { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.album-info p { color: var(--muted); }

/* ===== Live photo (Shows) ===== */
.shows-photo { width: 100%; max-height: 440px; object-fit: cover; object-position: center 35%; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 2rem; display: block; }

@media (max-width: 760px) {
  .album { flex-direction: column; align-items: flex-start; }
  .album-cover { max-width: 70%; }
}
