:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #5e625f;
  --line: #d8ddd6;
  --paper: #f8f8f5;
  --white: #ffffff;
  --green: #1f6b4a;
  --blue: #285f9f;
  --red: #a9412f;
  --yellow: #d8b23f;
  --shadow: 0 18px 48px rgba(21, 21, 21, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(248, 248, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 750;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  background: rgba(31, 107, 74, 0.1);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  min-height: calc(100svh - 112px);
  padding: clamp(46px, 8vw, 94px) clamp(18px, 5vw, 72px) clamp(36px, 6vw, 72px);
}

.hero-copy {
  max-width: 820px;
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: #303330;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.32;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.primary:hover {
  background: var(--green);
  border-color: var(--green);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.64);
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.focus-strip {
  position: absolute;
  right: -18px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  width: min(270px, 76%);
}

.focus-strip span {
  padding: 10px 12px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.1);
  font-size: 14px;
  font-weight: 750;
}

.focus-strip span:nth-child(2) {
  border-left-color: var(--blue);
}

.focus-strip span:nth-child(3) {
  border-left-color: var(--red);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.signal-band div {
  min-height: 116px;
  padding: 24px clamp(18px, 4vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.signal-band div:last-child {
  border-right: 0;
}

.signal-band strong,
.signal-band span {
  display: block;
}

.signal-band strong {
  margin-bottom: 8px;
  font-size: clamp(24px, 3.2vw, 48px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.signal-band span {
  color: rgba(255, 255, 255, 0.74);
}

.section {
  padding: clamp(64px, 9vw, 126px) clamp(18px, 5vw, 72px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
}

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

.service,
.project {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.service {
  padding: 26px;
}

.service p,
.project p,
.section-head p,
.contact p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

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

.project {
  min-height: 260px;
  padding: 24px;
}

.project-kicker {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(31, 107, 74, 0.11);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project:nth-child(2) .project-kicker,
.project:nth-child(5) .project-kicker {
  background: rgba(40, 95, 159, 0.11);
  color: var(--blue);
}

.project:nth-child(3) .project-kicker,
.project:nth-child(6) .project-kicker {
  background: rgba(169, 65, 47, 0.11);
  color: var(--red);
}

.blog-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.blog-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.blog-teaser span {
  color: var(--muted);
  font-size: 16px;
}

.blog-teaser code {
  border-radius: 5px;
  background: rgba(21, 21, 21, 0.08);
  padding: 2px 5px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(24px, 6vw, 72px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(21, 21, 21, 0.14);
  color: var(--muted);
}

.site-footer a {
  font-weight: 750;
}

@media (max-width: 920px) {
  .hero,
  .two-column,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    justify-self: start;
    max-width: 390px;
  }

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

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    display: flex;
    width: 100%;
    gap: 4px;
    justify-content: flex-start;
  }

  .nav a {
    flex: 1 1 calc(50% - 4px);
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(40px, 13.4vw, 58px);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.04;
  }

  .lead {
    font-size: 19px;
  }

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

  .button {
    width: 100%;
  }

  .focus-strip {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .signal-band {
    grid-template-columns: 1fr;
  }

  .signal-band div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .signal-band div:last-child {
    border-bottom: 0;
  }

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

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

  .hero,
  .section {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(36px, 12.8vw, 44px);
  }
}
