:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --surface-soft: #f2ece4;
  --text: #2f2a24;
  --muted: #6d655d;
  --accent: #a57e5f;
  --accent-2: #ccb297;
  --line: #e4d8cb;
  --shadow: 0 18px 45px rgba(53, 41, 29, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(204, 178, 151, 0.28), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(165, 126, 95, 0.18), transparent 45%),
    linear-gradient(160deg, #faf7f2 0%, #f5efe7 52%, #faf7f2 100%);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section-pad {
  padding: 92px 0;
}

.section-soft {
  background: rgba(255, 253, 249, 0.72);
  border-block: 1px solid rgba(228, 216, 203, 0.7);
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(250, 247, 242, 0.78);
  border-bottom: 1px solid rgba(228, 216, 203, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.8;
  transition: 220ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(204, 178, 151, 0.3);
  color: #5e4b3a;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 8px;
}

.hero-role {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: #4d4339;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-text {
  max-width: 65ch;
}

.hero-actions,
.contact-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 22px;
  transition: transform 260ms ease, box-shadow 260ms ease, background-color 260ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, #9f795b 0%, #b99374 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(159, 121, 91, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(159, 121, 91, 0.42);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: #fff;
}

.hero-photo {
  justify-self: center;
}

.portrait-wrap {
  width: min(370px, 82vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #fffdf9 0%, #ede1d5 60%, #dfc8b3 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(165, 126, 95, 0.24);
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(165, 126, 95, 0.45);
  box-shadow: 0 0 0 6px rgba(255, 250, 243, 0.8), 0 16px 36px rgba(103, 75, 53, 0.2);
}

.portrait {
  width: calc(100% - 34px);
  height: calc(100% - 34px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(165, 126, 95, 0.25);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 22px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 8px 20px rgba(52, 38, 24, 0.06);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(52, 38, 24, 0.12);
  border-color: rgba(165, 126, 95, 0.45);
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}

.card small {
  color: #7d746c;
  font-weight: 700;
}

.timeline {
  position: relative;
  padding-left: 28px;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(165, 126, 95, 0.4), rgba(165, 126, 95, 0.06));
}

.timeline-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: -27px;
  top: 22px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(165, 126, 95, 0.2);
}

.timeline-year {
  font-weight: 800;
  font-size: 0.82rem;
  color: #6a4f39;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-company {
  margin: 6px 0 12px;
  color: #50473f;
  font-weight: 700;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(165, 126, 95, 0.35);
  background: rgba(255, 253, 249, 0.9);
  color: #4f4338;
  font-weight: 600;
}

.contact {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.95), rgba(241, 230, 217, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact p {
  max-width: 68ch;
  margin-inline: auto;
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  padding: 28px 0 42px;
  text-align: center;
}

.site-footer p {
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid.three,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .hero-photo {
    order: 1;
  }

  .portrait-wrap {
    width: min(330px, 85vw);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 4vw;
    right: 4vw;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 10px 8px;
  }

  .section-pad {
    padding: 76px 0;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .timeline {
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
