/* ==========================================================================
   Rookwood Music House - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: change the custom properties in :root below.
   - --ink       main text and dark bands (keep it dark for contrast)
   - --tomato    main accent: buttons, links, highlights (white text sits on it)
   - --sun       warm highlight blocks (dark text sits on it)
   - --teal      second accent for tags and small details
   - --cream-*   page backgrounds
   - --font-display / --font-body  heading and body fonts. If you change them,
     also update the Google Fonts <link> in the <head> of every page.
   Keep text/background pairs at 4.5:1 contrast or better.
   ========================================================================== */
:root {
  --ink: #1d1b3a;
  --ink-soft: #3a3760;
  --muted: #5b5876;
  --tomato: #c2381f;
  --tomato-dark: #9e2b15;
  --tomato-tint: #fde3dc;
  --sun: #ffc94a;
  --sun-tint: #fff0c7;
  --teal: #0f6b63;
  --teal-tint: #d5efe9;
  --sky: #dbe9ff;
  --cream-50: #fffcf6;
  --cream-100: #fff8ee;
  --cream-200: #f6ecdb;
  --white: #ffffff;
  --line: rgba(29, 27, 58, .14);
  --error: #b0241a;
  --success: #0f6b63;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Karla", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--tomato); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--tomato-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--sun); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato);
}
.kicker::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; box-shadow: 1rem 0 0 -.12rem currentColor, 1.9rem 0 0 -.2rem currentColor; margin-right: 1.7rem; }
.on-dark .kicker { color: var(--sun); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--ink-soft); }
.on-dark .lead { color: #e6e4f5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid var(--ink);
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-primary { background: var(--tomato); color: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { color: var(--white); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--sun-tint); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 238, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo svg { width: 2.6rem; height: 2.6rem; flex: none; }
.logo small { display: block; font: 600 .72rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 700 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; width: 100%; padding: .25rem 0 1rem; }
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; gap: .35rem; }
.site-nav a { display: block; padding: .75rem 1rem; border-radius: var(--radius-sm); color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover { background: var(--sun-tint); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.site-nav .nav-cta { background: var(--tomato); color: var(--white); text-align: center; }
.site-nav .nav-cta:hover { background: var(--tomato-dark); color: var(--white); }
.site-nav .nav-cta[aria-current="page"] { background: var(--ink); }
@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: .3rem; }
  .site-nav a { padding: .55rem .95rem; border-radius: 999px; }
  .site-nav .nav-cta { margin-left: .5rem; border: 2px solid var(--ink); }
}

/* ---------- Placeholders ---------- */
.ph { position: relative; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sky); }
.img-label {
  position: absolute; left: .9rem; bottom: .9rem; z-index: 2; padding: .3rem .7rem; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); font-size: .78rem; font-weight: 700;
}
.ph-stripes { background: repeating-linear-gradient(-45deg, var(--sky) 0 18px, #cbdcf6 18px 36px); }
.ph-sun { background: radial-gradient(circle at 30% 30%, #ffe08f 0 22%, transparent 23%), repeating-linear-gradient(90deg, var(--sun) 0 20px, #ffd56f 20px 40px); }
.ph-teal { background: radial-gradient(circle at 70% 35%, #8fd3c6 0 18%, transparent 19%), linear-gradient(160deg, var(--teal-tint), #a9ded2); }
.ph-tomato { background: radial-gradient(circle at 40% 40%, #ffb7a6 0 20%, transparent 21%), linear-gradient(200deg, var(--tomato-tint), #f8b9a9); }

/* ---------- Staff lines motif ---------- */
.staff { position: relative; }
.staff::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(29, 27, 58, .12) 22px 24px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 .hl { position: relative; display: inline-block; color: var(--tomato); }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--sun); z-index: -1; border-radius: 4px; }
.hero h1 .bounce { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 2.25rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-facts li { padding: .5rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 700; font-size: .95rem; }
.hero-facts li:nth-child(2) { background: var(--sun); }
.hero-facts li:nth-child(3) { background: var(--teal-tint); }
.hero-art { position: relative; min-height: 24rem; }
.hero-art .ph-main { position: absolute; inset: 0 12% 10% 0; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; box-shadow: var(--shadow); }
.hero-art .ph-small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--shadow); }
.hero-art .ph-small .img-label { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.notes-float { position: absolute; top: -1.25rem; right: 4%; width: 7rem; z-index: 3; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .notes-float .n1 { animation: bob 2.4s var(--ease) infinite; }
  .notes-float .n2 { animation: bob 2.4s var(--ease) .6s infinite; }
  .hero h1 .bounce { animation: beat 1.6s var(--ease) infinite; transform-origin: 50% 100%; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes beat { 0%, 100% { transform: scaleY(1); } 12% { transform: scaleY(.9) translateY(2px); } 24% { transform: scaleY(1.04); } }

/* ---------- Piano key strip ---------- */
.keys { height: 3.25rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background:
  linear-gradient(90deg, transparent 0 62%, var(--ink) 62% 100%) 0 0 / 40px 62% repeat-x,
  repeating-linear-gradient(90deg, var(--white) 0 38px, var(--ink) 38px 40px); }

/* ---------- Instruments ---------- */
.inst-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.inst { position: relative; padding: 1.5rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.inst:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.inst:nth-child(4n+1) .inst-ic { background: var(--sun); }
.inst:nth-child(4n+2) .inst-ic { background: var(--teal-tint); }
.inst:nth-child(4n+3) .inst-ic { background: var(--tomato-tint); }
.inst:nth-child(4n+4) .inst-ic { background: var(--sky); }
.inst-ic { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 2px solid var(--ink); margin-bottom: 1rem; }
.inst-ic svg { width: 2rem; height: 2rem; }
.inst h3 { margin-bottom: .3rem; }
.inst p { margin: 0 0 .75rem; color: var(--muted); }
.inst .ages { font-size: .85rem; font-weight: 700; color: var(--teal); }
.inst a { position: absolute; inset: 0; border-radius: var(--radius); }
.inst a span { position: absolute; right: 1.25rem; top: 1.4rem; font-weight: 700; font-size: .9rem; }

/* ---------- Count-in steps ---------- */
.dark-band { background: var(--ink); color: var(--white); }
.dark-band h2, .dark-band h3 { color: var(--white); }
.count { display: grid; gap: 1.25rem; counter-reset: beat; }
@media (min-width: 760px) { .count { grid-template-columns: repeat(4, 1fr); } }
.count li { counter-increment: beat; padding: 1.5rem; border: 2px solid rgba(255, 255, 255, .25); border-radius: var(--radius); }
.count li::before { content: counter(beat); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--sun); color: var(--ink); font: 800 1.4rem var(--font-display); margin-bottom: 1rem; }
.count li:nth-child(4)::before { background: var(--tomato); color: var(--white); }
.count p { color: #d9d7ea; margin: 0; }

/* ---------- Recitals ---------- */
.recitals { display: grid; gap: 1rem; }
.recital { display: grid; gap: 1rem 1.5rem; align-items: center; padding: 1.25rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); }
@media (min-width: 760px) { .recital { grid-template-columns: auto 1fr auto; padding: 1.25rem 1.5rem; } }
.date-chip { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 18px; background: var(--sun); border: 2px solid var(--ink); text-align: center; line-height: 1; }
.recital:nth-child(2) .date-chip { background: var(--teal-tint); }
.recital:nth-child(3) .date-chip { background: var(--tomato-tint); }
.date-chip .m { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.date-chip .d { font: 800 2.2rem var(--font-display); }
.recital h3 { margin: 0 0 .25rem; }
.recital p { margin: 0; color: var(--muted); }
.recital .tag { display: inline-block; margin-top: .45rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--teal-tint); color: var(--teal); }
.cal-btn { font-size: .92rem; min-height: 2.75rem; padding: .5rem 1.1rem; }
.cal-status { min-height: 1.5em; margin-top: 1rem; font-weight: 700; color: var(--teal); }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 1.6rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; }
.review:nth-child(2) { background: var(--sun-tint); }
.review-tag { align-self: flex-start; padding: .2rem .65rem; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.review blockquote { margin: 1rem 0; font-size: 1.08rem; flex: 1; }
.review blockquote p { margin: 0; }
.review figcaption { font-size: .92rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-card { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 5vw, 3.25rem); border: 2px solid var(--ink); border-radius: calc(var(--radius) + 8px); background: var(--sun); box-shadow: 8px 8px 0 var(--ink); }
@media (min-width: 820px) { .cta-card { grid-template-columns: 1fr auto; } }
.cta-card h2 { margin-bottom: .3rem; }
.cta-card p { margin: 0; font-size: 1.1rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; }
.page-hero .lead { max-width: 42rem; }

/* ---------- Price toggle ---------- */
.length-switch { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .35rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); margin: 0 0 2rem; }
.length-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.length-switch label { position: relative; }
.length-switch input { position: absolute; opacity: 0; inset: 0; }
.length-switch span { display: block; padding: .55rem 1.15rem; border-radius: 999px; font-weight: 700; cursor: pointer; }
.length-switch input:checked + span { background: var(--ink); color: var(--white); }
.length-switch input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { padding: 1.75rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.plan.featured { background: var(--ink); color: var(--white); box-shadow: 8px 8px 0 var(--tomato); }
.plan.featured h3, .plan.featured .price { color: var(--white); }
.plan .badge { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .78rem; font-weight: 700; margin-bottom: .75rem; }
.price { font: 800 clamp(2.4rem, 5vw, 3.2rem)/1 var(--font-display); margin: .5rem 0 .25rem; letter-spacing: -.03em; }
.price small { font: 600 1rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.plan.featured .price small, .plan.featured .per { color: #d9d7ea; }
.per { font-size: .92rem; color: var(--muted); margin-bottom: 1.25rem; }
.plan ul { display: grid; gap: .55rem; margin: 1.25rem 0 1.5rem; }
.plan li { display: flex; gap: .6rem; }
.plan li::before { content: ""; flex: none; width: .7rem; height: .7rem; margin-top: .5rem; border-radius: 50%; background: var(--tomato); }
.plan.featured li::before { background: var(--sun); }
.plan .btn { width: 100%; }
.price-note { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }

/* ---------- Instrument tabs ---------- */
.tabs-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab { padding: .6rem 1.15rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 700 1rem var(--font-body); cursor: pointer; }
.tab:hover { background: var(--sun-tint); }
.tab[aria-selected="true"] { background: var(--tomato); color: var(--white); }
.tab-panel { display: grid; gap: 2rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); }
@media (min-width: 880px) { .tab-panel { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.tab-panel .ph { min-height: 16rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.facts div { padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--cream-100); border: 1.5px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.teacher-mini { display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1.5px dashed var(--line); }
.avatar { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font: 800 1.05rem var(--font-display); }
.teacher-mini p { margin: 0; font-size: .95rem; color: var(--muted); }
.teacher-mini strong { color: var(--ink); display: block; }

/* ---------- Teachers ---------- */
.teachers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.teacher { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.teacher .ph { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; aspect-ratio: 4 / 3; }
.teacher-body { padding: 1.25rem 1.4rem 1.5rem; }
.teacher-body h3 { margin-bottom: .2rem; }
.teacher-body .role { font-weight: 700; color: var(--tomato); margin-bottom: .6rem; font-size: .95rem; }
.teacher-body p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 50rem; }
.faq details { border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--white); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font: 800 1.2rem/1 var(--font-display); }
.faq details[open] summary::after { content: "\2013"; background: var(--tomato); color: var(--white); }
.faq details p { padding: 0 1.25rem 1.15rem; margin: 0; color: var(--ink-soft); }

/* ---------- Trial form ---------- */
.form-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.35fr .65fr; align-items: start; } }
.form-card { padding: clamp(1.25rem, 4vw, 2.5rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
legend { font: 800 1.15rem var(--font-display); margin-bottom: .75rem; padding: 0; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 700; }
.field .hint { font-size: .88rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .8rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--cream-50);
  font: inherit; color: var(--ink);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--tomato); outline-offset: 1px; }
textarea { min-height: 7rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--error) !important; background: #fff3f1 !important; }
.error-msg { color: var(--error); font-size: .9rem; font-weight: 700; min-height: 0; }
.error-msg:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 700; }
.chip input:checked + span { background: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }
.form-alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 2px solid var(--error); background: #fff3f1; color: var(--error); font-weight: 700; margin-bottom: 1.25rem; }
.form-success { text-align: center; padding: 1rem 0; }
.form-success .tick { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--teal-tint); border: 2px solid var(--ink); color: var(--teal); }
.form-success .tick svg { width: 2.25rem; height: 2.25rem; }
.aside-card { padding: 1.5rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--teal-tint); margin-bottom: 1.25rem; }
.aside-card.sun { background: var(--sun-tint); }
.aside-card h2 { font-size: 1.35rem; }
.aside-card ol { counter-reset: s; display: grid; gap: .75rem; }
.aside-card ol li { counter-increment: s; display: flex; gap: .75rem; }
.aside-card ol li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; font-size: .9rem; }
.aside-card p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d7ea; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.site-footer .logo, .site-footer .logo:hover { color: var(--white); }
.site-footer .logo small { color: #bdbad6; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--sun); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer address { font-style: normal; }
.footer-tag { margin-top: 1rem; max-width: 22rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Light cards inside dark bands keep dark text */
.dark-band .teacher h3 { color: var(--ink); }
.hero-art .ph-main .img-label { left: 16%; bottom: 18%; }
@media (min-width: 900px) { .inst-grid { grid-template-columns: repeat(3, 1fr); } }
