:root {
  --bg: #f4f3ee;
  --bg-alt: #ece9df;
  --ink: #1a2522;
  --sub: #50605a;
  --brand: #1b6a4d;
  --brand-2: #c9852f;
  --line: rgba(26, 37, 34, 0.12);
  --card: #ffffff;
  --shadow: 0 12px 28px rgba(18, 29, 26, 0.12);
  --shadow-soft: 0 6px 18px rgba(18, 29, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 6%, #fff6db 0, var(--bg) 36%), var(--bg);
  line-height: 1.75;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.35;
}

.ambient-a {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 40px;
  background: #84cfa8;
}

.ambient-b {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: 14%;
  background: #ffd68b;
}

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
}

.hero-photo-card {
  padding: 12px;
  border-radius: 26px;
  background: linear-gradient(155deg, #f4f9f5 0%, #e0ece6 100%);
  border: 1px solid #d2e2d9;
  box-shadow: var(--shadow);
}

.hero-photo {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.12;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(1rem, 1.8vw, 1.34rem);
  font-family: "Manrope", sans-serif;
  color: var(--sub);
  font-weight: 500;
}

.hero-lead {
  margin: 14px 0 0;
  color: #374741;
  font-size: 1.02rem;
}

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid #c7dfd2;
  background: #f0faf4;
  color: #155e42;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 18px;
}

.contact-grid a,
.contact-grid span {
  font-size: 0.9rem;
  color: #4f605a;
  text-decoration: none;
}

.metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  padding: 14px;
}

.metric-card strong {
  display: block;
  font-size: 0.9rem;
  color: #14593f;
  margin-bottom: 4px;
}

.metric-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #475851;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 243, 238, 0.9);
  backdrop-filter: blur(10px);
}

.navbar.sticky {
  box-shadow: var(--shadow-soft);
}

.nav-wrap {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  color: #1d5f45;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #4b5a54;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 11px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: #e6f3ec;
  color: #0f573c;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #32433e;
  transition: 0.22s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  bottom: 9px;
  transform: rotate(-45deg);
}

.section {
  padding: 62px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 20px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.2;
}

.section-title span {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72em;
  color: #60716a;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.section-card {
  background: var(--card);
  border: 1px solid #dde7e2;
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: var(--shadow-soft);
}

.section-card p {
  margin: 0;
  color: #35443f;
}

.about-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dce6e1;
  background: #fff;
}

.about-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.about-gallery figcaption {
  padding: 8px 10px;
  font-size: 0.84rem;
  color: #4f5f59;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.journey-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  border: 1px solid #dce5df;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.journey-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.journey-card > div {
  padding: 14px;
}

.journey-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.journey-card .inst {
  margin: 4px 0 8px;
  color: #1b6247;
  font-weight: 700;
  font-size: 0.9rem;
}

.journey-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #43544d;
}

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

.agenda-card {
  background: #fff;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.agenda-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.agenda-card h3,
.agenda-card p,
.agenda-card a {
  margin-left: 12px;
  margin-right: 12px;
}

.agenda-card h3 {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.agenda-card p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #495b54;
}

.agenda-card a {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c6dad0;
  color: #155f43;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.focus-card {
  border: 1px solid #d9e4de;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.focus-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.focus-card h3,
.focus-card p {
  margin-left: 12px;
  margin-right: 12px;
}

.focus-card h3 {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 1rem;
}

.focus-card p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #4d5d57;
}

.atlas-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}

.atlas-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d8e2dd;
  background: #fff;
}

.atlas-grid .atlas-large {
  grid-row: span 2;
}

.atlas-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.atlas-grid figcaption {
  padding: 8px 10px;
  font-size: 0.84rem;
  color: #53635d;
}

.pub-list {
  margin: 0;
  padding-left: 22px;
}

.pub-list li {
  margin-bottom: 16px;
}

.pub-list p {
  margin: 0 0 4px;
  color: #394944;
  font-size: 0.93rem;
}

.pub-list .pub-note {
  color: #597068;
  font-size: 0.87rem;
}

.pub-list a {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.84rem;
  text-decoration: none;
  color: #146145;
  border: 1px solid #bfd7cb;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
}

.project-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d6e1db;
  background: #fff;
}

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

.project-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel {
  border-radius: 16px;
  border: 1px solid #d9e3de;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.panel h3 {
  margin: 0 0 8px;
  color: #184f39;
}

.panel p,
.panel li {
  margin: 0;
  color: #4d5d57;
  font-size: 0.9rem;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.skills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skills span {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #c6dacd;
  background: #f1faf5;
  color: #196045;
  font-weight: 700;
  font-size: 0.86rem;
}

.source-note {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid #d9e4de;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.source-note h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #194f39;
}

.source-note p {
  margin: 0;
  color: #4e5f58;
  font-size: 0.9rem;
}

.source-links {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.source-links a {
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #c6dbce;
  color: #175c42;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  background: #e8e4d9;
  text-align: center;
  padding: 22px 0 30px;
}

.footer p {
  margin: 0;
  color: #5f6d67;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-card {
    width: min(320px, 76%);
    margin: 0 auto;
  }

  .metrics,
  .agenda-grid,
  .focus-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-gallery,
  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .atlas-grid .atlas-large {
    grid-row: auto;
  }

  .journey-card {
    grid-template-columns: 1fr;
  }

  .journey-card img {
    max-height: 260px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 20px;
    top: 58px;
    width: min(260px, calc(100vw - 30px));
    background: #ffffff;
    border: 1px solid #d8e1dc;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 8px;
    display: none;
    flex-direction: column;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    border-radius: 9px;
    padding: 8px 10px;
  }

  .brand {
    font-size: 0.86rem;
  }

  .metrics,
  .agenda-grid,
  .focus-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }
}
