/*
Theme Name: FUNCEI
Theme URI: https://funcei.org/
Author: Fundación Caminos e Identidades
Author URI: https://funcei.org/
Description: Tema de bloques institucional para FUNCEI, diseñado para comunicar sus programas, trayectoria, publicaciones y oportunidades de apoyo.
Requires at least: 6.6
Requires PHP: 7.4
Version: 0.3.5
Text Domain: funcei
*/

:root {
  --ink: #092b49;
  --ink-deep: #061e34;
  --paper: #f3eee5;
  --paper-light: #fffdf8;
  --white: #ffffff;
  --coral: #f35c3d;
  --orange: #ff9c2a;
  --green: #2f8f69;
  --muted: #536979;
  --line: rgba(9, 43, 73, 0.23);
  --shadow: 0 18px 48px rgba(6, 30, 52, 0.13);
  --page-padding: clamp(20px, 4.3vw, 72px);
  --shell: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }

.site-page {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), rgba(9,43,73,.055) 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent calc(75% - 1px), rgba(9,43,73,.055) 75%, transparent calc(75% + 1px)),
    var(--paper);
}
.section-shell { width: min(calc(100% - (var(--page-padding) * 2)), var(--shell)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 14px; top: -80px; z-index: 100;
  padding: 12px 18px; color: white; background: var(--ink-deep); border-radius: 6px;
}
.skip-link:focus { top: 12px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.site-header {
  min-height: 88px; padding: 12px var(--page-padding); display: grid;
  grid-template-columns: 190px 1fr auto; gap: 34px; align-items: center;
  background: rgba(243, 238, 229, .97); border-bottom: 1px solid var(--line);
  position: relative; z-index: 30;
}
.brand { display: inline-flex; width: fit-content; }
.brand img { width: 154px; height: auto; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 2.4vw, 42px); }
.desktop-nav a {
  padding: 11px 0; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em;
}
.desktop-nav a:hover { color: var(--coral); }
.header-actions, .hero-buttons { display: flex; align-items: center; gap: 12px; }
.button {
  min-height: 50px; padding: 0 22px; display: inline-flex; justify-content: center;
  align-items: center; gap: 10px; border: 2px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding-inline: 18px; font-size: 13px; }
.button-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.button-outline:hover { color: white; background: var(--ink); }
.button-blue { color: white; background: var(--ink); box-shadow: 0 12px 25px rgba(9,43,73,.2); }
.button-blue:hover { background: var(--coral); }
.button-orange { color: var(--ink-deep); background: var(--orange); box-shadow: 0 10px 24px rgba(255,156,42,.25); }
.button-orange:hover { color: white; background: var(--coral); }
.button-paper { color: var(--ink-deep); background: var(--paper-light); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { cursor: pointer; list-style: none; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
  position: absolute; right: 0; top: 44px; width: min(310px, calc(100vw - 32px));
  display: grid; padding: 14px; background: var(--paper-light); border: 1px solid var(--ink); box-shadow: var(--shadow);
}
.mobile-menu nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); font-weight: 800; }

.hero {
  min-height: 670px; padding: 34px var(--page-padding) 38px; display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr); align-items: center; gap: clamp(28px, 4vw, 68px);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 18px; display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .15em;
}
.eyebrow::before { content: ""; width: 42px; height: 4px; flex: 0 0 auto; background: var(--coral); }
.eyebrow.light { color: #ffd2c8; }
.hero h1 {
  max-width: 880px; margin: 0; color: var(--ink-deep); font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(60px, 5.7vw, 98px); font-weight: 400; line-height: .87; letter-spacing: -.065em;
}
.hero h1 em { color: var(--coral); font-weight: 400; }
.hero-intro { max-width: 690px; margin: 30px 0 28px; color: var(--muted); font-size: clamp(17px, 1.35vw, 21px); }
.hero-art { min-width: 0; height: 535px; position: relative; }
.hero-photo {
  position: absolute; inset: 0 0 66px -35px; overflow: hidden; background: var(--ink);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); box-shadow: var(--shadow);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,30,52,.18), transparent 55%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.hero:hover .hero-photo img { transform: scale(1.025); }
.edition {
  position: absolute; right: 9px; top: 18px; z-index: 3; color: white; writing-mode: vertical-rl;
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .18em;
}
.marker {
  position: absolute; z-index: 4; left: -68px; bottom: 42px; width: 112px; height: 112px;
  display: grid; place-items: center; color: white; background: var(--coral);
  box-shadow: 12px 12px 0 var(--orange); font: 48px Georgia, serif; transform: rotate(-5deg);
}
.location { position: absolute; right: 0; bottom: 21px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }

.editorial-band {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.12fr; min-height: 390px;
  background: var(--paper-light); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.band-block { min-width: 0; padding: 30px clamp(22px, 2.7vw, 44px); border-right: 1px solid var(--line); }
.section-number { display: block; margin-bottom: 38px; color: var(--coral); font: italic 14px Georgia, serif; }
.band-purpose h2, .band-program h3 {
  margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.02; letter-spacing: -.035em;
}
.band-purpose h2 { max-width: 410px; font-size: clamp(31px, 2.55vw, 44px); }
.band-purpose p, .band-program p { margin: 22px 0 0; font-size: 14px; line-height: 1.55; }
.band-program { display: flex; flex-direction: column; justify-content: space-between; transition: color .25s ease, background .25s ease; }
.band-program h3 { font-size: clamp(29px, 2.3vw, 40px); }
.band-program:hover { color: white; background: var(--ink); }
.band-program:hover .section-number { color: var(--orange); }
.link-arrow { font-size: 32px; }
.band-actions { display: grid; grid-template-rows: 1fr 1fr; }
.band-action {
  padding: 28px clamp(24px, 2.7vw, 42px); display: flex; align-items: flex-end;
  justify-content: space-between; gap: 18px; transition: color .2s ease, background .2s ease;
}
.band-action small { display: block; margin-bottom: 8px; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.band-action strong { display: block; max-width: 250px; font: 400 clamp(23px, 1.8vw, 31px)/1 Georgia, serif; }
.band-action b { font-size: 28px; }
.alliance-action { color: white; background: var(--ink); }
.donate-action { color: var(--ink-deep); background: var(--orange); }
.band-action:hover { color: white; background: var(--coral); }
.ticker {
  min-height: 50px; padding: 0 var(--page-padding); display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2vw, 32px); overflow: hidden; white-space: nowrap; color: white; background: var(--coral);
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em;
}
.ticker b { color: var(--ink-deep); font-size: 18px; }

.mission { padding-block: clamp(80px, 9vw, 150px); display: grid; grid-template-columns: .8fr 1.15fr; gap: clamp(35px, 7vw, 110px); }
.mission-heading h2, .section-heading-row h2, .trajectory h2, .publication h2, .team h2 {
  margin: 0; color: var(--ink-deep); font: 400 clamp(42px, 4.5vw, 76px)/.96 Georgia, serif; letter-spacing: -.05em;
}
.mission-copy { padding-top: 36px; font-size: clamp(17px, 1.4vw, 21px); }
.mission-copy p { margin: 0 0 22px; }
.mission-image { grid-column: 1 / -1; margin: 16px 0 0; position: relative; }
.mission-image img { width: 100%; max-height: 630px; object-fit: cover; }
.mission-image figcaption {
  position: absolute; right: 0; bottom: 0; padding: 14px 20px; color: white; background: var(--ink);
  font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
}

.programs-section { padding-block: clamp(75px, 8vw, 130px); color: white; background: var(--ink-deep); }
.section-heading-row { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.section-heading-row h2 { color: white; }
.section-heading-row > p { max-width: 530px; margin: 0; color: #c7d6e0; font-size: 18px; }
.program-cards { margin-top: 64px; display: grid; gap: 32px; }
.program-card { min-height: 510px; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--paper-light); color: var(--ink); }
.program-card.reverse { grid-template-columns: .85fr 1.15fr; }
.program-card.reverse .program-image { order: 2; }
.program-image { min-height: 420px; overflow: hidden; position: relative; }
.program-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.program-card:hover .program-image img { transform: scale(1.025); }
.program-image span {
  position: absolute; right: 0; bottom: 0; width: 90px; height: 90px; display: grid; place-items: center;
  color: white; background: var(--coral); font: 40px Georgia, serif;
}
.program-content { padding: clamp(34px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.card-kicker { margin: 0 0 18px; color: var(--coral); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.program-content h3 { margin: 0; color: var(--ink-deep); font: 400 clamp(40px, 4vw, 66px)/.94 Georgia, serif; letter-spacing: -.05em; }
.program-content > p:not(.card-kicker) { margin: 24px 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.program-content a, .text-link { width: fit-content; margin-top: 8px; padding-bottom: 4px; border-bottom: 2px solid var(--coral); font-weight: 900; }

.trajectory { padding-block: clamp(80px, 9vw, 150px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; }
.trajectory-title > p:last-child { max-width: 650px; margin: 26px 0 0; font-size: 18px; }
.impact-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.impact-list div { min-height: 170px; padding: 26px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.impact-list dt { color: var(--coral); font: 400 clamp(34px, 3.2vw, 54px)/1 Georgia, serif; }
.impact-list dd { margin: 18px 0 0; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }

.partnership { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; color: white; background: var(--ink); }
.partnership-photo { min-height: 620px; overflow: hidden; }
.partnership-photo img { width: 100%; height: 100%; object-fit: cover; }
.partnership-copy { padding: clamp(50px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.partnership-copy h2, .donation h2 { margin: 0; max-width: 700px; font: 400 clamp(44px, 4.5vw, 74px)/.95 Georgia, serif; letter-spacing: -.05em; }
.partnership-copy > p:not(.eyebrow) { margin: 28px 0 18px; color: #d6e0e7; font-size: 18px; }
.partnership-copy ul { margin: 0 0 32px; padding-left: 20px; color: #d6e0e7; }
.partnership-copy li { margin: 10px 0; }

.publication { padding-block: clamp(80px, 9vw, 150px); display: grid; grid-template-columns: .7fr 1fr; gap: clamp(50px, 8vw, 130px); align-items: center; }
.book-cover {
  position: relative; width: min(430px, 100%); margin: 0 auto;
  transform: perspective(1100px) rotateY(7deg) rotateZ(-2deg); transform-origin: left center;
  filter: drop-shadow(24px 26px 16px rgba(9,43,73,.22));
}
.book-cover::before {
  content: ""; position: absolute; z-index: -1; inset: 1.5% auto 1.5% -12px; width: 22px;
  background: linear-gradient(90deg, #182733, #657078 48%, #202e38);
  border-radius: 3px 0 0 3px; transform: skewY(-10deg);
}
.book-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 2px 6px 6px 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.2), transparent 6%, transparent 92%, rgba(255,255,255,.2));
  box-shadow: inset 1px 0 rgba(255,255,255,.35), inset -2px 0 rgba(0,0,0,.12);
}
.book-cover img { display: block; width: 100%; height: auto; border-radius: 2px 6px 6px 2px; }
.publication-copy > p:not(.eyebrow) { max-width: 690px; margin: 28px 0; color: var(--muted); font-size: 18px; }

.team { padding-bottom: clamp(80px, 9vw, 140px); display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.team-grid article { min-height: 240px; padding: 32px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.team-grid span { color: var(--coral); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.team-grid h3 { margin: 54px 0 10px; font: 400 30px/1.05 Georgia, serif; }
.team-grid p { margin: 0; color: var(--muted); }

.donation { padding: clamp(55px, 7vw, 110px) var(--page-padding); display: grid; grid-template-columns: auto 1fr .75fr; gap: clamp(30px, 5vw, 80px); align-items: center; color: white; background: var(--coral); }
.donation-number { width: clamp(90px, 10vw, 150px); aspect-ratio: 1; display: grid; place-items: center; background: var(--orange); color: var(--ink-deep); font: 400 clamp(44px, 5vw, 72px) Georgia, serif; transform: rotate(-5deg); }
.donation > div:nth-child(2) p:last-child { max-width: 720px; font-size: 18px; }
.donation-action { padding-left: clamp(20px, 4vw, 55px); border-left: 1px solid rgba(255,255,255,.5); }
.donation-action p { margin: 0 0 24px; }

.site-footer { padding: 58px var(--page-padding) 24px; color: white; background: var(--ink-deep); }
.footer-top { display: grid; grid-template-columns: 210px 1fr auto; gap: 50px; align-items: center; padding-bottom: 50px; }
.footer-top img { width: 180px; }
.footer-top p { max-width: 520px; color: #c7d6e0; }
.footer-top > a { font: 400 clamp(20px, 2vw, 30px) Georgia, serif; border-bottom: 1px solid var(--coral); }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); display: flex; justify-content: space-between; gap: 30px; color: #9db1bf; font-size: 12px; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { color: white; }

.internal-main { background: var(--paper); }
.internal-hero {
  min-height: 610px; padding: clamp(55px, 7vw, 110px) var(--page-padding);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: center;
}
.internal-hero-copy h1 {
  max-width: 800px; margin: 0; color: var(--ink-deep);
  font: 400 clamp(58px, 6.8vw, 108px)/.88 Georgia, serif; letter-spacing: -.065em;
}
.internal-hero-copy h1 em { color: var(--coral); font-weight: 400; }
.internal-hero-copy > p:last-child { max-width: 700px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 1.5vw, 22px); }
.internal-hero-media { position: relative; margin: 0; }
.internal-hero-media img { width: 100%; min-height: 470px; max-height: 650px; object-fit: cover; clip-path: polygon(10% 0,100% 0,100% 100%,0 100%); }
.internal-hero-media figcaption {
  position: absolute; right: 0; bottom: 0; padding: 12px 18px;
  color: white; background: var(--ink); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
}
.internal-hero > .donation-number { justify-self: center; }
.internal-section { padding-block: clamp(75px, 8vw, 130px); }
.internal-section + .internal-section { border-top: 1px solid var(--line); }
.internal-lead { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 120px); }
.internal-lead h2, .internal-program h2, .publication-detail h2, .support-card h2, .contact-card h2 {
  margin: 0; color: var(--ink-deep); font: 400 clamp(42px, 4.7vw, 76px)/.96 Georgia, serif; letter-spacing: -.05em;
}
.internal-copy { font-size: clamp(17px, 1.3vw, 20px); }
.internal-copy p { margin: 0 0 22px; }
.principles-grid, .support-grid, .contact-grid {
  margin-top: 65px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
}
.principles-grid article, .support-card, .contact-card {
  min-height: 280px; padding: clamp(26px, 3.2vw, 48px);
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.principles-grid span, .support-card > span, .contact-card > span {
  color: var(--coral); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em;
}
.principles-grid h3 { margin: 70px 0 14px; font: 400 31px/1 Georgia, serif; }
.principles-grid p { margin: 0; color: var(--muted); }
.internal-program {
  min-height: 590px; display: grid; grid-template-columns: 1fr 1fr;
  color: var(--ink); background: var(--paper-light);
}
.internal-program + .internal-program { border-top: 1px solid var(--ink); }
.internal-program.reverse .internal-program-media { order: 2; }
.internal-program-media { min-height: 520px; }
.internal-program-media img { width: 100%; height: 100%; object-fit: cover; }
.internal-program-copy { padding: clamp(48px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.internal-program-copy > p:not(.eyebrow) { margin: 25px 0; color: var(--muted); font-size: 18px; }
.feature-list { margin: 5px 0 30px; padding-left: 20px; }
.feature-list li { margin: 10px 0; }
.timeline-list { margin: 65px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.timeline-list li { padding: 30px 0; display: grid; grid-template-columns: 150px 1fr; gap: 35px; border-bottom: 1px solid var(--line); }
.timeline-list strong { color: var(--coral); font: 400 36px Georgia, serif; }
.timeline-list p { margin: 4px 0 0; max-width: 850px; }
.works-list { margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.works-list span { min-height: 105px; padding: 24px; display: flex; align-items: flex-end; background: var(--paper-light); font: 400 22px/1.1 Georgia, serif; }
.publication-detail { display: grid; grid-template-columns: .7fr 1fr; gap: clamp(55px, 9vw, 130px); align-items: center; }
.publication-meta { margin: 30px 0; display: grid; gap: 8px; color: var(--muted); }
.publication-meta strong { color: var(--ink); }
.support-grid { grid-template-columns: 1fr 1fr; }
.support-card { min-height: 520px; display: flex; flex-direction: column; align-items: flex-start; }
.support-card h2 { margin-top: 45px; }
.support-card p { max-width: 620px; margin: 25px 0 30px; color: var(--muted); font-size: 18px; }
.support-card .button { margin-top: auto; }
.support-card.highlight { color: white; background: var(--ink); }
.support-card.highlight h2 { color: white; }
.support-card.highlight p { color: #d6e0e7; }
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.contact-card { min-height: 330px; }
.contact-card h2 { margin: 45px 0 18px; font-size: clamp(36px, 3.5vw, 58px); }
.contact-card p { color: var(--muted); }
.contact-card a { border-bottom: 2px solid var(--coral); font-weight: 900; overflow-wrap: anywhere; }
.contact-form-section { padding-block: clamp(20px, 3vw, 45px) clamp(85px, 9vw, 145px); }
.contact-form-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; align-items: end; margin-bottom: 45px; }
.contact-form-heading h2 {
  margin: 0; color: var(--ink-deep);
  font: 400 clamp(42px, 4.7vw, 76px)/.96 Georgia, serif; letter-spacing: -.05em;
}
.contact-form-heading > p:last-child { margin: 0; color: var(--muted); text-align: right; }
.funcei-contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: clamp(28px, 4vw, 58px); color: white; background: var(--ink-deep);
}
.form-field { display: grid; gap: 9px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label, .form-consent { font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; color: var(--ink-deep); background: var(--paper-light);
  border: 2px solid transparent; border-radius: 3px; font: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--ink-deep);
}
.form-consent { display: flex; gap: 12px; align-items: flex-start; color: #d6e0e7; }
.form-consent input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--orange); }
.form-consent a { color: white; border-bottom: 1px solid var(--orange); }
.form-notice { margin: 0 0 25px; padding: 16px 20px; border-left: 6px solid; font-weight: 800; }
.form-notice.success { color: #174b37; background: #d9f3e7; border-color: var(--green); }
.form-notice.error { color: #722315; background: #ffe2dc; border-color: var(--coral); }
.funcei-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 960px; }
  .hero-art { height: 500px; margin-top: 20px; }
  .hero-photo { left: 0; }
  .marker { left: var(--page-padding); }
  .editorial-band { grid-template-columns: 1fr 1fr; }
  .band-block:nth-child(2) { border-right: 0; }
  .band-block:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .partnership { grid-template-columns: .9fr 1.1fr; }
  .donation { grid-template-columns: auto 1fr; }
  .donation-action { grid-column: 2; }
  .internal-hero { grid-template-columns: 1fr; }
  .internal-hero-media img { min-height: 430px; }
}

@media (max-width: 820px) {
  .header-actions .button-outline { display: none; }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .hero-buttons .button { width: 100%; }
  .mission, .section-heading-row, .trajectory, .publication, .team { grid-template-columns: 1fr; }
  .mission-copy { padding-top: 0; }
  .program-card, .program-card.reverse { grid-template-columns: 1fr; }
  .program-card.reverse .program-image { order: 0; }
  .partnership { grid-template-columns: 1fr; }
  .partnership-photo { min-height: 460px; }
  .publication { gap: 75px; }
  .book-cover { width: min(430px, 88%); }
  .donation { grid-template-columns: 1fr; }
  .donation-number { width: 95px; }
  .donation-action { grid-column: auto; padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.5); }
  .footer-top { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { flex-direction: column; }
  .internal-lead, .publication-detail { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .internal-program, .internal-program.reverse { grid-template-columns: 1fr; }
  .internal-program.reverse .internal-program-media { order: 0; }
  .works-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  :root { --page-padding: 18px; }
  .site-header { min-height: 74px; grid-template-columns: 1fr auto; }
  .brand img { width: 125px; }
  .header-actions { display: none; }
  .hero { min-height: 0; padding-top: 28px; }
  .hero h1 { font-size: clamp(47px, 15vw, 68px); line-height: .88; }
  .hero-intro { margin-top: 24px; }
  .hero-art { height: 370px; }
  .hero-photo { inset: 0 0 52px 0; clip-path: polygon(10% 0,100% 0,100% 100%,0 100%); }
  .marker { width: 78px; height: 78px; left: 18px; bottom: 34px; font-size: 34px; box-shadow: 7px 7px 0 var(--orange); }
  .edition { font-size: 8px; }
  .location { font-size: 9px; }
  .editorial-band { grid-template-columns: 1fr; }
  .band-block { min-height: 290px; border-right: 0; border-bottom: 1px solid var(--line); }
  .band-actions { min-height: 330px; }
  .ticker { justify-content: flex-start; }
  .mission-image figcaption { position: static; }
  .section-heading-row { gap: 25px; }
  .program-image { min-height: 320px; }
  .program-content { padding: 32px 24px 42px; }
  .impact-list, .team-grid { grid-template-columns: 1fr; }
  .impact-list div { min-height: 135px; }
  .partnership-photo { min-height: 350px; }
  .book-cover { width: 88%; transform: perspective(900px) rotateY(5deg) rotateZ(-1.5deg); }
  .team-grid article { min-height: 200px; }
  .team-grid h3 { margin-top: 38px; }
  .footer-bottom nav { flex-direction: column; gap: 12px; }
  .internal-hero { min-height: 0; padding-top: 45px; }
  .internal-hero-copy h1 { font-size: clamp(50px, 16vw, 72px); }
  .internal-hero-media img { min-height: 320px; }
  .principles-grid, .support-grid, .contact-grid, .works-list { grid-template-columns: 1fr; }
  .timeline-list li { grid-template-columns: 1fr; gap: 8px; }
  .internal-program-media { min-height: 350px; }
  .internal-program-copy { padding: 42px 24px 55px; }
  .contact-form-heading, .funcei-contact-form { grid-template-columns: 1fr; }
  .contact-form-heading { gap: 18px; }
  .contact-form-heading > p:last-child { text-align: left; }
  .form-field-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
