/* Shared styles for the GC Music Academy sub-pages (instrument pages, teachers). Same tokens as the home page. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"), url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
:root {
  --black: #000000;
  --coal: #141210;
  --coal-2: #1C1915;
  --line: rgba(233, 169, 59, .22);
  --line-soft: rgba(244, 239, 228, .1);
  --text: #F4EFE4;
  --muted: #A69F8F;
  --gold-pale: #FCE6A4;
  --gold: #E9A93B;
  --gold-deep: #C9861A;
  --gold-grad: linear-gradient(100deg, #FCE6A4 0%, #F3CF7A 30%, #E9A93B 62%, #C9861A 100%);
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-variation-settings: "opsz" 16; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 4px;
  font: 600 16px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: filter .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--gold-grad); color: var(--black); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-line { border-color: rgba(233,169,59,.5); color: var(--gold-pale); background: rgba(0,0,0,.35); }
.btn-line:hover { border-color: var(--gold); color: #fff; }
.btn-black { background: var(--black); color: var(--gold-pale); }
.btn-black:hover { background: var(--coal-2); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* header */
.site-head { position: relative; z-index: 5; border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.wordmark { display: inline-block; line-height: 0; }
.wordmark img, .wordmark .logo-anim { height: 64px; width: auto; }
@keyframes logo-write { from { clip-path: inset(0 100% 0 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; color: rgba(244,239,228,.78); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-pale); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .btn { color: var(--black); padding: 10px 16px; font-size: 15px; }
.site-nav .btn:hover { color: var(--black); }
.site-nav .btn-line { color: var(--gold-pale); }
.site-nav .btn-line:hover { color: #fff; }
.site-nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1020px) { .site-nav > a:not(.btn) { display: none; } }
@media (max-width: 560px) {
  .site-head .wrap { gap: 8px; }
  .wordmark img, .wordmark .logo-anim { height: 52px; }
  .site-nav-actions { gap: 6px; }
  .site-nav .btn { padding: 9px 8px; font-size: 12px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .site-head .wrap { gap: 6px; }
  .wordmark img, .wordmark .logo-anim { height: 46px; }
  .site-nav-actions { gap: 4px; }
  .site-nav .btn { padding: 8px 6px; font-size: 11px; }
}

/* page hero */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(110% 90% at 85% 10%, #1D160B 0%, #000 62%); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 {
  margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: .92; font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 80; letter-spacing: -0.02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em;
}
.page-hero .lede { margin: 18px 0 0; max-width: 46ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: rgba(244,239,228,.86); }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); max-width: 620px; }
.facts li { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts .k { display: block; font-size: 13px; color: var(--muted); }
.facts .v { display: block; font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 340px); height: auto; max-height: 420px; fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(233,169,59,.35)); }
.hero-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.45,.05,.25,1) var(--dd, .2s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-art svg { animation: float 7s ease-in-out 2.6s infinite alternate; }
@keyframes float { to { transform: translateY(-10px) rotate(-1.5deg); } }
@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art svg { width: 150px; max-height: 190px; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .draw { animation: none; stroke-dashoffset: 0; }
  .hero-art svg, .wordmark img { animation: none; }
}

/* sections */
section.block { padding: clamp(56px, 7vw, 96px) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.alt { background: var(--coal); }
.block-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .block-head { grid-template-columns: 1fr; } }
h2 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; font-weight: 700; font-variation-settings: "opsz" 72, "wdth" 85; letter-spacing: -0.015em; max-width: 16ch; color: var(--gold-pale); }
h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 650; }
.prose { color: rgba(244,239,228,.8); }
.prose p { margin: 0 0 1em; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.text-link { color: var(--gold); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: var(--gold-pale); }

/* ruled list: what you'll learn */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.ruled li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.45; }
.ruled li::before { content: ""; width: 18px; height: 2px; background: var(--gold); margin-top: 13px; }

/* exam boards */
.boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--gold); }
.boards > div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.boards > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.boards b { display: block; font-size: 17px; color: var(--text); }
.boards span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (max-width: 760px) { .boards { grid-template-columns: 1fr; } .boards > div + div { padding-left: 0; border-left: 0; } }

/* teacher tiles (used on instrument pages and the teachers page) */
.teacher-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.teacher { display: flex; flex-direction: column; gap: 10px; }
.teacher .pic {
  position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  background: var(--coal-2); container-type: size;
}
.teacher .pic > span {
  position: absolute; inset: 0;
  background-image: url("https://erp-image.sgliteasset.com/_next/image?url=https%3A%2F%2Fs3.ap-southeast-1.amazonaws.com%2Fcdn1.sgliteasset.com%2Fguitarco%2Fimages%2Fwebstorepages%2Fwebstorepages-40334%2F68a870127ce5b_1755869202.jpg&w=2048&q=80");
  background-repeat: no-repeat;
  background-size: calc(2000 / 178 * 100cqw) auto;
  background-position: calc(var(--x) / -178 * 100cqw) calc(var(--y) / -178 * 100cqw);
}
/* the portal's photo (or its gold initials), 2026-10-24 */
.teacher .pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.teacher .pic.mono { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2a2112, #0d0b08 70%); }
.teacher .pic.mono b {
  font-size: 46cqw; font-weight: 800; line-height: 1; font-variation-settings: "opsz" 96, "wdth" 80;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.teacher h3 { margin: 0; font-size: 19px; color: var(--text); }
.teacher p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.teacher p a { color: var(--gold); text-decoration: none; }
.teacher p a:hover { text-decoration: underline; }
.teacher[hidden] { display: none; }

/* instrument index tiles */
.inst-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 2px solid var(--gold); }
.inst-grid a {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center;
  padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.inst-grid a:hover h3 { color: var(--gold-pale); }
/* instrument icons (tools/icons.py, the owner's gold line set): gold-gradient strokes, gradient #gc-gold in the footer */
svg.ico, svg.hero-guitar { display: block; overflow: visible; fill: none; stroke: url(#gc-gold); stroke-linecap: round; stroke-linejoin: round; }
svg.ico { stroke-width: 1.5; }
.hero-art svg.hero-guitar { width: min(100%, 230px); height: auto; max-height: 440px; filter: drop-shadow(0 0 18px rgba(233,169,59,.3)); animation: float 7s ease-in-out 1s infinite alternate; }
@media (max-width: 860px) { .hero-art svg.hero-guitar { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .hero-art svg.hero-guitar { animation: none; } }
.inst-grid .ico { width: 64px; height: 64px; flex: none; padding: 7px; box-sizing: border-box; border-radius: 6px;
  background: radial-gradient(circle at 30% 20%, #2a2112, #0d0b08 75%); border: 1px solid rgba(233,169,59,.3); transition: border-color .2s, transform .2s; }
.inst-grid a:hover .ico { border-color: var(--gold); transform: translateY(-2px); }
.hero-icon { display: grid; place-items: center; width: min(100%, 320px); aspect-ratio: 1; border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #2e2414, #0b0907 72%); border: 1px solid rgba(233,169,59,.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(233,169,59,.08); }
.hero-icon svg.ico { width: 74%; height: 74%; stroke-width: 1.2; filter: drop-shadow(0 0 16px rgba(233,169,59,.25)); animation: float 7s ease-in-out 1s infinite alternate; }
@media (max-width: 860px) { .hero-icon { width: 170px; } }
@media (prefers-reduced-motion: reduce) { .hero-icon .ico { animation: none; } }
@media (hover: none) { .inst-grid a:hover .ico { transform: none; } }
.inst-grid h3 { margin: 0; font-size: 20px; color: var(--text); transition: color .15s; }
.inst-grid p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.group-title { margin: 44px 0 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.group-title:first-child { margin-top: 0; }

/* filter buttons (teachers page) */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter button {
  font: 600 14px/1 var(--font); color: var(--text); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px;
}
.filter button:hover { border-color: var(--gold); }
.filter button[aria-pressed="true"] { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.count-note { color: var(--muted); font-size: 15px; margin: -12px 0 24px; }

/* enrol band */
.enrol { background: var(--gold-grad); color: var(--black); padding: clamp(48px, 6vw, 80px) 0; }
.enrol .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.enrol h2 { color: var(--black); max-width: 20ch; }
.enrol p { margin: 10px 0 0; max-width: 48ch; font-size: 17px; }
.enrol .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.enrol .actions a.plain { color: var(--black); font-weight: 700; }

/* footer */
.site-foot { background: var(--black); color: rgba(244,239,228,.72); font-size: 15px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand p { margin: 16px 0 20px; max-width: 34ch; line-height: 1.55; }
.foot-brand .btn { padding: 11px 18px; font-size: 15px; }
.site-foot .wordmark img { height: 84px; animation: none; }
.site-foot h2 { color: var(--gold-pale); font-size: 15px; margin: 4px 0 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 9px; line-height: 1.5; }
.site-foot ul a { text-decoration: none; }
.site-foot ul a:hover { color: var(--gold-pale); text-decoration: underline; text-underline-offset: 3px; }
.foot-branches li { margin-bottom: 16px; }
.foot-branches b { display: block; color: var(--text); font-weight: 600; }
.foot-branches a { display: inline-block; margin-left: 8px; color: var(--gold); font-weight: 600; }
.foot-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line-soft); font-size: 13px; color: rgba(244,239,228,.5); }
.foot-bottom a { color: rgba(244,239,228,.7); text-decoration: none; }
.foot-sites { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; }
.foot-sites-label { color: rgba(244,239,228,.5); font-size: 11px; text-transform: uppercase; }
.foot-sites a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.foot-sites b { color: var(--gold-pale); font-size: 12px; }
.foot-sites a span { color: rgba(244,239,228,.62); }
.foot-bottom a:hover { color: var(--gold-pale); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .foot-bottom { grid-template-columns: 1fr auto; }
  .foot-sites { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .foot-sites-label { grid-column: 1 / -1; }
  .foot-sites a { display: block; }
  .foot-sites a span { display: block; margin-top: 2px; }
}
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-sites { grid-template-columns: 1fr; }
}

/* common questions (instrument pages) */
.faq { margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--gold); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; font-variation-settings: "opsz" 32, "wdth" 92; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-pale); }
.faq summary .plus { flex: none; width: 20px; height: 20px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--gold); transition: transform .2s ease; }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .answer { padding: 0 0 22px; max-width: 64ch; color: rgba(244,239,228,.78); }
.faq .answer p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary .plus::after { transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h2.group-title { margin: 44px 0 0; max-width: none; font-size: 15px; line-height: 1.4; color: var(--muted); font-weight: 600; font-variation-settings: "opsz" 16; letter-spacing: 0; }
h2.group-title:first-child { margin-top: 0; }

/* concerts and events */
.events-hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.hero-photo { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 60px rgba(233,169,59,.15); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .events-hero .wrap { grid-template-columns: 1fr; } .events-hero .hero-photo { order: 0; } }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.kind { display: flex; flex-direction: column; gap: 14px; }
.kind figure { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.kind img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kind h3 { font-size: 22px; color: var(--gold-pale); margin: 0 0 6px; font-variation-settings: "opsz" 40, "wdth" 88; }
.kind p { margin: 0; color: rgba(244,239,228,.8); max-width: 52ch; }
.kind.no-photo { border-top: 2px solid var(--gold); padding-top: 18px; justify-content: flex-start; }
@media (max-width: 760px) { .kinds { grid-template-columns: 1fr; } }
.big-quote { margin: 0 auto; max-width: 30ch; text-align: center; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; font-weight: 700; font-variation-settings: "opsz" 72, "wdth" 86; color: var(--gold-pale); }
.big-quote p { margin: 0; }
.big-quote footer { margin-top: 18px; font-size: 16px; font-weight: 400; color: var(--muted); }
.event-empty { border-top: 2px solid var(--gold); padding-top: 20px; }
.event-empty p { margin: 0 0 18px; color: rgba(244,239,228,.8); max-width: 52ch; }
.event-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.event-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-row time b { display: block; color: var(--gold-pale); font-size: 17px; }
.event-row time { color: var(--muted); font-size: 15px; }
.event-row h3 { margin: 0 0 4px; }
.event-row p { margin: 0; color: rgba(244,239,228,.8); }
.event-row .where { color: var(--muted); font-size: 15px; margin-top: 6px; }
.event-row .event-photo { margin: 12px 0 0; max-width: 420px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.event-row .event-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 560px) { .event-row { grid-template-columns: 1fr; gap: 6px; } }
.news { border-top: 2px solid var(--gold); }
.news-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item h3 { font-size: 20px; color: var(--text); }
.news-item p { margin: 0 0 12px; color: rgba(244,239,228,.8); max-width: 60ch; }

/* moments from past events: round photos cut from the academy slide, like records on a shelf */
.moments-block { content-visibility: auto; contain-intrinsic-size: auto 560px; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.moments li { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.moments .round {
  position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  container-type: size; border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(233,169,59,.12), 0 0 40px rgba(233,169,59,.18);
  background: var(--coal-2);
}
.moments .round > span {
  position: absolute; inset: 0;
  background-image: url("https://erp-image.sgliteasset.com/_next/image?url=https%3A%2F%2Fcdn1.sgliteasset.com%2Fguitarco%2Fimages%2Ftexteditor%2F6_1768721471.jpg&w=1920&q=80");
  background-repeat: no-repeat;
  background-size: calc(1920 / var(--d) * 100cqw) auto;
  background-position: calc(var(--x) / var(--d) * -100cqw) calc(var(--y) / var(--d) * -100cqw);
}
.moments p { margin: 0; color: rgba(244,239,228,.82); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) { .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }

/* skip link: hidden until a keyboard user tabs to it */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold-grad); color: #000; font-weight: 700; padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.event-row .more { margin-top: 8px; }
/* past events: a timeline grouped by year; a photo preview opens the album */
.tl-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 36px; }
.tl-head h2 { margin: 0; }
.tl-head p { margin: 0; color: var(--muted); max-width: 48ch; }
.timeline, .timeline ol { list-style: none; margin: 0; padding: 0; }
.tl-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 28px; }
.tl-year > h3 {
  margin: 0; padding-top: 22px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 800;
  font-stretch: 80%; letter-spacing: -.02em; color: var(--gold-pale);
  position: sticky; top: 96px; align-self: start;
}
.tl-year > ol { border-left: 2px solid var(--line); }
.tl-year:first-child > ol { border-image: linear-gradient(var(--gold), var(--line) 160px) 1; }
.tl-event {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 36px;
  padding: 22px 0 30px 32px; border-bottom: 1px solid var(--line-soft);
}
.tl-year:last-child .tl-event:last-child { border-bottom: 0; }
.tl-event:not(.has-album) { grid-template-columns: minmax(0, 1fr); }
.tl-event::before {
  content: ""; position: absolute; left: -7px; top: 30px; width: 12px; height: 12px;
  background: var(--black); border: 2px solid var(--gold); transform: rotate(45deg);
}
.tl-text time { display: block; color: var(--gold); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.tl-text h4 { margin: 4px 0 8px; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.2; font-weight: 700; }
.tl-text p { margin: 0; color: rgba(244,239,228,.8); max-width: 52ch; }
.tl-text .where { color: var(--muted); font-size: 15px; margin: 8px 0 12px; }

.album-preview {
  position: relative; display: grid; gap: 4px; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 4px; border: 1px solid var(--line); text-decoration: none; background: var(--coal);
}
.album-preview.tiles-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.album-preview.tiles-3 img:first-child { grid-row: 1 / 3; }
.album-preview.tiles-2 { grid-template-columns: 1fr 1fr; }
.album-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(.92); }
.album-preview:hover img { transform: scale(1.04); filter: saturate(1.05); }
.album-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: var(--gold-pale); font-weight: 600; font-size: 15px;
}
.album-label::after { content: " \2192"; transition: margin .2s; }
.album-preview:hover .album-label::after { margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .album-preview img { transition: none; } .album-preview:hover img { transform: none; } }
@media (max-width: 860px) {
  .tl-year { grid-template-columns: 1fr; }
  .tl-year > h3 { position: static; padding: 26px 0 6px; }
  .tl-event { grid-template-columns: 1fr; padding-left: 24px; }
}

/* the album: a full-screen dialog with a photo grid, and a viewer for one photo at a time */
dialog.album {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--black); color: var(--text); overflow-y: auto; overscroll-behavior: contain;
}
dialog.album::backdrop { background: rgba(0,0,0,.8); }
.album-head {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 20px;
  padding: 20px var(--gutter) 18px; background: rgba(0,0,0,.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.album-head h2 { margin: 2px 0 8px; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.album-when { margin: 0; color: var(--gold); font-weight: 600; font-size: 15px; }
.album-story p { margin: 0 0 6px; color: rgba(244,239,228,.8); max-width: 75ch; font-size: 16px; }
.album-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.album-close, .album-back {
  flex: none; padding: 10px 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--coal-2);
  color: var(--text); font: 600 15px/1 var(--font); cursor: pointer;
}
.album-close:hover, .album-back:hover { border-color: var(--gold); color: var(--gold-pale); }
.album-grid {
  list-style: none; margin: 0; padding: 18px var(--gutter) 48px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); gap: 8px;
}
.album-grid button { display: block; width: 100%; padding: 0; border: 0; background: var(--coal); cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.album-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.album-grid button:hover img { opacity: .85; }
.album-viewer {
  position: fixed; inset: 0; z-index: 5; background: #000;
  display: grid; grid-template-rows: 68px minmax(0, 1fr) auto; justify-items: center; align-items: center;
}
.album-viewer[hidden] { display: none; }
.album-viewer > img { grid-row: 2; max-width: calc(100vw - 2 * var(--gutter)); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.album-strip {
  grid-row: 3; justify-self: stretch; display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter) 16px;
  border-top: 1px solid var(--line-soft); scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.album-strip button {
  flex: none; width: 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 3px;
  background: var(--coal); cursor: pointer; overflow: hidden; opacity: .55; transition: opacity .2s, border-color .2s;
}
.album-strip button:hover { opacity: .9; }
.album-strip button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.album-strip img { width: 100%; height: 100%; object-fit: cover; }
.album-strip button:first-child { margin-left: auto; }
.album-strip button:last-child { margin-right: auto; }
.album-back { position: absolute; top: 16px; left: var(--gutter); }
.album-count { position: absolute; top: 16px; right: var(--gutter); margin: 0; padding: 10px 0; color: var(--muted); font-size: 15px; }
.album-prev, .album-next {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 4px;
  border: 1px solid var(--line); background: rgba(20,18,16,.8); color: var(--gold-pale); font-size: 22px; cursor: pointer;
}
.album-prev { left: var(--gutter); }
.album-next { right: var(--gutter); }
.album-prev:hover, .album-next:hover { border-color: var(--gold); }
@media (max-width: 560px) {
  .album-prev, .album-next { width: 44px; height: 44px; font-size: 18px; }
  .album-strip button { width: 72px; height: 54px; }
}
html:has(dialog.album[open]) { overflow: hidden; }

/* teachers page header: a wall of real teacher photos (from the portal), middle column dropped for rhythm */
.teacher-wall { list-style: none; margin: 0; padding: 0; width: min(100%, 440px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.teacher-wall li { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--coal-2); aspect-ratio: 1; }
.teacher-wall li:nth-child(3n+2) { transform: translateY(26px); }
.teacher-wall img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.teacher-wall span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 14px; font-weight: 600; color: var(--gold-pale);
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
@media (max-width: 860px) { .teacher-wall { width: 100%; max-width: 420px; margin: 8px auto 26px; } }

/* teacher profile page */
.teacher-tagline { margin: 10px 0 0; color: var(--gold); font-weight: 600; }
.teacher-hero .facts { margin-top: 22px; }
.teacher-photo { margin: 0; justify-self: center; width: min(100%, 340px); aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--coal-2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo.mono { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2a2112, #0d0b08 70%); }
.teacher-photo.mono b { font-size: clamp(64px, 9vw, 110px); font-weight: 800; font-stretch: 80%; color: var(--gold-pale); }
.video-facade, .video-frame { position: relative; display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; translate: -50% -50%; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.video-facade .play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #1a1206; }
.teacher .pic-link { display: block; text-decoration: none; }
.teacher h3 a { text-decoration: none; }
.teacher h3 a:hover { color: var(--gold-pale); text-decoration: underline; }
.teacher-hero .facts { grid-template-columns: 2fr 1fr; }
.teacher-hero .facts .v a { color: inherit; }

/* phone action bar on instrument and teacher pages (assets/cta.js shows it) */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,9,8,.96);
    border-top: 1px solid var(--line); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.show { transform: none; }
  .consent-open .mobile-cta { transform: translateY(110%); }
  .mobile-cta .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: 15px; }
  body:has(.mobile-cta) .site-foot { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* teachers page header: the numbers and how matching works (instead of a photo wall) */
.teacher-facts { width: min(100%, 460px); }
.tf-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--gold); }
.tf-stats li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.tf-stats li:nth-child(odd) { border-right: 1px solid var(--line); }
.tf-stats li:nth-child(even) { padding-left: 18px; }
.tf-stats b { display: block; font-size: clamp(34px, 4vw, 48px); line-height: 1; font-weight: 800; font-stretch: 80%; color: var(--gold-pale); }
.tf-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.tf-exams { margin: 16px 0 0; color: rgba(244,239,228,.85); font-size: 15px; }
.tf-exams b { color: var(--text); font-weight: 600; }
.tf-title { margin: 26px 0 10px; font-size: 18px; color: var(--gold); font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.tf-steps { margin: 0; padding: 0; list-style: none; counter-reset: tf; }
.tf-steps li { counter-increment: tf; position: relative; padding: 0 0 12px 34px; color: rgba(244,239,228,.85); font-size: 15px; line-height: 1.5; }
.tf-steps li::before { content: counter(tf); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold); font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .teacher-facts { width: 100%; margin-top: 8px; } }
.tf-title { max-width: none; }
@media (max-width: 860px) { .page-hero .hero-art:has(.teacher-facts) { order: 2; } }

/* News & stories (news/*.php, live from the portal) */
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.story-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--coal); transition: border-color .2s; }
.story-card a:hover { border-color: var(--gold); }
.story-card img, .story-noimg { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-noimg { background: radial-gradient(circle at 30% 25%, #2a2112, #0d0b08 70%); }
.story-date { display: block; color: var(--gold); font-size: 14px; font-weight: 600; }
.story-card .story-date { padding: 16px 18px 0; }
.story-card h3 { margin: 6px 18px 8px; font-size: 20px; line-height: 1.25; }
.story-card a:hover h3 { color: var(--gold-pale); }
.story-card p { margin: 0 18px 18px; color: rgba(244,239,228,.78); font-size: 15px; }
.story-hero .wrap { align-items: center; }
.story-meta { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.story-meta a { color: var(--gold-pale); }
.story-cover { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.story-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.story-body { max-width: 760px; }
.story-body .prose h2 { max-width: none; margin: 30px 0 10px; font-size: clamp(22px, 2.4vw, 28px); }
.story-link { margin: 26px 0 0; }
.story-gallery { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 45%), 1fr)); gap: 10px; }
.story-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-soft); }
.story-teachers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.story-teachers a { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: inherit; background: var(--coal-2); }
.story-teachers a:hover { border-color: var(--gold); }
.st-pic { grid-row: 1 / 4; width: 72px; height: 72px; border-radius: 4px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2a2112, #0d0b08 70%); }
.st-pic img { width: 100%; height: 100%; object-fit: cover; }
.st-pic b { font-size: 28px; font-weight: 800; color: var(--gold-pale); }
.st-name { font-weight: 700; font-size: 18px; }
.st-line { color: var(--muted); font-size: 14px; }
.st-more { color: var(--gold); font-size: 14px; font-weight: 600; align-self: end; }
.in-news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.in-news a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.in-news b { display: block; margin-top: 2px; font-size: 18px; }
.in-news a:hover b { color: var(--gold-pale); }

/* footer social links */
.site-foot .foot-follow { margin-top: 26px; }
.foot-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); transition: color .15s, border-color .15s; }
.foot-social a:hover { color: var(--gold-pale); border-color: var(--gold); }
.foot-social svg { width: 20px; height: 20px; }

.foot-short { display: none; }
@media (max-width: 560px) {
  /* phones: a compact footer - short intro, Explore and Contact side by side, branches side by side */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-top: 34px; padding-bottom: 22px; }
  .foot-brand, .foot-grid > :last-child { grid-column: 1 / -1; }
  .foot-brand { display: flex; align-items: center; gap: 14px; }
  .foot-brand .wordmark { flex: none; }
  .foot-brand .wordmark img, .site-foot .foot-brand .wordmark img { height: 54px; width: auto; max-width: none; }
  .foot-brand p { margin: 0; font-size: 14px; line-height: 1.45; }
  .foot-brand .btn { display: none; }
  .foot-long { display: none; }
  .foot-short { display: inline; }
  .site-foot h2 { margin-bottom: 10px; }
  .site-foot li { margin-bottom: 6px; font-size: 14px; }
  .site-foot .foot-follow { margin-top: 16px; }
  .foot-social { gap: 8px; }
  .foot-social a { width: 36px; height: 36px; }
  .foot-social svg { width: 18px; height: 18px; }
  .foot-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .foot-branches li { margin: 0; font-size: 13px; }
  .foot-branches a { display: block; margin: 4px 0 0; }
  .foot-bottom { padding-top: 14px; padding-bottom: 18px; }
}

/* instruments page header: "Find your instrument" guide (instead of a picture) */
.finder { width: min(100%, 460px); }
.finder ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.finder li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.finder li span { display: block; color: var(--muted); font-size: 14px; }
.finder li p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.finder li a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.finder li a:hover { color: var(--gold-pale); }
.finder-note { margin: 14px 0 0; color: rgba(244,239,228,.8); font-size: 15px; }
@media (max-width: 860px) { .finder { width: 100%; } .page-hero .hero-art:has(.finder) { order: 2; } }

/* branch pages and the questions page */
.branch-card { width: min(100%, 460px); border-top: 2px solid var(--gold); padding-top: 4px; }
.qa-wrap { max-width: 860px; }
.qa-wrap .group-title { margin-top: 36px; }
.qa-wrap .group-title:first-child { margin-top: 0; }
.site-foot .foot-branches b a { color: var(--text); text-decoration: none; }
.site-foot .foot-branches b a:hover { color: var(--gold-pale); text-decoration: underline; }
@media (max-width: 860px) { .page-hero .hero-art:has(.branch-card) { order: 2; } .branch-card { width: 100%; } }
.hours { list-style: none; margin: 0 0 6px; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.hours span { color: var(--muted); }
.hours b { font-weight: 600; color: var(--text); }

/* review page (/review): the link and QR code families get */
.review-branches { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; max-width: 760px; }
.review-branches li { padding: 22px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 6px; background: var(--coal-2); }
.review-branches h2 { margin: 0; font-size: 26px; color: var(--gold-pale); }
.review-branches p { margin: 4px 0 16px; color: var(--muted); font-size: 15px; }
.review-tips { margin-top: 30px; max-width: 760px; }
.review-tips ul { margin: 0; padding-left: 20px; color: rgba(244,239,228,.85); }
.review-tips li { margin-bottom: 6px; }

/* logo draw-on (logo_svg in build_pages.py): words wipe in, a brush traces the swoosh, the tagline and the full logo settle */
.logo-anim { display: block; width: auto; overflow: visible; }
.logo-anim .lw-text { transform-box: fill-box; transform-origin: left center; animation: lw-wipe .7s cubic-bezier(.6,.05,.3,1) var(--ld, .1s) both; }
.logo-anim .lw-pen { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: lw-draw 1.1s cubic-bezier(.45,.05,.25,1) calc(var(--ld, .1s) + .35s) forwards; }
.logo-anim .lw-tag { opacity: 0; animation: lw-in .5s ease calc(var(--ld, .1s) + 1.2s) forwards; }
.logo-anim .lw-full { opacity: 0; animation: lw-in .4s ease calc(var(--ld, .1s) + 1.5s) forwards; }
@keyframes lw-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lw-draw { to { stroke-dashoffset: 0; } }
@keyframes lw-in { to { opacity: 1; } }
/* intro: full screen, first page of a visit (assets/intro.js sets html.gc-intro) */
.logo-intro { display: none; }
html.gc-intro .logo-intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #000; pointer-events: none;
  animation: intro-out .45s ease 2.05s forwards; }
html.gc-intro .logo-intro .logo-anim { width: min(70vw, 420px); height: auto; --ld: .1s; filter: drop-shadow(0 0 30px rgba(233,169,59,.25)); }
html.gc-intro .site-head .logo-anim { --ld: 2.1s; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .logo-anim .lw-text, .logo-anim .lw-pen, .logo-anim .lw-tag, .logo-anim .lw-full { animation: none; }
  .logo-anim .lw-pen { stroke-dashoffset: 0; }
  .logo-anim .lw-tag, .logo-anim .lw-full { opacity: 1; }
  html.gc-intro .logo-intro { display: none; }
}
