@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #1f2a3d; --cream: #faf6ef; --bronze: #b08d57; --sage: #8a9a7b;
  --ink: #24303f; --muted: #6b7686; --line: #e6ddcf;
  --bronze-deep: #8a6a3c; /* darker bronze for button fills — passes AA with white text */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif; line-height: 1.6; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--navy);
  line-height: 1.15; font-weight: 600; }
a { color: var(--bronze); }
.wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem; }
.site-nav { display: flex; gap: 1rem 1.25rem; align-items: center;
  max-width: 960px; margin: 0 auto; padding: 1rem 1.25rem; }
.site-nav .brand { font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.15rem; color: var(--navy); margin-right: auto; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--bronze); }
.nav-links a.active { color: var(--bronze); }
.nav-links a.nav-cta { background: var(--bronze-deep); color: #fff; padding: .45rem 1rem;
  border-radius: 999px; font-weight: 600; }
.nav-links a.nav-cta:hover { color: #fff; opacity: .92; }
@media (max-width: 720px) {
  .site-nav { flex-direction: column; gap: .55rem; padding: .85rem 1rem; }
  .site-nav .brand { margin-right: 0; text-align: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; width: 100%;
    gap: .25rem .35rem; border-top: 1px solid var(--line); padding-top: .65rem; }
  .nav-links a { padding: .5rem .7rem; }
}
.btn { display: inline-block; background: var(--bronze-deep); color: #fff;
  padding: 0.7rem 1.3rem; border-radius: 999px; text-decoration: none;
  border: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--navy);
  border: 1px solid var(--line); }
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 1rem auto 1.5rem; }
.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 2rem 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem; }
.staff-rule { height: 17px; border: 0; margin: 2.5rem auto; max-width: 460px;
  background-image: repeating-linear-gradient(to bottom, rgba(176,141,87,.4) 0 1px, transparent 1px 4px);
  background-repeat: no-repeat; background-size: 100% 17px; background-position: center; }
form.stack { display: grid; gap: 0.9rem; max-width: 32rem; }
form.stack label { font-weight: 500; display: grid; gap: 0.3rem; }
input, textarea, select { font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; }

/* Utility classes (strict CSP: no inline style attributes allowed) */
.muted { color: var(--muted); }
.italic { font-style: italic; }
.inline { display: inline; }
.flush { padding-left: 0; }
.pull-quote { font-style: italic; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; }
.card.ok { border-color: var(--sage); }
.card.warn { border-color: var(--bronze); }

/* Lesson-card stage eyebrow + price */
.stage { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  font-weight: 600; color: var(--bronze); margin: 0 0 .15rem; }
.price { font-weight: 600; color: var(--ink); margin: .1rem 0 .05rem; }
.price-sub { font-weight: 400; font-size: .85rem; color: var(--muted); }
.price-monthly { font-size: .85rem; color: var(--muted); margin: 0 0 .6rem; }
.tuition-callout { display: flex; gap: .9rem; align-items: flex-start; max-width: 46rem;
  margin: .9rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(176,141,87,.10); }
.tuition-callout__icon { flex: none; width: 22px; height: 22px; color: var(--bronze); margin-top: .1rem; }
.tuition-callout__lead { font-family: "Fraunces", Georgia, serif; font-weight: 600;
  color: var(--navy); margin: 0 0 .25rem; }
.tuition-callout__body { margin: 0; font-size: .9rem; color: var(--muted); }

/* About: typographic philosophy statement */
.philosophy { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.25; color: var(--navy);
  text-align: center; max-width: 28rem; margin: 2.25rem auto; border: 0; }
.philosophy .accent { color: var(--bronze); font-style: italic; }

/* Card icons (What's distinctive) */
.card-icon { display: block; width: 24px; height: 24px; color: var(--bronze); margin-bottom: .5rem; }

/* Growth-journey arc: milestones rising along a staff path */
.growth-arc { margin: 1.25rem 0 0; text-align: center; }
.growth-arc svg { width: 100%; max-width: 560px; height: auto; color: var(--bronze); overflow: visible; }
.growth-arc text { font-size: 14px; }
@media (max-width: 560px) { .growth-arc text { font-size: 20px; } }
.growth-arc figcaption { margin-top: .5rem; }
.growth-arc .ga-note { opacity: 1; }
@keyframes ga-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .growth-arc .ga-note { opacity: 0; animation: ga-rise .55s ease forwards; }
  .growth-arc .ga-1 { animation-delay: .1s; }
  .growth-arc .ga-2 { animation-delay: .28s; }
  .growth-arc .ga-3 { animation-delay: .46s; }
  .growth-arc .ga-4 { animation-delay: .64s; }
  .growth-arc .ga-5 { animation-delay: .82s; }
}

/* Stage roadmap (the growth through-line above the lesson cards) */
.stage-roadmap { text-align: center; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin: .25rem 0 1.4rem; }
.stage-roadmap span { color: var(--bronze); font-weight: 600; }

/* Lesson-length time-ribbon: proportional bar that extends + gains segments with minutes */
.lesson-card .who { font-size: .9rem; margin: .1rem 0 .7rem; }
.ribbon-track { background: rgba(176,141,87,.14); border-radius: 999px; height: 12px; margin: 0 0 .55rem; }
.ribbon { height: 100%; display: flex; gap: 2px; border-radius: 999px; overflow: hidden; }
.ribbon .seg { flex: 1; background: var(--bronze); }
.ribbon .seg:nth-child(2) { opacity: .85; }
.ribbon .seg:nth-child(3) { opacity: .72; }
.ribbon .seg:nth-child(4) { opacity: .6; }
.ribbon .seg:nth-child(5) { opacity: .5; }
.ribbon .seg:nth-child(6) { opacity: .42; }
.ribbon .seg:nth-child(7) { opacity: .36; }
.ribbon--30 { width: 50%; }
.ribbon--45 { width: 75%; }
.ribbon--60 { width: 100%; }
.adds { font-size: .82rem; margin: 0; }

/* Hands-on-keys photo band — light frame with a keyboard motif until a photo drops in */
.lesson-photo { position: relative; height: 200px; margin: 2rem 0; border-radius: 14px;
  overflow: hidden; background: rgba(176,141,87,.10); border: 1px solid var(--line);
  display: grid; place-items: center; }
.lesson-photo__keys { width: 200px; height: auto; color: var(--bronze); opacity: .45; }
.lesson-photo::after { content: ""; position: absolute; inset: 0;
  background: url("/static/images/keys.jpg?v=1") center/cover no-repeat; }

/* Includes list with monoline icons */
.icon-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; max-width: 46rem; }
.icon-list li { display: flex; align-items: flex-start; gap: .7rem; }
.icon-list .li-icon { flex: none; width: 20px; height: 20px; color: var(--bronze); margin-top: .15rem; }

/* Practice-rhythm chart */
.practice-viz { color: var(--bronze); max-width: 420px; margin: 1rem 0 0; }
.practice-svg { display: block; width: 100%; height: auto; }

/* Demo persona bar */
.persona-bar { background: var(--navy); color: var(--cream); }
.persona-bar .inner { max-width: 960px; margin: 0 auto; padding: 0.5rem 1.25rem;
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.persona-bar a { color: var(--cream); text-decoration: none; opacity: 0.7;
  padding: 0.2rem 0.6rem; border-radius: 999px; }
.persona-bar a.active { opacity: 1; background: rgba(255,255,255,0.15); }
.persona-bar form { margin-left: auto; }
.persona-bar .reset { background: var(--bronze-deep); color: #fff; border: none;
  padding: 0.3rem 0.8rem; border-radius: 999px; font: inherit; cursor: pointer; }

/* --- Portrait medallions: a recital-program "face wall" (marketing only) --- */
/* Base layer is the navy circle + a Fraunces monogram. The photo rides on ::after
   as a background-image, warm-toned to the studio brand, blooming to full color on
   hover/focus. A missing image simply leaves ::after transparent, so the monogram
   shows through — no broken-image icon, no JS. */
.medallion { position: relative; width: 200px; height: 200px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--bronze),
              0 0 0 9px var(--cream), 0 0 0 10px rgba(176,141,87,.55),
              0 0 0 15px var(--cream), 0 0 0 16px rgba(176,141,87,.3); }
.medallion .monogram { font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 4rem; color: var(--cream); opacity: .92; user-select: none; }
.medallion::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-size: cover; background-position: center 20%;
  filter: grayscale(1) sepia(.6) saturate(1.7) hue-rotate(-12deg) contrast(1.04) brightness(1.02);
  transition: filter .55s ease; }
.medallion:hover::after, .medallion:focus-within::after { filter: none; }

.medallion--lg { width: 240px; height: 240px; }
.medallion--lg .monogram { font-size: 5rem; }
.medallion--sm { width: 104px; height: 104px;
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--bronze),
              0 0 0 6px var(--cream), 0 0 0 7px rgba(176,141,87,.4); }
.medallion--sm .monogram { font-size: 2.4rem; }

/* Per-person photo slots. Drop a file at the named path and it appears; until then
   the monogram stands in. Kept as classes because the strict CSP forbids inline styles. */
.face-clara::after { background-image: url("/static/images/clara.jpg"); }

/* Portrait-led hero (home) */
.studio-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem;
  align-items: center; padding: 2.5rem 0 1.5rem; }
.studio-hero .portrait-block { display: grid; justify-items: center; gap: .75rem; }
.hero-photo { width: 100%; height: auto; border-radius: 16px; display: block;
  box-shadow: 0 12px 30px rgba(31,42,61,.14); }
.studio-hero .hero-copy h1 { margin-top: 0; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.studio-hero .hero-copy .lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.portrait-caption { margin: 0; text-align: center; font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-size: 1.15rem; color: var(--navy); }
.portrait-caption span { display: block; font-family: "Inter", system-ui, sans-serif;
  font-style: normal; font-size: .8rem; letter-spacing: .04em; color: var(--muted);
  text-transform: uppercase; margin-top: .2rem; }

/* About header: portrait beside the intro */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem;
  align-items: center; margin-bottom: 1.75rem; }
.about-head h1 { margin-top: 0; }

/* Testimonial face wall */
.testimonials-title { text-align: center; }
.testimonial-grid { display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5rem; }
.testimonial { margin: 0; display: grid; justify-items: center; text-align: center;
  gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.75rem 1.4rem; }
.testimonial blockquote { margin: 0; font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-size: 1.02rem; color: var(--ink); line-height: 1.5; }
.testimonial figcaption { font-weight: 600; color: var(--navy); }
.testimonial figcaption span { display: block; font-weight: 400; font-style: normal;
  font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* Logo mark + wordmark */
.brand-mark { color: var(--bronze); flex: none; }
.site-nav .brand { display: inline-flex; align-items: center; gap: .55rem; }
.site-nav .brand span { line-height: 1; }

/* Accented staff divider (SVG melodic gesture) */
.staff-figure { color: var(--bronze); max-width: 640px; margin: 2.5rem auto; }
.staff-figure svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Playful note hop — a gentle wave sweeps L->R, then rests, like the phrase is playing.
   Each note (head + stem) rides its own group; motion respects reduced-motion prefs. */
@keyframes sf-hop {
  0%, 22%, 100% { transform: translateY(0); }
  6%  { transform: translateY(-6px); }
  12% { transform: translateY(0); }
  16% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .sf-note { animation: sf-hop 2.4s ease-in-out infinite; }
  .sf-note-2 { animation-delay: .12s; }
  .sf-note-3 { animation-delay: .24s; }
  .sf-note-4 { animation-delay: .36s; }
  .sf-note-5 { animation-delay: .48s; }
  .sf-note-6 { animation-delay: .60s; }
  .sf-note-7 { animation-delay: .72s; }
  .sf-note-8 { animation-delay: .84s; }
}

/* Footer — navy grounding band with a keyboard-octave motif */
.site-footer { background: var(--navy); color: var(--cream); margin-top: 3rem;
  padding: 2.25rem 1.25rem 2.5rem; text-align: center; }
.site-footer .keyboard-motif { color: var(--bronze); opacity: .7; }
.footer-brand { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; color: var(--cream);
  display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0 .35rem; }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin: .5rem 0; }
.footer-links a { color: var(--cream); text-decoration: none; opacity: .85; font-size: .95rem; }
.footer-links a:hover { opacity: 1; color: var(--bronze); }
.footer-fine { color: rgba(250,246,239,.55); font-size: .85rem; margin: .5rem 0 0; }

/* Secure-payment reassurance line (parent card panel) */
.secure-note { display: flex; align-items: center; gap: .4rem; font-size: .82rem; margin-top: .35rem; }
.secure-note .lock-glyph { color: var(--sage); flex: none; }

@media (max-width: 640px) {
  .studio-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .medallion::after { transition: none; }
}

/* ===== Demo portal enhancements ===== */
/* Card-header icons */
h2.ico, h3.ico { display: flex; align-items: center; gap: .55rem; }
.ico > svg { width: 21px; height: 21px; color: var(--bronze); flex: none; }

/* Small avatar medallion (portal people) */
.medallion--xs { width: 42px; height: 42px;
  box-shadow: 0 0 0 1.5px var(--cream), 0 0 0 3px var(--bronze); }
.medallion--xs .monogram { font-size: 1.2rem; }

/* Teacher roster as an avatar list */
.roster { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .75rem; }
.roster li { display: flex; align-items: center; gap: .85rem; }
.roster .r-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--navy); }
.roster .r-meta { color: var(--muted); font-size: .88rem; }

/* Sibling switcher with avatars */
.people-switch { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  padding: 0; margin: .3rem 0 0; }
.people-switch a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  color: var(--ink); padding: .25rem .7rem .25rem .3rem; border-radius: 999px;
  border: 1px solid transparent; }
.people-switch a:hover { border-color: var(--line); }
.people-switch a.active { background: rgba(176,141,87,.12); border-color: var(--line); color: var(--navy); }

/* Student greeting with avatar */
.greet { display: flex; align-items: center; gap: .8rem; margin-bottom: .35rem; }
.greet h1 { margin: 0; }

/* Practice streak markers (note-heads) */
.streak { display: inline-flex; gap: .32rem; vertical-align: middle; margin-left: .2rem; }
.streak span { width: 11px; height: 8px; background: var(--bronze); border-radius: 50%;
  transform: rotate(-20deg); }

/* Recent-practice bar chart */
.practice-chart { color: var(--bronze); width: 100%; max-width: 440px; height: auto;
  display: block; margin-top: .4rem; }

/* ===== Book-a-trial page ===== */
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(176,141,87,.22); }
.book-intro { font-size: 1.05rem; max-width: 34rem; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: 2rem; align-items: start; margin-top: 1.25rem; }
form.stack.card { max-width: none; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.req { color: var(--bronze); font-weight: 400; }
.book-aside { background: rgba(176,141,87,.09); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.3rem 1.4rem; }
.book-aside h2 { font-size: 1.15rem; margin: 0 0 .2rem; }
.book-teacher { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.book-teacher .r-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--navy); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: .6rem 0 0; display: grid; gap: .8rem; }
.steps li { position: relative; padding-left: 2.1rem; counter-increment: step; color: var(--ink); font-size: .95rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bronze-deep); color: #fff;
  font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
/* thank-you confirmation */
.thanks-check { color: var(--sage); width: 56px; height: 56px; margin: 0 auto 1rem; display: block; }
.thanks-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 720px) { .book-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
