/* ============================================================
   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;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
}
.hero-map img {
  width: min(1500px, 132%);
  max-width: none;
  opacity: .3;
  filter: saturate(1.1);
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 46%, #000 12%, transparent 82%);
          mask-image: radial-gradient(ellipse 72% 62% at 50% 46%, #000 12%, transparent 82%);
}
.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; }

.hero h1 {
  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; }
.venn-4 { max-width: 440px; }

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

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

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

/* ============================================================
   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);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.pillar { overflow: hidden; }
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  opacity: .85;
}
.pillar-align::before   { background: linear-gradient(90deg, var(--cyan), var(--cyan-deep)); }
.pillar-connect::before { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }
.pillar-impact::before  { background: linear-gradient(90deg, var(--violet), var(--magenta)); }

.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.pillar-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .7rem;
  margin-bottom: 1.15rem;
}

.pillar h3 { margin-bottom: .85rem; }
.pillar-align h3   { color: var(--cyan); }
.pillar-connect h3 { color: var(--blue); }
.pillar-impact h3  { color: var(--violet); }

.pillar p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ============================================================
   CAPABILITIES SPLIT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split-text .lede { margin-inline: 0; }

.capability-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.capability-list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.capability-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-mint   { background: var(--mint);   box-shadow: 0 0 12px -1px var(--mint); }
.dot-blue   { background: var(--blue);   box-shadow: 0 0 12px -1px var(--blue); }
.dot-violet { background: var(--magenta);box-shadow: 0 0 12px -1px var(--magenta); }
.dot-cyan   { background: var(--cyan);   box-shadow: 0 0 12px -1px var(--cyan); }

.split-visual { display: grid; place-items: center; }

/* ============================================================
   CONNECT GROUPS
   ============================================================ */
.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
   ============================================================ */
.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);
}

/* ============================================================
   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); }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 760px;
  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);
}
.member h3 { text-transform: none; letter-spacing: .02em; font-size: 1.05rem; margin-bottom: .2rem; }
.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 */
.pillars .reveal:nth-child(2),
.episodes .reveal:nth-child(2),
.quotes .reveal:nth-child(2),
.team .reveal:nth-child(2) { transition-delay: .09s; }
.pillars .reveal:nth-child(3),
.episodes .reveal:nth-child(3),
.team .reveal:nth-child(3) { transition-delay: .18s; }

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

/* the full nav + CTA stop fitting well before the phone breakpoint */
@media (max-width: 1000px) {
  html { scroll-padding-top: 76px; }

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

  .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: 760px) {
  .hero { min-height: auto; }
  .hero h1 { max-width: none; }
  .hero-map img { opacity: .24; width: 175%; }
  .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: 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;
  }
}
