/* ──────────────────────────────────────────────────────────────
   MontaSol — site styles
   Two visual systems (.style-editorial / .style-swiss) drive almost
   everything from CSS variables. Palettes set --paper / --ink / --accent.
   ─────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ───────────────────────── palettes ───────────────────────── */
:root {
  --paper: #F2EFE8;
  --paper-deep: #E9E5DB;
  --ink: #1A1815;
  --ink-soft: #5C574E;
  --rule: #C8C2B4;
  --accent: #B85C38;
  --accent-soft: #B85C38;
  --accent-2: #1F8A7A;
  --s1: #BC4A2E; --s2: #E0A330; --s3: #1F8A7A; --s4: #27406B; --s5: #B5316B;

  /* how strongly the palette tints section backgrounds / hero (set by intensity tweak) */
  --tint-bg: 8%;
  --hero-tint: 15%;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* color intensity — how much the palette bleeds into the whole page */
body.intensity-quiet    { --tint-bg: 4%;  --hero-tint: 9%; }
body.intensity-balanced { --tint-bg: 8%;  --hero-tint: 15%; }
body.intensity-vivid    { --tint-bg: 16%; --hero-tint: 24%; }

/* ── Andean palettes ──────────────────────────────────────────
   Drawn from Andean weaving: clay/terracotta, ochre gold, teal,
   indigo, cochineal magenta — on natural wool cream.
   "clay" is warm & calm; "altiplano" cooler/teal-led;
   "textil" leans into the vivid magenta+gold for more color.        */
body.palette-clay {
  --paper: #F4EDDD;
  --paper-deep: #ECE2CD;
  --ink: #2A1D16;
  --ink-soft: #6B5A4A;
  --rule: #D9CCB4;
  --accent: #BC4A2E;
  --accent-2: #1F8A7A;
  --s1: #BC4A2E; --s2: #E0A330; --s3: #1F8A7A; --s4: #27406B; --s5: #B5316B;
}
body.palette-altiplano {
  --paper: #EFEFE5;
  --paper-deep: #E3E4D6;
  --ink: #17211F;
  --ink-soft: #586460;
  --rule: #C8CDC0;
  --accent: #1F8A7A;
  --accent-2: #D98A29;
  --s1: #1F8A7A; --s2: #27406B; --s3: #D98A29; --s4: #B5316B; --s5: #4C9F38;
}
body.palette-textil {
  --paper: #F6EEDE;
  --paper-deep: #EEE3CD;
  --ink: #2A1620;
  --ink-soft: #6E5460;
  --rule: #DCC9BC;
  --accent: #B5316B;
  --accent-2: #E0A330;
  --s1: #B5316B; --s2: #E0A330; --s3: #1F8A7A; --s4: #C0492F; --s5: #27406B;
}
/* cochineal — the deep cochinilla crimson + gold; warm and saturated */
body.palette-cochineal {
  --paper: #F5ECDC;
  --paper-deep: #ECDFC9;
  --ink: #2A1418;
  --ink-soft: #6C5048;
  --rule: #DBC8B8;
  --accent: #A4133C;
  --accent-2: #E0A330;
  --s1: #A4133C; --s2: #E0A330; --s3: #1F8A7A; --s4: #27406B; --s5: #D96A2B;
}
/* lago — Lake Titicaca turquoise on warm sand */
body.palette-lago {
  --paper: #EFEFE3;
  --paper-deep: #E2E5D6;
  --ink: #142023;
  --ink-soft: #54625F;
  --rule: #C6CDBF;
  --accent: #137C92;
  --accent-2: #D98A29;
  --s1: #137C92; --s2: #E0A330; --s3: #C0492F; --s4: #27406B; --s5: #4C9F38;
}
/* inti — the sun god: amber gold + deep indigo */
body.palette-inti {
  --paper: #F4EEDB;
  --paper-deep: #ECE3C8;
  --ink: #20211C;
  --ink-soft: #5F5C4C;
  --rule: #D7CDAE;
  --accent: #B5781A;
  --accent-2: #2E3A8C;
  --s1: #B5781A; --s2: #2E3A8C; --s3: #C0492F; --s4: #1F8A7A; --s5: #B5316B;
}

/* ──────────────────────── EDITORIAL ───────────────────────── */
body.style-editorial {
  --font-head: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-body: 19px;
  --lh-body: 1.55;
  --fs-h1: clamp(48px, 7vw, 96px);
  --fs-h2: clamp(32px, 4vw, 48px);
  --fs-h3: 26px;
  --fs-small: 14px;
  --tracking: 0;
  --section-pad: clamp(48px, 8vw, 112px);
}

body.style-editorial h1, body.style-editorial h2, body.style-editorial h3 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
body.style-editorial h2 { line-height: 1.1; }
body.style-editorial h3 { line-height: 1.2; font-weight: 600; }

body.style-editorial .eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0;
}

body.style-editorial .label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}

body.style-editorial .rule {
  border-top: 1px solid var(--rule);
}

/* ────────────────────────── SWISS ─────────────────────────── */
body.style-swiss {
  --font-head: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-body: 15px;
  --lh-body: 1.5;
  --fs-h1: clamp(40px, 5.5vw, 72px);
  --fs-h2: clamp(26px, 3vw, 36px);
  --fs-h3: 18px;
  --fs-small: 12px;
  --tracking: 0;
  --section-pad: clamp(40px, 6vw, 80px);
}

body.style-swiss h1, body.style-swiss h2, body.style-swiss h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
body.style-swiss h1 { font-weight: 500; letter-spacing: -0.035em; }
body.style-swiss h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0; }

body.style-swiss .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
body.style-swiss .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
body.style-swiss .rule { border-top: 1px solid var(--ink); }

/* ─────────────── density ─────────────── */
body.density-airy   { --section-pad: clamp(64px, 10vw, 140px); }
body.density-compact { --section-pad: clamp(28px, 4vw, 56px); }

/* ─────────────── layout primitives ─────────────── */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-tight { padding-top: calc(var(--section-pad) * 0.55); padding-bottom: calc(var(--section-pad) * 0.55); }

/* ─────────────── nav ─────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
}
/* backdrop-filter lives on ::before so it doesn't create a containing block
   for position:fixed children (the mobile menu). */
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 10px;
}
body.style-swiss .brand { font-weight: 600; letter-spacing: -0.04em; font-size: 18px; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
body.style-editorial .brand-sub { font-family: var(--font-body); font-style: italic; text-transform: none; font-size: 13px; letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-link {
  font-size: var(--fs-small);
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
  cursor: pointer;
}
body.style-swiss .nav-link { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
body.style-editorial .nav-link { font-size: 16px; font-style: italic; }
.nav-link:hover { border-color: var(--accent); color: var(--accent); }
.nav-link.active { border-color: var(--accent); color: var(--accent); }

.lang-switch { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.lang-switch button { padding: 4px 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.lang-switch button.on { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ─────────────── buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: var(--fs-small);
  transition: background 120ms ease, color 120ms ease;
}
body.style-swiss .btn { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; padding: 12px 18px; font-size: 11px; }
body.style-editorial .btn { font-style: italic; font-size: 16px; padding: 12px 22px; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn.accent:hover { background: var(--paper); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ─────────────── current banner ─────────────── */
.banner {
  background: var(--ink);
  color: var(--paper);
  padding: 14px var(--gutter);
}
.banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: var(--fs-small);
}
.banner .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.banner-date { font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; opacity: 0.7; }
.banner-what { font-weight: 500; }
.banner-where { opacity: 0.75; }
.banner-link { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ─────────────── textile band (brand motif) ─────────────── */
/* A thin Andean-weaving stripe — MontaSol's identity hook until a logo exists. */
.textile-band { display: flex; width: 100%; height: 7px; }
.textile-band > i {
  flex: 1 1 0;
  display: block;
}
.textile-band > i:nth-child(1) { background: var(--s1); }
.textile-band > i:nth-child(2) { background: var(--s2); }
.textile-band > i:nth-child(3) { background: var(--s3); }
.textile-band > i:nth-child(4) { background: var(--s4); }
.textile-band > i:nth-child(5) { background: var(--s5); }
.textile-band > i:nth-child(6) { background: var(--s2); }
.textile-band > i:nth-child(7) { background: var(--s1); }
.textile-band.thin { height: 4px; }

/* ─────────────── hero ─────────────── */
.hero-band {
  background:
    radial-gradient(120% 140% at 88% -10%, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent 55%),
    color-mix(in oklab, var(--accent) var(--hero-tint), var(--paper));
  position: relative;
  overflow: hidden;
}
.hero { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(48px, 7vw, 104px); position: relative; }
.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 24px;
}
body.style-editorial .hero-kicker { font-family: var(--font-body); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 17px; }
.hero h1 {
  font-size: var(--fs-h1);
  max-width: 15ch;
  text-wrap: pretty;
}
.hero h1 em { font-style: italic; color: var(--accent); }
body.style-swiss .hero h1 { max-width: 18ch; }
body.style-swiss .hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
  margin-top: 28px;
  font-size: clamp(19px, 2vw, 24px);
  max-width: 42ch;
  color: var(--ink);
  text-wrap: pretty;
}
body.style-editorial .hero .sub { font-style: italic; }
/* a quiet sun, low on the horizon — “dort, wo sonst nur die Sonne hinkommt” */
.hero-sun {
  position: absolute;
  right: clamp(-80px, -2vw, -40px);
  bottom: -46%;
  width: clamp(280px, 38vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent-2) 40%, var(--paper)), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-meta {
  margin-top: 40px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}

/* ─────────────── about block ─────────────── */
.two-col { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 820px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

.lede { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; text-wrap: pretty; }
body.style-editorial .lede { font-style: italic; }

.body-text p { margin-bottom: 1em; max-width: 64ch; }
.body-text p:last-child { margin-bottom: 0; }

/* ─────────────── grid card ─────────────── */
.proj-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 64px); }
@media (min-width: 820px) { .proj-grid { grid-template-columns: 1fr 1fr; } }

.proj-card { cursor: pointer; display: flex; flex-direction: column; gap: 20px; }
.proj-card:hover .proj-cover { filter: brightness(0.96); }
.proj-cover {
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: filter 200ms ease;
}
body.style-swiss .proj-cover { border-color: var(--ink); }

/* placeholder striping */
.placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 14px,
      color-mix(in oklab, var(--ink) 6%, transparent) 14px,
      color-mix(in oklab, var(--ink) 6%, transparent) 15px
    );
  display: flex; align-items: flex-end; padding: 16px;
}
.placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--rule);
}

.proj-meta {
  display: flex; gap: 14px; align-items: baseline; color: var(--ink-soft);
  font-size: var(--fs-small);
}
body.style-swiss .proj-meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
body.style-editorial .proj-meta { font-style: italic; }

.proj-title { font-size: var(--fs-h3); margin-top: 4px; }
.proj-sub { color: var(--ink-soft); max-width: 52ch; }

/* ─────────────── project detail ─────────────── */
.detail-hero { padding-top: clamp(32px, 5vw, 64px); }
.detail-hero h1 { font-size: clamp(36px, 5vw, 64px); max-width: 22ch; }
.detail-hero .sub { font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-soft); max-width: 60ch; margin-top: 18px; }
body.style-editorial .detail-hero .sub { font-style: italic; }

.detail-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 32px;
}
@media (min-width: 820px) { .detail-meta { grid-template-columns: repeat(4, 1fr); } }
.detail-meta dt {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 6px;
}
body.style-editorial .detail-meta dt { font-family: var(--font-body); font-style: italic; text-transform: none; font-size: 14px; letter-spacing: 0; color: var(--accent); }
.detail-meta dt { color: var(--accent); }
.detail-meta dd { font-size: var(--fs-body); }

.detail-cover {
  aspect-ratio: 16 / 7;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}

.story-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 820px) { .story-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

.story-prose p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; margin-bottom: 1.2em; max-width: 60ch; }
body.style-editorial .story-prose p:first-of-type::first-letter {
  font-family: var(--font-head);
  float: left;
  font-size: 4em;
  line-height: 0.85;
  padding: 0.04em 0.08em 0 0;
  color: var(--accent);
}

.goals-list {
  list-style: none;
  counter-reset: g;
  display: flex; flex-direction: column;
}
.goals-list li {
  counter-increment: g;
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.4;
}
.goals-list li::before {
  content: counter(g, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 5px;
}

/* ─────────────── SDG badges ─────────────── */
.sdg-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sdg {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
}
.sdg-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sdg-name { font-size: 13px; }
body.style-swiss .sdg-name { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
body.style-editorial .sdg-name { font-style: italic; font-size: 15px; }

/* ─────────────── partners wall ─────────────── */
.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule);
  border-bottom: none;
}
@media (min-width: 720px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.partner {
  aspect-ratio: 5 / 2;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  text-align: center;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 18px,
      color-mix(in oklab, var(--ink) 4%, transparent) 18px,
      color-mix(in oklab, var(--ink) 4%, transparent) 19px
    );
}
.partner:hover .partner-name { border-color: var(--accent); color: var(--accent); }
.partner-name {
  background: var(--paper);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--rule);
}
body.style-swiss .partner-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
body.style-editorial .partner-name { font-style: italic; font-size: 15px; }

.thank-you {
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 50ch;
  color: var(--ink);
  text-wrap: pretty;
}
body.style-editorial .thank-you { font-style: italic; }

/* ─────────────── news list ─────────────── */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .news-item { grid-template-columns: 140px 1fr; gap: 32px; }
}
.news-date {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}
.news-title { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 8px; }
.news-body { max-width: 60ch; color: var(--ink); }

/* ─────────────── donate ─────────────── */
.donate-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 820px) { .donate-grid { grid-template-columns: 1.1fr 1fr; } }

.bank-card {
  border: 1px solid var(--ink);
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper);
}
.bank-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.bank-row:last-child { border-bottom: none; }
.bank-row dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.bank-row dd { font-size: 16px; word-break: break-all; }
.bank-row dd.mono { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em; }
.copy-btn {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 1px solid var(--rule);
  padding: 6px 10px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 120ms;
}
.copy-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy-btn.copied { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.donate-note {
  background: var(--paper-deep);
  padding: 24px;
  font-size: 15px;
  border-left: 3px solid var(--accent);
}
body.style-editorial .donate-note { font-style: italic; }

/* ─────────────── upcoming events ─────────────── */
.events {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.event {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.event-date {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
.event-what { font-size: clamp(18px, 1.5vw, 22px); }
.event-where { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
body.style-editorial .event-where { font-style: italic; }

/* ─────────────── footer ─────────────── */
.foot {
  margin-top: var(--section-pad);
  padding: 0 0 calc(36px + env(safe-area-inset-bottom));
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.foot-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.foot-brand { color: var(--ink); }
body.style-editorial .foot-brand { font-style: italic; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { cursor: pointer; }
.foot-links a:hover { color: var(--accent); }

/* full-bleed tinted section bands — carry the palette across the page */
.band { width: 100%; }
.band.tinted { background: color-mix(in oklab, var(--accent) var(--tint-bg), var(--paper)); }

/* section dividers: textile-stripe variant (set by the “Section dividers” tweak) */
body.dividers-textile .rule {
  border-top: none;
  height: 4px;
  background: linear-gradient(90deg,
    var(--s1) 0 14.28%, var(--s2) 14.28% 28.57%, var(--s3) 28.57% 42.85%,
    var(--s4) 42.85% 57.14%, var(--s5) 57.14% 71.43%,
    var(--s2) 71.43% 85.71%, var(--s1) 85.71% 100%);
}
body.dividers-textile .eyebrow-row::after {
  border: none;
  height: 3px;
  background: linear-gradient(90deg,
    var(--s1) 0 20%, var(--s2) 20% 40%, var(--s3) 40% 60%, var(--s4) 60% 80%, var(--s5) 80% 100%);
}

/* ─────────────── helpers ─────────────── */
.eyebrow-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.eyebrow-row::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--rule);
}
body.style-swiss .eyebrow-row::after { border-color: var(--ink); }

.h2-block { margin-bottom: clamp(28px, 4vw, 48px); }
.h2-block h2 { font-size: var(--fs-h2); max-width: 24ch; text-wrap: pretty; }
.h2-block .sub { color: var(--ink-soft); margin-top: 12px; max-width: 52ch; }
body.style-editorial .h2-block .sub { font-style: italic; }

.subdued { color: var(--ink-soft); }
.center { text-align: center; }

/* tweak panel needs space when present */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }

/* Reveal with final font metrics, then run the existing page fade. The head
   script removes this class after fonts settle, or fails open after 1.5 seconds. */
.intro-pending .app { visibility: hidden; }
.intro-pending .page-fade { animation-play-state: paused; }

/* fade between pages */
.page-fade { animation: fadeUp 320ms ease backwards; }
@media (prefers-reduced-motion: reduce) { .page-fade { animation: none; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────── status pill (project state signal) ─────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  white-space: nowrap;
}
.status-pill.status-active {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--rule));
}
.status-pill.status-completed {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.status-check { font-size: 11px; line-height: 1; }
body.style-editorial .status-pill { font-family: var(--font-body); font-style: italic; text-transform: none; font-size: 14px; letter-spacing: 0; }

/* status overlay on project cover */
.proj-cover { position: relative; }
.proj-cover-status { position: absolute; top: 12px; left: 12px; z-index: 2; }
.status-card-completed .proj-cover { filter: saturate(0.92); }

/* status row on detail / news hero */
.detail-status {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.detail-status-loc, .news-detail-date {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft);
}
.news-detail-date { color: var(--accent); font-size: 12px; }
body.style-editorial .detail-status-loc { font-family: var(--font-body); font-style: italic; text-transform: none; font-size: 16px; letter-spacing: 0; }

/* ─────────────── photo gallery / “so far” strip ─────────────── */
.gallery {
  display: grid; gap: clamp(14px, 2vw, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gallery-full { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .gallery-sofar { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery-img {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  overflow: hidden;
}
body.style-swiss .gallery-img { border-color: var(--ink); }
.gallery-cap { font-size: 13px; color: var(--ink-soft); text-wrap: pretty; }
body.style-swiss .gallery-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; line-height: 1.4; }
body.style-editorial .gallery-cap { font-style: italic; font-size: 15px; }

/* ─────────────── news list: clickable rows ─────────────── */
.news-item--link { cursor: pointer; }
.news-item--link:hover .news-title,
.news-item--link:hover .news-more,
.news-item--link:focus-visible .news-title { color: var(--accent); }
.news-item--link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.news-more {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft);
  transition: color 120ms ease;
}
body.style-editorial .news-more { font-family: var(--font-body); font-style: italic; text-transform: none; font-size: 15px; letter-spacing: 0; }
.news-photo-tag {
  margin-left: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-soft);
  white-space: nowrap;
}
body.style-editorial .news-title { display: inline; }

/* ─────────────── news detail ─────────────── */
.news-article { max-width: 72ch; }
.news-next {
  display: flex; flex-direction: column; gap: 6px; cursor: pointer;
}
.news-next-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink); text-wrap: pretty;
  transition: color 140ms ease;
}
body.style-swiss .news-next-title { font-weight: 600; letter-spacing: -0.02em; }
body.style-editorial .news-next-title { font-style: italic; font-weight: 500; }
.news-next:hover .news-next-title { color: var(--accent); }

/* ─────────────────────────────────────────────────────────────
   MOBILE NAVIGATION
   ───────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 240ms ease, opacity 160ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  display: none;
  flex-direction: column;
  animation: fadeIn 200ms ease;
}
body.menu-open .mobile-menu {
  display: flex;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.mobile-menu-close {
  width: 44px; height: 44px; margin-right: -10px;
  font-size: 26px; line-height: 1; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.mobile-links {
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 0;
  flex: 1;
}
.mobile-link {
  display: flex; align-items: baseline; gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-head);
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
}
body.style-swiss .mobile-link { font-weight: 600; }
body.style-editorial .mobile-link { font-style: italic; font-weight: 500; }
.mobile-link .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.mobile-link.active { color: var(--accent); }
.mobile-link.donate { color: var(--accent); }
.mobile-menu-foot {
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

/* ─────────────────────────────────────────────────────────────
   SMALL-SCREEN REFINEMENTS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .banner-inner { gap: 8px 14px; }
  .banner-link { margin-left: 0; }
  .banner-where { width: 100%; }

  .hero-meta { gap: 12px; }
  .hero-meta .btn { flex: 1 1 auto; justify-content: center; }

  .event { grid-template-columns: 72px 1fr; }
  .event > .label { display: none; }

  .bank-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .bank-row dt { grid-column: 1 / -1; }

  .detail-meta { grid-template-columns: 1fr 1fr; }

  .foot-inner { flex-direction: column; }
}

