/* ============================================================
   TESA Research — shared styles
   Palette: ink navy, brand navy, sky (logo), gold accent
   Type: Montserrat (display) / Public Sans (body) /
         IBM Plex Mono (labels, data)
   ============================================================ */

:root {
  --ink: #131b46;
  --navy: #1e2761;
  --sky: #2ca5e1;
  --sky-deep: #1877ad;
  --gold: #e8a33d;
  --paper: #fbfcfe;
  --mist: #eef3f9;
  --line: #d9e2ee;
  --slate: #55617d;
  --white: #ffffff;

  --font-display: "Montserrat", Georgia, serif;
  --font-body: "Public Sans", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 254, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand img { height: 30px; width: auto; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 6px; }
.nav-toggle-label span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .2s;
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: .01em;
}
.nav-links a:hover { color: var(--sky-deep); text-decoration: none; }
.nav-links a.active { color: var(--sky-deep); }
.nav-links a.nav-cta {
  background: var(--navy); color: var(--white); padding: 9px 18px;
  border-radius: 999px; font-size: 14px;
}
.nav-links a.nav-cta:hover { background: var(--sky-deep); }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; display: none; padding: 8px 0 16px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px; }
  .nav-links a.nav-cta { display: inline-block; margin-top: 8px; }
}

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sky-deep); display: block;
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 18px; }
h3 { font-size: 1.22rem; margin-bottom: 8px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--slate); max-width: 62ch; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.tint { background: var(--mist); }
section.dark { background: var(--navy); color: var(--white); }
section.dark .eyebrow { color: var(--gold); }
section.dark .lede { color: #c6d2ea; }
section.dark h2 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* ---------- CNV band signature motif ---------- */
.cnv-band { display: block; width: 100%; height: auto; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: fit-content; margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-tag {
  font-family: var(--font-mono); font-size: 13px; color: var(--slate);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; display: block;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; transition: background .15s, color .15s; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--sky-deep); }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.dark .btn-primary { background: var(--gold); color: var(--ink); }
.dark .btn-primary:hover { background: #f3b95c; }
.dark .btn-ghost { border-color: #8ea2cf; color: var(--white); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
}
.tint .card { border-color: #cfdcec; }
.card h3 { color: var(--navy); }
.card p { color: var(--slate); font-size: 15.5px; }
.card .mono-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px;
}
.card-link { font-weight: 600; display: inline-block; margin-top: 14px; font-size: 15px; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: left; }
@media (max-width: 620px) { .stat-row { grid-template-columns: 1fr; } }
.stat .num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 600; color: var(--navy); line-height: 1;
}
.dark .stat .num { color: var(--gold); }
.stat .label { color: var(--slate); font-size: 15px; margin-top: 8px; max-width: 26ch; }
.dark .stat .label { color: #c6d2ea; }

/* ---------- team ---------- */
.person { text-align: left; }
.person img {
  border-radius: var(--radius); aspect-ratio: 1; object-fit: cover;
  margin-bottom: 16px; filter: saturate(.92); width: 100%;;
}
.person h3 { margin-bottom: 2px; }
.person .role {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sky-deep); margin-bottom: 10px;
}
.person p { font-size: 14.5px; color: var(--slate); }
.person-placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; background: var(--mist);
}
.person-placeholder svg { opacity: .45; }

.view-bio-btn {
  background: none;
  border: 1px solid #0066cc;
  color: #0066cc;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.view-bio-btn:hover {
  background: #0066cc;
  color: #fff;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
}

.modal .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  color: #555;
}
.modal .close-btn:hover { color: #000; }

.modal h2 { margin-top: 0; }

/* ---------- steps / flow ---------- */
.flow { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .flow { grid-template-columns: 1fr; } }
.flow .card { position: relative; padding-top: 58px; }
.flow .card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 22px; left: 28px;
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  letter-spacing: .1em;
}

/* ---------- lists ---------- */
.check-list { list-style: none; }
.check-list li {
  padding-left: 32px; position: relative; margin-bottom: 14px; color: var(--slate);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 16%, 84% 4%, 38% 72%);
}
.check-list li strong { color: var(--ink); }

/* ---------- job cards ---------- */
.job {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px;
}
.job h3 { margin-bottom: 4px; }
.job .meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); letter-spacing: .05em; }
@media (max-width: 620px) { .job { flex-direction: column; align-items: flex-start; } }

/* ---------- quote strip ---------- */
.thesis {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500; line-height: 1.35; max-width: 32ch; letter-spacing: -0.01em;
}
.thesis em { font-style: normal; color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #aebadb; padding: 56px 0 40px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 26px; margin-bottom: 16px; }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .12em; color: #7c8bb8; margin-bottom: 14px; font-weight: 500;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #ccd6ef; }
.site-footer a:hover { color: var(--white); }
.footer-base {
  border-top: 1px solid #2a3468; padding-top: 24px; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7c8bb8;
}

/* ---------- misc ---------- */
.divider-band { padding: 0; line-height: 0; }
.tag-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  margin: 0 8px 10px 0; color: var(--slate); background: var(--white);
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
