/* ============================================================
   AK Ballet Class — Anastasia Kurkova · Classical Ballet, Berlin
   Light, gentle editorial theme with dark photographic hero.
   Cormorant Garamond + Great Vibes + Inter.

   Theming works through custom properties: dark sections
   (.hero, .site-footer, .lightbox, transparent home header)
   re-declare the same tokens, so components adapt automatically.
   ============================================================ */

:root {
  --bg: #faf9f9;
  --bg-2: #ffffff;
  --bg-3: #efedee;
  --ink: #1a1c22;
  --muted: #41454f;
  --line: rgba(26, 28, 34, 0.16);
  --line-strong: rgba(26, 28, 34, 0.4);
  --accent: #7d6228;
  --accent-dim: #a98b4e;
  --accent-border: rgba(125, 98, 40, 0.5);
  --on-accent: #ffffff;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Great Vibes', 'Snell Roundhand', cursive;
  --script-caps: 'Pinyon Script', 'Tangerine', 'Snell Roundhand', cursive;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* Dark-panel token set, reused by scoped sections below */
.site-footer,
.lightbox {
  --bg: #101116;
  --bg-2: #17181e;
  --bg-3: #1d1f26;
  --ink: #eceae4;
  --muted: #a5a29b;
  --line: rgba(236, 234, 228, 0.16);
  --line-strong: rgba(236, 234, 228, 0.4);
  --accent: #c9a86b;
  --accent-dim: #8f7a52;
  --accent-border: rgba(201, 168, 107, 0.5);
  --on-accent: #17150f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* Classic white with the faintest warm hint */
  background:
    linear-gradient(170deg, #fdfcfb 0%, #faf9f9 55%, #f8f4f4 100%)
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: #b18d47; color: #ffffff; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.8rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.lead { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--muted); }

p + p { margin-top: 1.2em; }

/* Script capitals inside the brand name — ornate copperplate capitals */
.ak {
  font-family: var(--script-caps);
  font-weight: 400;
  font-size: 1.5em;
  letter-spacing: 0;
  margin-right: 0.12em;
  word-spacing: 0.15em;
}

/* ---------- Layout ---------- */

.container {
  width: min(1160px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.hairline { border: 0; border-top: 1px solid var(--line); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(250, 249, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(1400px, 100% - 2 * var(--pad));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.25s ease;
  padding-block: 0.4rem;
  text-align: center;
  text-wrap: balance;
}

.site-nav a:hover, .site-nav a.active { color: var(--ink); }

.site-nav a.active { border-bottom: 1px solid var(--accent); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-left: clamp(0.5rem, 1.5vw, 1.5rem);
  padding-left: clamp(0.8rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line);
}

.lang-switch a { color: var(--muted); transition: color 0.25s ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .current { color: var(--accent); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 120;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    /* Overlay always uses the light palette, whatever header it opens from */
    --ink: #1a1c22;
    --muted: #41454f;
    --line: rgba(26, 28, 34, 0.16);
    --accent: #7d6228;
    background: rgba(237, 239, 244, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .site-nav.open { opacity: 1; visibility: visible; }

  .site-nav a {
    font-size: 0.95rem;
    max-width: 82vw;
    align-self: center;
  }

  .lang-switch {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  body.nav-open { overflow: hidden; }

  body.nav-open .nav-toggle { position: relative; z-index: 130; }
  body.nav-open .nav-toggle .bar { background: #1a1c22; }
  body.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero (home) — classic white, arch-framed photograph ---------- */

.hero {
  position: relative;
  min-height: min(100vh, 1050px);
  min-height: min(100svh, 1050px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, #fdfcfb 0%, #faf8f7 60%, #f7f2f1 100%);
  color: var(--ink);
}

/* Portrait photograph — a clean, classic rectangle with crisp edges */
.hero {
  background: linear-gradient(165deg, #fdfcfb 0%, #faf7f4 60%, #f7f0ea 100%);
}

.hero-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: clamp(2rem, 8vw, 9rem);
  width: min(33%, 430px);
  height: auto;
  box-shadow: 0 22px 55px rgba(70, 56, 40, 0.16);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 8rem 5.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.25;
  margin-top: 1.1rem;
}

.hero-roles {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.7rem;
}

.hero .sub {
  max-width: 46ch;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
  max-width: 34rem;
}

@media (max-width: 760px) {
  .hero { align-items: flex-end; }

  .hero-img {
    top: 6rem;
    transform: none;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(64vw, 300px);
    height: auto;
  }

  .hero-content {
    padding-top: calc(min(86vw, 400px) + 8.5rem);
    padding-bottom: 3.5rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 1px solid var(--accent);
  color: var(--on-accent);
  background: var(--accent);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover,
.btn.solid:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- Statement / pull quote ---------- */

.statement {
  text-align: center;
  max-width: 850px;
  margin-inline: auto;
}

.statement blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}

.statement .kicker { margin-bottom: 2rem; }

/* ---------- Program cards (home) ---------- */

.program {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.program + .program { margin-top: clamp(4rem, 9vw, 7rem); }

.program .photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-3);
}

.program .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.program:hover .photo img { transform: scale(1.04); }

.program.flip .photo { order: 2; }

.program h2 { margin-bottom: 1.2rem; color: var(--accent); }

.program p { color: var(--muted); max-width: 46ch; }

.program .meta {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.program .meta li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.program .meta li span:first-child {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 0.2em;
}

.program .btn { margin-top: 2.2rem; }

@media (max-width: 820px) {
  .program { grid-template-columns: 1fr; }
  .program.flip .photo { order: 0; }
  .program .photo { aspect-ratio: 4 / 4.4; }
}

/* ---------- Split blocks ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.split .photo { position: relative; overflow: hidden; background: var(--bg-3); }
.split .photo img { width: 100%; height: auto; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(9rem, 16vw, 12rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-hero > .container { position: relative; }

.page-hero h1 { max-width: 20ch; }

.page-hero .lead {
  max-width: 62ch;
  margin-top: 1.6rem;
  color: var(--muted);
}

/* ---------- Article (biography) ---------- */

.article {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.article .body p { color: var(--muted); }
.article .body p strong { color: var(--ink); font-weight: 500; }

.article aside { position: sticky; top: 6rem; }

.article aside img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 38%;
}

@media (max-width: 820px) {
  .article { grid-template-columns: 1fr; }
  .article aside { position: static; order: -1; max-width: 440px; }
}

/* ---------- Highlights (biography) ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.highlights.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; }

.highlights h2 {
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.highlights ul { list-style: none; }

.highlights li {
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Repertoire — two balanced columns on desktop, one on narrow screens */

.rep-list {
  list-style: none;
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
  max-width: 1000px;
}

.rep-list li {
  break-inside: avoid;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .rep-list { columns: 1; }
}

@media (max-width: 1000px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .highlights, .highlights.two { grid-template-columns: 1fr; }
}

/* ---------- Feature cards (training / coaching / steps) ---------- */

.features {
  counter-reset: feature;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.features.steps { grid-template-columns: repeat(3, 1fr); }

.feature {
  counter-increment: feature;
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--bg-2);
  transition: border-color 0.3s ease;
}

.feature:hover { border-color: var(--accent-dim); }

.feature::before {
  content: counter(feature, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.feature h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 700px) {
  .features, .features.steps { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  transition: color 0.25s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq summary:hover { color: var(--accent); }

.faq .faq-body {
  padding: 0 2.5rem 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Info band (groups) ---------- */

.info-band {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.info-grid .cell { padding: clamp(2rem, 4vw, 3rem) 1rem; }

.info-grid .cell + .cell { border-left: 1px solid var(--line); }

.info-grid .num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.info-grid .label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .cell + .cell { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Photo strip / grid ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}

.photo-grid .ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--bg-3);
}

.photo-grid .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.5s ease;
}

.photo-grid .ph:hover img { transform: scale(1.05); }

@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Lightbox (always dark) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 13, 0.96);
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.6rem;
  font-family: var(--sans);
  cursor: pointer;
  padding: 1rem;
  transition: color 0.25s ease;
  z-index: 210;
}

.lightbox button:hover { color: var(--ink); }

.lightbox .lb-close { top: 1rem; right: 1.2rem; }
.lightbox .lb-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

/* ---------- Schedule table ---------- */

.schedule {
  width: 100%;
  max-width: 820px;
  border-collapse: collapse;
}

.schedule th {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 1.5rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule td {
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink);
}

.schedule td:first-child { color: var(--muted); }

.schedule-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */

.price-figure {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  color: var(--accent);
  line-height: 1;
}

.price-period {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.9rem;
}

.price-trial {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--accent);
  font-size: 0.9rem;
  color: var(--on-accent);
  background: var(--accent);
  letter-spacing: 0.06em;
}

.includes {
  list-style: none;
  border-top: 1px solid var(--line);
}

.includes li {
  display: flex;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.includes li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(177, 141, 71, 0.12), rgba(177, 141, 71, 0) 70%);
}

.cta-band > .container { position: relative; }

.cta-band h2 { max-width: 22ch; margin-inline: auto; }

.cta-band p {
  color: var(--muted);
  max-width: 52ch;
  margin: 1.4rem auto 0;
}

.cta-band .btn { margin-top: 2.6rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.contact-info .row { margin-bottom: 2rem; }

.contact-info .label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-info .value { color: var(--muted); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

form .field { margin-bottom: 1.6rem; }

form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

form input,
form select,
form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.98rem;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.25s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23565963'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form textarea { min-height: 160px; resize: vertical; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.4rem;
}

.form-note a { color: var(--accent); text-decoration: underline; }

.form-status {
  display: none;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.form-status.ok { display: block; border-color: rgba(64, 122, 68, 0.5); color: #2e6b34; }
.form-status.err { display: block; border-color: rgba(163, 63, 63, 0.5); color: #a33f3f; }

/* ---------- Footer (dark bookend) ---------- */

.site-footer {
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid rgba(34, 36, 43, 0.2);
  padding-block: 3rem;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer-inner .wordmark { font-size: 1.1rem; color: var(--ink); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.footer-nav a { color: var(--muted); transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--ink); }

.footer-legal { width: 100%; font-size: 0.75rem; color: var(--muted); }

/* ---------- Reveal animations ---------- */
/* Hidden state is gated on the .js root class (set by an inline script in
   <head>) so all content stays visible when JavaScript is off or fails. */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .program .photo img, .photo-grid .ph img { transition: none; }
}

/* ---------- Legal pages ---------- */

.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.legal-body p { color: var(--muted); }
.legal-body ul { color: var(--muted); padding-left: 1.3rem; }
.legal-body li { margin: 0.3rem 0; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body .todo { color: var(--accent); font-style: italic; }
