@font-face{font-family:"Source Sans 3";font-weight:900;font-style:normal;font-display:swap;src:url("fonts/SourceSans3-Black.woff2") format("woff2");}
@font-face{font-family:"Source Sans 3";font-weight:600;font-style:normal;font-display:swap;src:url("fonts/SourceSans3-Semibold.woff2") format("woff2");}
@font-face{font-family:"Source Sans 3";font-weight:400;font-style:normal;font-display:swap;src:url("fonts/SourceSans3-Regular.woff2") format("woff2");}
@font-face{font-family:"Cormorant Garamond";font-weight:700;font-style:italic;font-display:swap;src:url("fonts/CormorantGaramond-BoldItalic.woff2") format("woff2");}
@font-face{font-family:"Libre Caslon Text";font-weight:400;font-style:normal;font-display:swap;src:url("fonts/LibreCaslonText-Regular.woff2") format("woff2");}
@font-face{font-family:"Libre Caslon Text";font-weight:400;font-style:italic;font-display:swap;src:url("fonts/LibreCaslonText-Italic.woff2") format("woff2");}
@font-face{font-family:"Libre Caslon Text";font-weight:700;font-style:normal;font-display:swap;src:url("fonts/LibreCaslonText-Bold.woff2") format("woff2");}

:root {
  --gold: #97865A;
  --red: #B13634;
  --dark: #1A1613;
  --ink: #0F0E0D;
  --white: #FFFFFF;
  --cream: #F7F5F0;

  --bg: var(--cream);
  --fg: var(--ink);
  --muted: #6E675D;
  --rule: #D6D0C4;
  --rule-strong: var(--ink);
  --card: var(--white);
  --slot: #E9E4D8;
  --bar-bg: rgba(247, 245, 240, 0.92);
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);

  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Caslon Text", "Suffix Serif", Georgia, "Times New Roman", serif;
  --accent: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;

  --w: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 5.5rem);
  --band: 4.5px;
  --bar-h: 6rem;
  --bar-h-small: 4.25rem;
  --t-fast: 150ms;
  --t: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  box-sizing: border-box;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--dark);
  --fg: var(--cream);
  --muted: #A69D8D;
  --rule: #46403A;
  --rule-strong: var(--cream);
  --card: #241F1B;
  --slot: #2E2824;
  --bar-bg: rgba(26, 22, 19, 0.92);
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h-small) + var(--band) + env(safe-area-inset-top, 0px) + 1rem); }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-top: calc(var(--band) + env(safe-area-inset-top, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.locked { overflow: hidden; }
main { flex: 1 0 auto; }
svg { display: block; }
.ic { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 60; background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 700; padding: 0.6rem 0.9rem; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Brand devices */
.label { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.label::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--red); flex: 0 0 auto; }
.label.ink { color: var(--fg); }
.acc { font-family: var(--accent); font-style: italic; font-weight: 700; color: var(--red); letter-spacing: 0; }

/* Type */
h1, .h1 { font-family: var(--sans); font-weight: 900; letter-spacing: -0.02em; line-height: 0.98; font-size: clamp(2.6rem, 6.2vw, 4.75rem); margin: 0 0 1.5rem; max-width: 22ch; }
h1 .acc, .h1 .acc { font-size: 1.06em; font-weight: 700; position: relative; top: -0.07em; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
.page-head .label { margin-bottom: 1.25rem; }
.page-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-head .sub { max-width: 44rem; }
h2 { display: flex; align-items: center; gap: 0.75rem; font-family: var(--accent); font-style: italic; font-weight: 700; color: var(--red); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0 0 1.5rem; }
h2::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--red); flex: 0 0 auto; margin-top: 0.1em; }
h3 { font-family: var(--sans); font-weight: 900; font-size: 1.1rem; line-height: 1.3; margin: 0 0 0.35rem; }
.sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-family: var(--sans); font-size: 0.9rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button, .button2 { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--sans); font-weight: 700; font-size: 0.98rem; line-height: 1; min-height: 2.75rem; padding: 0.8rem 1.25rem; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.button { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.button:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.button2 { background: transparent; color: var(--fg); border-color: var(--fg); }
.button2:hover { border-color: var(--red); color: var(--red); }
.button .ic, .button2 .ic { width: 1.05rem; height: 1.05rem; }

/* Top band */
.band { position: fixed; top: 0; left: 0; right: 0; height: var(--band); z-index: 50; pointer-events: none; background: var(--bg); }
.band .line { position: absolute; inset: 0; background: var(--red); opacity: 0.3; }
.band .fill { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left center; }

/* Header */
.bar { position: sticky; top: calc(var(--band) + env(safe-area-inset-top, 0px)); z-index: 40; background: var(--bar-bg); color: var(--fg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.bar .wrap { height: var(--bar-h); display: flex; align-items: center; gap: 1.75rem; transition: height var(--t) var(--ease); }
.bar.scrolled .wrap { height: var(--bar-h-small); }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand:hover { color: inherit; }
.mark { width: 5rem; height: 5rem; flex: 0 0 auto; transition: width var(--t) var(--ease), height var(--t) var(--ease); }
.bar.scrolled .mark { width: 3.4rem; height: 3.4rem; }
.brand span { font-family: var(--sans); font-weight: 900; font-size: 1.45rem; line-height: 0.98; letter-spacing: -0.01em; }
.brand span b { display: block; font-weight: 900; }
.nav { display: flex; gap: 1.6rem; }
.nav a { position: relative; font-family: var(--sans); font-weight: 600; font-size: 1.08rem; text-decoration: none; color: var(--fg); padding: 0.4rem 0; opacity: 0.8; transition: opacity var(--t-fast); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform var(--t) var(--ease); }
.nav a:hover { opacity: 1; color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }
.ctl .ic { transition: transform 450ms var(--ease); }
.ctl.turn .ic { transform: rotate(180deg); }
.controls { display: flex; align-items: center; gap: 0.25rem; }
.ctl { appearance: none; background: none; border: 0; color: var(--fg); opacity: 0.8; font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; height: 2.75rem; min-width: 2.75rem; padding: 0 0.6rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ctl:hover { opacity: 1; }
.ctl .ic { width: 1.3rem; height: 1.3rem; }
:root[data-theme="dark"] .moon { display: none; }
:root:not([data-theme="dark"]) .sun { display: none; }
.bar .button { padding: 0.7rem 1.1rem; }
.menu { display: none; }
@media (max-width: 64rem) {
  .nav, .bar .button { display: none; }
  .menu { display: inline-flex; }
  .bar .wrap { gap: 0.75rem; }
  .brand span { font-size: 1.2rem; }
  .mark { width: 3.75rem; height: 3.75rem; }
}
@media (max-width: 26rem) { .brand span { font-size: 1.1rem; } .mark, .bar.scrolled .mark { width: 3.3rem; height: 3.3rem; } }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--fg); display: none; flex-direction: column; padding: calc(var(--band) + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px); }
.drawer.open { display: flex; }
.drawer .top { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.drawer .links { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1rem 0; overflow-y: auto; }
.drawer .links a { font-family: var(--sans); font-weight: 900; font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.1; text-decoration: none; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; }
.drawer .links a[aria-current="page"] { color: var(--red); }
.drawer .links a .ic { width: 1.5rem; height: 1.5rem; color: var(--red); }
.drawer .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.95rem; word-break: break-all; }
.drawer .foot .ctl { border: 1px solid var(--rule); margin-right: 0.4rem; opacity: 1; }
.drawer .foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.drawer .foot nav a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; min-height: 2.75rem; }
.drawer .foot nav a .ic { width: 1.1rem; height: 1.1rem; color: var(--red); }
.drawer .foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.drawer .foot nav a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 600; }
.drawer .foot nav a .ic { width: 1.05rem; height: 1.05rem; color: var(--red); }

/* Sections */
section { padding: var(--section) 0; }
section.tight { padding-top: 0; }
section + section > .wrap { border-top: 1px solid var(--rule); padding-top: var(--section); }
section + section { padding-top: 0; }

/* Cover map (index) */
.cover { padding: 0 0 var(--section); }
.cover .wrap { padding-top: 0; }
.cover h2 { margin-bottom: 1.25rem; }
.mapbox { position: relative; background: var(--dark); border: 1px solid var(--rule); overflow: hidden; aspect-ratio: 1600 / 820; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mapbox.zoomed, .mapbox.in-overlay { touch-action: none; }
.mapbox.dragging { cursor: grabbing; }
.mapbox.zoomed:not(.dragging) svg.map { cursor: grab; }
.mapbox svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbox svg.map path { vector-effect: non-scaling-stroke; }
.mapbox .borders { fill: none; stroke: var(--cream); stroke-width: 0.9; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: 0; transition: opacity 200ms; pointer-events: none; }
:root[data-theme="dark"] .mapbox { border-color: #5A5146; }
:root[data-theme="dark"] .mapbox { border-color: #5A524A; background: var(--ink); }
.pin { cursor: pointer; outline: none; }
.pin .hit { fill: transparent; }
.pin .hit { fill: transparent; }
.pin .ring { fill: none; stroke: var(--red); stroke-width: 2.5; transform-origin: center; transform-box: fill-box; animation: radar 2.6s ease-out infinite; }
.pin .ring.r2 { animation-delay: 1.3s; }
.pin .glow { fill: var(--red); opacity: 0.45; }
.pin .dot { fill: var(--red); stroke: var(--cream); stroke-width: 2.5; }
.pin:hover .ring, .pin.active .ring, .pin:focus-visible .ring { stroke-width: 3; animation-duration: 1.6s; }
.pin:hover .glow, .pin.active .glow, .pin:focus-visible .glow { opacity: 0.75; }
.pin:hover .dot, .pin.active .dot, .pin:focus-visible .dot { fill: var(--cream); stroke: var(--red); stroke-width: 3.5; }
@keyframes radar { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin .ring { animation: none; opacity: 0.35; transform: scale(1.4); } }
.flag { position: absolute; width: 20rem; background: var(--cream); color: var(--ink); padding: 1rem 1.1rem 1rem; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity var(--t), transform var(--t); z-index: 2; box-shadow: 0 14px 34px rgba(0,0,0,0.4); border-top: 3px solid var(--red); }
.flag.show { opacity: 1; transform: none; pointer-events: auto; }
.flag .tp { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.55rem; }
.flag .tp::before { content: ""; width: 0.45rem; height: 0.45rem; background: var(--red); }
.flag a.t { font-family: var(--sans); font-weight: 900; font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.005em; text-decoration: none; color: var(--ink); display: block; margin-bottom: 0.65rem; }
.flag a.t:hover { color: var(--red); }
.flag .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.65rem; border-top: 1px solid #D6D0C4; font-family: var(--sans); font-size: 0.82rem; color: #6E675D; }
.flag .row .place { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag .row a { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; color: var(--red); text-decoration: none; white-space: nowrap; }
.flag .row a .ic { width: 0.9rem; height: 0.9rem; }
/* Several articles at one point */
.pin .count { font-family: var(--sans); font-weight: 900; font-size: 11px; fill: var(--cream); pointer-events: none; }
.pin:hover .count, .pin.active .count, .pin:focus-visible .count { fill: var(--red); }
:root[data-theme="dark"] .pin .count { fill: var(--cream); }
:root[data-theme="dark"] .pin:hover .count, :root[data-theme="dark"] .pin.active .count, :root[data-theme="dark"] .pin:focus-visible .count { fill: var(--red); }
.flag .item + .item { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #D6D0C4; }
:root[data-theme="dark"] .flag .item + .item { border-top-color: #3A332C; }
.flag.multi a.t { font-size: 0.98rem; margin-bottom: 0; }
.flag.multi .item .tp { margin-bottom: 0.35rem; }
.flag.multi .row { margin-top: 0.75rem; }
.flag .row .n { font-weight: 700; color: var(--red); white-space: nowrap; }
.flag .tail { position: absolute; bottom: -0.45rem; width: 0.9rem; height: 0.9rem; background: var(--cream); transform: translateX(-50%) rotate(45deg); }
.flag.below { border-top: 0; border-bottom: 3px solid var(--red); }
.flag.below .tail { bottom: auto; top: -0.45rem; }
@media (max-width: 40rem) { .mapbox:not(.in-overlay) .flag { position: static; width: auto; transform: none; box-shadow: none; } .mapbox:not(.in-overlay) .flag:not(.show) { display: none; } .mapbox:not(.in-overlay) .flag .tail { display: none; } }
.mapcap { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); padding-top: 0.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Map expand (phones) */
.map-ctl { position: absolute; right: 0.75rem; bottom: 0.75rem; display: flex; flex-direction: column; gap: 2px; z-index: 3; }
.map-ctl button { appearance: none; width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(26,22,19,0.78); color: var(--cream); border: 1px solid rgba(247,245,240,0.15); cursor: pointer; padding: 0; transition: background-color var(--t-fast), color var(--t-fast); }
.map-ctl button:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.map-ctl button[hidden] { display: none; }
.map-ctl .ic { width: 1.1rem; height: 1.1rem; }
@media (max-width: 40rem) { .mapbox:not(.in-overlay) .map-ctl .map-zin, .mapbox:not(.in-overlay) .map-ctl .map-zout, .mapbox:not(.in-overlay) .map-ctl .map-reset { display: none; } .mapbox:not(.in-overlay) .map-ctl { right: 0.5rem; bottom: 0.5rem; } }
.map-overlay .mapbox .map-expand { display: none; }
.map-overlay { position: fixed; inset: 0; z-index: 48; background: var(--dark); display: none; flex-direction: column; padding-top: calc(var(--band) + env(safe-area-inset-top, 0px)); }
.map-overlay.open { display: flex; }
.map-overlay .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem var(--gutter); color: var(--cream); font-family: var(--sans); font-weight: 700; border-bottom: 1px solid #3A332C; }
.map-overlay .top .hint { font-weight: 600; font-size: 0.85rem; color: #A69D8D; margin-left: 0.6rem; }
.map-overlay .top .ctl { color: var(--cream); opacity: 1; }
@media (max-width: 40rem) { .map-overlay .stage .mapbox .flag { width: 17rem; } }
.map-overlay .stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.map-overlay .stage .mapbox { width: 100%; height: 100%; aspect-ratio: auto; max-width: none; border: 0; margin: 0; }
.map-overlay .stage .mapbox .flag { position: absolute; width: 20rem; max-width: 80vw; box-shadow: 0 14px 34px rgba(0,0,0,0.6); }
.map-overlay .stage .mapbox .flag .tail { display: block; }

/* Dark mode: stealth popouts and pins */
:root[data-theme="dark"] .flag { background: var(--ink); color: var(--cream); box-shadow: 0 14px 34px rgba(0,0,0,0.6); border-top-color: var(--red); outline: 1px solid rgba(247,245,240,0.08); }
:root[data-theme="dark"] .flag a.t { color: var(--cream); }
:root[data-theme="dark"] .flag a.t:hover { color: var(--red); }
:root[data-theme="dark"] .flag .row { border-top-color: #3A332C; color: #A69D8D; }
:root[data-theme="dark"] .flag .tail { background: var(--ink); }
:root[data-theme="dark"] .flag.below .tail { background: var(--red); }
:root[data-theme="dark"] .pin .dot { stroke: var(--ink); }
:root[data-theme="dark"] .pin:hover .dot, :root[data-theme="dark"] .pin.active .dot, :root[data-theme="dark"] .pin:focus-visible .dot { fill: var(--ink); stroke: var(--red); }

/* Hero text under the map */
.hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.hero .label { margin-bottom: 1.75rem; }
.hero .sub { margin-top: 0.25rem; }

/* Grids */
.grid { display: grid; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.grid > * { background: var(--bg); padding: 1.6rem 1.5rem; transition: background-color var(--t); }
.grid > *:hover { background: var(--card); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.step .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; color: var(--red); }
.step .k { font-family: var(--sans); font-weight: 900; font-size: 0.85rem; letter-spacing: 0.1em; }
.step .ic, .path .ic { width: 1.5rem; height: 1.5rem; color: var(--red); }
.path .ic { margin-bottom: 1rem; }
.intro { max-width: 40rem; margin-bottom: 2.5rem; }
.intro .drop { font-family: var(--accent); font-style: italic; font-weight: 700; color: var(--red); font-size: 3.6em; line-height: 0.78; float: left; padding: 0.1em 0.14em 0 0; }

/* Articles page */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.listbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.listbar .chip { padding: 0.35rem 0.7rem; min-height: 2.1rem; font-size: 0.85rem; }
.listbar .chip .ic { width: 0.95rem; height: 0.95rem; }
.chip { appearance: none; background: transparent; border: 1px solid var(--rule); color: var(--fg); font-family: var(--sans); font-weight: 700; font-size: 0.9rem; padding: 0.5rem 0.9rem; min-height: 2.5rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.chip .n { font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: var(--gold); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.articles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.articles li { border-bottom: 1px solid var(--rule); transition: background-color var(--t); }
.articles li:hover { background: var(--card); }
.articles li[hidden] { display: none; }
.articles a.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem 2rem; padding: 1.5rem var(--gutter); margin: 0 calc(-1 * var(--gutter)); text-decoration: none; color: inherit; }
.articles a.row:hover { color: inherit; }
@media (min-width: 40rem) { .articles a.row { grid-template-columns: 9.5rem minmax(0, 1fr) auto; align-items: start; } }
.articles .meta { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; color: var(--red); letter-spacing: 0.02em; padding-top: 0.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.articles .meta .pl { font-weight: 600; color: var(--muted); letter-spacing: 0; }
@media (max-width: 40rem) { .articles .meta { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: center; } }
.articles .meta .label { font-size: 0.7rem; }
.articles .meta .pl { font-weight: 600; color: var(--muted); font-size: 0.82rem; letter-spacing: 0; }
.articles h3 { font-size: 1.3rem; transition: color var(--t-fast); }
.articles li:hover h3 { color: var(--red); }
.articles .by { margin-top: 0.4rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
@media (max-width: 40rem) { .articles .meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; } }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.sort { appearance: none; background: none; border: 0; color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0; }
.sort:hover { color: var(--red); }
.sort .ic { width: 1rem; height: 1rem; }
.articles .go { color: var(--muted); padding-top: 0.3rem; display: none; }
@media (min-width: 40rem) { .articles .go { display: block; } }
.articles li:hover .go { color: var(--red); }
.none { display: none; padding: 2rem 0; color: var(--muted); }
.articles:has(li:not([hidden])) + .none { display: none; }

/* Team */
.person .photo { aspect-ratio: 4 / 5; background: var(--slot); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; position: relative; overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person .photo .init { font-family: var(--sans); font-weight: 900; font-size: 2.6rem; letter-spacing: -0.02em; color: var(--muted); opacity: 0.7; }
.person .photo .li { position: absolute; right: 0.75rem; bottom: 0.75rem; width: 2.5rem; height: 2.5rem; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity var(--t), transform var(--t); }
.person:hover .photo .li, .person:focus-within .photo .li { opacity: 1; transform: none; }
.person .photo .li:hover { background: var(--red); color: var(--white); }
.person .head { margin-bottom: 0.5rem; min-height: 2.6em; align-items: flex-start; line-height: 1.3; }
.person .head::before { margin-top: 0.3em; }
.person .name { font-family: var(--sans); font-weight: 900; font-size: 1.15rem; margin-bottom: 0.15rem; }
.person .role { color: var(--muted); }
@media (hover: none) { .person .photo .li { opacity: 1; transform: none; } }
@media (max-width: 40rem) {
  .person { display: grid; grid-template-columns: 7rem minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 1.1rem; align-content: start; }
  .person .photo { grid-row: 1 / 4; aspect-ratio: 1 / 1; margin: 0; }
  .person .photo .init { font-size: 1.8rem; }
  .person .photo .li { width: 2.1rem; height: 2.1rem; right: 0.4rem; bottom: 0.4rem; }
  .person .head { min-height: 0; margin-bottom: 0.3rem; }
}
@media (max-width: 40rem) {
  .person { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 1.1rem; align-items: start; }
  .person .photo { aspect-ratio: 1 / 1; grid-row: 1 / span 3; margin-bottom: 0; }
  .person .head { min-height: 0; margin-bottom: 0.3rem; }
  .person .photo .li { width: 2.1rem; height: 2.1rem; right: 0.5rem; bottom: 0.5rem; }
}
@media (hover: none) { .person .photo .li { opacity: 1; transform: none; } }

/* Events */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.events li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) { .events li { grid-template-columns: 9.5rem minmax(0, 1fr) auto; align-items: start; } }
.events .date { font-family: var(--sans); font-weight: 900; color: var(--red); line-height: 1.1; }
.events .date b { display: block; font-size: 2rem; letter-spacing: -0.02em; }
.events .where { color: var(--muted); display: flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; font-family: var(--sans); font-size: 0.95rem; }
.empty { border: 1px dashed var(--rule); padding: 2rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; max-width: 46rem; }
.empty .ic { color: var(--red); width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; }
.empty p + p { margin-top: 0.4rem; }

/* Partners marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.5rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 4rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .item { display: flex; align-items: center; gap: 1rem; font-family: var(--sans); font-weight: 900; font-size: 1.3rem; white-space: nowrap; color: var(--fg); opacity: 0.85; }
.marquee .item img { height: 2.75rem; width: auto; }
.marquee .item .sq { width: 0.6rem; height: 0.6rem; background: var(--red); }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } .marquee { mask-image: none; -webkit-mask-image: none; } }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.75rem 1.15rem 0; position: relative; font-family: var(--sans); font-weight: 700; font-size: 1.1rem; min-height: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.65rem; height: 0.65rem; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 1.25rem; max-width: 42rem; }

/* Conduct */
.conduct { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; max-width: 60rem; }
.conduct .ic { color: var(--red); width: 1.5rem; height: 1.5rem; margin-bottom: 0.9rem; }

/* Contact */
.contact.page { min-height: calc(100vh - var(--bar-h) - 10rem); display: flex; align-items: center; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; }
@media (min-width: 58rem) { .contact .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.cta-block { padding: 1.5rem; margin: -1.5rem; transition: background-color 650ms var(--ease), color 650ms var(--ease); }
.cta-block .h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.cta-block .actions { margin-top: 1.5rem; }
.cta-block .button, .cta-block .button2, .cta-block .acc, .cta-block .sub { transition: background-color 650ms var(--ease), color 650ms var(--ease), border-color 650ms var(--ease); }
.contact.flash .cta-block { background: var(--red); color: var(--white); }
.contact.flash .cta-block .acc { color: var(--gold); }
.contact.flash .cta-block .button { background: var(--white); color: var(--red); border-color: var(--white); }
.contact.flash .cta-block .button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.contact.flash .cta-block .button2 { color: var(--white); border-color: var(--white); }
.contact.flash .cta-block .button2:hover { background: var(--white); color: var(--red); }
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.25rem 2rem; align-self: end; }
.rows .l { display: flex; align-items: center; gap: 0.45rem; font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.rows .l .ic { width: 1rem; height: 1rem; color: var(--red); }

/* Legal */
.legal { max-width: 48rem; }
.impressum { border-top: 2px solid var(--fg); padding-top: 1rem; margin-top: 2.5rem; max-width: 48rem; }
.impressum h2 { font-size: 1.6rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.legal p + p { margin-top: 0.5rem; }

/* LinkedIn hover */
.button2.li-btn:hover, .contact.flash .cta-block .button2.li-btn:hover { background: #0A66C2; border-color: #0A66C2; color: var(--white); }
.foot a.li-link:hover, .rows a.li-link:hover, .drawer .foot nav a.li-link:hover, .flag .row a:hover { color: #0A66C2; }
.person .photo .li:hover { background: #0A66C2; color: var(--white); }

/* Page wipe */
.wipe { position: fixed; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left center; z-index: 70; pointer-events: none; }
.wipe-label { position: fixed; inset: 0; z-index: 71; display: flex; align-items: center; justify-content: center; gap: 0.8rem; pointer-events: none; opacity: 0; transition: opacity 250ms var(--ease); font-family: var(--sans); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.01em; color: var(--white); }
.wipe-label .ic { width: 1.6em; height: 1.6em; }
.wipe-label.show { opacity: 1; }
.wipe.in { animation: wipe-in 480ms var(--ease) forwards; }
.wipe.out { transform: scaleX(1); transform-origin: right center; animation: wipe-out 520ms var(--ease) forwards; }
@keyframes wipe-in { to { transform: scaleX(1); } }
@keyframes wipe-out { to { transform: scaleX(0); } }
.mapbox.pulse .pin .ring { animation-duration: 1.2s; stroke-width: 3; }
.mapbox.pulse .pin .glow { opacity: 0.8; }

/* Toast, back-to-top */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 700; font-size: 0.95rem; padding: 0.7rem 1.1rem; display: flex; align-items: center; gap: 0.5rem; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t); z-index: 55; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { width: 1.05rem; height: 1.05rem; color: var(--gold); }
.totop { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 2.9rem; height: 2.9rem; background: var(--ink); color: var(--cream); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--t), transform var(--t), background-color var(--t-fast); z-index: 35; }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--red); color: var(--white); }
:root[data-theme="dark"] .totop, :root[data-theme="dark"] .toast { background: var(--cream); color: var(--ink); }

/* Motion */
html.anim [data-reveal] { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
html.anim [data-hero] { opacity: 0; transform: translateY(14px); }

/* 404 */
.nf { min-height: 60vh; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; align-items: center; padding: var(--section) 0; }
@media (min-width: 58rem) { .nf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.nf .coords { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--muted); margin-top: 2rem; }
.nf .mapbox img { width: 100%; height: auto; opacity: 0.55; padding: 4%; }
.nf .pinmark { position: absolute; left: 57.7%; top: 72.2%; width: 0.75rem; height: 0.75rem; background: var(--red); box-shadow: 0 0 0 0.5rem rgba(177, 54, 52, 0.25); }
.nf .pinmark::after { content: "404"; position: absolute; left: 1.4rem; top: -0.35rem; font-family: var(--sans); font-weight: 900; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--cream); white-space: nowrap; }

/* Footer */
.foot { font-family: var(--sans); font-size: 0.9rem; border-top: 1px solid var(--rule); }
.foot .wrap { min-height: 4.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.foot a .ic { width: 1rem; height: 1rem; }
.foot a:hover { color: var(--red); }
.foot .copy { color: var(--muted); }

/* Print */
@media print {
  .band, .bar .controls, .bar .button, .drawer, .totop, .toast, .wipe, .actions, .marquee, .filters, .listbar, .mapbox .flag, .skip { display: none !important; }
  .bar { position: static; background: none; border-bottom: 1px solid #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
  .legal a::after, .rows a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .articles a.row::after { content: " (" attr(href) ")"; font-family: var(--sans); font-size: 0.8rem; color: #555; grid-column: 1 / -1; }
  html.anim [data-reveal], html.anim [data-hero] { opacity: 1 !important; transform: none !important; }
  .grid > *, .articles li, .cta-block { break-inside: avoid; }
  .contact.flash .cta-block { background: none; color: #000; }
  section + section > .wrap { padding-top: 1.5rem; }
  section { padding: 1.5rem 0; }
}
