/* Feridun Hadi Sinirlioğlu for Secretary-General */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #15181d;
  --ink-2: #3b3e43;
  --muted: #6c6962;
  --rule: rgba(21, 24, 29, .15);
  --night: #0e1116;
  --night-2: #161b22;
  --on-night: #f3ece0;
  --on-night-2: rgba(243, 236, 224, .66);
  --night-rule: rgba(243, 236, 224, .14);
  --accent: #b8322a;
  --accent-night: #e2573f;
  --display: 'Gloock', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; transform: translateY(-300%); }
.skip:focus { transform: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.sec-title { font: 400 clamp(2.4rem, 4.6vw, 3.9rem)/1 var(--display); letter-spacing: -.01em; margin-bottom: .55em; }
.eyebrow { font: 500 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.4rem; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gut); color: var(--on-night);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-head.is-solid { background: rgba(244, 239, 230, .94); color: var(--ink); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark:hover { color: inherit; }
.wm-name { font: 400 1.32rem/1 var(--display); }
.wm-sub { font: 500 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: .9rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: .82; }
.nav a:hover { opacity: 1; color: inherit; text-decoration: underline; }

/* ---------- language menu ---------- */
.head-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .06em; padding: 6px 10px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); border-radius: 2px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lang[open] summary { border-color: currentColor; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px 0; min-width: 150px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(14, 17, 22, .22), 0 0 0 1px var(--rule); }
.lang a { display: block; padding: 8px 16px; text-decoration: none; font-size: .92rem; }
.lang a:hover { background: var(--paper-2); color: var(--ink); }
.lang a[aria-current] { color: var(--accent); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 46%, #1a2029 0%, var(--night) 58%);
  color: var(--on-night);
  display: grid; align-items: center;
  padding: calc(var(--head-h) + 40px) var(--gut) 90px;
}
.hero-globe {
  position: absolute; top: 50%; inset-inline-end: -3vw; transform: translateY(-48%);
  width: min(104vh, 66vw, 1000px); aspect-ratio: 1; z-index: 0;
}
.hero-globe canvas { display: block; cursor: grab; touch-action: pan-y; }
.hero-globe canvas:active { cursor: grabbing; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; margin-inline-start: max(0px, calc((100vw - var(--wrap)) / 2)); pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero .eyebrow { color: var(--accent-night); }
.hero h1 { font: 400 clamp(3.2rem, 8.2vw, 7.9rem)/.93 var(--display); letter-spacing: -.018em; margin-bottom: .34em; text-shadow: 0 2px 30px rgba(14, 17, 22, .6); }
.hero h1 span { display: block; }
.hero-lede { max-width: 33em; font-size: clamp(1.02rem, 1.25vw, 1.16rem); color: var(--on-night-2); margin-bottom: 2rem; text-shadow: 0 1px 14px rgba(14, 17, 22, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: baseline; gap: 8px; padding: 13px 22px; font-weight: 500; font-size: .95rem; text-decoration: none; border-radius: 2px; transition: background .2s, color .2s, border-color .2s; }
.btn small { font-size: .7rem; letter-spacing: .1em; opacity: .7; }
.btn-solid { background: var(--on-night); color: var(--night); }
.btn-solid:hover { background: var(--accent-night); color: #fff; }
.btn-line { border: 1px solid rgba(243, 236, 224, .38); color: var(--on-night); }
.btn-line:hover { border-color: var(--on-night); color: var(--on-night); }
.hero-caption { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: 26px; margin: 0; max-width: var(--wrap); margin-inline: auto; font-size: .8rem; color: rgba(243, 236, 224, .5); }
.drag-hint { margin-inline-start: .6em; }
@media (hover: none) { .drag-hint { display: none; } }

/* load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .hero-copy > :nth-child(4) { animation-delay: .44s; }
  .hero-globe { animation: fade 2.2s ease .1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------- facts ---------- */
.facts { border-bottom: 1px solid var(--rule); }
.facts dl { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(4, 1fr); }
.facts dl > div { padding: 34px 24px 32px; border-inline-start: 1px solid var(--rule); }
.facts dl > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts dt { font: 400 clamp(1.9rem, 3vw, 2.6rem)/1 var(--display); margin-bottom: 12px; }
.facts dd { margin: 0; font-size: .93rem; line-height: 1.45; color: var(--ink-2); max-width: 21em; }

/* ---------- about ---------- */
.about { padding: clamp(80px, 10vw, 140px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; position: sticky; top: calc(var(--head-h) + 28px); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
figcaption { font-size: .78rem; line-height: 1.45; color: var(--muted); margin-top: 10px; }
figcaption a { color: inherit; }
.about-text { max-width: 640px; padding-top: 6px; }
.about-text .lead { font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.5; color: var(--ink); margin-bottom: 1.3em; }
.about-text p { color: var(--ink-2); }
.kant { margin-top: 2.6rem; padding-block: 22px 4px; padding-inline-start: 24px; border-inline-start: 2px solid var(--accent); }
.kant-k { font: 500 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.kant p:last-child { font: 400 1.22rem/1.5 var(--display); color: var(--ink); }
.kant cite { font-style: italic; }

/* ---------- band ---------- */
.band { margin: 0; }
.band img { width: 100%; aspect-ratio: 2000 / 875; object-fit: cover; }
.band figcaption { max-width: var(--wrap); margin: 12px auto 0; padding: 0 var(--gut); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }

/* ---------- record story ---------- */
.record { padding: clamp(80px, 10vw, 130px) 0 0; }
.record-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; border-bottom: 1px solid var(--rule); padding-bottom: 28px; }
.record-head .sec-title { margin: 0; }
.record-head p { margin: 0; color: var(--ink-2); max-width: 30em; }
.story { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.story-globe { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); display: grid; place-items: center; }
.story-globe canvas { display: block; cursor: grab; touch-action: pan-y; }
.steps { list-style: none; margin: 0; padding-block: 18vh 30vh; padding-inline: clamp(16px, 3vw, 40px) var(--gut); }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; opacity: .28; transition: opacity .5s ease; }
.step.is-active { opacity: 1; }
.step .when { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { font: 400 clamp(2.3rem, 3.8vw, 3.4rem)/1 var(--display); margin-bottom: 18px; }
.step p { color: var(--ink-2); font-size: 1.04rem; }
.step-wide { max-width: 560px; min-height: 90vh; }
.text-link { font-weight: 500; text-decoration: underline; }
.osce-list { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.osce-list button { all: unset; display: block; width: 100%; padding: 3px 0; font-size: .82rem; line-height: 1.35; color: var(--ink-2); cursor: default; }
.osce-list button:hover, .osce-list button:focus-visible { color: var(--accent); }
.osce-list button:focus-visible { outline: 1px solid var(--accent); }

/* ---------- selection ---------- */
.selection { background: var(--night); color: var(--on-night); padding: clamp(80px, 10vw, 130px) 0 clamp(70px, 8vw, 110px); }
.sel-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.selection p { color: var(--on-night-2); max-width: 36em; }
.charter { margin: 0 0 2rem; }
.charter p { font: 400 clamp(1.5rem, 2.5vw, 2.1rem)/1.3 var(--display); color: var(--on-night); max-width: 24em; margin-bottom: .6em; }
.charter footer { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-night); }
.count { border-inline-start: 1px solid var(--night-rule); padding-inline-start: clamp(24px, 3vw, 48px); }
.selection .count-n { font: 400 clamp(5.5rem, 12vw, 10.5rem)/.85 var(--display); color: var(--on-night); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.selection .count-l { font-size: .95rem; max-width: 17em; }

.tracker { list-style: none; margin: clamp(56px, 7vw, 90px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.tracker::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--night-rule); }
.ms { position: relative; padding-block-start: 30px; padding-inline-end: 18px; }
.ms::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--night); border: 1px solid rgba(243, 236, 224, .4); }
.ms.is-done::before { background: var(--accent-night); border-color: var(--accent-night); }
.ms.is-done::after { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--accent-night); }
.ms.is-next::before { border: 2px solid var(--on-night); }
.ms time { display: block; font: 600 .76rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night); margin-bottom: 10px; }
.ms.is-future time { color: var(--on-night-2); }
.ms p { font-size: .88rem; line-height: 1.45; margin: 0; }

/* ---------- press ---------- */
.press { padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 7vw, 90px); }
.press h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.press-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { border-bottom: 1px solid var(--rule); }
.doc-list a, .doc-list .is-pending { display: block; padding: 18px 0; text-decoration: none; }
.doc-list .is-pending { color: var(--muted); }
.doc-t { display: block; font: 400 1.45rem/1.15 var(--display); margin-bottom: 6px; }
.doc-list a .doc-t::after { content: ' \2193'; font-family: var(--sans); font-size: .9rem; color: var(--accent); }
.is-pending .doc-t::after { content: attr(data-pending); font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-inline-start: 12px; padding: 4px 7px; border: 1px solid var(--rule); vertical-align: middle; }
.doc-m { display: block; font-size: .88rem; color: var(--muted); }
.bio { border-bottom: 1px solid var(--rule); padding: 18px 0 8px; }
.bio-h { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.copy { border: 1px solid var(--rule); background: none; padding: 5px 12px; font-size: .78rem; font-weight: 500; cursor: pointer; border-radius: 2px; }
.copy:hover { border-color: var(--ink); }
.bio p { font-size: .96rem; color: var(--ink-2); }
.photos { margin-top: clamp(56px, 7vw, 90px); }
.photo-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.photo-grid figure { margin: 0; }
.ph { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--night); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease, opacity .3s; }
.ph:hover img { opacity: .86; }
.dl { position: absolute; inset-inline-end: 10px; bottom: 10px; background: var(--paper); color: var(--ink); font-size: .74rem; font-weight: 600; padding: 5px 10px; opacity: 0; transform: translateY(4px); transition: .25s; }
.ph:hover .dl, .ph:focus-visible .dl { opacity: 1; transform: none; }
@media (hover: none) { .dl { opacity: 1; transform: none; } }
.photo-grid figcaption { color: var(--ink-2); }
.cr { color: var(--muted); }

/* ---------- sources & footer ---------- */
.sources { padding: 0 0 clamp(60px, 7vw, 90px); }
.src-h { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 14px; }
.sources ol { margin: 0; padding-inline-start: 1.3em; columns: 2; column-gap: 48px; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.sources li { break-inside: avoid; margin-bottom: 8px; }
.site-foot { background: var(--night); color: var(--on-night-2); padding: 48px 0 56px; font-size: .82rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.foot-name { font: 400 1.4rem/1.25 var(--display); color: var(--on-night); }
.foot-name span { font: 400 .82rem/1.4 var(--sans); color: var(--on-night-2); }
.foot-credit { margin: 0; }

/* ---------- per-language type ---------- */
.lang-ru { --display: 'Prata', Georgia, serif; }
.lang-zh { --display: 'Noto Serif SC', 'Songti SC', serif; --sans: 'Geist', 'Noto Sans SC', 'PingFang SC', sans-serif; }
.lang-ar { --display: 'Amiri', 'Geeza Pro', serif; --sans: 'IBM Plex Sans Arabic', 'Geeza Pro', system-ui, sans-serif; }
.lang-ru .hero h1 { font-size: clamp(2.8rem, 6.6vw, 6.4rem); line-height: 1.02; }
.lang-zh .hero h1 { font-weight: 600; font-size: clamp(2.8rem, 6.4vw, 6.2rem); line-height: 1.12; letter-spacing: .02em; }
.lang-zh .sec-title, .lang-zh .step h3, .lang-zh .charter p, .lang-zh .doc-t, .lang-zh .foot-name, .lang-zh .kant p:last-child { font-weight: 600; }
.lang-ar .hero h1 { font-weight: 700; font-size: clamp(3rem, 7vw, 6.8rem); line-height: 1.22; letter-spacing: 0; }
.lang-ar .sec-title, .lang-ar .step h3, .lang-ar .wm-name { font-weight: 700; letter-spacing: 0; }
.lang-ar body, .lang-ar { line-height: 1.8; }
.lang-ar .charter p, .lang-ar .kant p:last-child { line-height: 1.7; }
:is(.lang-zh, .lang-ar) :is(.eyebrow, .wm-sub, .step .when, .kant-k, .charter footer, .ms time, .press h3, .src-h, .is-pending .doc-t::after) { letter-spacing: 0; text-transform: none; }
:is(.lang-zh, .lang-ar) :is(.eyebrow, .step .when, .kant-k) { font-size: .9rem; }
.tr-note { display: block; margin-top: 10px; opacity: .8; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .facts dl > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .tracker { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .tracker::before { display: none; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .hero { align-items: end; padding-top: calc(var(--head-h) + 20px); padding-bottom: 72px; }
  .hero-globe { top: calc(var(--head-h) - 2vw); inset-inline-end: -30vw; transform: none; width: 118vw; }
  .about-grid, .record-head, .press-grid, .sel-grid, .foot-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 420px; }
  .story { grid-template-columns: 1fr; }
  .story-globe { top: var(--head-h); height: 46vh; z-index: 1; background: linear-gradient(var(--paper) 82%, rgba(244, 239, 230, 0)); }
  .steps { padding: 4vh var(--gut) 30vh; }
  .step { min-height: 52vh; justify-content: flex-start; padding-top: 2vh; }
  .step-wide { min-height: 80vh; }
  .count { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--night-rule); padding-top: 28px; }
  .sources ol { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wm-sub { display: none; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dl > div { border-inline-start: 0 !important; padding-inline-start: 0 !important; border-top: 1px solid var(--rule); padding: 24px 0; }
  .facts dl > div:first-child { border-top: 0; }
  .tracker { grid-template-columns: 1fr; row-gap: 0; }
  .ms { padding: 0 0 24px; padding-inline-start: 30px; }
  .ms::after { display: none; }
  .photo-grid { grid-template-columns: 1fr; }
  .osce-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band figcaption { display: block; }
  .hero-caption { display: none; }
}

@media print {
  .site-head, .hero-globe, .story-globe, .band, .photos, .copy { display: none !important; }
  .hero, .selection, .site-foot { background: none; color: #000; min-height: 0; }
  .step { opacity: 1; min-height: 0; }
}
