:root {
  --ink: #1f2a2e;
  --muted: #657174;
  --paper: #fbf7f1;
  --ivory: #fffdf8;
  --teal: #0f7b72;
  --teal-dark: #07554f;
  --coral: #e7694f;
  --gold: #c99a45;
  --line: rgba(31, 42, 46, 0.14);
  --shadow: 0 24px 60px rgba(31, 42, 46, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 32px rgba(31, 42, 46, 0.08);
  backdrop-filter: blur(18px);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ivory);
  background: var(--teal-dark);
  border-radius: 50%;
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a,
.header-cta {
  position: relative;
}

.nav-links a::after,
.header-cta::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.header-cta:hover::after {
  transform: scaleX(1);
}

.header-cta {
  color: var(--teal-dark);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px clamp(20px, 6vw, 84px) 44px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: slowPan 16s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 247, 241, 0.98) 0%, rgba(251, 247, 241, 0.88) 38%, rgba(251, 247, 241, 0.36) 72%),
    linear-gradient(0deg, rgba(251, 247, 241, 0.95) 0%, rgba(251, 247, 241, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 650px;
  color: #314044;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.contact-actions a,
.contact-actions span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
}

.button.primary {
  color: var(--ivory);
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.76);
}

.button,
.project-card,
.timeline-item,
.skills-grid span {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.project-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: var(--coral);
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 84px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  background: var(--ivory);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

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

.timeline-item {
  position: relative;
  padding: 0 0 28px 38px;
}

.timeline-item::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--coral);
  border: 5px solid var(--ivory);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-date,
.company {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.company {
  margin-bottom: 10px;
}

.timeline-item p:last-child {
  color: var(--muted);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

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

.project-card {
  min-height: 360px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-marker {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  place-items: center;
  color: var(--ivory);
  background: var(--teal-dark);
  border-radius: 50%;
  font-weight: 800;
}

.project-card p,
.project-card li {
  color: var(--muted);
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.skill-section {
  background: #eef4f0;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-grid span {
  padding: 13px 16px;
  background: var(--ivory);
  border: 1px solid rgba(15, 123, 114, 0.22);
  border-radius: 7px;
  color: var(--teal-dark);
  font-weight: 800;
}

.skills-grid span:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
}

.education-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.education-card,
.education-list {
  padding: clamp(24px, 4vw, 38px);
  background: var(--teal-dark);
  border-radius: 8px;
  color: var(--ivory);
}

.education-card .section-kicker {
  color: #9ee0d7;
}

.education-card strong {
  display: inline-block;
  margin-top: 10px;
  color: #f6c05f;
  font-size: 1.4rem;
}

.education-list {
  display: grid;
  gap: 18px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
}

.education-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.education-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.education-list span {
  color: var(--coral);
  font-weight: 800;
}

.education-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  padding: clamp(72px, 10vw, 116px) clamp(20px, 6vw, 84px);
  color: var(--ivory);
  background: linear-gradient(135deg, var(--ink), var(--teal-dark));
}

.contact-inner {
  max-width: 900px;
}

.contact-inner .section-kicker {
  color: #9ee0d7;
}

.contact-actions {
  margin-top: 26px;
}

.contact-actions a,
.contact-actions span {
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(20px, 6vw, 84px);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.75);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes slowPan {
  from {
    transform: scale(1.03) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 850px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 880px;
    padding-top: 110px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 247, 241, 0.94) 0%, rgba(251, 247, 241, 0.9) 55%, rgba(251, 247, 241, 0.78) 100%),
      linear-gradient(0deg, rgba(251, 247, 241, 0.98), rgba(251, 247, 241, 0));
  }

  .hero-stats,
  .intro-grid,
  .split-band,
  .project-grid,
  .education-band {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .education-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-cta {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 820px;
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .button,
  .contact-actions a,
  .contact-actions span {
    width: 100%;
  }
}
