:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #ffffff;
  --soft: #eef2f7;
  --accent: #1e293b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 28px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(226, 232, 240, 0.95), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 46%, #ffffff 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

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

.section-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.brand img {
  width: 176px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 82px);
  padding: 72px 0 84px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: .92;
  letter-spacing: -0.074em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 690px;
  color: #334155;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-panel {
  position: relative;
  min-height: 480px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 40px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,245,249,.85));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -66px;
  top: -66px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .08);
}

.metric-card {
  position: relative;
  display: flex;
  min-height: 118px;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 26px;
  background: rgba(255,255,255,.74);
}

.metric-card.large {
  min-height: 264px;
  display: block;
  padding: 28px;
  color: var(--white);
  background: var(--ink);
  border-color: transparent;
}

.metric-number {
  display: block;
  margin-top: 72px;
  font-size: clamp(96px, 16vw, 160px);
  line-height: .78;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.metric-label {
  display: block;
  margin-top: 18px;
  color: #cbd5e1;
  font-weight: 680;
}

.metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.metric-card span {
  font-weight: 760;
  letter-spacing: -0.02em;
}

.section {
  padding: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
  gap: 40px;
  margin-bottom: 34px;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-left: calc((100% - 40px) * .28);
  color: #334155;
  font-size: 19px;
}

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

.project-card {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.12);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 70px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-card p {
  color: #475569;
  font-size: 17px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--ink);
  font-weight: 760;
}

.project-link span {
  transition: transform .18s ease;
}

.project-link:hover span {
  transform: translateX(3px);
}

.statement {
  padding: clamp(32px, 5vw, 62px);
  border-radius: 36px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.statement p {
  max-width: 940px;
  margin: 0;
  font-size: clamp(28px, 4.8vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 36px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 62px rgba(15, 23, 42, 0.08);
}

.contact-card p:last-child {
  max-width: 690px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 680;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

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

@media (max-width: 860px) {
  .site-header {
    border-radius: 26px;
  }

  .nav {
    display: none;
  }

  .brand img {
    width: 158px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .hero-panel {
    min-height: auto;
  }

  .section-heading,
  .text-grid,
  .projects-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .text-grid {
    margin-left: 0;
  }

  .project-card {
    min-height: 320px;
  }

  .project-topline {
    margin-bottom: 48px;
  }

  .contact-card .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .section-wrap,
  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-bottom: 48px;
  }

  .section {
    padding: 54px 0;
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
