:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --text: #171717;
  --muted: #656565;
  --line: #e8e3da;
  --accent: #1d4ed8;
  --teal: #0f766e;
  --orange: #ea580c;
  --rose: #be123c;
  --accent-soft: #eef4ff;
  --teal-soft: #e9fbf6;
  --orange-soft: #fff3e9;
  --rose-soft: #fff1f4;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.1), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(234, 88, 12, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(20px, 5vw, 48px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header.has-shadow {
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.06);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 760;
  gap: 10px;
}

.brand::before {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 50%;
  content: "";
  height: 11px;
  width: 11px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 40px;
  padding: 0;
  width: 40px;
}

.menu-toggle span {
  background: var(--text);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 22px;
}

main {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 clamp(20px, 5vw, 32px);
}

.hero {
  min-height: calc(100vh - 68px);
  padding: clamp(76px, 13vw, 150px) 0 56px;
  position: relative;
}

/* .hero::after {
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.92), rgba(15, 118, 110, 0.92)),
    var(--accent);
  border-radius: 26px;
  bottom: 72px;
  content: "";
  height: 132px;
  position: absolute;
  right: 0;
  width: min(260px, 32vw);
  z-index: -1;
} */

.eyebrow {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 900px;
}

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

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

.hero-text {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  max-width: 690px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-weight: 720;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus {
  border-color: var(--text);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.quick-facts {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.quick-facts div {
  padding: 26px;
}

.quick-facts div + div {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.quick-facts div:nth-child(2) strong {
  color: var(--teal);
}

.quick-facts div:nth-child(3) strong {
  color: var(--orange);
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.section {
  padding: clamp(70px, 11vw, 120px) 0;
}

.muted-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
  max-width: 650px;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-list article {
  background: transparent;
  border-radius: 16px;
  display: grid;
  gap: 20px;
  grid-template-columns: 170px minmax(210px, 0.8fr) 1fr;
  padding: 24px 18px;
  position: relative;
}

.work-list article:hover {
  background: rgba(255, 255, 255, 0.66);
}

.work-list article::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 9px;
  left: 0;
  position: absolute;
  top: 38px;
  width: 9px;
}

.work-list article:nth-child(2)::before {
  background: var(--teal);
}

.work-list article:nth-child(3)::before {
  background: var(--orange);
}

.work-list article:nth-child(4)::before {
  background: var(--rose);
}

.work-list article:nth-child(5)::before {
  background: var(--accent);
}

.work-list article:nth-child(6)::before {
  background: var(--teal);
}

.work-list article:nth-child(7)::before {
  background: var(--orange);
}

.work-list article + article {
  border-top: 1px solid var(--line);
}

.work-list span {
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 760;
}

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

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

.skill-list li {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #17356f;
  font-size: 0.94rem;
  font-weight: 650;
  padding: 9px 13px;
}

.skill-list li:nth-child(3n + 2) {
  background: var(--teal-soft);
  color: #0f5c55;
}

.skill-list li:nth-child(3n) {
  background: var(--orange-soft);
  color: #8a3d0b;
}

.skill-list li:nth-child(5n) {
  background: var(--rose-soft);
  color: #891337;
}

.contact {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.96), rgba(29, 78, 216, 0.92));
  border-radius: 22px;
  color: #ffffff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
  padding: clamp(34px, 7vw, 58px);
}

.contact .eyebrow {
  color: #93c5fd;
}

.contact h2 {
  margin-bottom: 0;
  max-width: 620px;
}

.contact .button.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--text);
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 26px clamp(20px, 5vw, 32px) 42px;
}

.site-footer a {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 8px 20px 18px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-top: 1px solid var(--line);
    padding: 14px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  h1 {
    font-size: 3.4rem;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .work-list article {
    gap: 8px;
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.7rem;
  }

  .button {
    width: 100%;
  }
}
