/* Starabanda — static one-pager styles */

:root {
  --bg-deep: #0a0c10;
  --bg-elevated: #12151c;
  --bg-card: #161a24;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --accent-glow: rgba(201, 162, 39, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fragment target for #top (not on fixed header — scroll works reliably) */
.page-top-anchor {
  display: block;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(80, 120, 180, 0.06), transparent);
  z-index: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(10, 12, 16, 0.92), rgba(10, 12, 16, 0.65) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
}

/* Logo left, main nav centered in viewport, language switcher flush right */
.site-header__drawer {
  display: contents;
}

.logo {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.site-nav {
  grid-column: 2;
  justify-self: center;
}

.lang-switch {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo__wordmark {
  display: block;
  width: auto;
  max-width: min(42vw, 200px);
  max-height: 36px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.logo:hover .brand-wordmark,
.logo:focus-visible .brand-wordmark {
  opacity: 0.92;
  filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.4)) brightness(1.06);
}

/* Shared PNG wordmark (header + hero) */
.brand-wordmark {
  filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.4));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switch__item {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

a.lang-switch__item:hover,
a.lang-switch__item:focus-visible {
  color: var(--accent);
}

.lang-switch__item--current {
  color: var(--accent);
  cursor: default;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

@media (max-width: 768px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo,
  .site-nav,
  .lang-switch {
    grid-column: auto;
    justify-self: auto;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 110;
    flex-shrink: 0;
  }

  /* Solid header while menu is open — gradient was blending with the hero behind the icon */
  body.nav-open .site-header {
    background: var(--bg-deep);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 var(--border);
  }

  body.nav-open .nav-toggle {
    background: rgba(255, 255, 255, 0.1);
  }

  .site-header__drawer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    background: var(--bg-deep);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    visibility: hidden;
  }

  .site-header__drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .lang-switch {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .site-nav a {
    font-size: 1.125rem;
  }

  .lang-switch__item {
    font-size: 1.125rem;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 5rem;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-deep);
  background-image: linear-gradient(
      to bottom,
      rgba(10, 12, 16, 0.55) 0%,
      rgba(10, 12, 16, 0.82) 45%,
      rgba(10, 12, 16, 0.94) 100%
    ),
    url("../images/starabanda-bg-opt.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (max-width: 600px) {
  .hero__bg {
    background-position: center 20%;
  }
}

.hero__content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-weight: 400;
  line-height: 0;
  animation: fade-up 0.9s var(--ease-out) both;
}

/* Slightly below native width (318px) to reduce soft scaling on high-DPI screens */
.hero__wordmark {
  display: block;
  width: min(75vw, 272px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero__lead {
  margin: 0 auto 2.5rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  animation: fade-up 0.9s 0.1s var(--ease-out) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fade-up 0.9s 0.2s var(--ease-out) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Sections */

.section {
  position: relative;
  padding: 5rem 1.5rem;
  z-index: 1;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 640px;
}

.section__header {
  margin-bottom: 3rem;
  text-align: center;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.section__subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section--about {
  background: linear-gradient(to bottom, transparent, rgba(18, 21, 28, 0.5));
}

.about-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.about-tamburizza {
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-card--wide {
    grid-column: 1 / -1;
  }
}

.about-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.about-card__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
}

.about-card p + p {
  margin-top: 1rem;
}

.about-card strong {
  color: var(--text);
  font-weight: 600;
}

.about-photo {
  margin: 0 auto 2.5rem;
  padding: 0;
  max-width: 532px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.about-photo__img {
  display: block;
  width: 100%;
  height: auto;
}

.about-photo__caption {
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Music */

.section--music {
  padding-top: 3rem;
}

.music-repertoire {
  margin-bottom: 2.5rem;
}

.music-panel {
  display: grid;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.music-panel__cover {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.music-panel__cover-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.music-panel__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 800px) {
  .music-panel {
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: start;
  }

  .music-panel__cover {
    justify-content: flex-start;
  }
}

.music-panel__album {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.music-panel__meta {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.music-panel__main p {
  margin: 0;
  color: var(--text-muted);
}

/* Beats `.music-panel__main p { margin: 0 }` so spacing above "Audio preview" is visible */
.music-panel__main p.music-panel__audio-label {
  margin: 2.5rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.music-panel__player {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
  accent-color: var(--accent);
}

.music-panel__tracklist-title {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.music-panel__tracklist {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.music-panel__tracklist li {
  padding-left: 0.35rem;
  margin-bottom: 0.35rem;
}

.music-panel__tracklist li:last-child {
  margin-bottom: 0;
}

/* TV / media highlight */

.section--media {
  background: linear-gradient(to bottom, rgba(18, 21, 28, 0.35), transparent);
}

.media-card {
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.media-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.media-card p + p {
  margin-top: 1rem;
}

.media-card strong {
  color: var(--text);
  font-weight: 600;
}

.media-card__figure {
  margin: 1.25rem 0 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.media-card__img {
  display: block;
  width: 100%;
  max-width: 659px;
  height: auto;
  margin: 0 auto;
}

.media-card__note {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.95;
}

.media-card__figure + .media-card__note {
  margin-top: 1.25rem;
}

/* Ensemble */

.member-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  /* Source portraits are 255×255 px; wider cards upscale and look soft */
  grid-template-columns: repeat(auto-fill, minmax(200px, 255px));
  justify-content: center;
}

.member-card {
  width: 100%;
  max-width: 255px;
  justify-self: center;
  padding: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.2);
}

.member-card__photo {
  display: block;
  width: 100%;
  max-width: 255px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-elevated);
}

.member-card__name {
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.25rem 0.25rem;
}

.member-card__role {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Contact */

.section--contact {
  padding-bottom: 6rem;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 36rem;
  margin: 0 auto;
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-block__lead {
  margin: 0 0 1.5rem;
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

.contact-phone {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.contact-phone__prefix {
  font-weight: 500;
  color: var(--text-muted);
}

.contact-phone a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-phone a:hover,
.contact-phone a:focus-visible {
  color: var(--accent);
}

.contact-phone__name {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  opacity: 0.9;
}

/* Footer */

.site-footer {
  position: relative;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  z-index: 1;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.8;
}
