/* ============================================================
   Gabriele Bulfon — pianist & composer
   Concept: a transmission. A bold human voice (Clash Display)
   broadcast into a cold cosmos (mono telemetry). Palette and atmosphere
   drawn from the album artwork: deep blue-black, a gold sunrise,
   starlight blue.
   ============================================================ */

:root {
  --void:      #060911;
  --ink:       #0b1120;
  --ink-2:     #10182b;
  --line:      rgba(232, 238, 252, 0.10);
  --line-warm: rgba(232, 178, 92, 0.28);

  --star:      #e8eefc;   /* primary text */
  --muted:     #9aa6c2;
  --faint:     #59647f;

  --gold:      #e8b25c;   /* sunrise flare — primary accent */
  --gold-soft: #f3cd8c;
  --signal:    #7fb8ff;   /* starlight blue — secondary */

  --max:    1200px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Clash Display', system-ui, 'Segoe UI', sans-serif;
  --sans:   'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:   'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.62;
  color: var(--star);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layered atmosphere beneath the starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 760px at 50% 116%, rgba(232, 178, 92, 0.18), transparent 60%),
    radial-gradient(900px 620px at 84% -6%, rgba(127, 184, 255, 0.10), transparent 58%),
    linear-gradient(180deg, #060911 0%, #080d18 50%, #060911 100%);
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
}
.nav.is-scrolled {
  background: rgba(6, 9, 17, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--star); }
.nav__cta {
  color: var(--gold) !important;
  border: 1px solid var(--line-warm);
  padding: 9px 16px;
  border-radius: 2px;
}
.nav__cta:hover { background: rgba(232, 178, 92, 0.08); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 1.5px; background: var(--star);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: var(--hero-h, 100svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 28px 90px;
  overflow: hidden;
}
/* faded photo of Gabriele at the piano, behind everything in the hero */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('img/intro-bg.jpg') center 32% / cover no-repeat;
  opacity: 0.22;
  /* fade in at the top (clear the nav) and out at the bottom (blend into page) */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 64%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 64%, transparent 100%);
  pointer-events: none;
}

/* the horizon of light — sunrise over a planet's edge */
.hero__glow {
  z-index: 1;
  position: absolute;
  left: 50%;
  bottom: -52%;
  width: 150%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(243, 205, 140, 0.5), rgba(232, 178, 92, 0.16) 46%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  animation: glowRise 2.4s var(--ease) both;
}
.hero__glow::after {  /* thin bright rim of the horizon */
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 205, 140, 0.75), transparent);
}
@keyframes glowRise {
  from { opacity: 0; transform: translateX(-50%) translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__eyebrow { animation: rise 0.9s var(--ease) 0.15s both; }
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
  color: #f6f8ff;
  text-shadow: 0 0 60px rgba(127, 184, 255, 0.12);
  animation: rise 1s var(--ease) 0.28s both;
}
.hero__lead {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
  animation: rise 1s var(--ease) 0.42s both;
}
.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 1s var(--ease) 0.56s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.btn {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1206;
  font-weight: 700;
}
.btn--solid:hover { box-shadow: 0 14px 34px -14px rgba(232, 178, 92, 0.7); }
.btn--ghost { border: 1px solid var(--line); color: var(--star); }
.btn--ghost:hover { border-color: var(--gold); }

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  animation: nudge 2.2s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 130px 28px;
}
.section__head { margin-bottom: 64px; }
.section__head .eyebrow { display: block; margin-bottom: 16px; }
.section__lead {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.section__lead strong { color: var(--star); font-weight: 400; }

/* The band project reads as a distinct block */
.section--project { border-top: 1px solid var(--line); }

/* ---------- Records (alternating editorial rows) ---------- */
.records { display: flex; flex-direction: column; gap: 120px; }

.record {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.record:nth-child(even) .record__media { order: 2; }

.record__media { position: relative; }
.record__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  /* per-record glow set inline via --glow */
  box-shadow: 0 40px 90px -40px var(--glow, rgba(0,0,0,0.8)),
              0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: box-shadow 0.5s var(--ease);
  display: block;
}

/* Cover doubles as the play button */
.record__cover-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
}
.record__cover-btn[hidden] { display: none; }
.record__cover-btn::after {           /* dim veil so the play icon reads */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(circle at center, rgba(6, 9, 17, 0.10), rgba(6, 9, 17, 0.5));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.record__cover-btn:hover::after,
.record__cover-btn:focus-visible::after { opacity: 1; }
.record__cover-btn:hover .record__cover { box-shadow: 0 54px 120px -44px var(--glow, rgba(0,0,0,0.8)); }
.record__cover-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.record__playicon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;                  /* optically centre the triangle */
  font-size: 1.05rem;
  color: #14110a;
  background: rgba(243, 205, 140, 0.92);
  box-shadow: 0 10px 34px -8px rgba(0, 0, 0, 0.65);
  opacity: 0.9;
  transition: transform 0.3s var(--ease), background 0.3s, opacity 0.3s;
}
.record__cover-btn:hover .record__playicon,
.record__cover-btn:focus-visible .record__playicon {
  transform: translate(-50%, -50%) scale(1.09);
  background: var(--gold-soft);
  opacity: 1;
}
.record__artist {
  margin-top: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.record__format {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--signal);
}
.record__format::before {
  content: "";
  width: 26px; height: 1px; background: var(--signal); opacity: 0.7;
}
.record__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 18px 0 4px;
}
.record__sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.005em;
  color: var(--gold-soft);
  margin-bottom: 20px;
}
.record__desc { color: var(--muted); font-size: 1.02rem; max-width: 46ch; }
.record__credits {
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.88rem;
  line-height: 1.7;
}
.record__credits strong { color: var(--muted); font-weight: 400; }
.record__guests { display: block; margin-top: 8px; }
.record__notes {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.record__notes p {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 4px 16px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--faint);
}
.record__notes span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;       /* nudge the small label to align with the text */
}
@media (max-width: 560px) {
  .record__notes p { grid-template-columns: 1fr; gap: 2px; }
  .record__notes span { padding-top: 0; }
}

.record__actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.record__link {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}
.record__link:hover { color: var(--gold); border-color: var(--gold); }
.record__photos {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.record__photos:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vmin;
  background: rgba(4, 6, 11, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lbFade 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
}
.lightbox__img {
  max-width: min(1100px, 88vw);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
.lightbox__cap {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.lightbox__count {
  position: absolute;
  bottom: 4vmin;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6, 9, 17, 0.6);
  color: var(--star);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.lightbox__btn:hover { background: rgba(6, 9, 17, 0.92); border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: 3.5vmin; right: 3.5vmin; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 3.5vmin; }
.lightbox__next { right: 3.5vmin; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 560px) {
  .lightbox__btn { width: 42px; height: 42px; font-size: 1.2rem; }
  .lightbox__prev { left: 2vmin; }
  .lightbox__next { right: 2vmin; }
  .lightbox__img { max-height: 68vh; }
}
.record__note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Player opens in place of the cover, in the same column */
.record__player {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 90px -40px var(--glow, rgba(0, 0, 0, 0.8));
}
.record__player[hidden] { display: none; }
.record__frame iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}
.record__close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6, 9, 17, 0.72);
  backdrop-filter: blur(6px);
  color: var(--star);
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.record__close:hover { background: rgba(6, 9, 17, 0.92); border-color: var(--gold); transform: scale(1.06); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.about__lead .eyebrow { display: block; margin-bottom: 16px; }
.about__body p { color: var(--muted); font-size: 1.08rem; }
.about__body p + p { margin-top: 20px; }
.about__facts {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.about__facts dt {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--star);
  line-height: 1;
}
.about__facts dd {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Contact ---------- */
.section--contact { text-align: center; }
.contact { max-width: 680px; margin: 0 auto; }
.contact .eyebrow { display: block; margin-bottom: 16px; }
.contact__lead { margin-top: 18px; color: var(--muted); }
.contact__mail {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid var(--line-warm);
  padding-bottom: 6px;
  transition: border-color 0.3s;
}
.contact__mail:hover { border-color: var(--gold); }
.social {
  list-style: none;
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.social a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 11px 20px;
  border-radius: 2px;
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 44px 28px;
}
.footer .eyebrow { color: var(--faint); display: block; margin-bottom: 12px; }
.footer p:last-child { color: var(--faint); font-size: 0.82rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .record { grid-template-columns: 1fr; gap: 30px; }
  .record:nth-child(even) .record__media { order: 0; }
  .record__media { max-width: 460px; }
  .about { grid-template-columns: 1fr; gap: 32px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 330px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 0 40px;
    background: rgba(7, 10, 19, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 0.92rem; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 520px) {
  .section { padding: 90px 22px; }
  .records { gap: 88px; }
  .about__facts { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .hero__glow, .hero__eyebrow, .hero__title, .hero__lead, .hero__actions, .hero__scroll {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
