@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
  --ink: #1b211e;
  --paper: #f4f2ec;
  --card: #fbfaf6;
  --muted: #6b736e;
  --line: #e4e2da;
  --accent: #136c4e;
  --accent-deep: #0f5238;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { width: 17px; height: 17px; stroke-width: 1.75; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.wrap, .hero, .work, .about, .resume, .contact { padding-left: clamp(22px, 7vw, 120px); padding-right: clamp(22px, 7vw, 120px); }

.nav {
  height: 66px;
  padding: 0 clamp(22px, 7vw, 120px);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 242, 236, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: "Fraunces", serif; font-weight: 600; font-size: 18px; }
.nav nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: 14px; font-weight: 500; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff !important; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }

.hero {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
.hero-text { animation: rise .5s both; }
h1 { margin: 0 0 22px; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; text-wrap: balance; }
.kicker { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lede { margin: 0; max-width: 560px; color: #444b47; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.62; }
.cta-row { margin: 30px 0 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.quick-facts { margin: 0; padding: 24px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 30px; border-top: 1px solid var(--line); }
.quick-facts li { display: flex; flex-direction: column; }
.quick-facts strong { font-family: "Fraunces", serif; font-size: 20px; }
.quick-facts span { color: var(--muted); font-size: 13px; }
.hero-photo { margin: 0; justify-self: end; width: min(360px, 82vw); animation: rise .7s both; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 28px rgba(20,40,32,.22)); }

.work { padding-top: clamp(56px, 8vw, 92px); padding-bottom: clamp(56px, 8vw, 92px); }
.feature {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  margin-top: 6px; padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(155deg, #17493a 0%, #0f2f26 62%, #0c231d 100%);
  color: #eef2ee; border-radius: 24px;
}
.feature-tag { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #d8efe2; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.feature h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; color: #fff; }
.feature-body p { margin: 0 0 22px; max-width: 520px; color: #c2d3ca; font-size: 15px; line-height: 1.62; }
.feature-links { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-btn { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #2fa578; color: #06231a; transition: transform .12s ease; }
.feature-btn.ghost { background: transparent; color: #d8efe2; border: 1px solid rgba(255,255,255,.30); }
.feature-btn:hover { transform: translateY(-1px); }
.feature-flow { display: flex; flex-direction: column; gap: 8px; }
.feature-flow span { padding: 13px 16px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 500; color: #e0ede6; position: relative; }
.feature-flow span:not(:last-child)::after { content: ""; position: absolute; left: 26px; bottom: -8px; width: 1px; height: 8px; background: rgba(255,255,255,.22); }

.work-links { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-links a { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: border-color .15s ease, transform .15s ease; }
.work-links a:hover { border-color: #c9cdc2; transform: translateY(-2px); }
.wl-tag { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.work-links strong { display: block; margin: 12px 0 8px; font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; }
.work-links p { margin: 0; color: var(--muted); font-size: 14px; }
.work-links a > svg { position: absolute; top: 24px; right: 24px; color: var(--muted); }

.about { padding-top: clamp(56px, 8vw, 92px); padding-bottom: clamp(56px, 8vw, 92px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); border-top: 1px solid var(--line); }
.about-role h3 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.about-org { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.about-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.about-points li { padding-left: 20px; position: relative; color: #444b47; font-size: 15.5px; line-height: 1.6; }
.about-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.about-points strong { color: var(--ink); font-weight: 600; }

.resume { padding-top: clamp(56px, 8vw, 92px); padding-bottom: clamp(56px, 8vw, 92px); border-top: 1px solid var(--line); }
.resume-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.resume-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); }
.pdf-reader { margin-top: 4px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -34px rgba(20,40,32,.4); background: #e9e6de; }
.pdf-toolbar { height: 50px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; color: #eef2ee; background: linear-gradient(155deg, #17493a 0%, #0f2f26 100%); font: 600 13px "Inter", sans-serif; }
.pdf-toolbar > span { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.pdf-toolbar svg { width: 16px; height: 16px; }
.pdf-controls { display: flex; align-items: center; gap: 6px; }
.pdf-controls button, .pdf-controls a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; background: transparent; color: #eef2ee; cursor: pointer; transition: background .15s ease; }
.pdf-controls button:hover:not(:disabled), .pdf-controls a:hover { background: rgba(255,255,255,.14); }
.pdf-controls button:disabled { opacity: .35; cursor: default; }
#resume-zoom-label { min-width: 46px; text-align: center; color: #cfe0d7; font-size: 12px; }
.pdf-viewport { position: relative; max-height: 86vh; padding: 24px; display: flex; align-items: flex-start; justify-content: center; overflow: auto; background: #e9e6de; user-select: none; }
.pdf-viewport img { display: none; max-width: none; height: auto; background: #fff; box-shadow: 0 6px 26px rgba(20,40,32,.20); }
.pdf-viewport img.ready { display: block; }
.pdf-loading { min-height: 360px; display: flex; align-items: center; gap: 10px; color: #6b726c; font-size: 13px; }
.pdf-loading span { width: 12px; height: 12px; border: 2px solid #b9b3a6; border-top-color: #17493a; border-radius: 50%; animation: spin .8s linear infinite; }
.pdf-loading.hidden { display: none; }
.viewer-watermark { position: absolute; right: 24px; bottom: 22px; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.72); color: rgba(20,40,32,.55); font-size: 11px; font-weight: 600; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact { margin: clamp(40px, 6vw, 72px) clamp(22px, 7vw, 120px); padding: clamp(44px, 5vw, 72px) clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; background: linear-gradient(155deg, #143f31 0%, #0d2a22 60%, #0a1f19 100%); color: #eef2ee; border-radius: 24px; }
.contact .eyebrow { color: #7fd8b1; }
.contact h2 { margin: 0; font-size: clamp(30px, 3.6vw, 52px); color: #fff; }
.contact-links { justify-self: end; display: grid; gap: 12px; width: min(100%, 360px); }
.contact-links a { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 14px; font-weight: 500; transition: background .15s ease; }
.contact-links a:hover { background: rgba(255,255,255,.12); }
.contact-links svg { color: #9fe3c1; }

footer { padding: 26px clamp(22px, 7vw, 120px); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { order: -1; justify-self: start; width: min(200px, 54vw); }
  .feature { grid-template-columns: 1fr; }
  .feature-flow { flex-direction: row; flex-wrap: wrap; }
  .feature-flow span:not(:last-child)::after { display: none; }
  .work-links { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .contact { grid-template-columns: 1fr; }
  .contact-links { justify-self: stretch; width: 100%; }
}

@media (max-width: 560px) {
  h1 { font-size: 38px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .quick-facts { gap: 18px; }
  .resume-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pdf-toolbar { height: auto; min-height: 48px; padding: 8px 12px; }
  .pdf-viewport { padding: 12px; max-height: 78vh; }
  footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}