/* =========================================================
   KNUS 2026 Opening — landing styles
   Rebuilt 1:1 from Figma (node 16:37) — light theme,
   navy + cyan→blue accents, full nav + footer.
   Motion follows Emil Kowalski's principles:
   transform/opacity only · custom easing · :active press ·
   scroll-reveal stagger · prefers-reduced-motion honored.
   ========================================================= */

:root {
  /* ---- Palette (sampled from the Figma render) ---- */
  --navy: #1e2643;
  --navy-2: #28335c;
  --ink: #1e2643;
  --muted: #5b657f;
  --muted-2: #8a93a8;
  --line: #e5e9f1;

  --bg: #ffffff;
  --bg-soft: #f8f8fa;
  --bg-panel: #eef1f7;
  --campus-band: #f3f5f9;

  --blue: #1668e3;        /* royal blue — buttons / links */
  --blue-deep: #1257d8;
  --cyan: #0d86d6;        /* accent — day-2 header, times */
  --cyan-bright: #57c2f5; /* light accent on dark surfaces */
  --gold: #f0cf7a;        /* gala accent */
  --gold-deep: #c79b3a;

  /* ---- Type ---- */
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* ---- Layout ---- */
  --container: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 84px;
  --radius: 18px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(56px, 7vw, 104px);
  scroll-margin-top: var(--nav-h);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.section__title--center { text-align: center; }

.section__underline {
  display: block;
  width: 132px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--gold));
}

/* one-time gold shine sweep on section titles when they scroll into view */
.section__title.is-shine {
  background: linear-gradient(
    100deg,
    currentColor 0%,
    currentColor 42%,
    var(--gold-deep) 49%,
    var(--gold) 51%,
    currentColor 58%,
    currentColor 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: section-shine 1.7s var(--ease-out) forwards;
}
@keyframes section-shine {
  from { background-position: 120% 0; }
  to { background-position: -40% 0; }
}

/* ---------- Buttons ---------- */
.btn {
  --press: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1.6px solid transparent;
  border-radius: 11px;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.2s ease,
    color 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  transform: scale(var(--press));
}
.btn:active { --press: 0.97; }

.btn--primary {
  color: #1e2643;
  background: linear-gradient(180deg, #f7dc94 0%, #d9ad45 100%);
  box-shadow: 0 10px 24px -10px rgba(217, 173, 69, 0.7);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #ffe7a8 0%, #e0b552 100%);
  box-shadow: 0 14px 30px -10px rgba(217, 173, 69, 0.9);
}

.btn--ghost {
  color: var(--gold);
  background: transparent;
  border-color: rgba(240, 207, 122, 0.6);
}
.btn--ghost:hover {
  background: linear-gradient(180deg, #f7dc94 0%, #d9ad45 100%);
  color: #1e2643;
  border-color: transparent;
}

/* Register button — gold with animated gradient border + shine sweep */
@property --bd-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.nav__register,
.nav__register--menu,
.hero__cta {
  position: relative;
  color: #1e2643;
  background: linear-gradient(180deg, #f7dc94 0%, #d9ad45 100%);
  border-color: transparent;
  box-shadow: 0 10px 26px -10px rgba(217, 173, 69, 0.8);
  overflow: hidden;
  isolation: isolate;
}
.nav__register:hover,
.nav__register--menu:hover,
.hero__cta:hover {
  background: linear-gradient(180deg, #ffe7a8 0%, #e0b552 100%);
  box-shadow: 0 14px 34px -10px rgba(217, 173, 69, 1);
}
.nav__register::before,
.nav__register--menu::before,
.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--bd-angle), #c79b3a, #fff3c0, #d9ad45, #b8862f, #fff3c0, #c79b3a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bd-rotate 4s linear infinite;
}
.nav__register::after,
.nav__register--menu::after,
.hero__cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 38%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: btn-shine 4.5s ease-in-out infinite;
}
@keyframes bd-rotate {
  to { --bd-angle: 360deg; }
}
@keyframes btn-shine {
  0%, 100% { left: -60%; }
  22%, 62% { left: 130%; }
}

/* arrow affordance on the intro CTA */
.intro__lead .btn::after {
  content: '↗';
  font-size: 1.05em;
  line-height: 0;
  transform: translateY(1px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(22, 28, 52, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
  padding-block: 12px;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
}

/* Logo / wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__img {
  height: 46px;
  width: auto;
  display: block;
}
.logo--footer .logo__img { height: 54px; }

/* Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  margin-inline: auto;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--cyan-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Language dropdown */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lang__toggle:hover { background: rgba(255, 255, 255, 0.14); }
.lang__chevron { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.lang.is-open .lang__chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  background: linear-gradient(180deg, #242d50 0%, #1a2140 100%);
  border: 1px solid rgba(240, 207, 122, 0.38);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.6), 0 0 22px -10px rgba(240, 207, 122, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.lang.is-open .lang__menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang__opt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang__opt:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang__opt.is-active {
  background: linear-gradient(180deg, #f7dc94 0%, #d9ad45 100%);
  color: #1e2643;
}

/* Burger (mobile) */
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; background: #131a2e; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 23, 45, 0.55) 0%, rgba(18, 23, 45, 0) 24%),
    linear-gradient(90deg, rgba(18, 23, 45, 0.72) 0%, rgba(18, 23, 45, 0.42) 34%, rgba(18, 23, 45, 0.1) 64%, rgba(18, 23, 45, 0) 100%),
    linear-gradient(0deg, rgba(18, 23, 45, 0.42) 0%, rgba(18, 23, 45, 0) 30%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding-top: clamp(120px, 16vh, 200px);
  padding-bottom: clamp(40px, 6vh, 76px);
  gap: 40px;
}
.hero__content { align-self: center; max-width: 880px; min-width: 0; color: #fff; overflow-wrap: break-word; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(240, 207, 122, 0.35);
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  /* cyan→blue with a warm gold glint that sweeps across periodically */
  background: linear-gradient(
    100deg,
    #56c7ff 0%,
    #2f7bf0 38%,
    #ffe7a8 48%,
    #f0cf7a 52%,
    #2f7bf0 62%,
    #56c7ff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: knus-glint 11s ease-in-out 1.6s infinite;
}
@keyframes knus-glint {
  0%, 100% { background-position: 130% 0; }
  46%, 54% { background-position: -30% 0; }
}
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.3vw, 32px);
  line-height: 1.2;
  text-transform: uppercase;
  max-width: 640px;
  margin-top: clamp(20px, 2.4vw, 32px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(24px, 3vw, 40px);
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.hero__chip svg { width: 22px; height: 22px; color: var(--cyan-bright); flex-shrink: 0; }
/* gold CTA, centered — shown only on mobile (nav register is in the menu there) */
.hero__cta {
  display: none;
  width: fit-content;
  margin: clamp(20px, 4vw, 28px) auto 0;
  color: #1e2643;
  background: linear-gradient(180deg, #f7dc94 0%, #d9ad45 100%);
  box-shadow: 0 12px 28px -12px rgba(217, 173, 69, 0.65);
}
.hero__cta:hover {
  background: linear-gradient(180deg, #ffe7a8 0%, #e0b552 100%);
  box-shadow: 0 16px 34px -12px rgba(217, 173, 69, 0.85);
}

/* Grand-opening ribbon — canvas cloth, cut in the centre as you scroll */
/* Hidden for now (kept for later); re-enable initRibbon() in main.js + remove display:none */
.ribbon-canvas {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 60;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-canvas { display: none; }
}

/* Countdown */
.countdown {
  justify-self: end;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(8px, 1.2vh, 14px);
}
.countdown__await {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.35;
  padding: 0.04em 0.08em 0.16em;
  background: linear-gradient(180deg, #fff1cf 0%, #f0cf7a 55%, #c79b3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Great Vibes lacks Kazakh Cyrillic glyphs — fall back for KZ */
[lang="kk"] .hero__occasion,
[lang="kk"] .countdown__await {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
  padding: 0;
}
[lang="kk"] .hero__occasion { font-size: clamp(18px, 2.4vw, 30px); letter-spacing: 0.01em; }
[lang="kk"] .countdown__await { font-size: clamp(16px, 1.8vw, 24px); }
.countdown__row {
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 18px);
}
.countdown__dot {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1;
  color: var(--gold);
}
.countdown__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(82px, 9.4vw, 150px);
  padding: clamp(16px, 1.9vw, 28px) clamp(10px, 1.4vw, 20px);
  background:
    linear-gradient(180deg, rgba(240, 207, 122, 0.16) 0%, rgba(240, 207, 122, 0) 46%),
    rgba(24, 30, 54, 0.72);
  border: 1px solid rgba(240, 207, 122, 0.45);
  border-radius: 16px;
  box-shadow:
    0 16px 34px -18px rgba(0, 0, 0, 0.65),
    0 0 26px -8px rgba(240, 207, 122, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  perspective: 600px;
}
.countdown__cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.countdown__num {
  display: block;
  transform-origin: center top;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff1cf 0%, #f0cf7a 48%, #c79b3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 207, 122, 0.82);
  margin-top: 8px;
}

/* Hero — festive gold script line above the title */
.hero__occasion {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.4;
  padding: 0.08em 0.06em 0.16em;
  margin: 2px 0;
  background: linear-gradient(180deg, #fff1cf 0%, #f0cf7a 52%, #c79b3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero — pennant bunting (Kazakh blue + gold), rips & falls on scroll */
/* Hidden for now (kept for later); re-enable initBunting() in main.js + remove display:none */
.bunting {
  display: none;
  position: absolute;
  top: clamp(74px, 11vh, 114px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.bunting::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(240, 207, 122, 0.5);
  transition: opacity 0.3s ease;
}
.bunting.is-torn::before { opacity: 0; }
.bunting__flag {
  position: absolute;
  top: 0;
  width: clamp(18px, 2.1vw, 28px);
  height: clamp(22px, 2.8vw, 34px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: bunting-sway 3.6s ease-in-out infinite;
}
/* JS takes over the transform once it rips */
.bunting.is-torn .bunting__flag { animation: none; will-change: transform; }
@keyframes bunting-sway {
  0%, 100% { transform: rotate(-2.6deg); }
  50% { transform: rotate(2.6deg); }
}
.bunting__flag--blue { background: linear-gradient(180deg, #2ca8e0, #1577c4); }
.bunting__flag--gold { background: linear-gradient(180deg, #f6dd93, #cf9f3f); }

/* Gold sparkles (hero + dark sections), positions injected by JS */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.sparkles i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6db 0%, #f0cf7a 42%, rgba(240, 207, 122, 0) 70%);
  opacity: 0;
  animation: sparkle-twinkle 4.5s ease-in-out infinite;
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  45%, 55% { opacity: 0.92; transform: scale(1); }
}

/* ============================================================
   INTRO + FEATURES
   ============================================================ */
.intro { background: var(--bg); }
.intro__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--ink);
}
.intro__title span { display: block; }
.intro__text {
  margin-top: 22px;
  max-width: 460px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}
.intro__lead .btn { margin-top: 30px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 32px);
}
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature__icon { color: var(--blue); }
.feature__icon svg { width: clamp(48px, 4vw, 58px); height: auto; }
.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.feature__text {
  font-size: clamp(13px, 1vw, 14.5px);
  line-height: 1.5;
  color: var(--muted);
}

/* gradient strokes on accent icons */
.feature__icon svg [stroke],
.stat__icon svg [stroke] { stroke: url(#knus-grad); }
.feature__icon svg [fill]:not([fill='none']),
.stat__icon svg [fill]:not([fill='none']) { fill: url(#knus-grad); }

/* ============================================================
   CAMPUS
   ============================================================ */
.campus { background: var(--bg); padding-bottom: 0; }
.campus__band {
  background: var(--campus-band);
  margin-top: clamp(32px, 4vw, 52px);
  padding-block: clamp(36px, 4vw, 60px);
}
.campus__grid {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
}
.campus__tile {
  aspect-ratio: 344 / 398;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #d9deea;
  box-shadow: 0 14px 34px -18px rgba(20, 26, 50, 0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.campus__tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -18px rgba(20, 26, 50, 0.55);
}
.campus__tile--01 { background-image: url('../assets/images/campus-1.jpg'); }
.campus__tile--02 { background-image: url('../assets/images/campus-2.jpg'); }
.campus__tile--03 { background-image: url('../assets/images/campus-3.jpg'); }
.campus__tile--04 { background-image: url('../assets/images/campus-4.jpg'); }
.campus__tile--05 { background-image: url('../assets/images/campus-5.jpg'); }
.campus__cta {
  text-align: center;
  margin-top: clamp(28px, 3vw, 44px);
  overflow: hidden;
  transition: opacity 0.35s var(--ease-out), max-height 0.4s var(--ease-out),
    margin 0.4s var(--ease-out);
  max-height: 80px;
}
.campus__cta.is-hidden {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
}

/* ---- Expandable gallery ("Смотреть больше") ---- */
.campus__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.campus__more[hidden] { display: none; }
.campus__more.is-open { grid-template-rows: 1fr; }
.campus__more-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.15s;
}
.campus__more.is-open .campus__more-inner { opacity: 1; }

.gallery { margin-top: clamp(28px, 3vw, 44px); }
.gallery__stage { position: relative; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 18px;
  background: #dfe4ee;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  aspect-ratio: 3 / 2;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 38, 67, 0.66);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, transform 0.18s var(--ease-out);
}
.gallery__nav:hover { background: var(--navy); }
.gallery__nav:active { transform: translateY(-50%) scale(0.92); }
.gallery__nav svg { width: 24px; height: 24px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 38, 67, 0.7);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.gallery__counter b { font-weight: 800; }

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery__thumb {
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe4ee;
  opacity: 0.5;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 0.2s ease, outline-color 0.2s ease, transform 0.18s var(--ease-out);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { opacity: 0.85; }
.gallery__thumb.is-active { opacity: 1; outline-color: var(--blue); }
.gallery__slide { cursor: zoom-in; }

/* ---- Lightbox (full-size photo viewer) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(10, 14, 28, 0.93);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  user-select: none;
}
.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.18s var(--ease-out);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close:active { transform: scale(0.92); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.18s var(--ease-out);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__nav:active { transform: translateY(-50%) scale(0.92); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }
.lightbox__counter {
  position: absolute;
  bottom: clamp(14px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}
.lightbox__counter b { font-weight: 800; }

@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__img { max-height: 76vh; }
}

/* ============================================================
   FORMAT
   ============================================================ */
.format { background: var(--bg); }
.format__card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: clamp(20px, 2.6vw, 36px);
  padding: clamp(32px, 4vw, 60px);
  color: #fff;
  box-shadow: 0 30px 70px -34px rgba(20, 26, 50, 0.55);
}
.format__title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 44px);
  text-transform: uppercase;
  margin-bottom: clamp(28px, 3.2vw, 48px);
}
.format__split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
}
.format__day {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  flex: 1;
  max-width: 480px;
}
.format__icon { flex-shrink: 0; color: #fff; }
.format__icon img { height: clamp(56px, 6vw, 84px); width: auto; display: block; }
.format__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3.4vw, 48px);
}
.format__day-body { display: flex; flex-direction: column; }
.format__day-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 28px);
  text-transform: uppercase;
}
.format__day-rule {
  display: block;
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
  margin: 10px 0;
}
.format__day-text {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
.format__divider {
  align-self: stretch;
  width: 1px;
  min-height: 96px;
  background: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   PROGRAM (sticky media + scroll-revealed timeline per day)
   ============================================================ */
.program { scroll-margin-top: var(--nav-h); }

.pday {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  color: #fff;
}
.pday--accent { background: #151c34; }

/* media column pins while the timeline beside it scrolls */
.pday__media {
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  height: clamp(360px, 66vh, 600px);
  overflow: hidden;
  isolation: isolate;
}
.pday--mirror .pday__media { order: 2; }
.pday__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.pday__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 38, 0.28) 0%,
    rgba(15, 20, 38, 0.68) 76%,
    rgba(15, 20, 38, 0.94) 100%
  );
}
.pday__heading {
  position: absolute;
  left: clamp(24px, 4vw, 64px);
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(32px, 6vh, 76px);
  z-index: 2;
}
.pday__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(110px, 17vw, 240px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.22) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pday--accent .pday__num {
  background: linear-gradient(180deg, var(--gold) 0%, rgba(199, 155, 58, 0.35) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pday__eyebrow {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}
.pday--accent .pday__eyebrow { color: var(--gold); }
.pday__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.12;
  text-transform: uppercase;
}

/* timeline panel (the scrolling side) */
.pday__panel {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: clamp(40px, 6vh, 80px) clamp(28px, 5vw, 88px);
}
.pday--mirror .pday__panel { order: 1; }
.ptl {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
}
.ptl::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-bright), rgba(87, 194, 245, 0.12));
}
.pday--accent .ptl::before {
  background: linear-gradient(180deg, var(--gold), rgba(240, 207, 122, 0.12));
}
.program__item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: clamp(13px, 1.9vw, 22px) 0;
}
.program__item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: clamp(16px, 2.3vw, 26px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 5px rgba(87, 194, 245, 0.16);
}
.pday--accent .program__item::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(240, 207, 122, 0.16);
}
.program__time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.2;
  white-space: pre-line;
  color: var(--cyan-bright);
}
.pday--accent .program__time { color: var(--gold); }
.program__text {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

/* Stack media over timeline on narrow screens (no sticky overlap) */
@media (max-width: 900px) {
  .pday { grid-template-columns: 1fr; }
  .pday__media,
  .pday--mirror .pday__media { position: relative; top: 0; order: 0; height: clamp(300px, 52vh, 460px); }
  .pday__panel,
  .pday--mirror .pday__panel { order: 0; min-height: 0; padding: clamp(44px, 9vw, 72px) clamp(24px, 7vw, 44px); }
  .pday__num { font-size: clamp(88px, 22vw, 150px); }
}

/* ============================================================
   EVENT SPACES (horizontal showcase)
   ============================================================ */
.spaces {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.spaces .container { position: relative; z-index: 1; }
.spaces .section__title { color: #fff; }
.spaces__lead {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  color: #c3cce0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
}
.spaces__viewport {
  position: relative;
  margin-top: clamp(30px, 3.4vw, 48px);
}
.spaces__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px;
}
.spaces__track::-webkit-scrollbar { display: none; }
.spaces__card {
  position: relative;
  flex: 0 0 min(80%, 560px);
  scroll-snap-align: center;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-2);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
}
.spaces__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.spaces__card:hover img { transform: scale(1.045); }
.spaces__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 20, 38, 0.88) 0%,
    rgba(15, 20, 38, 0.35) 38%,
    rgba(15, 20, 38, 0) 64%
  );
  pointer-events: none;
}
.spaces__caption {
  position: absolute;
  left: clamp(18px, 2.4vw, 28px);
  right: clamp(18px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 24px);
  z-index: 2;
}
.spaces__caption::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
}
.spaces__caption-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
}
.spaces__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, transform 0.18s var(--ease-out), opacity 0.2s ease;
}
.spaces__nav:hover { background: var(--blue); }
.spaces__nav:active { transform: translateY(-50%) scale(0.92); }
.spaces__nav svg { width: 24px; height: 24px; }
.spaces__nav--prev { left: clamp(-6px, -0.5vw, 0px); }
.spaces__nav--next { right: clamp(-6px, -0.5vw, 0px); }
.spaces__nav[disabled] { opacity: 0; pointer-events: none; }
.spaces__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: clamp(20px, 2.4vw, 28px);
}
.spaces__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.25s var(--ease-out), background-color 0.25s ease;
}
.spaces__dot.is-active {
  width: 26px;
  background: #fff;
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--bg); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  justify-content: center;
}
.stat__icon { color: var(--blue); flex-shrink: 0; }
.stat__icon svg { width: clamp(48px, 5vw, 66px); height: auto; }
.stat__body { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  color: var(--ink);
}
.stat__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ============================================================
   LOCATION
   ============================================================ */
/* Full-bleed band: navy info card flush left, map flush right (no container) */
.location { background: var(--bg); }
.location__grid {
  display: grid;
  grid-template-columns: minmax(360px, 40%) 1fr;
}
.location__card {
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 84px) clamp(28px, 3vw, 48px);
  /* align card text with the rest of the page content */
  padding-left: max(var(--pad), calc((100vw - var(--container)) / 2));
}
.location__inner { width: 100%; max-width: 460px; }
.location__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  text-transform: uppercase;
}
.location__rule {
  display: block;
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
  margin: 14px 0 24px;
}
.location__name {
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
  margin-bottom: 20px;
}
.location__address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}
.location__address svg { width: 22px; height: 22px; color: var(--cyan-bright); flex-shrink: 0; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.2s var(--ease-out), color 0.2s ease;
}
.btn-link::after { content: '↗'; font-size: 1.1em; line-height: 0; }
.btn-link:hover { gap: 12px; color: #fff1cf; }
.location__map { min-height: clamp(340px, 40vw, 520px); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding-block: clamp(26px, 3.4vw, 42px);
}
.footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(48px, 5vw, 72px);
  align-items: start;
}
.logo--footer { align-self: start; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 4px;
}
.footer__link {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.18s ease;
  width: fit-content;
}
.footer__link:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 10px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.18s var(--ease-out);
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.12); }
.footer__social a:active { transform: scale(0.94); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
}
.footer__bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ============================================================
   UNIFIED DARK THEME — festive navy + gold (hero as baseline)
   ============================================================ */
:root {
  --sec-a: #1e2643;
  --sec-b: #161d33;
  --on-dark: rgba(255, 255, 255, 0.86);
  --on-dark-dim: rgba(255, 255, 255, 0.6);
}
body { background: var(--sec-b); color: var(--on-dark); }

/* alternating section backgrounds */
.intro { background: var(--sec-b); }
.campus { background: var(--sec-a); }
.format { background: var(--sec-b); }
.stats { background: var(--sec-b); }
.location { background: var(--sec-a); }

/* text on dark */
.section__title { color: #fff; }
.intro__title { color: #fff; }
.intro__text { color: var(--on-dark-dim); }
.feature__title { color: #fff; }
.feature__text { color: var(--on-dark-dim); }
.stat__label { color: var(--on-dark-dim); }

/* festive gold statistic numbers */
.stat__num {
  background: linear-gradient(180deg, #fff1cf 0%, #f0cf7a 48%, #c79b3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* dark placeholders for campus band + gallery */
.campus__band { background: rgba(255, 255, 255, 0.04); }
.gallery__track,
.gallery__thumb { background: #1a2138; }
.campus__tile { background-color: #1a2138; }

/* cards pop on dark with a soft gold edge */
.format__card {
  border: 1px solid rgba(240, 207, 122, 0.28);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 30px -10px rgba(240, 207, 122, 0.16);
}
.location__card { border: 1px solid rgba(240, 207, 122, 0.22); }

/* sparkle layers sit behind section content */
.section { position: relative; }
.section > .container { position: relative; z-index: 1; }

/* ============================================================
   REGISTRATION MODAL
   ============================================================ */
.nav__register--menu { display: none; }
.nav__lang { display: none; }
.nav__lang-opt {
  flex: 1;
  padding: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav__lang-opt.is-active { background: var(--blue); border-color: transparent; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 40, 0.62);
  backdrop-filter: blur(5px);
}
.modal__dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 40px 100px -34px rgba(15, 20, 40, 0.55);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s var(--ease-out);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: var(--bg-panel);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.18s var(--ease-out);
}
.modal__close:hover { background: #e2e7f0; }
.modal__close:active { transform: scale(0.92); }
.modal__close svg { width: 20px; height: 20px; }
.modal__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
  padding-right: 44px;
}
.modal__subtitle {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.reg-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.reg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.field input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  width: 100%;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 227, 0.15);
}
.field input.is-invalid { border-color: #e0443e; background: #fdf2f1; }
.reg-form__submit { margin-top: 8px; width: 100%; }
.reg-form__submit[disabled] { opacity: 0.65; pointer-events: none; }
.reg-form__status {
  min-height: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
.reg-form__status.is-error { color: #e0443e; }
.reg-form__status.is-success { color: #1a9d5a; }

/* Registration modal — festive dark + gold (matches the countdown) */
.modal__dialog {
  background: linear-gradient(180deg, #242d50 0%, #1a2140 100%);
  color: #fff;
  border: 1px solid rgba(240, 207, 122, 0.38);
  box-shadow: 0 40px 100px -34px rgba(0, 0, 0, 0.75), 0 0 46px -14px rgba(240, 207, 122, 0.22);
}
.modal__title { color: #fff; }
.modal__subtitle { color: rgba(255, 255, 255, 0.62); }
.modal__close { background: rgba(255, 255, 255, 0.1); color: #fff; }
.modal__close:hover { background: rgba(255, 255, 255, 0.2); }
.field > span { color: rgba(240, 207, 122, 0.85); letter-spacing: 0.02em; }
.field input {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}
.field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 207, 122, 0.22);
  background: rgba(255, 255, 255, 0.09);
}
.field input.is-invalid { border-color: #ff6b66; background: rgba(224, 68, 62, 0.14); }
.reg-form__submit {
  color: #1e2643;
  background: linear-gradient(180deg, #f7dc94 0%, #d9ad45 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px -12px rgba(217, 173, 69, 0.75);
}
.reg-form__submit:hover {
  background: linear-gradient(180deg, #ffe7a8 0%, #e0b552 100%);
  box-shadow: 0 16px 34px -12px rgba(217, 173, 69, 0.95);
}
.reg-form__status.is-error { color: #ff8a85; }
.reg-form__status.is-success { color: #6fe0a3; }

/* Full-screen registration sheet on phones */
@media (max-width: 600px) {
  .modal { padding: 0; place-items: stretch; }
  .modal__dialog {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-width: 0;
    padding: clamp(58px, 11vw, 76px) clamp(22px, 6vw, 32px) clamp(32px, 9vw, 48px);
    transform: translateY(22px);
  }
  .modal.is-open .modal__dialog { transform: none; }
  .reg-form { gap: 18px; margin-top: 30px; }
  .field input { padding: 15px 16px; font-size: 16px; } /* 16px avoids iOS zoom-on-focus */
}

body.modal-open,
body.nav-open,
body.lightbox-open { overflow: hidden; }

/* confetti overlay (grand-opening celebration) */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 300;
}

/* ============================================================
   SCROLL REVEAL (Emil)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

body.lang-switching main { opacity: 0.45; transition: opacity 0.18s ease; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --nav-h: 72px; }

  /* keep the bar (logo + burger) above the full-screen menu */
  .logo,
  .nav__actions { position: relative; z-index: 2; }
  .nav__actions { margin-left: auto; } /* push burger to the right */
  .lang { display: none; } /* language moves into the menu */
  .nav__register { display: none; }
  .nav.is-open { background: rgba(20, 25, 46, 0.98); backdrop-filter: blur(14px); }

  /* full-screen menu */
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--nav-h) + 20px) var(--pad) max(28px, env(safe-area-inset-bottom));
    background: rgba(20, 25, 46, 0.98);
    backdrop-filter: blur(14px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .nav.is-open .nav__menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link {
    padding: 18px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 19px;
    color: #fff;
  }
  .nav__link::after { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__register--menu { display: inline-flex; width: 100%; margin-top: auto; }
  .nav__lang { display: flex; gap: 10px; margin-top: 16px; }

  .hero__cta { display: flex; }

  .intro__grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }
  .intro__text { max-width: 620px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }

  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .logo--footer { grid-column: 1 / -1; margin-bottom: 8px; }
}

@media (max-width: 760px) {
  .format__split { flex-direction: column; align-items: stretch; gap: 28px; }
  .format__day { max-width: none; }
  .format__divider { width: 100%; min-height: 0; height: 1px; }
  .format__cta { margin-top: 32px; }
  .format__cta .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding-left: 20px;
    padding-right: 20px;
  }

  .spaces__card { flex-basis: 86%; }
  .spaces__nav { display: none; }
  .campus__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat { justify-content: flex-start; }

  .location__grid { grid-template-columns: 1fr; }
  .location__card { padding: clamp(40px, 8vw, 56px) var(--pad); }
  .location__inner { max-width: none; }

  /* compress the hero so it fits the viewport height on phones */
  .hero__inner {
    grid-template-rows: auto auto;
    padding-top: calc(var(--nav-h) + 10px);
    padding-bottom: clamp(16px, 3vh, 26px);
    gap: clamp(14px, 3vh, 24px);
  }
  .hero__title { font-size: clamp(32px, 7.4vw, 56px); }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__subtitle { font-size: clamp(17px, 3.6vw, 26px); margin-top: 12px; }
  .hero__meta { margin-top: 14px; }
  .countdown { justify-self: stretch; align-items: stretch; }
  .countdown__await { align-self: center; }
  .countdown__row { width: 100%; }
  .countdown__cell { flex: 1; padding: 12px 8px; }
  .countdown__num { font-size: clamp(26px, 7vw, 40px); }
  .countdown__label { margin-top: 4px; }
}

@media (max-width: 480px) {
  .logo__img { height: 38px; }
  .hero__title { font-size: clamp(26px, 7.4vw, 36px); }
  .hero__subtitle { font-size: clamp(15px, 4.2vw, 20px); }
  .features { grid-template-columns: 1fr; }
  .campus__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .countdown__row { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .countdown__dot { display: none; }
  .countdown__cell { min-width: calc(50% - 6px); }
  .program__item { grid-template-columns: 54px 1fr; gap: 12px; }
  .reg-form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .campus__tile:hover { transform: none; }
  .sparkles { display: none; }
}
