
:root {
  --ink: #071f35;
  --ink-2: #10344f;
  --muted: #5b6872;
  --paper: #fbfaf7;
  --panel: #f2f7f7;
  --line: #dbe5e8;
  --cyan: #1fb6c9;
  --green: #4c7a3d;
  --gold: #f4a51c;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 850px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: white; padding: 8px 12px; z-index: 99; }
.skip-link:focus { left: 8px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  backdrop-filter: none;
  border-bottom: 0;
}
.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: min(455px, 68vw);
  padding: 12px 18px;
  background: #fff;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
}
.brand img {
  display: block;
  width: 100%;
  padding: 2px;
  background: #fff;
}
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 0.96rem; font-weight: 650; letter-spacing: -0.01em; }
.site-nav a { text-decoration: none; color: var(--ink); opacity: 0.82; }
.site-nav a:hover, .site-nav a.active { opacity: 1; color: var(--cyan); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero {
  padding: 90px 0 72px;
  background: radial-gradient(circle at 12% 25%, rgba(31,182,201,0.12), transparent 28%),
              radial-gradient(circle at 85% 15%, rgba(244,165,28,0.12), transparent 26%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-weight: 780; text-transform: uppercase; letter-spacing: 0.10em; font-size: 0.78rem; }
h1, h2, h3 { margin: 0 0 18px; line-height: 1.04; letter-spacing: -0.045em; color: var(--ink); }
h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.18rem, 2vw, 1.55rem); color: var(--ink-2); max-width: 840px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 750; text-decoration: none; border: 1px solid var(--ink); }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; color: var(--ink); }
.hero-card { background: rgba(255,255,255,0.70); border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: 0 30px 70px rgba(7,31,53,0.08); }
.hero-card img { width: 110px; margin-bottom: 24px; }
.hero-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section { padding: 78px 0; }
.tinted { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 780px; margin-bottom: 30px; }
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; min-height: 230px; }
.card p { color: var(--muted); }
.split { display: grid; grid-template-columns: 0.72fr 1fr; gap: 60px; align-items: start; }
.page-hero { padding: 76px 0 54px; background: linear-gradient(135deg, rgba(31,182,201,0.12), rgba(244,165,28,0.06)); border-bottom: 1px solid var(--line); }
.steps { margin: 0; padding-left: 1.2rem; font-size: 1.08rem; }
.steps li { margin-bottom: 18px; }
.tag { color: var(--cyan) !important; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.76rem; }
.contact-card { max-width: 760px; background: white; border: 1px solid var(--line); border-radius: 28px; padding: 34px; }
.big-link { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.site-footer { padding: 52px 0; background: var(--ink); color: rgba(255,255,255,0.84); }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.7fr 0.8fr; gap: 34px; }
.footer-title { color: white; font-weight: 850; font-size: 1.2rem; }
.footer-mark { width: 58px; margin-bottom: 12px; }
.site-footer h2 { color: white; font-size: 1rem; letter-spacing: 0; margin-bottom: 10px; }
.small { font-size: 0.92rem; color: rgba(255,255,255,0.66); }
.contact-card .small, .card .small, main .small { color: var(--muted); }
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; inset: 82px 20px auto 20px; display: none; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 24px 50px rgba(7,31,53,0.12); }
  .site-nav.open { display: flex; }
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .cards.three, .cards.two { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
}
@media (max-width: 560px) {
  .brand {
    width: min(330px, 74vw);
    padding: 9px 12px;
    border-radius: 18px;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 72px; }
  .brand { width: min(310px, 70vw); }
  .section { padding: 54px 0; }
  .page-hero { padding: 54px 0 42px; }
  .hero-card, .card, .contact-card { padding: 24px; border-radius: 20px; }
}


/* Team section */
.team-list {
  display: grid;
  gap: 28px;
}

.team-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(7,31,53,0.06);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.team-card-body h2 {
  margin-bottom: 8px;
}

.team-card-body p {
  color: var(--muted);
}

.team-role {
  margin: 0 0 8px;
  color: var(--cyan) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
}

.profile-link {
  font-weight: 800;
  color: var(--ink);
}

.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.team-preview-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  min-height: 100%;
}

.team-preview-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.team-preview-card h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.team-preview-card p {
  margin-bottom: 0;
  color: var(--cyan);
  font-weight: 760;
}

@media (max-width: 920px) {
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-card img {
    max-width: 420px;
  }
  .team-preview-grid {
    grid-template-columns: 1fr;
  }
}


.team-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

@media (max-width: 1100px) {
  .team-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .team-preview-grid {
    grid-template-columns: 1fr;
  }
}


/* Project imagery */
.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.project-card-featured {
  min-height: 100%;
}


/* Open source EPOCH feature */
.epoch-wide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(7,31,53,0.06);
}

.epoch-wide-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.epoch-wide-copy p:last-child {
  margin-bottom: 0;
}
