:root {
  --ink: #172126;
  --muted-ink: #536167;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --line: #d8e0df;
  --teal: #2f6f73;
  --teal-dark: #17494d;
  --copper: #a95f3a;
  --night: #0e2027;
  --shadow: 0 18px 48px rgba(20, 34, 38, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
a {
  overflow-wrap: break-word;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 244, 0.92);
  border-bottom: 1px solid rgba(216, 224, 223, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1160px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted-ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #ffffff;
}

.hero {
  min-height: min(74vh, 760px);
  display: grid;
  align-items: end;
}

.hero-image,
.page-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home .hero-image {
  object-position: 62% 45%;
}

.hero-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 30, 0.88), rgba(8, 24, 30, 0.58) 43%, rgba(8, 24, 30, 0.22)),
    linear-gradient(0deg, rgba(8, 24, 30, 0.5), rgba(8, 24, 30, 0.05));
}

.hero-content,
.page-hero-content {
  position: relative;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  min-width: 0;
}

.hero-content {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-content h1,
.page-hero-content h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
}

.hero-lead {
  max-width: 760px;
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f2c090;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.section.muted {
  background: #eaf0ef;
}

.section-grid,
.section-heading,
.focus-grid,
.result-grid,
.image-feature {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.section-grid > *,
.focus-grid > *,
.result-grid > *,
.image-feature > *,
.research-thread-list > * {
  min-width: 0;
}

.section h2,
.page-hero h1,
.not-found h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.7vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prospective-note {
  margin: 1.8rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--copper);
  background: #f4ebe5;
  border-radius: 0 8px 8px 0;
}

.prospective-note strong {
  color: var(--ink);
}

.prose h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.05rem;
}

.mission-list {
  margin: 0;
  padding-left: 1.1rem;
}

.mission-list li + li {
  margin-top: 0.6rem;
}

.intro-section {
  background: var(--surface);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.focus-item,
.research-thread-list article,
.result-card,
.feature-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.focus-item {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.focus-item h3,
.research-thread-list h3,
.result-card h3,
.feature-link span {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.focus-item p,
.research-thread-list p,
.result-card p {
  margin: 0;
  color: var(--muted-ink);
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-link {
  display: block;
  padding: 1.1rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-link span {
  display: block;
  color: var(--teal-dark);
  font-weight: 900;
}

.feature-link strong {
  display: block;
  color: var(--muted-ink);
  font-weight: 500;
}

.feature-link:hover {
  border-color: rgba(47, 111, 115, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.page-hero {
  min-height: 48vh;
  display: grid;
  align-items: end;
}

.page-hero-image {
  object-position: center;
}

.page-hero-space .page-hero-image {
  object-position: center 38%;
}

.page-hero-content {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.page-hero-content p:last-child {
  max-width: 760px;
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.research-thread-list {
  display: grid;
  gap: 1rem;
}

.research-thread-list article {
  padding: 1.1rem 1.25rem;
}

.research-thread-list article,
.result-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.research-thread-list article:hover,
.result-card:hover {
  border-color: rgba(47, 111, 115, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 760px;
}

.text-link {
  white-space: nowrap;
  font-weight: 900;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.result-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 0 rgba(20, 34, 38, 0.04);
}

.result-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
}

.result-card div {
  padding: 1rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
}

.result-card a {
  margin-top: auto;
  font-weight: 900;
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.image-feature img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-feature p:last-child {
  color: var(--muted-ink);
}

.site-footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  font-size: 0.95rem;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.icon-link:hover {
  border-color: rgba(47, 111, 115, 0.45);
  box-shadow: 0 10px 24px rgba(20, 34, 38, 0.1);
  color: var(--copper);
  transform: translateY(-1px);
}

.not-found {
  width: min(760px, calc(100% - 2rem));
  min-height: 70vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
}

@media (max-width: 900px) {
  .section-grid,
  .image-feature {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 1rem;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-home .hero-image {
    object-position: 73% center;
  }

  .hero-shade,
  .page-hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 24, 30, 0.9), rgba(8, 24, 30, 0.68)),
      linear-gradient(0deg, rgba(8, 24, 30, 0.45), rgba(8, 24, 30, 0.12));
  }

  .hero-content h1 {
    font-size: clamp(2.7rem, 12vw, 3.35rem);
  }

  .hero-lead {
    font-size: 1.05rem;
    max-width: 20rem;
  }

  .hero .eyebrow {
    max-width: 20rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .button {
    width: min(100%, 220px);
  }

  .section h2,
  .page-hero h1,
  .not-found h1 {
    font-size: clamp(1.8rem, 7.8vw, 2rem);
    max-width: 18rem;
  }

  .prose {
    max-width: 20rem;
  }

  .focus-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-grid,
  .section-heading,
  .result-grid {
    animation: rise-in 520ms ease both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
