/* ============================================================
   COMMVNITY - brand system
   Palette sampled directly from the pitch deck's Venn gradients.
   ============================================================ */

:root {
  /* surfaces */
  --bg:            #05080a;
  --bg-alt:        #0a1014;
  --surface:       #0e161a;
  --surface-2:     #131e23;
  --line:          rgba(255, 255, 255, .10);
  --line-strong:   rgba(255, 255, 255, .18);

  /* type */
  --text:          #eef6f6;
  --text-muted:    #93a6ab;
  /* lifted from #6b7d83 so small text clears WCAG AA (4.5:1) on every
     surface, including the form card, where it previously sat at 4.26 */
  --text-faint:    #7b8d93;

  /* brand gradient stops */
  --mint:          #85f1b7;
  --cyan:          #8df0ef;
  --cyan-deep:     #4ec1e4;
  --blue:          #82d5fa;
  --blue-deep:     #4d85dd;
  --violet:        #95a3fd;
  --magenta:       #d675fd;

  --grad: linear-gradient(100deg, var(--mint) 0%, var(--cyan) 22%, var(--blue) 48%, var(--violet) 74%, var(--magenta) 100%);

  /* type scale */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Alata", system-ui, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  /* Kept deliberately modest: adjacent bands stack their padding, so the
     gap a visitor actually sees at a section boundary is twice this. */
  --band-y: clamp(3.25rem, 7vw, 6rem);
  --radius: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--blue-deep); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--text); color: var(--bg);
  padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell.narrow { max-width: 780px; }
.center { text-align: center; }

.band { position: relative; padding-block: var(--band-y); }
.band-alt { background: var(--bg-alt); }
.band-alt::before,
.band-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.band-alt::before { top: 0; }
.band-alt::after  { bottom: 0; }

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: .01em;
}

h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 5.75rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 300;
}

h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  letter-spacing: .005em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1.15rem;
}

.lede {
  color: var(--text-muted);
  font-size: clamp(1.02rem, .98rem + .3vw, 1.175rem);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 62ch;
}

.section-head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.section-head.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --btn-py: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--btn-py) 1.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  position: relative;
  color: #04191c;
  background: var(--grad);
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow: 0 6px 26px -10px rgba(130, 213, 250, .8);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -12px rgba(150, 163, 253, .95);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  background: rgba(130, 213, 250, .08);
}

.btn-sm { --btn-py: .68rem; padding-inline: 1.3rem; font-size: .72rem; }
.btn-block { width: 100%; margin-top: .5rem; }

/* ---------- dot grid texture ---------- */
.dots {
  position: absolute;
  width: clamp(120px, 16vw, 220px);
  aspect-ratio: 1;
  background-image: radial-gradient(rgba(255, 255, 255, .34) 1.2px, transparent 1.2px);
  background-size: 15px 15px;
  pointer-events: none;
  z-index: 1;
}
.dots-tl {
  top: 0; left: 0;
  -webkit-mask-image: linear-gradient(135deg, #000 5%, transparent 62%);
          mask-image: linear-gradient(135deg, #000 5%, transparent 62%);
}
.dots-br {
  bottom: 0; right: 0;
  -webkit-mask-image: linear-gradient(315deg, #000 5%, transparent 62%);
          mask-image: linear-gradient(315deg, #000 5%, transparent 62%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 10, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(5, 8, 10, .92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 76px;
}

.brand { flex: none; line-height: 0; }
.brand img { width: 148px; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  margin-left: auto;
}
.site-nav a {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding-block: .4rem;
  position: relative;
  white-space: nowrap;
  transition: color .22s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 800px);
  padding-block: clamp(4.5rem, 11vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

/* Live globe beside the headline (globe.js). It bleeds a little past the
   shell on wide screens and sinks behind the buttons, faded, below 900px. */
.hero-globe {
  position: absolute;
  top: 50%;
  right: max(-2rem, calc((100vw - var(--shell)) / 2 - 3rem));
  width: min(50vw, 660px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-globe.is-ready { opacity: 1; }
.hero-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;   /* vertical swipes still scroll the page */
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-copy { max-width: min(620px, 54%); pointer-events: auto; }

.hero h1 {
  font-size: clamp(2.75rem, 1.5rem + 3.4vw, 4.5rem);   /* smaller than other h1s so it fits beside the globe */
  margin-bottom: 1.5rem;
  text-wrap: balance;       /* settles to two even lines at every width */
}

.hero-sub {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1rem + .42vw, 1.28rem);
  color: var(--text-muted);
  line-height: 1.66;
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 3rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.trust-strip li { display: flex; align-items: center; gap: .6rem; }
.trust-strip li:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan-deep);
  margin-left: 1rem;
}

/* ============================================================
   OUR HEART
   ============================================================ */
.heart .shell { max-width: 900px; }
.heart blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.3rem, 1.05rem + 1.15vw, 2.05rem);
  line-height: 1.45;
  letter-spacing: .005em;
  color: var(--text);
  text-wrap: pretty;
}

.symbols {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 3.75rem);
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  color: var(--text-muted);
}
.symbols svg {
  width: clamp(46px, 6vw, 68px);
  height: auto;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.symbols svg:nth-child(1):hover { color: var(--cyan); transform: translateY(-4px); }
.symbols svg:nth-child(2):hover { color: var(--blue); transform: translateY(-4px); }
.symbols svg:nth-child(3):hover { color: var(--magenta); transform: translateY(-4px); }

/* ============================================================
   VENN DIAGRAMS
   ============================================================ */
.venn-wrap {
  display: grid;
  place-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.venn {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 40px rgba(120, 190, 240, .22));
}
.venn-3 { max-width: 430px; }

/* screen blending makes overlaps glow the way the deck's do */
.venn-circles circle {
  mix-blend-mode: screen;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}

.venn-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  fill: #04161a;
  text-anchor: middle;
}

.venn-v {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 300;
  fill: rgba(4, 22, 26, .78);
  text-anchor: middle;
}

/* ---------- interactive pillars diagram ----------
   script.js sets data-active (the selected part) and data-hover
   (the part under a mouse) on .venn-explorer. The selected circle
   grows and the others step back; its panel shows beside the
   diagram (below it on narrow screens). The tab buttons are the
   accessible controls; the SVG is aria-hidden decoration.
   ------------------------------------------------- */
.venn-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1020px;
  margin-inline: auto;
}
.venn-stage { display: grid; place-items: center; }
.venn-explorer .venn-3 { -webkit-tap-highlight-color: transparent; }
.venn-explorer .venn-3.is-pointing { cursor: pointer; }

.venn-label,
.venn-v { pointer-events: none; transition: opacity .4s var(--ease); }

/* hover: a gentle lift */
[data-hover="align"]   circle[data-part="align"],
[data-hover="connect"] circle[data-part="connect"],
[data-hover="impact"]  circle[data-part="impact"] { transform: scale(1.04); }

/* hover backlight: a blurred copy of the circle glows behind it.
   Full strength under the mouse, softer while selected. */
.venn-glows circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.06);
  transition: opacity .4s var(--ease);
}
[data-active="align"]   [data-glow="align"],
[data-active="connect"] [data-glow="connect"],
[data-active="impact"]  [data-glow="impact"] { opacity: .4; }
[data-hover="align"]   [data-glow="align"],
[data-hover="connect"] [data-glow="connect"],
[data-hover="impact"]  [data-glow="impact"] { opacity: .75; }
[data-hover="v"] .venn-glows circle { opacity: .25; }

/* selected pillar: grows, the rest step back */
[data-active="align"]   .venn-circles circle:not([data-part="align"]),
[data-active="connect"] .venn-circles circle:not([data-part="connect"]),
[data-active="impact"]  .venn-circles circle:not([data-part="impact"]) { opacity: .32; }
[data-active="align"]   .venn-label:not([data-part="align"]),
[data-active="connect"] .venn-label:not([data-part="connect"]),
[data-active="impact"]  .venn-label:not([data-part="impact"]) { opacity: .45; }
[data-active="align"]   circle[data-part="align"],
[data-active="connect"] circle[data-part="connect"],
[data-active="impact"]  circle[data-part="impact"] { transform: scale(1.08); }

/* the V: a soft disc that lights up on hover and when selected */
.venn-v-ring {
  fill: #fff;
  fill-opacity: 0;
  stroke: rgba(4, 22, 26, .35);
  stroke-opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill-opacity .4s var(--ease), stroke-opacity .4s var(--ease), transform .45s var(--ease);
}
[data-hover="v"] .venn-v-ring { fill-opacity: .22; }
[data-active="v"] .venn-v-ring {
  fill-opacity: .4;
  stroke-opacity: 1;
  transform: scale(1.12);
}

/* tabs */
.venn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.venn-tab {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 1rem;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.venn-tab:hover { color: var(--text); border-color: var(--line-strong); }
.venn-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.venn-tab[aria-selected="true"] { color: #04161a; border-color: transparent; }
.venn-tab[data-part="align"][aria-selected="true"]   { background: linear-gradient(120deg, var(--cyan), var(--cyan-deep)); }
.venn-tab[data-part="connect"][aria-selected="true"] { background: linear-gradient(120deg, var(--blue), var(--blue-deep)); }
.venn-tab[data-part="impact"][aria-selected="true"]  { background: linear-gradient(120deg, var(--violet), var(--magenta)); }
.venn-tab[data-part="v"][aria-selected="true"]       { background: var(--grad); }

/* panels share one grid cell, so the box is as tall as the longest
   panel and switching never shifts the page */
.venn-panels { display: grid; }
.venn-panel {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.15rem);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.venn-panel[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
}
.venn-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  opacity: .85;
  background: var(--grad);
}
.venn-panel[data-part="align"]::before   { background: linear-gradient(90deg, var(--cyan), var(--cyan-deep)); }
.venn-panel[data-part="connect"]::before { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }
.venn-panel[data-part="impact"]::before  { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.venn-panel h3 { margin-bottom: .85rem; }
.venn-panel[data-part="align"] h3   { color: var(--cyan); }
.venn-panel[data-part="connect"] h3 { color: var(--blue); }
.venn-panel[data-part="impact"] h3  { color: var(--violet); }
.venn-panel p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.venn-panel p + p { margin-top: .9rem; }
.venn-panel .venn-panel-lead { color: var(--text); font-size: 1.05rem; }
.venn-panel strong {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--blue);
}
.venn-panel .venn-hint { font-size: .88rem; color: var(--text-faint); }

@media (max-width: 900px) {
  .venn-explorer { grid-template-columns: 1fr; gap: 1.75rem; }
  .venn-explorer .venn-3 { max-width: 360px; }
}
/* keep all four tabs on one row on a phone */
@media (max-width: 480px) {
  .venn-tabs { gap: .35rem; justify-content: space-between; }
  .venn-tab { padding: .55rem .7rem; letter-spacing: .08em; font-size: .66rem; }
}

/* ============================================================
   CARDS + PILLARS
   ============================================================ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.15rem);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}

/* ============================================================
   CAPABILITIES: THE COMMVNITY IKIGAI

   script.js draws the diagram into [data-ik]: the four capability
   circles, the four overlap areas named in Max's ikigai image, and a
   callout for each. Wide screens put the callouts beside the circles;
   under 600px of width they move above and below. Hover (or tap on
   touch) lights a circle, an area with its callout, or the V. There
   is no click action.
   ============================================================ */
.ik-head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.ik-head h2 { text-transform: uppercase; letter-spacing: .08em; }

.ik { max-width: 860px; margin-inline: auto; }
.ik-svg {
  width: 100%; height: auto; display: block; overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.ik-svg.pointing { cursor: default; }
.ik-circles { filter: drop-shadow(0 0 40px rgba(120, 190, 240, .22)); }
.ik-c, .ik-g, .ik-vr { transform-box: fill-box; transform-origin: center; }
.ik-c { mix-blend-mode: screen; transition: transform .45s var(--ease), opacity .4s var(--ease); }
.ik-g { opacity: 0; transform: scale(1.06); pointer-events: none; transition: opacity .4s var(--ease); }
.ik-t {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 600; letter-spacing: .09em;
  fill: #04161a; text-anchor: middle; pointer-events: none;
}
.ik-v {
  font-family: var(--font-head); font-size: 28px; font-weight: 300;
  fill: rgba(4, 22, 26, .78); text-anchor: middle; pointer-events: none;
}
.ik-vr {
  fill: #fff; fill-opacity: 0; stroke: rgba(4, 22, 26, .35); stroke-opacity: 0; pointer-events: none;
  transition: fill-opacity .4s var(--ease), stroke-opacity .4s var(--ease), transform .45s var(--ease);
}
.ik-rg { opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.ik-marker {
  fill: #fff; fill-opacity: .85; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  transition: transform .3s var(--ease), fill-opacity .3s var(--ease);
}

/* callouts: label, tick, dotted leader to the area */
.ik-callout { transition: opacity .35s var(--ease); }
.ik-callout text {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  fill: var(--text-muted); transition: fill .3s var(--ease);
}
.ik-callout .tick { stroke: var(--text-faint); stroke-width: 1.2; }
.ik-callout .lead {
  fill: none; stroke: #fff; stroke-opacity: .38; stroke-width: 1.3;
  stroke-dasharray: 1.2 3.4; stroke-linecap: round;
  transition: stroke-opacity .3s var(--ease);
}
.ik-callout .hit { fill: transparent; }

/* hover: a circle lifts with its backlight */
.ik-c.on { transform: scale(1.04); }
.ik-g.on { opacity: .75; }
/* hover: an overlap lights up with its callout */
.ik[data-area] .ik-c { opacity: .45; }
.ik-rg.on { opacity: .85; }
.ik-marker.on { fill-opacity: 1; transform: scale(1.67); }
.ik[data-area] .ik-callout:not(.on) { opacity: .45; }
.ik-callout.on text { fill: var(--text); }
.ik-callout.on .lead { stroke-opacity: .95; }
/* hover: the V */
.ik[data-hover="v"] .ik-vr { fill-opacity: .3; stroke-opacity: 1; transform: scale(1.1); }
.ik[data-hover="v"] .ik-g { opacity: .25; }

/* narrow screens: callouts sit above and below the circles instead of beside them */
.ik-narrow { display: none; }
.ik.is-narrow .ik-wide { display: none; }
.ik.is-narrow .ik-narrow { display: inline; }
.ik-narrow text { font-size: 11.5px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   CONNECT GROUPS

   Parked for V1. The section is commented out in index.html but
   expected back, so these styles stay. .checks and .cg-actions
   below are NOT parked: Global Impact uses both.
   ============================================================ */
.connect-groups { overflow: hidden; }

.cg-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.cg-text .lede { margin-inline: 0; }

.checks {
  list-style: none;
  margin: 2rem 0 2.5rem;
  padding: 0;
  display: grid;
  gap: .95rem;
}
.checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-muted);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(-45deg);
}

/* three across, as a row of claims rather than a stacked list */
.checks-row {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem 2rem;
  max-width: 980px;
  margin-inline: auto;
}

.cg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.cg-actions.center { justify-content: center; margin-top: 2.75rem; }
.btn-note { font-size: .88rem; color: var(--text-faint); }

.cg-stats {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.stat span {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-note {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--text-faint);
  line-height: 1.55;
}

/* ============================================================
   PODCAST

   Parked for V1, same as Connect Groups above. .episodes is also
   used by the roadmap mockup in docs/roadmap.html, which loads
   this stylesheet.
   ============================================================ */
.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.episode { display: grid; align-content: start; gap: .7rem; }
.episode:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ep-num {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--blue);
}
.episode h3 { text-transform: none; letter-spacing: .01em; font-size: 1.08rem; }
.episode p { margin: 0; color: var(--text-muted); font-size: .94rem; }
.ep-link {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   OUR EXPANDING COMMUNITY

   A centred row, not a grid. Two entries read as a deliberate
   short list this way, where a grid of fixed cells would read as
   a six-slot wall with four holes in it. Adding an <li> re-centres
   the row with no other change, which is the "expandable" part of
   the brief.

   Each slot holds an <img> of the organization's logo. A slot can
   still hold the name as plain text while a logo file is missing.

   Logos arrive in their own colors, some too dark to read here,
   so the filter renders every one solid white. Slots share one
   height and logos are fitted inside it, so a wide wordmark and a
   tall emblem carry similar weight.
   ============================================================ */
.logo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.logo-row .logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 84px;
  padding: 1.35rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-head);
  font-size: clamp(.9rem, .82rem + .28vw, 1.1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
  transition: border-color .3s, color .3s, transform .3s;
}
.logo-row .logo-slot:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-3px);
}
.logo-row .logo-slot:has(img) {
  width: min(100%, 300px);
  height: 140px;
  padding: 1.5rem 2rem;
}
.logo-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .82;
  transition: opacity .3s;
}
.logo-row .logo-slot:hover img { opacity: 1; }
/* A linked logo: the link fills the whole slot, so the full box is clickable. */
.logo-row .logo-slot:has(.logo-link) { padding: 0; }
.logo-row .logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
}
.logo-row .logo-link:focus-visible { outline-offset: -2px; }
.logo-row .logo-slot:has(.logo-link:focus-visible) img { opacity: 1; }

/* ============================================================
   GLOBAL IMPACT

   Five focus areas, so the three-across grid used elsewhere
   leaves an awkward orphan row. Flex with centred wrapping keeps
   the last line balanced at any count. Inherits the checkmark
   from .checks.
   ============================================================ */
.focus-areas {
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.25rem;
}
.focus-areas li { flex: 0 1 auto; }

/* ============================================================
   PROOF

   The logo wall and testimonial styles below are NOT used by
   index.html yet. They are live in docs/roadmap.html, which mocks
   up what these sections look like once COMMVNITY has real logos
   and quotes to put in them. Keep them; they get switched on in
   index.html the day that content exists.
   ============================================================ */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.logo-slot {
  height: 76px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.quote { margin: 0; }
.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after  { content: "\201D"; }
.quote figcaption { display: grid; gap: .15rem; }
.quote figcaption strong {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .04em;
}
.quote figcaption span { font-size: .84rem; color: var(--text-faint); }

/* Two columns with full bios. Photo, name, and title stay centred;
   the bio is left-aligned because centred paragraphs this long are
   hard to read. align-items: start keeps a short bio from stretching
   to match a long one. */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.member { position: relative; }
.avatar {
  width: clamp(96px, 14vw, 128px);
  aspect-ratio: 1;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.10) 0 22%, transparent 23%),
    radial-gradient(ellipse 46% 32% at 50% 88%, rgba(255,255,255,.10) 0 60%, transparent 61%),
    var(--surface);
  border: 1px solid var(--line);
}
/* Real photos run as 3:4 portraits filling the column, with the name,
   title, and bio left-aligned beneath like a profile card. On phones
   the photo is capped so it does not fill the whole screen. The circular
   .avatar above stays for the silhouette placeholder. */
.member:has(.portrait) { text-align: left; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .portrait { max-width: 320px; }
}
.member h3 { text-transform: none; letter-spacing: .02em; font-size: 1.05rem; margin-bottom: .2rem; }
.member .member-title {
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--blue);
}
.member .member-bio {
  text-align: left;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.member p { margin: 0; font-size: .84rem; color: var(--text-faint); }

/* ---------- placeholder treatment ---------- */
.is-placeholder {
  position: relative;
  border: 1px dashed rgba(214, 117, 253, .38);
  background: rgba(214, 117, 253, .035);
}
.is-placeholder .avatar,
.is-placeholder .logo-slot {
  border-style: dashed;
  border-color: rgba(214, 117, 253, .3);
}
.logo-wall.is-placeholder { padding: 1.25rem; border-radius: var(--radius); }
.member.is-placeholder { border-radius: var(--radius); padding-inline: .75rem; padding-bottom: 1.25rem; }

.placeholder-tag {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--bg);
  border: 1px dashed rgba(214, 117, 253, .38);
  border-radius: 999px;
  padding: .28rem .7rem;
  white-space: nowrap;
  z-index: 3;
}
.band-alt .placeholder-tag { background: var(--bg-alt); }

.is-placeholder blockquote,
.is-placeholder h3,
.is-placeholder p,
.is-placeholder figcaption strong,
.is-placeholder .ep-link { color: var(--text-faint); }
.is-placeholder .ep-num  { color: rgba(214, 117, 253, .6); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact { overflow: hidden; }
.contact .shell { position: relative; z-index: 2; }

.contact-form {
  display: grid;
  gap: 1.25rem;
  text-align: left;
}

.field { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }

.field label,
.field legend {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0;
}
.optional { color: var(--text-faint); letter-spacing: .08em; font-weight: 400; text-transform: none; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(130, 213, 250, .06);
}
.field textarea { resize: vertical; min-height: 110px; }

.field input[aria-invalid="true"] { border-color: #f2789a; }

.radios { display: grid; gap: .6rem; margin-top: .25rem; }
.radios label {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-body);
  font-size: .96rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}
.radios input { accent-color: #4ec1e4; width: 17px; height: 17px; }

.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-note {
  margin: 0;
  text-align: center;
  font-size: .86rem;
  color: var(--text-faint);
}
.form-status {
  margin: 0;
  text-align: center;
  font-size: .92rem;
  min-height: 1.4em;
}
.form-status.ok    { color: var(--mint); }
.form-status.error { color: #f2789a; }

.contact-alt {
  text-align: center;
  margin: 1.75rem 0 0;
  color: var(--text-faint);
  font-size: .94rem;
}
.contact-alt a { color: var(--text); text-underline-offset: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand img { width: 168px; margin-bottom: 1rem; }
.footer-tag {
  margin: 0;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-nav, .footer-social { display: grid; gap: .7rem; align-content: start; }
.footer-nav a, .footer-social a, .footer-contact > a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem;
  transition: color .22s var(--ease);
}
.footer-nav a:hover, .footer-social a:hover, .footer-contact > a:hover { color: var(--text); }
/* same gap as .footer-social, so all four rows are evenly spaced */
.footer-contact { display: grid; gap: .7rem; align-content: start; }

/* icon + label read as one item, and the icon inherits the link's colour */
.footer-social a, .footer-contact > a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.footer-social svg, .footer-contact > a svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
  transition: opacity .22s var(--ease);
}
.footer-social a:hover svg, .footer-contact > a:hover svg { opacity: 1; }

.footer-base {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.footer-base p {
  margin: 0;
  font-size: .82rem;
  color: var(--text-faint);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger siblings within a group */
.episodes .reveal:nth-child(2),
.quotes .reveal:nth-child(2),
.team .reveal:nth-child(2) { transition-delay: .09s; }
.episodes .reveal:nth-child(3),
.team .reveal:nth-child(3) { transition-delay: .18s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cg-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* header CTA: the full label, or a short one where it would crowd the logo */
.header-cta .cta-short { display: none; }

/* the full nav + CTA need about 1190px; below that the links move into the
   menu and the CTA stays beside the menu button (measured 2026-11-14: at
   1000px the old breakpoint left the CTA hanging off the right edge) */
@media (max-width: 1199px) {
  html { scroll-padding-top: 76px; }

  .header-inner { min-height: 64px; }
  .brand img { width: 122px; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: .5rem var(--gutter) 1.5rem;
    /* solid, not translucent: a nested backdrop-filter inside the header's
       own backdrop root renders the background as fully transparent */
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    padding-block: .95rem;
    border-bottom: 1px solid var(--line);
    font-size: .82rem;
  }
  .site-nav a::after { display: none; }
}

@media (max-width: 900px) {
  .hero-copy { max-width: none; }
  /* no room beside the copy: sink it low and right, behind the buttons,
     so the headline stays on plain background */
  .hero-globe {
    top: auto;
    bottom: -20%;
    right: -34%;
    width: min(112vw, 680px);
    transform: none;
    pointer-events: none;
    /* the hero clips it, so fade it out before that edge */
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 66%);
            mask-image: linear-gradient(to bottom, #000 30%, transparent 66%);
  }
  .hero-globe.is-ready { opacity: .5; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero h1 { max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }

  .trust-strip { gap: .45rem 1rem; }
  .trust-strip li:not(:last-child)::after { display: none; }

  .symbols { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-cta { padding-inline: 1rem; }
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
}

/* the smallest phones: shrink the logo and gaps so logo, CTA and menu fit */
@media (max-width: 360px) {
  .header-inner { gap: .6rem; }
  .brand img { width: 104px; }
  .header-cta { padding-inline: .85rem; }
}

@media (max-width: 400px) {
  .placeholder-tag { font-size: .52rem; letter-spacing: .12em; }
}

/* ============================================================
   MOTION / CONTRAST PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
