:root {
  --ink: #111614;
  --muted: #66706b;
  --line: #dfe6e1;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --deep: #07110f;
  --deep-2: #0b1d1a;
  --accent: #18b889;
  --accent-2: #c7f9e6;
  --shadow: 0 22px 70px rgba(7, 17, 15, 0.16);
  --max: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

.site-header {
  align-items: center;
  color: #fff;
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
  z-index: 10;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(17, 22, 20, 0.08);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.82;
  text-transform: uppercase;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  opacity: 1;
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: currentColor;
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.nav-toggle span {
  background: currentColor;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease;
  width: 22px;
}

.nav-toggle span:first-child {
  transform: translateY(-5px);
}

.nav-toggle span:last-child {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.96), rgba(7, 17, 15, 0.8) 42%, rgba(7, 17, 15, 0.18)),
    url("assets/hero-workspace.png") center / cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  color: #fff;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: 116px clamp(20px, 5vw, 72px) 56px;
  position: relative;
}

.hero::after {
  background: linear-gradient(180deg, transparent 68%, rgba(255, 255, 255, 0.96));
  bottom: 0;
  content: "";
  height: 180px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

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

.hero h1 {
  font-size: clamp(4.25rem, 13vw, 11.25rem);
  font-weight: 800;
  line-height: 0.86;
  margin: 0;
  max-width: 900px;
}

.role {
  color: var(--accent-2);
  font-size: clamp(1.12rem, 2vw, 1.58rem);
  font-weight: 700;
  margin: 28px 0 0;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.78;
  margin: 20px 0 0;
  max-width: 650px;
}

.hero-proof {
  color: rgba(199, 249, 230, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.6;
  margin: 24px 0 0;
  text-transform: uppercase;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button svg {
  height: 18px;
  width: 18px;
}

.button path,
.skill-group path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  background: var(--accent);
  color: #04110d;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}

.button-light {
  background: #fff;
  color: var(--deep);
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

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

.proof-section {
  background: #fff;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 72px);
}

.proof-grid {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.proof-item {
  padding: clamp(24px, 4vw, 38px) clamp(20px, 4vw, 42px);
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-item span {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.proof-item h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.8rem);
  line-height: 1.08;
  margin: 0;
}

.proof-item p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.68;
  margin: 16px 0 0;
}

.section-grid,
.section-heading,
.timeline,
.skill-grid,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
}

.section-grid {
  align-items: center;
  display: grid;
  gap: clamp(42px, 7vw, 92px);
  grid-template-columns: minmax(240px, 0.68fr) minmax(280px, 1fr);
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  background: var(--deep);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.portrait-frame::after {
  border: 1px solid rgba(24, 184, 137, 0.55);
  content: "";
  inset: 18px -16px -16px 18px;
  position: absolute;
  z-index: -1;
}

.portrait-frame::before {
  background: linear-gradient(180deg, transparent 58%, rgba(7, 17, 15, 0.2));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.portrait-frame img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 240ms ease;
  width: 100%;
}

.portrait-frame:hover img {
  transform: scale(1.025);
}

.section-copy h2,
.section-heading h2 {
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.section-copy p,
.section-heading p,
.timeline-item p,
.skill-group p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.section-copy p {
  max-width: 680px;
}

.history-section,
.skills-section {
  background: var(--wash);
}

.section-heading {
  margin-bottom: clamp(42px, 7vw, 76px);
}

.section-heading p {
  max-width: 620px;
}

.timeline {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 0;
  padding-left: clamp(26px, 4vw, 54px);
}

.timeline-item {
  display: grid;
  gap: clamp(22px, 4vw, 58px);
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 0 0 46px;
  position: relative;
}

.timeline-item::before {
  background: var(--accent);
  border: 8px solid var(--wash);
  border-radius: 50%;
  content: "";
  height: 16px;
  left: calc(clamp(26px, 4vw, 54px) * -1 - 8px);
  position: absolute;
  top: 4px;
  width: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.16;
  margin: 0;
}

.company {
  color: var(--accent) !important;
  font-size: 0.9rem !important;
  font-weight: 800;
  margin: 10px 0 0;
}

.timeline-item p:last-child {
  margin-bottom: 0;
  max-width: 780px;
}

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

.skill-group {
  background: #fff;
  min-height: 260px;
  padding: clamp(26px, 3.4vw, 42px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.skill-group:hover {
  box-shadow: 0 18px 48px rgba(7, 17, 15, 0.09);
  transform: translateY(-4px);
}

.skill-group svg {
  color: var(--accent);
  height: 34px;
  margin-bottom: 34px;
  width: 34px;
}

.skill-group h3 {
  font-size: 1.14rem;
  line-height: 1.28;
  margin: 0;
}

.skill-group p {
  margin-bottom: 0;
}

.certifications-section {
  background: #fff;
}

.credential-grid {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: var(--max);
}

.credential-item {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  overflow: hidden;
}

.credential-preview {
  aspect-ratio: 16 / 9;
  background: var(--deep);
  display: block;
  overflow: hidden;
}

.credential-preview img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 200ms ease;
  width: 100%;
}

.credential-item:hover .credential-preview img {
  transform: scale(1.025);
}

.credential-copy {
  padding: clamp(24px, 4vw, 42px) clamp(24px, 4vw, 46px) clamp(24px, 4vw, 42px) 0;
}

.credential-copy span {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.credential-copy h3 {
  font-size: clamp(1.28rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  margin: 0;
  max-width: 760px;
}

.credential-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
  margin: 16px 0 0;
}

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.credential-actions a {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(24, 184, 137, 0.55);
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.credential-actions a:hover,
.credential-actions a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.projects-section {
  background: var(--wash);
}

.project-list {
  border-top: 1px solid var(--line);
  display: grid;
  margin: 0 auto;
  max-width: var(--max);
}

.project-item {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(18px, 5vw, 72px);
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  padding: clamp(24px, 4vw, 38px) 0;
}

.project-item h3 {
  font-size: clamp(1.14rem, 2vw, 1.62rem);
  line-height: 1.16;
  margin: 0;
}

.project-item p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  max-width: 760px;
}

.project-actions {
  margin-top: 18px;
}

.project-actions a {
  color: var(--ink);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(24, 184, 137, 0.55);
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.project-actions a:hover,
.project-actions a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: clamp(26px, 5vw, 70px);
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
  padding: clamp(42px, 6vw, 70px) clamp(20px, 5vw, 72px);
}

.footer-copy span {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-copy strong {
  color: var(--ink);
  display: block;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.98;
  margin-bottom: 16px;
}

.footer-copy p {
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  max-width: 470px;
}

.footer-links {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  border-top: 1px solid var(--line);
}

.footer-links li:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.footer-links a {
  display: block;
  font-weight: 800;
  min-height: 92px;
  padding: 22px 24px 22px 0;
  transition: color 160ms ease, padding-left 160ms ease;
}

.footer-links span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  margin-bottom: 9px;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  padding-left: 8px;
}

.footer-links a:hover span,
.footer-links a:focus-visible span {
  color: var(--accent);
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    background: #fff;
    color: var(--ink);
    flex-direction: column;
    inset: 76px 0 auto 0;
    padding: 28px clamp(20px, 5vw, 72px) 34px;
    position: fixed;
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 86svh;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(7, 17, 15, 0.96), rgba(7, 17, 15, 0.78) 58%, rgba(7, 17, 15, 0.34)),
      url("assets/hero-workspace.png") center / cover;
    background-position: center, 56% center;
  }

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

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

  .proof-item + .proof-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .portrait-frame {
    max-width: 420px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-item {
    grid-template-columns: 1fr;
  }

  .credential-copy {
    padding: 0 clamp(22px, 5vw, 32px) clamp(24px, 5vw, 34px);
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 68px;
  }

  .site-nav {
    inset-top: 68px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 98px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 21vw, 6.6rem);
  }

  .hero-copy {
    line-height: 1.62;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 76px 20px;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline-item {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    border-color: var(--wash);
    left: -37px;
  }

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

  .skill-group {
    min-height: 0;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-links li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .footer-links li:last-child {
    border-bottom: 1px solid var(--line);
  }
}
