/* Westside Music Academy. The practice room: walnut, brass, cream keys. */
:root {
  --walnut: #4A2B1C;
  --walnut-deep: #2F1B11;
  --cream: #F6EDDF;
  --cream-shade: #EADCC4;
  --brass: #C69A3C;
  --brass-tint: #E9CF93;
  --rosin: #8C3B2E;
  --ink: #3A2116;
  --line: rgba(74, 43, 28, .34);
  --photo-w: 32vw;
  --keys-w: 64px;
  --gut: clamp(20px, 4vw, 64px);
  --head-h: 92px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='720' height='720'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.0022 0.07' numOctaves='4' seed='11'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.05  0 0 0 0 0.02  0 0 0 0.34 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  --staves: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='74'><g fill='%234A2B1C' fill-opacity='.05'><rect y='0' width='10' height='1'/><rect y='8' width='10' height='1'/><rect y='16' width='10' height='1'/><rect y='24' width='10' height='1'/><rect y='32' width='10' height='1'/></g></svg>");
  --brass-light: #D9B25C;
  --paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.29  0 0 0 0 0.17  0 0 0 0 0.11  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--walnut);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'Alegreya', serif; font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--rosin); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--brass); color: var(--walnut-deep); padding: 12px 18px; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.nb { white-space: nowrap; }

/* Buttons: flat fills, no glow */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 4px;
  font-family: 'Alegreya', serif; font-weight: 700; font-size: 20px; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn-brass { background: var(--brass); color: var(--walnut-deep); }
.btn-brass:hover { background: #D6AD52; }
.btn:active { transform: translateY(2px); }
.btn-brass:active { background: #B88D33; }
.btn-walnut { background: var(--walnut); color: var(--cream); }
.btn-walnut:hover { background: var(--walnut-deep); }
.btn-line { background: transparent; color: var(--walnut); border: 2px solid var(--walnut); }
.btn-line:hover { background: rgba(74, 43, 28, .08); }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid var(--brass-light); }
.btn-ghost:hover { background: rgba(217, 178, 92, .14); }
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* Header */
.site-head {
  position: absolute; z-index: 30; top: 0;
  left: calc(var(--photo-w) + var(--keys-w)); right: 0;
  height: var(--head-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gut) 0 clamp(28px, 3.6vw, 56px);
  color: var(--cream);
}
.mark { display: inline-flex; align-items: center; color: var(--cream); text-decoration: none; min-height: 48px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--cream); text-decoration: none; font-family: 'Alegreya', serif; font-weight: 700; font-size: 19px; padding: 0 10px; min-height: 48px; display: inline-flex; align-items: center; border-radius: 4px; }
.nav a:hover { background: rgba(246, 237, 223, .1); }
.head-cta { min-height: 48px; padding: 0 18px; font-size: 18px; white-space: nowrap; }
.burger { display: none; }
.menu[hidden] { display: none; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: var(--photo-w) var(--keys-w) minmax(0, 1fr);
  min-height: max(100vh, 860px);
  background-color: var(--walnut);
  background-image: radial-gradient(ellipse 70% 55% at 88% 6%, rgba(233, 207, 147, .2), transparent 70%), radial-gradient(ellipse 60% 70% at 30% 110%, rgba(20, 8, 2, .55), transparent 70%), var(--grain);
  color: var(--cream);
  overflow: hidden;
}
.hero-photo { margin: 0; position: relative; overflow: hidden; background: var(--walnut-deep); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 30%; filter: sepia(.2) saturate(.9) contrast(1.06) brightness(.93); transform: scale(1.32); transform-origin: 40% 76%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 60% at 0% 0%, rgba(120, 72, 34, .42), transparent 70%), linear-gradient(90deg, rgba(47, 27, 17, .05) 60%, rgba(47, 27, 17, .45)), linear-gradient(0deg, rgba(47, 27, 17, .35), transparent 30%); mix-blend-mode: multiply; pointer-events: none; }

/* The keyboard band: the signature. Vertical on the seam at desktop. */
.keys {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--walnut-deep);
  padding: 0;
  box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .6);
}
.keys i {
  position: relative; display: block; flex: 0 0 auto;
  height: 34px; width: 100%;
  margin-bottom: 2px;
  background: linear-gradient(90deg, #E6D8BF 0%, #FBF5EA 22%, #F6EDDF 85%, #E2D1B3 100%);
  border-radius: 0 3px 3px 0;
}
.keys i.b::after {
  content: ''; position: absolute; z-index: 2;
  left: 0; top: 23px; width: 58%; height: 22px;
  background: linear-gradient(90deg, #1E110A, #3A2216 70%, #24150D);
  border-radius: 0 3px 3px 0;
  box-shadow: 2px 1px 2px rgba(0, 0, 0, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .hero .keys i { animation: press .42s cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(.35s + (34 - var(--i)) * 34ms); }
  .hero .keys i.b::after { animation: pressb .42s cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(.35s + (34 - var(--i)) * 34ms + 17ms); }
}
@keyframes press {
  0%, 100% { background: linear-gradient(90deg, #E6D8BF 0%, #FBF5EA 22%, #F6EDDF 85%, #E2D1B3 100%); transform: none; }
  35% { background: linear-gradient(90deg, #C9A35A 0%, #E9CF93 30%, #E3C27C 85%, #C69A3C 100%); transform: translateX(-3px); }
}
@keyframes pressb {
  0%, 100% { transform: none; }
  35% { transform: translateX(-4px); }
}

.hero-main { padding: calc(var(--head-h) + 2px) var(--gut) 34px clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hero-copy h1 {
  grid-column: 1; grid-row: 1;
  font-weight: 800; font-size: clamp(56px, 6.1vw, 90px); line-height: .93; letter-spacing: -.018em;
  color: var(--cream);
}
.hero-copy h1 .l { display: block; }
.hero-side { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.free { font-family: 'Alegreya', serif; font-weight: 700; font-size: 29px; line-height: 1.1; color: var(--brass-light); white-space: nowrap; }
.hero-note { font-size: 18px; line-height: 1.45; color: #EFE2CC; }
.hero-note a { color: var(--cream); font-weight: 700; white-space: nowrap; }
.hero-cta { display: none; }

/* The Lesson Finder: the system module */
/* Printed on manuscript paper: faint five-line staves under everything */
.finder {
  position: relative;
  background-color: var(--cream);
  background-image: var(--staves), var(--paper);
  background-size: 100% 74px, auto;
  background-position: 0 58px, 0 0;
  color: var(--ink);
  border-radius: 4px;
  padding: 16px 22px 18px;
  box-shadow: 0 40px 70px -40px rgba(10, 4, 1, .9);
  max-width: 860px;
}
.finder-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; border-bottom: 1.5px solid var(--line); }
.finder-title { font-size: 26px; line-height: 1; padding-bottom: 13px; color: var(--walnut); }
.tabs { display: flex; gap: 2px; }
.tabs [role="tab"] {
  position: relative; background: none; border: 0; cursor: pointer;
  min-height: 46px; padding: 0 12px;
  font-family: 'Alegreya', serif; font-weight: 700; font-size: 20px; color: #6B4A36;
}
.tabs [role="tab"]::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: -1.5px; height: 4px; border-radius: 2px 2px 0 0; background: transparent; transition: background-color .2s; }
.tabs [role="tab"][aria-selected="true"] { color: var(--walnut); }
.tabs [role="tab"][aria-selected="true"]::after { background: var(--brass); }
.tabs [role="tab"]:hover { color: var(--rosin); }

.finder-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 22px; padding: 14px 0 12px; align-items: center; }
.pick-row { display: contents; }
.pick-label { font-size: 17px; font-weight: 700; color: var(--walnut); }
.ages { display: inline-flex; gap: 3px; width: max-content; padding: 3px; border: 1.5px solid rgba(74, 43, 28, .45); border-radius: 6px; background: #FFFBF4; }
.ages [role="radio"] {
  min-height: 44px; padding: 0 18px; cursor: pointer;
  background: transparent; border: 0; border-radius: 4px;
  font-size: 17px; font-weight: 500; color: var(--ink);
}
.ages [role="radio"]:hover { background: rgba(198, 154, 60, .16); }
.ages [role="radio"][aria-checked="true"] { background: var(--walnut); color: var(--cream); font-weight: 700; }
.ages [role="radio"]:focus-visible { outline-offset: 1px; }

/* Day picker: one octave of keys */
.octave { position: relative; display: flex; width: max-content; padding: 4px 4px 0; background: var(--walnut); border-radius: 5px 5px 7px 7px; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3); }
.octave .key {
  position: relative; cursor: pointer;
  width: 70px; height: 68px; margin-right: 2px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 6px;
  border: 0; border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #E8DCC6 0%, #FFFCF6 14%, #F8F0E2 80%, #EADCC4 100%);
  transition: transform .12s ease, background-color .12s ease;
}
.octave .key:last-of-type { margin-right: 0; }
.key-day { font-size: 18px; font-weight: 700; line-height: 1.1; color: var(--walnut); }
.key-open { font-size: 15px; font-weight: 500; line-height: 1.2; color: #5B3A26; }
.octave .key[aria-checked="true"] {
  background: linear-gradient(180deg, #C9A35A 0%, #F1DCA8 16%, #EDD39A 82%, #D9B672 100%);
  box-shadow: inset 0 5px 6px -4px rgba(0, 0, 0, .3);
  transform: translateY(2px);
}
.octave .key[aria-checked="true"] .key-open { color: var(--walnut); font-weight: 700; }
.octave .key.full .key-open { color: var(--rosin); }
.octave .key:hover:not([aria-checked="true"]) { background: linear-gradient(180deg, #E8DCC6 0%, #FFFDF9 14%, #FBF4E8 80%, #EFE3CC 100%); }
.sharp { position: absolute; top: 4px; left: calc(4px + var(--at) * 72px - 16px); width: 30px; height: 32px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #1B0F08, #3A2216 75%, #22140C); box-shadow: 1px 2px 2px rgba(0, 0, 0, .45); pointer-events: none; }

.results { display: flex; flex-direction: column; border-top: 1.5px solid var(--line); min-height: 140px; }
.teacher { display: grid; grid-template-columns: 50px minmax(0, 176px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(74, 43, 28, .16); }
.teacher-face { width: 50px; height: 62px; border-radius: 3px; object-fit: cover; filter: sepia(.15) saturate(.9); }
.teacher-name { font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--walnut); }
.teacher-what { font-size: 17px; line-height: 1.3; color: #5B3A26; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.time {
  min-height: 44px; min-width: 74px; padding: 0 8px; cursor: pointer;
  border-radius: 5px; border: 1.5px solid rgba(74, 43, 28, .38); background: #FFFBF4;
  font-size: 17px; font-weight: 500; color: var(--ink);
}
.time:hover:not(:disabled) { border-color: var(--walnut); }
.time[aria-pressed="true"] { background: var(--walnut); border-color: var(--walnut); color: var(--cream); font-weight: 700; }
.time:disabled { cursor: not-allowed; background: transparent; border-color: transparent; color: #7A5A45; font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.empty { padding: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.empty p { font-size: 18px; color: var(--ink); max-width: 46ch; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; }
.summary { font-size: 18px; line-height: 1.4; color: var(--ink); max-width: 44ch; }
.summary strong { color: var(--walnut); }
.book { flex: none; }

.hold, .booked { padding: 18px 0 4px; display: flex; flex-direction: column; gap: 14px; }
.hold[hidden], .booked[hidden], .finder-body[hidden] { display: none; }
.hold-title, .booked-title { font-size: 30px; color: var(--walnut); }
.hold-when, .booked-text { font-size: 19px; color: var(--ink); max-width: 52ch; }
.hold-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 17px; font-weight: 700; color: var(--walnut); }
.field input, .field textarea {
  min-height: 50px; padding: 10px 14px; border-radius: 4px;
  border: 1.5px solid rgba(74, 43, 28, .45); background: #FFFCF7;
  font: inherit; font-size: 18px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--walnut); }
.hold-error, .ask-error { font-size: 17px; font-weight: 700; color: var(--rosin); min-height: 0; }
.hold-error:empty, .ask-error:empty { display: none; }
.hold-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.booked-note { font-size: 17px; color: #5B3A26; }
.booked { outline: none; }

/* Staff lines: the only section divider */
.staff { padding: 0 var(--gut); background: var(--cream) var(--paper); }
.staff::before {
  content: ''; display: block; height: 42px;
  background: repeating-linear-gradient(180deg, rgba(74, 43, 28, .42) 0 1.5px, transparent 1.5px 10px);
  border-left: 2px solid rgba(74, 43, 28, .55);
  border-right: 2px solid rgba(74, 43, 28, .55);
}

.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 48px; align-items: end; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(46px, 5.4vw, 76px); line-height: .95; letter-spacing: -.015em; color: var(--walnut); }
.sec-head p { font-size: 20px; max-width: 54ch; color: var(--ink); }
.sec-head-dark h2 { color: var(--cream); }
.sec-head-dark p { color: #EFE2CC; }

/* Instruments */
.instruments { padding: 72px var(--gut) 96px; background: var(--cream) var(--paper); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 36px; }
.inst { display: flex; flex-direction: column; gap: 16px; }
.inst > img { width: 100%; object-fit: cover; border-radius: 3px; filter: sepia(.18) saturate(.88) contrast(1.04); }
.inst h3 { font-size: 36px; line-height: 1; color: var(--walnut); }
.inst-text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.inst-text p { max-width: 44ch; }
.inst-piano { grid-column: 1 / 8; grid-row: 1 / 3; }
.inst-piano > img { flex: 1 1 auto; height: 0; min-height: 440px; }
.inst-piano h3 { font-size: 52px; }
.inst-piano .inst-text p { font-size: 20px; }
.inst-voice { grid-column: 8 / 13; grid-row: 1; }
.inst-guitar { grid-column: 8 / 13; grid-row: 2; }
.inst-voice > img, .inst-guitar > img { aspect-ratio: 16 / 9; }
.inst-violin { grid-column: 1 / 5; grid-row: 3; }
.inst-violin > img { aspect-ratio: 4 / 5; object-position: 60% 40%; }
.inst-drums { grid-column: 5 / 13; grid-row: 3; align-self: end; }
.inst-drums > img { aspect-ratio: 16 / 8; object-position: 50% 30%; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 18px; font-weight: 700; color: var(--rosin);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.link-btn:hover { color: var(--walnut); }
.link-cream { color: var(--brass-tint); align-self: flex-start; }
.link-cream:hover { color: var(--cream); }
.inst-spec { margin: 4px 0 2px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.inst-spec div { display: flex; flex-direction: column; gap: 2px; }
.inst-spec dt { font-size: 15px; font-weight: 700; color: #6B4A36; }
.inst-spec dd { margin: 0; font-family: 'Alegreya', serif; font-weight: 700; font-size: 20px; color: var(--walnut); display: flex; align-items: center; gap: 6px; min-height: 40px; }
.inst-spec .who img { width: 30px; height: 38px; object-fit: cover; object-position: 50% 25%; border-radius: 3px; filter: sepia(.15) saturate(.9); }
.inst-spec .who span { margin-left: 6px; }

/* Teachers: walnut band, staggered like keys */
.teachers {
  padding: 96px var(--gut) 110px;
  background-color: var(--walnut);
  background-image: radial-gradient(ellipse 50% 60% at 12% 0%, rgba(233, 207, 147, .16), transparent 70%), var(--grain);
  color: var(--cream);
}
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.person { display: flex; flex-direction: column; gap: 6px; }
.person:nth-child(3n + 2) { transform: translateY(56px); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 3px; margin-bottom: 12px; filter: sepia(.2) saturate(.88) contrast(1.05); }
.person h3 { font-size: 32px; line-height: 1.05; color: var(--cream); }
.person-what { font-weight: 700; font-size: 18px; color: var(--brass); }
.person p { color: #EFE2CC; max-width: 40ch; }
.person .person-days { font-size: 17px; color: var(--brass-tint); padding-top: 4px; }

/* Recitals */
.recitals { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; align-items: stretch; background: var(--cream-shade) var(--paper); }
.rec-photo { margin: 0; position: relative; min-height: 560px; overflow: hidden; }
.rec-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; filter: sepia(.22) saturate(.85) contrast(1.05) brightness(.97); }
.rec-text { padding: 80px var(--gut) 80px clamp(32px, 4vw, 64px); display: flex; flex-direction: column; gap: 22px; }
.rec-text h2 { font-size: clamp(46px, 5.4vw, 76px); line-height: .95; color: var(--walnut); }
.rec-lede { font-size: 22px; line-height: 1.4; color: var(--ink); }
.rec-dates { display: flex; flex-direction: column; }
.rec-date { padding: 18px 0; border-top: 1.5px solid var(--line); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center; }
.rec-cal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 104px; border-radius: 4px; background: var(--walnut); color: var(--cream); font-family: 'Alegreya', serif; font-weight: 800; line-height: 1; }
.rec-mon { font-size: 22px; color: var(--brass-light); }
.rec-num { font-size: 56px; letter-spacing: -.02em; margin-top: 4px; }
.rec-date:last-child { border-bottom: 1.5px solid var(--line); }
.rec-date h3 { font-size: 30px; color: var(--walnut); }
.rec-when { font-weight: 700; font-size: 20px; color: var(--rosin); }
.rec-where { font-size: 18px; color: var(--ink); }

/* Tuition */
.tuition { padding: 72px var(--gut) 96px; background: var(--cream) var(--paper); }
.tui-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.tui-table { display: flex; flex-direction: column; gap: 28px; }
.calc {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  background-color: var(--walnut); background-image: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(233, 207, 147, .18), transparent 70%), var(--grain);
  color: var(--cream); padding: 30px 30px 32px; border-radius: 4px;
}
.calc h3 { font-size: 34px; color: var(--cream); }
.calc-row { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.calc .pick-label { color: var(--brass-tint); }
.seg { display: inline-flex; gap: 3px; padding: 3px; border: 1.5px solid rgba(233, 207, 147, .5); border-radius: 6px; }
.seg [role="radio"] { min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: transparent; color: var(--cream); font-size: 18px; font-weight: 500; cursor: pointer; }
.seg [role="radio"]:hover { background: rgba(233, 207, 147, .12); }
.seg [role="radio"][aria-checked="true"] { background: var(--brass); color: var(--walnut-deep); font-weight: 700; }
.seg [role="radio"]:focus-visible { outline-offset: 1px; outline-color: var(--cream); }
.calc-total { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.calc-num { font-family: 'Alegreya', serif; font-weight: 800; font-size: 72px; line-height: .9; color: var(--cream); font-variant-numeric: lining-nums; }
.calc-per { font-size: 20px; color: var(--brass-tint); }
.calc-note { font-size: 17px; color: #EFE2CC; }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { text-align: left; padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.rates thead th { font-size: 17px; font-weight: 700; color: var(--walnut); padding-top: 0; }
.rates tbody th { font-family: 'Alegreya', serif; font-weight: 700; font-size: 30px; color: var(--walnut); }
.rates td { font-family: 'Alegreya', serif; font-weight: 700; font-size: 40px; color: var(--walnut); font-variant-numeric: lining-nums; }
.rates td:last-child { color: var(--rosin); }
.tui-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tui-notes li { padding-left: 22px; position: relative; font-size: 19px; }
.tui-notes li::before { content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 5fr); gap: 48px; padding: 88px var(--gut); background: var(--cream-shade) var(--paper); }
.visit-photo { margin: 0; align-self: stretch; min-height: 420px; position: relative; overflow: hidden; border-radius: 3px; }
.visit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: sepia(.2) saturate(.85) contrast(1.05); }
.visit-info { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.visit-info h2 { font-size: clamp(42px, 4.6vw, 64px); line-height: .98; color: var(--walnut); }
.visit-addr { font-family: 'Alegreya', serif; font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--walnut); }
.hours { margin: 0; display: flex; flex-direction: column; width: 100%; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 700; color: var(--walnut); }
.hours dd { margin: 0; }
.ask { display: flex; flex-direction: column; gap: 14px; background: var(--cream) var(--paper); padding: 30px; border-radius: 6px; border: 1.5px solid rgba(74, 43, 28, .25); align-self: start; }
.ask h3 { font-size: 32px; color: var(--walnut); }
.ask .btn { align-self: flex-start; }
.ask-done { font-size: 19px; font-weight: 500; color: var(--walnut); outline: none; }

/* Footer: the keyboard again, then the double bar */
.foot { background-color: var(--walnut-deep); background-image: var(--grain); color: #EFE2CC; }
.keys-foot { flex-direction: row; height: 64px; overflow: hidden; box-shadow: none; padding-top: 0; }
.keys-foot i { width: 38px; height: 100%; margin: 0 2px 0 0; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, #E6D8BF 0%, #FBF5EA 20%, #F6EDDF 85%, #E2D1B3 100%); }
.keys-foot i.b::after { left: 26px; top: 0; width: 22px; height: 60%; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, #1E110A, #3A2216 70%, #24150D); }
.foot-inner { padding: 56px var(--gut) 40px; display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 36px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 34ch; }
.foot-name { color: var(--cream); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-h { font-family: 'Alegreya', serif; font-weight: 700; font-size: 22px; color: var(--brass-light); margin: 0 0 4px; }
.foot a { color: var(--cream); font-weight: 700; }
.foot-nav a { font-weight: 500; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.foot-nav a:hover { text-decoration: underline; }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gut) 30px; border-top: 1px solid rgba(233, 207, 147, .2); }
.foot-demo { font-size: 17px; color: var(--brass-tint); }
.foot-end { flex: none; width: 220px; height: 48px; color: var(--brass); }

/* Tablet and narrow desktop: the burger takes over the nav */
@media (max-width: 1399px) {
  .nav { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
    background: transparent; color: var(--cream); margin-left: 4px;
  }
  .burger span { display: block; width: 26px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .head-cta { margin-left: auto; }
  .menu {
    position: absolute; top: var(--head-h); right: var(--gut); width: min(360px, calc(100vw - 32px));
    background-color: var(--walnut-deep); background-image: var(--grain);
    border-radius: 6px; padding: 10px 14px 16px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    display: flex; flex-direction: column; gap: 4px;
  }
  .menu nav { display: flex; flex-direction: column; }
  .menu nav a { color: var(--cream); text-decoration: none; font-family: 'Alegreya', serif; font-weight: 700; font-size: 23px; min-height: 52px; display: flex; align-items: center; padding: 0 8px; border-bottom: 1px solid rgba(233, 207, 147, .16); }
  .menu nav a:hover { color: var(--brass-tint); }
  .menu-cta { width: 100%; margin-top: 14px; }
  .menu-call { width: 100%; margin-top: 8px; gap: 10px; min-height: 48px; font-size: 18px; border-width: 1.5px; }
  .menu-hours { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(233, 207, 147, .18); font-size: 17px; line-height: 1.5; color: var(--brass-tint); }
  .menu::before { content: ''; position: fixed; inset: var(--head-h) 0 0 0; z-index: -1; background: rgba(24, 12, 6, .62); pointer-events: none; }
}

@media (max-width: 1279px) {
  :root { --photo-w: 31vw; --keys-w: 54px; }
  .hero-photo img { transform: none; object-position: 30% 34%; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { grid-column: 1; }
  .hero-side { grid-column: 1; grid-row: 2; }
  .octave .key { width: 62px; }
  .sharp { left: calc(4px + var(--at) * 64px - 15px); width: 28px; }
}

@media (max-width: 1279px) {
  .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .visit-photo { grid-row: 1 / 3; }
}

@media (max-width: 1100px) {
  .foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .teacher { grid-template-columns: 50px minmax(0, 1fr); }
  .times { grid-column: 1 / 3; }
  .finder-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .finder-title { padding-bottom: 0; }
}

/* Phones and tablets: photo first, the keys turn sideways */
@media (max-width: 899px) {
  :root { --head-h: 68px; --gut: 20px; }
  html { scroll-padding-top: 76px; }
  .site-head {
    position: sticky; left: 0; right: 0;
    background-color: var(--walnut-deep); background-image: var(--grain);
    gap: 10px; padding: 0 12px 0 16px;
  }
  .head-cta { display: none; }
  .burger { margin-left: auto; }
  .menu { position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; padding: 8px 20px 28px; overflow-y: auto; box-shadow: none; }
  .menu::before { display: none; }
  .menu-hours { margin-top: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-main, .hero-copy { display: contents; }
  .hero-photo { grid-row: 1; grid-column: 1; height: clamp(360px, 50vh, 470px); }
  .hero-photo img { object-position: 50% 30%; transform: none; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(36, 19, 11, .97) 0%, rgba(36, 19, 11, .8) 30%, rgba(36, 19, 11, 0) 58%), radial-gradient(ellipse 130% 55% at 30% 0%, rgba(120, 72, 34, .45), transparent 75%); }
  .hero-copy h1 { grid-row: 1; grid-column: 1; align-self: end; position: relative; z-index: 2; padding: 0 20px 16px; font-size: clamp(38px, 10.4vw, 58px); line-height: .95; text-shadow: 0 2px 16px rgba(20, 8, 2, .45); }
  .keys { grid-row: 2; }
  .hero-side { grid-row: 3; grid-column: 1; padding: 16px 20px 0; gap: 4px; flex-direction: column; align-items: stretch; }
  .finder { grid-row: 4; }
  .keys { flex-direction: row; justify-content: center; height: 38px; box-shadow: inset 0 6px 10px -6px rgba(0, 0, 0, .6); }
  .keys i { width: 30px; height: 100%; margin: 0 2px 0 0; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, #E6D8BF 0%, #FBF5EA 20%, #F6EDDF 85%, #E2D1B3 100%); }
  .keys i.b::after { left: 20px; top: 0; width: 18px; height: 58%; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, #1E110A, #3A2216 70%, #24150D); }
  @keyframes press {
    0%, 100% { background: linear-gradient(180deg, #E6D8BF 0%, #FBF5EA 20%, #F6EDDF 85%, #E2D1B3 100%); transform: none; }
    35% { background: linear-gradient(180deg, #C9A35A 0%, #E9CF93 30%, #E3C27C 85%, #C69A3C 100%); transform: translateY(-3px); }
  }
  @keyframes pressb { 0%, 100% { transform: none; } 35% { transform: translateY(-4px); } }
  @media (prefers-reduced-motion: no-preference) {
    .hero .keys i { animation-delay: calc(.3s + var(--i) * 30ms); }
    .hero .keys i.b::after { animation-delay: calc(.3s + var(--i) * 30ms + 15ms); }
  }
  .free { font-size: 26px; white-space: normal; }
  .hero-note { font-size: 18px; }
  .hero-cta { display: inline-flex; align-self: stretch; margin-top: 10px; }
  .finder { padding: 18px 20px 22px; margin: 22px 0 28px; border-radius: 0; box-shadow: none; }
  .finder-title { font-size: 24px; }
  .tabs { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tabs [role="tab"] { padding: 0 2px; font-size: 17px; }
  .finder-pick { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pick-row { display: flex; flex-direction: column; gap: 8px; }
  .ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ages [role="radio"] { padding: 0 4px; font-size: 16px; }
  .octave { width: 100%; }
  .octave .key { flex: 1 1 0; width: auto; height: 78px; }
  .sharp { left: calc(4px + var(--at) * ((100% - 8px) / 6) - 13px); width: 26px; height: 36px; }
  .teacher { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
  .time { min-width: 0; flex: 1 1 calc(33.333% - 6px); }
  .finder-foot { flex-direction: column; align-items: stretch; }
  .book { width: 100%; }
  .hold-fields { grid-template-columns: minmax(0, 1fr); }
  .hold-actions .btn { flex: 1 1 100%; }
  .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 30px; }
  .instruments, .tuition { padding: 52px 20px 64px; }
  .mosaic { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .inst-piano, .inst-voice, .inst-guitar, .inst-violin, .inst-drums { grid-column: 1; grid-row: auto; }
  .inst-piano h3 { font-size: 42px; }
  .inst-violin > img { aspect-ratio: 4 / 4; }
  .inst-piano > img { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .teachers { padding: 64px 20px 72px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
  .person:nth-child(3n + 2) { transform: none; }
  .person:nth-child(2n) { transform: translateY(36px); }
  .person h3 { font-size: 25px; }
  .person p { font-size: 17px; }
  .recitals { grid-template-columns: minmax(0, 1fr); }
  .rec-photo { min-height: 300px; }
  .rec-text { padding: 44px 20px 52px; }
  .tui-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rates tbody th { font-size: 24px; }
  .rates td { font-size: 30px; }
  .visit { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 56px 20px; }
  .visit-photo { grid-row: auto; min-height: 240px; }
  .rec-date { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; }
  .rec-cal { width: 78px; height: 88px; }
  .rec-num { font-size: 44px; }
  .rec-mon { font-size: 19px; }
  .calc { padding: 24px 20px 26px; }
  .calc-num { font-size: 60px; }
  .seg { width: 100%; }
  .seg [role="radio"] { flex: 1 1 0; padding: 0 6px; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 44px 20px 28px; }
  .foot-base { flex-direction: column; align-items: flex-start; padding: 20px 20px 28px; }
  .ask { padding: 22px 18px; }
  .keys-foot { height: 48px; flex-direction: row; }
  .keys-foot i { width: 30px; }
  .keys-foot i.b::after { left: 20px; width: 18px; }
  .foot-end { width: 160px; height: 35px; }
}

@media (max-width: 420px) {
  .roster { grid-template-columns: minmax(0, 1fr); }
  .person:nth-child(2n) { transform: none; }
  .person { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start; }
  .person img { grid-row: 1 / 7; aspect-ratio: 4 / 5; margin-bottom: 0; }
  .person h3 { font-size: 24px; }
  .roster { gap: 30px; }
  .octave .key { height: 74px; }
  .key-day { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Logo lockups: header, footer and phone sizes. */
.lk, .lk-2 { position: relative; display: inline-block; flex: none; color: #F6EDDF; text-decoration: none; }
.lk > *, .lk-2 > * { position: absolute; margin: 0; }
.lk svg, .lk-2 svg { display: block; overflow: visible; }
.lk-name { font-family: "Alegreya", serif; font-weight: 700; font-variant-ligatures: none; }
.lk-sub { font: 500 .56em/1 "Alegreya Sans", sans-serif; letter-spacing: 0.06741em; white-space: nowrap; color: #E9CF93; }
.lk { width: 5.16749em; height: 1.44474em; }
.lk .lk-icon { left: 0em; top: 0em; width: 1.05072em; height: 1.44474em; }
.lk .lk-name { left: 1.35072em; top: 0.10164em; width: 3.81677em; height: 0.775em; }
.lk .lk-sub { left: 2.33871em; top: 1.74471em; }
.lk-2 { width: 3.81677em; height: 3.4734000000000003em; }
.lk-2 .lk-icon { left: 1.2902em; top: 0em; width: 1.23636em; height: 1.7em; }
.lk-2 .lk-name { left: -0.006em; top: 2.03em; width: 3.81677em; height: 0.775em; }
.lk-2 .lk-sub { left: -0.084em; top: 5.22393em; }
.lk-light, .lk-light.lk-2 { color: #4A2B1C; }
.lk-light .lk-sub { color: #4A2B1C; }

.mark .lk { font-size: 32px; }
.foot-name { line-height: 0; }
.foot-name .lk-2 { font-size: 32px; }
@media (max-width: 899px) {
  .mark .lk { font-size: 24px; }
  .mark .lk { width: 5.180770000000001em; height: 1.4905em; }
  .mark .lk .lk-icon { width: 1.084em; height: 1.4905em; }
  .mark .lk .lk-name { left: 1.364em; top: 0.10517em; }
  .mark .lk .lk-sub { font-size: 15px; letter-spacing: 0.00844em; left: 2.108em; top: 1.5522799999999999em; }
}
/* End of logo lockups. */
