:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #59655f;
  --soft: #dce4dc;
  --line: #d7ded6;
  --accent: #0f8f72;
  --accent-dark: #0b5f4f;
  --accent-soft: #dff4ed;
  --graphite: #202823;
  --shadow: 0 24px 70px rgba(23, 33, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--graphite);
  color: #fff;
  font-size: 0.82rem;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a:hover,
.text-link:hover {
  color: var(--accent-dark);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.88fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 60px 0 42px;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 5.7vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

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

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

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

.button.primary {
  background: var(--graphite);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--graphite);
}

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

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-visual::before {
  position: absolute;
  inset: -20px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 143, 114, 0.16), rgba(255, 255, 255, 0.4)),
    repeating-linear-gradient(90deg, rgba(23, 33, 27, 0.06) 0 1px, transparent 1px 44px);
  content: "";
}

.signal-card,
.work-card,
.proof-strip,
.skill-grid > div,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.main-signal {
  min-height: 230px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.signal-label,
.tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-signal strong {
  display: block;
  max-width: 420px;
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1.05;
}

.main-signal p,
.work-card p,
.timeline p,
.skill-grid p,
.about p,
.split-intro > p {
  color: var(--muted);
}

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

.metric-grid div {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 2.25rem;
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.section {
  padding: 84px 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.proof-strip div {
  min-height: 148px;
  padding: 26px;
  background: var(--surface);
}

.proof-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-strip strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.split-intro,
.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 42px;
  align-items: start;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 70px;
}

.work-card {
  overflow: hidden;
}

.work-card.featured {
  display: grid;
  grid-column: span 3;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1fr);
  min-height: 380px;
}

.work-content {
  padding: 28px;
}

.work-card.featured .work-content {
  padding: 40px;
}

.work-card ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.work-visual {
  min-height: 280px;
  background:
    radial-gradient(circle at 28% 22%, rgba(15, 143, 114, 0.36), transparent 32%),
    linear-gradient(135deg, #15211b, #294135);
}

.chatbot-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.chatbot-visual::before {
  width: min(70%, 330px);
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(#f8fff9 0 0) 24px 28px / 160px 12px no-repeat,
    linear-gradient(#dff4ed 0 0) 24px 56px / 240px 10px no-repeat,
    linear-gradient(#dff4ed 0 0) 24px 78px / 200px 10px no-repeat,
    linear-gradient(#0f8f72 0 0) 24px 126px / 72% 34px no-repeat,
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
  content: "";
}

.chatbot-visual span {
  position: absolute;
  border-radius: 999px;
  background: rgba(223, 244, 237, 0.9);
}

.chatbot-visual span:nth-child(1) {
  width: 84px;
  height: 8px;
  transform: translate(-110px, 88px);
}

.chatbot-visual span:nth-child(2) {
  width: 126px;
  height: 8px;
  transform: translate(40px, 88px);
}

.chatbot-visual span:nth-child(3) {
  width: 54px;
  height: 8px;
  transform: translate(142px, -76px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chips span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

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

.timeline article {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.timeline-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.timeline-meta strong {
  display: block;
  color: var(--muted);
}

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

.skill-grid > div {
  min-height: 210px;
  padding: 24px;
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact {
  align-items: center;
  margin: 42px 0 72px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(15, 143, 114, 0.14), transparent 38%),
    var(--surface);
}

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

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 900px) {
  .site-header,
  .nav {
    align-items: flex-start;
  }

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

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero,
  .split-intro,
  .about,
  .contact,
  .work-card.featured,
  .timeline article {
    grid-template-columns: 1fr;
  }

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

  .hero-visual::before {
    inset: 0;
  }

  .proof-strip,
  .work-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  main,
  .site-header {
    width: min(100% - 22px, 1180px);
  }

  .nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 3.1rem;
  }

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

  .section {
    padding: 58px 0;
  }

  .work-content,
  .work-card.featured .work-content,
  .contact {
    padding: 24px;
  }
}
