/* ==========================================================================
   Climate Writers
   Colours, gradient, motifs and type follow the Canva brand book.
   Brand fonts: Bernoru (headings), DM Sans (subheadings), Garet (body).
   Bernoru and Garet are used when installed. To ship them, add licensed
   .woff2 files to /fonts and add a url() to their @font-face below.
   Until then the self-hosted Archivo Expanded and Outfit stand in.
   ========================================================================== */

@font-face {
  font-family: "Bernoru";
  src: local("Bernoru"), local("Bernoru-Bold");
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "Garet";
  src: local("Garet"), local("Garet-Book");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Expanded";
  src: url("fonts/archivo-expanded.woff2") format("woff2");
  font-weight: 800 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Primary */
  --sun: #ffc567;
  --pink: #fb7dab;
  --tomato: #fd5a46;
  --cream: #fff7e1;
  --olive: #414f17;
  /* Accent */
  --ink: #303030;
  --peach: #f69077;
  --berry: #d35f7c;

  --surface: #fffcf2;
  --line: color-mix(in oklab, var(--olive) 20%, transparent);

  --font-head: "Bernoru", "Archivo Expanded", "Arial Black", sans-serif;
  --font-sub: "DM Sans", system-ui, sans-serif;
  --font-body: "Garet", "Outfit", "DM Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 28px;
  --blob: 58% 42% 50% 50% / 46% 52% 48% 54%;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section: clamp(4.5rem, 9vw, 7.5rem);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 10px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--olive);
}

h3 {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--olive);
  text-wrap: pretty;
}

p {
  margin: 0 0 1em;
}

/* The logo's full stop, carried into every heading */
.dot {
  color: var(--tomato);
}

.dot-sun {
  color: var(--sun);
}

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

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.intro {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: var(--olive);
  color: var(--cream);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--olive);
  --fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(48, 48, 48, 0.6);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Primary action everywhere: joining a session */
.btn-join {
  --bg: var(--tomato);
  --fg: #fff;
}

.btn-light {
  --bg: var(--cream);
  --fg: var(--olive);
}

.btn-xl {
  min-height: 60px;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  padding: 1em 1.8em;
}

/* ---------- Header: a floating cream bar, identical on every page ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--wrap) + 32px, 100% - 2 * clamp(10px, 2.5vw, 32px));
  margin-inline: auto;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 10px 30px -14px rgba(30, 40, 10, 0.45);
  pointer-events: auto;
}

.logo {
  display: block;
  flex: none;
  width: 104px;
}

.logo img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--olive);
}

.nav-link {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-link:hover {
  background: color-mix(in oklab, var(--sun) 55%, transparent);
}

.nav-link[aria-current="page"] {
  background: var(--sun);
}

.site-nav .btn {
  margin-left: 0.4rem;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font: 700 1rem var(--font-sub);
  cursor: pointer;
}

.menu-btn span {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.nav-open .menu-btn span {
  background: transparent;
}

.nav-open .menu-btn span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .menu-btn span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: var(--radius);
    background: var(--cream);
    box-shadow: 0 20px 40px -18px rgba(30, 40, 10, 0.5);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 0.85rem 1rem;
  }

  .site-nav .btn {
    margin: 0.5rem 0 0;
  }
}

/* ---------- Brand gradient ---------- */

.brand-gradient {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, #ee6a3c 0%, #cf4a2f 26%, #7b6d1f 58%, #3a5212 80%, #193f0c 100%);
  color: var(--cream);
}

/* Grain */
.brand-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-sun {
  width: 44vw;
  height: 44vw;
  left: -22vw;
  top: -20vw;
  background: #f8d65e;
  opacity: 0.85;
  animation: drift-a 24s ease-in-out infinite alternate;
}

.glow-pink {
  width: 52vw;
  height: 52vw;
  right: -20vw;
  top: -22vw;
  background: #f564a8;
  opacity: 0.9;
  animation: drift-b 28s ease-in-out infinite alternate;
}

.glow-green {
  width: 70vw;
  height: 40vw;
  right: -24vw;
  bottom: -22vw;
  background: #0d3a08;
  opacity: 0.8;
}

@keyframes drift-a {
  to { transform: translate(6vw, 5vw) scale(1.1); }
}

@keyframes drift-b {
  to { transform: translate(-8vw, 6vw) scale(1.12); }
}

/* ---------- Home hero ---------- */

.hero {
  padding-top: clamp(140px, 19vh, 200px);
  padding-bottom: clamp(9rem, 20vw, 18rem);
}

.hero h1 {
  max-width: 11.5ch;
  font-size: clamp(3rem, 9.4vw, 8.6rem);
  line-height: 0.96;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(60, 20, 0, 0.18);
}

/* Photos set into the headline. They grow with transform, so the words never move. */
.pill {
  display: inline-block;
  width: 1.65em;
  height: 0.74em;
  margin: 0 0.04em;
  vertical-align: 0.02em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--olive);
  box-shadow: 0 0 0 0.05em var(--cream);
  transition: transform 0.45s var(--ease);
}

.pill:hover {
  transform: scale(1.12) rotate(-3deg);
}

.pill img,
.pill video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.8rem 3rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.hero-foot .intro {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hero-photo {
  position: relative;
  z-index: 2;
  margin: calc(-1 * clamp(7rem, 17vw, 15.5rem)) auto 0;
  width: calc(100% - 2 * clamp(10px, 2.5vw, 32px));
  max-width: 1600px;
}

.hero-photo img,
.hero-photo video {
  width: 100%;
  height: clamp(300px, 54vw, 780px);
  object-fit: cover;
  object-position: center 62%;
  border-radius: var(--radius);
}

/* ---------- As seen on ---------- */

.seen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem clamp(1.2rem, 4vw, 3rem);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
  font-family: var(--font-sub);
  font-weight: 600;
  color: var(--olive);
}

/* The logos always stay on one line; they shrink on narrow screens instead */
.seen ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.7rem, 3.4vw, 3rem);
}

.seen a {
  display: block;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.seen a:hover {
  opacity: 0.7;
}

/* Heights are tuned per logo so they look balanced next to each other */
.press {
  --h: clamp(22px, 6.6vw, 50px);
  display: block;
  width: auto;
  height: var(--h);
}

.press-tedx {
  height: calc(var(--h) * 0.62);
}

.press-un {
  height: calc(var(--h) * 1.1);
}

.press-wef {
  height: calc(var(--h) * 1.05);
}

@media (max-width: 600px) {
  .seen > span {
    flex-basis: 100%;
    text-align: center;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.bg-sun {
  background: var(--sun);
}

.bg-pink {
  background: var(--pink);
  color: var(--cream);
}

.bg-pink h2 {
  color: var(--cream);
}

.bg-olive {
  background: var(--olive);
  color: var(--cream);
}

.bg-olive h2,
.bg-olive h3 {
  color: var(--cream);
}

/* Highlight for a key fact in running text */
.mark-blob {
  padding: 0.02em 0.32em;
  border-radius: 0.5em;
  background: var(--pink);
  color: var(--cream);
  font-family: var(--font-sub);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Who we are ---------- */

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-copy p {
  max-width: 50ch;
}

.about-copy .intro {
  margin-bottom: 1.3rem;
}

.about-photos {
  position: relative;
  min-height: clamp(340px, 42vw, 540px);
}

.about-photos img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-photos img:nth-child(1) {
  top: 0;
  right: 0;
  width: 82%;
  height: 68%;
}

.about-photos img:nth-child(2) {
  left: 0;
  bottom: 0;
  width: 56%;
  height: 50%;
  border: 8px solid var(--cream);
  border-radius: calc(var(--radius) + 8px);
}

.hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hubs a {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 999px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--olive);
  transition: transform 0.3s var(--ease);
}

.hubs a:hover {
  transform: translateY(-2px);
}

.hubs li:nth-child(1) a { background: var(--sun); }
.hubs li:nth-child(2) a { background: var(--pink); color: var(--cream); }
.hubs li:nth-child(3) a { background: var(--peach); }
.hubs li:nth-child(4) a { background: var(--olive); color: var(--cream); }

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ---------- How a session works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}

.step {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
  border-radius: var(--blob);
  background: var(--tomato);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  transition: border-radius 0.6s var(--ease);
}

.step:hover .step-num {
  border-radius: 42% 58% 60% 40% / 56% 40% 60% 44%;
}

.step:nth-child(2) .step-num {
  background: var(--pink);
  color: var(--cream);
}

.step:nth-child(3) .step-num {
  background: var(--olive);
  color: var(--cream);
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.step p {
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- The gong (the fun bit) ---------- */

.gong-feature {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 250px);
  align-items: center;
  justify-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  border-radius: var(--radius);
  background: var(--olive);
  color: var(--cream);
}

.gong-stage {
  position: relative;
  width: clamp(210px, 26vw, 320px);
  margin-top: 2.5rem;
}

.gong {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gong svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.gong .disc {
  transform-origin: 100px 24px;
  transition: transform 0.3s var(--ease);
}

.gong:hover .disc {
  transform: rotate(-3deg);
}

.gong.is-ringing .disc {
  animation: gong-swing 1.4s var(--ease);
}

.gong .shine {
  opacity: 0;
}

.gong.is-ringing .shine {
  animation: shine 0.9s ease-out;
}

.gong .mallet {
  transform-origin: 196px 214px;
  transition: transform 0.25s var(--ease);
}

.gong:hover .mallet {
  transform: rotate(-12deg);
}

.gong.is-ringing .mallet {
  animation: mallet-hit 0.45s ease-out;
}

.gong .rings circle {
  fill: none;
  stroke: var(--sun);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.gong.is-ringing .rings circle {
  animation: ring-out 0.9s ease-out;
}

.gong.is-ringing .rings circle:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes gong-swing {
  0% { transform: rotate(0); }
  12% { transform: rotate(11deg); }
  32% { transform: rotate(-8deg); }
  52% { transform: rotate(5deg); }
  72% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}

@keyframes mallet-hit {
  0% { transform: rotate(-12deg); }
  35% { transform: rotate(22deg); }
  100% { transform: rotate(0); }
}

@keyframes shine {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes ring-out {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* Speech bubble that reacts to each gong. Absolutely placed, so nothing shifts. */
.gong-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: max-content;
  max-width: 230px;
  padding: 0.55em 0.95em;
  border-radius: 18px;
  background: var(--sun);
  color: var(--olive);
  font: 700 0.98rem/1.3 var(--font-sub);
  text-align: center;
  transform: translate(-50%, 6px) scale(0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
  pointer-events: none;
}

.gong-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 9px solid transparent;
  border-top-color: var(--sun);
  transform: translateX(-50%);
}

.gong-bubble.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.gong-video {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: #2b350f;
}

.gong-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-toggle {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive);
  font: 700 0.95rem var(--font-sub);
  cursor: pointer;
}

.sound-toggle svg {
  width: 1.15em;
  height: 1.15em;
}

@media (max-width: 900px) {
  .gong-feature {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .gong-stage {
    order: -1;
  }

  .gong-video {
    width: min(250px, 100%);
  }
}

/* Confetti in brand colours */
.blob-confetti {
  position: fixed;
  z-index: 400;
  border-radius: var(--blob);
  pointer-events: none;
}

/* ---------- Photo carousel (user controlled, nothing moves on its own) ---------- */

.carousel-btns {
  display: flex;
  gap: 0.6rem;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  transform: scale(1.06);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel {
  display: flex;
  gap: clamp(12px, 1.5vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  padding-bottom: 6px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: none;
  margin: 0;
  height: clamp(260px, 34vw, 440px);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in oklab, var(--olive) 12%, var(--cream));
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.shot:hover img {
  transform: scale(1.04);
}

.shot.p {
  aspect-ratio: 3 / 4;
}

.shot.l {
  aspect-ratio: 3 / 2;
}

/* ---------- Impact ---------- */

.impact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.impact-lead {
  margin: 1.6rem 0 0;
  max-width: 22ch;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  line-height: 1.35;
}

.impact-num {
  display: block;
  margin: 0.15em 0 0.1em;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--sun);
}

.wins li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
}

.wins li:first-child {
  padding-top: 0;
}

.wins li + li {
  border-top: 1.5px solid color-mix(in oklab, var(--cream) 25%, transparent);
}

.wins li::before {
  content: "";
  width: 26px;
  height: 26px;
  margin-top: 0.2rem;
  border-radius: var(--blob);
  background: var(--sun);
}

.wins li:nth-child(4n + 2)::before { background: var(--pink); }
.wins li:nth-child(4n + 3)::before { background: var(--tomato); }
.wins li:nth-child(4n + 4)::before { background: var(--peach); }

.wins strong {
  font-family: var(--font-sub);
  color: var(--sun);
}

@media (max-width: 860px) {
  .impact {
    grid-template-columns: 1fr;
  }
}

/* ---------- Testimonials ---------- */

.testi-grid {
  columns: 3 290px;
  column-gap: clamp(12px, 1.5vw, 18px);
}

.testi {
  break-inside: avoid;
  margin: 0 0 clamp(12px, 1.5vw, 18px);
  filter: drop-shadow(0 10px 18px rgba(120, 20, 60, 0.22));
}

.testi img {
  width: 100%;
  height: auto;
}

/* Show a handful first (fewer on phones); the button reveals the rest */
.testi-grid:not(.is-expanded) .testi:nth-child(n + 10) {
  display: none;
}

@media (max-width: 640px) {
  .testi-grid:not(.is-expanded) .testi:nth-child(n + 5) {
    display: none;
  }
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.8rem;
  max-width: 860px;
}

.faq details {
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow 0.2s ease;
}

.faq details:hover,
.faq details[open] {
  box-shadow: inset 0 0 0 2px var(--olive);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.22rem);
  line-height: 1.3;
  color: var(--olive);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--blob);
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23414f17' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 58% no-repeat;
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq-body {
  padding: 0 1.4rem 1.4rem;
  max-width: 64ch;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

/* Brand stripe motif, used once per page: the footer's top edge */
.stripes {
  display: block;
  width: 100%;
  height: 36px;
}

.site-footer {
  position: relative;
  background: var(--olive);
  color: var(--cream);
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: 2.5rem;
}

.site-footer h2 {
  max-width: 14ch;
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.footer-cta {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem 3rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: 2.5rem;
  border-top: 1.5px solid color-mix(in oklab, var(--cream) 30%, transparent);
}

.footer-logo {
  width: clamp(140px, 15vw, 190px);
}

.footer-contact {
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-weight: 600;
}

.footer-email {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--sun);
  text-decoration: none;
  word-break: break-word;
}

.footer-email:hover,
.footer-social a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1.4rem;
}

.footer-social a {
  text-decoration: none;
}

.acknowledgment {
  max-width: 70ch;
  margin: 2.5rem 0 0;
  font-size: 1rem;
  color: color-mix(in oklab, var(--cream) 88%, transparent);
}

.footer-meta {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in oklab, var(--cream) 70%, transparent);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Inner page head ---------- */

.page-head {
  padding-top: clamp(150px, 20vh, 210px);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.page-head h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 7.6vw, 6.4rem);
  line-height: 0.98;
  text-shadow: 0 2px 40px rgba(60, 20, 0, 0.18);
}

/* ---------- Hub blocks (Join page) ---------- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}

.hub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: clamp(210px, 24vw, 300px);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--sun);
  color: var(--olive);
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}

.hub:hover {
  transform: translateY(-4px);
}

.hub-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.hub-city {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hub-go {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 1.3em;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.02rem;
}

.hub-go svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.3s var(--ease);
}

.hub:hover .hub-go svg {
  transform: translateX(3px);
}

.hub:nth-child(2) {
  background: var(--pink);
  color: var(--cream);
}

.hub:nth-child(3) {
  background: var(--peach);
}

.hub:nth-child(4) {
  background: var(--olive);
  color: var(--cream);
}

.hub:nth-child(4) .hub-go {
  background: var(--sun);
  color: var(--olive);
}

@media (max-width: 640px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: clamp(0.8rem, 1.6vw, 1.2rem);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
}

.band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.band p {
  margin: 0.5rem 0 0;
  max-width: 50ch;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
  margin-top: clamp(0.8rem, 1.6vw, 1.2rem);
}

.photo-pair img {
  width: 100%;
  height: clamp(240px, 30vw, 420px);
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 600px) {
  .photo-pair {
    grid-template-columns: 1fr;
  }
}

/* ---------- Resource list (Resources page) ---------- */

.res-list {
  display: grid;
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}

.res {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem clamp(1.2rem, 3vw, 2.2rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--olive);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.35s var(--ease);
}

.res:hover {
  box-shadow: inset 0 0 0 2px var(--olive);
  transform: translateY(-3px);
}

.res-num {
  display: grid;
  place-items: center;
  width: clamp(54px, 6vw, 68px);
  aspect-ratio: 1;
  border-radius: var(--blob);
  background: var(--sun);
  color: var(--olive);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.res:nth-child(2) .res-num { background: var(--pink); color: var(--cream); }
.res:nth-child(3) .res-num { background: var(--peach); }
.res:nth-child(4) .res-num { background: var(--olive); color: var(--cream); }

.res h2 {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}

.res p {
  margin: 0.4rem 0 0;
  max-width: 60ch;
  color: var(--ink);
}

.res-arrow {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--tomato);
  color: #fff;
  transition: transform 0.3s var(--ease);
}

.res-arrow svg {
  width: 22px;
  height: 22px;
}

.res:hover .res-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .res {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .res-arrow {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
