:root {
  --ink: #111714;
  --muted: #5d6963;
  --soft: #f4f2ed;
  --paper: #fffdf8;
  --line: rgba(17, 23, 20, 0.14);
  --green: #0f5f4a;
  --teal: #168473;
  --amber: #b87425;
  --charcoal: #101815;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(16, 24, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #f8fbf7;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.icon-button,
.hero-actions a,
.text-link,
.contact-actions a {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 750;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
}

.nav {
  justify-self: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover,
.text-link:hover,
.project-card a:hover,
.contact-actions a:hover {
  color: var(--teal);
}

.icon-button {
  justify-self: end;
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 750;
}

.icon-button svg,
.hero-actions svg,
.text-link svg,
.contact-actions svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

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

.hero-media {
  background-image: url("/resume-assets/ai-operations-hero.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 16, 14, 0.94) 0%, rgba(11, 16, 14, 0.82) 34%, rgba(11, 16, 14, 0.28) 68%, rgba(11, 16, 14, 0.1) 100%),
    linear-gradient(180deg, rgba(11, 16, 14, 0.4), rgba(11, 16, 14, 0.12) 50%, rgba(11, 16, 14, 0.58));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  margin-left: clamp(18px, 7vw, 108px);
  padding-top: 72px;
  color: #f7faf5;
}

.eyebrow,
.section-kicker,
.role-date {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(4rem, 9.2vw, 8.75rem);
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(247, 250, 245, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions a {
  min-height: 48px;
  gap: 10px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  background: #f7faf5;
  color: var(--ink);
}

.secondary-action {
  border: 1px solid rgba(247, 250, 245, 0.64);
  color: #f7faf5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: #f6f3ec;
}

.metric {
  min-height: 132px;
  padding: clamp(22px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  display: block;
  max-width: 280px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: clamp(68px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading,
.intro-grid,
.split-section,
.contact-section,
.site-footer {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.section h2,
.contact-section h2 {
  font-size: clamp(2.25rem, 5.8vw, 5.1rem);
}

.intro-grid p,
.sticky-title p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.text-link {
  gap: 8px;
  color: var(--green);
  font-weight: 850;
  white-space: nowrap;
}

.project-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.skill-group,
.role,
.match-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.match-section {
  background: #f6f3ec;
  border-block: 1px solid var(--line);
}

.match-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.match-item {
  min-height: 230px;
  padding: 22px;
  background: #fffdf8;
}

.match-item svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.match-item h3 {
  margin: 22px 0 10px;
  font-size: 1.12rem;
}

.match-item p {
  margin: 0;
  color: var(--muted);
}

.project-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  padding: 24px;
  box-shadow: var(--shadow);
}

.project-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #e8f2ed;
  color: var(--green);
}

.project-icon svg {
  width: 23px;
  height: 23px;
}

.project-card h3,
.skill-group h3,
.role h3 {
  margin: 22px 0 10px;
  font-size: 1.34rem;
}

.project-card p,
.skill-group p,
.role p {
  margin: 0;
  color: var(--muted);
}

.project-card dl {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.project-card dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-card dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-card dd {
  margin: 5px 0 0;
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  color: var(--green);
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(32px, 7vw, 90px);
}

.sticky-title {
  position: sticky;
  top: 120px;
  align-self: start;
}

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

.role {
  position: relative;
  padding: 24px;
}

.role::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.role h3 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.skills-section {
  background: #eef1ec;
  border-block: 1px solid var(--line);
}

.skills-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-group {
  padding: 22px;
  background: #fbfaf5;
}

.skill-group h3 {
  margin-top: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(70px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.contact-section h2 {
  max-width: 680px;
  font-size: clamp(2.1rem, 4.7vw, 4.3rem);
}

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

.contact-actions a {
  min-height: 58px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

  .nav {
    display: none;
  }

  .resume-button span {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-media {
    background-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 16, 14, 0.95), rgba(11, 16, 14, 0.68) 62%, rgba(11, 16, 14, 0.32)),
      linear-gradient(180deg, rgba(11, 16, 14, 0.32), rgba(11, 16, 14, 0.68));
  }

  .hero-inner {
    margin-left: auto;
  }

  .metrics,
  .project-grid,
  .match-grid,
  .skills-grid,
  .intro-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .sticky-title {
    position: static;
  }

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

  .match-item {
    min-height: auto;
  }
}

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

  .brand span:last-child {
    display: none;
  }

  .brand-mark,
  .icon-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 18vw, 5.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .section-heading {
    display: block;
  }

  .text-link {
    margin-top: 18px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

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