/*
Theme Name: Fundacja DCPCZ
Theme URI: https://fundacjadcpcz.pl/
Author: Fundacja Dolnośląskie Centrum Praw Człowieka
Description: Responsywny motyw Fundacji DCPCZ z blogiem, katalogiem projektów i stroną zespołu.
Version: 1.2.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: fundacja-dcpcz
*/

:root {
  --navy: #1c1d4d;
  --navy-2: #111230;
  --ink: #17172a;
  --muted: #626474;
  --paper: #f6f3ee;
  --white: #ffffff;
  --line: rgba(28, 29, 77, 0.16);
  --coral: #ef735a;
  --coral-dark: #d95740;
  --lilac: #d9d8f7;
  --mint: #b9dccb;
  --container: 1200px;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(25, 25, 61, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.04em; }
h1 { font-size: clamp(3.3rem, 7.2vw, 7rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(84px, 10vw, 150px) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 20px; top: 14px; z-index: 999; transform: translateY(-160%);
  padding: 10px 16px; background: var(--white); color: var(--navy); border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 84px;
  background: var(--paper); border-bottom: 1px solid transparent;
  transition: height .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { height: 72px; border-color: var(--line); box-shadow: 0 10px 35px rgba(19,20,52,.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; width: 300px; height: 60px; align-items: center; gap: 12px; overflow: hidden; flex: 0 0 auto; color: var(--navy); text-decoration: none; }
.brand-symbol { display: block; width: 50px; height: 50px; flex: 0 0 50px; }
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: .69rem; line-height: 1.22; letter-spacing: .06em; text-transform: uppercase; font-weight: 720; }
.brand-name strong { font-size: .82rem; }
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav a { position: relative; text-decoration: none; font-size: .91rem; font-weight: 650; }
.primary-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--coral);
  transition: right .2s ease;
}
.primary-nav > a:hover::after { right: 0; }
.nav-cta { padding: 11px 20px; color: var(--white); background: var(--navy); border-radius: 999px; }
.nav-cta:hover { background: var(--coral-dark); }
.menu-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: var(--navy); transition: .2s ease; }

.hero {
  position: relative; min-height: min(950px, 100vh); padding: clamp(150px, 18vh, 210px) 0 50px;
  color: var(--navy); overflow: hidden; background:
    radial-gradient(circle at 20% 5%, rgba(217,216,247,.8), transparent 31%),
    linear-gradient(135deg, #f8f6f2 0%, #f1eee9 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .21; pointer-events: none;
  background-image: linear-gradient(rgba(28,29,77,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(28,29,77,.13) 1px, transparent 1px);
  background-size: 70px 70px; mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.16fr .84fr; gap: clamp(50px, 7vw, 105px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; }
.eyebrow span { width: 36px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--navy); margin: 6px 0 0; }
.eyebrow.light { color: rgba(255,255,255,.76); }
.hero h1 { max-width: 850px; margin-bottom: 30px; font-weight: 780; }
.hero h1 em { color: var(--coral-dark); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
.hero-lead { max-width: 690px; margin-bottom: 40px; color: #45465d; font-size: clamp(1.08rem, 1.6vw, 1.32rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 58px; padding: 0 25px;
  border: 0; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 800; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy); box-shadow: 0 12px 30px rgba(28,29,77,.19); }
.button-primary:hover { background: var(--coral-dark); }
.button-light { color: var(--navy); background: var(--white); }
.button-light:hover { color: var(--white); background: var(--coral-dark); }
.button-coral { color: var(--navy-2); background: var(--coral); }
.button-coral:hover { background: #ff8b72; }
.text-link { font-weight: 780; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link span { margin-left: 7px; }

.hero-visual { position: relative; min-height: 520px; }
.hero-logo-card {
  position: absolute; inset: 44px 58px 50px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 54px; color: var(--navy); background: var(--white); border: 1px solid rgba(28,29,77,.1);
  border-radius: 34px; box-shadow: var(--shadow); transform: rotate(-3deg); overflow: hidden;
}
.hero-logo-card::before {
  content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(28,29,77,.1);
  border-radius: 50%; right: -155px; top: -145px;
}
.hero-logo-card img { position: relative; width: min(62%, 235px); aspect-ratio: 1; object-fit: contain; }
.hero-logo-card p { position: relative; margin: 0; text-align: center; font-size: .72rem; line-height: 1.35; letter-spacing: .09em; text-transform: uppercase; }
.hero-logo-card p strong { font-size: .84rem; }
.value-tag {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; min-width: 168px; padding: 18px 24px;
  border-radius: 999px; box-shadow: 0 15px 35px rgba(25,25,61,.15); font-size: 1.15rem; font-weight: 830; letter-spacing: -.02em;
}
.value-tag span { font-size: .58rem; }
.value-dignity { left: -8px; bottom: 16px; color: var(--white); background: var(--navy); transform: rotate(-5deg); }
.value-equality { right: -12px; top: 5px; color: var(--navy); background: var(--mint); transform: rotate(5deg); }
.value-law { right: -22px; bottom: 80px; color: var(--navy); background: var(--coral); transform: rotate(3deg); }
.hero-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: 70px; color: #66677c; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 750; }
.hero-foot p { margin: 0; }
.hero-foot span { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.hero-orbit { position: absolute; border: 1px solid rgba(28,29,77,.15); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 580px; height: 580px; right: -180px; top: 100px; }
.orbit-two { width: 340px; height: 340px; left: -170px; bottom: -70px; }

.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 3.2fr; gap: 70px; }
.section-kicker { padding-top: 13px; }
.section-kicker p { margin-top: 10px; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 28px; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.intro-copy h2 { max-width: 930px; color: var(--navy); margin-bottom: 55px; }
.intro-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 920px; }
.intro-columns p { margin: 0; color: var(--muted); }

.actions { background: var(--lilac); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: end; margin-bottom: 65px; }
.section-heading h2 { max-width: 720px; margin: 0; color: var(--navy); }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(28,29,77,.18); border-bottom: 1px solid rgba(28,29,77,.18); }
.action-card { position: relative; min-height: 420px; padding: 30px 27px 35px; border-right: 1px solid rgba(28,29,77,.18); transition: background .25s ease, transform .25s ease; }
.action-card:first-child { border-left: 1px solid rgba(28,29,77,.18); }
.action-card:hover { z-index: 1; background: rgba(255,255,255,.35); transform: translateY(-8px); }
.card-no { font-size: .7rem; font-weight: 800; }
.card-icon { display: flex; align-items: center; justify-content: center; width: 78px; height: 78px; margin: 76px 0 42px; border: 1px solid var(--navy); border-radius: 50%; color: var(--navy); font-size: 2rem; }
.action-card:nth-child(2) .card-icon { background: var(--navy); color: var(--white); }
.action-card:nth-child(3) .card-icon { background: var(--coral); border-color: var(--coral); }
.action-card h3 { color: var(--navy); }
.action-card p { margin-bottom: 0; color: #55566e; font-size: .91rem; }

.project { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.project::before { content: "SPLOT"; position: absolute; right: -5vw; top: -25px; color: rgba(255,255,255,.035); font-size: min(24vw, 340px); font-weight: 900; line-height: 1; letter-spacing: -.09em; }
.project-wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(55px, 9vw, 130px); align-items: start; }
.project-intro h2 { margin-bottom: 20px; }
.project-lead { max-width: 620px; color: var(--coral); font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.3; font-weight: 700; }
.project-intro > p:not(.eyebrow):not(.project-lead) { max-width: 660px; color: rgba(255,255,255,.72); }
.project-intro .button { margin-top: 20px; }
.project-process { border-top: 1px solid rgba(255,255,255,.2); }
.project-process article { display: grid; grid-template-columns: 55px 1fr; gap: 25px; padding: 30px 0 28px; border-bottom: 1px solid rgba(255,255,255,.2); }
.project-process article > span { color: var(--coral); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.project-process h3 { margin-bottom: 10px; color: var(--white); }
.project-process p { margin: 0; color: rgba(255,255,255,.62); font-size: .9rem; }
.change-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 90px; }
.change-card { min-height: 290px; padding: 40px; color: var(--navy); background: var(--white); border-radius: var(--radius); }
.change-card.accent { background: var(--coral); }
.change-card .label { margin-bottom: 45px; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 850; }
.change-card h3 { max-width: 460px; font-size: clamp(2rem, 3.5vw, 3.2rem); }
.change-card p:last-child { max-width: 520px; margin: 0; color: #505169; }
.change-card.accent p:last-child { color: #4a2940; }
.funding { position: relative; display: grid; grid-template-columns: minmax(280px, .75fr) 1.25fr; gap: 65px; align-items: center; margin-top: 70px; padding-top: 55px; border-top: 1px solid rgba(255,255,255,.2); }
.funding img { width: 100%; padding: 18px; background: var(--white); border-radius: 12px; }
.funding strong { display: block; margin-bottom: 16px; font-size: 1.04rem; }
.funding p { margin: 0; color: rgba(255,255,255,.56); font-size: .74rem; line-height: 1.55; }

.news { background: var(--paper); }
.news-feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 500px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-art { position: relative; display: grid; grid-template-columns: repeat(5,1fr); overflow: hidden; background: var(--coral); }
.news-art::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(28,29,77,.3); border-radius: 50%; transform: rotate(-14deg); }
.news-art span { display: flex; align-items: center; justify-content: center; color: var(--navy); border-right: 1px solid rgba(28,29,77,.17); font-size: clamp(2.5rem, 6vw, 6rem); font-weight: 900; transform: translateY(var(--offset, 0)); }
.news-art span:nth-child(2) { --offset: 40px; }
.news-art span:nth-child(3) { --offset: -24px; }
.news-art span:nth-child(4) { --offset: 55px; }
.news-art span:nth-child(5) { --offset: -14px; }
.news-copy { padding: clamp(38px, 5vw, 75px); }
.meta { color: var(--coral-dark); text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 850; }
.news-copy h3 { margin: 35px 0 25px; color: var(--navy); font-size: clamp(1.8rem, 3vw, 3rem); }
.news-copy > p:not(.meta) { color: var(--muted); }
.news-copy .text-link { display: inline-block; margin-top: 18px; color: var(--navy); }
.news-more { margin-top: 30px; }

.contact { position: relative; color: var(--white); background: var(--navy-2); overflow: hidden; }
.contact::after { content: ""; position: absolute; width: 650px; height: 650px; right: -300px; bottom: -350px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.018), 0 0 0 180px rgba(255,255,255,.015); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 130px); }
.contact-copy h2 { max-width: 650px; }
.contact-copy > p:not(.eyebrow) { max-width: 520px; color: rgba(255,255,255,.62); }
.contact-links { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.18); }
.contact-links a { display: block; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none; }
.contact-links span { display: block; color: rgba(255,255,255,.48); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.contact-links strong { font-size: clamp(.96rem, 1.6vw, 1.2rem); }
.contact-form { padding: clamp(28px, 4vw, 52px); color: var(--ink); background: var(--white); border-radius: var(--radius); box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 20px; color: #56576a; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; margin-top: 8px; padding: 13px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #c8c8d0; border-radius: 0; outline: 0; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--coral-dark); box-shadow: 0 1px 0 var(--coral-dark); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; margin: 12px 0 25px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; line-height: 1.4; }
.consent input { margin-top: 3px; accent-color: var(--coral-dark); }
.form-note { margin: 18px 0 0; color: #777887; font-size: .74rem; }

.site-footer { padding: 75px 0 24px; color: #4b4c60; background: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.5fr .8fr .55fr; gap: 65px; padding-bottom: 65px; }
.footer-brand img { width: 370px; height: 115px; object-fit: contain; object-position: left center; }
.footer-brand p { color: var(--navy); font-size: 1.15rem; font-weight: 800; }
.footer-title { margin: 0 0 22px; color: var(--navy); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-top p { font-size: .86rem; }
.footer-top a { display: block; margin-bottom: 13px; color: var(--navy); font-weight: 700; text-decoration: none; }
.footer-link-button { display: block; margin: 0 0 13px; padding: 0; color: var(--navy); background: none; border: 0; font-weight: 700; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .72rem; }
.footer-bottom p { margin: 0; }
.footer-legal { max-width: 760px; text-align: right; }
.footer-funding { margin-bottom: 7px !important; line-height: 1.55; }

.dialog-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; padding: 0; color: var(--navy); background: var(--paper); border: 0; border-radius: 50%; font-size: 1.7rem; cursor: pointer; }

.cookie-banner { position: fixed; z-index: 500; inset: auto 20px 20px; padding: 0; color: var(--white); background: var(--navy-2); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 25px 28px; }
.cookie-banner h2, .cookie-dialog h2 { margin-bottom: 9px; color: inherit; font-size: 1.45rem; letter-spacing: -.025em; }
.cookie-banner p { max-width: 810px; margin: 0; color: rgba(255,255,255,.72); font-size: .84rem; line-height: 1.5; }
.cookie-banner a { color: var(--white); }
.cookie-kicker { margin-bottom: 6px !important; color: var(--coral) !important; font-size: .65rem !important; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; max-width: 550px; }
.cookie-actions .button, .cookie-dialog-actions .button { min-height: 43px; padding: 0 17px; font-size: .74rem; }
.cookie-primary { color: var(--navy-2); background: var(--coral); }
.cookie-secondary { color: var(--navy); background: var(--white); }
.cookie-tertiary { color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.38); }
.cookie-dialog { width: min(calc(100% - 30px), 720px); max-height: min(820px, calc(100vh - 30px)); padding: 40px; color: var(--ink); background: var(--white); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.cookie-dialog::backdrop { background: rgba(17,18,48,.72); backdrop-filter: blur(4px); }
.cookie-dialog > p:not(.cookie-kicker) { color: var(--muted); }
.cookie-choice { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cookie-choice h3 { margin-bottom: 7px; color: var(--navy); font-size: 1.05rem; letter-spacing: -.02em; }
.cookie-choice p { margin: 0; color: var(--muted); font-size: .8rem; }
.cookie-always { flex: 0 0 auto; color: var(--coral-dark); font-size: .7rem; font-weight: 850; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 48px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; background: #b7b8c2; border-radius: 999px; transition: .2s ease; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 4px; top: 4px; background: var(--white); border-radius: 50%; transition: .2s ease; }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 3px; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }

.inner-hero { padding: 170px 0 95px; background: var(--white); }
.inner-hero.lilac { background: var(--lilac); }
.inner-hero.navy { color: var(--white); background: var(--navy); }
.breadcrumbs { display: flex; gap: 9px; align-items: center; margin-bottom: 48px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.inner-hero.navy .breadcrumbs { color: rgba(255,255,255,.55); }
.breadcrumbs a { text-decoration: none; }
.inner-hero h1 { max-width: 920px; margin-bottom: 28px; color: var(--navy); font-size: clamp(3.2rem, 7vw, 6.8rem); }
.inner-hero.navy h1 { color: var(--white); }
.page-intro { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.inner-hero.navy .page-intro { color: rgba(255,255,255,.67); }
.listing-section { padding: 95px 0 130px; background: var(--paper); }
.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 50px; }
.listing-head h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.8rem); }
.post-grid, .project-grid, .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card, .project-card, .team-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid rgba(28,29,77,.1); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover, .project-card:hover, .team-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.post-art, .project-art { position: relative; min-height: 235px; overflow: hidden; background: var(--lilac); }
.post-art::before, .project-art::before { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -85px; border: 1px solid rgba(28,29,77,.2); border-radius: 50%; }
.post-art strong, .project-art strong { position: absolute; left: 28px; bottom: 18px; color: var(--navy); font-size: 4.5rem; line-height: 1; letter-spacing: -.08em; }
.post-card-body, .project-card-body, .team-card-body { padding: 30px; }
.post-meta, .card-label { margin-bottom: 18px; color: var(--coral-dark); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.post-card h2, .project-card h2 { margin-bottom: 18px; color: var(--navy); font-size: 1.7rem; }
.post-card p, .project-card p, .team-card p { color: var(--muted); font-size: .9rem; }
.card-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 8px; color: var(--navy); font-size: .82rem; font-weight: 850; text-decoration: none; border-bottom: 1px solid currentColor; }
.project-card.featured .project-art { color: var(--white); background: var(--navy); }
.project-card.featured .project-art strong { color: rgba(255,255,255,.12); font-size: 6rem; }
.project-card.upcoming { border-style: dashed; background: transparent; }
.project-card.upcoming .project-art { display: grid; place-items: center; background: rgba(255,255,255,.35); }
.project-card.upcoming .project-art span { color: var(--navy); font-size: 3rem; }
.team-card { overflow: visible; margin-top: 70px; }
.person-placeholder { display: grid; place-items: center; width: 132px; height: 132px; margin: -66px 0 24px; color: var(--navy); background: var(--lilac); border: 9px solid var(--paper); border-radius: 50%; font-size: 2rem; font-weight: 900; }
.person-placeholder::before { content: ""; width: 30px; height: 30px; margin-top: 18px; background: currentColor; border-radius: 50%; }
.person-placeholder::after { content: ""; width: 62px; height: 34px; margin-top: -9px; background: currentColor; border-radius: 40px 40px 18px 18px; }
.team-card:nth-child(2) .person-placeholder { background: var(--mint); }
.team-card:nth-child(3) .person-placeholder { background: var(--coral); }
.team-card h2 { margin-bottom: 8px; color: var(--navy); font-size: 1.55rem; }
.team-role { color: var(--coral-dark) !important; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem !important; font-weight: 850; }
.team-section { padding-top: 105px; }
.team-section-specialists { padding-top: 85px; background: var(--white); }
.team-section .listing-head > p { max-width: 480px; margin: 0; color: var(--muted); }
.team-section-label { margin-bottom: 10px; color: var(--coral-dark); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.team-grid-board { align-items: start; }
.team-grid-specialists { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.team-card-profile { margin-top: 0; overflow: hidden; }
.team-card-profile:hover { transform: translateY(-5px); }
.team-photo { display: block; width: 100%; height: 420px; object-fit: cover; object-position: center top; background: var(--lilac); }
.team-card-profile:nth-child(2) .team-photo { background: var(--mint); }
.team-card-profile:nth-child(3) .team-photo { background: var(--coral); }
.team-card-profile .team-card-body { padding: 28px 30px 34px; }
.team-card-profile .team-role { min-height: 2.2em; margin-bottom: 10px; }
.team-card-profile h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.team-card-profile p:last-child { margin-bottom: 0; }

.document-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.document-card, .registry-card { padding: clamp(32px, 5vw, 62px); border: 1px solid var(--line); border-radius: var(--radius); }
.document-card { color: var(--white); background: var(--navy); }
.document-card h2 { margin: 18px 0 25px; color: var(--white); font-size: clamp(2.5rem, 5vw, 5rem); }
.document-card p:not(.card-label) { max-width: 650px; color: rgba(255,255,255,.7); }
.document-card .card-label { color: var(--coral); }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 40px; }
.document-card .button-primary { color: var(--navy); background: var(--white); }
.document-card .text-link { color: var(--white); }
.registry-card { background: var(--paper); }
.registry-card h2 { margin: 15px 0 30px; color: var(--navy); font-size: 1.65rem; }
.registry-card dl { margin: 0 0 25px; }
.registry-card dl div { display: grid; grid-template-columns: 86px 1fr; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.registry-card dt { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.registry-card dd { margin: 0; color: var(--navy); font-weight: 700; }
.registry-note { color: var(--muted); font-size: .78rem; }

.privacy-page .article-content { max-width: none; }
.privacy-page .article-content h2 { scroll-margin-top: 100px; }
.privacy-page .article-content a { color: var(--navy); font-weight: 700; }
.policy-table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.policy-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .82rem; line-height: 1.5; }
.policy-table th, .policy-table td { padding: 17px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.policy-table tr:last-child td { border-bottom: 0; }
.policy-table th { color: var(--white); background: var(--navy); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.policy-table td:first-child { width: 22%; color: var(--navy); font-weight: 720; }
.privacy-aside { position: sticky; top: 105px; }
.privacy-aside h2:not(:first-child) { margin-top: 32px; }
.cookie-settings-link { padding: 0; color: var(--navy); background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.content-shell { padding: 90px 0 130px; background: var(--white); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; }
.article-content { max-width: 820px; }
.article-content h2 { margin: 62px 0 24px; color: var(--navy); font-size: clamp(2rem, 3.5vw, 3.25rem); }
.article-content h3 { margin: 42px 0 18px; color: var(--navy); }
.article-content p, .article-content li { color: #55566a; }
.article-content .lead { color: var(--navy); font-size: 1.3rem; font-weight: 680; }
.article-content blockquote { margin: 45px 0; padding: 30px 35px; color: var(--navy); background: var(--lilac); border-left: 5px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; }
.article-aside { align-self: start; padding: 28px; background: var(--paper); border-radius: var(--radius); }
.article-aside h2 { color: var(--navy); font-size: 1.1rem; }
.article-aside p { color: var(--muted); font-size: .82rem; }
.article-aside a { color: var(--navy); font-weight: 800; }
.funding-light { color: var(--ink); border-color: var(--line); }
.funding-light p { color: var(--muted); }
.empty-state { padding: 55px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; color: var(--navy); background: var(--white); border-radius: 999px; text-decoration: none; font-weight: 800; }
.pagination .current { color: var(--white); background: var(--navy); }

.reveal { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .primary-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { max-width: 850px; }
  .hero-visual { width: min(100%, 610px); margin: 10px auto 0; }
  .hero-foot { margin-top: 25px; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .action-card:nth-child(3) { border-left: 1px solid rgba(28,29,77,.18); border-top: 1px solid rgba(28,29,77,.18); }
  .action-card:nth-child(4) { border-top: 1px solid rgba(28,29,77,.18); }
  .project-wrap, .contact-grid { grid-template-columns: 1fr; }
  .project-process { max-width: 760px; }
  .news-feature { grid-template-columns: .9fr 1.1fr; }
  .document-layout { grid-template-columns: 1fr; }
  .registry-card { max-width: 720px; }
}

@media (max-width: 790px) {
  .admin-bar .site-header { top: 46px; }
  html { scroll-padding-top: 70px; }
  body { font-size: 16px; }
  .site-header, .site-header.is-scrolled { height: 70px; }
  .brand { width: 250px; height: 54px; }
  .brand-symbol { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-name { font-size: .59rem; }
  .brand-name strong { font-size: .7rem; }
  .menu-toggle { display: block; position: relative; z-index: 103; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }
  .primary-nav {
    position: fixed; inset: 0; z-index: 102; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 90px 32px; color: var(--white); background: var(--navy); transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav a { font-size: 1.75rem; }
  .primary-nav .nav-cta { padding: 12px 22px; color: var(--navy); background: var(--coral); }
  .hero { padding-top: 125px; }
  .hero h1 { font-size: clamp(3.15rem, 14vw, 5.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 470px; }
  .hero-logo-card { inset: 45px 48px 52px 8px; }
  .value-equality { right: 0; }
  .value-law { right: -5px; bottom: 68px; }
  .hero-foot { flex-wrap: wrap; justify-content: flex-start; gap: 12px 20px; }
  .hero-foot span { display: none; }
  .intro-grid, .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .intro-columns { grid-template-columns: 1fr; gap: 18px; }
  .section-heading { margin-bottom: 45px; }
  .change-grid, .funding, .news-feature { grid-template-columns: 1fr; }
  .news-art { min-height: 330px; }
  .funding { gap: 30px; }
  .funding img { max-width: 520px; }
  .footer-top { grid-template-columns: 1.4fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .post-grid, .project-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 50px; }
  .article-aside { max-width: 520px; }
  .privacy-aside { position: static; }
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 18px; }
  .cookie-actions { justify-content: flex-start; max-width: none; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .eyebrow { max-width: 100%; gap: 9px; font-size: .58rem; letter-spacing: .08em; line-height: 1.35; }
  .eyebrow span { width: 30px; flex: 0 0 30px; }
  .hero { padding-top: 112px; }
  .hero h1 { margin-bottom: 22px; }
  .hero-visual { min-height: 430px; }
  .hero-logo-card { inset: 40px 26px 50px 0; padding: 38px 24px; border-radius: 28px; }
  .hero-logo-card img { width: min(58%, 170px); }
  .hero-logo-card p { font-size: .61rem; }
  .hero-logo-card p strong { font-size: .72rem; }
  .value-tag { min-width: 138px; padding: 14px 18px; font-size: .98rem; }
  .value-dignity { left: 0; bottom: 12px; }
  .value-equality { right: 0; top: 2px; }
  .value-law { right: 0; bottom: 58px; }
  .action-grid { grid-template-columns: 1fr; border: 0; }
  .action-card, .action-card:first-child, .action-card:nth-child(3), .action-card:nth-child(4) { min-height: 0; padding: 28px 0; border: 0; border-top: 1px solid rgba(28,29,77,.18); }
  .action-card:last-child { border-bottom: 1px solid rgba(28,29,77,.18); }
  .card-icon { margin: 38px 0 28px; }
  .project::before { top: 20px; font-size: 32vw; }
  .project-process article { grid-template-columns: 36px 1fr; gap: 12px; }
  .change-grid { margin-top: 60px; }
  .change-card { min-height: 0; padding: 28px; }
  .change-card .label { margin-bottom: 30px; }
  .news-art { min-height: 260px; }
  .news-copy { padding: 30px 24px 38px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 20px; }
  .contact-links strong { word-break: break-word; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-legal { max-width: none; text-align: left; }
  .cookie-banner { inset: auto 8px 8px; }
  .cookie-banner-inner { padding: 20px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .cookie-actions .button { width: 100%; }
  .cookie-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); padding: 34px 20px 24px; }
  .cookie-choice { gap: 14px; }
  .cookie-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-dialog-actions .button { width: 100%; }
  .inner-hero { padding: 125px 0 70px; }
  .breadcrumbs { margin-bottom: 32px; }
  .listing-section, .content-shell { padding: 70px 0 90px; }
  .listing-head { align-items: flex-start; flex-direction: column; }
  .post-grid, .project-grid, .team-grid { grid-template-columns: 1fr; }
  .team-card { margin-top: 65px; }
  .team-card-profile { margin-top: 0; }
  .team-grid-specialists { grid-template-columns: 1fr; }
  .team-photo { height: clamp(340px, 106vw, 520px); }
  .document-card, .registry-card { padding: 30px 24px; }
  .document-actions { align-items: flex-start; flex-direction: column; }
  .article-content blockquote { padding: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
