:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #263779;
  --surface: #ffffff;
  --line: rgba(255, 255, 255, 0.16);
  --stage: #263779;
  --stage-soft: #31488f;
  --accent: #c01422;
  --accent-dark: #8f0f1a;
  --teal: #1f7a72;
  --soft-white: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 42px rgba(7, 12, 31, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #ffffff;
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(31, 122, 114, 0.38);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  background: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(9, 16, 39, 0.22);
}

.funding-strip {
  background: #ffffff;
  border-top: 1px solid #d7dbe3;
}

.funding-strip img {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 8px 18px;
}

.topbar {
  width: min(100% - 24px, 1280px);
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--stage);
  font-size: 0.78rem;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.lang-button {
  min-width: 44px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 720;
}

.lang-button.is-active {
  color: var(--ink);
  background: #ffffff;
}

main {
  display: grid;
  gap: clamp(34px, 5vw, 68px);
}

.experience {
  width: min(100% - 24px, 1280px);
  margin: 26px auto 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.15;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--soft-white);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
}

.studio {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 840px) minmax(180px, 220px);
  gap: 14px;
  align-items: stretch;
}

.performer-rail,
.player-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--stage);
  box-shadow: var(--shadow);
}

.performer-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
}

.rail-heading {
  min-height: 0;
  color: #ffffff;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.performer-card {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  touch-action: manipulation;
}

.performer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.performer-card.is-selected,
.performer-card[style*="192, 20, 34"],
.performer-card[style*="#C01422"] {
  border-color: rgba(255, 255, 255, 0.52);
  background: var(--accent);
}

.performer-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.performer-name {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.15;
}

.player-panel {
  display: grid;
  grid-template-rows: minmax(430px, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
}

.video-shell {
  display: grid;
  align-items: center;
  padding: clamp(12px, 1.6vw, 20px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    var(--stage-soft);
}

.videos-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: #070b12;
}

.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #070b12;
}

.transport {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: #ffffff;
  background: var(--accent);
}

.control-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.piece-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.piece-control .control-label {
  grid-column: 1 / -1;
}

.piece-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  text-align: left;
  font-size: 0.82rem;
  font-weight: 680;
}

.piece-button:hover,
.piece-button.is-selected {
  color: var(--accent);
  border-color: #ffffff;
  background: #ffffff;
}

.play-control {
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 150px;
}

.play-frame {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

#startVideo {
  width: 34px;
  height: 39px;
  padding: 0;
}

.play-hint {
  max-width: 180px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
}

.play-hint.is-ready {
  color: #ffffff;
}

.quality-control {
  justify-self: end;
  min-width: 92px;
}

#srcQ {
  width: 79px;
  height: 33px;
  padding: 0;
}

.project-section,
.artists-section {
  width: min(100% - 24px, 1180px);
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.intro-copy p:not(.eyebrow),
.project-copy p {
  color: var(--soft-white);
  font-size: 1.04rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-item {
  min-height: 128px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.stat-item strong {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
}

.project-copy {
  max-width: 880px;
  margin-top: 28px;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.artist-card {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 18px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.artist-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.artist-card h3 {
  margin-top: 10px;
  color: var(--ink);
}

.artist-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #ffffff;
  background: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
}

.footer-inner {
  width: min(100% - 24px, 1180px);
  margin: 0 auto;
  padding: 22px 0;
}

.footer-inner p {
  margin: 0;
}

.mobile-message {
  width: min(100% - 32px, 760px);
  min-height: calc(100vh - 230px);
  margin: 72px auto;
  display: grid;
  place-items: center;
}

.mobile-message section {
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.mobile-message h1,
.mobile-message p:not(.eyebrow) {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .performer-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-heading {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .player-panel {
    grid-row: 1;
  }

  .transport {
    grid-template-columns: 1fr;
  }

  .piece-control {
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }

  .play-control {
    justify-self: center;
  }

  .quality-control {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .topbar {
    width: min(100% - 20px, 1280px);
    min-height: 58px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand span:last-child {
    display: inline;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .language-switch {
    flex: 0 0 auto;
  }

  .lang-button {
    min-width: 40px;
    min-height: 32px;
  }

  .experience {
    width: min(100% - 20px, 1280px);
    margin-top: 20px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  h2 {
    font-size: 1.35rem;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .studio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "piano cello"
      "player player";
    gap: 12px;
  }

  .performer-rail:first-child {
    grid-area: piano;
  }

  .player-panel {
    grid-area: player;
    grid-template-rows: auto auto;
  }

  .performer-rail:last-child {
    grid-area: cello;
  }

  .performer-rail {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .rail-heading {
    min-height: 0;
  }

  .performer-card {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    min-height: 70px;
    gap: 8px;
    padding: 8px;
  }

  .performer-card:hover {
    transform: none;
  }

  .performer-card img {
    width: 52px;
    height: 52px;
  }

  .performer-name {
    min-height: 0;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    line-height: 1.12;
  }

  .video-shell {
    padding: 8px;
  }

  .videos-container {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
  }

  .transport {
    gap: 12px;
    padding: 12px;
  }

  .piece-control {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .piece-button {
    min-height: 42px;
    font-size: 0.86rem;
  }

  .play-frame {
    width: 64px;
    height: 64px;
  }

  .play-control {
    justify-items: center;
    min-width: 0;
  }

  .play-hint {
    max-width: 260px;
  }

  .quality-control {
    justify-self: stretch;
  }

  .content-grid,
  .stat-grid,
  .artist-grid,
  .artist-card {
    grid-template-columns: 1fr;
  }

  .project-section,
  .artists-section {
    width: min(100% - 20px, 1180px);
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-item {
    min-height: 96px;
  }

  .artist-card {
    gap: 12px;
    padding: 12px;
  }

  .artist-card img {
    max-width: 180px;
  }

  .footer-inner {
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .funding-strip img {
    padding: 8px 10px;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 126px;
  }

  .piece-button {
    font-size: 0.82rem;
  }

  .performer-rail {
    padding: 8px;
  }

  .role-tag {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .performer-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 62px;
    gap: 7px;
    padding: 7px;
  }

  .performer-card img {
    width: 44px;
    height: 44px;
  }

  .performer-name {
    font-size: 0.74rem;
  }

  .artist-card img {
    max-width: 150px;
  }
}
