/* DataLimits - site styles
   Theme: auto (prefers-color-scheme). One accent: DataLimits brand blue.
   Shape rule: every surface, image, input and button uses --r (10px). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #fdfdfe;
  --surface-2: #eef1f5;
  --ink: #0f1b2d;
  --ink-2: #33405a;
  --muted: #56627a;
  --line: #dde2ea;
  --accent: #0b4f86;
  --accent-hover: #083f6c;
  --accent-ink: #f7f9fc;
  --accent-soft: #e5eef7;
  --accent-text: #0b4f86;
  --shadow: 0 1px 2px rgb(15 35 70 / .06), 0 8px 24px -12px rgb(15 35 70 / .14);
  --r: 10px;
  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-header: 30;
  --z-menu: 40;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111a;
    --surface: #111924;
    --surface-2: #16202e;
    --ink: #e7ecf2;
    --ink-2: #c3ccd8;
    --muted: #9aa6b6;
    --line: #223043;
    --accent: #7cb7da;
    --accent-hover: #9cc9e4;
    --accent-ink: #0b111a;
    --accent-soft: #132739;
    --accent-text: #8cc2e2;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
.muted { color: var(--muted); }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1.1rem;
}
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: .6rem 1rem; border-radius: var(--r); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.3rem; border-radius: var(--r);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ph { font-size: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-text);
  text-decoration: none;
}
.link-arrow .ph { transition: transform .25s var(--ease); }
.link-arrow:hover .ph { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 520; font-size: .975rem; color: var(--ink-2);
  padding: .5rem .75rem; border-radius: var(--r); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 620; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r);
  color: var(--ink-2); text-decoration: none; border: 1px solid transparent; background: transparent; cursor: pointer;
  font-size: 1.35rem;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .nav, .header-actions .btn, .header-actions .login { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg);
  display: flex; flex-direction: column; padding: 0 var(--pad) 2rem;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }
.mobile-menu .header-inner { padding: 0; }
.mobile-menu nav { display: grid; gap: .25rem; margin-top: 1rem; }
.mobile-menu nav a {
  text-decoration: none; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  padding: .65rem 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 1.5rem; width: 100%; }
.mobile-menu .login-m { margin-top: .75rem; width: 100%; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.section-head p { margin-top: 1rem; }
.surface-band { background: var(--surface); border-block: 1px solid var(--line); }

/* Hero (home) */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin: 1.4rem 0 2rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; max-height: min(600px, calc(100dvh - 190px)); object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* Vision statement */
.statement { padding-block: clamp(4rem, 9vw, 7rem); }
.statement blockquote { margin: 0; }
.statement p {
  font-size: clamp(1.6rem, 3.3vw, 2.75rem); line-height: 1.22; letter-spacing: -0.025em; font-weight: 560;
  max-width: 26ch; color: var(--ink); margin: 0; text-wrap: balance;
}
.statement p + p { color: var(--muted); margin-top: .35em; max-width: 30ch; }
.statement footer { margin-top: 2rem; display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .95rem; }
.statement footer::before { content: ""; width: 32px; height: 1px; background: var(--line); }

/* Sticky side list (mission) */
.side-list { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.side-list .sticky { position: sticky; top: 112px; }
.side-list .sticky p { margin-top: 1rem; }
.commitments { list-style: none; margin: 0; padding: 0; }
.commitments li { display: grid; grid-template-columns: 52px 1fr; gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.commitments li:first-child { border-top: 0; padding-top: 0; }
.commitments .ico {
  width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-size: 1.5rem;
}
.commitments h3 { margin-bottom: .45rem; }
.commitments p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .side-list { grid-template-columns: 1fr; } .side-list .sticky { position: static; } }

/* Topic bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; text-decoration: none; overflow: hidden; min-height: 210px;
  transition: border-color .25s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .ico { font-size: 1.6rem; color: var(--accent-text); margin-bottom: auto; padding-bottom: 1.25rem; }
.tile h3 { font-size: 1.25rem; }
.tile p { margin: 0; color: var(--muted); font-size: .975rem; max-width: 46ch; }
.tile .go {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 36px; height: 36px; border-radius: var(--r);
  display: grid; place-items: center; color: var(--ink-2); background: var(--surface-2);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.tile:hover .go { background: var(--accent); color: var(--accent-ink); transform: translate(2px, -2px); }
.tile-media { padding: 0; }
.tile-media img { width: 100%; height: 170px; object-fit: cover; border-bottom: 1px solid var(--line); }
.tile-media .tile-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.tile-media .go { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.tile-soft { background: var(--accent-soft); border-color: transparent; }
.tile-soft .go { background: var(--surface); }
.tile-solid { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.tile-solid .ico, .tile-solid p { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.tile-solid .go { background: color-mix(in srgb, var(--accent-ink) 16%, transparent); color: var(--accent-ink); }
.tile-solid:hover .go { background: var(--accent-ink); color: var(--accent); }
.s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; }
@media (max-width: 960px) { .s7, .s6, .s5, .s4 { grid-column: span 6; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .s7, .s6, .s5, .s4 { grid-column: auto; } }
.members-note {
  display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem; color: var(--muted); font-size: .95rem;
}
.members-note .ph { color: var(--accent-text); font-size: 1.2rem; margin-top: .15rem; }

/* Action flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.flow-item { position: relative; padding: 0 1.5rem 0 0; }
.flow-item .node {
  position: relative; width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); font-size: 1.4rem; z-index: 1;
}
.flow-item::before {
  content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1px; background: var(--line);
}
.flow-item:last-child::before { display: none; }
.flow-item h3 { margin: 1.25rem 0 .5rem; }
.flow-item p { margin: 0; color: var(--muted); font-size: .975rem; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 1.75rem; }
  .flow-item { display: grid; grid-template-columns: 48px 1fr; column-gap: 1.25rem; padding: 0; }
  .flow-item .node { grid-row: span 2; }
  .flow-item h3 { margin: .2rem 0 .35rem; }
  .flow-item::before { top: 48px; bottom: -1.75rem; left: 24px; right: auto; width: 1px; height: auto; }
}

/* Membership panel */
.panel {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.75rem, 5vw, 3.5rem); box-shadow: var(--shadow);
}
.panel h2 { max-width: 18ch; }
.panel .lede { margin: 1rem 0 1.75rem; }
.price { background: var(--accent-soft); border-radius: var(--r); padding: 1.75rem; }
.price .amount { font-size: clamp(2.75rem, 5vw, 3.75rem); font-weight: 680; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: .35rem; }
.price ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.price li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); font-size: .975rem; }
.price li .ph { color: var(--accent-text); margin-top: .25rem; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }

/* Link pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pair a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none;
  padding: 1.75rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, transform .35s var(--ease);
}
.pair a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.pair .t { font-size: 1.35rem; font-weight: 640; letter-spacing: -0.02em; }
.pair .d { color: var(--muted); margin-top: .35rem; font-size: .975rem; }
.pair .ph { font-size: 1.4rem; color: var(--accent-text); flex: none; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.since { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .since { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 1.25rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .ph { font-size: .8rem; }
.banner { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.banner img { width: 100%; height: clamp(150px, 20vw, 260px); object-fit: cover; border-radius: var(--r); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 1.5rem 1.5rem 0 0; }
.facts dt { font-size: .875rem; color: var(--muted); margin-bottom: .4rem; }
.facts dd { margin: 0; font-size: 1.2rem; font-weight: 620; letter-spacing: -0.015em; line-height: 1.3; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Governance split */
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gov img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
@media (max-width: 860px) { .gov { grid-template-columns: 1fr; } }
.chain { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .75rem; }
.chain li { display: flex; align-items: flex-start; gap: .85rem; }
.chain .ph { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-text); font-size: 1.2rem; }
.chain strong { display: block; font-weight: 620; }
.chain span { color: var(--muted); font-size: .975rem; }

/* Board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 920px; }
.person img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.person h3 { margin-top: 1rem; }
.person p { margin: .25rem 0 0; color: var(--muted); font-size: .975rem; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .board { grid-template-columns: 1fr; } }

/* Topic list (complaints page) */
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.topic-row {
  display: grid; grid-template-columns: 48px 1fr 24px; gap: 1.1rem; align-items: start;
  padding: 1.5rem 0; border-top: 1px solid var(--line); text-decoration: none;
}
.topic-row .ico { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 1.35rem; }
.topic-row h3 { font-size: 1.15rem; transition: color .2s; }
.topic-row p { margin: .35rem 0 0; color: var(--muted); font-size: .965rem; }
.topic-row > .ph { margin-top: .35rem; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.topic-row:hover h3 { color: var(--accent-text); }
.topic-row:hover > .ph { transform: translateX(3px); color: var(--accent-text); }
@media (max-width: 760px) { .topic-list { grid-template-columns: 1fr; } }

/* Topic page */
.topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.topic-layout .prose p { font-size: 1.125rem; line-height: 1.7; }
.callout {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; border-radius: var(--r);
  background: var(--accent-soft); color: var(--ink-2); margin-bottom: 2rem;
}
.callout .ph { font-size: 1.35rem; color: var(--accent-text); margin-top: .1rem; flex: none; }
.callout p { margin: 0; }
.callout a { color: var(--accent-text); font-weight: 600; }
.aside { position: sticky; top: 104px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.aside h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .75rem; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem 0; text-decoration: none; color: var(--ink-2); font-size: .975rem; border-top: 1px solid var(--line); }
.aside li:first-child a { border-top: 0; }
.aside li a:hover { color: var(--accent-text); }
.aside li a[aria-current="page"] { color: var(--ink); font-weight: 620; }
.topic-cta { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.pager a { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--surface); transition: border-color .2s; }
.pager a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pager small { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; }
.pager span { font-weight: 620; }
.pager .next { text-align: right; } .pager .next small { justify-content: flex-end; }
@media (max-width: 900px) { .topic-layout { grid-template-columns: 1fr; } .aside { position: static; } }

/* Contribute grid (support) */
.contrib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; list-style: none; margin: 0; padding: 0; }
.contrib li { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.contrib .ph { font-size: 1.35rem; color: var(--accent-text); flex: none; }
@media (max-width: 700px) { .contrib { grid-template-columns: 1fr; } }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.role { padding: 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.role .ph { font-size: 1.5rem; color: var(--accent-text); }
.role h3 { margin: 1rem 0 .4rem; }
.role p { margin: 0; color: var(--muted); font-size: .975rem; }
.role:first-child { background: var(--accent-soft); border-color: transparent; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }

/* Donate */
.donate { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.donate > div { padding: 1.75rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.donate h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.donate h3 .ph { color: var(--accent-text); }
.bank { margin: 1.25rem 0 0; display: grid; gap: .25rem; }
.bank div { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.bank div:first-child { border-top: 0; }
.bank dt { color: var(--muted); font-size: .9rem; }
.bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }
.copy {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--accent-text); background: transparent; border: 1px solid var(--line); border-radius: var(--r);
  padding: .3rem .6rem; cursor: pointer; min-height: 32px;
}
.copy:hover { border-color: var(--accent); }
.copy.is-done { color: var(--ink); }
@media (max-width: 860px) { .donate { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .bank div { grid-template-columns: 1fr auto; } .bank dt { grid-column: 1 / -1; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--muted) 55%, var(--line)); border-radius: var(--r);
  padding: .75rem .9rem; min-height: 48px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field .help { font-size: .875rem; color: var(--muted); }
.field .err { font-size: .875rem; color: #b42318; display: none; }
@media (prefers-color-scheme: dark) { .field .err { color: #ff8a80; } }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; }
@media (prefers-color-scheme: dark) { .field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff8a80; } }
.field.has-error .err { display: block; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-text); font-weight: 600; }
.form-status { display: none; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--r); }
.form-status.is-visible { display: flex; }
.form-status.ok { background: var(--accent-soft); color: var(--ink); }
.form-status.bad { background: color-mix(in srgb, #b42318 12%, var(--surface)); color: var(--ink); }
.form-status .ph { font-size: 1.3rem; margin-top: .1rem; }
.form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-info h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.contact-info dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-info dt { font-size: .875rem; color: var(--muted); }
.contact-info dd { margin: .2rem 0 0; font-weight: 600; }
.contact-info dd a { text-decoration: none; color: var(--accent-text); }
.contact-info dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-info blockquote { margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .975rem; }

/* Legal */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: 104px; font-size: .925rem; }
.toc h2 { font-size: .95rem; letter-spacing: 0; margin-bottom: .75rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .3rem 0 .3rem 1rem; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; letter-spacing: -0.015em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body a { color: var(--accent-text); word-break: break-word; }
.legal-meta { display: inline-flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .95rem; margin-top: 1rem; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: clamp(3rem, 6vw, 4.5rem); }
.foot-sign { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 640; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.foot-sign span { color: var(--accent-text); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 3rem; }
.foot-grid h2 { font-size: .9rem; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-bottom: .9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-grid .brand img { height: 40px; }
.foot-grid .about { color: var(--muted); font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-bottom a { color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60dvh; display: grid; align-content: center; }

/* Reveal on scroll (progressive: content is visible without JS) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-media { animation: fade 1s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; } }
