:root {
  color-scheme: light;
  --ink: #183129;
  --forest: #0f4636;
  --plum: #4c2a4f;
  --gold: #d6a84f;
  --blue: #d7edf2;
  --paper: #fbfcf8;
  --muted: #68746f;
  --line: #d7ded6;
  --panel: #ffffff;
  --shadow: 0 22px 70px rgba(15, 70, 54, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background:
    linear-gradient(to bottom, transparent 0 18px, rgba(15, 70, 54, 0.08) 18px 19px, transparent 19px 28px),
    var(--paper);
  background-size: 100% 112px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.score-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clef {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--forest);
  color: var(--gold);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 24px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.score-nav {
  display: flex;
  justify-content: end;
  gap: 18px;
}

.score-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.score-nav a:hover,
.score-nav a.active {
  color: var(--forest);
}

.score-nav a:hover::after,
.score-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-score {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 83px);
  padding: 44px 0;
}

.hero-copy {
  padding: clamp(16px, 2vw, 22px) 0;
}

.tempo {
  margin: 0 0 12px;
  color: var(--plum);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 24px;
}

p,
li,
span {
  line-height: 1.72;
}

p,
li {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.hero-copy p {
  max-width: 640px;
  font-size: 18px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--forest);
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-weight: 950;
  cursor: pointer;
}

.button.gold {
  background: var(--gold);
  color: #241b06;
  border-color: var(--gold);
}

.button.line {
  background: transparent;
  color: var(--forest);
}

.hero-stack {
  position: relative;
  min-height: 580px;
}

.wide-photo,
.tall-photo,
.faculty-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.wide-photo {
  height: 360px;
  border-radius: 8px;
}

.tall-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 47%;
  height: 330px;
  border: 8px solid var(--paper);
  border-radius: 8px;
}

.lesson-note {
  position: absolute;
  left: 18px;
  bottom: 42px;
  width: 270px;
  padding: 20px;
  background: var(--forest);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lesson-note strong,
.lesson-note span {
  display: block;
}

.lesson-note span {
  margin-top: 6px;
  color: #d9efe8;
}

.measure-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.measure-strip div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.measure-strip div:last-child {
  border-right: 0;
}

.measure-strip strong {
  display: block;
  color: var(--forest);
  font-size: 34px;
}

.measure-strip span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.lesson-paths,
.instrument-preview,
.capability-suite,
.inner-lead,
.instrument-tabs,
.lesson-grid,
.faq-block,
.faculty-story,
.teaching-values,
.faculty-cards,
.trust-score,
.recital-gallery,
.recital-info,
.start-layout,
.contact-form-grid {
  margin: clamp(56px, 8vw, 102px) 0;
}

.lesson-paths {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.lesson-paths article,
.suite-grid article,
.lesson-grid article,
.teaching-values article,
.faculty-cards article,
.lesson-matcher,
.lesson-form,
.upgrade-panel,
.studio-contact {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 70, 54, 0.08);
}

.lesson-paths article,
.suite-grid article,
.lesson-grid article,
.teaching-values article,
.lesson-matcher,
.lesson-form,
.upgrade-panel,
.studio-contact {
  padding: 24px;
}

.lesson-paths span,
.teaching-values span {
  display: block;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}

.instrument-preview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.instrument-preview a {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.instrument-preview img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.instrument-preview a:hover img {
  transform: scale(1.04);
}

.instrument-preview span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  background: rgba(15, 70, 54, 0.88);
  color: #ffffff;
  border-radius: 6px;
  font-size: 28px;
}

.capability-suite {
  padding: clamp(24px, 5vw, 48px);
  background: var(--blue);
  border-radius: 8px;
}

.suite-grid,
.lesson-grid > div,
.faculty-cards > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.inner-lead {
  padding-top: 34px;
  border-bottom: 1px solid var(--line);
}

.inner-lead p {
  max-width: 760px;
  font-size: 18px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--forest);
  border-radius: 3px;
  background: #ffffff;
  color: var(--forest);
  font-family: Arial, sans-serif;
  font-weight: 950;
  cursor: pointer;
}

.tab-button.active {
  background: var(--forest);
  color: #ffffff;
}

.tab-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
}

.faq-question {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  font-family: Arial, sans-serif;
  font-weight: 950;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 18px 8px;
}

.faq-question.open + .faq-answer {
  display: block;
}

.faculty-story,
.start-layout,
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.faculty-story img {
  height: 510px;
  border-radius: 8px;
}

.teaching-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.faculty-cards article {
  overflow: hidden;
}

.faculty-cards img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.faculty-cards h3,
.faculty-cards p {
  padding-inline: 18px;
}

.faculty-cards h3 {
  margin-top: 18px;
}

.faculty-cards p {
  padding-bottom: 18px;
}

.trust-score {
  padding: clamp(24px, 5vw, 44px);
  background: var(--forest);
  border-radius: 8px;
}

.trust-score h2,
.trust-score .tempo {
  color: #ffffff;
}

.trust-score p {
  max-width: 820px;
  color: #d9efe8;
}

.recital-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 245px;
  gap: 12px;
}

.recital-photo {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.recital-photo.tall {
  grid-row: span 2;
}

.recital-photo.wide {
  grid-column: span 2;
}

.recital-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-matcher,
.lesson-form {
  display: grid;
  gap: 14px;
}

.studio-contact {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}

.studio-contact strong,
.studio-contact span {
  display: block;
}

label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, sans-serif;
}

textarea {
  resize: vertical;
}

.match-output {
  padding: 18px;
  background: var(--plum);
  color: #ffffff;
  border-radius: 8px;
  font-size: 26px;
  line-height: 1.15;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--forest);
  font-weight: 950;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 70, 54, 0.88);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(980px, 94vw);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox p {
  color: #ffffff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  color: #241b06;
  font-family: Arial, sans-serif;
  font-weight: 950;
  cursor: pointer;
}

.score-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--forest);
  color: #ffffff;
}

.score-footer span {
  color: #d9efe8;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .score-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    justify-self: end;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--forest);
    border-radius: 4px;
    background: #ffffff;
    color: var(--forest);
    font-family: Arial, sans-serif;
    font-weight: 950;
  }

  .score-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .score-header.nav-open .score-nav {
    display: flex;
  }

  .hero-score,
  .lesson-paths,
  .tab-panel,
  .faculty-story,
  .start-layout,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .suite-grid,
  .lesson-grid > div,
  .faculty-cards > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stack {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 24px, 1160px);
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .measure-strip,
  .instrument-preview,
  .suite-grid,
  .lesson-grid > div,
  .teaching-values,
  .faculty-cards > div {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: auto;
  }

  .wide-photo,
  .tall-photo {
    position: static;
    width: 100%;
    height: auto;
    min-height: 260px;
    border: 0;
    margin-bottom: 12px;
  }

  .lesson-note {
    position: static;
    width: auto;
  }

  .recital-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .recital-photo.tall,
  .recital-photo.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .score-footer {
    flex-direction: column;
  }
}

.gallery-return {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--forest);
  color: var(--gold);
  box-shadow: 0 16px 36px rgba(15, 70, 54, 0.24);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gallery-return:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(15, 70, 54, 0.3);
}

@media (max-width: 520px) {
  .gallery-return {
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }
}
