:root {
  --ink: #172b3a;
  --ink-soft: #486171;
  --navy: #123047;
  --teal: #1f716d;
  --teal-dark: #175a57;
  --teal-pale: #dcecea;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --line: #d9e0de;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 43, 58, 0.09);
  --radius: 20px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  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.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(31, 113, 109, 0.45);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.4vw, 4.8rem);
  font-weight: 720;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
}

h3 {
  font-size: 1.45rem;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 26px 0;
}

.brand {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(18px, 4vw, 42px);
}

.site-header nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.section-shell {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.section-block {
  padding-block: clamp(80px, 10vw, 144px);
}

.hero {
  display: grid;
  min-height: 650px;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  padding-block: 50px 90px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

.hero-portrait {
  position: relative;
  margin: 0;
}

.hero-portrait::before {
  position: absolute;
  inset: -18px 20px 20px -18px;
  z-index: -1;
  border-radius: 44% 56% 54% 46% / 48% 42% 58% 52%;
  background: var(--teal-pale);
  content: "";
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 44% 56% 50% 50% / 44% 44% 56% 56%;
  object-fit: cover;
  object-position: center 30%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button.primary {
  background: var(--navy);
  color: var(--white);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.section-heading>p:last-child,
.split-heading>p {
  color: var(--ink-soft);
}

.learning-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(12, 1fr);
}

.learning-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  grid-column: span 4;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.learning-card:hover {
  border-color: rgba(31, 113, 109, 0.55);
  box-shadow: 0 16px 35px rgba(23, 43, 58, 0.08);
  color: inherit;
  transform: translateY(-3px);
}

.learning-card h3 {
  margin-bottom: 14px;
}

.learning-card p {
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.card-number {
  display: block;
  margin-bottom: 44px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-link {
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 750;
}

.learning-featured {
  grid-column: span 4;
  background: var(--teal-pale);
}

.learning-featured h3 {
  color: var(--teal-dark);
}

.projects-section {
  background: var(--cream);
}

.split-heading {
  display: grid;
  max-width: none;
  align-items: end;
  gap: 60px;
  grid-template-columns: 1.2fr 0.8fr;
}

.project-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-image {
  display: block;
  overflow: hidden;
  background: var(--teal-pale);
}

.project-featured .project-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-copy {
  padding: clamp(26px, 4vw, 42px);
}

.project-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.project-copy h3 a {
  text-decoration: none;
}

.project-copy>p:not(.project-type) {
  color: var(--ink-soft);
}

.project-type {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-link {
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.compact-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.1fr;
}

.compact-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-card .project-copy {
  padding: 30px;
}

.compact-card .project-copy h3 {
  font-size: 1.45rem;
}

.archive {
  margin-top: 74px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.archive h3 {
  margin-bottom: 22px;
}

.archive-links {
  display: grid;
  gap: 0 48px;
  grid-template-columns: repeat(2, 1fr);
}

.archive-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 720;
  text-decoration: none;
}

.archive-links span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
}

.about-section {
  display: grid;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  grid-template-columns: 0.9fr 1.1fr;
}

.about-image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  place-items: center;
}

.about-image img {
  width: 100%;
  max-width: none;
  transform: scale(1.34);
}

.about-copy>p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 32px;
}

.social-links a {
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
}

.social-links i {
  width: 20px;
  color: var(--teal);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  justify-content: space-between;
  margin: 0 auto;
  padding: 32px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {

  .hero,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-portrait {
    width: min(75%, 430px);
  }

  .learning-card,
  .learning-featured {
    grid-column: span 6;
  }

  .split-heading {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .compact-card {
    display: block;
  }

  .compact-card .project-image img {
    aspect-ratio: 16 / 10;
  }
}

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

  .site-header,
  .section-shell,
  .site-footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header nav {
    gap: 12px;
  }

  .site-header nav a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding-block: 42px 82px;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.5rem);
  }

  .hero-portrait {
    width: 85%;
  }

  .project-grid,
  .archive-links {
    grid-template-columns: 1fr;
  }

  .learning-card,
  .learning-featured {
    min-height: 240px;
    grid-column: 1 / -1;
  }

  .project-copy {
    padding: 26px;
  }

  .archive-links a {
    align-items: flex-start;
    gap: 12px;
  }

  .archive-links span {
    text-align: right;
  }

  .site-footer {
    display: block;
  }

  .site-footer p+p {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}