/* Triops Info — design system. Self-contained, no external font/CDN requests. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --border: #e4e6ee;
  --text: #171a23;
  --text-muted: #5b5f70;
  --brand: #1d4ed8;
  --brand-dark: #1739a8;
  --brand-soft: #eaf0ff;
  --accent: #16a34a;
  --accent-soft: #e9f9ef;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px rgba(20, 24, 40, 0.06);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f16;
    --bg-alt: #12141d;
    --surface: #161925;
    --border: #262a3a;
    --text: #edeef4;
    --text-muted: #a1a5b8;
    --brand: #5b8cff;
    --brand-dark: #7ea0ff;
    --brand-soft: #1a2440;
    --accent: #34d17c;
    --accent-soft: #12281c;
    --header-bg: rgba(13, 15, 22, 0.85);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--text-muted); }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; }
.topbar a { color: var(--text-muted); }
.topbar .social a { margin-left: 12px; color: var(--text-muted); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand img { height: 40px; width: auto; }
.brand:hover { text-decoration: none; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav .dropdown { position: relative; }
nav.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 220px;
  list-style: none;
  margin: 8px 0 0;
}
/* Invisible bridge across the 8px gap so the menu doesn't close
   while the cursor travels from the parent link down into it. */
nav.main-nav .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
nav.main-nav .dropdown:hover .dropdown-menu,
nav.main-nav .dropdown:focus-within .dropdown-menu { display: block; }
nav.main-nav .dropdown-menu li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
}
nav.main-nav .dropdown-menu li a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-cta { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background: linear-gradient(180deg, var(--brand-soft), var(--bg) 70%);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.pillar-chip .num { font-size: 0.78rem; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; }
.pillar-chip h3 { margin: 6px 0 6px; font-size: 1.02rem; }
.pillar-chip p { margin: 0; font-size: 0.9rem; }

/* Inline SVG graphics */
.gfx { display: block; width: 100%; height: auto; max-width: 100%; }
.gfx-phone { max-width: 260px; margin: 0 auto; }
.gfx-wrap { display: flex; align-items: center; justify-content: center; }
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-split .gfx-wrap { order: -1; }
}

/* Card grid */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Logo strip */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.85;
}
.logo-strip img { height: 32px; width: auto; filter: grayscale(1); opacity: 0.75; }

/* CTA band */
.cta-band {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { opacity: 0.85; margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #eef2ff; }

/* Breadcrumb / page header */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-muted); }

/* Job listing */
.job-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface);
}
.job-card summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.job-card summary::-webkit-details-marker { display: none; }
.job-card summary .loc { font-weight: 500; color: var(--text-muted); font-size: 0.88rem; }
.job-card[open] summary { margin-bottom: 14px; }

/* Forms */
form.stack .field { margin-bottom: 18px; }
form.stack label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
form.stack input,
form.stack select,
form.stack textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
form.stack input:focus,
form.stack select:focus,
form.stack textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: -6px; }

/* Contact info list */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list .label { font-weight: 700; min-width: 90px; color: var(--text); }

/* Footer */
footer.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-grid h5 { margin: 0 0 14px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-social a { margin-left: 14px; color: var(--text-muted); }

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.badge-soft {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  nav.main-nav { position: fixed; inset: 64px 0 0 0; background: var(--bg); border-top: 1px solid var(--border); padding: 20px 24px; overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
  nav.main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  nav.main-nav .dropdown-menu { display: block; position: static; box-shadow: none; border: none; margin: 0 0 0 12px; padding: 0; }
  nav.main-nav .dropdown:hover .dropdown-menu { display: block; }
  nav.main-nav a { display: block; padding: 10px 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .topbar .social { display: none; }
}
