/* ==========================================================================
   Collaboration for Good — site design system (redesign, Sept 2026)
   Source: Tyler Butler's page brief + design images (9/23) and her
   CFG_Footer_Developer_Spec (9/23). Palette and type are hers; do not
   substitute colours without rechecking contrast (her rule, footer spec §3).
   Page files add only what is unique to that page.
   ========================================================================== */

:root {
  --bg: #231E1D;          /* page charcoal */
  --bg-warm: #2A201E;     /* alternate sections */
  --bg-card: #2C2422;     /* cards */
  --bg-foot: #1C1817;     /* footer ground */
  --line: #3A312E;
  --cream: #F3ECDC;       /* headlines */
  --text: #E8DFCC;        /* body on dark */
  --muted: #A79B8A;       /* secondary text, 6.2:1 on --bg */
  --accent: #F0603A;      /* 5.05:1 on footer ground — passes AA */
  --grad: linear-gradient(90deg, #E43C2C, #F5922A);
  --grad-diag: linear-gradient(115deg, #E43C2C, #F5922A);

  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 6vw, 110px);
  --section: clamp(56px, 6vw, 80px);   /* round 3 (R3-S): one rhythm, 80px desktop / 56px mobile */
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 clamp(16px, 1.1vw, 18px)/1.65 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: #F3ECDC; color: #1C1817;
  padding: 10px 18px; border-radius: 40px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--warm { background: var(--bg-warm); }
/* Light sections (round 3, R3-C). Tyler: tan read as a clash against black; her reference
   (azimpactforgood.org) is white-led. White + a neutral light grey. On #FFFFFF: #231F1F 16.1:1,
   #4A4543 9.3:1, #C42B18 5.6:1. `.section--cream` is kept as an alias so older markup follows. */
/* Round 4 (R4-C): Tyler found round 3 'too much plain white'; light grounds are a neutral light grey, and pages alternate with charcoal. */
/* Round 5 (R5-C): Tyler 9/27 "I think I was wrong about the white on the page - could we go back to the predominantly
   black version". Every former light section is now the alternate charcoal (--bg-warm), so pages still alternate, in
   two charcoals. `.section--light`, `.section--cream` and `.section--light-alt` are kept as names so markup follows. */
.section--light, .section--cream, .section--light-alt { background: var(--bg-warm); }
/* White ground ONLY where logos must show in their own colours to be "very visible" (Home collaborators, About founder
   + credentials). On #FFFFFF: #231F1F 16.1:1, #4A4543 9.3:1, #C42B18 5.6:1. */
.section--white { background: #FFFFFF; color: #4A4543;
  --cream: #231F1F; --text: #4A4543; --muted: #6B6461; --accent: #C42B18; --line: #E4E1DE; --bg-card: #FFFFFF; }
/* Adjacent sections of the same ground: drop the doubled padding (R3-S). */
.section--light + .section--light, .section--cream + .section--cream, .section--light-alt + .section--light-alt { padding-top: 0; }
.section--white .card { border-color: #E4E1DE; box-shadow: 0 1px 2px rgba(35,31,31,.04), 0 8px 24px rgba(35,31,31,.06); }
.section--white .glow::before, .section--white.glow::before { background: none; }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 50%, rgba(240, 96, 58, .14), rgba(35, 30, 29, 0) 70%); }

/* ---------- type ---------- */
.eyebrow { font: 700 13px/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow--ruled { display: flex; align-items: center; justify-content: center; gap: 22px; }
.eyebrow--ruled::before, .eyebrow--ruled::after { content: ""; width: 48px; height: 1px; background: var(--line); }
.display { font: 400 clamp(46px, 6.4vw, 96px)/.95 var(--display); color: var(--cream); text-transform: uppercase; letter-spacing: .005em; }
.display--md { font-size: clamp(38px, 4.6vw, 68px); }
.display--sm { font-size: clamp(30px, 3.2vw, 46px); }
.display .hl, .hl { color: var(--accent); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 22px; }

/* accent mark: 72×22, three 3px rounded lines at 100/80/65%, red→orange (her spec) */
.mark { width: 72px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 18px; }
.mark span { height: 3px; border-radius: 3px; background: var(--grad); }
.mark span:nth-child(2) { width: 80%; }
.mark span:nth-child(3) { width: 65%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 13px 28px; border-radius: 40px;
  font: 700 13px/1 var(--body); letter-spacing: .15em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn::after { content: ""; width: 20px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn--noarrow::after { display: none; }
.btn--primary { background: #F3ECDC; color: #1C1817; }   /* round 2 (R2-G3): no orange fill on charcoal */
.btn--primary:hover { background: #FFFFFF; transform: translateY(-1px); }
.section--white .btn--primary { background: #C42B18; color: #F5EDDE; }   /* 4.87:1 */
.section--white .btn--primary:hover { background: #A82414; }
/* Footer button: her footer spec said #F0603A fill, but her round-2 feedback (9/24) rejects orange against black,
   which is newer and more specific to the look, so the footer follows the site: cream on charcoal. */
.site-footer .btn--primary { background: #F3ECDC; color: #1C1817; }
.site-footer .btn--primary:hover { background: #FFFFFF; }
.btn--ghost { background: transparent; border-color: rgba(243, 236, 220, .35); color: var(--cream); }  /* R7: <button> kept the browser's grey face */
.btn--ghost:hover { border-color: var(--accent); color: var(--cream); }
.section--white .btn--ghost { border-color: rgba(35, 31, 31, .35); color: #231F1F; }
.btn--dark { background: var(--bg); color: var(--cream); }
.btn--dark:hover { background: var(--bg-foot); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font: 700 13px/1 var(--body); letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); text-decoration: none; }
.link-arrow::after { content: "→"; font-size: 20px; letter-spacing: 0; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }
.pill { display: inline-block; font: 700 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); background: transparent; border: 1px solid currentColor; padding: 6px 12px; border-radius: 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(35, 30, 29, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(243, 236, 220, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.site-header__logo img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.site-nav a { font: 400 21px/1 var(--display); letter-spacing: .06em; color: var(--cream); text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .btn { font-family: var(--body); font-size: 12px; min-height: 44px; padding: 11px 20px; border-bottom: 0; color: #1C1817; }
.site-nav .btn:hover { color: #1C1817; border-bottom-color: transparent; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); width: 48px; height: 48px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; margin: auto; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 6px;
    background: var(--bg); padding: 22px var(--gutter) 34px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav a { font-size: 30px; }
  .site-nav .btn { margin-top: 14px; }
}

/* ---------- cards ---------- */
.card { background: var(--bg-card);
  border: 1px solid rgba(243, 236, 220, .08); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .28); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- marquee (collaborators, endorsements) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(24px, 3vw, 44px); animation: marquee var(--dur, 60s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
/* Round 2 (R2-G3): the orange gradient band put orange against the charcoal page, which she rejected.
   The band is now a cream section with dark type and a red or charcoal button. */
/* R5-C: the closing band is charcoal again (alternate tone), cream type, cream button. */
.cta-band { background: var(--bg-warm); padding: clamp(56px, 7vw, 96px) var(--gutter); text-align: center; position: relative; }
.section--light + .cta-band, .section--light-alt + .cta-band, .section--warm + .cta-band { background: var(--bg); }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 0; width: 72px; height: 3px; transform: translateX(-50%); background: var(--grad); border-radius: 0 0 3px 3px; }
.cta-band p { color: var(--text); margin: 18px auto 32px; max-width: 58ch; font-size: clamp(17px, 1.3vw, 20px); }
.cta-band .eyebrow { color: var(--accent); }
.cta-band .btn--dark { background: #F3ECDC; color: #1C1817; }
.cta-band .btn--dark:hover { background: #FFFFFF; }

/* ---------- scroller pause toggle (R2-G6): quiet icon, still meets WCAG 2.2.2 ---------- */
.scroll-toggle { display: none !important; } /* retired round 3 (R3-9): Tyler asked twice for no play/pause controls */
.scroll-toggle-unused { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--muted); opacity: .7; transition: opacity .2s, color .2s; }
.scroll-toggle:hover, .scroll-toggle:focus-visible { opacity: 1; color: var(--cream); }
.scroll-toggle svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- media ---------- */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4); border: 1px solid rgba(243, 236, 220, .08); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- reveal (progressive: visible unless JS opts in) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- footer (CFG_Footer_Developer_Spec, charcoal default) ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg-foot); color: #8F8376; font: 400 14.5px/1.65 var(--body); }
.site-footer::before { content: ""; position: absolute; left: -180px; bottom: -320px; width: 900px; height: 720px; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 96, 58, .13) 0%, rgba(240, 96, 58, .04) 42%, rgba(28, 24, 23, 0) 70%); }
.site-footer .wrap { position: relative; max-width: 1440px; padding-left: clamp(20px, 7.6vw, 110px); padding-right: clamp(20px, 7.6vw, 110px); }
.footer-top { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.05fr; gap: 56px; padding: 74px 0 52px; }
.footer-logo img { height: 42px; width: auto; }
.footer-tagline { max-width: 300px; margin: 22px 0 26px; }
.footer-email { color: #F3ECDC; text-decoration: none; border-bottom: 1px solid #6A5A54; padding-bottom: 2px; }
.footer-email:hover { border-color: var(--accent); }
.footer h2, .site-footer h2 { font: 700 10.5px/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin-bottom: 12px; }
.site-footer nav a { color: #A79B8A; text-decoration: none; transition: color .16s; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: #F3ECDC; }
.footer-cta p { margin-bottom: 24px; }
.footer-cta .btn { font-size: 11px; padding: 13px 24px; min-height: 44px; }
.social { display: flex; gap: 11px; margin-top: 30px; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; }
.social span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #4A403C; color: #BCAF98;
  transition: background .16s ease, border-color .16s ease, color .16s ease; }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social a:hover span, .social a:focus-visible span { background: #F3ECDC; border-color: #F3ECDC; color: #1C1817; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid #332C2A;
  padding: 22px 0 26px; font-size: 12.5px; }
.footer-bottom .copy { color: #6E625B; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: #8F8376; text-decoration: none; }
.footer-bottom a:hover { color: #F3ECDC; }
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- motion consent ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .js .reveal { opacity: 1; transform: none; }
}
