:root {
  color-scheme: light;
  --bg: #f6f4f0;
  --bg-deep: #efeae3;
  --ink: #1a1d21;
  --muted: #56616c;
  --accent: #0f4c5c;
  --accent-2: #b08968;
  --line: #d9d2c7;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(18, 24, 34, 0.12);
}

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

body {
  font-family: "IBM Plex Sans", sans-serif;
  background: radial-gradient(circle at top right, #ffffff 0%, var(--bg) 45%, var(--bg-deep) 100%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.grain {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
    radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: cover, 3px 3px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 72px 0 40px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: stretch;
}

.hero-text h1 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.company {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.location {
  color: var(--muted);
  margin-bottom: 18px;
}

.summary {
  color: var(--ink);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 76, 92, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 76, 92, 0.3);
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-role {
  font-size: 1.3rem;
  font-weight: 600;
}

.card-meta {
  color: var(--muted);
  margin-top: 6px;
}

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

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--accent);
  background: #fdfbf7;
}

.section {
  padding: 52px 0;
  position: relative;
  z-index: 1;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.detail {
  margin-top: 10px;
  color: var(--ink);
}

.education-card {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 28px 0 50px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 720px) {
  .hero-card {
    order: -1;
  }

  .timeline {
    padding-left: 20px;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .hero-text,
  .hero-card,
  .section {
    animation: rise 0.9s ease forwards;
    opacity: 0;
    transform: translateY(12px);
  }

  .hero-card {
    animation-delay: 0.1s;
  }

  .section {
    animation-delay: 0.15s;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
