:root {
  --ink: #1f2328;
  --slate: #5a6472;
  --mist: #aab2bd;
  --line: #e6e9ed;
  --accent: #ff7a00;
  --paper: #fbfcfd;
  --white: #ffffff;
  --focus: #ff7a00;
  --shadow: 0 24px 70px rgba(31, 35, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(230, 233, 237, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(230, 233, 237, 0.45) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.22;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(230, 233, 237, 0.88);
  background: rgba(251, 252, 253, 0.94);
  backdrop-filter: blur(18px);
}

.header-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 54px;
  height: 44px;
  display: inline-grid;
  align-items: center;
  justify-items: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.brand-mark img {
  width: 38px;
  height: auto;
}

.brand-name {
  display: inline-flex;
  gap: 0.48em;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-accent {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.primary-nav a {
  position: relative;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.hero,
.section,
.contact-section {
  scroll-margin-top: 96px;
}

.hero-shell {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  align-items: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--mist);
}

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

h1 {
  max-width: 730px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: 88px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-accent {
  color: var(--accent);
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 43px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.no-widow {
  white-space: nowrap;
}

h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 20px;
  color: var(--slate);
  font-size: 22px;
  line-height: 1.45;
}

.brand-promise {
  margin-bottom: 34px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

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

.button-primary:hover {
  background: #000000;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  background: var(--line);
}

.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero-identity {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

.system-map {
  width: 100%;
  height: auto;
  color: var(--ink);
  overflow: visible;
}

.map-rule,
.map-connector {
  fill: none;
  stroke: var(--line);
  stroke-linecap: square;
  stroke-linejoin: round;
}

.map-rule {
  stroke-width: 2;
}

.map-connector {
  stroke-width: 2.5;
}

.accent-stroke {
  stroke: var(--accent) !important;
}

.map-icon,
.map-monogram {
  display: inline;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.services-section {
  padding-bottom: 72px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-heading > p:last-child {
  max-width: 760px;
  margin-top: 22px;
  margin-bottom: 0;
  color: var(--slate);
  font-size: 19px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 330px;
  padding: 34px 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.service-item p {
  margin-bottom: 0;
  color: var(--slate);
}

.service-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 38px;
  color: var(--ink);
}

.service-icon svg,
.service-icon img {
  width: 100%;
  height: 100%;
}

.service-icon img {
  object-fit: contain;
}

.service-icon rect,
.service-icon path,
.service-icon circle,
.service-icon line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.8;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.service-icon .accent-stroke {
  stroke: var(--accent);
}

.service-icon .accent-fill {
  fill: none;
  stroke: var(--accent);
}

.experience-section {
  padding-top: 72px;
  background: var(--white);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 76px;
  margin-bottom: 52px;
}

.experience-copy {
  color: var(--slate);
  font-size: 20px;
}

.experience-copy p:last-child {
  margin-bottom: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.proof-point {
  padding: 28px 30px 8px 0;
  border-right: 1px solid var(--line);
}

.proof-point:last-child {
  border-right: 0;
}

.proof-point span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.proof-point strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.proof-point p {
  margin-bottom: 0;
  color: var(--slate);
}

.client-list {
  columns: 3;
  column-gap: 50px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  color: var(--slate);
  list-style: none;
}

.client-list li {
  break-inside: avoid;
  margin-bottom: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(170, 178, 189, 0.34);
  font-weight: 500;
}

.contact-section {
  padding: 88px 0;
  background: var(--ink);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 76px;
  align-items: start;
}

.contact-section h2 {
  color: var(--white);
}

.contact-copy {
  color: var(--line);
  font-size: 20px;
}

.contact-copy p {
  max-width: 600px;
  margin-bottom: 28px;
}

.contact-copy .button {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: var(--line);
  border-top: 1px solid rgba(230, 233, 237, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(280px, 1.4fr);
  gap: 28px;
  align-items: center;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  color: var(--white);
}

.brand-line,
.legal {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
}

.brand-line {
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.brand-line::first-letter {
  color: var(--white);
}

.legal {
  text-align: right;
}

@media (max-width: 1060px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-identity {
    max-width: 620px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    padding-left: 0;
  }

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

  .service-item {
    min-height: 310px;
  }
}

@media (max-width: 840px) {
  .hero,
  .section,
  .contact-section {
    scroll-margin-top: 122px;
  }

  .header-shell {
    min-height: 92px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede,
  .experience-copy,
  .contact-copy {
    font-size: 18px;
  }

  .experience-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .proof-point {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-point:last-child {
    border-bottom: 0;
  }

  .client-list {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 38px;
    padding-top: 24px;
  }

  .client-list li {
    margin-bottom: 0;
    padding: 12px 0;
  }

  .legal {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0 22px;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: 0.14em;
  }

  .brand-mark {
    width: 50px;
    height: 40px;
    font-size: 18px;
  }

  .brand-mark img {
    width: 35px;
  }

  .primary-nav {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 13px;
  }

  .hero-shell {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 50px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 30px;
  }

  .no-widow {
    white-space: normal;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .button {
    width: 100%;
  }

  .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .section,
  .contact-section {
    padding: 64px 0;
  }

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

  .services-section {
    padding-bottom: 56px;
  }

  .experience-section {
    padding-top: 56px;
  }

  .experience-grid {
    margin-bottom: 44px;
  }

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

  .service-item {
    min-height: 0;
    padding: 28px 24px 30px;
  }

  .service-icon {
    margin-bottom: 30px;
  }

  .client-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}

@media (max-width: 360px) {
  .primary-nav {
    gap: 10px;
  }

  .primary-nav a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
