:root {
  --forest: #1E3A31;
  --forest-deep: #152B24;
  --amber: #D99A2B;
  --amber-deep: #B37D1B;
  --bone: #F1EFE9;
  --bone-deep: #E4E1D6;
  --ink: #23282B;
  --ink-soft: #5C6660;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #fbfaf6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--forest);
  text-wrap: balance;
}

a { color: var(--forest); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--amber);
  color: var(--forest-deep);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--amber) 70%, white);
  outline-offset: 3px;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--forest) 100%);
  padding: 72px 24px 88px;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}

.portrait {
  width: 200px;
  height: 257px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--amber);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  color: var(--bone);
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero .role {
  color: var(--amber);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero .intro {
  color: color-mix(in srgb, var(--bone) 85%, transparent);
  max-width: 56ch;
  font-size: 15.5px;
  margin-bottom: 26px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(241,239,233,0.08);
  border: 1px solid rgba(217,154,43,0.4);
  color: var(--bone);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.contact-chip:hover {
  background: rgba(217,154,43,0.16);
  border-color: var(--amber);
  transform: translateY(-1px);
}
.contact-chip svg { color: var(--amber); flex-shrink: 0; }

/* ---------- SECTIONS ---------- */
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 68px 24px;
}

.section-kicker {
  color: var(--amber-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 40px;
}

/* Timeline */
.timeline {
  list-style: none;
  border-left: 2px solid var(--bone-deep);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid #fbfaf6;
  box-shadow: 0 0 0 2px var(--bone-deep);
}

.tl-period {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 13.5px;
  padding-top: 3px;
  white-space: nowrap;
}

.tl-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tl-sub {
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.tl-content p {
  font-size: 15px;
  color: var(--ink);
}

.tl-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .tl-period { padding-top: 0; }
}

/* Skills */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.skill-group {
  background: var(--bone);
  border-radius: 14px;
  padding: 22px 24px;
}

.skill-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}

.skill-group p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

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

.lang-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--forest);
  color: var(--bone);
  font-size: 13px;
  font-weight: 500;
}

/* Engagement */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.engagement-grid h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.engagement-grid p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--bone-deep);
  padding: 32px 24px 48px;
  text-align: center;
}

.site-footer p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .contact-row { justify-content: center; }
}
