:root {
  --ink-900: #0b0e14;
  --ink-800: #12161f;
  --ink-700: #1b212d;
  --ink-600: #28303f;
  --slate-400: #5b6678;
  --slate-300: #828d9f;
  --slate-200: #adb6c4;
  --slate-100: #d5dae2;
  --paper-0: #ffffff;
  --paper-50: #faf9f6;
  --paper-100: #f2f1eb;
  --paper-200: #e6e4db;
  --signal-700: #1d3cb5;
  --signal-600: #2a4fe0;
  --signal-500: #3a66ff;
  --signal-100: #e6ecff;
  --teal: #0e9c8e;
  --rust: #c2410c;
  --font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-sans);
  line-height: 1.5;
}

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

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

.site-header {
  align-items: center;
  background: rgba(250, 249, 246, 0.82);
  border-bottom: 1px solid rgba(230, 228, 219, 0.82);
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 10;
}

.site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.94);
  box-shadow: 0 12px 30px rgba(11, 14, 20, 0.08);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  height: 32px;
  width: 32px;
}

.brand-wordmark {
  height: 18px;
  width: 124px;
}

.nav-links {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.nav-links a,
.header-cta {
  color: var(--ink-600);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a:hover,
.header-cta:hover {
  color: var(--signal-600);
}

.header-cta {
  border: 1px solid var(--ink-900);
  color: var(--ink-900);
  padding: 10px 14px;
}

.hero {
  background: var(--ink-900);
  color: var(--paper-50);
  min-height: 92vh;
  overflow: hidden;
  padding: 136px max(24px, calc((100vw - var(--max)) / 2)) 34px;
  position: relative;
}

.hero-image,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 14, 20, 0.94) 0%, rgba(11, 14, 20, 0.82) 38%, rgba(11, 14, 20, 0.24) 76%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.54) 0%, rgba(11, 14, 20, 0.08) 42%, rgba(11, 14, 20, 0.82) 100%);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--signal-500);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro h2,
.contact h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 7.2vw, 6.7rem);
  max-width: 800px;
}

.hero-copy {
  color: var(--slate-100);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  margin: 28px 0 0;
  max-width: 650px;
}

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

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--signal-600);
  border-color: var(--signal-600);
  color: var(--paper-0);
}

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

.button-secondary {
  color: var(--paper-0);
}

.button-secondary:hover {
  background: var(--paper-0);
  color: var(--ink-900);
}

.hero-panel {
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.26);
  bottom: 34px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  width: min(720px, calc(100% - 48px));
  z-index: 1;
}

.hero-panel > div {
  background: rgba(11, 14, 20, 0.62);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 112px;
  padding: 18px;
}

.hero-panel > div:last-child {
  border-right: 0;
}

.metric {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.metric-label {
  color: var(--slate-200);
  display: block;
  font-size: 0.82rem;
  line-height: 1.42;
  margin-top: 8px;
}

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

.section-band {
  background: var(--paper-0);
  border-bottom: 1px solid var(--paper-200);
  border-top: 1px solid var(--paper-200);
}

.intro-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.intro h2,
.section-heading h2,
.contact h2 {
  font-size: clamp(2.1rem, 4vw, 4.25rem);
}

.intro p:last-child,
.section-heading p,
.contact-card p {
  color: var(--slate-400);
  font-size: 1.06rem;
  line-height: 1.7;
  margin: 0;
}

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

.work-grid {
  border-top: 1px solid var(--ink-900);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
}

.work-grid article {
  border-right: 1px solid var(--paper-200);
  min-height: 320px;
  padding: 26px 28px 34px 0;
}

.work-grid article + article {
  padding-left: 28px;
}

.work-grid article:last-child {
  border-right: 0;
}

.work-index {
  color: var(--signal-600);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 80px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

.work-grid p,
.service-row p,
.process-grid p {
  color: var(--slate-400);
  line-height: 1.65;
  margin: 14px 0 0;
}

.services-layout {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.sticky-heading {
  position: sticky;
  top: 108px;
}

.sticky-heading p:last-child {
  margin-top: 22px;
}

.service-list {
  border-top: 1px solid var(--ink-900);
}

.service-row {
  align-items: start;
  border-bottom: 1px solid var(--paper-200);
  display: grid;
  gap: 22px;
  grid-template-columns: 64px 1fr;
  padding: 26px 0;
}

.service-icon {
  align-items: center;
  aspect-ratio: 1;
  background: var(--signal-100);
  color: var(--signal-700);
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  justify-content: center;
}

.process-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.process-grid article {
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  min-height: 260px;
  padding: 24px;
}

.process-grid span {
  align-items: center;
  border: 1px solid var(--ink-900);
  display: inline-flex;
  font-family: var(--font-mono);
  height: 36px;
  justify-content: center;
  margin-bottom: 64px;
  width: 36px;
}

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

.contact-card {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 34px;
}

.contact-card p {
  color: var(--slate-200);
  margin-bottom: 26px;
}

.site-footer {
  background: var(--ink-900);
  color: var(--paper-50);
}

.footer-inner {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: var(--max);
  padding: 28px 24px;
}

.footer-inner img {
  height: 18px;
  width: 124px;
}

.footer-inner p,
.footer-inner a {
  color: var(--slate-200);
  font-size: 0.86rem;
  margin: 0;
}

.footer-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero-panel {
    margin-top: 72px;
    position: relative;
    right: auto;
    width: 100%;
  }

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

  .sticky-heading {
    position: static;
  }

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

  .work-grid article,
  .work-grid article + article {
    border-bottom: 1px solid var(--paper-200);
    border-right: 0;
    min-height: 0;
    padding: 26px 0;
  }

  .work-grid article:last-child {
    border-bottom: 0;
  }

  .work-index,
  .process-grid span {
    margin-bottom: 28px;
  }

  .footer-inner {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 13px 18px;
  }

  .header-cta {
    display: none;
  }

  .brand-wordmark {
    width: 116px;
  }

  .hero {
    padding: 112px 18px 24px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-right: 0;
    min-height: 0;
  }

  .hero-panel > div:last-child {
    border-bottom: 0;
  }

  .section-inner {
    padding: 64px 18px;
  }

  .intro h2,
  .section-heading h2,
  .contact h2 {
    font-size: 2.35rem;
  }

  .service-row {
    grid-template-columns: 48px 1fr;
  }

  .contact-card {
    padding: 26px;
  }
}
