/* ---------- Base Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  color: #1f2933;
  background-color: #ffffff;
  line-height: 1.6;
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
}

.brand-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.nav-right a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #334155;
  font-size: 0.95rem;
}

.nav-right a:hover {
  color: #0f172a;
}

/* ---------- Main Content ---------- */
/* IMPORTANT: remove the default top margin so all pages behave the same.
   Spacing is handled by .page-hero and section spacing. */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: #374151;
}

/* ---------- Home Hero ---------- */
.hero {
  margin-top: 1rem;
}

.hero-wordmark {
  max-width: 760px;
  width: 100%;
  height: auto;
  margin: 0 0 1.25rem 0;
  display: block;
}

.content h1.hero-title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.hero-lede {
  font-size: 1.05rem;
  color: #334155;
  max-width: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ---------- Home Tri Cards ---------- */
.tri {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  display: block;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  background: #ffffff;
  transition: transform 120ms ease, box-shadow 120ms ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.card p {
  margin: 0 0 0.9rem 0;
  color: #334155;
  font-size: 0.98rem;
}

.card-cta {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 500;
}

.card-art {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  display: block;
  margin-bottom: 1rem;
  border-radius: 14px;
}

/* ---------- Non-home Pages ---------- */
.page-hero {
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  padding-top: 1.5rem;  /* make room for the banner */
}

    .page-banner {
      aspect-ratio: 3 / 1; /* tweak this if you want slightly taller */  
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(15, 23, 42, 0.10);
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
      margin-bottom: 1.25rem;
    }

    .page-banner img {
      width: 100%;
      height: auto;
      display: block;
    }

.page-hero h1 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.2;
  color: #0f172a;
}

.page-subtitle {
  margin: 0.6rem 0 0;
  color: #475569;
  font-size: 1.05rem;
}

.prose {
  max-width: none;
  color: #334155;
}

.prose p {
  margin: 0 0 1rem;
}

.shot .caption {
  margin-top: 0.35rem;
  font-size: 0.82rem;  /* slightly smaller */
  line-height: 1.35;
  color: #64748b;
}


/* ---------- Callout / Button ---------- */
.callout {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.callout h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.callout p {
  margin: 0;
  color: #334155;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #0b3b76;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.05);
}

   .soft-link {
      display: inline-flex;
      margin-top: 0.5rem;
      text-decoration: none;
      color: #0b3b76;
      font-weight: 500;
    }
    .soft-link:hover {
      text-decoration: underline;
    }

/* ---------- Technology Page (Reusable) ---------- */
.stack {
  display: grid;
  gap: 22px;
  margin-top: 6px;
}

/* “Oval box” card */
.product {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: center;

  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 48px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.product.flip {
  grid-template-columns: 1fr 360px;
}

.product.flip .shot {
  order: 2;
}

.product.flip .copy {
  padding-left: 18px;  /* pushes text away from the left curve */
  padding-right: 10px;
}

.shot {
  padding: 1rem;
  border-radius: 36px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.04),
    rgba(15, 23, 42, 0.02)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* Key fixes for clipping + caption space */
  min-height: 320px;
  overflow: hidden;
}

.shot img {
  max-width: 100%;
  max-height: 320px;   /* prevents vertical overflow (esp. the last two in Technology page) */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.copy {
  padding: 4px 10px 4px 6px;
}

.copy h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.copy ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.82);
}

.copy li + li {
  margin-top: 6px;
}


/* Publications list */
.pub-list {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.pub-item {
  margin: 0 0 1rem 0;
}

.pub-title {
  color: inherit;              /* kill bright blue */
  text-decoration: none;       /* no underline by default */
  font-weight: 600;
}

.pub-title:hover {
  color: var(--incogen-blue, #0b3d91); /* or whatever your site uses */
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-meta {
  margin-top: 0.35rem;
  color: var(--muted-text, #475569);
  font-size: 0.98rem;
  line-height: 1.45;
}

.news-date {
  margin: 0.25rem 0 0.9rem;
  font-size: 0.95rem;
  opacity: 0.75;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tri {
    grid-template-columns: 1fr;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .product,
  .product.flip {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .product.flip .shot {
    order: 0;
  }

  .shot {
    border-radius: 22px;
  }
}
