/* ================================================================
   8 COUNTS PERFORMING ARTS — design system
   Concept: the "8 count" a dancer starts every routine on.
   Marquee display type + metronomic mono counts as the signature.
   ================================================================ */

:root {
  /* --- brand (sampled from logo) --- */
  --orange:      #FF6600;
  --orange-ink:  #E14E00;   /* readable orange on light */
  --orange-deep: #C23F00;
  --teal:        #1B9E93;
  --teal-ink:    #14766D;

  /* --- neutrals --- */
  --ink:         #131317;   /* stage black */
  --ink-2:       #1C1C22;
  --text:        #26262C;
  --muted:       #6A6A72;
  --bg:          #FFFFFF;
  --paper:       #FBF8F3;   /* warm bone, used sparingly */
  --line:        #E9E5DD;
  --line-strong: #D8D3C8;

  /* --- tints --- */
  --orange-tint: #FFF0E5;
  --teal-tint:   #E6F4F2;

  /* --- type --- */
  --display: 'Archivo Expanded', 'Archivo', system-ui, sans-serif;
  --body:    'Archivo', system-ui, -apple-system, sans-serif;
  --mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* --- radii + shadow --- */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow:      0 1px 2px rgba(19,19,23,.05), 0 8px 24px rgba(19,19,23,.06);
  --shadow-lift: 0 18px 44px rgba(19,19,23,.16);
  --ease-plie:   cubic-bezier(.34, 1.56, .64, 1); /* springy, dance-like settle */
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.9rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p  { margin: 0 0 1rem; color: var(--muted); }

em, .accent-italic { font-style: normal; color: var(--orange-ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }

/* --- the signature "count" label --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--orange-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px; background: var(--orange);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline, .btn-dark, .btn-mini {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 700; cursor: pointer; border: none;
  border-radius: var(--r-pill); transition: transform .3s var(--ease-plie), box-shadow .3s var(--ease-plie), background .18s, color .18s;
  font-size: .95rem; padding: 14px 30px; line-height: 1;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,102,0,.28); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-3px) scale(1.035); box-shadow: 0 14px 28px rgba(255,102,0,.36); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-3px) scale(1.035); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-3px) scale(1.035); }
.btn-mini { padding: 10px 20px; font-size: .84rem; background: var(--ink); color: #fff; }
.btn-primary:focus-visible, .btn-outline:focus-visible, .btn-dark:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: 14px 0;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-mark { display: flex; align-items: center; }
.logo-mark img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 600; }
.nav-links a:not(.btn-primary) { position: relative; color: var(--text); padding: 4px 0; }
.nav-links a:not(.btn-primary)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .2s ease;
}
.nav-links a:not(.btn-primary):hover::after { width: 100%; }
.nav-links .btn-primary { padding: 11px 24px; font-size: .88rem; }

/* ================================================================
   HERO — the recital marquee
   ================================================================ */
.hero {
  background:
    radial-gradient(120% 90% at 100% 0%, var(--orange-tint) 0%, transparent 42%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 76px 0 84px;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .stage { color: var(--orange); position: relative; white-space: nowrap; }
.hero .lead { font-size: 1.12rem; color: var(--text); max-width: 470px; margin-bottom: 30px; }
.hero-motto { font-family: var(--mono); font-size: .85rem; font-style: italic; letter-spacing: .02em; color: var(--orange); margin: -18px 0 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* the count-in ticker (signature) */
.count-in {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.count-in .label {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-right: 6px;
}
.beat {
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--muted);
  border: 1.5px solid var(--line-strong);
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.beat.on {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: translateY(-3px);
}
.beat.accent.on { background: var(--orange); border-color: var(--orange); }

/* hero stage image */
.hero-stage {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid #fff;
  rotate: 1.5deg;
}
.hero-stage img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(19,19,23,.35));
}
.hero-chip {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.94); color: var(--ink);
  padding: 9px 15px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 8px;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: #fff;
}
.stat-item { text-align: center; padding: 30px 20px; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: var(--display); font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-item .num span { color: var(--orange); }
.stat-item .num span[data-count-to] { color: #fff; }
.stat-item .lbl {
  font-family: var(--mono); font-size: .68rem; font-weight: 700; margin-top: 8px;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6);
}

/* ---------- Section head ---------- */
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Class cards ---------- */
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.class-card {
  position: relative; height: 400px; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.class-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.class-card:hover img { transform: scale(1.07); }
.class-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,20,.9) 0%, rgba(15,15,20,.2) 52%, transparent 82%);
}
.class-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px 24px; color: #fff; }
.class-card-count { font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .1em; opacity: .85; margin-bottom: 6px; }
.class-card-count .n { color: var(--orange); }
.class-card-body h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.class-card-body p { color: rgba(255,255,255,.82); font-size: .9rem; margin: 0; max-width: 30ch; }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 11px; border-radius: var(--r-pill); }
.tag.t-orange { background: var(--orange-tint); color: var(--orange-ink); }
.tag.t-teal { background: var(--teal-tint); color: var(--teal-ink); }

/* ---------- Gallery ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.album-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.album-card-img { position: relative; height: 230px; overflow: hidden; }
.album-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .album-card-img img { transform: scale(1.06); }
.album-count-badge {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  background: rgba(19,19,23,.82); color: #fff; padding: 6px 12px; border-radius: var(--r-pill);
}
.album-card-body { padding: 20px 22px 24px; }
.album-card-date { font-family: var(--mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-ink); margin-bottom: 8px; }
.album-card-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.album-card-body p { font-size: .9rem; margin: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.photo-grid-item { border-radius: var(--r-md); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--paper); }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo-grid-item:hover img { transform: scale(1.07); }

/* ---------- Lightbox ---------- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(10,10,12,.96); z-index: 200; align-items: center; justify-content: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--r-sm); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; border: none; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .18s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--orange); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); color: #fff; font-size: .82rem; opacity: .8; }

/* ---------- Dark "stage" section ---------- */
.dark-section { background: var(--ink); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.dark-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% -10%, rgba(255,102,0,.16), transparent 60%);
}
.dark-section .container { position: relative; z-index: 1; }
.dark-section h2 { color: #fff; }
.dark-section .eyebrow { color: var(--orange); }
.dark-section p { color: rgba(255,255,255,.72); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.value-card { padding: 30px 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.value-card:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.value-card .vc-count { font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--orange); margin-bottom: 16px; }
.value-card h3 { color: #fff; font-size: 1.2rem; }
.value-card p { color: rgba(255,255,255,.68); font-size: .92rem; margin: 0; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background:
    radial-gradient(110% 80% at 88% 0%, var(--orange-tint) 0%, transparent 46%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.page-hero .lead { font-size: 1.12rem; color: var(--text); max-width: 620px; }
.page-hero.center { text-align: center; }
.page-hero.center .eyebrow { justify-content: center; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Program rows (classes page) ---------- */
.program-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; margin-bottom: 72px; }
.program-row:last-child { margin-bottom: 0; }
.program-row.rev .program-media { order: 2; }
.program-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow); }
.program-media img { width: 100%; height: 100%; object-fit: cover; }
.program-copy .count-mark { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.program-copy .count-mark .n { color: var(--orange); }
.program-copy p strong { color: var(--ink); }

/* ---------- About mission ---------- */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mission-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.mission-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: .95rem; font-family: var(--body); background: #fff; color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,102,0,.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-info-item .ci-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item strong { font-family: var(--display); color: var(--ink); }

/* ---------- Flash ---------- */
.flash { padding: 14px 18px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; margin-bottom: 18px; }
.flash-success { background: var(--teal-tint); color: var(--teal-ink); border: 1px solid rgba(27,158,147,.25); }
.flash-error { background: #FDECEC; color: #C1352E; border: 1px solid rgba(193,53,46,.2); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 600px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 60px 0 30px; position: relative; }
.site-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 16px;
  background-image: radial-gradient(circle at 10px 3px, var(--orange) 0 3.5px, transparent 4.2px);
  background-size: 28px 16px; background-repeat: repeat-x;
  opacity: .8; filter: drop-shadow(0 0 5px rgba(255,102,0,.55));
  pointer-events: none;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-grid a { display: block; margin-bottom: 10px; color: rgba(255,255,255,.72); font-size: .92rem; transition: color .16s; }
.footer-grid a:hover { color: var(--orange); }
.footer-grid strong { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.footer-logo img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-count { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--orange); margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.45); text-align: center; font-family: var(--mono); letter-spacing: .04em; }

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state p { font-family: var(--mono); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px) rotate(-1.1deg); transition: opacity .65s cubic-bezier(.34,1.56,.64,1), transform .65s cubic-bezier(.34,1.56,.64,1); }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-stage { rotate: 0deg; max-width: 440px; }
  .mission-grid, .program-row, .program-row.rev { grid-template-columns: 1fr; gap: 28px; }
  .program-row.rev .program-media { order: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   GALLERY — the centerpiece: a performance archive
   ================================================================ */

/* --- cinematic featured hero --- */
.gallery-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.gallery-hero-bg { position: absolute; inset: 0; z-index: 0; }
.gallery-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: ghZoom 18s ease-out forwards; }
@keyframes ghZoom { to { transform: scale(1.14); } }
.gallery-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,15,20,.35) 0%, rgba(15,15,20,.2) 40%, rgba(15,15,20,.92) 100%); }
.gallery-hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 54px; width: 100%; }
.gallery-hero .eyebrow { color: #fff; }
.gallery-hero .eyebrow::before { background: var(--orange); }
.gh-feature-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.gh-feature-tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,102,0,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,102,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,102,0,0); } }
.gallery-hero h1 { color: #fff; max-width: 16ch; margin-bottom: 14px; }
.gallery-hero .gh-desc { color: rgba(255,255,255,.82); max-width: 54ch; font-size: 1.06rem; margin-bottom: 26px; }
.gh-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; font-family: var(--mono); font-size: .82rem; color: rgba(255,255,255,.85); }
.gh-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }
.gh-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-glass { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; padding: 14px 26px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); transition: background .18s, transform .14s; }
.btn-glass:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* --- stats ribbon --- */
.gallery-stats { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.gallery-stats .gs { padding: 22px 40px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.gallery-stats .gs:last-child { border-right: none; }
.gallery-stats .gs .n { font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: #fff; line-height: 1; }
.gallery-stats .gs .n span { color: #fff; }
.gallery-stats .gs .n .gs-plus { color: var(--orange); }
.gallery-stats .gs .l { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 7px; }

/* --- filter bar --- */
.gallery-toolbar { position: sticky; top: 67px; z-index: 40; background: rgba(19,19,23,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.gallery-toolbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 9px 16px; border-radius: var(--r-pill); border: 1.5px solid rgba(255,255,255,.18); background: transparent; color: rgba(255,255,255,.72); cursor: pointer; transition: all .16s; display: inline-flex; align-items: center; gap: 7px; }
.chip .ct { font-size: .68rem; opacity: .6; }
.chip:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.chip.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.chip.active .ct { opacity: .85; }
.toolbar-count { font-family: var(--mono); font-size: .78rem; color: rgba(255,255,255,.45); }
.toolbar-count b { color: #fff; }

/* --- archive: a wall of recital ticket stubs --- */
.gallery-archive { background: var(--ink); padding: 48px 0 96px; }
.gallery-archive .empty-state { color: rgba(255,255,255,.5); }

.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px 24px; }
.mosaic-item {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateY(16px) scale(.99);
  transition: opacity .5s ease, transform .5s ease, border-color .25s ease, box-shadow .25s ease;
}
.mosaic-item.in { opacity: 1; transform: none; }
.mosaic-item.hide { display: none; }
.mosaic-item:hover { border-color: rgba(255,102,0,.55); box-shadow: 0 22px 50px rgba(0,0,0,.55); }

/* photo dims to "backstage" by default; hovering brings the spotlight up — the tagline's own idea, made literal */
.mi-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.mi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) brightness(.82); transition: filter .5s ease, transform .6s ease; }
.mosaic-item:hover .mi-photo img { filter: saturate(1) brightness(1); transform: scale(1.045); }
.mi-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.4), transparent 46%); }
.mi-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% -10%, rgba(255,102,0,.4), transparent 62%); opacity: 0; transition: opacity .5s ease; }
.mosaic-item:hover .mi-photo::after { opacity: 1; }

.mi-view { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s, background .18s; }
.mosaic-item:hover .mi-view { opacity: 1; transform: scale(1); }
.mi-view:hover { background: var(--orange); border-color: var(--orange); }

/* the ticket stub — perforated tear line with punched notches at each edge */
.mi-stub { position: relative; padding: 16px 18px 18px; border-top: 2px dashed rgba(255,255,255,.16); }
.mi-stub::before, .mi-stub::after { content: ''; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.mi-stub::before { left: -9px; }
.mi-stub::after { right: -9px; }
.mi-tagline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.mi-program { color: var(--orange); }
.mi-date { color: rgba(255,255,255,.4); }
.mi-stub h3 { color: #fff; font-size: 1.16rem; margin-bottom: 12px; }
.mi-stub-foot { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.mi-adm { color: var(--teal); letter-spacing: .06em; }
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr; } }

/* ================================================================
   ALBUM DETAIL
   ================================================================ */
.album-cover { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.album-cover-bg { position: absolute; inset: 0; }
.album-cover-bg img { width: 100%; height: 100%; object-fit: cover; }
.album-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,20,.45), rgba(15,15,20,.35) 42%, rgba(15,15,20,.94)); }
.album-cover .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 48px; width: 100%; }
.album-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 22px; transition: color .16s; }
.album-back:hover { color: var(--orange); }
.album-cover .eyebrow { color: var(--orange); }
.album-cover .eyebrow::before { background: var(--orange); }
.album-cover h1 { color: #fff; margin-bottom: 14px; max-width: 18ch; }
.album-cover .ac-desc { color: rgba(255,255,255,.82); max-width: 58ch; font-size: 1.05rem; margin-bottom: 24px; }
.ac-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* uniform photo grid — same width/height tiles, image cropped to fit */
.album-photos-section { background: var(--ink); padding: 52px 0 96px; }
.album-photos-section .empty-state { color: rgba(255,255,255,.5); }
.masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.masonry .photo { aspect-ratio: 4 / 3; margin: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; position: relative; background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.masonry .photo.in { opacity: 1; transform: none; }
.masonry .photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) brightness(.85); transition: filter .5s ease, transform .5s ease; }
.masonry .photo:hover img { filter: saturate(1) brightness(1); transform: scale(1.05); }
.masonry .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 40%); pointer-events: none; }
.photo-expand { position: absolute; bottom: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s, background .18s; }
.masonry .photo:hover .photo-expand { opacity: 1; transform: scale(1); }
.photo-expand:hover { background: var(--orange); border-color: var(--orange); }
@media (max-width: 640px) { .masonry { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } }

/* ================================================================
   PREMIUM LIGHTBOX — filmstrip + slideshow + swipe + zoom
   ================================================================ */
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.97); backdrop-filter: blur(4px); flex-direction: column; }
.lightbox.open { display: flex; }
.lb-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; color: #fff; flex-shrink: 0; z-index: 3; }
.lb-title { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.lb-title b { color: #fff; }
.lb-tools { display: flex; align-items: center; gap: 8px; }
.lb-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .16s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn.play.on { background: var(--orange); }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 66px; }
.lb-figure { position: relative; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: min(1400px, 92vw); max-height: 74vh; border-radius: var(--r-sm); box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: opacity .25s ease; cursor: zoom-in; user-select: none; }
.lb-img.zoomed { cursor: zoom-out; max-width: none; max-height: none; }
.lb-img.fading { opacity: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; border: none; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .16s; z-index: 3; }
.lb-nav:hover { background: var(--orange); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-caption { text-align: center; color: rgba(255,255,255,.8); font-size: .92rem; padding: 12px 22px 4px; min-height: 22px; flex-shrink: 0; }
.lb-progress { height: 3px; background: rgba(255,255,255,.12); flex-shrink: 0; }
.lb-progress-bar { height: 100%; width: 0; background: var(--orange); }
.lb-filmstrip { display: flex; gap: 8px; padding: 12px 22px 18px; overflow-x: auto; flex-shrink: 0; scrollbar-width: thin; scroll-behavior: smooth; }
.lb-thumb { flex: 0 0 auto; width: 76px; height: 54px; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .45; outline: 2px solid transparent; transition: opacity .16s, outline-color .16s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb.active { opacity: 1; outline-color: var(--orange); }
.lb-counter { font-family: var(--mono); font-size: .82rem; color: rgba(255,255,255,.7); }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-nav { width: 42px; height: 42px; } .lb-img { max-height: 62vh; } }

@media (prefers-reduced-motion: reduce) {
  .gallery-hero-bg img { animation: none; transform: none; }
  .gh-feature-tag .pulse { animation: none; }
  .mosaic-item, .masonry .photo { opacity: 1; transform: none; }
}

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-body { background: var(--paper); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 24px 18px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: block; margin-bottom: 30px; padding: 0 6px; }
.admin-brand img { height: 32px; filter: brightness(0) invert(1); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: var(--r-sm); color: rgba(255,255,255,.68); font-weight: 600; font-size: .92rem; position: relative; transition: background .15s, color .15s; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--orange); color: #fff; }
.admin-badge { margin-left: auto; background: var(--orange); color: #fff; font-family: var(--mono); font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); }
.admin-nav a.active .admin-badge { background: rgba(255,255,255,.25); }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-view-site, .admin-logout { padding: 9px 12px; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.6); border-radius: var(--r-sm); transition: background .15s, color .15s; }
.admin-view-site:hover, .admin-logout:hover { background: rgba(255,255,255,.06); color: #fff; }

.admin-main { flex: 1; padding: 36px 44px 60px; max-width: 1180px; }
.admin-flash { margin-bottom: 22px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.admin-head h1 { margin: 4px 0 0; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.admin-stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.admin-stat-card.accent { border-color: var(--orange); background: var(--orange-tint); }
.asc-n { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--ink); line-height: 1; }
.asc-l { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 24px; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-link-mini { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--orange-ink); background: none; border: none; cursor: pointer; padding: 0; }
.admin-link-mini:hover { text-decoration: underline; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 12px 10px; border-bottom: 1.5px solid var(--line); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--paper); }
.admin-table tbody tr[onclick] { cursor: pointer; }
.at-title a { font-weight: 700; color: var(--ink); }
.at-title a:hover { color: var(--orange-ink); }
.at-cover img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.at-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.at-actions a { color: var(--muted); }
.at-actions a:hover { color: var(--ink); }
.at-delete { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1rem; }
.at-delete:hover { color: #C1352E; }

.admin-pill, .admin-pill-btn { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: var(--r-pill); border: none; cursor: default; }
.admin-pill-btn { cursor: pointer; }
.admin-pill.live, .admin-pill-btn.live { background: var(--teal-tint); color: var(--teal-ink); }
.admin-pill.draft, .admin-pill-btn.draft { background: #F1EEE7; color: var(--muted); }

/* uploader */
.admin-uploader-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); cursor: pointer; color: var(--muted); transition: border-color .16s, background .16s; }
.admin-uploader-drop:hover, .admin-uploader-drop.drag { border-color: var(--orange); background: var(--orange-tint); }
.admin-uploader-drop strong { color: var(--ink); font-size: 1rem; }
.admin-uploader-drop span { font-size: .82rem; }
.admin-picked-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.admin-picked-chip { font-family: var(--mono); font-size: .74rem; background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--r-pill); }

/* photo grid manager */
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.admin-photo-tile { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--paper); border: 1px solid var(--line); cursor: grab; transition: box-shadow .15s, opacity .15s; }
.admin-photo-tile.dragging { opacity: .4; }
.admin-photo-tile img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.apt-body { display: flex; align-items: center; gap: 6px; padding: 8px; }
.apt-caption { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: .78rem; font-family: var(--body); min-width: 0; }
.apt-caption:focus { outline: none; border-color: var(--orange); }
.apt-delete { flex-shrink: 0; background: none; border: none; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 4px; }
.apt-delete:hover { color: #C1352E; }
.apt-drag { position: absolute; top: 6px; right: 6px; background: rgba(19,19,23,.6); color: #fff; font-size: .8rem; padding: 2px 6px; border-radius: 4px; pointer-events: none; }

/* messages inbox */
.admin-message-list { display: flex; flex-direction: column; gap: 4px; }
.admin-message { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.admin-message:last-child { border-bottom: none; }
.admin-message.unread { background: var(--orange-tint); margin: 0 -12px; padding: 18px 16px; border-radius: var(--r-md); border-bottom: none; }
.am-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.am-meta { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.am-date { font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: nowrap; }
.am-body { margin: 0 0 10px; color: var(--text); }
.am-actions { display: flex; gap: 16px; }

/* login screen */
.admin-login-body { background: var(--ink); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; font-family: var(--body); }
.admin-login-card { width: 100%; max-width: 380px; background: #fff; border-radius: var(--r-lg); padding: 38px 34px; box-shadow: var(--shadow-lift); }
.admin-login-logo { height: 34px; display: block; margin: 0 auto 20px; }
.admin-first-run { background: var(--teal-tint); border: 1px solid rgba(27,158,147,.25); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; font-size: .85rem; }
.admin-first-run strong { display: block; margin-bottom: 4px; color: var(--teal-ink); }
.admin-first-run p { margin: 0 0 10px; color: var(--text); font-size: .82rem; }
.admin-first-run-creds { display: flex; gap: 16px; }
.admin-first-run-creds div { display: flex; flex-direction: column; gap: 2px; }
.admin-first-run-creds span { font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.admin-first-run-creds code { font-family: var(--mono); font-size: .84rem; font-weight: 700; color: var(--ink); }

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; padding: 14px 16px; }
  .admin-brand { margin: 0 16px 0 0; }
  .admin-nav { flex-direction: row; flex: 1; overflow-x: auto; }
  .admin-nav a span, .admin-nav a { white-space: nowrap; }
  .admin-sidebar-foot { flex-direction: row; padding-top: 0; border-top: none; margin-left: auto; }
  .admin-main { padding: 24px 18px 50px; }
}

/* upload progress overlay */
.admin-upload-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(19,19,23,.72); backdrop-filter: blur(3px); align-items: center; justify-content: center; }
.admin-upload-overlay.show { display: flex; }
.auo-card { background: #fff; border-radius: var(--r-lg); padding: 34px 40px; width: 280px; text-align: center; box-shadow: var(--shadow-lift); }
.auo-spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; margin: 0 auto; animation: auoSpin .8s linear infinite; }
@keyframes auoSpin { to { transform: rotate(360deg); } }
.auo-percent { font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--ink); margin: 12px 0 14px; }
.auo-bar { height: 8px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 14px; }
.auo-bar-fill { height: 100%; width: 0%; background: var(--orange); transition: width .15s ease; }
.auo-label { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* delete fade — tile removes itself without any page navigation */
.admin-photo-tile.removing { opacity: 0; transform: scale(.92); pointer-events: none; }
.admin-photo-tile { transition: opacity .2s ease, transform .2s ease; }

/* ================================================================
   TEACHERS
   ================================================================ */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.teacher-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.teacher-card-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper); }
.teacher-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.teacher-card:hover .teacher-card-photo img { transform: scale(1.06); }
.teacher-card-body { padding: 20px 22px 24px; }
.teacher-card-body h3 { font-size: 1.25rem; margin: 10px 0 2px; }
.teacher-card-role { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.teacher-card-count { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .76rem; color: var(--orange-ink); font-weight: 700; }

/* teacher profile hero */
.teacher-profile-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; margin-top: 22px; }
.teacher-profile-photo { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 5px solid #fff; }
.teacher-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .teacher-profile-grid { grid-template-columns: 1fr; text-align: center; } .teacher-profile-photo { width: 160px; margin: 0 auto; } }

/* ================================================================
   MEMORY WALL — a real appreciation wall, not a card grid
   Soft pastel notes, a strip of "washi tape," handwritten text,
   polaroid-framed photos when a student attaches one.
   ================================================================ */
.memory-wall-intro { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 6px; }
.memory-wall-intro svg { color: var(--orange); flex-shrink: 0; }

.memory-wall { column-count: 3; column-gap: 26px; }
.memory-card {
  break-inside: avoid; margin: 0 0 30px; border-radius: 4px 4px 10px 10px;
  padding: 30px 22px 20px; position: relative; box-shadow: 0 6px 16px rgba(19,19,23,.08), 0 1px 3px rgba(19,19,23,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.memory-card:hover { transform: translateY(-4px) scale(1.015) rotate(0deg) !important; box-shadow: 0 16px 32px rgba(19,19,23,.14); z-index: 2; }
.memory-card.rot-0 { transform: rotate(-1.4deg); background: var(--orange-tint); }
.memory-card.rot-1 { transform: rotate(1.1deg); background: var(--teal-tint); }
.memory-card.rot-2 { transform: rotate(-.7deg); background: #FDEDF0; }
.memory-card.rot-3 { transform: rotate(.9deg); background: var(--paper); }

/* washi tape holding the note up */
.memory-card::before {
  content: ''; position: absolute; top: -11px; left: 50%; width: 64px; height: 24px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 2px 4px rgba(19,19,23,.1);
}
.memory-card.rot-0::before { transform: translateX(-50%) rotate(-4deg); background: rgba(255,102,0,.28); }
.memory-card.rot-1::before { transform: translateX(-50%) rotate(3deg); background: rgba(27,158,147,.28); }
.memory-card.rot-2::before { transform: translateX(-50%) rotate(-2deg); background: rgba(255,255,255,.7); }
.memory-card.rot-3::before { transform: translateX(-50%) rotate(4deg); background: rgba(255,102,0,.2); }

.memory-heart { display: block; color: var(--orange); opacity: .55; margin-bottom: 8px; }
.memory-text {
  position: relative; z-index: 1; color: var(--ink); margin: 0 0 18px;
  font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.5rem; line-height: 1.32;
}
.memory-foot { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--mono); font-size: .72rem; padding-top: 10px; border-top: 1px dashed rgba(19,19,23,.15); }
.memory-name { font-weight: 700; color: var(--ink); }
.memory-date { color: var(--muted); }

/* polaroid-framed photo when a memory includes one */
.memory-photo { background: #fff; padding: 8px 8px 0; margin: -30px -22px 16px; border-radius: 4px 4px 0 0; box-shadow: 0 2px 6px rgba(19,19,23,.08); }
.memory-photo-inner { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.memory-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) { .memory-wall { column-count: 2; } }
@media (max-width: 600px) { .memory-wall { column-count: 1; } .memory-card:hover { transform: none !important; } }

/* set-as-cover control on admin photo tiles */
.admin-photo-tile.is-cover { outline: 2px solid var(--orange); outline-offset: -2px; }
.apt-cover-badge, .apt-set-cover { position: absolute; top: 8px; left: 8px; z-index: 2; font-family: var(--mono); font-size: .66rem; font-weight: 700; padding: 4px 9px; border-radius: var(--r-pill); border: none; cursor: default; }
.apt-cover-badge { background: var(--orange); color: #fff; }
.apt-set-cover { background: rgba(19,19,23,.65); color: #fff; cursor: pointer; opacity: 0; transition: opacity .16s, background .16s; }
.admin-photo-tile:hover .apt-set-cover { opacity: 1; }
.apt-set-cover:hover { background: var(--orange); }


/* photo picker on the "leave a memory" form */
.memory-photo-picker {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line-strong); border-radius: var(--r-md); padding: 18px; cursor: pointer;
  color: var(--muted); font-size: .88rem; text-align: center; transition: border-color .16s, background .16s;
}
.memory-photo-picker:hover { border-color: var(--orange); background: var(--orange-tint); }
.memory-photo-picker span { display: inline-flex; align-items: center; gap: 8px; }
.memory-photo-picker.has-photo { border-style: solid; padding: 10px; }
.memory-photo-picker img { max-height: 160px; width: auto; border-radius: var(--r-sm); object-fit: cover; }

/* attached photo preview in the admin testimonials moderation queue */
.am-photo-link { display: inline-block; margin-bottom: 12px; }
.am-photo-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; transition: opacity .15s; }
.am-photo-thumb:hover { opacity: .85; }

/* ================================================================
   STAGE-LIGHT MICRO-INTERACTIONS — a spotlight sweep across photos
   on hover, echoing a stage light passing over a dancer.
   ================================================================ */
.class-card, .teacher-card-photo, .mosaic-item, .album-card-img { position: relative; }
.class-card::before, .teacher-card-photo::before, .mosaic-item::before, .album-card-img::before {
  content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.15) 58%, transparent 100%);
  transform: skewX(-18deg); pointer-events: none; z-index: 5; transition: left .75s var(--ease-plie);
}
.class-card:hover::before, .teacher-card:hover .teacher-card-photo::before,
.mosaic-item:hover::before, .album-card:hover .album-card-img::before { left: 125%; }

@media (prefers-reduced-motion: reduce) {
  .class-card::before, .teacher-card-photo::before, .mosaic-item::before, .album-card-img::before { display: none; }
}

/* floating stage-light dust in dark sections — automatic, no markup changes needed */
.dark-section::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle 3px at 12% 22%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(circle 2px at 78% 15%, rgba(255,102,0,.40), transparent 60%),
    radial-gradient(circle 2.5px at 88% 62%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(circle 2px at 22% 78%, rgba(255,102,0,.34), transparent 60%),
    radial-gradient(circle 1.5px at 55% 88%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(circle 2px at 40% 8%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(circle 1.5px at 65% 45%, rgba(255,102,0,.26), transparent 60%);
  animation: stageDust 16s ease-in-out infinite alternate;
}
@keyframes stageDust { from { transform: translateY(0) scale(1); } to { transform: translateY(-16px) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .dark-section::after { animation: none; } }

/* cursor-follow spotlight on the hero photo */
.hero-spotlight {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle 160px at var(--mx, 50%) var(--my, 35%), rgba(255,255,255,.30), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.hero-stage:hover .hero-spotlight { opacity: 1; }
@media (hover: none) { .hero-spotlight { display: none; } }

/* flowing ribbon-edge divider between the dark stats strip and the next section */
.ribbon-divider { display: block; width: 100%; height: 34px; margin-top: -1px; background: var(--ink); }
@media (max-width: 640px) { .ribbon-divider { height: 20px; } }

/* admin albums table drag-to-reorder */
.admin-table tr[draggable="true"] { cursor: default; transition: opacity .15s ease; }
.admin-table tr[draggable="true"].dragging { opacity: .4; }
.at-drag-handle { cursor: grab; color: var(--muted); text-align: center; width: 28px; user-select: none; }
.at-drag-handle:active { cursor: grabbing; }

/* ================================================================
   MOBILE NAVIGATION + HEADER POLISH
   ================================================================ */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: none; cursor: pointer;
  border-radius: var(--r-sm); flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-plie), opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* active page indicator in the desktop nav */
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { width: 100%; background: var(--orange); }

/* header gains depth once you scroll past the top */
.site-header.scrolled { box-shadow: 0 4px 20px rgba(19,19,23,.08); }

/* full-screen mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255,102,0,.18), transparent 60%);
}
.mobile-nav-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 320px; padding: 0 24px; }
.mobile-nav-inner a:not(.btn-primary) {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 0;
  font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s ease, transform .4s var(--ease-plie), color .18s;
}
.mobile-nav.open .mobile-nav-inner a:not(.btn-primary) { opacity: 1; transform: none; transition-delay: calc(var(--i) * .05s); }
.mobile-nav-inner a.is-active { color: var(--orange); }
.mn-count { font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--orange); opacity: .8; }
.mobile-nav-cta {
  margin-top: 22px; width: 100%; opacity: 0; transform: translateY(14px);
  transition: opacity .4s ease, transform .4s var(--ease-plie);
}
.mobile-nav.open .mobile-nav-cta { opacity: 1; transform: none; transition-delay: calc(var(--i) * .05s); }
.mobile-nav-foot {
  margin-top: 26px; text-align: center; font-family: var(--mono); font-size: .8rem;
  letter-spacing: .3em; color: rgba(255,255,255,.4);
  opacity: 0; transition: opacity .4s ease;
}
.mobile-nav.open .mobile-nav-foot { opacity: 1; transition-delay: calc(var(--i) * .05s); }
body.nav-open { overflow: hidden; }

/* reading-progress bar across the top of the page */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 80;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  transition: width .1s linear; pointer-events: none;
}

@media (max-width: 720px) {
  .mobile-nav-inner a:not(.btn-primary) { font-size: 1.6rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-inner a:not(.btn-primary), .mobile-nav-cta, .mobile-nav-foot { transition: none; opacity: 1; transform: none; }
}

/* ================================================================
   FINALE CTA + GENERAL POLISH
   ================================================================ */
.cta-finale {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, var(--orange-tint) 0%, transparent 60%),
    var(--paper);
  border-top: 1px solid var(--line);
}
.cta-finale::before,
.cta-finale::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,102,0,.13), transparent 70%);
}
.cta-finale::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.cta-finale::after  { width: 260px; height: 260px; bottom: -110px; right: -60px; background: radial-gradient(circle, rgba(27,158,147,.13), transparent 70%); }
.cta-finale .container { position: relative; z-index: 1; }
.cta-finale h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }

/* richer, warmer card shadows sitewide */
.class-card, .album-card, .teacher-card, .mosaic-item, .form-card {
  box-shadow: 0 1px 2px rgba(19,19,23,.04), 0 10px 28px rgba(19,19,23,.07);
}
.class-card:hover, .album-card:hover, .teacher-card:hover, .mosaic-item:hover {
  box-shadow: 0 20px 46px rgba(19,19,23,.15);
}

/* smoother, springier card lifts */
.album-card, .teacher-card { transition: transform .32s var(--ease-plie), box-shadow .32s var(--ease-plie); }
.album-card:hover, .teacher-card:hover { transform: translateY(-6px); }
.class-card { transition: transform .32s var(--ease-plie), box-shadow .32s var(--ease-plie); }
.class-card:hover { transform: translateY(-6px); }

/* headline balance — avoids lonely single words on the last line */
h1, h2, .hero .lead, .section-head p { text-wrap: balance; }

/* selection colour matches the brand */
::selection { background: var(--orange); color: #fff; }

/* nicer focus ring for keyboard users, invisible for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* tap targets stay comfortable on touch devices */
@media (max-width: 720px) {
  .btn-primary, .btn-outline, .btn-dark { padding: 15px 28px; }
  .section { padding: 56px 0; }
}

/* =====================================================
   News / Announcements
   ===================================================== */

/* homepage strip announcing the latest post */
.news-ribbon { display: block; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.news-ribbon .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 24px; }
.news-ribbon .nr-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); flex-shrink: 0; }
.news-ribbon .nr-title { color: #fff; font-weight: 600; flex: 1; min-width: 200px; }
.news-ribbon .nr-cta { color: rgba(255,255,255,.6); font-family: var(--mono); font-size: .82rem; flex-shrink: 0; transition: color .15s, transform .15s; }
.news-ribbon:hover .nr-cta { color: var(--orange); transform: translateX(3px); }

/* listing — editorial cards, image left / text right on desktop */
.news-feed { display: flex; flex-direction: column; gap: 20px; }
.news-card { display: grid; grid-template-columns: 260px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.news-card:hover { border-color: var(--orange); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.nc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.nc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.news-card:hover .nc-media img { transform: scale(1.05); }
.nc-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.nc-tagline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.nc-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-ink); }
.nc-date { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.nc-body h2 { font-size: 1.3rem; margin-bottom: 8px; }
.nc-body p { color: var(--muted); margin-bottom: 12px; }
.nc-read { font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--orange-ink); }
@media (max-width: 640px) { .news-card { grid-template-columns: 1fr; } .nc-media { aspect-ratio: 16 / 9; } }

/* the write-up itself — comfortable reading column */
.news-body-section { padding-top: 56px; padding-bottom: 8px; }
.news-body { max-width: 680px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.news-body p { margin-bottom: 1.2em; }
.news-body p:last-child { margin-bottom: 0; }
.news-body strong { color: var(--ink); font-weight: 700; }
