/* Draft website for agora.ooo (shown at /new-web/ to signed-in people). AGORA red, Lexend titles, Source Sans 3 body.
   Cream background, tinted and dark bands, square corners everywhere, and every box the same: white with a fine
   neutral line, so it stands out on each background. */

@font-face { font-family: 'Lexend'; src: url('../fonts/lexend.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; src: url('../fonts/lexend-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3.woff2') format('woff2'); font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3-latin-ext.woff2') format('woff2'); font-weight: 200 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #780000; --brand-hover: #560000; --brand-deep: #780000; --brand-deeper: #560000;
  --soft: #f4e3e3; --tint: #f9f0f0; --cream: #faf8f8; --paper: #ffffff;
  --ink: #161616; --ink-2: #3f3f3f; --muted: #5f5f5f; --line: #e9e2e2; --line-dark: rgba(255,255,255,.14);
  --r: 0; --r-sm: 0; --pill: 0;
  --box: #fff; --box-line: #d9cfcf;
  --wrap: 1180px; --gap: clamp(56px, 6.5vw, 88px);
  --title: 'Lexend', system-ui, sans-serif; --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(40, 0, 0, .05), 0 12px 32px -12px rgba(40, 0, 0, .14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--title); color: var(--ink); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; }   /* titles: Lexend Light */
h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 12px 0 14px; }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
p + p { margin-top: 14px; }
strong, b { font-weight: 650; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.vh, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 14.5px; color: var(--muted); }
.center { text-align: center; }


/* ---- Buttons & chips ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--title); font-weight: 500; font-size: 15.5px; line-height: 1;
  padding: 14px 24px; border-radius: var(--pill); border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(29, 21, 21, .35); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--soft); color: var(--brand-hover); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--title); font-size: 13px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; padding: 7px 14px; border-radius: var(--pill); background: var(--soft); color: var(--brand); text-decoration: none; }
.chip-soft { background: var(--tint); }
.chip-on-dark { background: var(--soft); color: var(--brand); }
.chip-live { text-transform: none; letter-spacing: 0; font-size: 14px; background: #fff; color: var(--ink-2); border: 1px solid var(--box-line); }
.chip-live i, .band-in i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(120,0,0,.5); animation: pulse 2.4s infinite; }
.chip-live:hover { color: var(--brand); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(120,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(120,0,0,0); } }


/* ---- Hero ---- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 82px); letter-spacing: -0.03em; line-height: 1.02; margin: 26px 0 26px; }
.ink-mark { position: relative; display: inline-block; color: var(--brand); }
.ink-mark svg, .underlined svg { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: .28em; overflow: visible; }
.ink-mark path, .underlined path { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 1.1s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { position: relative; aspect-ratio: 1 / 0.92; }
.blob { position: absolute; }
.blob-photo { inset: 0; overflow: hidden; }
.blob-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-badge { position: absolute; left: -4%; bottom: 6%;
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; max-width: 290px; }
.hero-badge b { font-family: var(--title); font-size: 34px; font-weight: 300; color: var(--brand); letter-spacing: -0.03em; line-height: 1; }
.hero-badge span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }

/* ---- Announcement band ---- */
.band { background: var(--brand-deep); color: rgba(255,255,255,.9); }
.band-in { display: flex; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; font-family: var(--title); font-size: 15.5px; flex-wrap: wrap; justify-content: center; text-align: center; }
.band-in i { background: #ffd9d9; }
.band a { color: #fff; }

/* ---- Sections ---- */
.sec { padding: var(--gap) 0; }
.sec + .sec, .strip + .sec { border-top: 1px solid var(--line); }
.sec-tint, .sec-white { background: transparent; }
.sec-dark { color: var(--ink-2); }
.head { max-width: 760px; margin-bottom: 32px; }
.head .lead { margin-top: 4px; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.head-center > .chip { display: flex; width: fit-content; margin: 0 auto; }
.head-split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
.underlined { position: relative; display: inline-block; }
.underlined svg { bottom: -0.2em; }
.underlined path { animation: none; transition: stroke-dashoffset 1.1s var(--ease); }
.underlined.in path { stroke-dashoffset: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
.photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }
.photo img, .wide-photo img, .proof-photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo-sm { aspect-ratio: 4 / 3; margin-top: 32px; max-width: 420px; }
.wide-photo { border-radius: var(--r); overflow: hidden; height: clamp(260px, 38vw, 480px); }

.card, .aims li, .way, .logos a, .float-stats, .hero-badge, .tags li { background: var(--box); border: 1px solid var(--box-line); box-shadow: none; color: var(--ink-2); }
.card { padding: 20px 22px 22px; }
.sec-dark .card h3, .dark-panel .card h3 { color: var(--ink); }
.sec-dark .card .num { color: var(--brand); }
.card h3 { margin-bottom: 12px; }
.card p { color: inherit; }
.num { display: block; font-family: var(--title); font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--brand); margin-bottom: 14px; }
.sec-dark .num { color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step .num { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.prose { color: var(--ink-2); margin-bottom: 56px; }
.cols-2 { columns: 2; column-gap: 56px; }
.cols-2 p { break-inside: avoid; margin: 0 0 16px; }

/* Mission: where AGORA has supported retreats – a world map, the countries coloured by status, and a legend */
.map-block { margin-top: 56px; }
.map { max-width: 1060px; margin: 0 auto 28px; }
.world { display: block; width: 100%; height: auto; }
.world path { fill: #e6e0e0; stroke: #fff; stroke-width: .6; stroke-linejoin: round; }
.world path.done { fill: var(--brand); }
.world path.now { fill: #c46a6a; }
.world path.next { fill: #e8b4b4; }
.map-legend { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
.map-legend li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-content: start; padding: 14px 0; border-top: 1px solid var(--box-line); }

.map-legend i { grid-row: span 3; width: 12px; height: 12px; margin-top: 3px; background: var(--brand); }
.map-legend .now i { background: #c46a6a; }
.map-legend .next i { background: #e8b4b4; }
.map-legend b { font-family: var(--title); font-size: 18px; font-weight: 300; letter-spacing: -0.01em; margin: 2px 0 2px; }
.map-legend p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.m-when { font-family: var(--title); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Guidelines: aims on a dark panel, then Who / What / How */
.dark-panel { padding: 0 0 28px; }
.aims { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.aims li { padding: 18px 20px 20px; font-size: 16px; line-height: 1.5; }
.aims .num { font-size: 15px; color: var(--brand); }
.guide .card h3 { font-size: 24px; margin: 18px 0 14px; }
/* Who / What / How slide past sideways on wide screens while you scroll down (site.js); otherwise three columns */
.guide-rail { display: none; }
.guide-scroll.is-h .guide-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.guide-scroll.is-h .guide-pin > .wrap { width: 100%; }
.guide-scroll.is-h .guide-rail { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.guide-rail span { font-family: var(--title); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: color .3s var(--ease); white-space: nowrap; }
.guide-rail span.on { color: var(--brand); }
.guide-bar { flex: 1; height: 2px; background: var(--box-line); position: relative; }
.guide-bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brand); }
.guide-scroll.is-h .guide { display: flex; gap: 32px; width: max-content; will-change: transform; }
.guide-scroll.is-h .guide .card { flex: none; width: min(640px, 54vw); padding: 24px 28px 26px; opacity: .45; transform: scale(.97);
  transform-origin: left center; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.guide-scroll.is-h .guide .card.on { opacity: 1; transform: none; }
.guide-scroll.is-h .guide .card.reveal { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.guide-scroll.is-h .guide .card h3 { font-size: 30px; }
.guide-scroll.is-h.compact .guide .card { width: min(720px, 60vw); padding: 24px 32px 26px; }
.guide-scroll.is-h.compact .guide .card h3 { font-size: 24px; margin: 12px 0 8px; }
.guide-scroll.is-h.compact .ticks li { font-size: 15.5px; padding: 8px 0 8px 28px; }
.guide-scroll.is-h.compact .ticks li::before { top: 14px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* Full-width photo strips between sections: the photo stays put while the page moves (as on agora.ooo) */
.strip { height: clamp(220px, 32vw, 420px); background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
@media (hover: none), (max-width: 760px), (prefers-reduced-motion: reduce) { .strip { background-attachment: scroll; height: 190px; } }

/* Collaborate */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.way { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 14px 26px; transition: transform .45s var(--ease); }
.way:hover { transform: translateY(-6px); }
.way > :not(.way-img) { margin-left: 12px; margin-right: 12px; }
.way-img { width: 100%; aspect-ratio: 4 / 3; border-radius: calc(var(--r) - 8px); overflow: hidden; margin-bottom: 22px; }
.way-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.way:hover .way-img img { transform: scale(1.05); }
/* wide screens: the four ways stack – each card settles under the next one as you scroll (site.js), as on agora.ooo.
   Every card is the same height: photo left, text centred right, with room to scroll between them; once the last one has
   settled the whole stack scrolls up at once. */
@media (min-width: 1081px) {
  .ways.stack { display: block; }
  .ways.stack .way { position: sticky; top: calc(96px + var(--i) * 20px); display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 40px; height: 320px; padding: 0;
    box-shadow: 0 -10px 30px rgba(40, 0, 0, .06); transform-origin: center top; will-change: transform;
    /* a sticky card stays put only while its margin box fits in .ways: with top + margin the same for every card (top
       grows 20px per card, so the margin shrinks 20px per card; 3 = the last card's --i) all of them let go together */
    margin-bottom: calc(12vh + (3 - var(--i)) * 20px); }
  .ways.stack::after { content: ""; display: block; height: 28vh; }   /* the last card settles, the stack holds, then all go up together */
  .ways.stack .way-img { grid-column: 1; grid-row: 1 / -1; height: 100%; aspect-ratio: auto; margin: 0; }
  .ways.stack .way > :not(.way-img) { grid-column: 2; margin-left: 0; margin-right: 40px; }
  .ways.stack .way > .way-tag { grid-row: 2; }
  .ways.stack .way > h3 { grid-row: 3; font-size: 26px; margin: 4px 0 12px; }
  .ways.stack .way > p { grid-row: 4; font-size: 17px; margin-bottom: 30px; }
  .ways.stack .way > .btn { grid-row: 5; justify-self: start; }
  .ways.stack .way:hover { transform: none; }
  .ways.stack .way.reveal { transition: opacity .8s var(--ease); }
}
.way-tag { font-family: var(--title); font-size: 13px; letter-spacing: .04em; color: var(--brand); margin-bottom: 8px; }
.way h3 { font-size: 21px; margin-bottom: 10px; }
.way p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin-bottom: 28px; flex: 1; }

/* MEL */
.sub { font-size: 19px; margin: 36px 0 14px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 7px 14px; font-size: 15px; color: var(--ink); }

/* Proof of model */
.proof-photo { position: relative; border-radius: var(--r); overflow: hidden; height: clamp(260px, 34vw, 420px); }
.float-stats { position: absolute; left: 24px; top: 24px; display: flex; }
.float-stats > div { padding: 12px 16px; max-width: 220px; }
.float-stats > div + div { border-left: 1px solid var(--box-line); }
.float-stats b, .stats-4 b { display: block; font-family: var(--title); font-size: 32px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.float-stats small { font-size: 18px; color: var(--muted); font-weight: 500; }
.float-stats span { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 8px; }
.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.stats-4 > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.stats-4 b { color: var(--brand); font-size: 44px; }
.stats-4 span { display: block; font-size: 16px; line-height: 1.45; color: var(--ink-2); margin-top: 10px; }
.quote { font-family: var(--title); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; letter-spacing: -0.015em; text-align: center;
  max-width: 820px; margin: 80px auto 0; color: var(--ink); }
.learned { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.learned .card { grid-column: span 2; padding: 18px 20px 20px; }
.learned .card:nth-child(4), .learned .card:nth-child(5) { grid-column: span 3; }
.learned p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.note { margin-top: 36px; color: var(--ink-2); }

/* Values */
.sticky-head { position: sticky; top: 110px; }
/* Values: the photo beside the six values (three columns), as tall as the text */
.values-row { display: grid; grid-template-columns: 1fr 2.4fr; gap: 36px; align-items: stretch; }
.values-photo { aspect-ratio: auto; height: 100%; min-height: 260px; box-shadow: none; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; align-content: space-between; }
.value { padding: 16px 0 18px; border-top: 1px solid rgba(120, 0, 0, .18); }
.value h4 { font-size: 18px; }
.value p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

/* Supporters */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logos a { flex: 0 1 calc(25% - 12px); min-width: 200px; display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px 22px;
  transition: transform .35s var(--ease), border-color .35s var(--ease); }
.logos a:hover { transform: translateY(-3px); border-color: var(--brand); }
.logos img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; }

/* Contact & newsletter */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
/* the two boxes line up: the form starts level with the heading and ends level with the newsletter box */
.contact-grid > div:first-child { display: flex; flex-direction: column; }
.contact-grid > div:first-child > h2 { margin-top: 0; }
.contact-grid .nl { margin-top: auto; }
.contact-form { display: flex; flex-direction: column; }
.contact-form .form-fields { flex: 1; display: flex; flex-direction: column; }
.contact-form .field-grow { flex: 1; }
.contact-form .field-grow textarea { flex: 1; }
.points { list-style: none; margin: 26px 0 36px; }
.points li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.nl h3 { margin-bottom: 8px; }
.nl p { font-size: 16.5px; color: var(--ink-2); }
.nl-form { margin-top: 18px; }
.nl-note { margin: 0 0 10px; }
.pill-field { display: flex; gap: 6px; background: #fff; border: 1px solid var(--box-line); padding: 5px; transition: border-color .2s; }
.pill-field:focus-within { border-color: var(--brand); }
.pill-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16.5px; padding: 0 16px; color: var(--ink); }
.pill-field .btn { padding: 12px 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-2); margin: 14px 0 6px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.status { font-size: 15px; color: var(--brand); margin-top: 8px; min-height: 1px; }
.status.error { color: #a40000; font-weight: 600; }
.nl-form.sent .pill-field, .nl-form.sent .check { display: none; }

.contact-form { padding: clamp(26px, 3.4vw, 40px); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; position: relative; }
.field label { font-family: var(--title); font-size: 14px; font-weight: 500; color: var(--ink); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 16.5px; color: var(--ink); background: #fff; border: 1px solid var(--box-line);
  border-radius: var(--r-sm); padding: 13px 16px; outline: 0; transition: border-color .2s, background .2s, box-shadow .2s; width: 100%; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23780000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b3a5a5; }
.field input:focus, .field select:focus, .field textarea:focus { background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(120, 0, 0, .08); }
.field.invalid input, .field.invalid textarea { border-color: #a40000; background-color: #fff; }
.field .err { font-size: 14px; color: #a40000; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.form-done { display: none; text-align: center; padding: 40px 10px; }
.form-done h3 { font-size: 30px; margin-bottom: 10px; }
.contact-form.sent .form-fields { display: none; }
.contact-form.sent .form-done { display: block; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* About */
.founder { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; padding: clamp(20px, 3vw, 32px); max-width: 960px; margin: 0 auto; }
.avatar { width: 180px; height: 180px; object-fit: cover; }
.founder h3 { font-size: 28px; margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.founder .li { color: var(--brand); display: inline-flex; }
.role { color: var(--muted); font-family: var(--title); font-size: 15px; margin: 4px 0 14px; }
.founder p:not(.role) { color: var(--ink-2); margin-bottom: 22px; }


/* ---- Motion: gentle reveal, slow float. Off when the visitor prefers less motion. ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-float] { animation: float 9s ease-in-out infinite; }
[data-float="slow"] { animation-duration: 12s; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-float], .chip-live i, .band-in i { animation: none; }
  .ink-mark path, .underlined path { animation: none; stroke-dashoffset: 0; transition: none; }
}

/* ---- Tablet ---- */
@media (max-width: 1080px) {
  .ways, .aims { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr 1fr; }
  .map-legend { grid-template-columns: 1fr 1fr; }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Touch screens: no hover lifts (a tap would leave the card raised) ---- */
@media (hover: none), (max-width: 760px) {   /* no parallax here (site.js): photos simply fill their frames */
  .photo img, .wide-photo img, .proof-photo > img, .blob-photo img { height: 100%; transform: none !important; }
}
@media (hover: none) {
  .btn:hover, .step:hover, .way:hover, .logos a:hover, .way:hover .way-img img { transform: none; }
  .logos a:hover { border-color: var(--box-line); }
}

/* ---- Phones: shorter sections – card sets swipe sideways, Who / What / How fold open, long text folds ---- */
@media (max-width: 760px) {
  :root { --gap: 56px; }
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  h2 { font-size: 30px; margin: 12px 0 14px; }
  h3 { font-size: 19px; }
  .lead { font-size: 17px; }
  .head { margin-bottom: 26px; }
  .head-split { gap: 4px; }
  .hero-grid, .split, .head-split, .contact-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 20px 18px 22px; }
  [data-float] { animation: none; }
  .reveal { transform: translateY(12px); transition-duration: .5s; }

  /* hero */
  .hero { padding: 28px 0 40px; }
  .hero h1 { font-size: 42px; margin: 18px 0 16px; }
  .actions { margin-top: 22px; }
  .actions .btn { flex: 1; justify-content: center; }
  .hero-grid { gap: 28px; }
  .hero-art { aspect-ratio: 4 / 3; max-width: none; }
  .hero-badge { left: 0; bottom: 0; padding: 10px 12px; max-width: 250px; }
  .hero-badge b { font-size: 26px; }
  .hero-badge span { font-size: 13px; }
  .band-in { font-size: 14px; padding-top: 12px; padding-bottom: 12px; gap: 4px 10px; }
  .band-in i { display: none; }

  /* mission: smaller photo; the map full width, the legend two by two under it */
  .split { gap: 24px; }
  .photo { aspect-ratio: 16 / 9; }
  .map-block { margin-top: 28px; }
  .map { overflow: hidden; margin: 0 -20px 18px; }
  .world { width: 144%; max-width: none; margin-left: -24.5%; }   /* the band from the Americas to South-East Asia, larger */
  .map-legend { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .map-legend li { padding: 10px 0; grid-template-columns: 18px 1fr; }
  .map-legend b { font-size: 15.5px; }
  .map-legend p { font-size: 13.5px; line-height: 1.4; }
  .m-when { font-size: 10px; letter-spacing: .04em; }

  /* what AGORA does: text folds after the first paragraph; the three steps compact */
  .cols-2 { columns: 1; }
  .prose { margin-bottom: 28px; }
  .prose.folded > p:not(:first-child) { display: none; }
  .read-more { display: inline-flex; margin-top: 4px; font: 500 15px var(--title); color: var(--brand); background: none; border: 0; padding: 6px 0; cursor: pointer; }
  .grid-3 { gap: 10px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
  .step .num { grid-row: span 2; font-size: 26px; margin: 0; }
  .step h3 { margin-bottom: 6px; }
  .step p { font-size: 15px; line-height: 1.5; }
  .wide-photo { height: 200px; }

  /* swipe rows: the aims, the ways to get involved, what we've learned */
  .aims, .ways, .learned { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .aims::-webkit-scrollbar, .ways::-webkit-scrollbar, .learned::-webkit-scrollbar { display: none; }
  .aims > *, .ways > *, .learned > * { flex: 0 0 82%; scroll-snap-align: start; scroll-margin-left: 20px; }
  .learned .card, .learned .card:nth-child(4), .learned .card:nth-child(5) { grid-column: auto; }
  .swipe-hint { display: block; font: 500 13px var(--title); color: var(--muted); margin-top: 10px; }
  .dark-panel { padding: 36px 0 32px; margin-bottom: 16px; }
  .aims { margin-top: 18px; }
  .aims li { font-size: 15px; padding: 18px 18px 20px; }
  .way { padding: 10px 10px 18px; }
  .way > :not(.way-img) { margin-left: 8px; margin-right: 8px; }
  .way-img { margin-bottom: 14px; aspect-ratio: 16 / 10; }
  .way h3 { font-size: 18px; }
  .way p { font-size: 15px; margin-bottom: 22px; }

  /* Who / What / How: tap a heading to open it (the first one starts open) */
  .guide { gap: 0; }
  .guide .card { padding: 16px 18px; }
  .guide .card + .card { border-top: 0; }
  .guide .card h3 { font-size: 19px; margin: 10px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .guide .card.acc h3 { cursor: pointer; }
  .guide .card.acc h3::after { content: '+'; font-weight: 300; font-size: 26px; color: var(--brand); line-height: 1; }
  .guide .card.acc.open h3::after { content: '–'; }
  .guide .card.acc:not(.open) .ticks { display: none; }
  .guide .card.acc .ticks { margin-top: 12px; }
  .ticks li { font-size: 15px; padding: 9px 0 9px 26px; }
  .ticks li::before { top: 15px; }

  /* MEL */
  .grid-2 { gap: 10px; }
  .sub { font-size: 18px; margin: 32px 0 14px; }
  .tags { gap: 6px; }
  .tags li { font-size: 14px; padding: 7px 12px; }

  /* proof: the two numbers under the photo, not over it */
  .proof-photo { height: auto; overflow: visible; margin-bottom: 0; }
  .proof-photo > img { height: 220px !important; }
  .float-stats { position: static; margin-top: -1px; }
  .float-stats > div { flex: 1; padding: 12px 14px; }
  .float-stats b { font-size: 28px; }
  .float-stats span { font-size: 13px; }
  .stats-4 { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 28px; }
  .stats-4 > div { padding-top: 12px; }
  .stats-4 b { font-size: 32px; }
  .stats-4 span { font-size: 14px; }
  .quote { font-size: 20px; margin-top: 40px; }
  .learned p { font-size: 15px; }
  .note { margin-top: 24px; font-size: 15px; }

  /* values */
  .sticky-head { position: static; }
  .values-row { grid-template-columns: 1fr; gap: 16px; }
  .values-photo { height: 200px; min-height: 0; }
  .values { grid-template-columns: 1fr; }
  .value { padding: 16px 0; }
  .value p { font-size: 15px; }

  /* supporters: two per row */
  .logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .logos a { min-width: 0; height: 84px; padding: 12px 14px; }
  .logos img { max-height: 46px; }

  /* contact and newsletter */
  .contact-grid { gap: 0; }
  .contact-grid .nl { margin-top: 0; }
  .contact-grid > div:first-child { display: contents; }   /* its parts join the grid, so the form can come before the newsletter */
  .contact-grid > div:first-child > * { grid-column: 1; }
  .contact-grid .contact-form { order: 1; margin-bottom: 24px; }
  .contact-grid .nl { order: 2; }
  .points { margin: 16px 0 24px; }
  .points li { font-size: 15px; padding: 8px 0; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 12px 14px; }
  .field textarea { min-height: 120px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
  .pill-field { flex-direction: column; padding: 0; border: 0; background: none; gap: 8px; }
  .pill-field input { border: 1px solid var(--box-line); background: #fff; padding: 12px 14px; font-size: 16px; }
  .pill-field .btn { width: 100%; justify-content: center; }

  /* about */
  .founder { grid-template-columns: 76px 1fr; gap: 6px 16px; padding: 20px 18px; }
  .founder > div { display: contents; }
  .avatar { width: 76px; height: 76px; grid-row: span 3; }
  .founder .chip { justify-self: start; align-self: end; }
  .founder h3 { font-size: 22px; margin: 0; }
  .founder .role { margin: 0; grid-column: 2; }
  .founder p:not(.role), .founder .btn { grid-column: 1 / -1; }
  .founder p:not(.role) { margin: 8px 0 14px; font-size: 15px; }
  .founder .btn { justify-self: start; }
}

/* Privacy policy: one readable column */
.policy-sec { padding-top: 32px; }
.policy { max-width: 820px; }
.policy h1 { font-size: clamp(32px, 4vw, 46px); margin: 14px 0 6px; }
.policy .meta { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }
.policy h2 { font-size: 24px; margin: 40px 0 12px; }
.policy h3 { font-size: 19px; margin: 24px 0 8px; }
.policy p, .policy li { color: var(--ink-2); }
.policy p + p { margin-top: 12px; }
.policy ul { margin: 10px 0 0 22px; }
.policy li { margin: 6px 0; }
@media (max-width: 760px) { .policy h2 { font-size: 21px; margin-top: 30px; } }

/* Cookie notice: shown once, closed for good with OK (the choice stays in this browser) */
.cookie-note { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 420px; background: var(--box); border: 1px solid var(--box-line);
  box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; font-size: 15px;
  line-height: 1.5; color: var(--ink-2); }
.cookie-note[hidden] { display: none; }
.cookie-note button { flex: none; background: var(--soft); color: var(--brand); border: 0; padding: 8px 14px; font: 500 14px var(--title); cursor: pointer; }
.cookie-note button:hover { background: #ecd6d6; }
@media (max-width: 600px) { .cookie-note { left: 8px; right: 8px; bottom: 8px; max-width: none; font-size: 14px; } }
