/* CiviGuard — legacy site, rebuilt 2026. No external dependencies. */

:root {
  --red: #e51c23;
  --green: #259b24;
  --amber: #ffc107;
  --indigo: #3f51b5;

  --bg: #fafaf8;
  --surface: #f1f1ed;
  --ink: #1d1e20;
  --muted: #5c5f66;
  --hairline: rgba(29, 30, 32, 0.12);
  --link: #34459e;
  --chip: #ffffff;

  --charcoal: #17181c;
  --charcoal-2: #1e1f24;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141519;
    --surface: #1b1c21;
    --ink: #e8e9ec;
    --muted: #9ba0a8;
    --hairline: rgba(232, 233, 236, 0.14);
    --link: #93a2e8;
    --chip: #f4f4f1;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--amber); color: #1d1e20; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.shell.narrow { max-width: 720px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 24, 28, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 20px; width: auto; }

.site-header nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
}
.site-header nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.site-header nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

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

.hero {
  position: relative;
  background:
    linear-gradient(rgba(23, 24, 28, 0.78), rgba(23, 24, 28, 0.88) 78%, var(--charcoal)),
    url("/images/map-bg.jpg") center / cover no-repeat;
  color: #fff;
  padding: clamp(84px, 14vh, 160px) 0 clamp(96px, 16vh, 180px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.hero .eyebrow::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--indigo) 0 25%, var(--red) 25% 50%,
    var(--amber) 50% 75%, var(--green) 75% 100%);
}

.hero h1 {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.hero-sub {
  max-width: 54ch;
  margin: 26px 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-caption {
  position: absolute;
  right: 20px;
  bottom: 14px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- stats ---------- */

.stats {
  background: var(--charcoal);
  color: #fff;
  padding: 20px 0 56px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  padding-left: 16px;
  border-left: 3px solid;
}
.tick-red { border-color: var(--red); }
.tick-amber { border-color: var(--amber); }
.tick-green { border-color: var(--green); }
.tick-indigo { border-color: var(--indigo); }

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- sections ---------- */

section { scroll-margin-top: 72px; }

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-lede {
  max-width: 56ch;
  margin: 0 0 40px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- story ---------- */

.story { padding: clamp(64px, 10vh, 110px) 0; }

.story p { margin: 0 0 1.25em; }

.story blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg,
    var(--indigo) 0 25%, var(--red) 25% 50%,
    var(--amber) 50% 75%, var(--green) 75% 100%) 1;
}
.story blockquote p {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.components {
  margin: 1.6em 0 2em;
  padding: 0;
  list-style: none;
}
.components li {
  position: relative;
  margin-bottom: 1.1em;
  padding-left: 26px;
}
.components li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.components li:nth-child(1)::before { background: var(--indigo); }
.components li:nth-child(2)::before { background: var(--red); }
.components li:nth-child(3)::before { background: var(--amber); }
.components li:nth-child(4)::before { background: var(--green); }

/* ---------- work ---------- */

.work {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(64px, 10vh, 110px) 0;
}

.feature-wide {
  margin: 0 0 56px;
}
.feature-wide img {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.18));
}
.feature-wide figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 920px;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.feature-wide figcaption p { margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.feature { margin: 0; }

.shots {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.shots img {
  width: calc(50% - 6px);
  max-width: 190px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.16));
}

.feature figcaption { margin-top: 22px; }
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.feature figcaption p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- recognition ---------- */

.recognition { padding: clamp(64px, 10vh, 110px) 0; }

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.badges li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--chip);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.badges img {
  height: 44px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex: none;
}
.badges span {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #3c3f45;
}

.recognition-note {
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- team ---------- */

.team {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: clamp(64px, 10vh, 110px) 0;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.people .role,
.founders h3 {
  display: block;
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.people .name,
.founders .name {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.people a,
.founders a { font-size: 0.92rem; }

.founders {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.founders ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.founders .name { font-size: 1.1rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 56px 0 48px;
}
.site-footer .footer-mark { height: 40px; width: auto; }
.site-footer p { margin: 18px 0 0; font-size: 0.95rem; }
.site-footer .fine {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.site-footer a { color: rgba(255, 255, 255, 0.65); }

/* ---------- reveal ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.will-reveal.in {
  opacity: 1;
  transform: none;
}
.stat-row .stat:nth-child(2), .badges li:nth-child(2), .people li:nth-child(2) { transition-delay: 0.08s; }
.stat-row .stat:nth-child(3), .badges li:nth-child(3), .people li:nth-child(3) { transition-delay: 0.16s; }
.stat-row .stat:nth-child(4), .badges li:nth-child(4) { transition-delay: 0.24s; }
.badges li:nth-child(5) { transition-delay: 0.32s; }
.badges li:nth-child(6) { transition-delay: 0.4s; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; gap: 20px; }
  .feature-wide figcaption { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .stat-row { grid-template-columns: 1fr; gap: 22px; }
  .badges { grid-template-columns: 1fr; }
  .site-header .shell { padding: 0 16px; }
  .brand img { height: 16px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 0.78rem; }
  .hero-caption { position: static; margin-top: 40px; padding: 0 24px; }
}
