/* =====================================================================
   PLANET DANCE STUDIOS  -  purple / white / black
   No gradients anywhere. Display type = the Planet Dance logo font.
   0 Fonts  1 Tokens  2 Base  3 Deco pattern  4 Buttons  5 Header
   6 Hero  7 Marquee  8 Disciplines  9 About  10 Teachers
   11 Show  12 Timetable preview  13 CTA  14 Footer  15 Modal
   16 Reveal/motion  17 Timetable page  18 Responsive
   ===================================================================== */

/* ---------- 0. Self-hosted logo font ---------- */
@font-face {
  font-family: "Skin Slow";
  src: url("../fonts/SkinSlow.woff2") format("woff2"),
       url("../fonts/SkinSlow.ttf")  format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- 1. Design tokens ---------- */
:root {
  --ink:        #16121f;   /* near-black (faint purple) */
  --ink-2:      #201a2e;   /* raised dark surface */
  --ink-line:   #342b48;   /* hairline on dark */
  --white:      #ffffff;
  --paper:      #f6f3fc;   /* light section bg (cool, not cream) */
  --paper-2:    #ede7f8;   /* raised light surface */
  --paper-line: #ddd2f0;   /* hairline on light */

  --purple:        #6d28d9;  /* brand purple - buttons / accents */
  --purple-deep:   #55189c;  /* darker - hover / active */
  --purple-bright: #a273ff;  /* lighter - accents on dark */
  --purple-pale:   #c9b8f0;  /* the scattered icons on dark */

  --on-dark:     #f3f0fa;
  --on-dark-mut: #aaa0c2;
  --on-light:    #1a1526;
  --on-light-mut:#665c80;

  --f-display: "Skin Slow", system-ui, sans-serif;
  --f-sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 6px;
  --marquee-h: clamp(50px, 7vh, 66px);
  --banner-h: 42px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-sans);
  background: var(--ink);
  color: var(--on-dark);
  line-height: 1.65;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: 92px; }

:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 3px; border-radius: 2px; }

/* shared heads */
.section-head { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head__note { max-width: 34ch; opacity: .72; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--f-sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--purple-deep); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: .55; }
.eyebrow--gold { color: var(--purple-bright); }

.section-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; letter-spacing: .02em;
  text-wrap: balance;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .9rem; color: var(--purple);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: .85em; }

/* ---------- 3. Deco pattern (scattered dance icons) ---------- */
.has-deco { position: relative; }
.has-deco > * { position: relative; z-index: 1; }
.has-deco::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: repeat; background-size: 560px 560px;
}
.deco-dark::before  { background-image: url("../images/deco-dark.svg"); }
.deco-light::before { background-image: url("../images/deco-light.svg"); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-pad: .8em 1.5em;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-sans); font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  padding: var(--btn-pad); border-radius: 11px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { --btn-pad: 1em 1.9em; font-size: 1rem; }

/* primary (purple) - text always white */
.btn--gold { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn--gold:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }

/* outline - inverts to purple fill so the label is always visible */
.btn--line { background: transparent; color: currentColor; border-color: currentColor; }
.btn--line:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; color: #fff; }

.btn--line-dark { background: transparent; color: var(--ink); border-color: rgba(26,21,38,.35); }
.btn--line-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--ghost { background: transparent; color: currentColor; border-color: transparent; opacity: .82; }
.btn--ghost:hover { opacity: 1; transform: none; }

/* ---------- 5. Header (solid white, purple-tinted logo) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--on-light);
  background: #fff;                     /* solid white - never transparent */
  border-bottom: 1px solid var(--paper-line);
  transition: box-shadow .35s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 34px -22px rgba(40,20,80,.4); }
.site-header__inner {
  max-width: 1400px; margin-inline: auto;
  padding: clamp(.85rem, 1.5vw, 1.3rem) var(--gutter);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
/* recolour the white logo PNG to brand purple via an alpha mask (crisp, exact) */
.brand__logo { display: block; height: clamp(30px, 3.4vw, 40px); aspect-ratio: 1500 / 500; background-color: var(--purple); -webkit-mask: url("../logo/PDLogo_WHITE.png") center / contain no-repeat; mask: url("../logo/PDLogo_WHITE.png") center / contain no-repeat; }

.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); margin-right: auto; }
.nav__link {
  position: relative; font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  color: var(--on-light); opacity: .78; padding: .3em 0; transition: opacity .25s var(--ease);
}
.nav__link[aria-current="page"] { opacity: 1; color: var(--purple-deep); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--purple); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: .7rem; }

.nav-toggle { display: none; width: 42px; height: 42px; background: transparent; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--on-light); transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: rgba(18,14,26,.98); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; gap: 1.3rem; padding: var(--gutter);
  font-family: var(--f-display); font-size: clamp(2rem, 8vw, 3rem);
  color: var(--on-dark); /* the drawer sits on a dark overlay - never inherit the header's dark-on-white text */
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { opacity: .92; }
.mobile-nav a:not(.btn):hover { color: var(--purple-bright); }
.mobile-nav .btn { align-self: flex-start; font-family: var(--f-sans); font-size: 1rem; margin-top: 1rem; }

/* ---------- 5b. Announcement bar (staff-managed, sits above the header) ---------- */
.announce {
  position: fixed; inset: 0 0 auto 0; z-index: 101;
  height: var(--banner-h);
  background: var(--purple); color: #fff;
  display: flex; align-items: center; overflow: hidden;
}
.announce__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); text-align: center; min-width: 0; }
.announce__item {
  font-size: .88rem; font-weight: 600; letter-spacing: .01em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.announce__item a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; transition: color .25s var(--ease); }
.announce__item a:hover { color: var(--purple-pale); }
/* scrolling ticker mode - same infinite-loop trick as the homepage marquee */
.announce--scroll .announce__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.announce--scroll .announce__group { display: flex; align-items: center; flex: none; }
.announce--scroll .announce__item { overflow: visible; white-space: nowrap; display: inline-flex; align-items: center; }
.announce__sep { opacity: .5; padding: 0 1.1em; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .announce--scroll .announce__track { animation: none; } }
/* when the bar is on, push the fixed header and the page down to make room */
body.has-banner { padding-top: var(--banner-h); }
body.has-banner .site-header { top: var(--banner-h); }
body.has-banner [id] { scroll-margin-top: calc(92px + var(--banner-h)); }
body.has-banner .tt-day { scroll-margin-top: calc(92px + var(--banner-h)); }
@media (max-width: 680px) { .announce__item { font-size: .8rem; } }

/* ---------- 6. Hero (photo wall) ---------- */
/* sized so the marquee below lands flush at the bottom of the first screen */
.hero {
  position: relative; min-height: calc(100svh - var(--marquee-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 11vh, 8.5rem) var(--gutter) clamp(1.6rem, 3.5vh, 2.6rem);
  background: var(--ink); overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--container); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--purple-bright); }

/* eyebrow -> wordmark: a slight increase over the old uniform gap */
.wordmark { font-family: var(--f-display); font-weight: 400; line-height: .9; color: #fff; white-space: nowrap; margin-top: clamp(1.3rem, calc(2.2vh + .4rem), 2.1rem); }
/* capped so "Planet Dance" always stays on one line within the container */
.wordmark__main { display: block; font-size: clamp(2.4rem, 11vw, 9rem); letter-spacing: .015em; }
.wordmark__main em { font-style: normal; color: var(--purple-bright); }
/* "Studios" placeholder script (swap for the studio's real font once uploaded) */
.wordmark__studios { display: block; font-family: "Dancing Script", cursive; font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 3.2rem); color: #fff; margin-top: -.05em; }

/* the photo wall - one dominant anchor + a cluster of smaller tiles,
   unified grayscale, lifts to colour and straightens on hover.
   margin-top (studios text -> grid) is bigger than the gap above it;
   the wall's own size/position is otherwise untouched. */
.hero-wall {
  width: 100%; display: grid; gap: clamp(.5rem, 1vw, .85rem);
  grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr);
  height: clamp(220px, 31vh, 360px);
  margin-top: clamp(1.8rem, calc(2.2vh + .9rem), 2.6rem);
}
.hero-wall__tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); box-shadow: 0 22px 44px -30px rgba(0,0,0,.75); transition: transform .5s var(--ease); }
.hero-wall__tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.9); transition: filter .6s var(--ease), transform 1.3s var(--ease); }
.hero-wall__tile:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.06); }
.hero-wall__tile--a { grid-column: 1 / 7;  grid-row: 1 / 3; }   /* dominant anchor - left half */
.hero-wall__tile--b { grid-column: 7 / 10; grid-row: 1 / 2; }
.hero-wall__tile--c { grid-column: 10 / 13; grid-row: 1 / 2; transform: rotate(1.6deg); }
.hero-wall__tile--d { grid-column: 7 / 9;  grid-row: 2 / 3; transform: rotate(-1.8deg); }
.hero-wall__tile--e { grid-column: 9 / 11; grid-row: 2 / 3; }
.hero-wall__tile--f { grid-column: 11 / 13; grid-row: 2 / 3; }
.hero-wall__tile--c:hover, .hero-wall__tile--d:hover { transform: rotate(0); z-index: 2; }

/* grid -> USPs: the biggest gap of the three, so the grid's own position barely moves */
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.4rem, 5vw, 3.5rem); list-style: none; padding: 0; margin-top: clamp(2.2rem, calc(2.2vh + 1.3rem), 3rem); }
.hero__meta li { text-align: center; }
.hero__meta strong { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.05; color: #fff; }
.hero__meta span { font-size: .8rem; color: var(--on-dark-mut); letter-spacing: .02em; }
.hero__meta em { font-style: normal; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .hero-wall__tile img { transition: filter .3s; } }

/* ---------- 7. Marquee (true infinite: two identical groups, shift -50%) ---------- */
.marquee { background: var(--purple); color: #fff; overflow: hidden; height: var(--marquee-h); display: flex; align-items: center; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font-family: var(--f-display); font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1; white-space: nowrap; padding: .1em .85rem 0; }
.marquee__sep { font-family: var(--f-sans); opacity: .5; padding: 0 .1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- 8. Disciplines (signature: crossfading viewer + horizontal tabs) ---------- */
.disc { background: var(--paper); color: var(--on-light); padding: clamp(4rem, 9vh, 7rem) 0 clamp(4.5rem, 10vh, 8rem); }
.disc .section-title { margin-bottom: clamp(1.8rem, 3.5vh, 2.8rem); }
.disc__player { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.disc__viewer {
  position: relative; aspect-ratio: 21 / 9; width: 100%; overflow: hidden;
  border-radius: var(--radius); background: var(--ink);
  box-shadow: 0 40px 80px -38px rgba(40,20,80,.55);
}
.disc__frames { position: absolute; inset: 0; }
.disc__frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 1.1s var(--ease), transform 6s linear; }
.disc__frame img { width: 100%; height: 100%; object-fit: cover; }
.disc__frame.is-active { opacity: 1; transform: scale(1); }
/* flat scrim (no gradient) to seat the caption text */
.disc__scrim { position: absolute; inset: 0; background: rgba(15,11,24,.42); }
.disc__caption { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(1.2rem, 3.5vw, 2.6rem); max-width: 40ch; color: #fff; }
.disc__count { font-size: .78rem; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.72); }
.disc__count b { color: var(--purple-bright); font-weight: 800; }
.disc__word { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.05; letter-spacing: .02em; margin: .1em 0 .3rem; }
.disc__desc { font-size: 1.02rem; color: #e7e2f2; margin-bottom: 1rem; }
.disc__link.link-arrow { color: #fff; }
.disc__link.link-arrow:hover { color: var(--purple-bright); }

/* horizontal tab bar - Skin Slow labels, active tab fills purple */
.disc__tabs { display: flex; gap: .4rem; margin-top: clamp(1rem, 2.2vh, 1.5rem); }
.disc__tab {
  position: relative; flex: 1 1 0; min-width: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(.85rem, 1.3vw, 1.1rem); letter-spacing: .01em;
  color: var(--on-light); opacity: .4; padding: .8rem .4rem .95rem; text-align: center;
  border-radius: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: opacity .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.disc__tab:hover { opacity: .75; }
.disc__tab.is-active { opacity: 1; color: #fff; background: var(--purple); }
.disc__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255,255,255,.9); }
.disc__tab.is-active .disc__progress { animation: discfill 4600ms linear forwards; }
.disc__player:hover .disc__tab.is-active .disc__progress { animation-play-state: paused; }
@keyframes discfill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .disc__frame { transition: opacity .01s; transform: none; }
  .disc__tab.is-active .disc__progress { width: 100%; animation: none; }
}

/* ---------- 9. About / the studio ---------- */
.about { background: var(--ink); color: var(--on-dark); padding: clamp(4.5rem, 11vh, 9rem) var(--gutter); }
.about__inner { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__headline { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.18; letter-spacing: .02em; margin: .2rem 0 1.2rem; text-wrap: balance; }
.about__headline em { font-style: normal; color: var(--purple-bright); }
.about__statement { font-family: var(--f-sans); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.4; color: #efeaf8; margin-bottom: 1.4rem; max-width: 42ch; }
.about__para { color: #cfc8e0; margin-bottom: 1.1rem; max-width: 46ch; }
.about__text .link-arrow { color: var(--purple-bright); margin-top: .3rem; }
.about__stats { list-style: none; padding: 1.6rem 0 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--ink-line); }
.about__stats strong { display: block; font-family: var(--f-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; line-height: 1; color: var(--purple-bright); }
.about__stats span { font-size: .8rem; color: var(--on-dark-mut); }
.about__stats em { font-style: normal; opacity: .5; }

/* layered photo composition */
.about__media { position: relative; }
.about__accent { position: absolute; top: -16px; left: -16px; width: 42%; height: 42%; background: var(--purple); border-radius: var(--radius); z-index: 0; }
.about__photo { overflow: hidden; border-radius: var(--radius); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03) brightness(.92); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.about__photo:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.04); }
.about__photo--main { position: relative; z-index: 1; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -44px rgba(0,0,0,.75); }
.about__photo--inset { position: absolute; right: -6%; bottom: -8%; width: 46%; aspect-ratio: 3 / 4; z-index: 2; border: 5px solid var(--ink); }

/* ---------- 10. Teachers ---------- */
.teachers { background: var(--paper); color: var(--on-light); padding: clamp(4.5rem, 10vh, 8rem) 0; }
.teachers .section-head { margin-bottom: clamp(2.2rem, 4vh, 3.4rem); }
.team { list-style: none; margin: 0 auto; max-width: var(--container); padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.team__photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); filter: grayscale(1) contrast(1.02); transition: filter .5s var(--ease); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.team__card:hover .team__photo { filter: grayscale(0); }
.team__card:hover .team__photo img { transform: scale(1.05); }
.team__meta { padding-top: 1rem; }
.team__meta h3 { font-family: var(--f-sans); font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.team__role { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-deep); margin: .35rem 0 .55rem; font-weight: 700; }
.team__bio { font-size: .92rem; color: var(--on-light-mut); }

/* ---------- 11. Show ---------- */
.show { position: relative; color: var(--on-dark); min-height: 82vh; display: flex; align-items: center; padding: clamp(4rem, 12vh, 9rem) var(--gutter); overflow: hidden; }
.show__media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.show__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.show::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(14,10,22,.7); }
.show__content { position: relative; z-index: 2; max-width: var(--container); margin-inline: auto; width: 100%; }
.show__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.9rem, 7.5vw, 6.4rem); line-height: 1.02; letter-spacing: .02em; margin-bottom: 1.2rem; }
.show__lede { max-width: 46ch; font-size: 1.12rem; color: #e9e5f5; margin-bottom: 2rem; }

/* ---------- 12. Timetable preview ---------- */
.tt { background: var(--paper-2); color: var(--on-light); padding: clamp(4rem, 9vh, 7rem) 0; }
.tt .section-head { margin-bottom: clamp(2rem, 4vh, 3rem); }
.tt__preview { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.tt__row {
  display: grid; grid-template-columns: 54px minmax(0,1fr) 68px 60px;
  gap: clamp(.8rem, 2vw, 1.6rem); align-items: center;
  padding: 1.15rem clamp(.6rem, 1.5vw, 1rem); border-bottom: 1px solid var(--paper-line);
  border-radius: 6px; font-size: .95rem;
  transition: background-color .25s var(--ease);
}
.tt__row:not(.tt__row--head):hover { background: rgba(109,40,217,.06); }
.tt__row--head { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-light-mut); font-weight: 700; padding-block: 0 .8rem; }
.tt__row > span:first-child { font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--purple-deep); }
.tt__row--head > span:first-child { color: var(--on-light-mut); font-size: .68rem; }
.tt__row > span:nth-child(3), .tt__row > span:nth-child(4) { color: var(--on-light-mut); font-size: .9rem; }
.tt__row > span:nth-child(4) { font-weight: 700; color: var(--on-light); }
.tt__class { font-family: var(--f-sans); font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 700; color: var(--on-light); }
.tt__note { margin-top: 1.4rem; font-size: .86rem; color: var(--on-light-mut); font-style: italic; }

/* ---------- 13. CTA band ---------- */
.cta-band { background: var(--purple); color: #fff; padding: clamp(4rem, 9vh, 7rem) var(--gutter); }
.cta-band__inner { max-width: var(--container); margin-inline: auto; text-align: center; }
.cta-band__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.7rem, 6.5vw, 4.6rem); line-height: 1.04; letter-spacing: .02em; margin-bottom: .8rem; }
.cta-band__inner p { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--dark { background: #fff; color: var(--purple-deep); border-color: #fff; }
.cta-band .btn--dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn--line-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn--line-dark:hover { background: #fff; color: var(--purple-deep); border-color: #fff; }

/* ---------- 14. Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: clamp(3.5rem, 7vh, 5.5rem) var(--gutter) 2rem; }
.footer__top { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(2rem, 5vw, 5rem); padding-bottom: 3rem; border-bottom: 1px solid var(--ink-line); }
.footer__logo { height: 38px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { color: var(--on-dark-mut); max-width: 28ch; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer__col h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-bright); margin-bottom: .9rem; font-weight: 700; }
.footer__col p { color: var(--on-dark-mut); font-size: .95rem; line-height: 1.9; }
.footer__col a { transition: color .25s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__base { max-width: var(--container); margin: 1.6rem auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; font-size: .82rem; color: var(--on-dark-mut); }
/* designer credit - quiet, brightens on hover */
.olkus-credit { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .78rem; text-decoration: none; transition: color .25s var(--ease); }
.olkus-credit img { width: 20px; height: 20px; opacity: .6; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.olkus-credit b { font-weight: 800; letter-spacing: .01em; }
.olkus-credit:hover { color: #fff; }
.olkus-credit:hover img { opacity: 1; transform: rotate(-8deg) scale(1.06); }

/* ---------- 15. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,7,16,.74); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.modal__dialog { position: relative; z-index: 1; overflow: hidden; width: min(880px, 100%); max-height: 90vh; overflow-y: auto; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; animation: pop .4s var(--ease); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.modal__body { padding: clamp(1.6rem, 3vw, 2.6rem); }
.modal__body h3 { font-family: var(--f-sans); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: .3rem 0 1rem; }
.modal__body > p { color: #d7d1e6; margin-bottom: 1.4rem; }
.modal__facts { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.modal__facts div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--ink-line); }
.modal__facts dt { color: var(--on-dark-mut); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.modal__facts dd { text-align: right; }
.modal__close { position: absolute; top: .6rem; right: .8rem; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .25s var(--ease); }
.modal__close:hover { background: var(--purple); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- 16. Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.team__card.reveal:nth-child(2) { transition-delay: .08s; }
.team__card.reveal:nth-child(3) { transition-delay: .16s; }
.team__card.reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 17. Sub-page banner (teachers / blog / contact / timetable) ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding: clamp(8rem, 16vh, 12rem) var(--gutter) clamp(3rem, 6vh, 5rem); border-bottom: 1px solid var(--ink-line); }
.page-hero__inner { max-width: var(--container); margin-inline: auto; }
.page-hero .eyebrow { margin-bottom: 1.7rem; }
.page-hero__title { font-family: var(--f-display); font-weight: 400; color: #fff; font-size: clamp(3.4rem, 11vw, 8rem); line-height: 1.08; letter-spacing: .02em; margin-bottom: 1.2rem; }
.page-hero__title em { color: var(--purple-bright); font-style: normal; }
.page-hero__lede { max-width: 48ch; color: #d7d1e6; font-size: 1.12rem; }

/* timetable banner: day-jump nav replaces the old filters */
.tt-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.tt-jump a { font-family: var(--f-sans); font-weight: 700; font-size: .9rem; letter-spacing: .04em; color: var(--on-dark); padding: .55em 1.1em; border: 1px solid var(--ink-line); border-radius: 10px; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.tt-jump a:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---------- 17b. Timetable grid (day header above its class cards) ---------- */
.tt-full { background: var(--paper); color: var(--on-light); padding: clamp(3rem, 7vh, 6rem) 0 clamp(4rem, 9vh, 7rem); }
.tt-full__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: clamp(2.6rem, 5vh, 4rem); }
.tt-day { scroll-margin-top: 92px; }
.tt-day__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 2px solid var(--purple); }
.tt-day__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: .02em; color: var(--purple-deep); }
.tt-day__meta { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-light-mut); }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: .8rem; }
.tt-item { display: flex; align-items: center; gap: 1.1rem; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 1.15rem 1.3rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.tt-item:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(60,20,120,.5); border-color: var(--purple); }
.tt-item__time { flex: none; font-family: var(--f-sans); font-size: 1.25rem; font-weight: 800; color: var(--purple-deep); letter-spacing: -.01em; }
.tt-item__body { flex: 1 1 auto; min-width: 0; }
.tt-item__body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.tt-item__body p { font-size: .84rem; color: var(--on-light-mut); margin-top: .15rem; }
.tt-item__tag { flex: none; align-self: center; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--purple-deep); background: rgba(109,40,217,.1); padding: .4em .75em; border-radius: 999px; white-space: nowrap; }
.tt-full__note { max-width: var(--container); margin: 2.4rem auto 0; padding-inline: var(--gutter); font-size: .86rem; font-style: italic; color: var(--on-light-mut); }

/* ---------- 19. Teachers page (profiles) ---------- */
.profiles { background: var(--paper); color: var(--on-light); padding: clamp(3.5rem,8vh,6rem) 0 clamp(4rem,9vh,7rem); }
.profiles__grid { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem,3vw,2.6rem); }
.profile { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.profile:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(60,20,120,.45); }
.profile__photo { aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); filter: grayscale(1) contrast(1.03); transition: filter .5s var(--ease); }
.profile:hover .profile__photo { filter: grayscale(0); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.profile:hover .profile__photo img { transform: scale(1.05); }
.profile__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.profile__name { font-family: var(--f-sans); font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.profile__role { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-deep); font-weight: 700; }
.profile__bio { font-size: .95rem; color: var(--on-light-mut); margin: .2rem 0 .4rem; }
.profile__facts { list-style: none; padding: .8rem 0 0; margin: auto 0 0; border-top: 1px solid var(--paper-line); display: grid; gap: .35rem; font-size: .86rem; }
.profile__facts li { color: var(--on-light); }
.profile__facts span { display: inline-block; width: 5.5em; color: var(--on-light-mut); font-weight: 600; }

/* ---------- 20. Contact page ---------- */
.contact { background: var(--paper); color: var(--on-light); padding: clamp(3.5rem,8vh,6rem) 0 clamp(4rem,9vh,7rem); }
.contact__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.contact__form { background: #fff; border: 1px solid var(--paper-line); border-top: 3px solid var(--purple); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.4rem); }
.contact__heading { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem,3vw,2.4rem); letter-spacing: .02em; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-light-mut); margin-bottom: .4rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--on-light); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 6px; padding: .7em .85em; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); background: #fff; }
.field textarea { resize: vertical; }
.contact__form .btn { margin-top: .4rem; }
.contact__note { margin-top: 1rem; font-size: .82rem; font-style: italic; color: var(--on-light-mut); }
.contact__info { display: grid; gap: 1.6rem; }
.contact__block h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-deep); font-weight: 700; margin-bottom: .5rem; }
.contact__block p { color: var(--on-light); line-height: 1.7; }
.contact__block a { color: var(--purple-deep); font-weight: 600; }
.contact__block a:hover { text-decoration: underline; }
.contact__block em { font-style: normal; color: var(--on-light-mut); }
.contact__map { aspect-ratio: 3/2; border: 1px dashed var(--paper-line); border-radius: var(--radius); background: var(--paper-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; }
.contact__map span { font-family: var(--f-display); font-size: 1.4rem; color: var(--purple-deep); }
.contact__map em { font-style: normal; font-size: .82rem; color: var(--on-light-mut); }

/* ---------- 21. Blog page ---------- */
.blog { background: var(--paper); color: var(--on-light); padding: clamp(3.5rem,8vh,6rem) 0 clamp(4rem,9vh,7rem); }
.blog__grid { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem,3vw,2.4rem); }
.post { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(60,20,120,.45); }
.post__link { display: flex; flex-direction: column; height: 100%; }
.post__photo { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__photo img { transform: scale(1.05); }
.post__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post__tag { align-self: flex-start; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--purple-deep); background: rgba(109,40,217,.1); padding: .4em .8em; border-radius: 999px; }
.post__title { font-family: var(--f-sans); font-size: 1.2rem; font-weight: 800; line-height: 1.2; color: var(--on-light); }
.post__excerpt { font-size: .92rem; color: var(--on-light-mut); }
.post__date { margin-top: auto; font-size: .78rem; color: var(--on-light-mut); font-weight: 600; letter-spacing: .04em; }
.blog__note { max-width: var(--container); margin: 2.2rem auto 0; padding-inline: var(--gutter); font-size: .86rem; font-style: italic; color: var(--on-light-mut); }

/* ---------- 22. Class detail page ---------- */
.classpage { background: var(--paper); color: var(--on-light); padding: clamp(3.5rem, 8vh, 6rem) 0; }
.classpage__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.classpage__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.classpage__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: filter .5s var(--ease), transform 1.2s var(--ease); }
.classpage__photo:hover img { filter: grayscale(0); transform: scale(1.04); }
.classpage__text h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: .02em; line-height: 1.14; margin-bottom: 1.1rem; }
.classpage__text p { color: var(--on-light-mut); margin-bottom: 1.1rem; max-width: 48ch; }
.classpage__facts { list-style: none; padding: 1.4rem 0 0; margin: 1.6rem 0 0; border-top: 1px solid var(--paper-line); display: grid; gap: .6rem; }
.classpage__facts li { color: var(--on-light); font-size: .96rem; }
.classpage__facts b { display: inline-block; width: 6.5em; color: var(--purple-deep); font-weight: 700; }

/* ---------- 23. Blog post page ---------- */
.post-page { background: var(--paper); color: var(--on-light); padding: clamp(2.5rem, 6vh, 4.5rem) 0 clamp(4rem, 9vh, 7rem); }
.post-page__inner { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.post-page__hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: clamp(1.6rem, 3vh, 2.4rem); }
.post-page__hero img { width: 100%; height: 100%; object-fit: cover; }
.post-page__body { font-size: 1.05rem; }
.post-page__body p { color: var(--on-light); margin-bottom: 1.2rem; line-height: 1.8; }
.post-page__body p:first-child { font-size: 1.18rem; color: var(--on-light); }
.post-page__body h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .02em; margin: 2.2rem 0 1rem; color: var(--on-light); }
.post-page__back { display: inline-flex; margin-top: 2.4rem; }
/* staff-written rich content: inline photos + links in post bodies */
.post-page__body img { border-radius: var(--radius); margin: .4rem 0 1.4rem; }
.post-page__body a { color: var(--purple-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; transition: color .25s var(--ease); }
.post-page__body a:hover { color: var(--purple); }
/* teacher bios can hold styled text + multiple paragraphs */
.team__bio p + p, .profile__bio p + p { margin-top: .5em; }
.team__bio a, .profile__bio a { color: var(--purple-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.team__bio a:hover, .profile__bio a:hover { color: var(--purple); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav__link--desk { display: none; }
  .nav-toggle { display: flex; }
  /* with the desktop nav gone, push the trial button + menu toggle to the right edge */
  .site-header__actions { margin-left: auto; }
  .about__inner { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 4rem); }
  .about__media { max-width: 460px; }
  .team { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .footer__top { grid-template-columns: 1fr; }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__media img { min-height: 200px; max-height: 240px; }
  .profiles__grid, .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .classpage__inner { grid-template-columns: 1fr; gap: clamp(1.8rem, 6vw, 3rem); }
  .classpage__photo { max-width: 460px; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: repeat(2, 1fr); }
  .contact__map { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .disc__viewer { aspect-ratio: 5 / 6; }
  .disc__tabs { flex-wrap: wrap; }
  .disc__tab { flex: 1 1 30%; padding: .7rem .4rem .8rem; font-size: clamp(1rem, 3vw, 1.3rem); white-space: normal; }
}
@media (max-width: 680px) {
  .disc__viewer { aspect-ratio: 4 / 5; }
  .disc__caption { max-width: none; right: 0; padding: 1.3rem 1.2rem; }
  .disc__word { font-size: clamp(1.8rem, 7.6vw, 2.6rem); }
  .disc__desc { font-size: .95rem; }
  .team { grid-template-columns: 1fr 1fr; }
  .hero__meta { gap: 1.4rem 2rem; }
  /* photo wall -> 2x2, hide the two smallest tiles, straighten pins */
  .hero-wall { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); height: clamp(230px, 40vh, 320px); }
  .hero-wall__tile { transform: none !important; }
  .hero-wall__tile--a { grid-column: 1 / 2; grid-row: 1 / 2; }
  .hero-wall__tile--b { grid-column: 2 / 3; grid-row: 1 / 2; }
  .hero-wall__tile--c { grid-column: 1 / 2; grid-row: 2 / 3; }
  .hero-wall__tile--d { grid-column: 2 / 3; grid-row: 2 / 3; }
  .hero-wall__tile--e, .hero-wall__tile--f { display: none; }
  .tt-day { grid-template-columns: 1fr; gap: .8rem; }
  .tt-day__name { position: static; }
  .tt-item { grid-template-columns: 64px 1fr auto; }
  .cta-band__actions .btn { width: 100%; justify-content: center; }
  .profiles__grid, .blog__grid { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; }
  .field--split { grid-template-columns: 1fr; }
  /* footer: four crammed columns become a comfortable 2x2 */
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; }
  .footer__base { justify-content: center; text-align: center; }
}
@media (max-width: 440px) {
  .disc__tab { flex-basis: 45%; }
  .tt-item { grid-template-columns: 60px 1fr; }
  .tt-item__tag { grid-column: 2; justify-self: start; }
}
@media (max-width: 420px) {
  .team { grid-template-columns: 1fr; }
}
