/* ============================================================
   ХАНЖАР v2 — immersive award-site build
   deep plum · lavender glow · massive type · scroll choreography
   ============================================================ */

:root {
  --bg-deep: #efeeec;
  --bg: #faf9f7;
  --bg-raised: #ffffff;
  --bg-card: #f4f3f1;
  --lavender: #67558c;
  --lavender-bright: #b19cd9;
  --lavender-dim: #443267;
  --blush: #7b5455;
  --blush-deep: #543333;
  --gold: #9b4500;
  --ink: #1a1c1b;
  --muted: #49454f;
  --line: rgba(103, 85, 140, 0.15);
  --glow-strength: 0.2;
  --radius: 4px;
  --font-display: "Playfair Display", serif;
  --font-body: "Manrope", sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
::selection { background: var(--lavender); color: #ffffff; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; text-wrap: balance; }
p { text-wrap: pretty; }
a { -webkit-tap-highlight-color: transparent; }

/* Clips horizontal overflow without breaking position:sticky in hgallery.
   NEVER apply overflow-x:hidden directly to html or body — it kills sticky. */
.clip-wrap { overflow-x: hidden; }

/* ---------- custom cursor (disabled) ---------- */
.cursor-dot, .cursor-ring { display: none !important; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-deep);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
html.anim .preloader { display: flex; }
.preloader.done { animation: preloader-out 0.7s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
@keyframes preloader-out { to { transform: translateY(-100%); } }
.preloader-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 110px);
  letter-spacing: 0.04em;
  display: flex;
  overflow: hidden;
}
.preloader-word span {
  display: inline-block;
  background: linear-gradient(115deg, var(--lavender-bright), var(--blush) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(110%);
  animation: pre-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 70ms + 100ms);
}
@keyframes pre-up { to { transform: translateY(0); } }
.preloader-stitch { width: min(300px, 56vw); color: var(--blush); overflow: visible; }
.preloader-stitch path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  opacity: 0;
  animation: pre-fade 0.5s ease 0.6s forwards;
}
@keyframes pre-fade { to { opacity: 1; } }

/* ---------- glow orbs ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: calc(0.5 * var(--glow-strength));
  z-index: 0;
}
.orb--lav { background: radial-gradient(circle, rgba(103, 85, 140, 0.25), transparent 70%); }
.orb--blush { background: radial-gradient(circle, rgba(123, 84, 85, 0.2), transparent 70%); }

/* ---------- thread progress rail ---------- */
.thread-rail { position: fixed; left: 34px; top: 0; bottom: 0; width: 2px; z-index: 40; pointer-events: none; }
.thread-rail::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, var(--line) 50%, transparent 50%);
  background-size: 2px 10px;
}
.thread-fill {
  position: absolute; top: 0; left: 0; width: 2px; height: 0%;
  background: linear-gradient(to bottom, var(--blush), var(--lavender));
  box-shadow: 0 0 12px rgba(239, 168, 188, calc(0.7 * var(--glow-strength)));
}
.thread-needle { position: absolute; left: -10px; top: -4px; width: 22px; height: 22px; transform: rotate(45deg); color: var(--gold); }
@media (max-width: 1100px) { .thread-rail { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  z-index: 102;
}
.nav-logo svg { color: var(--blush); }
.nav-center {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender-dim);
  font-weight: 700;
}
@media (max-width: 860px) { .nav-center { display: none; } }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-enroll {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--blush);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 99px;
  box-shadow: 0 0 26px rgba(239, 168, 188, calc(0.4 * var(--glow-strength)));
  display: inline-block;
}
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px; height: 52px;
  padding: 0 14px;
  background: rgba(195, 174, 224, 0.1);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  z-index: 102;
}
.menu-btn i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s ease, opacity 0.3s, width 0.35s ease; }
.menu-btn i:nth-child(2) { width: 65%; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: linear-gradient(160deg, #faf9f7, var(--bg-deep) 70%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(90px, 14vh, 150px) clamp(24px, 7vw, 100px) 48px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.65s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0.65s;
}
.menu-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: clamp(10px, 4vh, 32px);
}
.menu-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}
.menu-back-btn svg {
  color: var(--blush);
  transition: transform 0.3s ease;
}
.menu-back-btn:hover {
  background: var(--bg-card);
  border-color: var(--blush);
  color: var(--blush);
}
.menu-back-btn:hover svg {
  transform: translateX(-4px);
}
.menu-open .menu { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path 0.65s cubic-bezier(0.7, 0, 0.2, 1); }
.menu-links { list-style: none; display: grid; gap: 4px; align-content: center; }
.menu-links a {
  font-family: var(--font-display);
  font-size: clamp(38px, 7.4vh, 72px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  line-height: 1.18;
  transition: color 0.25s ease, transform 0.3s ease;
}
.menu-links a:hover { color: var(--blush); transform: translateX(14px); }
.menu-links a small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.menu-foot { display: flex; flex-wrap: wrap; gap: 14px 40px; color: var(--lavender-dim); font-size: 14px; border-top: 1px solid var(--line); padding-top: 26px; }
.menu-foot a { color: var(--lavender-bright); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 56px) 0;
  overflow: clip;
}
.hero-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: 90px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(10px, 2vh, 26px);
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: clamp(24px, 4vw, 60px); height: 1px; background: linear-gradient(to right, transparent, var(--gold)); }
.hero-eyebrow::after { background: linear-gradient(to left, transparent, var(--gold)); }

.hero-word-mask-outer { overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(70px, 16.5vw, 300px);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-align: center;
  background: linear-gradient(115deg, var(--lavender-bright) 10%, var(--blush) 55%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 36px rgba(195, 174, 224, calc(0.35 * var(--glow-strength))));
  user-select: none;
}
html.anim .hero-word { transform: translateY(108%); opacity: 0; transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.18s, opacity 0.9s ease 0.18s; }
html.anim .hero-ready .hero-word { transform: translateY(0); opacity: 1; }

.hero-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: clamp(14px, 2.5vh, 30px);
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 600;
  color: var(--lavender-bright);
}
.hero-subline em { font-style: normal; color: var(--muted); font-weight: 400; }
.hero-subline i { width: 5px; height: 5px; border-radius: 50%; background: var(--blush); font-size: 0; }
html.anim .hero-subline, html.anim .hero-eyebrow { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s; }
html.anim .hero-ready .hero-subline, html.anim .hero-ready .hero-eyebrow { opacity: 1; transform: none; }

/* hero media — expands on scroll */
.hero-media-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 4vh, 44px);
}
.hero-media {
  width: min(900px, 72vw);
  border-radius: calc(var(--radius) + 8px) calc(var(--radius) + 8px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(226, 212, 247, 0.22);
  border-bottom: none;
  box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.4), 0 0 90px rgba(165, 130, 220, calc(0.25 * var(--glow-strength)));
  will-change: width;
}
.hero-media img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; will-change: transform; }
html.anim .hero-media { opacity: 0; transform: translateY(60px); transition: opacity 1s ease 1.15s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 1.15s; }
html.anim .hero-ready .hero-media { opacity: 1; transform: none; }
@media (max-width: 760px) { .hero-media { width: 88vw; } .hero-media img { aspect-ratio: 4/3; } }

.hero-side {
  position: absolute;
  bottom: 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lavender-dim);
  writing-mode: vertical-rl;
}
.hero-side--l { left: clamp(18px, 3.5vw, 52px); }
.hero-side--r { right: clamp(18px, 3.5vw, 52px); transform: rotate(180deg); }
@media (max-width: 1100px) { .hero-side { display: none; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(239, 238, 236, 0.45);
  overflow: clip;
  padding: 18px 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.marquee-chunk {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--lavender-bright);
}
.marquee-chunk em { font-style: italic; color: var(--blush); }
.marquee-chunk svg { color: var(--gold); flex: none; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(90px, 13vh, 150px) clamp(20px, 4vw, 56px); }
.section-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.kicker::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.kicker .n { color: var(--lavender-dim); letter-spacing: 0.1em; }

/* ---------- manifesto (scroll text fill) ---------- */
.manifesto { background: var(--bg-deep); }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.32;
  max-width: 20ch;
}
.manifesto-text .w { color: var(--ink); transition: color 0.35s linear, opacity 0.35s linear; }
html.anim .manifesto-text .w { color: var(--ink); opacity: 0.14; }
html.anim .manifesto-text .w.on { opacity: 1; }
.manifesto-text .hl { font-style: italic; }
html.anim .manifesto-text .w.hl.on { color: var(--blush); }
.manifesto-foot { margin-top: 48px; display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 16px; max-width: 52ch; }
.manifesto-foot svg { color: var(--blush); flex: none; }

/* ---------- about split ---------- */
.about { background: var(--bg); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.about-sticky { position: sticky; top: 110px; }
.about h2 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 22px; }
.about-lead { color: var(--muted); font-size: 18px; max-width: 54ch; margin-bottom: 38px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-stat { background: var(--bg-card); padding: 26px 24px; }
.about-stat b { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; color: var(--lavender-bright); line-height: 1.1; }
.about-stat b em { font-style: normal; color: var(--gold); }
.about-stat span { font-size: 13.5px; color: var(--muted); }
.about-photos { display: grid; gap: 22px; }
.about-photos figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.about-photos img { width: 100%; object-fit: cover; will-change: transform; }
.about-photos .p1 img { aspect-ratio: 4 / 3; }
.about-photos .p2 { width: 72%; justify-self: end; margin-top: -8%; box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.about-photos .p2 img { aspect-ratio: 3 / 3.6; object-position: 65% 65%; }
.about-photos figcaption {
  position: absolute; right: 16px; bottom: 14px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(25, 16, 42, 0.6);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
}
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-sticky { position: static; }
}

/* ---------- image reveal mask ---------- */
html.anim .mask-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1); }
html.anim .mask-reveal.in { clip-path: inset(0 0 0% 0); }
html.anim .mask-reveal img { transform: scale(1.18); transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
html.anim .mask-reveal.in img { transform: scale(1); }

/* ---------- generic reveal ---------- */
html.anim .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .reveal-d1 { transition-delay: 0.12s; }
html.anim .reveal-d2 { transition-delay: 0.24s; }

/* ---------- courses (editorial rows) ---------- */
.courses { background: var(--bg-deep); }
.courses-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.courses-head h2 { font-size: clamp(40px, 6vw, 84px); }
.courses-head p { color: var(--muted); max-width: 36ch; font-size: 16px; }
.course-row { border-top: 1px solid var(--line); position: relative; }
.course-row:last-of-type { border-bottom: 1px solid var(--line); }
.course-row-head {
  display: grid;
  grid-template-columns: 90px 1.2fr 1fr auto auto;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(26px, 4.5vh, 46px) 6px;
  cursor: pointer;
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  user-select: none;
}
@media (hover: hover) { .course-row-head:hover { padding-left: 26px; } }
.course-num {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  color: var(--lavender-dim);
  transition: color 0.3s;
}
.course-row-head:hover .course-num, .course-row.open .course-num { color: var(--gold); }
.course-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.05;
  transition: color 0.3s;
}
.course-row-head:hover .course-name { color: var(--blush); }
.course-brief { color: var(--muted); font-size: 15px; max-width: 30ch; }
.course-cost { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; color: var(--lavender-bright); white-space: nowrap; }
.course-plus {
  width: 54px; height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lavender-bright);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s;
  flex: none;
}
.course-row.open .course-plus { transform: rotate(225deg); background: rgba(239, 168, 188, 0.14); border-color: var(--blush); }
.course-body { overflow: clip; max-height: 0; transition: max-height 0.6s cubic-bezier(0.7, 0, 0.2, 1); }
.course-row.open .course-body { max-height: 760px; }
.course-body-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 64px);
  padding: 6px 6px clamp(30px, 5vh, 52px);
}
.course-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; align-content: start; }
.course-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.course-list svg { color: var(--blush); flex: none; margin-top: 4px; }
.course-aside { display: grid; gap: 14px; align-content: start; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.course-tags span {
  font-size: 12.5px; font-weight: 700;
  color: var(--lavender-bright);
  background: rgba(195, 174, 224, 0.1);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 99px;
}
.course-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 30px;
  border-radius: 99px;
  text-decoration: none;
  background: linear-gradient(120deg, var(--blush), var(--blush-deep));
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 8px 30px rgba(239, 168, 188, calc(0.35 * var(--glow-strength)));
  width: fit-content;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.course-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.course-note { font-size: 13.5px; color: var(--lavender-dim); }
@media (max-width: 920px) {
  .course-row-head { grid-template-columns: auto 1fr auto; }
  .course-brief { display: none; }
  .course-cost { grid-column: 2; grid-row: 2; font-size: 18px; }
  .course-num { font-size: 16px; }
  .course-body-grid { grid-template-columns: 1fr; }
  .course-list { grid-template-columns: 1fr; }
}


/* ---------- gold band ---------- */
.band {
  border-block: 1px solid rgba(155, 69, 0, 0.2);
  background:
    radial-gradient(ellipse 60% 130% at 50% 50%, rgba(155, 69, 0, 0.05), transparent 70%),
    var(--bg);
  padding: clamp(56px, 9vh, 90px) clamp(20px, 4vw, 56px);
}
.band-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: clamp(24px, 5vw, 70px); flex-wrap: wrap; }
.band-pct {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 170px);
  font-weight: 700;
  line-height: 0.9;
  background: linear-gradient(115deg, var(--gold), #ffdbc9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(155, 69, 0, calc(0.35 * var(--glow-strength))));
}
.band-copy { flex: 1; min-width: 280px; }
.band-copy h3 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.band-copy p { color: var(--muted); max-width: 56ch; }
.band-cert {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px dashed rgba(155, 69, 0, 0.45);
  border-radius: 18px;
  padding: 20px 26px;
  color: var(--lavender-bright);
  font-size: 15px;
  font-weight: 600;
  max-width: 320px;
}
.band-cert svg { color: var(--gold); flex: none; }

/* ---------- horizontal gallery ---------- */
.hgallery { position: relative; background: var(--bg-deep); }
html.anim .hgallery { height: 320vh; }
.hgallery-pin { display: flex; flex-direction: column; justify-content: center; overflow: clip; padding: clamp(70px, 10vh, 110px) 0; gap: 40px; }
html.anim .hgallery-pin { position: sticky; top: 0; height: 100vh; padding: 0; }
.hgallery-head { padding: 0 clamp(20px, 4vw, 56px); display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }
.hgallery-head h2 { font-size: clamp(38px, 5.6vw, 76px); }
.hgallery-head span { color: var(--lavender-dim); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
html.anim .hgallery-head { margin-bottom: 6vh; }
.hgallery-track {
  display: flex;
  gap: clamp(18px, 2.5vw, 34px);
  padding: 0 clamp(20px, 4vw, 56px);
  width: max-content;
  will-change: transform;
}
.hg-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
  width: clamp(300px, 36vw, 560px);
  transition: box-shadow 0.3s ease;
}
.hg-item.hg-tall { width: clamp(240px, 26vw, 400px); }
.hg-item img { width: 100%; height: clamp(380px, 56vh, 600px); object-fit: cover; transition: transform 0.5s ease; }
@media (hover: hover) { .hg-item:hover img { transform: scale(1.04); } .hg-item:hover { box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 50px rgba(195,174,224, calc(0.22 * var(--glow-strength))); } }
.hg-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 50px 22px 18px;
  background: linear-gradient(to top, rgba(20, 12, 34, 0.85), transparent);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hg-cap b { font-size: 15.5px; }
.hg-cap span { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--gold); white-space: nowrap; }
.hg-end {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(260px, 28vw, 420px);
  border: 1px dashed rgba(195, 174, 224, 0.35);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-style: italic;
  color: var(--lavender);
  text-align: center;
  padding: 30px;
}
/* no-anim fallback: horizontal scroll */
html:not(.anim) .hgallery-track { overflow-x: auto; width: auto; }

/* ---------- testimonials marquee ---------- */
.quotes-sec { background: var(--bg); border-block: 1px solid var(--line); padding-block: clamp(80px, 11vh, 130px); overflow: clip; }
.quotes-sec .kicker, .quotes-sec h2 { padding-inline: clamp(20px, 4vw, 56px); }
.quotes-sec h2 { font-size: clamp(36px, 4.6vw, 60px); max-width: 1240px; }
.quotes-sec .kicker { max-width: 1240px; }
.qmarquee { margin-top: 56px; display: grid; gap: 22px; }
.qrow { display: flex; gap: 22px; width: max-content; will-change: transform; }
.qcard {
  width: clamp(320px, 34vw, 480px);
  flex: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
}
.qcard p { font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 21px); font-style: italic; line-height: 1.5; color: var(--lavender-bright); margin-bottom: 20px; }
.qcard footer { display: flex; align-items: center; gap: 13px; }
.qcard .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blush), var(--lavender));
  flex: none;
}
.qcard b { display: block; font-size: 14.5px; }
.qcard span { font-size: 13px; color: var(--muted); }

/* ---------- finale CTA ---------- */
.finale {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 4vw, 56px) clamp(60px, 8vh, 100px);
  overflow: clip;
  background: var(--bg-deep);
}
.finale-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.finale-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 9vw, 150px);
  line-height: 1.02;
  max-width: 11ch;
  background: linear-gradient(115deg, var(--lavender-bright) 15%, var(--blush) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 36px rgba(195, 174, 224, calc(0.3 * var(--glow-strength))));
  margin-bottom: 46px;
}
.finale-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(120deg, var(--blush), var(--blush-deep));
  border: none;
  border-radius: 99px;
  padding: clamp(20px, 2.6vw, 28px) clamp(40px, 5vw, 64px);
  cursor: pointer;
  box-shadow: 0 14px 50px rgba(123, 84, 85, calc(0.35 * var(--glow-strength)));
  transition: box-shadow 0.3s ease;
  will-change: transform;
}
.finale-btn:hover { box-shadow: 0 18px 70px rgba(123, 84, 85, calc(0.55 * var(--glow-strength))); }
.finale-contact { margin-top: 60px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; color: var(--muted); font-size: 15px; }
.finale-contact a { color: var(--lavender-bright); text-decoration: none; font-weight: 700; }
.finale-contact a:hover { color: var(--blush); }
.finale-contact .item { display: flex; align-items: center; gap: 10px; }
.finale-contact svg { color: var(--gold); flex: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px clamp(20px, 4vw, 56px); background: var(--bg-deep); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer p { font-size: 13.5px; color: var(--lavender-dim); }

/* ---------- enroll modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr min(620px, 100%);
  visibility: hidden;
  transition: visibility 0s 0.6s;
}
.modal.open { visibility: visible; transition: none; }
.modal-scrim { background: rgba(26, 28, 27, 0); transition: background 0.5s ease; cursor: pointer; }
.modal.open .modal-scrim { background: rgba(26, 28, 27, 0.4); backdrop-filter: blur(4px); }
.modal-panel {
  background: linear-gradient(160deg, #faf9f7, var(--bg-deep) 80%);
  border-left: 1px solid var(--line);
  padding: clamp(28px, 5vh, 56px) clamp(24px, 4vw, 56px);
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.modal.open .modal-panel { transform: translateX(0); }
@media (max-width: 700px) { .modal { grid-template-columns: 0 1fr; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.modal-head h3 { font-size: clamp(30px, 4vw, 44px); }
.modal-close {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(103, 85, 140, 0.08);
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
  flex: none;
  transition: transform 0.3s ease, background 0.2s;
}
.modal-close:hover { transform: rotate(90deg); background: rgba(123, 84, 85, 0.16); }
.modal-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 30px; max-width: 46ch; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--lavender-bright); text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2367558c' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blush); box-shadow: 0 0 0 3px rgba(123, 84, 85, 0.18); }
.field input.invalid, .field select.invalid { border-color: #e2697f; box-shadow: 0 0 0 3px rgba(226, 105, 127, 0.15); }
.field .err { font-size: 12.5px; color: #f0899c; display: none; }
.field.show-err .err { display: block; }
.modal .course-cta { width: 100%; margin-top: 4px; padding: 18px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.form-success { text-align: center; padding: 40px 10px; display: none; margin: auto 0; }
.form-success.show { display: block; }
html.anim .form-success.show { animation: pop-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
.form-success .ring {
  width: 90px; height: 90px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(123, 84, 85, 0.14);
  border: 1.5px solid var(--blush);
  color: var(--blush);
  box-shadow: 0 0 50px rgba(123, 84, 85, calc(0.4 * var(--glow-strength)));
}
.form-success h3 { font-size: 30px; margin-bottom: 12px; }
.form-success p { color: var(--muted); font-size: 15.5px; max-width: 40ch; margin: 0 auto; }
.form-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 99px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-success-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103, 85, 140, 0.15);
}
@keyframes pop-in { from { transform: scale(0.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* lock body scroll when overlay open */
body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html.anim .reveal, html.anim .mask-reveal, html.anim .hero-word .l, html.anim .hero-media, html.anim .hero-subline, html.anim .hero-eyebrow { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important; }
}

/* ---------- gallery modal styles ---------- */
.hg-end {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hg-end:hover {
  border-color: var(--lavender);
  color: var(--lavender);
  background: rgba(103, 85, 140, 0.08);
  transform: scale(0.98);
}
.modal-gallery {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  pointer-events: none;
  overflow-y: auto;
}
.modal-gallery.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px clamp(20px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.gallery-modal-header h3 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.gallery-modal-close {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-modal-close:hover {
  transform: rotate(90deg);
  background: var(--lavender);
  color: #fff;
  border-color: var(--lavender);
}
.gallery-modal-body {
  flex: 1;
  padding: 40px clamp(20px, 6vw, 80px);
  background: var(--bg-deep);
}
.gallery-modal-masonry {
  column-count: 3;
  column-gap: 30px;
}
@media (max-width: 900px) {
  .gallery-modal-masonry {
    column-count: 2;
    column-gap: 20px;
  }
}
@media (max-width: 600px) {
  .gallery-modal-masonry {
    column-count: 1;
  }
}
.gallery-modal-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.gallery-modal-card:hover {
  transform: translateY(-4px);
  border-color: var(--lavender);
  box-shadow: 0 12px 40px rgba(103, 85, 140, 0.15);
}
.gallery-modal-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.gallery-modal-meta {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}
.gallery-modal-meta b {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.gallery-modal-meta span {
  font-size: 13px;
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
}
