/* ============================================================
   RESET & TOKENS
   Theme: auto (light default, dark via prefers-color-scheme).
   One accent (teal), one radius system (all-sharp), cool neutrals.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f6f7f7;
  --surface:     #ffffff;
  --surface-2:   #eef1f2;   /* tinted band, same neutral family */
  --text:        #1b262e;
  --text-muted:  #5b6b76;
  --border:      #dde3e6;
  --accent:      #0e7c86;
  --accent-ink:  #ffffff;   /* text on accent */
  --accent-tint: #e3eef0;   /* soft teal wash for the feature cell */

  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --max-w: 1200px;
  --section-pad: 96px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #10181d;
    --surface:     #17222a;
    --surface-2:   #131d23;
    --text:        #e6ecef;
    --text-muted:  #93a3ad;
    --border:      #26333c;
    --accent:      #2fb5bf;
    --accent-ink:  #0f1a1c;
    --accent-tint: #17303a;
  }
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   TYPE
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-lede {
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 48px;
}

.text-link {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.75; }

/* ============================================================
   BUTTONS (sharp, tactile)
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { filter: brightness(1.08); }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--text-muted); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navSentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-wrapper.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.nav__logo-mark { height: 30px; width: auto; display: block; }

/* The logo is near-black + purple; invert it to a white silhouette so it stays
   legible on the dark-mode nav/footer. */
@media (prefers-color-scheme: dark) {
  .nav__logo-mark,
  .footer__logo-mark { filter: brightness(0) invert(1); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ============================================================
   HERO — asymmetric split (text left, media right)
   ============================================================ */
.hero { padding-block: 64px var(--section-pad); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero__headline {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(100%);
}

/* ============================================================
   ABOUT — media left, copy right
   ============================================================ */
.about { padding-block: var(--section-pad); }

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(100%);
}

.about__copy p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 58ch;
}

/* ============================================================
   STATS BAND — tinted, same theme family
   ============================================================ */
.stats {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
  padding-block: 56px;
}

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

.stat { border-left: 2px solid var(--accent); padding-left: 20px; }

.stat__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat__label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   SOLUTIONS — asymmetric bento: 3 items, 3 cells
   ============================================================ */
.solutions { padding-block: var(--section-pad); }

.bento {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 34px 32px;
}

.bento__cell h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.bento__cell p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* feature cell: accent-tinted, spans both rows */
.bento__cell--feature {
  grid-row: 1 / 3;
  background: var(--accent-tint);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento__cell--feature h3 { font-size: 1.5rem; }

/* media cell: image strip on top */
.bento__cell--media { padding: 0; overflow: hidden; }
.bento__cell--media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.bento__cell-body { padding: 28px 32px 32px; }

/* ============================================================
   HOW WE WORK — 3-step process, side-by-side panels
   ============================================================ */
.approach { padding-block: var(--section-pad); }

.steps {
  list-style: none;                 /* kill default <ol> markers */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step__index {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 22px;
}

.step__title {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.step__body {
  font-size: 0.94rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .step:hover { transform: translateY(-3px); }
}

/* ============================================================
   TEAM — photo-first, no card boxes
   ============================================================ */
.team { padding-block: var(--section-pad) ; }
.team .section-title { margin-bottom: 48px; }

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

.member__photo {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  filter: grayscale(100%);
}

.member__name {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 2px;
}

.member__role {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.member__bio {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   TEAM PAGE (team.php) — access gate + member list
   ============================================================ */
.team-page { padding-block: 80px 96px; min-height: 60vh; }

.gate { max-width: 420px; }
.gate .section-title { margin-bottom: 12px; }
.gate__note { color: var(--text-muted); margin-bottom: 24px; }
.gate__error {
  color: #b3261e;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.gate__form { display: flex; flex-direction: column; gap: 16px; }
.gate__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.gate__form input {
  font: inherit;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.gate__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate__form .btn { margin-top: 8px; align-self: flex-start; }

.team-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.member-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 660px;
}
.member-card { border-top: 2px solid var(--accent); padding-top: 20px; }
.member-card h2 { font-size: 1.15rem; font-weight: 650; }
.member-card__role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 2px;
}
.member-card__location {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.member-card__bio { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 10px; }

/* ============================================================
   CONTACT — copy left, details right
   ============================================================ */
.contact {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: var(--section-pad);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__copy p { color: var(--text-muted); max-width: 44ch; }

.contact__details li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}
.contact__details li:first-child { border-top: 1px solid var(--border); }

.contact__key {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.contact__value {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER — same theme, no inversion
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-top: 56px; }

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer__logo-mark { height: 26px; width: auto; display: block; }

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.footer__nav {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
}
.footer__bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   SCROLL REVEAL — motion gated behind reduced-motion preference
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }

  .about__media { order: 2; }

  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento__cell--feature { grid-row: auto; min-height: 260px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
    z-index: 9;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    font-size: 1rem;
    padding: 13px 24px;
  }
  .nav__links a:hover { background: var(--surface-2); color: var(--text); }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }

  .contact__details li { grid-template-columns: 1fr; gap: 2px; }

  .footer__inner { flex-direction: column; }
}
