:root {
  --bg: #f6f5ef;
  --ink: #1e2a2f;
  --ink-soft: #44525a;
  --card: #fffdf8;
  --line: #d8d6cc;
  --primary: #0d7f7a;
  --primary-dark: #0a6763;
  --accent: #f08e35;
  --shadow: 0 20px 45px rgba(27, 38, 44, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(240, 142, 53, 0.15), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(13, 127, 122, 0.18), transparent 42%),
    var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.36;
}

.orb-a {
  width: 380px;
  height: 380px;
  background: #3fb4a8;
  top: -110px;
  right: -80px;
}

.orb-b {
  width: 420px;
  height: 420px;
  background: #ffb067;
  left: -120px;
  bottom: -140px;
}

.topbar {
  width: min(1080px, 92vw);
  margin: 26px auto 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
}

.topbar a:hover {
  color: var(--primary-dark);
}

main,
footer {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.hero {
  margin-top: 14px;
  padding: 42px;
  border: 1px solid #c4d8d3;
  background:
    linear-gradient(180deg, rgba(13, 127, 122, 0.05) 0%, rgba(255, 253, 248, 0.92) 26%),
    rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr minmax(220px, 320px);
  align-items: start;
  gap: 26px;
}

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

.hero-portrait {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(27, 38, 44, 0.14);
  background: #dfe8ec;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 24%;
}

.role-tag {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.14;
}

h1 {
  margin: 6px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.01em;
}

.lead {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1.02rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.meta-row span {
  font-size: 0.88rem;
  border: 1px solid var(--line);
  background: #ffffffb8;
  padding: 6px 10px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 38, 44, 0.12);
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.stats {
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats article {
  padding: 22px;
  background: linear-gradient(180deg, rgba(13, 127, 122, 0.09) 0%, rgba(255, 255, 255, 0.97) 70%);
  border: 1px solid #c4d8d3;
}

.stats article:nth-child(2) {
  background: linear-gradient(180deg, rgba(13, 127, 122, 0.12) 0%, rgba(255, 255, 255, 0.97) 70%);
}

.stats h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

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

.panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}

section h3 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3.3vw, 2rem);
}

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

.checklist li {
  margin: 8px 0;
}

#experience,
#projects {
  margin-top: 24px;
  padding-top: 6px;
}

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

.timeline article {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 16px 16px 14px;
}

.time {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.timeline h4 {
  margin: 5px 0 8px;
  font-size: 1.08rem;
}

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

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

.card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.card h4 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

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

footer {
  margin: 34px auto 42px;
  padding: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
}

footer p {
  margin: 6px 0;
}

footer a {
  color: var(--primary-dark);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

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

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

@media (max-width: 920px) {
  .stats,
  .grid {
    grid-template-columns: 1fr;
  }

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

  .hero-portrait {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero {
    padding: 28px;
  }

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