:root {
  color-scheme: light;
  --ink: #111414;
  --muted: #5f6b65;
  --paper: #f6f4ee;
  --paper-strong: #fffdf7;
  --line: #d9d4c8;
  --teal: #0d8f83;
  --teal-dark: #07645d;
  --amber: #d98622;
  --clay: #bb4d3d;
  --green: #5e7d48;
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.site-header nav {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(246, 244, 238, 0.78);
  border: 1px solid rgba(17, 20, 20, 0.1);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 7px 12px;
}

.brand {
  font-weight: 750;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper-strong);
  display: inline-flex;
  font-size: 11px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.site-header nav {
  gap: 4px;
}

.site-header nav a {
  border-radius: 999px;
  color: #2f3835;
  font-size: 14px;
  padding: 8px 12px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(13, 143, 131, 0.12);
  outline: 0;
}

.hero {
  align-items: end;
  background: #111414;
  color: var(--paper-strong);
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 132px clamp(20px, 6vw, 76px) 78px;
  position: relative;
}

#systems-canvas,
.hero-shade {
  inset: 0;
  position: absolute;
}

#systems-canvas {
  height: 100%;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 20, 20, 0.94), rgba(17, 20, 20, 0.7) 42%, rgba(17, 20, 20, 0.14)),
    linear-gradient(0deg, rgba(17, 20, 20, 0.86), rgba(17, 20, 20, 0.1) 48%);
}

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

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

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

h1 {
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 950px;
}

.hero-copy {
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(19px, 2vw, 26px);
  max-width: 720px;
}

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

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

.button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

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

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

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary,
.button.ghost {
  border: 1px solid rgba(255, 253, 247, 0.36);
  color: var(--paper-strong);
}

.button.ghost {
  border-color: rgba(17, 20, 20, 0.18);
  color: var(--ink);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 76px);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.intro-band {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.intro-grid > p {
  font-size: clamp(23px, 3vw, 38px);
  line-height: 1.18;
  margin-bottom: 0;
}

.metrics {
  border-top: 1px solid var(--line);
  margin: 0;
}

.metrics div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 68px 1fr;
  padding: 18px 0;
}

.metrics dt {
  color: var(--clay);
  font-weight: 850;
}

.metrics dd {
  color: #26302c;
  font-weight: 760;
  margin: 0;
}

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

h2 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0;
}

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

.work-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 270px;
  padding: 24px;
}

.card-index {
  color: var(--teal);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 76px;
}

h3 {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 14px;
}

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

.process-section {
  background: #e7e1d4;
}

.process-layout {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(17, 20, 20, 0.1);
  border-radius: var(--radius);
  padding: 20px 20px 20px 76px;
  position: relative;
}

.timeline li::before {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: white;
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  left: 20px;
  position: absolute;
  top: 20px;
  width: 38px;
}

.timeline span {
  display: block;
  font-size: 20px;
  font-weight: 850;
  margin-bottom: 4px;
}

.contact-section {
  background: var(--paper-strong);
}

.contact-layout {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 76px);
}

@media (max-width: 820px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .brand,
  .site-header nav {
    justify-content: center;
    width: 100%;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    min-height: 94vh;
    padding: 154px 20px 54px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 20, 20, 0.94), rgba(17, 20, 20, 0.72)),
      linear-gradient(0deg, rgba(17, 20, 20, 0.86), rgba(17, 20, 20, 0.1) 48%);
  }

  .intro-grid,
  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .work-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 42px;
  }

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

  .button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

