/* ================= TOKENS ================= */
:root {
  --paper: #0E1B2E;
  --paper-2: #132542;
  --ink: #EAF1FA;
  --muted: rgba(234, 241, 250, 0.72);
  --faint: rgba(234, 241, 250, 0.45);
  --blueprint: #EAF1FA;
  --signal: #4D8DFF;
  --signal-2: #2E6FDE;
  --amber: #E8A33D;
  --line: rgba(220, 235, 255, 0.14);
  --line-strong: rgba(220, 235, 255, 0.28);
  --card: #152842;
  --card-2: #182E4E;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(77, 141, 255, 0.35), 0 18px 50px -20px rgba(77, 141, 255, 0.45);
  --font-display: 'Bricolage Grotesque', 'Tajawal', sans-serif;
  --font-body: 'Inter', 'Tajawal', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Tajawal', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: 'Tajawal', 'Inter', sans-serif;
}

html[lang="ar"] .hero__title,
html[lang="ar"] .section__title,
html[lang="ar"] .field h3,
html[lang="ar"] .event-card__body h3,
html[lang="ar"] .path h3 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .mono {
  font-family: 'Tajawal', var(--font-mono);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; }

/* ================= SCROLL PROGRESS ================= */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  z-index: 100;
}

/* ================= BLUEPRINT GRID BG ================= */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(46, 111, 222, 0.35), transparent 60%),
    linear-gradient(180deg, #13203A 0%, var(--paper) 100%);
  padding: 120px 0 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(14, 27, 46, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.nav__logo { border-radius: 10px; object-fit: cover; background: #fff; padding: 2px; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__links { display: flex; gap: 28px; font-size: 0.92rem; font-weight: 500; }
.nav__links a { color: #A9C3E8; opacity: 0.9; transition: opacity 0.2s, color 0.2s; }
.nav__links a:hover { opacity: 1; color: #fff; }

.nav__lang {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav__lang:hover { background: var(--signal); border-color: var(--signal); color: #fff; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger:hover { background: rgba(77, 141, 255, 0.12); border-color: var(--signal); }

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero__inner {
  position: relative;
  text-align: center;
  padding-bottom: 80px;
}

.hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__halo {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    rgba(77, 141, 255, 0.0) 0deg,
    rgba(77, 141, 255, 0.35) 70deg,
    rgba(232, 163, 61, 0.30) 160deg,
    rgba(46, 111, 222, 0.35) 250deg,
    rgba(77, 141, 255, 0.0) 360deg);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  animation: halo-spin 26s linear infinite;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.hero__blob--1 {
  width: 320px;
  height: 320px;
  top: 12%;
  left: 14%;
  background: radial-gradient(circle, rgba(77, 141, 255, 0.55), transparent 70%);
  animation: blob-drift-1 18s ease-in-out infinite alternate;
}
.hero__blob--2 {
  width: 340px;
  height: 340px;
  top: 30%;
  right: 10%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.45), transparent 70%);
  animation: blob-drift-2 22s ease-in-out infinite alternate;
}

.hero__coord { color: var(--signal); margin-bottom: 26px; position: relative; z-index: 1; }

.hero__emblem {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  border-radius: 42px;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 8px;
  animation: float 5s ease-in-out infinite;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero__ring--1 { width: 200px; height: 200px; animation: ring-spin 30s linear infinite; }
.hero__ring--2 { width: 236px; height: 236px; animation: ring-spin 40s linear infinite reverse; }

.hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin: 0 auto 22px;
}

.hero__accent {
  color: var(--signal);
  background: linear-gradient(90deg, var(--signal), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  position: relative;
  z-index: 1;
  max-width: 56ch;
  margin: 0 auto 34px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero__cta { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(77, 141, 255, 0.6);
}
.btn--primary:hover { background: var(--signal-2); box-shadow: 0 18px 40px -12px rgba(77, 141, 255, 0.8); }

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.5s ease-in-out infinite;
}

.btn--ghost { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(77, 141, 255, 0.12); border-color: var(--signal); color: #fff; }

.btn--email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 0.92rem;
  max-width: 100%;
  text-align: center;
}
.btn--email svg { flex-shrink: 0; }

.btn--download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn--download svg { flex-shrink: 0; }

@keyframes sheen {
  0% { left: -80%; }
  60%, 100% { left: 120%; }
}

/* ================= MARQUEE ================= */
.marquee {
  overflow: hidden;
  background: var(--signal);
  padding: 12px 0;
  margin: -14px 0 0;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow);
}
.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #0E1B2E;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.marquee__item::after {
  content: '✦';
  margin-left: 44px;
  font-size: 0.7rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= SECTIONS ================= */
.section { padding: 96px 0; }

.section--tint { background: var(--paper-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 22ch;
}

.section__lead {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ================= FIELDS / PILLARS (what the festival offers) ================= */
.about__team-lead {
  margin-top: 28px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 46ch;
}

.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.field {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.field::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  opacity: 0;
  transition: opacity 0.3s;
}
.field:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--glow); }
.field:hover::before { opacity: 1; }

.field__code { color: var(--signal); margin-bottom: 12px; }
.field h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.field p:not(.field__code) { color: var(--muted); font-size: 0.95rem; }

.about__vision {
  margin-top: 44px;
  padding: 30px 32px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.08), transparent 60%);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 72ch;
}
.about__vision-code { color: var(--signal); margin-bottom: 10px; }
html[dir="rtl"] .about__vision { border-left: none; border-right: 3px solid var(--signal); }

/* ================= EVENT CARDS ================= */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  margin-top: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.event-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow); }

.event-card--flip .event-card__img { order: 2; }

.event-card__img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; background: #fff; }

.event-card__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

.event-card__body h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.event-card__body p:not(.eyebrow) { color: var(--muted); }

.spec { color: var(--signal); margin-top: 10px; }

/* ================= ARCS (three pillars of the festival) ================= */
.arcs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 44px;
}

.arc {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.arc:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow); }

.arc--flip .arc__media { order: 2; }

.arc__media { min-height: 260px; }

.arc__img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: #fff;
  display: block;
}

.arc__body {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.arc__body h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.15; }
.arc__body p:not(.eyebrow) { color: var(--muted); }
.arc__body .spec { margin-top: 8px; }

/* ================= GALLERY ================= */
.gallery-wrap { position: relative; margin-top: 40px; }

.gallery__bar {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 10px;
  pointer-events: none;
}

.gallery {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 6px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.gallery::-webkit-scrollbar-thumb:hover { background: var(--signal); }

.gallery__item {
  position: relative;
  flex: 0 0 auto;
  width: min(560px, 88vw);
  height: min(430px, 58vh);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.gallery__item:hover { border-color: var(--line-strong); box-shadow: var(--glow); }

.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 20, 35, 0.85));
}

.gallery__arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(234, 241, 250, 0.28);
  border-radius: 50%;
  background: rgba(14, 27, 46, 0.6);
  backdrop-filter: blur(4px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.55);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.gallery__arrow:hover { background: var(--signal); border-color: var(--signal); color: #fff; }

html[dir="rtl"] .gallery__arrow svg { transform: scaleX(-1); }

/* ================= PARTNERS ================= */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.partner {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.partner img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }

/* ================= SPECS NOTICE ================= */
.specs-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(232, 163, 61, 0.1);
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 40px;
  color: var(--amber);
}
.specs-notice svg { flex-shrink: 0; }
.specs-notice p { flex: 1; font-size: 0.95rem; color: var(--ink); }
.specs-notice__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
  transition: color 0.2s;
}
.specs-notice__link:hover { color: #fff; }

/* ================= PATHS ================= */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }

.path {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.path:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--glow); }

.path__code {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  font-weight: 600;
  margin-bottom: 8px;
}

.path h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.path p { color: var(--muted); flex: 1; }

.path__link { color: var(--signal); font-weight: 600; }
.path__link:hover { text-decoration: underline; }

/* ================= CONTACT / FOOTER ================= */
.contact { padding: 72px 0; }
.contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 26px;
}

.social {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}
.social:hover { color: var(--ink); transform: translateY(-3px); }

.social__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff, #e7eef9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s, box-shadow 0.25s;
}
.social:hover .social__icon { transform: scale(1.08); }
.social__icon svg { display: block; }

.social--facebook .social__icon svg { color: #1877F2; }
.social--tiktok .social__icon svg { color: #010101; }
.social--linkedin .social__icon svg { color: #0A66C2; }

.social--facebook:hover .social__icon { box-shadow: 0 0 0 1px #1877F2, 0 12px 26px -10px rgba(24, 119, 242, 0.7); }
.social--tiktok:hover .social__icon { box-shadow: 0 0 0 1px #010101, 0 12px 26px -10px rgba(1, 1, 1, 0.7); }
.social--linkedin:hover .social__icon { box-shadow: 0 0 0 1px #0A66C2, 0 12px 26px -10px rgba(10, 102, 194, 0.7); }
.social--instagram:hover .social__icon { box-shadow: 0 0 0 1px #DD2A7B, 0 12px 26px -10px rgba(221, 42, 123, 0.7); }

.footer { border-top: 1px solid var(--line); padding: 26px 0; background: #0B1524; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; color: var(--faint); }

/* ================= ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes halo-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes blob-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.18); }
}

@keyframes blob-drift-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-50px, -30px) scale(0.9); }
}

.hero__logo, .hero__coord, .hero__title, .hero__sub, .hero__cta {
  animation: fade-in 0.8s ease both;
}
.hero__logo { animation: drop-in 0.8s ease both, float 5s ease-in-out 0.8s infinite; }
.hero__coord { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.2s; }
.hero__sub { animation-delay: 0.3s; }
.hero__cta { animation-delay: 0.4s; }

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-24px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .arcs { margin-top: 36px; }
  .arc { grid-template-columns: 1fr; }
  .arc--flip .arc__media { order: 0; }
  .arc__media { min-height: 220px; }
  .arc__img { min-height: 220px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-card--flip .event-card__img { order: 0; }
}

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; }
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 12px 4px 6px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .nav__links.nav__links--open { display: flex; }
  .nav__links a { padding: 10px 6px; font-size: 1rem; border-radius: 8px; }
  .nav__links a:hover { background: rgba(77, 141, 255, 0.12); }
  .hero__inner { padding-bottom: 56px; }
  .hero__emblem, .hero__logo { width: 140px; height: 140px; }
  .hero__logo { border-radius: 32px; }
  .hero__ring--1 { width: 160px; height: 160px; }
  .hero__ring--2 { width: 192px; height: 192px; }
  .hero__halo { width: 380px; height: 380px; }
  .section { padding: 64px 0; }
  .fields { grid-template-columns: 1fr; }
  .gallery { gap: 14px; }
  .gallery__item { width: min(560px, 92vw); height: min(430px, 62vh); }
  .gallery__arrow { width: 44px; height: 44px; }
  .partners { grid-template-columns: 1fr; }
  .arc__body { padding: 26px 22px; }
  .arc__media { min-height: 180px; }
  .arc__img { min-height: 180px; }
}

