/* =========================================================
   Allegro Σχολή Χορού — Stylesheet
   Light theme in the brand's logo colors:
   magenta (#E6228C) + teal (#16B7B7) on a bright, airy canvas.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:    #ffffff;
  --bg-2:  #eef9f9;   /* soft teal-white  (alternating sections) */
  --bg-3:  #f3eef5;
  --card:  #ffffff;
  --tint-pink: rgba(230, 34, 140, 0.06);
  --tint-teal: rgba(22, 183, 183, 0.07);

  --line:   rgba(28, 19, 34, 0.10);
  --line-2: rgba(28, 19, 34, 0.16);

  /* Text */
  --text:    #1c1322;
  --muted:   #6c6478;
  --muted-2: #9b91a6;

  /* Brand (from logo) */
  --magenta: #E6228C;
  --pink:    #FF5DA0;
  --teal:    #16B7B7;
  --teal-d:  #0E9E9E;
  --violet:  #9B4DFF;

  --grad:      linear-gradient(120deg, var(--magenta), var(--pink));
  --grad-duo:  linear-gradient(120deg, var(--magenta), var(--teal));
  --grad-soft: linear-gradient(120deg, rgba(230,34,140,.10), rgba(22,183,183,.10));
  --grad-teal: linear-gradient(120deg, var(--teal-d), var(--teal));

  /* Elevation */
  --shadow-sm:   0 2px 10px rgba(28, 19, 34, 0.06);
  --shadow-md:   0 14px 34px rgba(28, 19, 34, 0.10);
  --shadow-lg:   0 30px 70px rgba(230, 34, 140, 0.16);
  --shadow-glow: 0 22px 54px rgba(230, 34, 140, 0.24);

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 700px at 4% -6%, rgba(230, 34, 140, 0.09), transparent 60%),
    radial-gradient(1150px 780px at 100% 2%, rgba(22, 183, 183, 0.16), transparent 60%),
    radial-gradient(1000px 900px at 80% 100%, rgba(22, 183, 183, 0.11), transparent 62%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--magenta); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

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

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--grad-duo);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-teal {
  background: var(--grad-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.italic { font-style: italic; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__lead { color: var(--muted); max-width: 56ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__lead { max-width: 50ch; }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--magenta); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px;
  z-index: 1000; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--accent {
  background: var(--grad);
  color: #fff;
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 10px 26px rgba(230, 34, 140, 0.30);
}
.btn--accent:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 16px 40px rgba(230, 34, 140, 0.42);
}

.btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  color: var(--teal-d);
  box-shadow: var(--shadow-md);
}

.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 34, 140, 0.10), transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: multiply;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(28, 19, 34, 0.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 62px;
  width: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.05); }
.footer__brand .brand__logo { height: 78px; }

.nav__links { display: flex; gap: 0.35rem; }
.nav__links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0.25rem;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad-duo);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { width: 18px; }

.nav__cta { padding: 0.7em 1.3em; font-size: 0.9rem; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(160deg, #fff, var(--bg-2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: clamp(2rem, 8vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 8vw, 2.5rem);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.mobile-menu__links a:hover { color: var(--magenta); padding-left: 0.6rem; }
.mobile-menu__links .i {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-d);
  letter-spacing: 0.1em;
}
.mobile-menu__cta { align-self: flex-start; }
.mobile-menu__meta { display: flex; flex-direction: column; gap: 0.25rem; color: var(--muted); font-size: 0.9rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 1rem);
  padding-bottom: 3rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.hero__spot--1 { width: 500px; height: 500px; top: -12%; left: -8%; background: radial-gradient(circle, rgba(230,34,140,0.30), transparent 70%); }
.hero__spot--2 { width: 620px; height: 620px; top: 12%; right: -16%; background: radial-gradient(circle, rgba(22,183,183,0.42), transparent 70%); animation-delay: -4s; }
.hero__spot--3 { width: 480px; height: 480px; bottom: -18%; left: 28%; background: radial-gradient(circle, rgba(22,183,183,0.30), transparent 70%); animation-delay: -8s; }

.hero__ribbons { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.ribbon {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: draw 4.5s var(--ease) forwards, ribbonFloat 12s ease-in-out infinite 4.5s;
  opacity: 0.7;
}
.ribbon--1 { animation-delay: 0.2s, 4.7s; }
.ribbon--2 { animation-delay: 0.6s, 5.1s; opacity: 0.5; }
.ribbon--3 { animation-delay: 1.0s, 5.5s; opacity: 0.35; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ribbonFloat { 50% { transform: translateY(-14px); } }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(18px, -26px) scale(1.06); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(22,183,183,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,183,183,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(22,183,183,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,183,183,0); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.32em;   /* extends the clip area so descenders (χ, η, γ) show */
  margin-bottom: -0.32em;   /* fully cancels the padding -> original line spacing */
}
.hero__title .w {
  display: inline-block;
  transform: translateY(150%);
  animation: wordUp 0.95s var(--ease) forwards;
  padding-bottom: 0.22em;   /* lets the gradient fill reach the descenders */
}
.hero__title .line:nth-child(1) .w:nth-child(1) { animation-delay: 0.15s; }
.hero__title .line:nth-child(1) .w:nth-child(2) { animation-delay: 0.27s; }
.hero__title .line:nth-child(2) .w:nth-child(1) { animation-delay: 0.39s; }
.hero__title .line:nth-child(2) .w:nth-child(2) { animation-delay: 0.51s; }
@keyframes wordUp { to { transform: translateY(0); } }

.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }

.hero__pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.hero__pills li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.hero__pills li:hover { color: var(--magenta); border-color: var(--pink); transform: translateY(-2px); }

/* Hero media */
.hero__media { position: relative; }
.hero__media::before { /* glow behind frame */
  content: "";
  position: absolute; inset: -7% -5% -5% -3%;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(150deg, rgba(230,34,140,0.55), rgba(22,183,183,0.5));
  filter: blur(46px);
  opacity: 0.55;
}
.hero__media-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--magenta), var(--teal));
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
  transition: transform 0.6s var(--ease);
}
.hero__media:hover .hero__media-frame { transform: rotate(0deg); }
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

.hero__chip {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 3;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px rgba(230,34,140,0.4);
}
.hero__badge {
  position: absolute; bottom: 1.2rem; left: -1.2rem; z-index: 3;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.hero__badge-stars { color: var(--magenta); font-size: 0.95rem; letter-spacing: 0.05em; }
.hero__badge-text { font-size: 0.82rem; color: var(--muted); line-height: 1.25; }
.hero__badge-text strong { color: var(--text); font-size: 1.05rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-2);
}
.hero__scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--teal), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--magenta);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--tint-pink), var(--tint-teal));
  padding-block: 1.3rem;
  position: relative;
}
.marquee__track {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(28, 19, 34, 0.28);
  white-space: nowrap;
}
.marquee .star {
  -webkit-text-stroke: 0;
  font-style: normal;
  font-size: 1rem;
  background: var(--grad-duo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__text p { color: var(--muted); margin-top: 1.1rem; max-width: 52ch; }
.about__text p strong { color: var(--magenta); font-weight: 700; }
.about__text .h2 { margin-bottom: 0.5rem; }

.about__signature { margin-top: 2rem; display: flex; flex-direction: column; }
.sig { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--teal-d); }
.sig-role { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-top: 0.2rem; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.stat::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0;
  transition: opacity 0.4s;
}
.stat:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-md); }
.stat:hover::before { opacity: 1; }
.stat__num {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  background: var(--grad-duo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { position: relative; display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   CLASSES  (tinted section) — Cinematic Photo Cards
   ========================================================= */
.classes { background: var(--bg-2); }

/* Text-only course cards — no images / icons. Mobile-first. */
.course-grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile: single column */
  gap: 0.9rem;
}
.course {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem 1.7rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
/* left gradient accent bar */
.course::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: var(--g);
  transition: width 0.4s var(--ease);
}
/* soft gradient wash that fades in on hover */
.course::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--g); opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.course:hover,
.course:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  outline: none;
}
.course:hover::before,
.course:focus-visible::before { width: 7px; }
.course:hover::after,
.course:focus-visible::after { opacity: 0.06; }

.course__level {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.32rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}
.course__name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.01em;
}
.course:hover .course__name {
  background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.course__desc { font-size: 0.95rem; color: var(--muted); margin-top: 0.35rem; }
.course__cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.1rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--magenta);
}
.course__cta i { font-style: normal; transition: transform 0.4s var(--ease); }
.course:hover .course__cta i { transform: translateX(5px); }

@media (min-width: 600px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}
@media (min-width: 980px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

/* =========================================================
   SCHEDULE
   ========================================================= */
.sched {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sched__tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.sched__tab {
  flex: 1 1 auto;
  min-width: 64px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.25s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.sched__tab:hover { color: var(--text); background: #fff; }
.sched__tab.is-active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(230, 34, 140, 0.3);
}

.sched__panel { padding: clamp(0.8rem, 2vw, 1.4rem); }
.sched__day { display: none; flex-direction: column; gap: 0.5rem; }
.sched__day.is-active { display: flex; animation: fadeUp 0.45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.slot {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.slot:hover { transform: translateX(6px); border-color: var(--pink); background: #fff; box-shadow: var(--shadow-sm); }
.slot__time { font-family: var(--serif); font-size: 1.25rem; color: var(--teal-d); }
.slot__name { font-weight: 600; }
.slot__tutor { color: var(--muted); font-size: 0.9rem; }
.slot__pill {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}

/* =========================================================
   INSTRUCTORS  (tinted section)
   ========================================================= */
.team { background: var(--bg-2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.3rem;
}
.member {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.member__photo {
  aspect-ratio: 4 / 5;
  background: var(--g);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.member__mono { /* fallback behind photo */
  position: absolute; z-index: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: rgba(255,255,255,0.92);
}
.member__photo img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.06); }
.member__photo::after { /* sheen for depth */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 30%, rgba(28,19,34,0.28) 100%);
}
.member__body { padding: 1.3rem 1.4rem 1.5rem; }
.member__body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.member__role { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.member__socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.member__socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-2);
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.3s, transform 0.3s;
}
.member__socials a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-2px); }

/* =========================================================
   GALLERY MOSAIC  (real photos)
   ========================================================= */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--magenta), var(--teal));
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  cursor: pointer;
}
.tile img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 10, 26, 0.72));
  transition: opacity 0.4s;
}
.tile:hover img { transform: scale(1.09); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }

.tile figcaption { position: relative; z-index: 2; display: flex; flex-direction: column; color: #fff; }
.tile__k { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.tile__s { color: rgba(255,255,255,0.88); font-size: 0.85rem; transform: translateY(6px); opacity: 0; transition: opacity 0.4s, transform 0.4s; }
.tile:hover .tile__s { opacity: 1; transform: none; }

/* =========================================================
   TESTIMONIALS / CAROUSEL  (tinted section)
   ========================================================= */
.quotes { background: var(--bg-2); }
.carousel { max-width: 820px; margin-inline: auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel__track { display: flex; transition: transform 0.6s var(--ease); }
.quote {
  flex: 0 0 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.quote__stars { color: var(--teal-d); letter-spacing: 0.2em; margin-bottom: 1.3rem; }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  color: var(--text);
}
.quote footer { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.15rem; }
.quote__name { font-weight: 700; }
.quote__meta { color: var(--muted); font-size: 0.85rem; }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.8rem; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s, background 0.3s, border-color 0.3s, transform 0.3s;
}
.carousel__btn:hover { color: #fff; background: var(--grad); border-color: transparent; transform: scale(1.06); }
.carousel__dots { display: flex; gap: 0.5rem; }
.carousel__dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2);
  transition: width 0.3s, background 0.3s;
}
.carousel__dots button.active { width: 26px; border-radius: 999px; background: var(--grad); }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta-band__inner {
  position: relative;
  text-align: center;
  padding: clamp(2.8rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 380px at 50% -20%, rgba(230,34,140,0.12), transparent 70%),
    radial-gradient(500px 320px at 85% 120%, rgba(22,183,183,0.12), transparent 65%),
    #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cta-band__title {
  position: relative;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  color: var(--text);
  text-wrap: balance;
}
.cta-band__title .grad { display: inline-block; margin-top: 0.25em; }
.cta-band__title .grad { background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; }
.cta-band p { position: relative; color: var(--muted); max-width: 48ch; margin: 1.1rem auto 2rem; }
.cta-band .btn { position: relative; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__info > p:not(.kicker) { color: var(--muted); margin-top: 0.8rem; max-width: 44ch; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact__ic {
  flex: none;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--tint-teal);
  color: var(--teal-d);
}
.contact__k { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.contact__v { display: block; font-weight: 500; margin-top: 0.1rem; }
a.contact__v:hover { color: var(--magenta); }

.contact__socials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.contact__socials a {
  font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.3s, transform 0.3s;
}
.contact__socials a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-2px); }

.contact__form-wrap {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-md);
}
/* Phone-first call card (primary contact action) */
.call-card {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0 0.3rem;
}
.call-card__k {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-d);
}
.call-card__num {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.1;
  color: var(--muted); letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
}
.call-card__num:hover { color: var(--magenta); }
.call-card .btn { margin-top: 0.6rem; gap: 0.55rem; }
.call-card .btn svg { flex: none; }
.call-card__hours { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* Secondary "send a message" disclosure */
.contact__msg {
  margin-top: 1.4rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.contact__msg > summary {
  cursor: pointer; list-style: none;
  font-size: 0.92rem; font-weight: 600; color: var(--muted);
  text-align: center; transition: color 0.25s;
}
.contact__msg > summary::-webkit-details-marker { display: none; }
.contact__msg > summary:hover { color: var(--teal-d); }
.contact__msg[open] > summary { margin-bottom: 1.2rem; color: var(--text); }
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 183, 183, 0.16);
}
.field select option { background: #fff; color: var(--text); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,0.12); }
.form__note { font-size: 0.9rem; min-height: 1.2em; text-align: center; color: var(--muted); }
.form__note.ok { color: var(--teal-d); font-weight: 600; }

.contact__map {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  height: 380px;
  background: var(--bg-2);
}
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
/* Clean fallback (shown when the live map isn't loaded — e.g. in-app browsers) */
.contact__map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  text-align: center; padding: 1.5rem;
  background: var(--grad-soft);
  color: var(--teal-d);
}
.contact__map-addr { font-weight: 600; color: var(--text); line-height: 1.5; }
/* Directions button — always visible, on top of map or fallback */
.contact__map-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: #fff; color: var(--text);
  font-size: 0.88rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), color 0.25s;
}
.contact__map-btn:hover { transform: translateY(-2px); color: var(--magenta); }
.contact__map-btn svg { color: var(--magenta); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), #fff);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__tag { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.footer__col h3 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; font-weight: 700; }
.footer__col a { display: block; color: var(--muted); padding: 0.3rem 0; transition: color 0.25s, padding-left 0.25s; }
.footer__col a:hover { color: var(--teal-d); padding-left: 0.3rem; }
.footer__newsletter p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.footer__sub { display: flex; gap: 0.5rem; }
.footer__sub input {
  flex: 1; padding: 0.75rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text);
}
.footer__sub input:focus { outline: none; border-color: var(--magenta); }
.footer__sub button {
  width: 50px; border-radius: 12px;
  background: var(--grad); color: #fff;
  font-size: 1.2rem; font-weight: 700;
  transition: transform 0.3s var(--ease);
}
.footer__sub button:hover { transform: translateX(3px); }
.footer__sub-note { font-size: 0.85rem; color: var(--teal-d); margin-top: 0.6rem; min-height: 1em; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 0.85rem;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 28px rgba(230, 34, 140, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.course-grid .reveal.in-view,
.team-grid .reveal.in-view,
.mosaic .reveal.in-view { transition-delay: var(--d, 0s); }

/* Directional reveal variants */
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(0.94); }
.reveal--left.in-view,
.reveal--right.in-view,
.reveal--scale.in-view { transform: none; }

/* Stagger applied to any grid via --d (set in JS) */
.reveal { transition-delay: var(--d, 0s); }

/* Parallax — only transforms; JS sets the translateY through a CSS var */
[data-parallax] { will-change: transform; }

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 1200; pointer-events: none;
  background: rgba(0, 0, 0, 0.05);
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--grad, linear-gradient(90deg, #E6228C, #16B7B7));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .team-grid  { grid-template-columns: repeat(3, 1fr); }
  .mosaic     { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero__badge { left: 0.8rem; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
}

@media (max-width: 600px) {
  :root { --nav-h: 70px; }
  .brand__logo { height: 46px; }
  .footer__brand .brand__logo { height: 60px; }

  /* tighter vertical rhythm so nothing feels cramped */
  .section { padding-block: clamp(3.2rem, 12vw, 4.5rem); }
  .section-head { margin-bottom: 2rem; gap: 0.6rem; }

  /* HERO — declutter: drop the pills + scroll cue, stack & enlarge buttons */
  .hero { padding-top: calc(var(--nav-h) + 0.8rem); padding-bottom: 2.5rem; }
  .hero__inner { gap: 2rem; }
  .hero__eyebrow { font-size: 0.7rem; padding: 0.45rem 0.85rem; margin-bottom: 1.1rem; }
  .hero__title { font-size: clamp(2.15rem, 10.5vw, 3.3rem); margin-bottom: 1.1rem; }
  .hero__lead { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero__actions { gap: 0.7rem; margin-bottom: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__pills { display: none; }
  .hero__scroll { display: none; }
  .hero__chip { display: none; }
  .hero__media { max-width: 360px; }
  .hero__media-frame { aspect-ratio: 1 / 1; }
  .hero__badge { left: 0.7rem; bottom: 0.7rem; padding: 0.6rem 0.85rem; gap: 0.55rem; }
  .hero__badge-stars { font-size: 0.85rem; }
  .hero__badge-text { font-size: 0.72rem; }
  .hero__badge-text strong { font-size: 0.9rem; }

  /* stacked content grids */
  .team-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Course cards — comfortable single column on phones */
  .course { padding: 1.2rem 1.2rem 1.15rem 1.5rem; }
  .course__name { font-size: 1.55rem; }

  /* GALLERY — compact, intentional 2-up grid instead of a long single column */
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 0.7rem; }
  .tile--wide, .tile--tall { grid-column: auto; grid-row: auto; }
  .tile { padding: 0.9rem; }
  .tile__k { font-size: 1.1rem; }
  .tile__s { display: none; }

  /* SCHEDULE */
  .slot { grid-template-columns: 58px 1fr; row-gap: 0.25rem; column-gap: 0.7rem; padding: 0.85rem 0.9rem; }
  .slot__pill { grid-column: 2; justify-self: start; margin-top: 0.2rem; }
  .slot__time { font-size: 1.1rem; }

  /* TESTIMONIALS */
  .quote { padding: 1.7rem 1.3rem; }
  .quote p { font-size: 1.12rem; }
  .quote__stars { margin-bottom: 1rem; }

  /* CTA + CONTACT */
  .cta-band__inner { padding: 2.4rem 1.3rem; }
  .contact__form-wrap { padding: 1.3rem; }
  .contact__map { height: 280px; margin-top: 2rem; }

  /* FOOTER — brand full width, link columns side-by-side, newsletter full */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; }
  .footer__brand, .footer__newsletter { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  /* MARQUEE */
  .marquee { padding-block: 1rem; }
  .marquee span { font-size: clamp(1.3rem, 7vw, 1.9rem); }
  .marquee__track { gap: 1.6rem; }
}

@media (max-width: 400px) {
  .hero__title { font-size: clamp(1.95rem, 11.5vw, 2.7rem); }
  .hero__media { max-width: 320px; }
  .mosaic { grid-auto-rows: 132px; gap: 0.6rem; }
  .container { padding-inline: 1.1rem; }
  .course__name { font-size: 1.45rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__title .w { transform: none; }
  .hero__media-frame { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .ribbon { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
}
