/* ============================================================
   EDUmacy — design system
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink-950: #05091a;
  --ink-900: #0a1226;
  --ink-800: #101c3a;
  --ink-700: #17264b;
  --ink-600: #22355f;

  --blue-600: #1b3fc4;
  --blue-500: #2450e6;
  --blue-400: #4d7dff;
  --blue-200: #b7caff;

  --gold-500: #f5b81c;
  --gold-400: #ffc94a;
  --gold-200: #ffe6a3;

  --paper: #f3f5fb;
  --paper-2: #e8ecf7;
  --white: #ffffff;

  --text: #131c33;
  --text-soft: #55617e;
  --text-faint: #8a93a9;

  --on-dark: #eef2fb;
  --on-dark-soft: rgba(238, 242, 251, 0.66);
  --on-dark-faint: rgba(238, 242, 251, 0.42);

  --line: rgba(19, 28, 51, 0.1);
  --line-strong: rgba(19, 28, 51, 0.16);
  --line-dark: rgba(255, 255, 255, 0.12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-full: 999px;

  --container: 1220px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 130px);

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 8px rgba(10, 18, 38, 0.06);
  --shadow-md: 0 14px 40px -14px rgba(10, 18, 38, 0.28);
  --shadow-lg: 0 34px 80px -28px rgba(10, 18, 38, 0.42);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold-400); color: var(--ink-900); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 999;
  background: var(--gold-400);
  color: var(--ink-900);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(52px, 6vw, 88px); }

.section--paper { background: var(--paper); }
.section--dark {
  background: var(--ink-900);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(36, 80, 230, 0.34), transparent 62%),
    radial-gradient(52% 60% at 92% 100%, rgba(255, 201, 74, 0.12), transparent 60%);
}
.section--dark > * { position: relative; z-index: 1; }

.stack-lg > * + * { margin-top: clamp(40px, 5vw, 64px); }

/* Section heading block */
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--wide { max-width: 880px; }
.sec-head p {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  color: var(--text-soft);
}
.section--dark .sec-head p { color: var(--on-dark-soft); }

.sec-head--split {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  max-width: none;
  align-items: end;
}
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.15fr 1fr; }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-400); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background-color 0.24s var(--ease), color 0.24s var(--ease),
              border-color 0.24s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--gold-400); --btn-fg: var(--ink-900); }
.btn--primary:hover { --btn-bg: var(--gold-500); }

.btn--blue { --btn-bg: var(--blue-500); --btn-fg: #fff; }
.btn--blue:hover { --btn-bg: var(--blue-600); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--ink-900); --btn-fg: #fff; border-color: var(--ink-900); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }

.btn--sm { padding: 11px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.ico { width: 17px; height: 17px; flex: 0 0 auto; }
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-500);
  border-bottom: 1px solid transparent;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow:hover { gap: 13px; border-bottom-color: currentColor; }
.section--dark .link-arrow { color: var(--gold-400); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-dark);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(10, 18, 38, 0.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 10px 40px -22px rgba(0, 0, 0, 0.9);
}
.site-header.is-stuck::after { opacity: 1; }

.nav {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: var(--white);
}
.brand-name span { color: var(--gold-400); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav-list a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.12); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 19px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px var(--gutter) 30px;
    background: rgba(8, 14, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav-list .nav-mobile-cta { margin-top: 12px; }
  .nav-list .nav-mobile-cta a {
    background: var(--gold-400);
    color: var(--ink-900);
    font-family: var(--font-display);
    font-weight: 600;
    text-align: center;
  }
}
@media (min-width: 1041px) {
  .nav-list .nav-mobile-cta { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94vh, 940px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(48px, 6vw, 84px);
  background: var(--ink-950);
  color: var(--on-dark);
  overflow: hidden;
}
.hero--compact { min-height: min(72vh, 640px); }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.85) contrast(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 26, 0.86) 0%, rgba(5, 9, 26, 0.6) 34%, rgba(5, 9, 26, 0.94) 88%),
    radial-gradient(75% 60% at 8% 92%, rgba(27, 63, 196, 0.55), transparent 66%);
}

/* decorative EU star ring */
.hero-stars {
  position: absolute;
  top: 8%;
  right: -8%;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  z-index: -1;
  opacity: 0.5;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { width: 100%; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--gold-400), #ffe9b0 55%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 610px;
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.28rem);
  color: var(--on-dark-soft);
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 26px 26px 6px 0; }
@media (min-width: 640px) {
  .stat + .stat { border-left: 1px solid var(--line-dark); padding-left: 26px; }
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--on-dark-faint);
}

/* Page hero (subpages) */
.page-hero {
  position: relative;
  background: var(--ink-900);
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 108px));
  padding-bottom: clamp(52px, 7vw, 96px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 90% at 6% 8%, rgba(36, 80, 230, 0.42), transparent 60%),
    radial-gradient(48% 70% at 96% 96%, rgba(255, 201, 74, 0.14), transparent 62%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero p {
  max-width: 640px;
  color: var(--on-dark-soft);
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
}

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--on-dark-faint);
  margin-bottom: 22px;
}
.crumbs a:hover { color: var(--white); }

/* ---------- 7. Split / prose ---------- */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.15fr; }
  .split--flip .split-media { order: 2; }
}

.split-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media--tall img { aspect-ratio: 3 / 4; }

.media-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--r-full);
  background: rgba(10, 18, 38, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.prose { max-width: 68ch; }
.prose > p { color: var(--text-soft); }
.section--dark .prose > p { color: var(--on-dark-soft); }
.prose h3 { margin-top: 1.8em; }
.prose h3:first-child { margin-top: 0; }

.lead {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
}
.section--dark .lead { color: var(--on-dark); }

/* Fact list */
.facts { list-style: none; margin: 28px 0 0; padding: 0; }
.facts li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--text-soft);
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.2);
}
.section--dark .facts li { color: var(--on-dark-soft); }

/* ---------- 8. Cards ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-media { position: relative; overflow: hidden; background: var(--paper-2); }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media--square img { aspect-ratio: 1; }

.card-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 12px; }
.card-body p { color: var(--text-soft); font-size: 0.97rem; }
.card-body .link-arrow { margin-top: auto; padding-top: 18px; }

.card--dark {
  background: var(--ink-800);
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--on-dark-soft); }

.card-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-500);
  margin-bottom: 14px;
  display: block;
}
.card--dark .card-index { color: var(--gold-400); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--r-full);
  background: rgba(36, 80, 230, 0.1);
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tag--gold { background: rgba(245, 184, 28, 0.18); color: #8a6100; }
.tag--dark { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }

/* Portfolio tiles */
.portfolio { display: grid; gap: clamp(14px, 1.8vw, 20px); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pf-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pf-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--paper-2);
}
.pf-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
}
.pf-meta { font-size: 0.82rem; color: var(--text-faint); margin-top: 2px; }
.section--dark .pf-tile { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section--dark .pf-meta { color: var(--on-dark-faint); }

/* Feature list numbered */
.steps { counter-reset: step; display: grid; gap: clamp(16px, 2vw, 24px); }
.step {
  counter-increment: step;
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  padding-left: clamp(72px, 8vw, 96px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: clamp(24px, 3vw, 34px);
  top: clamp(24px, 3vw, 34px);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-500);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-soft); margin-bottom: 0; }

/* ---------- 9. Team accordion ---------- */
.team-wrap { position: relative; }

.accordion {
  display: flex;
  gap: 10px;
  height: clamp(460px, 58vw, 620px);
  --acc-grow: 4.6;
}

.acc-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
  cursor: pointer;
  transition: flex-grow 0.65s var(--ease-out);
  will-change: flex-grow;
}
.acc-panel.is-active { flex-grow: var(--acc-grow); cursor: default; }

.acc-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.06) brightness(0.78);
  transform: scale(1.06);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease-out);
}
.acc-panel.is-active .acc-photo { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1); }
.acc-panel:hover .acc-photo { filter: grayscale(0.35) brightness(0.9); }

.acc-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 26, 0.15) 0%, rgba(5, 9, 26, 0.42) 42%, rgba(5, 9, 26, 0.94) 100%);
  transition: opacity 0.5s var(--ease);
}

.acc-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%; height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: inherit;
}
.acc-trigger:focus-visible { outline-offset: -6px; }

.acc-spine {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 4;
  width: 100%;
  padding: 22px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.acc-spine-inner {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-height: 100%;
}
.acc-spine-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--white);
  white-space: nowrap;
}
.acc-spine-role {
  font-size: 0.78rem;
  color: var(--on-dark-faint);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.acc-panel.is-active .acc-spine { opacity: 0; }

.acc-num {
  position: absolute;
  top: 18px; left: 0;
  z-index: 4;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.acc-panel.is-active .acc-num { opacity: 0; }

.acc-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: clamp(24px, 2.6vw, 38px);
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease) 0.12s, transform 0.5s var(--ease-out) 0.12s;
}
.acc-panel.is-active .acc-body { opacity: 1; transform: translateY(0); }
.acc-body > * { max-width: 46ch; }
.acc-body a { pointer-events: auto; }

.acc-tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: 14px;
}
.acc-name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 4px;
  line-height: 1.05;
}
.acc-role {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--gold-400);
  margin: 0 0 14px;
}
.acc-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-dark-soft);
  margin: 0;
}
.acc-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.acc-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.acc-links a:hover { color: var(--gold-400); border-color: var(--gold-400); }
.acc-links svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; }

.acc-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.84rem;
  color: var(--on-dark-faint);
}
.acc-hint svg { width: 17px; height: 17px; }

/* Accordion → slider on small screens */
@media (max-width: 900px) {
  .accordion {
    height: auto;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .accordion::-webkit-scrollbar { display: none; }

  .acc-panel {
    flex: 0 0 min(80%, 330px);
    height: 500px;
    scroll-snap-align: center;
    cursor: default;
  }
  .acc-panel.is-active { flex-grow: 0; }
  .acc-photo { filter: grayscale(0) brightness(0.95); transform: scale(1); }
  .acc-panel.is-active .acc-photo { transform: scale(1); }
  .acc-veil { background: linear-gradient(180deg, rgba(5, 9, 26, 0.05) 0%, rgba(5, 9, 26, 0.55) 45%, rgba(5, 9, 26, 0.96) 100%); }
  .acc-trigger { display: none; }
  .acc-spine, .acc-num { display: none; }
  .acc-body {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 22px;
  }
  .acc-name { font-size: 1.4rem; }
  .acc-bio {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---------- 10. Partners ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.partner-cell {
  display: grid;
  place-items: center;
  padding: clamp(22px, 3vw, 34px) 20px;
  background: var(--white);
  min-height: 128px;
  transition: background-color 0.3s var(--ease);
}
.partner-cell:hover { background: var(--paper); }
.partner-cell img {
  max-height: 62px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.68;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.partner-cell:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- 11. Media / podcast ---------- */
.media-list { display: grid; gap: 14px; }
.media-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.media-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateX(4px);
}
.media-ico {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1db954;
  color: #06210f;
}
.media-ico svg { width: 22px; height: 22px; }
.media-txt { flex: 1; min-width: 0; }
.media-title { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 1rem; }
.media-sub { font-size: 0.85rem; color: var(--on-dark-faint); }
.media-item .arrow { flex-shrink: 0; width: 18px; height: 18px; color: var(--on-dark-faint); }

/* ---------- 12. Newsletter band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(38px, 5.5vw, 74px);
  background: linear-gradient(128deg, var(--ink-800) 0%, var(--blue-600) 130%);
  color: var(--on-dark);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 460px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 201, 74, 0.3), transparent 66%);
  z-index: -1;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-dark-soft); }

.cta-band-inner {
  display: grid;
  gap: clamp(26px, 3.4vw, 48px);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band-inner { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- 13. Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field > label {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.field .hint { font-size: 0.8rem; color: var(--text-faint); }

.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(36, 80, 230, 0.14);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355617e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.form-note { font-size: 0.84rem; color: var(--text-faint); }
.form-status {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(36, 80, 230, 0.08);
  border: 1px solid rgba(36, 80, 230, 0.22);
  font-size: 0.9rem;
}
.form-status[hidden] { display: none; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow-md);
}

/* Newsletter inline form */
.subscribe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-full);
  padding: 7px 7px 7px 22px;
  align-items: center;
}
.subscribe input {
  flex: 1 1 190px;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--white);
  padding: 10px 0;
  font-size: 0.98rem;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, 0.5); }
.subscribe input:focus { outline: none; }
.subscribe .btn { flex-shrink: 0; }

/* ---------- 14. Contact cards ---------- */
.person-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person-card > div { min-width: 0; }
.person-card img {
  width: 74px; height: 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; }
.person-role { font-size: 0.86rem; color: var(--text-faint); margin-bottom: 10px; line-height: 1.45; }
.person-links { display: grid; gap: 4px; font-size: 0.9rem; overflow-wrap: anywhere; }
.person-links a { color: var(--blue-600); }
.person-links a:hover { text-decoration: underline; }

/* Contact info blocks */
.info-grid { display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.info-block {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
}
.info-block .info-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--white);
}
.info-block a, .info-block p { color: var(--on-dark-soft); font-size: 0.95rem; }
.info-block a { display: block; }
.info-block a:hover { color: var(--gold-400); }

/* ---------- 15. Timeline (news) ---------- */
.news-grid { display: grid; gap: clamp(20px, 2.6vw, 30px); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-card .card-media img { aspect-ratio: 1; }
.news-date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  display: block;
}
.news-card--feature { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .news-card--feature { display: grid; grid-template-columns: 1.05fr 1fr; }
  .news-card--feature .card-media img { height: 100%; aspect-ratio: auto; min-height: 380px; }
  .news-card--feature .card-body { padding: clamp(30px, 4vw, 52px); justify-content: center; }
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--on-dark-soft);
  padding-top: clamp(56px, 7vw, 92px);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 74, 0.5), transparent);
}
.footer-top {
  display: grid;
  gap: clamp(34px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 62px);
}
@media (min-width: 860px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }

.footer-col-title {
  font-family: var(--font-display);
  line-height: 1.2;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 0.93rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold-400); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--on-dark-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.socials a:hover {
  background: var(--gold-400);
  color: var(--ink-900);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}
.socials svg { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--on-dark-faint);
}

/* ---------- 17. Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .acc-panel { transition: none; }
}

/* ---------- 18. Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(40px, 5vw, 64px); }
.section--dark .divider { background: var(--line-dark); }

.text-center { text-align: center; }
.mt-lg { margin-top: clamp(30px, 4vw, 48px); }
.mb-0 { margin-bottom: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.req-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.req-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  color: var(--text-soft);
  margin: 0;
}
.req-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(36, 80, 230, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232450e6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.callout {
  padding: 18px 22px;
  border-left: 3px solid var(--gold-400);
  background: rgba(245, 184, 28, 0.09);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.callout strong { color: var(--text); }
