/* Reference direction: warm architectural minimalism with blueprint graphics. */
:root {
  --ink: #151716;
  --ink-soft: #333633;
  --navy: #191c1b;
  --paper: #f3f0e9;
  --surface: #fbfaf6;
  --surface-2: #ece8df;
  --muted: #686d68;
  --line: rgba(24, 27, 25, 0.14);
  --line-strong: rgba(24, 27, 25, 0.24);
  --accent: #9a7650;
  --accent-strong: #785638;
  --blue: #151716;
  --danger: #a83228;
  --success: #31694a;
  --font-display: "Manrope", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 10px 24px rgba(38, 34, 28, 0.08);
  --shadow-md: 0 18px 44px rgba(38, 34, 28, 0.12);
  --shadow-lg: 0 30px 80px rgba(38, 34, 28, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --frame: min(calc(100% - 24px), 1540px);
  --shell: min(calc(100% - 48px), 1400px);
}

html {
  background: #e9e5dd;
  scroll-padding-top: 92px;
}

body {
  background:
    radial-gradient(circle at 8% 13%, rgba(255, 255, 255, 0.96), transparent 29%),
    radial-gradient(circle at 88% 32%, rgba(255, 255, 255, 0.72), transparent 28%),
    #e9e5dd;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(32, 34, 32, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 34, 32, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  max-width: none;
}

.utility-bar {
  display: none;
}

.skip-link {
  background: var(--ink);
  color: #fff;
}

.site-header,
.hero,
.metrics,
.section,
.contact,
.site-footer {
  width: var(--frame);
  margin-inline: auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 100;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(251, 250, 246, 0.92);
  box-shadow: 0 6px 20px rgba(38, 34, 28, 0.06);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.97);
  box-shadow: 0 10px 30px rgba(38, 34, 28, 0.1);
}

.site-header__inner {
  min-height: 82px;
  gap: 30px;
}

.brand {
  min-width: 218px;
  gap: 13px;
  color: var(--ink);
}

.brand__seal {
  width: 60px;
  height: 60px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__text {
  display: grid;
  align-content: center;
  gap: 1px;
}

.brand__text strong,
.brand__text small {
  color: inherit;
  font-family: var(--font-body);
  line-height: 1.16;
}

.brand__text strong {
  font-size: 10px;
  font-weight: 800;
}

.brand__text small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.main-nav {
  margin-left: auto;
  gap: clamp(15px, 2vw, 32px);
}

.main-nav a {
  min-height: 44px;
  padding-inline: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.main-nav a::after {
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--ink);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.menu-toggle {
  border-radius: 4px;
}

.button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(21, 23, 22, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease;
}

.button:hover {
  background: #2a2d2b;
  box-shadow: 0 10px 24px rgba(21, 23, 22, 0.17);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--compact {
  min-height: 44px;
  padding-inline: 17px;
  white-space: nowrap;
}

.button--ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.button--light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.button--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.9), transparent 31%),
    linear-gradient(135deg, #f8f6f0, #eee9df);
  color: var(--ink);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(73, 68, 58, 0.12), transparent 70%);
  filter: blur(14px);
  content: "";
  pointer-events: none;
}

.hero__media {
  inset: 0 -1% 0 18%;
  overflow: hidden;
  background: url("/assets/hero-bridge-v1.webp") right center / contain no-repeat;
  opacity: 0.98;
  transform: none;
}

.hero__media.has-video {
  background-image: none;
}

.hero__video {
  position: absolute;
  top: 8%;
  right: 0;
  width: 76%;
  height: 84%;
  object-fit: contain;
  object-position: right center;
  opacity: 0;
  filter: contrast(1.03);
  mix-blend-mode: multiply;
  transition: opacity 420ms ease;
}

.hero__video.is-ready {
  opacity: 0.98;
}

.hero__scrim {
  background:
    linear-gradient(90deg, rgba(248, 246, 240, 1) 0%, rgba(248, 246, 240, 0.98) 31%, rgba(248, 246, 240, 0.72) 50%, rgba(248, 246, 240, 0.08) 72%),
    linear-gradient(0deg, rgba(238, 233, 223, 0.5), transparent 44%);
}

.hero__inner {
  min-height: 650px;
  display: block;
  padding-block: 96px 126px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.hero .eyebrow--light,
.contact .eyebrow--light {
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 640px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 5.1vw, 70px);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 520px;
  margin-top: 27px;
  color: #343835;
  font-size: 15px;
  line-height: 1.72;
}

.hero__actions {
  gap: 10px;
  margin-top: 34px;
}

.hero__proof,
.hero-card {
  display: none;
}

.metrics {
  z-index: 4;
  margin-top: -72px;
  padding-bottom: 28px;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
}

.metrics__grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.metric {
  min-height: 116px;
  padding: 23px 32px;
  border-color: var(--line);
}

.metric strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.metric span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.section {
  padding-block: 72px;
  background: var(--paper);
}

.section--services {
  padding-top: 48px;
}

.section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.section-heading--compact {
  margin-bottom: 30px;
}

.section-heading h2,
.process h2,
.trust h2,
.contact h2 {
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.047em;
  overflow-wrap: anywhere;
}

.section-heading > p {
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.service-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.service-card,
.service-card--featured,
.service-card--dark {
  min-width: 0;
  min-height: 260px;
  grid-column: auto;
  padding: 20px 18px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(rgba(251, 250, 246, 0.92), rgba(251, 250, 246, 0.92)),
    linear-gradient(rgba(30, 31, 29, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 31, 29, 0.04) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
  box-shadow: 0 8px 22px rgba(38, 34, 28, 0.07);
  color: var(--ink);
}

.service-card:hover,
.service-card--featured:hover,
.service-card--dark:hover {
  border-color: var(--line-strong);
  box-shadow: 0 13px 30px rgba(38, 34, 28, 0.12);
  transform: translateY(-3px);
}

.service-card {
  --sprite-x: 0%;
  --sprite-y: 0%;
}

.service-card__top {
  position: relative;
  min-height: 112px;
}

.service-card__top::after {
  position: absolute;
  top: -13px;
  right: -7px;
  width: clamp(132px, 10.8vw, 160px);
  aspect-ratio: 1;
  background-image: url("/assets/solutions-sprite-v1.webp");
  background-repeat: no-repeat;
  background-position: var(--sprite-x) var(--sprite-y);
  background-size: 300% 200%;
  mix-blend-mode: multiply;
  content: "";
  pointer-events: none;
}

#injectirovanie {
  --sprite-x: 0%;
  --sprite-y: 0%;
}

#usilenie-konstruktsij {
  --sprite-x: 50%;
  --sprite-y: 0%;
}

#obsledobanie-zdaniy {
  --sprite-x: 100%;
  --sprite-y: 0%;
}

#proektirovanie {
  --sprite-x: 0%;
  --sprite-y: 100%;
}

#torkretirovanie {
  --sprite-x: 50%;
  --sprite-y: 100%;
}

#postavka-materialov {
  --sprite-x: 100%;
  --sprite-y: 100%;
}

.service-card__number {
  color: #8b8a84;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.service-card svg,
.service-card--dark svg {
  display: none;
}

.service-card h3 {
  max-width: 100%;
  margin: 12px 0 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.service-card p,
.service-card--dark p {
  max-width: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.service-card details {
  margin-top: auto;
  padding-top: 14px;
}

.service-card summary {
  min-height: 38px;
  gap: 8px;
  border-color: var(--line);
  color: var(--ink);
  font-size: 10px;
}

.service-card summary span {
  font-size: 18px;
}

.service-card ul {
  grid-template-columns: 1fr;
  gap: 5px;
  font-size: 10px;
}

.service-card .text-link,
.service-card--dark .text-link {
  margin-top: auto;
  padding-top: 14px;
  color: var(--ink);
  font-size: 10px;
}

.text-link {
  color: var(--ink);
  font-size: 11px;
}

.process {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding-block: 72px 44px;
  overflow: hidden;
  background: #f8f5ef;
  color: var(--ink);
}

.process__art {
  position: absolute;
  top: -8px;
  right: -2%;
  z-index: 0;
  width: min(77%, 1100px);
  height: 500px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 17%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 17%, #000 38%, #000 100%);
}

.process__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
  opacity: 0.98;
  mix-blend-mode: multiply;
}

.process__grid {
  position: relative;
  z-index: 1;
  display: block;
}

.process__intro {
  position: relative;
  display: block;
  width: min(43%, 500px);
  min-height: 390px;
}

.process__intro .eyebrow {
  margin-bottom: 18px;
  color: var(--accent-strong);
}

.process h2 {
  max-width: 500px;
  color: var(--ink);
  font-size: clamp(36px, 3.4vw, 48px);
}

.process__intro > p:not(.eyebrow) {
  max-width: 430px;
  margin: 19px 0 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: #1a1d1c;
  box-shadow: var(--shadow-lg);
}

.process-list li {
  min-height: 132px;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 25px 22px;
  border-top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.process-list li:last-child {
  border-right: 0;
  border-bottom: 0;
}

.process-list > li > span {
  color: #bea381;
  font-size: 10px;
}

.process-list h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}

.process-list p {
  color: #aeb2ad;
  font-size: 11px;
  line-height: 1.55;
}

.projects {
  background: var(--surface);
}

.project-filter {
  gap: 6px;
  margin-bottom: 24px;
}

.chip {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

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

.project-card,
.project-card--wide {
  min-width: 0;
  min-height: 0;
  grid-column: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(38, 34, 28, 0.07);
}

.project-card img {
  height: 215px;
  filter: saturate(0.75) contrast(1.02);
}

.project-card__body {
  padding: 15px 16px 17px;
}

.project-card__body span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.project-card__body h3 {
  margin: 7px 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.project-card__body p {
  color: var(--muted);
  font-size: 11px;
}

.trust {
  overflow: hidden;
  background: var(--paper);
}

.trust__grid {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(45px, 6vw, 90px);
}

.trust h2 {
  max-width: 520px;
  font-size: clamp(30px, 3.1vw, 44px);
}

.trust__content > p:not(.eyebrow) {
  margin: 22px 0 25px;
  color: var(--muted);
  font-size: 12px;
}

.trust__actions {
  gap: 10px;
}

.document-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  perspective: none;
}

.document-stack article,
.document-stack article:nth-child(n) {
  min-height: 112px;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 18px;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(38, 34, 28, 0.07);
  transform: none;
}

.document-stack article > span {
  color: var(--accent-strong);
  font-size: 10px;
}

.document-stack strong {
  font-size: 12px;
}

.document-stack small {
  color: var(--muted);
  font-size: 11px;
}

.partners {
  padding-block: 60px;
  background: var(--surface);
}

.partner-row {
  border-top-color: var(--line);
  border-left-color: var(--line);
}

.partner-row span {
  min-height: 98px;
  border-color: var(--line);
  color: #313431;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.insights {
  background: var(--paper);
}

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

.insight-card,
.insight-card--lead {
  min-height: 390px;
  grid-row: auto;
  overflow: hidden;
  padding: 0;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(38, 34, 28, 0.06);
  color: var(--ink);
}

.insight-card--lead {
  min-height: 430px;
  grid-column: span 2;
}

.insight-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8e4da;
}

.insight-card--lead .insight-card__media {
  aspect-ratio: 16 / 7.25;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.insight-card:hover .insight-card__media img {
  transform: scale(1.035);
}

.insight-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 21px;
}

.insight-card__meta,
.insight-card--lead .insight-card__meta {
  color: var(--accent-strong);
  font-size: 8px;
}

.insight-card--lead .insight-card__meta {
  color: var(--accent-strong);
}

.insight-card h3 {
  margin: 15px 0 9px;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.insight-card--lead h3 {
  font-size: clamp(23px, 2.4vw, 35px);
}

.insight-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.insight-card .text-link {
  margin-top: auto;
  color: inherit;
}

.insights__intro {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.insights__intro > p {
  margin: 0;
}

.insights__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.insights__links a {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.contact {
  padding-block: 72px;
  background:
    linear-gradient(90deg, rgba(243, 240, 233, 0.98), rgba(243, 240, 233, 0.9)),
    url("/assets/hero-blueprint.svg") left center / 62% auto no-repeat;
  color: var(--ink);
}

.contact__grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.72fr);
  gap: clamp(45px, 8vw, 110px);
}

.contact h2 {
  max-width: 590px;
}

.contact__content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 23px 0 31px;
  color: var(--muted);
  font-size: 13px;
}

.contact dl > div {
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-color: var(--line);
}

.contact dt {
  color: var(--muted);
  font-size: 11px;
}

.contact dd {
  color: var(--ink);
  font-size: 12px;
}

.contact-form {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.contact-form__head {
  margin-bottom: 21px;
}

.contact-form__head span {
  color: var(--accent-strong);
  font-size: 9px;
}

.contact-form__head strong {
  font-size: 23px;
}

.contact-form label {
  gap: 6px;
  margin-bottom: 13px;
  font-size: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 46px;
  padding: 11px 12px;
  border-color: var(--line-strong);
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 96px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21, 23, 22, 0.1);
}

.site-footer {
  position: relative;
  margin-bottom: 8px;
  padding-block: 56px 22px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: #181b1a;
  color: #c8cac5;
}

.site-footer::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: min(62%, 850px);
  height: 390px;
  background: url("/assets/hero-blueprint.svg") right bottom / contain no-repeat;
  content: "";
  filter: invert(1) sepia(0.2);
  opacity: 0.11;
  pointer-events: none;
}

.site-footer__grid,
.site-footer__bottom {
  position: relative;
  z-index: 1;
}

.site-footer__grid {
  grid-template-columns: 1.25fr 0.55fr 0.75fr;
  gap: 70px;
}

.brand--footer {
  color: #fff;
}

.brand--footer .brand__seal {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: #111312;
}

.site-footer__grid > div > p {
  max-width: 330px;
  margin-top: 17px;
  color: #91958f;
  font-size: 11px;
}

.site-footer nav,
.site-footer__grid > div:last-child {
  gap: 8px;
  font-size: 11px;
}

.site-footer__bottom {
  margin-top: 48px;
  color: #777c76;
  font-size: 9px;
}

.quote-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.quote-dialog::backdrop {
  background: rgba(16, 18, 17, 0.72);
}

.quote-dialog h2 {
  font-family: var(--font-display);
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 650;
}

.dialog-close {
  background: var(--paper);
}

.reveal {
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

@media (max-width: 1260px) {
  .main-nav {
    gap: 17px;
  }

  .header-cta {
    display: none;
  }

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

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

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

@media (max-width: 980px) {
  :root {
    --shell: min(calc(100% - 36px), 880px);
  }

  .site-header__inner {
    min-height: 74px;
  }

  .brand__seal {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: 83px;
    right: 12px;
    left: 12px;
    z-index: 85;
    display: grid;
    align-content: start;
    max-height: calc(100dvh - 95px);
    padding: 14px 20px 24px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: rgba(251, 250, 246, 0.98);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav a {
    min-height: 50px;
    border-color: var(--line);
    font-size: 13px;
  }

  .main-nav a::after {
    display: none;
  }

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

  .hero,
  .hero__inner {
    min-height: 600px;
  }

  .hero__media {
    inset: 10% -12% 0 18%;
    opacity: 0.78;
  }

  .hero__video {
    top: 10%;
    width: 88%;
    height: 80%;
  }

  .hero__scrim {
    background: linear-gradient(90deg, rgba(248, 246, 240, 1) 0%, rgba(248, 246, 240, 0.96) 44%, rgba(248, 246, 240, 0.25) 82%);
  }

  .hero__inner {
    padding-block: 80px 120px;
  }

  .hero__content {
    max-width: 560px;
  }

  .metrics {
    margin-top: -63px;
  }

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

  .metric:nth-child(n) {
    border-top: 0;
    border-right: 0;
  }

  .metric:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-heading,
  .trust__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading > p {
    max-width: 650px;
  }

  .process__intro {
    width: min(57%, 490px);
    min-height: 400px;
  }

  .process__intro .eyebrow {
    margin-bottom: 18px;
  }

  .process__intro .button {
    justify-self: start;
  }

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

  .process-list li:nth-child(2) {
    border-right: 0;
  }

  .process-list li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .process__art {
    top: 18px;
    right: -12%;
    width: 92%;
    height: 430px;
  }

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

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

  .contact-form {
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  :root {
    --frame: calc(100% - 8px);
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 80px;
  }

  .site-header {
    top: 4px;
    margin-top: 4px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand__seal {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }

  .brand__text strong,
  .brand__text small {
    font-size: 8px;
  }

  .main-nav {
    top: 73px;
    right: 4px;
    left: 4px;
    max-height: calc(100dvh - 81px);
  }

  .hero,
  .hero__inner {
    min-height: 660px;
  }

  .hero__media {
    inset: 30% -30% 0 -22%;
    background-size: 180% auto;
    background-position: right bottom;
    opacity: 0.46;
  }

  .hero__media.has-video {
    background-image: url("/assets/hero-bridge-v1.webp");
  }

  .hero__video {
    display: none;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(248, 246, 240, 1) 0%, rgba(248, 246, 240, 0.97) 45%, rgba(248, 246, 240, 0.58) 70%, rgba(248, 246, 240, 0.34) 100%);
  }

  .hero__inner {
    padding-block: 70px 120px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 11.2vw, 51px);
  }

  .hero__lead {
    font-size: 14px;
  }

  .hero__actions {
    display: grid;
    max-width: 100%;
  }

  .hero__actions .button {
    width: 100%;
  }

  .metrics {
    margin-top: -74px;
    padding-bottom: 18px;
  }

  .metric {
    min-height: 102px;
    padding: 18px 16px;
  }

  .metric strong {
    font-size: 24px;
  }

  .metric span {
    font-size: 9px;
  }

  .section,
  .contact {
    padding-block: 56px;
  }

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

  .section-heading h2,
  .trust h2,
  .contact h2 {
    font-size: clamp(29px, 9vw, 40px);
  }

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

  .service-card,
  .service-card--featured,
  .service-card--dark {
    min-height: 250px;
    padding: 20px;
  }

  .service-card svg,
  .service-card--dark svg {
    width: 76px;
    height: 76px;
  }

  .service-card__top {
    min-height: 126px;
  }

  .service-card__top::after {
    top: -17px;
    right: -4px;
    width: 158px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .process__intro {
    width: 100%;
    min-height: 520px;
  }

  .process__intro .eyebrow {
    margin-bottom: 18px;
  }

  .process__art {
    top: 205px;
    right: -41%;
    width: 138%;
    height: 390px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 12%, #000 31%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 12%, #000 31%, #000 100%);
  }

  .process__art img {
    opacity: 0.76;
  }

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

  .process-list li:nth-child(n) {
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-right: 0;
  }

  .project-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 230px;
  }

  .insight-card--lead {
    grid-column: auto;
  }

  .insight-card,
  .insight-card--lead {
    min-height: 0;
  }

  .insight-card--lead .insight-card__media,
  .insight-card__media {
    aspect-ratio: 16 / 10;
  }

  .document-stack {
    grid-template-columns: 1fr;
  }

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

  .partner-row span {
    min-height: 80px;
  }

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

  .contact dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .contact-form {
    padding: 21px 17px;
  }

  .site-footer {
    margin-bottom: 4px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .quote-dialog {
    padding: 43px 21px 24px;
  }
}

@media (max-width: 374px) {
  .brand__text {
    display: none;
  }

  .partner-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .project-card,
  .insight-card,
  .button {
    transform: none !important;
  }
}
