/* =====================================================================
   Ivan Nagornyak · personal site
   Light, minimalist, EPIK.eu palette. Montserrat (self-hosted; EPIK uses Fixel Text / Kyiv Type Sans: drop their woff2 files into assets/fonts and add @font-face rules to switch). Colour tokens in :root.
   ===================================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* ---------- Tokens: EPIK.eu palette ----------
   navy #041259 (brand), dark navy #0d1643, royal blue #2047c6, accent pink #ff83fd,
   pale pink #ffdbff, periwinkle #c5d4ff, chip #e7eafe, surfaces #f4f4f4, dividers #d2d2db, text #262626.
   Brand gradient: linear-gradient(-90deg, #0d1643 8%, #2047c6 49%, #ff83fd 90%).
   Sharp rectangles everywhere (no border radius), uppercase display headings with tight tracking. */
:root {
  --navy: #041259;
  --navy-2: #0d1643;
  --blue: #2047c6;
  --pink: #ff83fd;
  --pink-pale: #ffdbff;
  --periwinkle: #c5d4ff;
  --chip: #e7eafe;
  --surface: #f4f4f4;
  --line: #d2d2db;
  --line-soft: #e6e6ea;
  --text: #262626;
  --text-2: #4b4b55;
  --muted: #7a7c88;
  --card: #ffffff;
  --paper: #ffffff;
  --accent: var(--blue);
  --grad: linear-gradient(-90deg, #0d1643 7.96%, #2047c6 49.09%, #ff83fd 90.22%);
  --grad-soft: linear-gradient(90deg, #ff83fd 0%, #2047c6 70%);
  --shadow: 0 15px 15px rgba(0,0,0,.06), 0 4px 8px rgba(0,0,0,.06);
  --container: 1180px;
  --font: "Montserrat", "Fixel Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Montserrat", "Kyiv Type Sans", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.6; letter-spacing: -0.01em; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: -0.03em; }
h3 { font-size: 1.08rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { vertical-align: -0.2em; flex: none; }
.icon.flip { transform: rotate(180deg); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 .7rem; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 64ch; }
.lead .sep { margin: 0 .3em; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad-soft); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: -0.02em; }
.brand-sub { font-size: .66rem; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; }
.site-nav a { display: inline-block; padding: 8px 10px; color: var(--navy); font-weight: 600; font-size: .86rem; letter-spacing: -0.005em; white-space: nowrap; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--blue); text-decoration: none; border-bottom-color: var(--pink); }
.site-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--navy); font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--navy); background: #fff; white-space: nowrap; transition: all .2s; }
.lang-switch:hover { background: var(--navy); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--navy); padding: 6px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* ---------- Buttons & chips ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-weight: 700; font-size: .9rem; letter-spacing: .01em; text-transform: uppercase; border: 1px solid var(--navy); cursor: pointer; overflow: hidden; isolation: isolate; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s ease; z-index: -1; }
.btn-primary:hover { color: #fff; border-color: transparent; }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { background: #fff; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-fb { background: #fff; color: var(--navy); }
.btn-fb:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--pink-pale); color: var(--navy); border-color: var(--pink-pale); }
.btn-outline-light { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; }
.btn-link:hover { color: var(--blue); }
.btn-link.subtle { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--chip); color: var(--navy); white-space: nowrap; }
.chip-role { background: var(--pink-pale); color: var(--navy); }
.chip-format { background: var(--surface); color: var(--navy); }
.chip-tag { background: var(--surface); color: var(--navy); text-transform: none; letter-spacing: 0; }
a.chip:hover { text-decoration: none; background: var(--navy); color: #fff; }
.lang-badge { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); font-size: .66rem; font-weight: 700; letter-spacing: .08em; color: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 28px; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.hero-map { position: absolute; right: -6%; top: -8%; width: 62%; max-width: 900px; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%); }
.hero-map img { width: 100%; height: auto; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); margin-bottom: .3em; }
.hero h1 .accent { color: var(--blue); }
.hero-tagline { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: .8em; letter-spacing: -0.02em; }
.hero-intro { font-size: 1.05rem; color: var(--text-2); max-width: 58ch; }
.hero-roles { list-style: none; display: grid; gap: 8px; margin: 20px 0 28px; }
.hero-roles li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; font-weight: 600; color: var(--navy); padding-left: 12px; border-left: 3px solid var(--pink); }
.hero-roles li .icon { display: none; }
.hero-roles.compact li { font-size: .88rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { display: flex; justify-content: flex-end; }
.photo-frame { position: relative; width: min(100%, 360px); aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); }
.photo-frame::before { content: ""; position: absolute; left: -14px; bottom: -14px; width: 60%; height: 40%; background: var(--grad-soft); z-index: -1; }
.photo-frame::after { content: ""; position: absolute; right: -14px; top: -14px; width: 40%; height: 60%; border: 1px solid var(--navy); z-index: -1; }
.photo-frame .portrait { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { display: grid; place-items: center; height: 100%; background: var(--chip); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.05em; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 20px; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; padding: 18px 20px; border-right: 1px solid var(--line); background: rgba(255,255,255,.85); }
.stats li:last-child { border-right: 0; }
.stats strong { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.05; color: var(--navy); letter-spacing: -0.04em; }
.stats span { font-size: .74rem; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin-bottom: .1em; }
.section-head .lead { margin: 0; font-size: 1rem; }
.section-head .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); white-space: nowrap; }
.section-head .more:hover { color: var(--blue); text-decoration: none; }
.page-head { padding: 56px 0 12px; position: relative; }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { margin-bottom: .9em; }
.breadcrumb { font-size: .84rem; font-weight: 600; margin-bottom: 1.2em; text-transform: uppercase; letter-spacing: .04em; }
.breadcrumb a::before { content: "← "; }
.group-title { margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.group-title:first-child { margin-top: 0; }
.year-title { color: var(--blue); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; }
.stack { display: grid; gap: 18px; }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); padding: 24px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; overflow: hidden; isolation: isolate; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad-soft); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover::before { transform: scaleX(1); }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .78rem; color: var(--muted); }
.card-meta .date { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--blue); }
.card-title { font-size: 1.08rem; margin-bottom: .45em; line-height: 1.3; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--blue); text-decoration: none; }
.card-outlet { font-size: .86rem; color: var(--text-2); font-weight: 600; margin-bottom: .6em; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.coauthors { color: var(--muted); font-weight: 400; }
.card-summary { font-size: .93rem; color: var(--text-2); flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; padding-top: 12px; }
.card.compact .card-summary { display: none; }
.photo-count { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; margin-left: auto; }
.event-cover { display: block; margin: -24px -24px 18px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--chip); border-bottom: 1px solid var(--line); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .event-cover img { transform: scale(1.03); }
.event-cover.is-map img { object-fit: cover; }

/* video */
.video { position: relative; margin: -24px -24px 18px; aspect-ratio: 16 / 9; background: var(--navy-2); overflow: hidden; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-play:hover img { opacity: 1; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s, background .2s; }
.video-play:hover .play-btn { transform: translate(-50%, -50%) scale(1.06); background: var(--pink-pale); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* interests */
.interests-grid .interest { padding: 26px 24px; background: #fff; border: 1px solid var(--line); position: relative; transition: border-color .25s ease; }
.interests-grid .interest:hover { border-color: var(--navy); }
.interests-grid .interest::before { content: ""; position: absolute; left: 0; top: 24px; width: 4px; height: 36px; background: var(--pink); }
.interest-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--chip); color: var(--navy); margin-bottom: 14px; }
.interest h3 { font-size: 1.02rem; }
.interest p { font-size: .92rem; color: var(--text-2); margin: 0; }
.interest.large p { font-size: .96rem; }
.grid-2.interests-grid .interest:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* map banner */
.map-banner { position: relative; margin: 8px 0 0; border: 1px solid var(--line); background: #fff; overflow: hidden; aspect-ratio: 21 / 9; }
.map-banner img { width: 100%; height: 100%; object-fit: cover; }
.map-banner figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: rgba(4,18,89,.9); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .78rem; color: var(--text-2); }
.map-legend li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: var(--c); border: 1px solid var(--line); }

/* affiliations */
.affiliations { padding: 36px 0; }
.aff-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin-top: 8px; }
.aff-list a { color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .86rem; }
.aff-list a:hover { color: var(--blue); }

/* CTA band (EPIK-style gradient) */
.cta-band { position: relative; padding: 72px 0; color: #fff; background: var(--navy-2); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d1643 7.96%, #2047c6 49.09%, #ff83fd 90.22%); z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,22,67,.55) 0%, rgba(13,22,67,0) 60%); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); letter-spacing: -0.045em; max-width: 18ch; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.08rem; max-width: 56ch; }
.cta-band .container { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* fb teaser */
.fb-teaser { display: grid; gap: 16px; }
.fb-quote { margin: 0; padding: 18px 22px; border-left: 4px solid var(--pink); background: #fff; border: 1px solid var(--line); border-left-width: 4px; border-left-color: var(--pink); }
.fb-quote p { margin-bottom: .4em; }
.fb-quote footer { font-size: .78rem; color: var(--blue); font-weight: 600; }

/* ---------- Filters ---------- */
.filterbar { display: grid; gap: 12px; margin-bottom: 28px; padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: all .2s; }
.filter small { color: var(--muted); font-weight: 600; }
.filter:hover { border-color: var(--navy); text-decoration: none; }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.select-wrap select, .search-wrap input { font: inherit; font-size: .9rem; padding: 9px 12px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.search-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 220px; }
.search-wrap .icon { position: absolute; left: 10px; color: var(--muted); }
.search-wrap input { width: 100%; padding-left: 36px; }
.filter-count { font-size: .8rem; font-weight: 600; color: var(--blue); margin-left: auto; text-transform: uppercase; letter-spacing: .04em; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.card.is-hidden { display: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.about-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.about-side .photo-frame { width: 100%; }
.side-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin: 6px 0 0; }
.about-main h2 { margin-top: 40px; }
.about-main h2:first-child { margin-top: 0; }
.prose { font-size: 1.04rem; color: var(--text-2); }
.prose p { margin-bottom: 1.1em; }
.prose .intro { font-size: 1.14rem; color: var(--navy); font-weight: 500; }
.prose h2, .prose h3, .prose h4 { color: var(--navy); margin-top: 1.6em; }
.prose h3, .prose h4 { text-transform: none; letter-spacing: -0.015em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--pink); background: rgba(197,212,255,.24); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface); padding: 1px 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose.small { font-size: .95rem; }
.md-figure { margin: 1.5em 0; }
.md-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.md-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; overflow: hidden; background: var(--navy-2); }
.md-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.timeline { list-style: none; position: relative; padding-left: 0; margin-bottom: 8px; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.tl-period { font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; padding-top: 4px; }
.timeline strong { display: block; color: var(--navy); }
.tl-org { display: block; font-size: .92rem; color: var(--text-2); }
.profile-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .88rem; }
.profile-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; }

/* ---------- Academic ---------- */
.ref-list { list-style: none; display: grid; gap: 16px; margin-bottom: 8px; }
.ref { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pink); }
.ref-year { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 1.1rem; letter-spacing: -0.03em; }
.ref-title { font-size: 1.05rem; margin-bottom: .3em; }
.ref-title a { color: var(--navy); }
.ref-title a:hover { color: var(--blue); text-decoration: none; }
.ref-cite { font-size: .9rem; color: var(--text-2); margin-bottom: .5em; }
.ref-summary { font-size: .92rem; color: var(--text-2); }
.ref-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }

/* ---------- Detail pages ---------- */
.detail .page-head { padding-bottom: 0; }
.detail-cover { margin: 0 0 30px; overflow: hidden; border: 1px solid var(--line); }
.detail-cover img { width: 100%; }
.detail-cover figcaption { padding: 8px 12px; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); }
.notice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--pink-pale); color: var(--navy); font-size: .9rem; font-weight: 600; }
.notice.success { background: #e3f5ea; color: #0b5a34; }
.notice.error { background: #fdecea; color: #a4261a; }
.share { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.share a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); color: var(--navy); }
.share a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.rss { font-size: .84rem; margin-left: 8px; font-weight: 600; }

/* gallery & lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--chip); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(4,18,89,.94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 1200px); max-height: 90vh; display: grid; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; margin: auto; }
.lightbox figcaption { color: #fff; text-align: center; font-size: .9rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--pink); color: var(--navy); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Facebook page ---------- */
.fb-grid { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 40px; align-items: start; }
.fb-embed-wrap { background: #fff; border: 1px solid var(--line); padding: 10px; min-height: 300px; }
.fb-post .fb-post-img { margin-bottom: 12px; border: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin: 28px 0 8px; }
.big-link { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--navy); background: #fff; transition: all .2s; }
.social-list a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.social-list.with-labels { flex-direction: column; gap: 6px; }
.social-list.with-labels a { display: inline-flex; width: auto; height: auto; padding: 9px 12px; gap: 10px; font-size: .9rem; font-weight: 600; justify-content: flex-start; }
.contact-form form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus, .search-wrap input:focus, .select-wrap select:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: var(--navy); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--navy-2); color: rgba(255,255,255,.82); font-size: .9rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-soft); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--pink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 52px 0 24px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 4px; text-transform: uppercase; letter-spacing: -0.02em; }
.footer-tagline { color: rgba(255,255,255,.65); margin-bottom: 18px; }
.site-footer .social-list a { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.site-footer .social-list a:hover { background: var(--pink); border-color: var(--pink); color: var(--navy); }
.footer-nav ul { list-style: none; columns: 2; }
.footer-nav a { display: inline-block; padding: 3px 0; color: rgba(255,255,255,.85); font-weight: 600; font-size: .86rem; }
.footer-contact p { margin-bottom: 8px; }
.footer-note { color: rgba(255,255,255,.55); font-size: .82rem; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 30px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-bottom p { margin: 0; }
.notfound { padding: 100px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .brand-sub { display: none; }
}
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; justify-content: flex-start; }
  .hero-map { width: 90%; right: -20%; top: 0; opacity: .3; }
  .photo-frame { width: min(100%, 260px); }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .about-side .photo-frame { width: min(100%, 260px); }
  .two-col, .contact-grid, .fb-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line-soft); background: var(--chip); }
  .lang-switch { align-self: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats li:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats li:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .ref { grid-template-columns: 1fr; gap: 6px; }
  .about-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .event-cover, .video { margin: -18px -18px 14px; }
  .hero { padding-top: 36px; }
  .hero-grid { gap: 20px; }
  .hero-map { display: none; }
  .photo-frame { width: 140px; aspect-ratio: 1; }
  .photo-frame::before { width: 50%; height: 50%; left: -10px; bottom: -10px; }
  .photo-frame::after { right: -10px; top: -10px; }
  .avatar-placeholder { font-size: 2.6rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero-tagline { font-size: 1.05rem; }
  .map-banner { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .filterbar, .share, .cta-band { display: none; }
  .card { break-inside: avoid; box-shadow: none; }
}

/* about: map above interests */
.about-map { margin-bottom: 28px; }
.about-map .map-banner { aspect-ratio: 3 / 1; }
@media (max-width: 640px) { .about-map .map-banner { aspect-ratio: 16 / 10; } }

/* ---------- EU accession explainers ---------- */
.timeline-band { padding: 28px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.milestones { list-style: none; display: flex; gap: 0; overflow-x: auto; padding: 6px 0 8px; margin: 0; scroll-snap-type: x proximity; }
.milestones li { flex: 0 0 auto; min-width: 180px; max-width: 240px; padding: 0 18px 0 0; margin-right: 18px; position: relative; scroll-snap-align: start; }
.milestones li::before { content: ""; position: absolute; left: 0; top: 11px; right: 0; height: 2px; background: var(--line); }
.milestones li::after { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--blue); }
.milestones li:last-child::after { background: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.ms-date { display: block; margin-top: 26px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.ms-label { display: block; font-size: .9rem; color: var(--navy); font-weight: 600; line-height: 1.35; margin-top: 2px; }
.topic-block { margin-bottom: 48px; }
.topic-block:last-child { margin-bottom: 0; }
.explainer-grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 48px; align-items: start; justify-content: start; }
.explainer-side { position: sticky; top: 96px; display: grid; gap: 22px; }
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc ol { counter-reset: toc; }
.toc ol li { counter-increment: toc; display: flex; gap: 10px; font-size: .88rem; line-height: 1.4; }
.toc ol li::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--blue); font-size: .74rem; letter-spacing: .04em; padding-top: 2px; }
.toc a { color: var(--navy); }
.toc a:hover { color: var(--blue); }
.src-list li { font-size: .86rem; }
.src-list a { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); }
.explainer .prose h2 { font-size: 1.35rem; margin-top: 2em; scroll-margin-top: 96px; }
.explainer .prose h3 { font-size: 1.08rem; }
@media (max-width: 1000px) {
  .explainer-grid { grid-template-columns: 1fr; gap: 24px; }
  .explainer-side { position: static; }
}
@media (max-width: 1200px) {
  .site-nav a { font-size: .8rem; padding: 8px 7px; }
}
