:root {
  color-scheme: light;
  --forest: #123329;
  --forest-2: #1d5a45;
  --moss: #6d8b55;
  --sage: #d9e3d4;
  --sand: #f7f1e6;
  --bone: #fffaf0;
  --clay: #b76d45;
  --amber: #e4b95f;
  --ink: #193027;
  --muted: #65766c;
  --line: rgba(18, 51, 41, 0.16);
  --shadow: 0 24px 80px rgba(18, 51, 41, 0.16);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
  --header-height: 76px;
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body: "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(228, 185, 95, 0.28), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(109, 139, 85, 0.28), transparent 28rem),
    linear-gradient(135deg, var(--bone), var(--sand) 42%, #eaf0e3);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 51, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 51, 41, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: var(--bone);
  background: var(--forest-2);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  transform: translateY(-140%);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--bone);
  z-index: 20;
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem 0.8rem 0.9rem;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(18, 51, 41, 0.1);
  transform: translateX(-50%);
  z-index: 10;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.9);
  border-color: rgba(18, 51, 41, 0.12);
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    var(--forest);
  color: var(--bone);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 -8px 22px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  position: relative;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: rgba(25, 48, 39, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--forest);
  background: rgba(109, 139, 85, 0.16);
}

.menu-button {
  display: none;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  background: var(--forest);
  color: var(--bone);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: clamp(4.8rem, 8vw, 8rem) 0;
  scroll-margin-top: 8rem;
}

.hero {
  width: min(calc(100% - 2rem), 1260px);
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 9rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.76fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero__grid > *,
.profile > *,
.field-showcase > *,
.education-grid > *,
.skills-layout > *,
.contact-card > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--display);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 790px;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 11vw, 8.7rem);
  color: var(--forest);
}

h2 {
  max-width: 820px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.45rem, 5.4vw, 5.5rem);
  color: var(--forest);
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--forest);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.25;
}

.hero__role {
  margin-bottom: 1.2rem;
  color: var(--forest-2);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 850;
}

.hero__lead {
  max-width: 680px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  background: var(--forest);
  color: var(--bone);
  box-shadow: 0 16px 34px rgba(18, 51, 41, 0.22);
}

.button--ghost {
  border-color: rgba(18, 51, 41, 0.2);
  background: rgba(255, 250, 240, 0.58);
  color: var(--forest);
}

.button--soft {
  border-color: rgba(18, 51, 41, 0.12);
  background: rgba(109, 139, 85, 0.16);
  color: var(--forest);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.quick-facts li {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 240, 0.54);
  box-shadow: 0 16px 40px rgba(18, 51, 41, 0.08);
}

.quick-facts strong {
  color: var(--clay);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-facts span {
  color: var(--forest);
  font-weight: 850;
  line-height: 1.25;
}

.hero-card {
  position: relative;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1rem -0.9rem auto auto;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 44% 56% 38% 62%;
  background: linear-gradient(135deg, var(--amber), var(--clay));
  filter: blur(1px);
  opacity: 0.75;
  z-index: -1;
  animation: floatShape 8s ease-in-out infinite;
}

.portrait-wrap {
  overflow: hidden;
  border: 10px solid rgba(255, 250, 240, 0.72);
  border-radius: 45% 55% 42% 58% / 38% 44% 56% 62%;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-card__panel {
  width: min(92%, 390px);
  margin: -4.4rem auto 0;
  position: relative;
  padding: 1.15rem;
  border: 1px solid rgba(255, 250, 240, 0.65);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(18, 51, 41, 0.18);
}

.hero-card__panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.status {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(29, 90, 69, 0.11);
  color: var(--forest-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.section-heading {
  margin-bottom: clamp(1.6rem, 3vw, 3rem);
}

.profile {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.profile__content {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(217, 227, 212, 0.62)),
    var(--bone);
  box-shadow: var(--shadow);
}

.profile__content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.field-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
}

.field-showcase__image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 42px;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.field-showcase__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(18, 51, 41, 0.28)),
    radial-gradient(circle at 18% 18%, rgba(255, 250, 240, 0.18), transparent 18rem);
  pointer-events: none;
}

.field-showcase__image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.field-showcase__copy {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(217, 227, 212, 0.7)),
    var(--bone);
  box-shadow: var(--shadow);
}

.field-showcase__copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.focus-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--forest);
  font-weight: 800;
}

.focus-list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest-2), var(--amber));
  box-shadow: 0 0 0 5px rgba(29, 90, 69, 0.12);
}

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

.impact-card,
.education-card,
.skill-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.66);
  box-shadow: 0 18px 50px rgba(18, 51, 41, 0.1);
}

.impact-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
}

.impact-card__number {
  margin-bottom: auto;
  color: rgba(18, 51, 41, 0.22);
  font-family: var(--display);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1;
}

.impact-card p,
.timeline-item p,
.education-card p,
.contact-card p,
.footer p {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 7.05rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(18, 51, 41, 0.3), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.6rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.timeline-item:hover {
  border-color: var(--line);
  background: rgba(255, 250, 240, 0.55);
  transform: translateX(4px);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 1.65rem;
  left: 6.72rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 4px solid var(--sand);
  border-radius: 50%;
  background: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(29, 90, 69, 0.14);
}

.timeline-item time {
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item p {
  margin-bottom: 0;
}

.education-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.education-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.year {
  margin-bottom: 0.6rem;
  color: var(--clay) !important;
  font-weight: 900;
}

.thesis {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.4rem;
  padding: 1rem;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  background: rgba(228, 185, 95, 0.16);
}

.thesis strong {
  color: var(--forest);
}

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

.skill-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid rgba(18, 51, 41, 0.14);
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  background: rgba(255, 250, 240, 0.74);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 800;
}

.chips--accent li {
  border-color: rgba(183, 109, 69, 0.22);
  background: rgba(183, 109, 69, 0.1);
}

.contact {
  padding-bottom: 4rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.3rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(18, 51, 41, 0.96), rgba(29, 90, 69, 0.9)),
    var(--forest);
  box-shadow: var(--shadow);
}

.contact-card h2,
.contact-card .eyebrow,
.contact-card p {
  color: var(--bone);
}

.contact-card p {
  max-width: 650px;
  margin-bottom: 0;
  opacity: 0.8;
}

.contact-actions {
  justify-content: flex-end;
  max-width: 430px;
}

.contact-card .button--primary {
  background: var(--bone);
  color: var(--forest);
}

.contact-card .button--ghost,
.contact-card .button--soft {
  border-color: rgba(255, 250, 240, 0.26);
  background: rgba(255, 250, 240, 0.1);
  color: var(--bone);
}

.footer {
  width: min(calc(100% - 2rem), var(--max-width));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.3rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--bone);
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-12px, 18px, 0) rotate(9deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    display: grid;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero__grid,
  .profile,
  .field-showcase,
  .education-grid,
  .skills-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
    margin-inline: auto;
  }

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

  .field-showcase__image,
  .field-showcase__image img {
    min-height: 420px;
  }

  .contact-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 680px) {
  body {
    background-size: auto;
  }

  .site-header {
    top: 0.7rem;
    left: 0.5rem;
    width: min(374px, calc(100% - 1rem));
    transform: none;
  }

  .section {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .hero {
    padding-top: 7rem;
  }

  h1 {
    font-size: clamp(2.85rem, 12.7vw, 3.85rem);
    text-wrap: balance;
  }

  .hero__copy {
    width: min(100%, 374px);
  }

  .hero__role,
  .hero__lead {
    max-width: 100%;
  }

  .menu-button {
    width: 54px;
    height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .menu-button span {
    width: 18px;
    color: var(--bone);
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .quick-facts,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-card {
    min-height: 250px;
  }

  .field-showcase__image,
  .field-showcase__image img {
    min-height: 300px;
  }

  .timeline::before {
    left: 1.44rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-left: 3.1rem;
  }

  .timeline-item::after {
    left: 1.1rem;
  }

  .timeline-item:hover {
    transform: none;
  }

  .footer {
    display: grid;
  }
}

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

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .hero__actions,
  .contact-actions,
  .toast {
    display: none !important;
  }

  .section,
  .hero {
    width: 100%;
    min-height: auto;
    padding: 1.2rem 0;
  }

  .hero__grid,
  .profile,
  .field-showcase,
  .education-grid,
  .skills-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    max-width: 240px;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

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

  .contact-card,
  .impact-card,
  .education-card,
  .skill-panel,
  .profile__content {
    box-shadow: none;
  }
}
