:root {
  --paper: #f7f8f2;
  --paper-bright: #ffffff;
  --ink: #11253d;
  --ink-soft: #536273;
  --line: #dce2dc;
  --green: #177c72;
  --green-dark: #0e5f58;
  --green-pale: #dff2ea;
  --blue-pale: #e7eff9;
  --gold: #f2bf63;
  --shadow: 0 24px 70px rgba(17, 37, 61, 0.1);
  --radius: 28px;
  --page: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 96% 2%, rgba(223, 242, 234, 0.9), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(#177c72 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 38%);
  z-index: -1;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 226, 220, 0.82);
  background: rgba(247, 248, 242, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: var(--page);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  box-shadow: 7px 7px 0 var(--green-pale);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--paper-bright);
  color: var(--green-dark);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 9px 15px;
  font-weight: 750;
}

.page-shell {
  width: var(--page);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  padding: 72px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--green);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  font-weight: 500;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 37, 61, 0.18);
}

.button.secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.button.green {
  border-color: var(--green);
  background: var(--green);
}

.hero-portrait {
  position: relative;
  padding: 16px 16px 50px;
  border-radius: 170px 170px 34px 34px;
  background: var(--blue-pale);
  box-shadow: var(--shadow);
}

.hero-portrait::before,
.hero-portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: 999px;
}

.hero-portrait::before {
  width: 74px;
  height: 74px;
  left: -26px;
  top: 25%;
  background: var(--gold);
}

.hero-portrait::after {
  width: 44px;
  height: 44px;
  right: -10px;
  bottom: 84px;
  background: var(--green);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: 52% center;
  border-radius: 150px 150px 24px 24px;
  filter: saturate(0.86) contrast(1.03);
}

.portrait-note {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: calc(100% - 46px);
  transform: translateX(-50%);
  margin: 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 28px clamp(16px, 3vw, 38px);
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;
  margin-bottom: 2px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}

.metric span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.section {
  padding: 110px 0;
}

.section.compact {
  padding: 72px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 48px;
}

.section-title,
.page-title {
  margin-bottom: 0;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.6rem, 5.8vw, 5.1rem);
  font-weight: 500;
}

.section-copy {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.intro-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.intro-card h2 {
  margin-bottom: 0;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
}

.intro-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.skills-grid,
.cards-grid,
.highlights-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards-grid.four {
  grid-template-columns: repeat(2, 1fr);
}

.skill-card,
.content-card,
.highlight-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 46px rgba(17, 37, 61, 0.06);
}

.skill-card,
.contact-card {
  padding: 28px;
}

.skill-card h3,
.contact-card h3 {
  margin-bottom: 12px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.skill-card p,
.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.content-card,
.highlight-card {
  overflow: hidden;
}

.content-card img,
.highlight-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.content-card .card-body,
.highlight-card .card-body {
  padding: 26px;
}

.card-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-card h3,
.highlight-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.content-card p,
.highlight-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green-dark);
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 760;
}

.page-hero {
  padding: 96px 0 62px;
  border-bottom: 1px solid var(--line);
}

.page-hero .page-title {
  max-width: 920px;
}

.page-summary {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 22px;
}

.feature-panel {
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.feature-panel.light {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.feature-panel h2 {
  margin-bottom: 18px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 500;
}

.feature-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.feature-panel.light p {
  color: var(--ink-soft);
}

.project-list {
  display: grid;
  gap: 22px;
}

.project-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.project-block.reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.project-image {
  min-height: 100%;
  background: var(--blue-pale);
}

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

.project-image.contain img {
  object-fit: contain;
  padding: 36px;
}

.project-copy {
  align-self: center;
  padding: clamp(28px, 5vw, 58px);
}

.project-copy h2 {
  margin-bottom: 16px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 500;
}

.project-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.clean-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--line);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.timeline-meta {
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 780;
}

.timeline-meta span {
  display: block;
  color: var(--ink-soft);
  font-weight: 600;
}

.timeline-content h2 {
  margin-bottom: 6px;
  font-size: 1.75rem;
}

.timeline-content .organization {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 720;
}

.timeline-photo {
  width: 100%;
  height: 280px;
  margin: 24px 0 4px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 46%;
}

.timeline-photo.lower {
  object-position: center 58%;
}

.photo-story {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.photo-story figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.photo-story img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.photo-story figure:first-child img {
  object-position: center 38%;
}

.photo-story figcaption {
  padding: 14px 16px 16px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 680;
}

.wide-photo {
  width: 100%;
  max-height: 620px;
  margin-top: 28px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 38%;
  box-shadow: var(--shadow);
}

.education-card {
  padding: clamp(34px, 6vw, 70px);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.education-card h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
}

.education-card p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.honors-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.honor {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 0.9rem;
  font-weight: 720;
}

.calculator {
  margin-top: 26px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 22px;
  background: var(--blue-pale);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.calculator label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.calculator input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c6d2dd;
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.calculator-results[hidden] {
  display: none;
}

.result {
  padding: 15px;
  border-radius: 14px;
  background: white;
}

.result span,
.result strong {
  display: block;
}

.result span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.result strong {
  margin-top: 4px;
  font-size: 1.08rem;
}

.result.primary {
  background: var(--green);
  color: white;
}

.result.primary span {
  color: rgba(255, 255, 255, 0.76);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.resume-frame {
  width: 100%;
  height: 1020px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.contact-card a {
  color: var(--green-dark);
  font-weight: 750;
  text-underline-offset: 4px;
}

.media-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.media-feature img {
  width: 100%;
  min-height: 420px;
  height: 100%;
  object-fit: cover;
}

.media-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 60px);
}

.media-copy h2 {
  margin-bottom: 16px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
}

.media-copy p {
  color: var(--ink-soft);
}

.empty-note {
  margin-top: 22px;
  padding: 26px;
  border: 1px dashed #b9c8c1;
  border-radius: 18px;
  background: rgba(223, 242, 234, 0.42);
  color: var(--ink-soft);
}

.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(34px, 6vw, 68px);
  border-radius: var(--radius);
  background: var(--green);
  color: white;
}

.callout h2 {
  max-width: 740px;
  margin: 0;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
}

.callout .button {
  border-color: white;
  background: white;
  color: var(--green-dark);
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  width: var(--page);
  margin: 0 auto;
  padding: 34px 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-wrap p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .site-nav a {
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  .hero {
    grid-template-columns: 1fr 330px;
  }

  .skills-grid,
  .cards-grid,
  .highlights-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --page: min(100% - 28px, 720px);
  }

  .nav-wrap {
    min-height: 70px;
    position: relative;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    background: var(--paper-bright);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .hero-portrait {
    width: min(100%, 470px);
    margin: 0 auto;
  }

  .section-header,
  .intro-card,
  .split-feature,
  .project-block,
  .project-block.reverse,
  .media-feature {
    grid-template-columns: 1fr;
  }

  .project-block.reverse .project-copy {
    order: 2;
  }

  .project-block.reverse .project-image {
    order: 1;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .honors-list,
  .calculator-grid,
  .calculator-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-story {
    grid-template-columns: 1fr 1fr;
  }

  .photo-story figure:first-child {
    grid-column: 1 / -1;
  }
}

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

  .brand-name {
    display: none;
  }

  .hero {
    padding: 48px 0 64px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-portrait::before {
    left: -6px;
  }

  .metric-strip,
  .skills-grid,
  .cards-grid,
  .highlights-grid,
  .contact-grid,
  .honors-list,
  .calculator-grid,
  .calculator-results {
    grid-template-columns: 1fr;
  }

  .cards-grid.four,
  .photo-story {
    grid-template-columns: 1fr;
  }

  .photo-story figure:first-child {
    grid-column: auto;
  }

  .metric + .metric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 78px 0;
  }

  .page-hero {
    padding: 68px 0 48px;
  }

  .project-image {
    min-height: 260px;
  }

  .resume-frame {
    height: 680px;
  }

  .callout {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
