/* AI Literacy Foundation — design system v2 */

:root {
  /* Warm-cream palette */
  --bg: #F7F4EE;
  --bg-elev: #FDFBF6;
  --bg-deep: #EFEAE0;
  --ink: #15140F;
  --ink-soft: #4A463E;
  --ink-quiet: #87827A;
  --line: #E0D9C9;
  --line-soft: #ECE6D8;
  --accent: #B05433;
  --accent-soft: #D08667;
  --accent-bg: #F0E2D8;
  --accent-deep: #8E3F22;

  /* Typography */
  --serif: "Source Serif 4", "Source Serif Pro", "Lyon", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Sizing */
  --maxw: 1180px;
  --maxw-narrow: 680px;
  --maxw-data: 880px;
  --maxw-wide: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Type scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 6vw, 4rem);
  --fs-4xl: clamp(2.75rem, 8vw, 5rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 80px; }
:target { scroll-margin-top: 80px; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }

body {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  font-feature-settings: "kern", "liga", "calt", "onum";
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px circle at 100% -10%, rgba(176, 84, 51, 0.025), transparent 50%),
    radial-gradient(900px circle at -10% 60%, rgba(176, 84, 51, 0.015), transparent 50%);
  background-attachment: fixed;
}

::selection { background: var(--accent); color: var(--bg); }
::-moz-selection { background: var(--accent); color: var(--bg); }

/* Skip to content (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.625rem 1rem;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 4px;
  z-index: 200;
  transition: left 200ms var(--ease);
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 320ms var(--ease), background 320ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  max-width: var(--maxw-wide);
  margin: 0 auto;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 200ms var(--ease);
}
.brand:hover { opacity: 0.7; }

/* Brand pulse mark */
.brand .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.brand .dot::before,
.brand .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: signal 2.8s var(--ease-out) infinite;
}
.brand .dot::after { animation-delay: 1.4s; }
@keyframes signal {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  transition: color 200ms var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }

.cta-donate {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: background 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.cta-donate:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(176, 84, 51, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.nav-toggle:hover { background: var(--bg-elev); border-color: var(--ink-quiet); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.nav-toggle svg { transition: transform 280ms var(--ease); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

@media (max-width: 760px) {
  .site-header__inner { padding: 0.75rem var(--gutter); gap: 0.75rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0;
    transform: translateY(-200%);
    transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
  .nav.is-open {
    transform: translateY(0);
    box-shadow: 0 12px 24px -16px rgba(21, 20, 15, 0.18);
  }
  .nav a {
    font-size: var(--fs-md);
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .cta-donate { font-size: var(--fs-sm); padding: 0.55rem 1rem; }
  /* Language toggle injected by motion.js into the mobile nav */
  .nav-lang-mobile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-quiet);
  }
  .nav-lang-mobile a,
  .nav-lang-mobile span.active {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border-bottom: none;
    font-size: var(--fs-xs);
    color: var(--ink-quiet);
    font-weight: 500;
  }
  .nav-lang-mobile .active {
    background: var(--ink);
    color: var(--bg);
  }
}
/* Hide injected mobile lang toggle on desktop (it lives inside the .nav which is desktop-visible too) */
@media (min-width: 761px) {
  .nav-lang-mobile { display: none !important; }
}

/* HERO */
.hero {
  padding: clamp(3.5rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4.5rem);
  position: relative;
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.hero-mark .signal {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-mark .signal::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(176, 84, 51, 0.3);
  animation: hero-pulse 2.6s var(--ease-out) infinite;
}
@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(176, 84, 51, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(176, 84, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 84, 51, 0); }
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-quiet);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-3xl);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  max-width: 22ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: underline-grow 1.6s 1.2s var(--ease-out) forwards;
  opacity: 0.55;
}
@keyframes underline-grow {
  to { transform: scaleX(1); }
}

.hero .lede {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42rem;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

.btn {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(176, 84, 51, 0.22);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn .arrow { transition: transform 240ms var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* SECTIONS */
.section {
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 80px;
}
.section--dense { padding: clamp(2.5rem, 5vh, 4rem) 0; }
.section--flush { border-top: none; }

.section-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-2xl);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 28ch;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin-bottom: 0.75rem;
}
h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
p { color: var(--ink-soft); max-width: 38rem; line-height: 1.7; }
.section p { margin-bottom: 1.25rem; }
.lead { font-size: var(--fs-lg); color: var(--ink); line-height: 1.55; }

/* Inline link style */
.prose a,
a.inline-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(176, 84, 51, 0.3);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.prose a:hover,
a.inline-link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

/* STATUS */
.status {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--mono);
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.status:hover { border-color: var(--accent-soft); }
.status__title {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.status__title .pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.status__title .pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: status-ring 2.4s var(--ease-out) infinite;
}
@keyframes status-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}
.status__row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.status__row:last-child { border-bottom: none; }
.status__label { white-space: nowrap; flex-shrink: 0; }
.status__leader { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); margin: 0 0.25rem; }

/* Status block on mobile: dedicated mobile design, NOT a shrunk desktop */
@media (max-width: 640px) {
  .status {
    padding: 1.25rem 1.25rem 1.25rem;
    background: var(--bg-elev);
  }
  .status__title {
    font-size: 0.6875rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .status__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--fs-sm);
  }
  .status__row:last-of-type { border-bottom: none; }
  .status__leader { display: none; }
  .status__label {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-soft);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .status__value {
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
    overflow-wrap: anywhere;
    flex-shrink: 0;
  }
  /* If a value contains long text (Legal form), allow it to wrap to next line */
  .status__row--wide {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .status__row--wide .status__value {
    text-align: left;
    white-space: normal;
    font-size: 0.9375rem;
  }
  .status__row--wide .status__label {
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-quiet);
  }
  .status__foot {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    font-size: 0.6875rem;
  }
}
.status__value {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: color 240ms var(--ease);
}
.status__value--accent { color: var(--accent); }
/* Stacked value: multiple verifiers shown on their own lines */
.status__value--stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: normal;
  line-height: 1.35;
  gap: 0;
}
/* Center the row's children vertically when value is stacked, so the dotted
   leader and label sit between the two value lines instead of at the top. */
.status__row--stacked { align-items: center; }
.status__row--stacked .status__leader { transform: none; }
@media (max-width: 640px) {
  .status__value--stacked {
    align-items: flex-start;
  }
}
.status__row { transition: background 240ms var(--ease); border-radius: 2px; }
.status__row:hover { background: rgba(176, 84, 51, 0.04); }
.status__row:hover .status__value { color: var(--accent); }
.status__foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* NUMBERED LIST */
.list-numbered { counter-reset: itm; }
.list-numbered > li {
  counter-increment: itm;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.75rem;
  transition: padding 320ms var(--ease);
}
.list-numbered > li:last-child { padding-bottom: 1rem; }
.list-numbered > li::before {
  content: counter(itm, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  padding-top: 0.5rem;
  transition: color 240ms var(--ease);
}
.list-numbered > li:hover::before { color: var(--accent-deep); }
.list-numbered h3 { margin-bottom: 0.875rem; }
.list-numbered p { color: var(--ink-soft); line-height: 1.7; max-width: 38rem; }
@media (max-width: 600px) {
  .list-numbered > li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* SERVICES */
.services { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 1.5rem; }
.service {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  transition: border-color 320ms var(--ease);
  align-items: start;
}
.service:hover { border-top-color: var(--accent-soft); }
.service:hover .service__tag::before { width: 22px; }
.service h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  letter-spacing: -0.012em;
}
.service p {
  line-height: 1.75;
  max-width: 42rem;
}
@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }
  .service h3 { font-size: 1.25rem; }
}
.service__tag {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.service__tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
  transition: width 320ms var(--ease);
}
.service h3 { margin-bottom: 0.75rem; }

/* FOUNDER PORTRAIT */
.founder-portrait-wrap {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 200px;
  margin: 0.5rem 0 1.75rem;
  flex-shrink: 0;
}
.founder-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 2px solid var(--accent);
  display: block;
  box-shadow: 0 14px 30px -20px rgba(21, 20, 15, 0.28);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
  background: var(--bg-elev);
}
.founder-portrait:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(176, 84, 51, 0.32);
}
.founder-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.22;
  pointer-events: none;
}
.founder-caption {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-top: 1rem;
}

/* Magazine-style layout on wider screens */
@media (min-width: 760px) {
  .founder-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
  }
  .founder-portrait-wrap {
    margin: 0;
    width: 240px;
    height: 240px;
    position: sticky;
    top: 100px;
  }
  .founder-portrait-wrap::before { inset: -14px; }
}
@media (max-width: 759px) {
  .founder-portrait-wrap { width: 160px; height: 160px; margin: 0 0 1.5rem; }
  .founder-portrait-wrap::before { inset: -9px; }
}

/* CONTACT FORM */
.contact-form { margin-top: 2rem; }
.contact-form .form-row { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.contact-form label {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 0.95rem;
  width: 100%;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { font-family: var(--serif); line-height: 1.55; resize: vertical; min-height: 8rem; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(176, 84, 51, 0.12);
}
.contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%2387827A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.contact-form button[type="submit"] { margin-top: 0.5rem; cursor: pointer; }
.form-note {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  color: var(--ink-quiet);
  margin-top: 1rem;
}
.form-status {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  display: none;
}
.form-status.success { display: block; background: var(--accent-bg); color: var(--ink); border: 1px solid var(--accent-soft); }
.form-status.error { display: block; background: #F4E2DE; color: var(--ink); border: 1px solid var(--accent); }

/* Sending state on submit button */
.btn.is-sending {
  pointer-events: none;
  opacity: 0.7;
  cursor: progress;
}

/* SUCCESS PANEL — shown after form submission */
.form-success {
  margin-top: 2rem;
  padding: 2.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  animation: hero-rise 600ms var(--ease-out);
}
.form-success::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}
.form-success__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.form-success__mark svg { width: 30px; height: 30px; }
.form-success__title {
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.018em;
}
.form-success__lede {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 0.75rem;
  max-width: 36rem;
}
.form-success__note {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink-quiet);
  max-width: 36rem;
}
@media (max-width: 640px) {
  .form-success { padding: 1.5rem; margin-top: 1.5rem; }
  .form-success__mark { width: 48px; height: 48px; margin-bottom: 1rem; }
  .form-success__mark svg { width: 26px; height: 26px; }
  .form-success__title { font-size: var(--fs-xl); }
  .form-success__lede { font-size: var(--fs-md); }
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 3.5rem 0 2.25rem;
  margin-top: 5rem;
  font-family: var(--sans);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 2.25rem; }
}
.site-footer__heading {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 1rem;
}
.site-footer ul li { margin-bottom: 0.45rem; }
.site-footer a {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  transition: color 220ms var(--ease);
}
.site-footer a:hover { color: var(--accent); }
.site-footer__addr {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}
.site-footer__addr strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 0.35rem; }
.site-footer__legal {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-quiet);
  flex-wrap: wrap;
}
.site-footer__legal a { color: var(--ink-quiet); }
.site-footer__legal a:hover { color: var(--accent); }
.lang-toggle a { padding: 0.2rem 0.65rem; border-radius: 999px; transition: background 200ms var(--ease), color 200ms var(--ease); }
.lang-toggle a.active { background: var(--ink); color: var(--bg); }
.lang-toggle a:not(.active):hover { background: var(--line-soft); color: var(--ink); }

/* UTILITIES */
.prose p { margin-bottom: 1.125rem; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-quiet); }
.mono { font-family: var(--mono); }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

/* CARDS */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 280ms var(--ease), transform 280ms var(--ease), box-shadow 280ms var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--ease-out);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(176, 84, 51, 0.2);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: var(--fs-sm); margin-bottom: 1rem; flex: 1; }
.card .arrow-link {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card .arrow-link span { transition: transform 240ms var(--ease); display: inline-block; }
.card:hover .arrow-link span { transform: translateX(4px); }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) { .cards-3 { grid-template-columns: 1fr; } }

/* PULLOUT */
.pullout {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: 0.75rem 0 0.75rem 1.75rem;
  margin: 1.5rem 0;
  max-width: 36rem;
  position: relative;
}
.pullout::before {
  content: "\201C";
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.22;
  font-style: normal;
  line-height: 1;
  font-family: var(--serif);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.pullout:hover::before { transform: scale(1.08) translateY(-2px); opacity: 0.32; }

/* FRAMEWORKS */
/* Section heading anchoring a multi-column body below */
.section-heading {
  max-width: 32ch;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}
.grid-2--top { align-items: start; }

.frameworks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0;
}
@media (max-width: 640px) { .frameworks { grid-template-columns: 1fr; } }
.framework {
  position: relative;
  padding: 1.1rem 1.25rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}
.framework::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  opacity: 0.35;
  transition: opacity 240ms var(--ease), width 240ms var(--ease);
}
.framework:hover {
  border-color: var(--accent-soft);
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -12px rgba(176, 84, 51, 0.22);
}
.framework:hover::before {
  opacity: 1;
  width: 2.5rem;
}
.framework strong {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  transition: letter-spacing 240ms var(--ease);
}
.framework:hover strong { letter-spacing: 0.14em; }
.framework span {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.45;
}

/* LEGAL BLOCK */
.legal-block {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}
@media (max-width: 560px) { .legal-block { grid-template-columns: 1fr; } }
.legal-block .legal-row { display: flex; flex-direction: column; gap: 0.15rem; }
.legal-block .legal-label {
  font-size: var(--fs-xs);
  color: var(--ink-quiet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-block .legal-value { color: var(--ink); font-weight: 500; }

/* DONATE BLOCKS */
.donate-block {
  padding: 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
  position: relative;
  overflow: hidden;
}
.donate-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  transition: height 320ms var(--ease-out);
}
.donate-block:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -14px rgba(176, 84, 51, 0.18);
}
.donate-block:hover::before { height: 100%; }
.donate-block h3 { color: var(--ink); margin-bottom: 0.75rem; }

/* BACK TO TOP — appears after scrolling, smooth return */
.scroll-top {
  position: fixed;
  bottom: clamp(1rem, 3vh, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
  z-index: 95;
  box-shadow: 0 4px 14px -4px rgba(21, 20, 15, 0.18);
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px -6px rgba(176, 84, 51, 0.35);
}
.scroll-top:active { transform: scale(0.94); }
.scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.scroll-top svg {
  width: 18px;
  height: 18px;
  transition: transform 240ms var(--ease);
}
.scroll-top:hover svg { transform: translateY(-2px); }
@media print { .scroll-top { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: opacity 0.01ms; transform: none !important; }
  .scroll-top svg { transition: none; }
}

/* SCROLL PROGRESS — thin terracotta bar at top of viewport */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200;
  transition: width 80ms linear, opacity 240ms var(--ease);
  opacity: 0;
  pointer-events: none;
}
.scroll-progress.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* CHAPTER INDICATOR — sticky "Part 01 / 03 · The issues" on roadmap */
.chapter-indicator {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vh, 2rem);
  z-index: 90;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
  pointer-events: none;
  box-shadow: 0 2px 12px -8px rgba(21, 20, 15, 0.18);
}
.chapter-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.chapter-indicator__current {
  color: var(--accent);
  font-weight: 500;
}
.chapter-indicator__sep { color: var(--ink-quiet); opacity: 0.6; }
.chapter-indicator__total { color: var(--ink-quiet); }
.chapter-indicator__label {
  color: var(--ink);
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
  transition: color 320ms var(--ease);
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 500;
}
@media (max-width: 1024px) {
  .chapter-indicator { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-indicator { transition: opacity 0.01ms; }
}

/* AUDIENCE STATEMENT — quiet manifesto line, home page */
.section--statement {
  padding-top: clamp(2rem, 5vh, 3.5rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.audience-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 28ch;
  margin: 0;
  text-wrap: balance;
}

/* ROTATOR — rotating word in headlines */
.rotator {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  position: relative;
  white-space: nowrap;
  text-align: left;
  /* Underline only the text, not the locked min-width */
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
  will-change: opacity, transform;
}
.rotator.is-out {
  opacity: 0;
  transform: translateY(-10px);
}
.rotator.is-in {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .rotator, .rotator.is-out, .rotator.is-in { opacity: 1; transform: none; transition: none; }
}

/* MOTION: scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].is-revealed { transition-delay: 80ms; }
[data-reveal-delay="2"].is-revealed { transition-delay: 160ms; }
[data-reveal-delay="3"].is-revealed { transition-delay: 240ms; }
[data-reveal-delay="4"].is-revealed { transition-delay: 320ms; }

/* Initial hero reveal (on load) */
.hero-fade {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-rise 800ms 200ms var(--ease-out) forwards;
}
.hero-fade--2 { animation-delay: 380ms; }
.hero-fade--3 { animation-delay: 560ms; }
.hero-fade--4 { animation-delay: 740ms; }
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* FOCUS */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.cta-donate:focus-visible {
  outline-offset: 4px;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-fade { opacity: 1; transform: none; animation: none; }
  .brand .dot::before,
  .brand .dot::after,
  .hero-mark .signal::before { animation: none; box-shadow: none; }
}

/* PRINT */
@media print {
  .site-header, .site-footer { display: none; }
  body { background: white; color: black; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== MOBILE LANDING (home page only, ≤640px) ===== */
.mobile-landing { display: none; }
@media (max-width: 640px) {
  .mobile-landing {
    display: block;
    padding: 2.25rem 0 2rem;
  }
  .mobile-landing__inner { padding: 0 var(--gutter); }
  .mobile-landing__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.25rem, 15vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 1.5rem;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(8px);
    animation: hero-rise 700ms 100ms var(--ease-out) forwards;
  }
  .mobile-landing__title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
    display: block;
    position: relative;
  }
  .mobile-landing__tag {
    font-family: var(--serif);
    font-size: var(--fs-lg);
    line-height: 1.45;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(8px);
    animation: hero-rise 700ms 320ms var(--ease-out) forwards;
  }
  .mobile-landing__nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    opacity: 0;
    transform: translateY(8px);
    animation: hero-rise 700ms 540ms var(--ease-out) forwards;
  }
  .quick-button {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1rem 0.85rem 1.125rem;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    transition: border-color 240ms var(--ease), transform 200ms var(--ease), box-shadow 240ms var(--ease);
    -webkit-tap-highlight-color: transparent;
  }
  /* Numbers hidden on phone — cleaner look */
  .quick-button__num { display: none; }
  .quick-button::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-soft));
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 320ms var(--ease-out);
  }
  .quick-button:hover, .quick-button:focus-visible {
    border-color: var(--accent-soft);
    box-shadow: 0 8px 20px -16px rgba(176, 84, 51, 0.25);
  }
  .quick-button:hover::before, .quick-button:focus-visible::before {
    transform: scaleY(1);
  }
  .quick-button:active {
    transform: scale(0.985);
    border-color: var(--accent);
  }
  .quick-button:active::before { transform: scaleY(1); }
  .quick-button__num {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    font-weight: 500;
  }
  .quick-button__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
  }
  .quick-button__title {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.2;
  }
  .quick-button__sub {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--ink-quiet);
    letter-spacing: 0.01em;
    line-height: 1.3;
  }
  .quick-button__arrow {
    font-family: var(--sans);
    color: var(--accent);
    font-size: 1.125rem;
    font-weight: 400;
    transition: transform 240ms var(--ease);
  }
  .quick-button:hover .quick-button__arrow,
  .quick-button:focus-visible .quick-button__arrow,
  .quick-button:active .quick-button__arrow {
    transform: translateX(3px);
  }
  /* Current/welcome variant: subtle inverted feel, no arrow shift */
  .quick-button--current {
    background: var(--bg-deep);
    border-color: var(--accent-soft);
  }
  .quick-button--current::before {
    transform: scaleY(1);
  }
  .quick-button--current .quick-button__num {
    color: var(--accent-deep);
  }
  .quick-button--current .quick-button__arrow {
    color: var(--ink-quiet);
    font-size: 1rem;
    transform: none !important;
  }
  .quick-button--current:hover,
  .quick-button--current:focus-visible {
    border-color: var(--accent);
  }
  /* Reduced motion respect */
  @media (prefers-reduced-motion: reduce) {
    .mobile-landing__title,
    .mobile-landing__tag,
    .mobile-landing__nav {
      opacity: 1;
      transform: none;
      animation: none;
    }
  }
  /* Mobile-only: hide desktop home sections */
  .hide-on-mobile { display: none !important; }
  /* When Welcome button is tapped (?view=full), swap: hide mobile-landing,
     reveal the rich home content normally hidden on phone. */
  body.view-full .mobile-landing { display: none !important; }
  body.view-full .hide-on-mobile { display: block !important; }
  /* Force-reveal data-reveal sections immediately in full-view mode
     (no need to wait for IntersectionObserver since user explicitly chose this) */
  body.view-full [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Restore the FOUNDATION + Site footer columns in full-view mode
     since the mobile-landing buttons are gone */
  body.view-full .site-footer__grid > div:nth-child(1) { display: block; }
  body.view-full .site-footer__grid > div:nth-child(2) { display: block; }
  body.view-full .site-footer__grid > div:nth-child(3) .site-footer__heading { display: block; }
}

/* ===== MOBILE POLISH (≤640px) ===== */
@media (max-width: 640px) {
  /* Hero: tighter top padding, smaller hero mark spacing */
  .hero { padding: clamp(2.25rem, 8vh, 4rem) 0 clamp(2rem, 5vh, 3rem); }
  .hero-mark { margin-bottom: 1.25rem; }
  .hero h1 { letter-spacing: -0.02em; margin-bottom: 1.25rem; }
  .hero .lede { margin-bottom: 1.75rem; max-width: 100%; }
  .hero-cta { gap: 0.75rem; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Audience line / pullout: tighter */
  .section--statement { padding: 2rem 0; }
  .audience-line { font-size: clamp(1.5rem, 7vw, 2rem); max-width: 100%; }

  /* Sections: compress vertical rhythm */
  .section { padding: 2.5rem 0; }
  h2 { margin-bottom: 1.25rem; }

  /* Numbered list: tighter columns and padding */
  .list-numbered > li { padding: 1.75rem 0; gap: 0.25rem; }
  .list-numbered > li::before { padding-top: 0; font-size: var(--fs-xs); letter-spacing: 0.08em; }
  .list-numbered h3 { font-size: var(--fs-lg); }

  /* Services: tighter */
  .service { padding: 1.75rem 0; }
  .service h3 { font-size: var(--fs-lg); }

  /* Cards: full bleed feel */
  .card { padding: 1.5rem; }

  /* Pullout: tighter padding */
  .pullout { font-size: var(--fs-lg); padding-left: 1.25rem; }
  .pullout::before { font-size: 2.25rem; }

  /* Frameworks: 1 column */
  .frameworks { gap: 0.5rem; }

  /* Donate blocks: tighter */
  .donate-block { padding: 1.5rem; }

  /* Legal block: 1 column */
  .legal-block { padding: 1.25rem; grid-template-columns: 1fr; gap: 0.75rem; }

  /* Footer: minimal on mobile — Contact form link + copyright + lang toggle */
  .site-footer { padding: 1.75rem 0 1.5rem; margin-top: 2rem; }
  .site-footer__grid {
    grid-template-columns: 1fr;
    row-gap: 0;
    margin-bottom: 1.25rem;
  }
  /* Hide The Foundation column (name + CVR shows in copyright) */
  .site-footer__grid > div:nth-child(1) { display: none; }
  /* Hide Site column (nav already in buttons + hamburger) */
  .site-footer__grid > div:nth-child(2) { display: none; }
  /* Contact column: hide the "Contact" heading and the email line */
  .site-footer__grid > div:nth-child(3) .site-footer__heading { display: none; }
  .site-footer__grid > div:nth-child(3) ul li { margin-bottom: 0; }
  .site-footer__grid > div:nth-child(3) a {
    font-family: var(--sans);
    font-size: var(--fs-sm);
    color: var(--ink);
  }
  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }

  /* Brand text: smaller */
  .brand { font-size: var(--fs-xs); }

  /* Contact form: better mobile defaults */
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; /* prevents iOS zoom on focus */ }
}

/* Extra narrow (≤380px): tiny adjustments */
@media (max-width: 380px) {
  .brand { font-size: 12px; }
  .cta-donate { padding: 0.5rem 0.85rem; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
}

/* 404 page */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--gutter);
}
.error-page .code {
  font-family: var(--mono);
  font-size: var(--fs-lg);
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.error-page h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}
.error-page p {
  font-size: var(--fs-lg);
  margin-bottom: 2rem;
}

/* ===== MEMO SHARE BUTTONS ===== */
.memo-share {
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.memo-share__label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.memo-share__icons {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.memo-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
  position: relative;
  text-decoration: none;
  padding: 0;
}
.memo-share__link svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  transition: transform 220ms var(--ease);
}
/* Default state: monochrome, matches the visual identity (no brand colors shown by default) */
.memo-share__link {
  color: var(--ink-quiet);
}
/* Hover / focus / press: each platform reveals its brand color (icon fills with brand color
   AND circle gets a soft brand-tinted background). No layout shift. */
.memo-share__link:hover,
.memo-share__link:focus-visible,
.memo-share__link:active {
  transform: translateY(-2px);
  outline: none;
}
.memo-share__link--linkedin:hover,
.memo-share__link--linkedin:focus-visible,
.memo-share__link--linkedin:active     { color: #0A66C2; background: rgba(10, 102, 194, 0.10); }
.memo-share__link--x:hover,
.memo-share__link--x:focus-visible,
.memo-share__link--x:active            { color: #15140F; background: rgba(21, 20, 15, 0.08); }
.memo-share__link--facebook:hover,
.memo-share__link--facebook:focus-visible,
.memo-share__link--facebook:active     { color: #1877F2; background: rgba(24, 119, 242, 0.10); }
.memo-share__link--instagram:hover,
.memo-share__link--instagram:focus-visible,
.memo-share__link--instagram:active    { color: #E1306C; background: rgba(225, 48, 108, 0.10); }
.memo-share__link--whatsapp:hover,
.memo-share__link--whatsapp:focus-visible,
.memo-share__link--whatsapp:active     { color: #25D366; background: rgba(37, 211, 102, 0.10); }
.memo-share__link--telegram:hover,
.memo-share__link--telegram:focus-visible,
.memo-share__link--telegram:active     { color: #229ED9; background: rgba(34, 158, 217, 0.10); }
.memo-share__link--signal:hover,
.memo-share__link--signal:focus-visible,
.memo-share__link--signal:active       { color: #3A76F0; background: rgba(58, 118, 240, 0.10); }
.memo-share__link--copy:hover,
.memo-share__link--copy:focus-visible,
.memo-share__link--copy:active         { color: var(--accent); background: #F4E2DE; }
.memo-share__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms var(--ease);
}
.memo-share__tooltip.is-visible {
  opacity: 1;
}

/* ===================================================================
   MOBILE TAP-TARGET FIXES (2026-05-17)
   Apple HIG and WCAG 2.5.5 want ≥44x44 px for interactive elements.
   Audit at 390x844 showed these falling short:
   - .lang-toggle a (footer): 38x24
   - .site-footer ul a: 122x17
   - .nav-lang-mobile a (injected by motion.js): 45x31
   - .scroll-top: 42x42 (border-box quirk)
   - .skip-link: 43px
   =================================================================== */
@media (max-width: 760px) {
  .lang-toggle a {
    padding: 0.7rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
  .site-footer ul a,
  .site-footer ul li > a,
  footer .site-footer__addr a {
    padding: 0.55rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    line-height: 1.35;
  }
  .site-footer ul li { margin-bottom: 0; }
  .nav-lang-mobile a,
  .nav-lang-mobile span.active {
    padding: 0.75rem 1.1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .scroll-top {
    width: 48px;
    height: 48px;
  }
  .scroll-top svg {
    width: 20px;
    height: 20px;
  }
  .skip-link {
    padding: 0.9rem 1.15rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* === MOBILE TAP-TARGET FIXES PASS 2 (2026-05-17) === */
@media (max-width: 760px) {
  .site-header .cta-donate {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .memo-page__back {
    padding: 0.7rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  a[href^="mailto:"] {
    padding: 0.45rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
  }
  .scroll-top {
    width: 52px;
    height: 52px;
  }
  .scroll-top svg {
    width: 22px;
    height: 22px;
  }
}

/* A11y pass 2: match the specificity of .status__row--wide .status__label
   inside the mobile @media block, which still resolved to --ink-quiet (3.48:1).
   This puts it at 4.96:1 in line with the other small-text overrides. */
@media (max-width: 640px) {
  .status__row--wide .status__label {
    color: rgb(105, 100, 92);
  }
}

/* A11y pass 1 (re-applied 2026-05-17): small UI text contrast
   .muted, .section-label, .status__label, .status__foot were rgb(135,130,122)
   on bg #F7F4EE = 3.48:1, failing WCAG AA. rgb(105,100,92) = 4.96:1. */
.muted,
.section-label,
.status__label,
.status__foot {
  color: rgb(105, 100, 92);
}
