/* ─────────────────────────────────────────────────────────────
   Netrica.AI — "The city, read by a model"
   Cartographic-day design system.
   Palette: map-paper / ink-navy / brand indigo / score colors.
   Type: Bricolage Grotesque (display) · Instrument Sans (body)
         · Spline Sans Mono (data).
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #f7f8fc;
  --paper-deep: #eef0f8;
  --card: #ffffff;
  --ink: #101a2e;
  --ink-soft: #3d4763;
  --ink-mute: #6f7893;
  --line: rgba(16, 26, 46, 0.1);
  --line-strong: rgba(16, 26, 46, 0.22);

  --indigo: #4f46e5;
  --indigo-deep: #3730c4;
  --indigo-tint: #e6e6fb;

  --night: #131a33;
  --night-deep: #0c1226;

  --safe: #0e9f6e;
  --mixed: #d97706;
  --avoid: #e02d3c;

  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --shell: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  /* faint survey-grid: the map paper the company works on */
  background-image:
    linear-gradient(rgba(16, 26, 46, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 26, 46, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }

::selection { background: var(--indigo-tint); color: var(--indigo-deep); }

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

/* ── Type roles ─────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--indigo);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  max-width: 22ch;
  margin-top: 0.85rem;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 0.9rem;
}

.mono { font-family: var(--mono); font-size: 0.8rem; }

/* ── Nav ────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 248, 252, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.8rem var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { color: var(--indigo); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--indigo);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--indigo-deep); transform: translateY(-1px); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 40px; height: 38px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 16px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem var(--pad) 1.4rem;
  background: var(--paper);
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; display: grid; gap: 0.35rem; }
.nav-drawer a {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }

.hero-head {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-bottom: 1.4rem;
}
.hero-kicker .dot { color: var(--safe); }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 640;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--indigo);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  /* a route line under the key phrase */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.09em;
  background: repeating-linear-gradient(90deg,
    var(--indigo) 0 10px, transparent 10px 16px);
  border-radius: 2px;
  opacity: 0.85;
}

.hero-side { padding-bottom: 0.4rem; }
.hero-side p { color: var(--ink-soft); font-size: 1.02rem; max-width: 40ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1.5px); }
.btn-solid { background: var(--indigo); color: #fff; }
.btn-solid:hover { background: var(--indigo-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

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

/* ── Demo panel (signature) ─────────────────────────────────── */

.demo-wrap {
  max-width: calc(var(--shell) + 3rem);
  margin: clamp(2.2rem, 5vw, 3.6rem) auto 0;
  padding: 0 clamp(0.75rem, 2.5vw, 2rem);
}

.demo-panel {
  background: var(--night);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(16, 26, 46, 0.14),
    0 24px 64px -24px rgba(16, 26, 46, 0.4);
  color: #dfe4f5;
  transition: background 0.8s ease;
}
.demo-panel.is-day { background: #3f5f97; }

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.demo-title {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(223, 228, 245, 0.62);
  margin-right: auto;
}

.profile-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.chip {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 550;
  color: rgba(223, 228, 245, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip.is-active {
  background: #eef0ff;
  border-color: #eef0ff;
  color: var(--night-deep);
}

.time-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.time-toggle button {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(223, 228, 245, 0.7);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.time-toggle button.is-active { background: #eef0ff; color: var(--night-deep); }

.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.demo-stage { position: relative; min-height: 380px; }
.demo-stage svg { display: block; width: 100%; height: 100%; }

.demo-legend {
  position: absolute;
  left: 1rem; bottom: 0.9rem;
  display: flex;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(223, 228, 245, 0.75);
  background: rgba(9, 13, 30, 0.55);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.demo-legend i {
  display: inline-block;
  width: 14px; height: 4px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.demo-side {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.demo-side h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.demo-route-meta {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  color: rgba(223, 228, 245, 0.6);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.score { display: grid; gap: 0.32rem; }
.score-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(223, 228, 245, 0.88);
}
.score-row .mono { color: rgba(223, 228, 245, 0.66); }
.score-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.score-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
}

.demo-cond {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.7;
  color: rgba(223, 228, 245, 0.6);
}
.demo-cond b { color: rgba(223, 228, 245, 0.92); font-weight: 500; }

.demo-caption {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin-top: 0.9rem;
  padding: 0 0.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-side { border-left: none; border-top: 1px solid rgba(255,255,255,0.09); }
  .demo-stage { min-height: 300px; }
}

/* ── Sections ───────────────────────────────────────────────── */

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; }

.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

/* Credential strip */
.cred-strip {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.cred-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 2rem;
}
.cred {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cred strong { font-size: 0.93rem; font-weight: 600; letter-spacing: -0.01em; }
.cred span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-mute); }
@media (max-width: 860px) {
  .cred-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Product cards */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 16px 40px -18px rgba(16, 26, 46, 0.25);
}
.product-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--indigo-tint);
  color: var(--indigo-deep);
  display: grid;
  place-items: center;
}
.product-icon svg { width: 22px; height: 22px; }
.product h3 { font-size: 1.22rem; font-weight: 600; }
.product p { font-size: 0.95rem; color: var(--ink-soft); }
.product .mono { color: var(--ink-mute); margin-top: auto; padding-top: 0.5rem; }
@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
}

/* How it works — pipeline strip */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.pipe-step {
  padding: 1.5rem 1.4rem 1.6rem;
  border-left: 1px solid var(--line);
  position: relative;
}
.pipe-step:first-child { border-left: none; }
.pipe-step .mono { color: var(--indigo-deep); }
.pipe-step h3 { font-size: 1.1rem; font-weight: 600; margin: 0.55rem 0 0.45rem; }
.pipe-step p { font-size: 0.9rem; color: var(--ink-soft); }
.pipe-step::after {
  content: "→";
  position: absolute;
  top: 1.35rem; right: 1rem;
  color: var(--line-strong);
  font-size: 1rem;
}
.pipe-step:last-child::after { content: ""; }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipe-step { border-left: none; border-top: 1px solid var(--line); }
  .pipe-step:first-child { border-top: none; }
  .pipe-step::after { content: "↓"; top: auto; bottom: 0.8rem; }
  .pipe-step:last-child::after { content: ""; }
}

/* Who it's for */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.audience {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.audience .mono { color: var(--ink-mute); }
.audience h3 { font-size: 1.14rem; font-weight: 600; }
.audience p { font-size: 0.93rem; color: var(--ink-soft); }
.audience a {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--indigo-deep);
}
.audience a:hover { text-decoration: underline; }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; } }

/* Research */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.research-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.research-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-deep);
  background: var(--indigo-tint);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.research-card h3 { font-size: 1.1rem; font-weight: 600; }
.research-card p { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 860px) { .research-grid { grid-template-columns: 1fr; } }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.member {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.member img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  filter: saturate(0.92);
}
.member-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.member .mono { color: var(--indigo-deep); }
.member h3 { font-size: 1.15rem; font-weight: 600; }
.member p { font-size: 0.9rem; color: var(--ink-soft); }
.member-body a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--indigo-deep);
  text-decoration: none;
  margin-top: 0.3rem;
}
.member-body a:hover { text-decoration: underline; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }

/* Origin / photos */
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
.origin-copy p { color: var(--ink-soft); margin-top: 0.9rem; max-width: 46ch; }
.origin-facts {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
}
.origin-facts div { border-left: 2px solid var(--indigo-tint); padding-left: 0.8rem; }
.origin-facts dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); }
.origin-facts dd { font-size: 0.92rem; font-weight: 600; margin-top: 0.15rem; }
.origin-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.origin-photos figure:first-child { grid-column: 1 / -1; }
.origin-photos figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.origin-photos img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; }
.origin-photos figure:not(:first-child) img { aspect-ratio: 4 / 3; }
.origin-photos figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  padding: 0.55rem 0.9rem;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 860px) { .origin { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--indigo);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.15rem; color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }

/* Contact band */
.contact-band {
  margin-top: clamp(4rem, 9vw, 7rem);
  background: var(--night);
  color: #e7eaf7;
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  /* faint route lines in the night */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.contact-inner .eyebrow { color: #a5b0f5; }
.contact-inner .eyebrow::before { background: #a5b0f5; }
.contact-inner h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 620;
  color: #fff;
  margin-top: 0.9rem;
  max-width: 18ch;
}
.contact-inner .contact-sub { color: rgba(231, 234, 247, 0.75); margin-top: 1rem; max-width: 46ch; }
.contact-detail { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.82rem; line-height: 2; color: rgba(231, 234, 247, 0.8); }
.contact-detail a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.contact-detail a:hover { border-bottom-color: #fff; }
.contact-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.contact-card h3 { font-family: var(--display); font-size: 1.15rem; color: #fff; }
.contact-card p { font-size: 0.9rem; color: rgba(231, 234, 247, 0.72); }
.contact-card .btn-solid { justify-content: center; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--night-deep); color: rgba(231, 234, 247, 0.72); }
.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.6rem var(--pad) 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.footer .brand { color: #fff; }
.footer-tag { font-size: 0.88rem; margin-top: 0.8rem; max-width: 34ch; }
.footer h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 234, 247, 0.5);
  margin-bottom: 0.8rem;
}
.footer ul { list-style: none; display: grid; gap: 0.45rem; }
.footer a { color: rgba(231, 234, 247, 0.82); text-decoration: none; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(231, 234, 247, 0.45);
}
.footer-bottom-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* ── Reveal on scroll ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .score-bar i { transition: none; }
}

/* ── Subpages (blog / careers) ──────────────────────────────── */
.subhero { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.subhero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 630;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-top: 0.9rem;
}
.subhero .section-lede { max-width: 56ch; }

.role-list { display: grid; gap: 0.9rem; max-width: 860px; }
.role {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.4rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title cta" "meta cta" "desc cta";
  gap: 0.2rem 1.5rem;
}
.role h3 { grid-area: title; font-size: 1.15rem; font-weight: 600; }
.role .mono { grid-area: meta; color: var(--ink-mute); }
.role p { grid-area: desc; font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.3rem; }
.role a { grid-area: cta; align-self: center; }
@media (max-width: 640px) {
  .role { grid-template-columns: 1fr; grid-template-areas: "title" "meta" "desc" "cta"; }
  .role a { justify-self: start; margin-top: 0.8rem; }
}

.note-list { display: grid; gap: 0.9rem; max-width: 860px; }
.note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.4rem 1.5rem;
}
.note .mono { color: var(--ink-mute); }
.note h3 { font-size: 1.15rem; font-weight: 600; margin-top: 0.45rem; }
.note p { font-size: 0.94rem; color: var(--ink-soft); margin-top: 0.5rem; max-width: 64ch; }
