/* Club de Leones de San Ramón — single stylesheet, no build step.
   Every custom property in :root is a token documented in /DESIGN.md. Change both together.
   Surfaces: sections are white by default; add .is-blue or .is-gold to switch a section's colors.
   Components read the role variables (--fg, --fg-soft, --accent, --line, --focus), so they adapt by themselves. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("/fonts/commissioner.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Color */
  --blue: #00529b;
  --navy-deep: #071d42;
  --gold: #ffcf06;
  --gold-soft: #fff6cf;
  --white: #ffffff;
  --mist: #eef3fa;
  --ink: #0f1e3d;
  --ink-soft: #3f4a64;
  --muted: #5e6579;
  --rule: #d5deea;
  --on-blue-soft: #d3e2f4;
  --on-navy-soft: #b4bfd6;
  --error: #b3261e;
  --success: #2e7d4f;

  /* Surface roles: white surface by default (see .is-blue / .is-gold / .is-white) */
  --surface: var(--white);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --accent: var(--blue);
  --line: var(--rule);
  --focus: var(--blue);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --text-hero: clamp(3.6rem, 1.4rem + 8.6vw, 8.25rem);
  --text-display-lg: clamp(2.4rem, 1.55rem + 3.3vw, 4.4rem);
  --text-display-md: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --text-display-sm: 1.5rem;
  --text-lead: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --text-body: 1.125rem;
  --text-small: 1rem;
  --text-caption: .875rem;
  --text-eyebrow: .8125rem;

  /* Space (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section: clamp(80px, 3.5rem + 6vw, 152px);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Depth */
  --shadow-ink: 4px 4px 0 var(--ink);
  --shadow-ink-lift: 7px 7px 0 var(--ink);
  --shadow-card: 10px 10px 0 var(--ink);
  --shadow-print: 0 1px 2px rgb(15 30 61 / .12), 0 24px 48px -24px rgb(15 30 61 / .55);

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.45, .5, 1);
  --dur-fast: 160ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  /* Texture: faint print grain for the blue and gold bands (white sections stay clean) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .08 0 0 0 0 .2 0 0 0 .34 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Surfaces ---------- */
.is-blue { --surface: var(--blue); --fg: var(--white); --fg-soft: var(--on-blue-soft); --accent: var(--gold); --line: rgb(255 255 255 / .22); --focus: var(--gold); background: var(--grain), var(--surface); color: var(--fg); }
.is-gold { --surface: var(--gold); --fg: var(--ink); --fg-soft: var(--ink); --accent: var(--ink); --line: rgb(15 30 61 / .22); --focus: var(--ink); background: var(--grain), var(--surface); color: var(--fg); }
.is-white { --surface: var(--white); --fg: var(--ink); --fg-soft: var(--ink-soft); --accent: var(--blue); --line: var(--rule); --focus: var(--blue); background-color: var(--surface); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: var(--text-display-lg); }
h3 { font-size: var(--text-display-sm); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
h1 em, h2 em, h3 em { font-weight: inherit; color: var(--accent); }
p { text-wrap: pretty; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }

.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-3) var(--space-4); background: var(--ink); color: var(--white); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); }

.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--text-eyebrow); font-weight: 700; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--fg-soft); max-width: 40ch; }

.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.split { display: grid; gap: var(--space-5); align-items: end; }
.section-intro { color: var(--fg-soft); max-width: 46ch; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); }
  .section-head.split .section-intro { justify-self: end; }
}

/* Links: underline that grows on hover */
.link, .link-arrow {
  text-decoration: none; font-weight: 600; color: var(--accent);
  background: linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat;
  transition: background-size var(--dur-fast) var(--ease-out);
}
.link:hover { background-size: 0 2px; background-position: 100% 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); }
.link-arrow .icon { transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  font-size: 1.0625rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast);
}
.btn .icon { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-ink); }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.btn-gold:hover, .btn-ink:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-ink-lift); }
.btn-ink:hover { box-shadow: 7px 7px 0 var(--white); }
.btn-gold:active, .btn-ink:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-whatsapp { background: #25d366; color: var(--ink); box-shadow: var(--shadow-ink); }  /* WhatsApp green: the one non-palette color, kept so the button is recognized instantly */
.btn-whatsapp:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-ink-lift); }
.btn-whatsapp:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.contact-list .btn-whatsapp { margin-top: var(--space-2); }
.btn-line { background: transparent; color: var(--fg); border-color: currentColor; }
.btn-line:hover { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.btn[disabled] { cursor: progress; opacity: .7; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 3px solid var(--gold); }
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-line linear both; animation-timeline: scroll(); animation-range: 0 120px; }
  @keyframes header-line { from { border-bottom-color: transparent; } }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 76px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand img { width: 34px; transition: transform var(--dur-med) var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name { display: grid; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.brand-name span { font-style: italic; font-weight: 400; color: var(--accent); }

.menu-btn, .menu-close {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 2px solid var(--fg); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer;
}
.nav { align-items: center; gap: var(--space-2); }
.nav > a:not(.btn) { position: relative; padding: 10px 12px; font-weight: 600; text-decoration: none; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-fast) var(--ease-out);
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn-line { margin-left: var(--space-2); }

@media (min-width: 1040px) {
  .menu-btn, .menu-close { display: none; }
  .nav[popover] { display: flex; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; color: inherit; }
}
@media (max-width: 1039.98px) {
  .nav:popover-open { display: flex; }
  .nav[popover] {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); height: 100dvh; margin: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-1);
    padding: var(--space-6) var(--space-6) var(--space-7);
    border: 0; border-left: 4px solid var(--gold);
    font-family: var(--font-display); font-size: 1.75rem;
  }
  .nav:popover-open { animation: slide-in var(--dur-med) var(--ease-out); }
  .nav::backdrop { background: rgb(7 29 66 / .55); }
  .nav > a:not(.btn) { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav .btn { margin: var(--space-4) 0 0; font-family: var(--font-body); }
  .menu-close { align-self: flex-end; margin-bottom: var(--space-5); }
  @keyframes slide-in { from { transform: translateX(100%); } }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(80px, 9vw, 136px); }
.hero-grid { display: grid; gap: clamp(48px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

.hero-title { margin-bottom: var(--space-6); font-size: var(--text-hero); font-weight: 400; line-height: .9; letter-spacing: -.04em; }
.hero-title .line { display: block; }
.hero-title em { position: relative; z-index: 0; display: inline-block; padding-right: .06em; }
.scribble { position: absolute; z-index: -1; left: -3%; bottom: .02em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--navy-deep); stroke-opacity: .55; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease-out) 900ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-copy > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 100ms; }
.hero-copy > :nth-child(3) { animation-delay: 260ms; }
.hero-copy > :nth-child(4) { animation-delay: 380ms; }
.hero-copy > :nth-child(5) { animation-delay: 500ms; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-7); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.hero-facts dt { font-size: var(--text-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }
.hero-facts dd { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; }

/* Hero art: the club logo, stamped in, floating gently */
.hero-art { justify-self: center; }
.hero-logo {
  width: clamp(220px, 30vw, 400px); rotate: -4deg;
  filter: drop-shadow(0 26px 30px rgb(7 29 66 / .45));
  animation: stamp 800ms var(--ease-spring) 300ms both, float 7s ease-in-out 1.2s infinite;
}
@keyframes stamp { from { opacity: 0; transform: scale(1.9) rotate(-24deg); } }
@keyframes float { 50% { translate: 0 -12px; } }

/* Handwritten note (one per screen) */
.note {
  position: relative; font-family: var(--font-hand); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.05;
  text-align: right; rotate: -3deg; color: var(--accent);
}
.note-arrow { position: absolute; right: 70%; top: -40px; width: 44px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 16px; border-block: 2px solid var(--ink); rotate: -1.2deg; margin: -24px -2vw; position: relative; z-index: 1; }  /* negative margins cover the wedges the tilt opens */
.marquee-track { display: flex; align-items: center; gap: var(--space-5); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); font-style: italic; white-space: nowrap; }
.marquee svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story-grid { display: grid; gap: var(--space-8); }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-9); }
  .story-head { position: sticky; top: 120px; align-self: start; }
}
.year {
  margin-top: var(--space-5);
  font-family: var(--font-display); font-size: clamp(6.5rem, 3rem + 14vw, 15rem); font-weight: 600; line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  background: linear-gradient(var(--gold) 0 0) 0 100% / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
@supports (animation-timeline: view()) {
  .year { animation: fill-up linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  @keyframes fill-up { from { background-size: 100% 0%; } }
}
.story-body { display: grid; gap: var(--space-5); align-content: start; }
.story-body > p:not(.lead) { color: var(--ink-soft); max-width: 58ch; }

.acta {
  position: relative; margin-top: var(--space-6); padding: clamp(28px, 4vw, 44px);
  background: var(--gold-soft); border: 1px solid rgb(15 30 61 / .14); box-shadow: var(--shadow-print); rotate: -.6deg;
}
.acta::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(15 30 61 / .14); pointer-events: none; }
.acta-seal { position: absolute; top: -26px; right: -14px; width: 92px; rotate: 12deg; filter: drop-shadow(0 4px 6px rgb(15 30 61 / .25)); }
.acta-kicker { font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.acta h3 { margin: var(--space-2) 0 var(--space-5); padding-right: 64px; font-size: var(--text-display-md); font-weight: 400; }
.acta-rows { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.acta-rows div { display: flex; gap: var(--space-2); align-items: baseline; }
.acta-rows dt { flex: none; font-weight: 700; }
.acta-rows dt::after { content: ""; display: inline-block; width: 2.2em; margin-left: var(--space-2); border-bottom: 2px dotted rgb(15 30 61 / .3); }
.acta-purpose { color: var(--ink-soft); margin-bottom: var(--space-3); }
.acta-list { display: grid; gap: var(--space-2); }
.acta-list li { display: flex; gap: var(--space-3); font-family: var(--font-display); font-size: 1.15rem; }
.acta-list li::before { content: "—"; color: var(--blue); }

.pillars { display: grid; gap: var(--space-6); margin-top: clamp(64px, 9vw, 128px); padding-top: var(--space-7); border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 0; } .pillars li + li { border-left: 1px solid var(--rule); } .pillars li { padding-inline: var(--space-6); } .pillars li:first-child { padding-left: 0; } }
.pillar-num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--blue); }
.pillars h3 { margin: var(--space-2) 0 var(--space-3); font-size: var(--text-display-md); font-weight: 400; }
.pillars p { color: var(--ink-soft); }

/* ---------- Causes ---------- */
.cause-list { display: grid; column-gap: var(--space-8); counter-reset: cause; }
@media (min-width: 900px) { .cause-list { grid-template-columns: 1fr 1fr; } }
.cause { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; padding-block: var(--space-6); border-top: 1px solid var(--line); counter-increment: cause; }
.cause h3::before { content: counter(cause, decimal-leading-zero); display: block; margin-bottom: var(--space-1); font-family: var(--font-body); font-size: var(--text-caption); font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.cause p { margin-top: var(--space-2); color: var(--fg-soft); }

.cause-icon { width: 84px; height: 84px; filter: drop-shadow(0 4px 6px rgb(7 29 66 / .35)); transition: rotate var(--dur-med) var(--ease-spring), translate var(--dur-med) var(--ease-spring); }
.cause:hover .cause-icon { rotate: -8deg; translate: 0 -4px; }

/* Stamp: perforated postage stamp (used for the "email ready" state) */
.stamp-wrap { display: inline-block; filter: drop-shadow(0 2px 2px rgb(7 29 66 / .3)); }
.stamp {
  --r: 4px;
  --c: var(--gold);
  display: grid; place-items: center; width: 84px; aspect-ratio: 1; color: var(--ink);
  background: linear-gradient(var(--c) 0 0) center / calc(100% - 14px) calc(100% - 14px) no-repeat, var(--white);
  -webkit-mask: radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask: radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.stamp svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.causes-cta { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--line); font-family: var(--font-display); font-size: var(--text-display-sm); }
.causes-cta .link-arrow { font-family: var(--font-body); font-size: var(--text-body); }

/* ---------- Presidents ---------- */
.president-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-5); }
@media (min-width: 680px) { .president-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .president-list { grid-template-columns: repeat(6, 1fr); } }
.president { display: flex; flex-direction: column; align-items: center; text-align: center; }
.oval {
  width: 100%; max-width: 200px; aspect-ratio: 4 / 5; border-radius: 50%; overflow: hidden;
  outline: 2px solid rgb(0 82 155 / .4); outline-offset: 6px;
  transition: outline-color var(--dur-med), outline-offset var(--dur-med) var(--ease-spring);
}
.oval img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.9); transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-med); }
.president:hover .oval { outline-color: var(--blue); outline-offset: 10px; }
.president:hover .oval img { transform: scale(1.06); filter: saturate(1.05); }
.president h3 { margin-top: var(--space-6); font-size: 1.2rem; }
.terms { margin-top: var(--space-2); font-size: var(--text-caption); font-weight: 700; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.role { margin-top: var(--space-1); font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.1; color: var(--blue); }
.president.is-current .oval { outline: 3px solid var(--gold); box-shadow: 0 0 0 14px rgb(255 207 6 / .3); }
.badge {
  position: relative; z-index: 1; margin-top: -16px; padding: 6px 14px;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; rotate: -3deg;
}
.president.is-current h3 { margin-top: var(--space-4); }
@media (max-width: 420px) { .badge { font-size: .6875rem; letter-spacing: .04em; padding: 5px 10px; } }

/* Founders photo, under the presidents */
.founders { display: grid; gap: var(--space-7); align-items: center; margin-top: clamp(80px, 10vw, 140px); padding-top: var(--space-7); border-top: 2px solid var(--ink); }
@media (min-width: 960px) { .founders { grid-template-columns: 1fr 1.45fr; gap: var(--space-9); } }
.founders h3 { margin-bottom: var(--space-4); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 400; }
.founders-copy p:not(.eyebrow) { color: var(--ink-soft); max-width: 40ch; }
.founders-photo { position: relative; margin: 0 var(--space-3) var(--space-8); }
.founders-photo .note { position: absolute; right: 0; bottom: -64px; }

.print { position: relative; padding: 12px 12px 14px; background: var(--white); box-shadow: var(--shadow-print); rotate: 1.8deg; }
.print::before, .print::after {   /* two strips of yellow tape */
  content: ""; position: absolute; width: 112px; height: 30px;
  background: rgb(255 214 64 / .72); box-shadow: 0 1px 2px rgb(15 30 61 / .12);
}
.print::before { top: -14px; left: 12%; rotate: -5deg; }
.print::after { top: -12px; right: 10%; rotate: 4deg; }
.print img { width: 100%; }
.seal {
  position: absolute; z-index: 1; left: clamp(-36px, -3vw, -12px); bottom: -11%;
  width: clamp(84px, 10vw, 140px); rotate: -11deg;
  filter: drop-shadow(0 10px 14px rgb(15 30 61 / .32));
}
@supports (animation-timeline: view()) {
  .seal { animation: stamp linear both; animation-timeline: view(); animation-range: entry 40% entry 90%; }
}

/* ---------- Donate ---------- */
.donate { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 128px); border-block: 2px solid var(--ink); }
.donate-watermark { position: absolute; right: -6%; top: 50%; width: min(52vw, 560px); translate: 0 -50%; rotate: 14deg; opacity: .1; filter: grayscale(1) contrast(3); pointer-events: none; }
.donate-grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .donate-grid { grid-template-columns: 1.2fr 1fr; } }
.donate h2 { margin-bottom: var(--space-5); }
.sinpe-card {
  justify-self: start; padding: clamp(28px, 4vw, 40px); width: min(100%, 440px);
  border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); rotate: 1.5deg;
}
@media (min-width: 900px) { .sinpe-card { justify-self: end; } }
.sinpe-label { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sinpe-number { margin: var(--space-3) 0 var(--space-5); font-family: var(--font-display); font-size: clamp(2.8rem, 2rem + 3vw, 4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.sinpe-note { margin-top: var(--space-4); font-size: var(--text-small); color: var(--ink-soft); }
[data-copy].is-done { background: var(--success); color: var(--white); border-color: var(--success); }

/* ---------- Help form ---------- */
.help-grid { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 960px) { .help-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-9); } .help-copy { position: sticky; top: 120px; } }
.help-copy h2 { margin-bottom: var(--space-5); }
.steps { display: grid; gap: var(--space-4); margin-top: var(--space-7); }
.steps li { display: flex; align-items: center; gap: var(--space-4); font-family: var(--font-display); font-size: 1.3rem; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 2px solid var(--ink); border-radius: 50%; font-family: var(--font-body); font-size: 1rem; font-weight: 700; background: var(--gold); color: var(--ink); }

.form-card { padding: clamp(24px, 4vw, 44px); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 10px 10px 0 var(--gold); }
#help-form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field-row { display: grid; gap: var(--space-5); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: var(--text-small); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--mist); border: 1.5px solid var(--rule); border-bottom: 2px solid var(--ink); border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  appearance: none; cursor: pointer; padding-right: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1e3d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 20px no-repeat, var(--mist);
}
.field ::placeholder { color: var(--muted); opacity: .85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgb(255 207 6 / .6); }
.field [aria-invalid="true"] { border-color: var(--error); border-bottom-color: var(--error); }
.form-status { min-height: 1.6em; font-size: var(--text-small); font-weight: 600; }
.form-status.is-error { color: var(--error); }
.form-note { margin-top: calc(-1 * var(--space-2)); font-size: var(--text-caption); color: var(--muted); text-align: center; }
.form-done { display: grid; justify-items: start; gap: var(--space-4); }
.form-done:focus { outline: none; }
.form-done .stamp { width: 96px; }
.form-done .stamp svg { stroke-width: 1.9; }
.form-done .actions { margin-top: var(--space-2); }
.form-done:not([hidden]) .stamp-wrap { animation: stamp 700ms var(--ease-spring) both; }
.form-done h3 { font-size: var(--text-display-md); font-weight: 400; }
.form-done p { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-9); } }
.contact h2 { margin-bottom: var(--space-4); }
.contact-list { display: grid; gap: var(--space-5); margin: var(--space-7) 0; }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--gold); }
.contact-label { font-size: var(--text-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.social-link { display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px 18px 10px 14px; border: 2px solid var(--ink); border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.social-link:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.map { position: relative; padding: 12px; background: var(--white); box-shadow: var(--shadow-print); outline: 1px solid var(--rule); rotate: 1.2deg; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* ---------- Credit bar (between the last section and the footer) ---------- */
.credit-bar { border-top: 2px solid var(--ink); }
.credit-bar a { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 60px; padding: var(--space-2) var(--gutter); font-weight: 600; text-decoration: none; }
.credit-bar strong { font-weight: 800; }
.credit-logo { width: 38px; transition: rotate var(--dur-med) var(--ease-spring), scale var(--dur-med) var(--ease-spring); }
.credit-bar a:hover .credit-logo { rotate: -8deg; scale: 1.08; }

/* ---------- Footer ---------- */
.site-footer { --focus: var(--gold); padding-block: var(--space-9) var(--space-6); background: var(--navy-deep); color: var(--on-navy-soft); font-size: var(--text-small); }
.footer-grid { display: grid; gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid rgb(180 191 214 / .25); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; align-items: start; } }
.footer-brand { display: flex; gap: var(--space-4); align-items: center; }
.footer-logo { width: 56px; }
.footer-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); line-height: 1.2; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--space-2) var(--space-7); }
.footer-nav a, .footer-bottom a { text-decoration: none; transition: color var(--dur-fast); }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--gold); }
.benemerita { display: flex; gap: var(--space-4); align-items: center; }
.benemerita img { width: 72px; }
.benemerita p { display: grid; line-height: 1.35; }
.benemerita strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-5); font-size: var(--text-caption); }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid rgb(180 191 214 / .4); border-radius: 50%; }
.footer-social a:hover { border-color: var(--gold); }

/* ---------- 404 ---------- */
.lost { min-height: 100dvh; display: grid; place-items: center; padding: var(--gutter); text-align: center; }
.lost img { width: 120px; margin: 0 auto var(--space-6); rotate: -8deg; }
.lost h1 { font-size: var(--text-display-lg); margin-bottom: var(--space-4); }
.lost p:not(.eyebrow) { color: var(--fg-soft); max-width: 40ch; margin: 0 auto var(--space-6); }
.lost .eyebrow { justify-content: center; }

/* ---------- Scroll reveal (CSS only; browsers without scroll timelines simply show content) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
  @keyframes reveal { from { opacity: 0; translate: 0 36px; } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .scribble path { stroke-dashoffset: 0; }
  .marquee-track { transform: none; }
}
