:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #586172;
  --line: #d8dde6;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --charcoal: #202833;
  --teal: #087f8c;
  --amber: #b66a2c;
  --sage: #607d6f;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0));
}

.wordmark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.3);
  backdrop-filter: blur(12px);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  opacity: 0.86;
}

nav a:focus-visible,
nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 92vh);
  padding: 128px clamp(20px, 6vw, 86px) 96px;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 20, 29, 0.9), rgba(13, 20, 29, 0.62) 44%, rgba(13, 20, 29, 0.18)),
    linear-gradient(180deg, rgba(13, 20, 29, 0.1), rgba(13, 20, 29, 0.84));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 820px;
}

.eyebrow,
.section-label,
.skill-kicker,
.timeline-item span {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #87d9d8;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 8vw, 7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.24;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 32px rgba(8, 127, 140, 0.28);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.button:focus-visible,
.button:hover {
  transform: translateY(-1px);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 108px) 0;
}

.intro,
.split,
.credentials,
.contact {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro > p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.15rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.skill-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.skill-card:nth-child(2) .skill-kicker {
  color: var(--amber);
}

.skill-card:nth-child(3) .skill-kicker {
  color: var(--sage);
}

.skill-card:nth-child(4) .skill-kicker {
  color: #5e6fa5;
}

.skill-card p,
.timeline-item p,
.credential-list,
.site-footer {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 28px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(2) {
  border-left-color: var(--amber);
}

.timeline-item:nth-child(3) {
  border-left-color: var(--sage);
}

.timeline-item span {
  display: block;
  margin-bottom: 8px;
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
}

.contact {
  padding-bottom: clamp(70px, 10vw, 120px);
}

.contact-panel {
  align-items: flex-start;
  padding: 28px;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-panel p {
  flex: 1 1 300px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .split,
  .credentials,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 860px;
    padding: 116px 20px 62px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(13, 20, 29, 0.84), rgba(13, 20, 29, 0.5) 36%, rgba(13, 20, 29, 0.9)),
      linear-gradient(90deg, rgba(13, 20, 29, 0.78), rgba(13, 20, 29, 0.24));
  }

  .hero-content {
    align-self: end;
  }

  .button {
    width: 100%;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
