/* =============================================================
   Cerebral Initiatives - site styles
   Brand: deep green (from the company portfolio) + geometric sans
   ============================================================= */

:root {
  /* Brand greens */
  --green-950: #07241A;
  --green-900: #0E3B26;
  --green-800: #165231;
  --green-700: #1E6B42;   /* primary: matches the portfolio cover */
  --green-600: #22804C;
  --green-500: #2E9E5B;
  --green-400: #3FBF6E;   /* accent: matches the portfolio headings */
  --green-200: #BFE6CD;
  --green-100: #E3F3E9;
  --green-50:  #F1F8F3;

  /* Neutrals */
  --ink:    #0F1A14;
  --ink-2:  #3B4A41;
  --ink-3:  #66756C;
  --line:   #DDE6E0;
  --surface:   #FFFFFF;
  --surface-2: #F5F8F6;
  --danger: #B42318;

  /* Type */
  --font-head: "Outfit", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape & layout */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 20, 0.06);
  --shadow-md: 0 12px 32px -14px rgba(15, 26, 20, 0.22);
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  /* Theme-dependent tokens (overridden for the dark theme below) */
  color-scheme: light;
  --header-bg: rgba(255, 255, 255, 0.9);
  --panel-bg: #FFFFFF;
  --input-bg: #FFFFFF;
  --link: var(--green-700);
  --eyebrow: var(--green-600);
  --accent: var(--green-700);
  --accent-strong: var(--green-800);
  --brand-text: #979797;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B42' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --logo-filter: grayscale(1);
  --logo-hover-filter: none;
  --logo-filter-invert: invert(1) grayscale(1);
  --logo-hover-filter-invert: invert(1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.012em;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; }

strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 0; }

:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; }

.text-lg { font-size: 1.15rem; }
.muted { color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--accent-strong); border-color: var(--green-200); }
.btn-outline:hover { background: var(--green-50); border-color: var(--green-500); }

.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-50); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name span { font-weight: 400; color: var(--ink-2); }
.brand--light { color: #fff; }
.brand--light .brand-name span { color: rgba(255, 255, 255, 0.75); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
.site-nav a:hover { background: var(--green-50); color: var(--accent-strong); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-strong); font-weight: 600; }
.site-nav .nav-cta { margin-left: 0.5rem; }
.site-nav .nav-cta a { color: #fff; }
.site-nav .nav-cta a:hover { background: var(--green-700); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--panel-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 0.75rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .site-nav a { display: block; padding: 0.8rem 0.85rem; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 0.5rem 0 0; }
  .site-nav .nav-cta a { text-align: center; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 65%, var(--green-600) 100%);
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero .eyebrow { color: var(--green-400); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.hero-art { display: none; }
.hero-art svg { width: 100%; height: auto; }

.hero-stats {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--green-400);
}
.hero-stats span { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-art { display: block; }
}

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 70%, var(--green-600) 100%);
  color: #fff;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--green-400); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.86); max-width: 62ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { color: var(--ink-2); font-size: 1.1rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-more { margin-top: 2rem; }

.split { display: grid; gap: 2rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; } }
.split h2 { margin-bottom: 0; }
.split .btn { margin-top: 1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- Cards ---------- */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card--link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-2); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-weight: 600; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.card--link:hover .card-link svg { transform: translateX(3px); }

.feature { padding: 0; border: 0; box-shadow: none; background: transparent; }
.feature .card-icon { background: var(--green-100); }

/* ---------- Chips ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.3;
}
.chip small { color: var(--ink-3); font-size: 0.78rem; }

.sector-group h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.sector-group h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-500);
}
.sector-group + .sector-group { margin-top: 2rem; }
@media (min-width: 860px) {
  .sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
  .sector-group + .sector-group { margin-top: 0; }
}

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.85rem; color: var(--ink-2); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-100) var(--check-icon) center / 10px no-repeat;
}
.check-list--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.list-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.75rem;
}
.list-title + .check-list { margin-bottom: 1.5rem; }
.list-title + .check-list:last-child { margin-bottom: 0; }

.bullet-list { list-style: none; display: grid; gap: 0.4rem; color: var(--ink-2); }
.bullet-list li { position: relative; padding-left: 1.1rem; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

/* ---------- Services page ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}
.subnav a:hover { background: var(--green-50); color: var(--accent-strong); text-decoration: none; }

.service {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.service:last-of-type { border-bottom: 0; }
.service-intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.service-intro p { color: var(--ink-2); font-size: 1.05rem; }
@media (min-width: 860px) {
  .service { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
  .service-intro { position: sticky; top: calc(var(--header-h) + 72px); }
}

/* ---------- Team page ---------- */
.member {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.member-index {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--eyebrow);
}
.member h3 { margin: 0; font-size: 1.3rem; }
.member-meta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--green-50);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.member-meta svg { width: 14px; height: 14px; }
.member .bullet-list { margin-top: 0.25rem; }

/* ---------- Work page ---------- */
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project h3 { margin: 0; font-size: 1.15rem; }
.project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.project-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--green-50);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}
.project .bullet-list { font-size: 0.95rem; }
.project-link {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.project-link svg { width: 14px; height: 14px; }

.publication {
  background: var(--surface);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.publication + .publication { margin-top: 1rem; }
.publication em { color: var(--ink); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: start; } }

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field label span { color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.2);
}
.field textarea { min-height: 170px; resize: vertical; }
.field select { text-overflow: ellipsis; cursor: pointer; }

/* Phone number: country dialling code beside the national number */
.phone-row { display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr); gap: 0.6rem; max-width: 36rem; }
.phone-row select { padding-right: 0.5rem; }
@media (max-width: 480px) { .phone-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-note { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.form-status { margin-top: 1rem; font-size: 0.95rem; min-height: 1.5em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--accent); font-weight: 600; }

.info-card {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.info-rows { list-style: none; display: grid; gap: 1rem; }
.info-row { display: grid; grid-template-columns: 40px 1fr; gap: 0.75rem; align-items: start; }
.info-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid var(--green-100);
}
.info-row-icon svg { width: 20px; height: 20px; }
.info-row-label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.info-row-value { color: var(--ink); }
.info-card + .info-card { margin-top: 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-band .container { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; }
@media (min-width: 800px) { .cta-band .container { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.footer-tagline { margin-top: 1.1rem; max-width: 40ch; font-size: 0.95rem; }
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.not-found .code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--green-100);
  margin-bottom: 0.5rem;
}
.not-found p { color: var(--ink-2); max-width: 40ch; margin: 0 auto 1.5rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Wordmark logo ---------- */
.brand-logo { display: block; width: clamp(200px, 32vw, 290px); height: auto; color: var(--brand-text); }
.brand--light .brand-logo { color: rgba(255, 255, 255, 0.85); }

/* ---------- Hero dot network ---------- */
.hero-network { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .container { z-index: 1; }

/* ---------- Client logo carousels ---------- */
.section--clients { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section--clients .section-head { margin-bottom: 1.5rem; max-width: 40rem; }
.section--clients h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 0; }

.logo-rows { display: grid; gap: 1.25rem; }
.logo-row { display: grid; gap: 0.4rem 1.5rem; align-items: center; }
.logo-row-label {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
@media (min-width: 760px) { .logo-row { grid-template-columns: 120px 1fr; } }

.logo-carousel {
  --logo-gap: 3.25rem;
  --logo-duration: 40s;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-row--public .logo-carousel { --logo-duration: 30s; }
.logo-row--private .logo-carousel { --logo-duration: 65s; }
.logo-marquee {
  display: flex;
  width: max-content;
  gap: var(--logo-gap);
  animation: logo-scroll var(--logo-duration) linear infinite;
}
.logo-carousel:hover .logo-marquee,
.logo-carousel:focus-within .logo-marquee { animation-play-state: paused; }
.logo-track { list-style: none; display: flex; align-items: center; gap: var(--logo-gap); flex: none; }
.logo-track li { flex: none; display: flex; align-items: center; height: 56px; }
.logo-track img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: var(--logo-filter);
  opacity: 0.72;
  transition: filter 0.25s, opacity 0.25s;
}
.logo-track li:hover img { filter: var(--logo-hover-filter); opacity: 1; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--logo-gap) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { animation: none; }
  .logo-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-bottom: 0.5rem; }
  .logo-track[aria-hidden="true"] { display: none; }
}
.logo-track img.logo--square { height: 52px; }
.logo-track img.logo--invert { filter: var(--logo-filter-invert); }
.logo-track li:hover img.logo--invert { filter: var(--logo-hover-filter-invert); }


/* ---------- Theme toggle ---------- */
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: var(--green-50); border-color: var(--green-200); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --green-50: #14241B;
  --green-100: #1A3024;
  --green-200: #2B4D39;
  --ink: #ECF2EE;
  --ink-2: #B9C6BE;
  --ink-3: #8C9A92;
  --line: #263429;
  --surface: #0E1713;
  --surface-2: #131F18;
  --danger: #F97066;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(14, 23, 19, 0.88);
  --panel-bg: #131F18;
  --input-bg: #0E1713;
  --link: #4CCB7B;
  --eyebrow: #4CCB7B;
  --accent: #4CCB7B;
  --accent-strong: #7ADBA0;
  --brand-text: rgba(255, 255, 255, 0.78);
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CCB7B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --logo-filter: grayscale(1) invert(1);
  --logo-hover-filter: grayscale(1) invert(1);
  --logo-filter-invert: grayscale(1);
  --logo-hover-filter-invert: grayscale(1);
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --green-50: #14241B;
  --green-100: #1A3024;
  --green-200: #2B4D39;
  --ink: #ECF2EE;
  --ink-2: #B9C6BE;
  --ink-3: #8C9A92;
  --line: #263429;
  --surface: #0E1713;
  --surface-2: #131F18;
  --danger: #F97066;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(14, 23, 19, 0.88);
  --panel-bg: #131F18;
  --input-bg: #0E1713;
  --link: #4CCB7B;
  --eyebrow: #4CCB7B;
  --accent: #4CCB7B;
  --accent-strong: #7ADBA0;
  --brand-text: rgba(255, 255, 255, 0.78);
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CCB7B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --logo-filter: grayscale(1) invert(1);
  --logo-hover-filter: grayscale(1) invert(1);
  --logo-filter-invert: grayscale(1);
  --logo-hover-filter-invert: grayscale(1);
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Hero dot globe ---------- */
.hero-art { position: relative; aspect-ratio: 1 / 1; width: min(100%, 440px); margin-left: auto; }
.hero-art canvas { display: block; width: 100%; height: 100%; }
.hero-network { opacity: 0.7; }

/* ---------- Inline SVG definitions (wordmark symbol) ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
