/* German-Qatar Institute — public site.
   Design language modelled on the State of Qatar's Government Communications
   Office (gco.gov.qa): a fixed maroon sidebar, full-bleed heroes with diamond
   corners, sticky section tabs, centred editorial text with short maroon rules,
   text-media cards, numbered text/image sliders, card carousels and a diamond
   timeline. Motion follows its system: fade-up / fade-text (0.35–0.5s
   ease-in-out), centre-out clip reveals and a Ken Burns zoom.
   Lusail+ (Qatar's licensed typeface) is replaced by self-hosted Archivo. */

:root {
  --accent: #8A1538;
  --accent-2: #6E102C;
  --gold: #FBBA16;
  --de-black: #161616;
  --de-red: #E30613;
  --black: #000;
  --white: #fff;
  --grey-50: #F9FAFB;
  --grey-100: #F3F4F6;
  --grey-200: #E5E7EB;
  --grey-300: #D1D5DB;
  --grey-400: #9CA3AF;
  --grey-500: #6B7280;
  --grey-600: #4B5563;
  --grey-700: #374151;
  --grey-800: #1F2937;
  --text-primary: #030712;
  --text-secondary: #374151;
  --nav-x: clamp(240px, 20vw, 320px);
  --page-m: 5.5rem;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: ease-in-out;
  --t: .35s;
  color-scheme: light;
}
@media (max-width: 1599px) { :root { --page-m: 4rem; } }
@media (max-width: 1023px) { :root { --page-m: 3rem; } }
@media (max-width: 767px) { :root { --page-m: 2rem; } }
@media (max-width: 550px) { :root { --page-m: 1.5rem; } }
[dir="rtl"] { --sans: "Noto Kufi Arabic", "Archivo", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font: 400 1rem/1.6 var(--sans); letter-spacing: .025em; color: var(--text-secondary); background: var(--white); overflow-x: clip; }
[dir="rtl"] body { letter-spacing: 0; line-height: 1.85; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav :focus-visible, .hero :focus-visible, .media-full :focus-visible { outline-color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 300; background: var(--accent); color: #fff; padding: 12px 18px; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- type scale (GCO clamps) ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--text-primary); letter-spacing: .025em; }
[dir="rtl"] :is(h1, h2, h3, h4) { letter-spacing: 0; font-weight: 600; }
.display-l { font-size: clamp(2.4375rem, 1.698rem + 2.7517vw, 5rem); line-height: 1.1; }
.heading-l { font-size: clamp(2.125rem, 1.8364rem + 1.0738vw, 3.125rem); line-height: 1.1; }
.heading-m { font-size: clamp(1.9375rem, 1.685rem + .9396vw, 2.8125rem); line-height: 1.1; }
.heading-s { font-size: clamp(1.5rem, 1.2114rem + 1.0738vw, 2.5rem); line-height: 1.1; }
.heading-xs { font-size: clamp(1.375rem, 1.18rem + .73vw, 2rem); line-height: 1.15; }
.heading-xxs { font-size: clamp(1.25rem, 1.12rem + .48vw, 1.6rem); line-height: 1.2; }
[dir="rtl"] :is(.display-l, .heading-l, .heading-m, .heading-s, .heading-xs, .heading-xxs) { line-height: 1.45; }
.eyebrow { display: block; color: var(--accent); font-size: clamp(1.05rem, .98rem + .3vw, 1.3rem); font-weight: 500; margin: 0 0 .6rem; }
.lead { font-size: clamp(1.1rem, 1.02rem + .3vw, 1.3rem); line-height: 1.55; }
p { margin: 0 0 1em; }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.4rem; margin: 1.6em 0 .6em; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text-primary); font-weight: 500; }
.prose ul { padding-inline-start: 0; list-style: none; }
.prose li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .55em; }
.prose li::before { content: ""; position: absolute; inset-inline-start: .2rem; top: .62em; width: .5rem; height: .5rem; background: var(--accent); rotate: 45deg; }

/* GCO separator: short maroon bar under headings, grows in with fade-text */
hr.rule { position: relative; border: 0; height: 3px; width: 6.25rem; margin: 1.5rem 0; background: transparent; overflow: hidden; }
hr.rule::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--sep, var(--accent)); }
.center hr.rule { margin-inline: auto; }
.center hr.rule::before { inset-inline: 0; margin-inline: auto; }
.on-dark hr.rule { --sep: var(--white); }

/* ---------- buttons (GCO: square, bordered) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.5rem; border: 1px solid var(--accent); background: var(--accent); color: var(--white); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-line { background: transparent; color: var(--text-primary); border-color: var(--grey-400); }
.btn-line:hover { background: var(--grey-200); border-color: var(--grey-400); }
.on-dark .btn-line { color: var(--white); border-color: var(--white); }
.on-dark .btn-line:hover { background: var(--white); color: var(--text-primary); }
.on-dark .btn:not(.btn-line) { background: var(--white); color: var(--accent); border-color: var(--white); }
.on-dark .btn:not(.btn-line):hover { background: var(--grey-100); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .9rem; min-height: 44px; color: var(--text-primary); font-weight: 500; text-decoration: none; }
.link-arrow .circ { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--grey-400); display: grid; place-items: center; transition: background .3s ease-out, border-color .3s ease-out, color .3s; flex: none; }
.link-arrow:hover .circ, a:hover > .link-arrow .circ { background: var(--accent); border-color: var(--accent); color: var(--white); }
.on-dark .link-arrow { color: var(--white); }
.on-dark .link-arrow .circ { border-color: rgba(255, 255, 255, .6); }
.on-dark .link-arrow:hover .circ { background: var(--white); color: var(--accent); }
[dir="rtl"] .link-arrow .ic, [dir="rtl"] .car-btn .ic { scale: -1 1; }

/* ---------- sidebar navigation ---------- */
.nav { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 100; width: var(--nav-x); background: var(--accent); color: var(--white); display: flex; flex-direction: column; }
.nav-head { padding: 1.75rem 1.5rem 1.25rem; }
.brand { display: inline-flex; text-decoration: none; color: var(--white); max-width: 100%; }
.brand .plate { display: block; background: var(--white); padding: .55rem .75rem; }
.brand img { height: 74px; width: auto; max-width: 100%; object-fit: contain; }
.brand.white img { height: 64px; }
.brand-txt { display: flex; align-items: center; gap: .7rem; font-weight: 500; line-height: 1.2; }
.brand-txt .mono { font-size: 2.3rem; }
.brand-name { font-size: 1.05rem; }
.nav-drawer { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.nav-body { position: relative; flex: 1; overflow: hidden; }
.nav-menu, .nav-sub { list-style: none; margin: 0; padding: .5rem 0; position: absolute; inset: 0; overflow-y: auto; }
.nav-menu a, .nav-menu button, .nav-sub a, .nav-back { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: 1rem 1.5rem; min-height: 48px; color: var(--white); text-decoration: none; font-size: clamp(1rem, .92rem + .3vw, 1.15rem); font-weight: 500; border: 0; background: none; text-align: start; cursor: pointer; position: relative; }
.nav-menu a::after, .nav-menu button::after, .nav-sub a::after { content: ""; position: absolute; inset-inline: 1.5rem; bottom: .55rem; height: 1px; background: rgba(255, 255, 255, .55); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform var(--t) var(--ease); }
[dir="rtl"] { --origin: right; }
.nav-menu a:hover::after, .nav-menu button:hover::after, .nav-sub a:hover::after, .nav-menu [aria-current="page"]::after { transform: scaleX(1); }
.nav-menu .chev { opacity: .85; flex: none; }
[dir="rtl"] .nav-menu .chev, [dir="rtl"] .nav-back .ic { scale: -1 1; }
/* sub-menu panel: GCO addDepth (clip opens from the centre) + items slideIn */
.nav-sub { background: var(--white); color: var(--text-primary); visibility: hidden; clip-path: inset(0 50% 0 50%); transition: clip-path .3s var(--ease), visibility 0s .3s; }
.nav-sub.open { visibility: visible; clip-path: inset(0); transition: clip-path .3s var(--ease); }
.nav-sub a, .nav-back { color: var(--text-primary); }
.nav-sub a::after { background: var(--grey-400); }
.nav-back { color: var(--accent); justify-content: flex-start; font-size: .95rem; }
.nav-sub li { overflow: hidden; }
.nav-sub.open li > * { animation: slideIn .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes slideIn { from { translate: 100%; } to { translate: 0; } }
[dir="rtl"] .nav-sub.open li > * { animation-name: slideInRtl; }
@keyframes slideInRtl { from { translate: -100%; } to { translate: 0; } }
.nav-sub .sub-title { display: block; padding: 1rem 1.5rem .25rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.nav-foot { padding: 1rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.nav-foot > a { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .4rem 1.5rem; color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-foot > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-foot .ic-wrap { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--accent); display: grid; place-items: center; flex: none; }
.langs { display: flex; gap: .25rem; padding: .25rem 1.5rem .5rem; }
.langs a { min-width: 44px; min-height: 44px; padding: 0 .65rem; display: inline-grid; place-items: center; border: 1px solid rgba(255, 255, 255, .45); color: var(--white); text-decoration: none; font-size: .85rem; font-weight: 500; }
.langs a[lang="ar"] { font-family: "Noto Kufi Arabic", var(--sans); }
.langs a[aria-current] { background: var(--white); color: var(--accent); border-color: var(--white); }
.menu-btn { display: none; }
.page { margin-inline-start: var(--nav-x); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.page > main { flex: 1; }

@media (max-width: 1179px) {
  :root { --nav-x: 0px; --top-h: 96px; }
  .nav { inset: 0 0 auto 0; width: auto; height: var(--top-h); flex-direction: row; align-items: center; justify-content: space-between; padding-inline: var(--page-m); }
  .nav-head { padding: 0; }
  .brand img { height: 60px; }
  .brand .plate { padding: .4rem .55rem; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 12px 10px; background: none; border: 0; cursor: pointer; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-drawer { position: fixed; inset: var(--top-h) 0 0 0; background: var(--accent); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease), visibility 0s .4s; }
  .nav.open .nav-drawer { visibility: visible; clip-path: inset(0); transition: clip-path .4s var(--ease); }
  .page { margin-inline-start: 0; padding-top: var(--top-h); }
  body.locked { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; color: var(--white); height: calc(100svh - var(--top-h, 0px)); min-height: 34rem; max-height: 60rem; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--page-m) 5rem; isolation: isolate; }
.hero.sub { height: auto; min-height: 32rem; max-height: none; padding-top: 9rem; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--grey-800); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.1; transition: scale 6s ease-out; }
.hero-media.loaded img, .hero-media.loaded video { scale: 1; }
.hero-media.ph { background: radial-gradient(70% 90% at 85% 15%, rgba(138, 21, 56, .9), transparent 65%), radial-gradient(60% 70% at 10% 100%, rgba(138, 21, 56, .45), transparent 70%), linear-gradient(160deg, #2a0b16, #120509 70%); }
.hero-media.ph .mono { position: absolute; inset-inline-end: 5%; top: 50%; translate: 0 -55%; font-size: min(34vw, 30rem); opacity: .07; filter: grayscale(1) brightness(4); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .08) 100%), linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 45%); }
[dir="rtl"] .hero-media::after { background: linear-gradient(270deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .08) 100%), linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 45%); }
.hero-text { max-width: 58rem; }
.hero h1, .hero h2 { color: var(--white); }
.hero .display-l { margin-block: .75rem 0; }
.hero .subtitle { font-weight: 500; color: var(--white); }
.hero .lead { color: rgba(255, 255, 255, .9); max-width: 44rem; margin-top: 1.25rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .85); }
.crumbs a { text-decoration: none; color: var(--white); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.socials { position: absolute; top: 2.75rem; inset-inline-end: var(--page-m); display: flex; flex-wrap: wrap; }
.socials a { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); margin-inline-start: -1px; color: var(--white); transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.socials a:hover { background: var(--white); color: var(--black); }
@media (max-width: 767px) { .hero .socials { position: static; order: -1; margin-bottom: auto; padding-top: 1.5rem; } }
/* diamonds on the hero's lower edge (GCO hero__diamonds) */
.diamonds { position: absolute; top: 100%; inset-inline: 0; height: 0; pointer-events: none; }
.diamonds::before, .diamonds::after { content: ""; position: absolute; background: var(--accent); rotate: 45deg; z-index: 2; }
.diamonds::before { width: 2.8125rem; height: 2.8125rem; inset-inline-start: 0; translate: -50% -50%; }
.diamonds::after { width: 9.375rem; height: 9.375rem; inset-inline-end: 0; translate: 50% -50%; }
[dir="rtl"] .diamonds::before { translate: 50% -50%; }
[dir="rtl"] .diamonds::after { translate: -50% -50%; }
@media (max-width: 1179px) { .diamonds::before { width: 2.5rem; height: 2.5rem; } .diamonds::after { width: 6.25rem; height: 6.25rem; } }
@media (max-width: 550px) { .diamonds::before { width: 2rem; height: 2rem; } .diamonds::after { width: 4rem; height: 4rem; } }

/* ---------- sticky section tabs ---------- */
.tabs { position: sticky; top: var(--top-h, 0px); z-index: 20; background: var(--grey-50); border-bottom: 1px solid var(--grey-200); }
.tabs-in { position: relative; display: flex; justify-content: safe center; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-inline: var(--page-m); }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a { position: relative; flex: none; padding: 1.6rem 1rem 1.4rem; min-height: 44px; font-size: clamp(1rem, .95rem + .25vw, 1.2rem); font-weight: 500; color: var(--text-primary); text-decoration: none; white-space: nowrap; }
.tabs a::after { content: ""; position: absolute; inset-inline: 1rem; bottom: 1rem; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.tabs a:hover::after, .tabs a.active::after { transform: scaleX(1); }
.tabs a.active { color: var(--accent); }
@media (max-width: 900px) { .tabs-in { justify-content: flex-start; } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(4rem, 3rem + 4vw, 7.5rem) var(--page-m); scroll-margin-top: calc(var(--top-h, 0px) + 80px); }
.sec.grey { background: var(--grey-50); }
.sec.grey-100 { background: var(--grey-100); }
.wrap { max-width: 82rem; margin-inline: auto; }
.narrow { max-width: 50rem; margin-inline: auto; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sec-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.sec-head .lead { max-width: 46rem; margin-bottom: 0; }
.sec-head.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.sec-head.row hr.rule { margin-bottom: 0; }

/* text-media: white card + image, alternating */
.tm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; max-width: 82rem; margin-inline: auto; }
.tm + .tm { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.tm.rev .tm-text { order: 2; }
.tm-text { background: var(--white); padding: clamp(2rem, 1.5rem + 2.5vw, 4rem); position: relative; z-index: 1; margin-inline-end: -4rem; }
.tm.rev .tm-text { margin-inline: -4rem 0; }
.tm-text .lead { color: var(--grey-600); }
.tm-text .quote { font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); }
.tm-media { aspect-ratio: 4 / 5; max-height: 40rem; width: 100%; overflow: hidden; }
@media (max-width: 900px) { .tm { grid-template-columns: 1fr; } .tm-text, .tm.rev .tm-text { margin: -3rem 1rem 0; order: 2; } .tm-media { aspect-ratio: 4 / 3; } }

.img { position: relative; overflow: hidden; width: 100%; height: 100%; background: var(--grey-100); }
.img img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--t); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { [data-ken-burns]:hover .img img { scale: 1.1; } }
.img.ph { display: grid; place-items: center; background: linear-gradient(150deg, var(--grey-100), var(--grey-200)); }
.img.ph .mono { font-size: clamp(3rem, 6vw, 5.5rem); opacity: .28; }
.ph-tag { position: absolute; bottom: 1rem; inset-inline: 1rem; text-align: center; font-size: .82rem; font-weight: 500; color: var(--grey-600); }

/* media full: full-width image band with text overlay */
.media-full { position: relative; min-height: 32rem; display: flex; align-items: flex-end; padding: clamp(3rem, 2rem + 4vw, 6rem) var(--page-m); color: var(--white); isolation: isolate; }
.media-full .hero-media::after { background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .12)); }
.media-full h2 { color: var(--white); }
.media-full .lead { color: rgba(255, 255, 255, .92); max-width: 46rem; }

/* columns: heading left, content right */
.columns { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: clamp(2rem, 1rem + 4vw, 6rem); max-width: 82rem; margin-inline: auto; }
.columns h2 { margin: 0; }
.columns hr.rule { margin-bottom: 0; }
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; } }
.col-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; margin-top: 2.5rem; }
.col-grid.first { margin-top: 0; }
.col-item h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.col-item p { margin: 0; }
.col-item .num { display: block; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); line-height: 1; color: var(--accent); font-weight: 500; margin-bottom: .75rem; font-variant-numeric: tabular-nums; }
.col-item .gl { display: block; width: 1.1rem; height: 1.1rem; background: var(--accent); rotate: 45deg; margin: .4rem .3rem 1.2rem; }
@media (max-width: 600px) { .col-grid { grid-template-columns: 1fr; } }

/* text/image slider (GCO text-image-carousel) */
.tic { position: relative; max-width: 90rem; margin-inline: auto; }
.tic-stage { position: relative; height: min(44rem, calc(100svh - var(--top-h, 0px) - 6rem)); min-height: 32rem; }
.tic-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; visibility: hidden; }
.tic-slide.active { visibility: visible; }
.tic-slide:nth-child(even) .tic-text { order: 2; }
.tic-img { position: relative; clip-path: inset(0 50% 0 50%); transition: clip-path .5s var(--ease); }
.tic-slide.active .tic-img { clip-path: inset(0); }
.tic-text { display: flex; flex-direction: column; justify-content: center; padding: 2rem clamp(1.5rem, 1rem + 3vw, 4rem); }
.tic-text > * { opacity: 0; transform: translateY(3.125rem); }
.tic-slide.active .tic-text > * { opacity: 1; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.tic-slide.active .tic-text > :nth-child(2) { transition-delay: .08s; } .tic-slide.active .tic-text > :nth-child(3) { transition-delay: .16s; } .tic-slide.active .tic-text > :nth-child(4) { transition-delay: .24s; } .tic-slide.active .tic-text > :nth-child(5) { transition-delay: .32s; }
.tic-num { color: var(--accent); }
.tic-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.tic-count { font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; }
.car-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--grey-400); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-primary); transition: background var(--t), border-color var(--t), color var(--t); }
.car-btn:hover:not(:disabled) { background: var(--grey-200); }
.car-btn:disabled { opacity: .35; cursor: default; }
.tic-dots { display: flex; gap: .25rem; margin-inline-start: auto; }
.tic-dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.tic-dots button::before { content: ""; width: .6rem; height: .6rem; rotate: 45deg; background: var(--grey-300); transition: background var(--t), scale var(--t); }
.tic-dots button[aria-current="true"]::before { background: var(--accent); scale: 1.3; }
@media (max-width: 767px) {
  .tic-stage { height: auto; min-height: 0; }
  .tic-slide { position: relative; display: none; grid-template-columns: 1fr; }
  .tic-slide.active { display: grid; }
  .tic-slide:nth-child(even) .tic-text { order: 0; }
  .tic-img { aspect-ratio: 4 / 3; }
  .tic-text { padding-inline: 0; }
}

/* card carousel (GCO cards-carousel) */
.cc { --gap: 1.25rem; }
.cc-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.cc-track::-webkit-scrollbar { display: none; }
.cc-item { flex: 0 0 calc(33.333% - var(--gap) * .667); scroll-snap-align: start; }
@media (max-width: 1023px) { .cc-item { flex-basis: calc(50% - var(--gap) * .5); } }
@media (max-width: 550px) { .cc { --gap: .75rem; } .cc-item { flex-basis: 88%; } }
.cc-foot { display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; }
.cc-bar { flex: 1; height: 2px; background: var(--grey-200); position: relative; overflow: hidden; margin-inline-end: .75rem; }
.cc-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 30%; background: var(--accent); transition: inset-inline-start .3s var(--ease), width .3s var(--ease); }
.card { display: flex; flex-direction: column; height: 100%; background: var(--grey-50); text-decoration: none; color: var(--text-secondary); }
.card .card-img { aspect-ratio: 16 / 10; height: auto; }
.card-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .88rem; font-weight: 500; color: var(--accent); margin-bottom: .9rem; }
.card-meta .muted { color: var(--grey-600); }
.badge { border: 1px solid var(--grey-400); color: var(--grey-700); padding: 0 .45rem; font-size: .78rem; }
.card h3 { font-size: clamp(1.2rem, 1.1rem + .35vw, 1.45rem); line-height: 1.25; margin-bottom: .8rem; }
.card p { font-size: .97rem; line-height: 1.6; flex: 1; }
.card .link-arrow { margin-top: .5rem; }
.play-dot { position: absolute; inset: 0; margin: auto; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--accent); display: grid; place-items: center; }
.post[hidden] { display: none; }

/* timeline with diamond markers (GCO data-timeline) */
.timeline { position: relative; max-width: 72rem; margin-inline: auto; padding-inline-start: 3.5rem; list-style: none; margin-block: 0; }
.timeline::before { content: ""; position: absolute; inset-block: 2.6rem 2rem; inset-inline-start: .72rem; width: 1px; background: var(--grey-300); }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding-block: 2rem; border-bottom: 1px solid var(--grey-200); text-decoration: none; color: inherit; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -3.15rem; top: 2.55rem; width: 1.5rem; height: 1.5rem; background: var(--accent); rotate: 45deg; transition: scale var(--t); }
.tl-item.planned::before { background: var(--white); border: 2px solid var(--accent); }
a.tl-item:hover::before { scale: 1.2; }
a.tl-item:hover h3 { color: var(--accent); }
.tl-item .eyebrow { margin-bottom: .3rem; font-size: 1rem; }
.tl-item h3 { margin-bottom: .35rem; transition: color var(--t); }
.tl-item p { margin: 0; }
.tl-side { display: flex; align-items: center; gap: 1.25rem; }
.tl-status { font-size: .88rem; font-weight: 500; padding: .35rem .75rem; border: 1px solid var(--grey-300); color: var(--text-primary); white-space: nowrap; }
.tl-item.planned .tl-status { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; } }

/* tiles (topics/audiences) */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.25rem; }
.tile { background: var(--grey-50); padding: 2rem; text-decoration: none; color: var(--text-secondary); display: flex; flex-direction: column; gap: .5rem; transition: background var(--t); }
.sec.grey .tile { background: var(--white); }
a.tile:hover { background: var(--grey-100); }
.tile .gl { display: block; width: 1rem; height: 1rem; background: var(--accent); rotate: 45deg; margin: .4rem .3rem 1rem; }
.tile h3 { font-size: 1.3rem; }
.tile p { margin: 0; }
@media (max-width: 1023px) { .tiles { --cols: 2 !important; } }
@media (max-width: 600px) { .tiles { --cols: 1 !important; } }

/* filters */
.filters { display: grid; gap: .75rem; margin-bottom: 2rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-row > span { min-width: 5rem; font-weight: 500; color: var(--text-primary); }
.chip { min-height: 44px; padding: .5rem 1.1rem; border: 1px solid var(--grey-300); background: var(--white); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; transition: background var(--t), color var(--t), border-color var(--t); }
.chip:hover { border-color: var(--grey-500); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--white); border-color: var(--accent); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1023px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.count { font-weight: 500; color: var(--grey-600); margin-bottom: 1.25rem; }
.empty { padding: 3rem; text-align: center; background: var(--grey-50); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.steps li { background: var(--white); padding: 2.25rem 2rem; border-top: 3px solid var(--accent); }
.steps .num { display: block; font-size: 3rem; line-height: 1; color: var(--accent); font-weight: 500; margin-bottom: 1.25rem; }
.steps h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.steps p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.quote { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.75rem); line-height: 1.5; color: var(--text-primary); font-style: italic; }
[dir="rtl"] .quote { font-style: normal; }

/* forum detail */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--grey-50); margin: 0; }
.facts div { padding: 1.5rem 1.75rem; border-inline-start: 1px solid var(--grey-200); }
.facts div:first-child { border-inline-start: 0; }
.facts dt { font-size: .88rem; font-weight: 500; color: var(--accent); margin-bottom: .3rem; }
.facts dd { margin: 0; font-weight: 500; color: var(--text-primary); font-size: 1.1rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-inline-start: 0; } }
.program { list-style: none; margin: 0; padding: 0; }
.program li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--grey-200); }
.program .time { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.program h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.program p { margin: 0; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.logo-tile { aspect-ratio: 3 / 2; background: var(--grey-50); display: grid; place-items: center; padding: 1.25rem; text-align: center; font-weight: 500; text-decoration: none; color: var(--text-primary); }
.logo-tile img { max-height: 70%; width: auto; object-fit: contain; }
@media (max-width: 760px) { .logos { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--t); }
.g-open:hover img { scale: 1.1; }
.gallery figcaption { font-size: .92rem; margin-top: .5rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(3, 7, 18, .92); display: grid; place-items: center; padding: 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(1400px, 100%); max-height: 82vh; }
.lightbox p { color: var(--white); text-align: center; margin-top: .75rem; }
.lightbox .x { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .5); background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--grey-800); color: var(--white); margin-bottom: 1.25rem; overflow: hidden; }
.video-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; background: radial-gradient(70% 90% at 80% 10%, rgba(138, 21, 56, .6), transparent 70%); }
.video-consent p { max-width: 36em; margin: 0; color: rgba(255, 255, 255, .88); }
.video-consent strong { display: block; color: var(--white); font-size: 1.2rem; font-weight: 500; margin-bottom: .3rem; }
.video-consent .btn { background: var(--white); color: var(--accent); border-color: var(--white); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-img { aspect-ratio: 16 / 9; height: auto; margin-bottom: 2.5rem; }

/* media page */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-200); }
.news a { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--grey-200); text-decoration: none; }
.news a:hover strong { color: var(--accent); }
.news-date { color: var(--grey-600); font-size: .95rem; }
.news-kind { display: block; font-size: .88rem; font-weight: 500; color: var(--accent); }
.news strong { display: block; font-weight: 500; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.45rem); color: var(--text-primary); transition: color var(--t); line-height: 1.3; }
.news-src { font-size: .92rem; color: var(--grey-600); }
@media (max-width: 700px) { .news a { grid-template-columns: 1fr auto; } .news-date { grid-column: 1 / -1; } }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.dl-card { background: var(--white); padding: 2rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.dl-card h3 { font-size: 1.3rem; }
.dl-card p { margin: 0 0 1rem; flex: 1; }
.soon { font-size: .9rem; font-weight: 500; color: var(--grey-600); }
@media (max-width: 900px) { .downloads { grid-template-columns: 1fr; } }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.docs figure { margin: 0; }
.doc-img { aspect-ratio: 3 / 2; height: auto; }
.docs figcaption { margin-top: .9rem; font-size: .95rem; }
.docs figcaption b { color: var(--accent); font-weight: 500; margin-inline-end: .6rem; }
.note { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--grey-100); border-inline-start: 3px solid var(--accent); font-size: .95rem; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); max-width: 82rem; margin-inline: auto; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--grey-50); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; }
legend { font-weight: 500; color: var(--text-primary); font-size: 1.15rem; margin-bottom: .9rem; padding: 0; }
.topic-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-pick input { position: absolute; opacity: 0; pointer-events: none; }
.topic-pick label { min-height: 44px; padding: .55rem 1.1rem; border: 1px solid var(--grey-300); background: var(--white); display: inline-flex; align-items: center; font-weight: 500; cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t); }
.topic-pick input:checked + label { background: var(--accent); color: var(--white); border-color: var(--accent); }
.topic-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint { color: var(--grey-600); margin: .75rem 0 0; min-height: 1.6em; font-size: .95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fld.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.fld label { display: block; font-weight: 500; color: var(--text-primary); margin-bottom: .45rem; }
.fld input, .fld textarea { width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1px solid var(--grey-300); background: var(--white); color: var(--text-primary); font: inherit; transition: border-color var(--t), box-shadow var(--t); }
.fld textarea { min-height: 11rem; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 21, 56, .15); }
.fld.bad input, .fld.bad textarea { border-color: #B42318; }
.err { color: #B42318; font-size: .9rem; margin: .35rem 0 0; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.5rem 0 .4rem; font-size: .95rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.form .btn[type="submit"] { margin-top: 1.5rem; }
.btn.busy { opacity: .7; cursor: progress; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.form-done .ic { width: 3.25rem; height: 3.25rem; padding: .8rem; background: var(--accent); color: var(--white); }
.form-done p { font-size: 1.3rem; color: var(--text-primary); margin: 0; }
.aside-item { padding: 1.4rem 0; border-bottom: 1px solid var(--grey-200); }
.aside-item:first-child { padding-top: 0; }
.aside-item .eyebrow { font-size: 1rem; margin-bottom: .35rem; }
.aside-item p { margin: 0; }
.aside-item > a { font-weight: 500; color: var(--text-primary); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.aside-item > a:hover { color: var(--accent); }
.socials.inline { position: static; margin-top: .5rem; }
.socials.inline a { color: var(--accent); border-color: var(--grey-300); }
.socials.inline a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---------- footer (GCO: grey band, logo, links, address) ---------- */
.foot { background: var(--grey-100); padding: 3rem var(--page-m); color: var(--black); }
.foot-in { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: flex-start; max-width: 90rem; }
.foot .brand { color: var(--text-primary); }
.foot .brand img { height: 84px; }
.foot .brand .plate { padding: 0; background: none; }
.foot-main { flex: 1; min-width: 16rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 2rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.foot-links a { font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--accent); }
.foot-main p { font-size: .92rem; margin: 0 0 .4rem; color: var(--grey-700); }
.foot .socials { position: static; }
.foot .socials a { color: var(--text-primary); border-color: var(--grey-300); }
.foot .socials a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---------- monogram fallback (logo colours) ---------- */
.mono { display: inline-flex; font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, "Times New Roman", serif; font-weight: 600; line-height: .82; letter-spacing: -.07em; }
.mono-g { background: linear-gradient(180deg, var(--de-black) 0 33.4%, var(--de-red) 0 66.6%, var(--gold) 0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono-q { color: var(--accent); }
.nav .brand-txt .mono-q { color: var(--white); }

/* ---------- GCO motion system ----------
   [data-fade-up]     whole block rises 50px and fades in (.5s)
   [data-fade-text]   each heading/paragraph rises in turn (.35s), hr grows (.5s)
   [data-reveal]      clip opens from the centre outwards (.5s)
   [data-reveal-down] clip opens top to bottom (.5s)                        */
@media (prefers-reduced-motion: no-preference) {
  [data-fade-up][data-animate=pending] { opacity: 0; transform: translateY(3.125rem); }
  [data-fade-up][data-animate=in] { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
  [data-fade-text] [data-animate=pending]:not(hr) { opacity: 0; transform: translateY(3.125rem); }
  [data-fade-text] [data-animate=in]:not(hr) { opacity: 1; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); transition-delay: var(--d, 0s); }
  [data-fade-text] hr.rule[data-animate=pending]::before { width: 0; }
  [data-fade-text] hr.rule[data-animate=in]::before { width: 100%; transition: width .5s var(--ease); transition-delay: var(--d, 0s); }
  [data-reveal][data-animate=pending] { clip-path: inset(0 50% 0 50%); }
  [data-reveal][data-animate=in] { clip-path: inset(0); transition: clip-path .5s var(--ease); }
  [data-reveal-down][data-animate=pending] { clip-path: inset(0 0 100% 0); }
  [data-reveal-down][data-animate=in] { clip-path: inset(0); transition: clip-path .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-media img, .hero-media video { scale: 1; }
  .tic-text > * { opacity: 1; transform: none; }
  .tic-img { clip-path: none; }
}

/* Text on imagery always has a dark ground of its own, so it stays readable
   while an image loads or if it fails (and contrast checks can measure it). */
.hero, .media-full { background-color: #1a0710; }
/* touch targets */
.brand { min-height: 44px; align-items: center; }
.media-mail { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a, .foot-links a { min-width: 44px; justify-content: center; }
