/* ==========================================================================
   Miss Betsy · Music Lessons
   ========================================================================== */

:root {
  --cream: #fbf7ef;
  --cream-deep: #f4ecdd;
  --paper: #fffdf8;
  --ink: #1f2a44;
  --ink-soft: #3b4661;
  --muted: #5f6781;
  --line: rgba(31, 42, 68, 0.12);

  --walnut: #7a3e21;
  --walnut-deep: #5b2b14;
  --walnut-soft: #f3e3d8;
  --teal: #2a7f7c;
  --teal-soft: #dcefec;
  --coral: #b9514b;
  --coral-soft: #fbe4e1;
  --gold: #e2b155;
  --gold-deep: #94650f;
  --gold-soft: #f7ebcf;
  --navy: #1f2a44;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 5vw, 40px);
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 68, 0.05), 0 8px 24px -14px rgba(31, 42, 68, 0.22);
  --shadow-lg: 0 2px 6px rgba(31, 42, 68, 0.06), 0 30px 60px -28px rgba(31, 42, 68, 0.45);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

p,
figure,
address {
  margin: 0;
}

address {
  font-style: normal;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  z-index: 100;
  top: -80px;
  left: 16px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 380px) {
  .hide-xs {
    display: none;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.86);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(31, 42, 68, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--walnut);
  color: var(--cream);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--walnut);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current]::after {
  transform: scaleX(1);
}

@media (max-width: 959px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--walnut);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(122, 62, 33, 0.9);
}

.btn-primary:hover {
  background: var(--walnut-deep);
  box-shadow: 0 16px 30px -14px rgba(122, 62, 33, 0.9);
}

.btn-ghost {
  border-color: rgba(31, 42, 68, 0.22);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.98rem;
}

.btn-small svg {
  width: 18px;
  height: 18px;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 140px);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.contact h2 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
}

.section-head > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}

.eyebrow::before,
.section-head--center .eyebrow::after {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head--center .eyebrow {
  margin-inline: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 84px) 0 clamp(130px, 15vw, 200px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(56px, 7vw, 80px);
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.hero h1 {
  font-weight: 400;
}

.h1-lead {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
}

.name {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin-top: 0.06em;
  font-size: clamp(3.6rem, 8.2vw, 7rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--walnut);
  white-space: nowrap;
}

.swoosh {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: -0.16em;
  width: 100%;
  height: auto;
  overflow: visible;
}

.swoosh path {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 1;
}

.swoosh path:first-child {
  stroke-width: 4.5;
}

.swoosh path:last-child {
  stroke-width: 3;
  opacity: 0.7;
}

.lede {
  max-width: 33rem;
  margin-top: 26px;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

@media (max-width: 520px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 540px;
}

.photo-frame {
  position: relative;
  padding: 12px 12px 0;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(0) rotate(1.6deg);
  transition: transform 0.6s var(--ease);
}

.hero-photo:hover .photo-frame {
  transform: translateY(-4px) rotate(0.4deg);
}

.photo-clip {
  overflow: hidden;
  border-radius: 4px;
  clip-path: inset(0 0 0 0);
}

.photo-clip img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-frame figcaption {
  padding: 12px 8px 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  color: var(--muted);
}

.photo-tape {
  position: absolute;
  z-index: 2;
  top: -16px;
  left: 50%;
  width: 120px;
  height: 32px;
  margin-left: -60px;
  border: 1px solid rgba(148, 101, 15, 0.12);
  background: rgba(226, 177, 85, 0.4);
  box-shadow: 0 2px 6px -2px rgba(31, 42, 68, 0.2);
  transform: rotate(-4deg);
}

.badge {
  position: absolute;
  z-index: 3;
  left: clamp(-28px, -2.4vw, -10px);
  bottom: -26px;
  display: grid;
  place-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 30px -14px rgba(31, 42, 68, 0.6), inset 0 0 0 5px rgba(255, 255, 255, 0.14);
  transform: scale(1) rotate(-10deg);
}

.badge strong {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 0.9;
}

.badge span {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .badge {
    bottom: -20px;
    width: 96px;
    height: 96px;
  }

  .badge strong {
    font-size: 2.2rem;
  }

  .badge span {
    font-size: 0.6rem;
  }
}

.hero-staff {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(170px, 18vw, 250px);
  pointer-events: none;
}

.staff-line {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.14;
  stroke-width: 1.4;
  stroke-dasharray: 1;
}

.staff-notes {
  color: var(--walnut);
  opacity: 0.4;
}

.staff-notes .note {
  transform-box: fill-box;
  transform-origin: center;
}

/* ---------- About ---------- */

.section.about {
  padding-top: clamp(48px, 6vw, 80px);
}

.about-grid {
  display: grid;
  gap: 8px 72px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.about h2 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.letter {
  max-width: 40rem;
}

.letter p {
  font-size: 1.2rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.letter p + p {
  margin-top: 20px;
}

.letter .letter-lead {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
}

.letter .signoff {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-style: italic;
  color: var(--walnut);
}

.signoff::before {
  content: "";
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- Lessons ---------- */

.lessons {
  background: var(--cream-deep);
}

.instrument-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.instrument {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.instrument:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.instrument-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  border-radius: 22px;
  background: var(--tone-soft);
  color: var(--tone);
  transition: transform 0.5s var(--ease);
}

.instrument:hover .instrument-icon {
  transform: rotate(-6deg) scale(1.06);
}

.instrument-icon svg {
  width: 46px;
  height: 46px;
}

.instrument h3 {
  font-size: 1.7rem;
}

.instrument p {
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.lessons-note {
  margin-top: 44px;
  font-size: 1.15rem;
  text-align: center;
  color: var(--ink-soft);
}

.lessons-note a {
  font-weight: 700;
  color: var(--walnut);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Ages & keyboard ---------- */

.ages {
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, #2d3b60 0%, transparent 70%), var(--navy);
  color: var(--cream);
}

.ages .eyebrow {
  color: var(--gold);
}

.ages h2 {
  color: #fff;
}

.ages h2 em {
  font-style: italic;
  color: var(--gold);
}

.ages .section-head {
  margin-bottom: 0;
}

.ages .section-head > p:not(.eyebrow) {
  color: rgba(251, 247, 239, 0.8);
}

.piano {
  --case-x: clamp(8px, 1.3vw, 16px);
  margin-top: clamp(40px, 6vw, 64px);
}

html:not(.js) .piano {
  display: none;
}

.piano-case {
  padding: clamp(10px, 1.5vw, 18px) var(--case-x) var(--case-x);
  border-radius: clamp(8px, 1.1vw, 14px);
  background: linear-gradient(180deg, #8d4c2b 0%, #6c3519 55%, #4f2310 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.keyboard {
  position: relative;
  display: flex;
  height: clamp(78px, 11vw, 150px);
  border-top: 3px solid #8e2424;
  border-radius: 0 0 4px 4px;
  background: #0c111d;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.key {
  position: relative;
  cursor: pointer;
}

.key::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.key--white {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #e6dfd0 0%, #fffdf8 14%, #f6f0e4 100%);
  box-shadow: inset -1px 0 0 rgba(12, 17, 29, 0.35), inset 0 -5px 0 rgba(12, 17, 29, 0.08);
}

.key--white::after {
  background: linear-gradient(180deg, rgba(226, 177, 85, 0.15), rgba(226, 177, 85, 0.95));
}

/* Black keys sit on the seams between white keys; --x is the seam index. */
.key--black {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc((var(--x) - 0.31) * 100% / 52);
  width: calc(0.62 * 100% / 52);
  height: 62%;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, #0b0d13 0%, #272c3b 82%, #3b4255 92%, #10131b 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
}

.key--black::after {
  background: linear-gradient(180deg, rgba(95, 196, 189, 0.2), rgba(95, 196, 189, 0.95));
}

.key.is-down::after {
  opacity: 0.8;
  transition: none;
}

.age-range {
  position: relative;
  height: 56px;
  margin: 14px var(--case-x) 0;
}

/* Key 5 sits on seam 3, so the range starts at 3/52 of the keyboard. */
.age-range-bar {
  position: absolute;
  top: 6px;
  left: calc(3 * 100% / 52);
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform-origin: left center;
}

.age-range-bar::before,
.age-range-bar::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--gold);
}

.age-range-bar::before {
  left: 0;
}

.age-range-bar::after {
  right: 0;
}

.age-range-label {
  position: absolute;
  top: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
}

.age-range-label--start {
  left: calc(3 * 100% / 52);
}

.age-range-label--end {
  right: 0;
}

.piano-hint {
  display: none;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  color: rgba(251, 247, 239, 0.72);
}

.piano.can-play .piano-hint {
  display: block;
}

/* ---------- Experience ---------- */

.experience-top {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .experience-top {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

.big-stat {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.big-stat-number {
  font-family: var(--font-display);
  font-size: clamp(7rem, 17vw, 11.5rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--walnut);
  font-variant-numeric: tabular-nums;
}

.big-stat-label {
  padding-bottom: 0.3em;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stat-note {
  max-width: 26rem;
  margin-top: 26px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.list-label {
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.setting {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.setting-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}

.setting-icon svg {
  width: 24px;
  height: 24px;
}

.credentials {
  display: grid;
  gap: 20px;
  margin-top: clamp(44px, 6vw, 64px);
}

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

.card {
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.card-kicker {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}

.card h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.85rem);
  line-height: 1.2;
}

.ticks {
  margin-top: 18px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.ticks li + li {
  margin-top: 8px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border: 2.5px solid var(--teal);
  border-radius: 50%;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chips li {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream-deep);
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Rates ---------- */

.rates {
  background: var(--cream-deep);
}

.rates-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 24px 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.rate:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.clock {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.clock-face {
  fill: var(--cream);
  stroke: rgba(31, 42, 68, 0.1);
  stroke-width: 7;
}

/* --len is the share of an hour, out of 100 (pathLength). */
.clock-arc {
  fill: none;
  stroke: var(--teal);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: var(--len) 200;
}

.clock-hand {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 40px 40px;
  transform: rotate(var(--turn));
}

.clock-pin {
  fill: var(--ink);
}

.rate-length {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.rate-price {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--walnut);
}

.rate-per {
  margin-top: 8px;
  color: var(--muted);
}

.rates-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1.5px dashed rgba(122, 62, 33, 0.3);
  border-radius: 20px;
}

.rates-foot p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.rates-foot p svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--walnut);
}

/* ---------- Contact ---------- */

.contact-panel {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .contact-panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }
}

.contact-main > p:not(.eyebrow) {
  max-width: 32rem;
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.phone-big {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--walnut);
  text-decoration: none;
}

.phone-big:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 520px) {
  .contact-actions .btn {
    flex: 1 1 100%;
  }
}

.studio-card {
  padding: clamp(26px, 3vw, 36px);
  border-radius: 24px;
  background: var(--teal-soft);
}

.studio-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.studio-icon svg {
  width: 26px;
  height: 26px;
}

.studio-card address {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  line-height: 1.3;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
  font-weight: 700;
  color: #1f625f;
  text-decoration: none;
}

.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--navy);
  color: rgba(251, 247, 239, 0.78);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  background: var(--gold);
  color: var(--navy);
}

.site-footer .brand-sub {
  color: rgba(251, 247, 239, 0.6);
}

.footer-meta {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-phone {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.footer-phone:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 247, 239, 0.14);
  font-size: 0.95rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   Scroll reveals
   Elements marked [data-reveal] stay hidden until script.js adds .is-visible
   as they scroll into view. Without JavaScript, everything simply shows.
   ========================================================================== */

.js [data-reveal]:not(.is-visible) {
  opacity: 0;
}

.js [data-reveal].is-visible {
  animation: reveal-up 1s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 110ms + var(--delay, 0ms));
}

.js [data-reveal="fade"].is-visible {
  animation-name: reveal-fade;
}

.js [data-reveal="zoom"].is-visible {
  animation-name: reveal-zoom;
}

/* Full-width bands open from the middle instead of fading. */
.js [data-reveal="band"]:not(.is-visible) {
  opacity: 1;
}

.reveal-ready [data-reveal="band"]:not(.is-visible) {
  clip-path: inset(0 4% round 48px);
}

.js [data-reveal="band"].is-visible {
  animation: band-open 1.2s var(--ease) backwards;
}

/* If the script never runs, show everything after a moment. */
.js:not(.reveal-ready) [data-reveal]:not(.is-visible) {
  animation: reveal-failsafe 0s 3s forwards;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
  }
}

@keyframes reveal-zoom {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.95);
  }
}

@keyframes band-open {
  from {
    clip-path: inset(0 4% round 48px);
  }
  to {
    clip-path: inset(0 0% round 0px);
  }
}

@keyframes reveal-failsafe {
  to {
    opacity: 1;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

/* Hero: the photo unveils, then the badge pops on */
.hero-photo.is-visible .photo-frame {
  animation: frame-in 1.2s var(--ease) 0.15s backwards;
}

.hero-photo.is-visible .photo-clip {
  animation: unveil 1.4s var(--ease) 0.35s backwards;
}

.hero-photo.is-visible .photo-clip img {
  animation: settle 1.8s var(--ease) 0.35s backwards;
}

.hero-photo.is-visible .photo-tape {
  animation: reveal-fade 0.6s ease 1s backwards;
}

.hero-photo.is-visible .badge {
  animation: badge-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s backwards;
}

.is-visible .swoosh path:first-child {
  animation: draw 1s var(--ease) 0.75s backwards;
}

.is-visible .swoosh path:last-child {
  animation: draw 0.8s var(--ease) 1.1s backwards;
}

.hero-staff.is-visible .staff-line {
  animation: draw 2.6s var(--ease) backwards;
  animation-delay: calc(var(--l) * 0.1s + 0.3s);
}

.hero-staff.is-visible .note {
  animation: note-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--n) * 0.12s + 1.2s);
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: translateY(48px) rotate(-3deg);
  }
}

@keyframes unveil {
  from {
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes settle {
  from {
    transform: scale(1.18);
  }
}

@keyframes badge-pop {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-40deg);
  }
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.6);
  }
}

/* Keyboard: a glissando runs up from key 5 to key 88 as the range bar grows */
.piano.is-visible .key:not(.key--rest)::after {
  animation: key-glint 0.6s ease-out backwards;
  animation-delay: calc(var(--n) * 14ms + 250ms);
}

.piano.is-visible .age-range-bar {
  animation: grow-x 1.17s linear 0.32s backwards;
}

.piano.is-visible .age-range-label--start {
  animation: reveal-fade 0.6s ease 0.3s backwards;
}

.piano.is-visible .age-range-label--end {
  animation: reveal-fade 0.6s ease 1.45s backwards;
}

@keyframes key-glint {
  30% {
    opacity: 0.9;
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}

/* Rates: each clock fills in its share of the hour */
.rate.is-visible .clock-arc,
.rate.is-visible .clock-hand {
  animation-duration: calc(var(--len) * 20ms);
  animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1);
  animation-delay: calc(var(--i, 0) * 110ms + 400ms);
  animation-fill-mode: backwards;
}

.rate.is-visible .clock-arc {
  animation-name: arc-draw;
}

.rate.is-visible .clock-hand {
  animation-name: hand-turn;
}

@keyframes arc-draw {
  from {
    stroke-dashoffset: var(--len);
  }
}

@keyframes hand-turn {
  from {
    transform: rotate(0deg);
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
