/* ============================================================
   Sofia Gold — site theme
   Palette: stage black, warm ivory, muted gold
   ============================================================ */

:root {
  --bg: #0d0b09;
  --bg-rgb: 13, 11, 9;
  --grad: linear-gradient(160deg, #0d0b09 0%, #171008 55%, #0d0b09 100%);
  --bg-2: rgba(255, 255, 255, .035);
  --ivory: #ece5d8;
  --muted: #a2947f;
  --faint: #6f6355;
  --gold: #c6a15b;
  --gold-soft: color-mix(in srgb, var(--gold) 35%, transparent);
  --rule-strong: color-mix(in srgb, var(--gold) 17%, transparent);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

html { background: var(--bg); }

body {
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* fixed full-viewport gradient behind the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--grad);
}

img { max-width: 100%; display: block; }
a { color: var(--ivory); text-decoration: none; }
p a, .contact-card a { border-bottom: 1px solid var(--gold-soft); transition: border-color .25s, color .25s; }
p a:hover, .contact-card a:hover { color: var(--gold); border-color: var(--gold); }

::selection { background: var(--gold); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- navigation ---------- */

#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 34px;
  transition: background .4s, padding .4s, box-shadow .4s;
}
#nav.scrolled {
  background: rgba(var(--bg-rgb), .92);
  backdrop-filter: blur(12px);
  padding: 12px 34px;
  box-shadow: 0 1px 0 var(--rule-strong);
}
.brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ivory);
}
#menu { display: flex; gap: 34px; list-style: none; }
#menu a {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); transition: color .25s; padding: 6px 0;
}
#menu a:hover { color: var(--gold); }

#burger { display: none; background: none; border: 0; width: 40px; height: 34px; cursor: pointer; position: relative; z-index: 60; }
#burger span {
  display: block; height: 1px; background: var(--ivory); margin: 8px 6px;
  transition: transform .3s, opacity .3s;
}
#burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
#burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 68% 30%;
  filter: saturate(.92);
  /* photo (and its overlay) dissolve at the bottom, revealing the page
     gradient behind — a seamless hand-off into the next section */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),.96) 0%, rgba(var(--bg-rgb),.75) 34%, rgba(var(--bg-rgb),.15) 62%, rgba(var(--bg-rgb),.35) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb),.45) 0%, rgba(var(--bg-rgb),0) 30%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 34px 60px; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.hero-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4rem, 11vw, 8.6rem);
  line-height: .95; letter-spacing: .02em;
}
.hero-tagline {
  margin-top: 28px;
  font-size: clamp(.78rem, 1.6vw, .95rem);
  letter-spacing: .5em; text-transform: uppercase; color: var(--gold);
}
.hero-actions { margin-top: 54px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 34px;
  border: 1px solid var(--gold-soft);
  font-family: var(--sans); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ivory); background: transparent; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn-solid { border-color: var(--gold); color: var(--gold); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent);
  animation: drift 2.6s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: .35; } }

/* ---------- sections ---------- */

.section { padding: 130px 0 30px; }
.section:last-of-type { padding-bottom: 110px; }

.label {
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05;
  margin-bottom: 48px;
}
h3 {
  font-family: var(--sans); font-weight: 400; font-size: .78rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- biography ---------- */

.bio-grid { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 70px; align-items: start; }
.bio-photo { position: relative; }
.bio-photo img { width: 100%; height: auto; }
.bio-photo::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-soft); z-index: -1;
}
.bio-text p + p { margin-top: 1.2em; }
.bio-text em { font-style: italic; }
#bio-full { margin-top: 1.2em; }
#bio-toggle { margin-top: 38px; }

/* ---------- media ---------- */

.gallery { columns: 3 300px; column-gap: 18px; }
.gallery figure {
  break-inside: avoid; margin: 0 0 18px; position: relative;
  overflow: hidden; cursor: zoom-in; background: var(--bg-2);
}
.gallery img { width: 100%; transition: transform .8s ease, opacity .4s; }
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(var(--bg-rgb),.88));
  font-size: .78rem; letter-spacing: .06em; color: var(--ivory);
  opacity: 0; transition: opacity .4s;
}
.gallery figure:hover figcaption { opacity: 1; }

.gallery figure.extra { display: none; }
.gallery.expanded figure.extra { display: block; }
.gallery-more { text-align: center; margin-top: 36px; }

.media-sub { margin-top: 70px; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.videos:has(> :only-child) { grid-template-columns: minmax(320px, 720px); }
.video { position: relative; aspect-ratio: 16/9; background: var(--bg-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { margin-top: 10px; font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.audio-list { display: grid; gap: 14px; }
.audio-list audio { width: 100%; }

/* ---------- repertoire ---------- */

.rep-intro { color: var(--muted); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; margin: -20px 0 34px; }
.signature { list-style: none; margin-bottom: 90px; }
.signature li {
  border-top: 1px solid var(--rule-strong);
  padding: 20px 0; display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap;
}
.signature li:last-child { border-bottom: 1px solid var(--rule-strong); }
.signature .role {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500; line-height: 1.1; min-width: 220px;
}
.signature .opera { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.signature .composer { margin-left: auto; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.rep-columns { display: grid; grid-template-columns: 3fr 2fr; gap: 80px; }
.replist { list-style: none; }
.replist li {
  padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
}
.replist .composer { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); flex: 0 0 168px; }
.replist .opera { font-family: var(--serif); font-style: italic; font-size: 1.08rem; }
.replist .role { margin-left: auto; color: var(--gold); font-size: .88rem; letter-spacing: .04em; text-align: right; }

/* ---------- schedule ---------- */

.schedule { list-style: none; }
.schedule li {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 10px 40px;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.09); align-items: baseline;
}
.schedule li:last-child { border-bottom: 1px solid rgba(255,255,255,.09); }
.schedule .date { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.schedule .what { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
.schedule .what em { font-style: italic; font-weight: 400; }
.schedule .details { grid-column: 2; color: var(--faint); font-size: .86rem; letter-spacing: .04em; }
.schedule .where { text-align: right; color: var(--muted); font-size: .9rem; max-width: 260px; }

.schedule.past .what { font-size: 1.18rem; }
.schedule.past li { padding: 16px 0; opacity: .78; }

.schedule-heading { margin-top: 70px; }
.schedule-note { margin-top: 40px; color: var(--faint); font-size: .86rem; }
.schedule-note a { color: var(--muted); }

/* ---------- press ---------- */

.press-list { max-width: 820px; }
.press-quote { margin-bottom: 70px; }
.press-quote blockquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400; font-style: italic; line-height: 1.4;
}
.press-quote blockquote::before { content: "“"; color: var(--gold); margin-right: .1em; }
.press-quote blockquote::after { content: "”"; color: var(--gold); margin-left: .05em; }
.press-quote cite {
  display: block; margin-top: 20px; font-style: normal;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.press-quote cite::before { content: "— "; color: var(--gold); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card { background: var(--bg-2); border: 1px solid var(--rule-strong); padding: 44px 46px; }
.contact-card p { margin-bottom: 8px; color: var(--muted); }
.contact-card a { color: var(--ivory); }
.contact-strong { color: var(--ivory) !important; font-size: 1.05rem; }
.socials { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; }
.socials a { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid transparent; }
.socials a:hover { border-color: var(--gold); }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--rule-strong); margin-top: 40px; padding: 60px 24px 70px; text-align: center; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .2em; text-transform: uppercase; }
.footer-copy { margin-top: 12px; font-size: .74rem; letter-spacing: .14em; color: var(--faint); }

/* ---------- lightbox ---------- */

#lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(var(--bg-rgb), .96);
  display: flex; align-items: center; justify-content: center;
}
#lightbox[hidden] { display: none; }
#lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; object-fit: contain; }
#lightbox figcaption {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-size: .82rem; letter-spacing: .1em; color: var(--muted);
}
#lightbox button {
  position: absolute; background: none; border: 0; color: var(--ivory);
  font-size: 2.4rem; cursor: pointer; padding: 18px; line-height: 1;
  opacity: .6; transition: opacity .25s; font-family: var(--serif);
}
#lightbox button:hover { opacity: 1; }
.lb-close { top: 16px; right: 22px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .bio-grid { grid-template-columns: 1fr; gap: 50px; }
  .bio-photo { max-width: 420px; }
  .rep-columns { grid-template-columns: 1fr; gap: 60px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  #nav { padding: 16px 20px; }
  #nav.scrolled { padding: 12px 20px; }
  #burger { display: block; }
  #menu {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(var(--bg-rgb), .97); backdrop-filter: blur(14px);
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  #menu.open { opacity: 1; pointer-events: auto; }
  #menu a { font-size: .92rem; }
  .hero-bg { background-position: 62% 24%; }
  .hero-inner { padding: 110px 22px 90px; }
  .hero-actions .btn { padding: 12px 22px; }
  .section { padding: 90px 0 20px; }
  /* gallery becomes a horizontal swipe strip on phones */
  .gallery {
    columns: auto; display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px; padding: 0 24px 14px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure {
    flex: 0 0 76%; margin: 0; scroll-snap-align: center;
  }
  .gallery figure img { height: 400px; width: 100%; object-fit: cover; }
  /* the strip scrolls, so all photos ride in it — no expand button */
  .gallery figure.extra { display: block; flex: 0 0 76%; }
  .gallery-more { display: none; }
  .signature .composer { margin-left: 0; }
  .replist .composer { flex-basis: 100%; }
  .replist .role { margin-left: 0; text-align: left; flex-basis: 100%; color: var(--gold); }
  .schedule li { grid-template-columns: 1fr; gap: 6px; }
  .schedule .where { text-align: left; max-width: none; }
  .schedule .details { grid-column: 1; }
  .contact-card { padding: 34px 26px; }
}
