/* REAC – website styles
   Brand: REAC – Brand guidelines v1 (27 Oct 2026)
   Ink #13202E · Cream #F4EFE6 · Terracotta #C2603A (single accent)
   Inter Tight 800 (headlines) · IBM Plex Sans 400/500 (body) · IBM Plex Mono 500 (labels) */

/* Fonts are self-hosted (no requests to Google). Files in assets/fonts, SIL Open Font License (OFL-*.txt). */
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/inter-tight-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #13202E;
  --cream: #F4EFE6;
  --paper: #FBF8F2;
  --terracotta: #C2603A;
  --terracotta-light: #E8956D;   /* accent text on ink */
  --terracotta-deep: #A4482A;    /* accent text on cream */
  --slate: #2A3746;              /* secondary text on cream */
  --grey: #5B6470;               /* captions */
  --line: #E2D9C8;
  --ink-line: #2F3D4D;
  --ink-soft: #C9CDD2;

  --font-head: "Inter Tight", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --wrap: 1200px;
  --gutter: 32px;
  --radius: 12px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 22ch; margin-bottom: 40px; }
sub { font-size: 0.62em; line-height: 0; vertical-align: baseline; position: relative; top: 0.22em; margin-left: 0.02em; letter-spacing: 0; }
h1 sub, h2 sub { font-size: 0.46em; line-height: 0; vertical-align: baseline; position: relative; top: 0.12em; margin-left: 0.04em; letter-spacing: 0; }
h3 { font-size: 22px; letter-spacing: -0.005em; }
p { margin: 0; }
cite { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--terracotta-light); }

.lead { font-size: 21px; line-height: 1.6; color: var(--slate); }

.source { font-size: 14px; color: var(--grey); margin-top: 24px; }
.source--light { color: var(--ink-soft); }
.source--light a { color: var(--terracotta-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--terracotta); color: var(--cream); }
.btn--accent:hover { background: var(--terracotta-deep); color: var(--cream); }
.btn--ghost { border: 1px solid var(--ink-soft); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(244,239,230,.06); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,32,46,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 36px; height: 36px; border-radius: 6px; box-shadow: 0 0 0 1px var(--ink-line); }
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.035em; color: var(--cream); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; border: 1px solid var(--ink-line); border-radius: 999px; padding: 3px; }
.lang button {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .06em;
  background: none; border: 0; color: var(--ink-soft); cursor: pointer;
  min-width: 40px; height: 30px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--cream); }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: var(--cream); border-radius: 2px; }

/* Hero */
.hero { background: var(--ink); color: var(--cream); overflow: hidden; }
.hero-inner { display: block; padding-top: 112px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.015em; line-height: 1.02; max-width: 16ch; }
.hero-sub { font-size: 22px; color: var(--ink-soft); margin-top: 18px; }
.rule { width: 64px; height: 3px; background: var(--terracotta); margin: 32px 0; }
.hero-lead { font-size: 20px; color: #E4E1DA; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


/* Sections */
.section { padding: 112px 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--cream); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pillars li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars .num { grid-row: span 2; font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--terracotta-deep); padding-top: 3px; }
.pillars h3 { margin-bottom: 4px; }
.pillars p { color: var(--slate); font-size: 17px; }

.principles { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principles li { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.principles strong { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.principles span { font-size: 15px; color: var(--slate); line-height: 1.5; }

/* Challenge */
#reto h2 { max-width: 30ch; }
.quote { margin: 0 0 64px; padding: 40px 44px; background: var(--cream); border-left: 4px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: 20px; font-size: 14px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 6px 14px; }

.gaps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gaps article { background: #fff8; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.gaps h3 { font-size: 19px; margin-bottom: 10px; }
.gaps p { font-size: 15px; color: var(--slate); line-height: 1.55; }

.answer { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.answer p { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.005em; line-height: 1.25; max-width: 30ch; }

/* Potential */
.section--ink h2 { color: var(--cream); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink-line); }
.stat { padding: 32px 24px 32px 0; border-bottom: 1px solid var(--ink-line); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -0.01em; line-height: 1; color: var(--cream); margin-bottom: 14px; white-space: nowrap; }
.stat-num span { font-size: .45em; letter-spacing: 0; color: var(--ink-soft); margin-left: 2px; }
.stat-num--accent { color: var(--terracotta-light); }
.stat p:not(.stat-num) { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

.chart { margin: 64px 0 0; }
.chart-title { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.bars { position: relative; display: grid; gap: 14px; padding-top: 34px; --max: 80; --label: 140px; }
.bar-row { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; gap: 16px; }
.bar-label { font-size: 15px; color: var(--ink-soft); }
.bar { position: relative; height: 40px; display: flex; align-items: center; }
.bar-fill { display: block; height: 100%; width: calc(var(--v) / var(--max) * 100%); background: #3A4A5C; border-radius: 0 4px 4px 0; }
.bar b { position: relative; z-index: 1; background: var(--ink); padding: 0 6px; margin-left: 6px; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--cream); }
.bar-row--hl .bar-fill { background: var(--terracotta); }
.bar-row--hl .bar-label { color: var(--cream); font-weight: 500; }
.residual { position: absolute; top: 0; bottom: 0; left: calc(var(--label) + 16px + (100% - var(--label) - 16px) * var(--x) / var(--max)); border-left: 2px dashed var(--terracotta-light); pointer-events: none; }
.residual span { position: absolute; top: 0; left: 8px; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--terracotta-light); }
.chart-legend { display: none; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--terracotta-light); }
.chart-legend .dash { width: 0; height: 18px; border-left: 2px dashed var(--terracotta-light); }
.chart-note { margin-top: 24px; font-size: 15px; color: var(--ink-soft); max-width: 60ch; }

/* Map */
.map-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.map-copy .lead { margin-bottom: 20px; }
.map-copy p:last-child { color: var(--slate); }
.map-placeholder {
  position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden;
  background: var(--paper); border: 1px dashed #CDBFA8;
}
.map-dots { position: absolute; inset: 0; background-image: radial-gradient(#CDBFA8 1.4px, transparent 1.6px); background-size: 18px 18px; opacity: .8; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(19,32,46,.10); transform: translate(-50%, -50%); }
.pin:nth-of-type(3n) { background: var(--terracotta); box-shadow: 0 0 0 6px rgba(194,96,58,.15); }
.ribbon {
  position: absolute; top: 34px; right: -58px; z-index: 2; width: 240px; text-align: center; transform: rotate(35deg);
  background: var(--terracotta); color: var(--cream);
  font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0;
}
.map-label {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 999px;
}

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.person img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; }
.person h3 { font-size: 26px; }
.role { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta-deep); margin: 8px 0 14px; }
.person p:last-child { font-size: 16px; color: var(--slate); line-height: 1.6; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--cream); padding: 88px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: var(--cream); margin-bottom: 12px; max-width: none; }
.cta-band p { color: var(--ink-soft); max-width: 46em; }

/* Footer */
.site-footer { background: var(--cream); padding: 64px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; align-items: start; }
.footer-logo { width: 220px; height: auto; margin: -24px 0 0 -24px; }
.footer-cols { display: flex; gap: 72px; }
.footer-head { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.footer-cols p { font-size: 15px; margin-bottom: 6px; }
.footer-cols a { color: var(--ink); text-decoration: none; }
.footer-cols a:hover { color: var(--terracotta-deep); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--grey); }

/* Responsive */
@media (max-width: 1040px) {
  .principles, .gaps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .about-grid, .map-grid { grid-template-columns: 1fr; gap: 48px; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .menu-btn { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--ink-line); }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 72px 0; }
  h2 { margin-bottom: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .principles, .gaps, .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .quote { padding: 28px 22px; }
  .person { grid-template-columns: 1fr; padding: 24px; }
  .person img { width: 112px; height: 112px; }
  .bars { --label: 96px; }
  .bar-label { font-size: 14px; }
  .residual span { display: none; }
  .bars { padding-top: 0; }
  .chart-legend { display: flex; }
  .lead { font-size: 19px; }
  .ribbon { top: 22px; right: -70px; font-size: 12px; }
}
