:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --bg-soft: #fffaf3;
  --paper: #ffffff;
  --text: #171410;
  --muted: #6f675d;
  --line: rgba(23, 20, 16, 0.14);
  --line-strong: rgba(23, 20, 16, 0.24);
  --gold: #d4a769;
  --gold-strong: #b98443;
  --gold-soft: #f2d39d;
  --accent: #b98443;
  --accent-deep: #735126;
  --accent-glow: rgba(212, 167, 105, 0.16);
  --graphite: #191919;
  --graphite-soft: #2b2b2b;
  --milk: #fff8ef;
  --sage: #1f8f72;
  --shadow: 0 34px 90px rgba(90, 70, 42, 0.16);
  --studio-shadow: 0 26px 80px rgba(25, 25, 25, 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-studio: "Manrope", Arial, Helvetica, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.08) 54%, transparent 100%);
  animation: gridDrift 38s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.52) 31%, transparent 47% 100%),
    linear-gradient(64deg, transparent 0 36%, rgba(212, 167, 105, 0.2) 48%, transparent 60% 100%),
    linear-gradient(158deg, transparent 0 52%, rgba(31, 143, 114, 0.08) 62%, transparent 76% 100%);
  background-size: 230% 230%, 190% 190%, 210% 210%;
  background-position: 0% 44%, 100% 18%, 20% 80%;
  opacity: 0.92;
  transform: translate3d(-4%, -1%, 0) scale(1.08);
  animation: ambientSweep 16s var(--ease-soft) infinite alternate;
}

body > * {
  position: relative;
  z-index: 1;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  min-height: 100svh;
  padding: 24px;
  background:
    radial-gradient(ellipse at 48% 44%, rgba(212, 167, 105, 0.2), transparent 22rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.74), transparent 34%, rgba(242, 211, 157, 0.18) 58%, transparent 82%),
    linear-gradient(135deg, var(--bg-soft), var(--bg));
  opacity: 1;
  visibility: visible;
  transition: opacity 620ms var(--ease-soft), visibility 620ms var(--ease-soft);
}

.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 20, 16, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 16, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.22), transparent 64%);
  animation: gridDrift 18s linear infinite;
}

.preloader::after {
  content: "";
  position: absolute;
  width: min(62vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent, rgba(212, 167, 105, 0.22), transparent 42%);
  filter: blur(18px);
  animation: preloadAura 3.2s var(--ease-soft) infinite alternate;
}

.preloader-mark,
.preloader-line,
.preloader span {
  position: relative;
  z-index: 1;
}

.preloader-mark {
  display: grid;
  place-items: center;
  width: clamp(116px, 14vw, 190px);
  animation: preloadLogo 1.9s var(--ease-soft) infinite alternate;
}

.preloader-mark img {
  width: 100%;
  height: auto;
}

.preloader-line {
  overflow: hidden;
  width: min(340px, 72vw);
  height: 1px;
  background: rgba(23, 20, 16, 0.12);
}

.preloader-line::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: preloadLine 1.35s var(--ease-soft) infinite;
}

.preloader span {
  color: var(--accent);
  font-family: var(--font-studio);
  font-size: clamp(0.72rem, 1.2vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.is-zoomable {
  cursor: zoom-in;
}

.is-zoomable:focus-visible {
  outline: 2px solid rgba(185, 132, 67, 0.72);
  outline-offset: 5px;
}

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

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.section-band {
  width: min(100% - clamp(32px, 7vw, 128px), 1480px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  width: min(100% - clamp(32px, 7vw, 128px), 1480px);
  margin: 0 auto;
  padding: 26px 0 18px;
  background: rgba(247, 243, 236, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 20, 16, 0.08);
  transition: width 220ms var(--ease-out), padding 220ms var(--ease-out), background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  width: min(100% - clamp(24px, 5vw, 96px), 1440px);
  padding: 14px clamp(14px, 2vw, 24px);
  border-color: rgba(185, 132, 67, 0.18);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 54px rgba(90, 70, 42, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: clamp(72px, 5.4vw, 92px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 220ms var(--ease-out), background-position 420ms var(--ease-out);
}

.footer .brand-logo {
  width: clamp(64px, 4.8vw, 76px);
}

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

.brand-caption {
  border-left: 1px solid var(--line-strong);
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.main-nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  padding: 5px;
  border: 1px solid rgba(25, 25, 25, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 14px 38px rgba(90, 70, 42, 0.07);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
}

.main-nav a.is-active,
.main-nav a:hover {
  background: rgba(212, 167, 105, 0.14);
  color: var(--text);
}

.main-nav a,
.header-cta,
.primary-cta,
.text-cta,
.secondary-cta,
.wide-cta,
.service-grid a,
.footer a {
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.footer a:hover,
.messengers a:hover {
  color: var(--accent);
}

.header-contact {
  display: grid;
  justify-items: end;
  gap: 5px;
  white-space: nowrap;
}

.phone-link {
  font-weight: 700;
}

.messengers {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.header-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 10px 0 19px;
  border: 1px solid rgba(185, 132, 67, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 244, 222, 0.88), rgba(212, 167, 105, 0.88)),
    var(--gold-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 16px 36px rgba(185, 132, 67, 0.16);
  font-family: var(--font-studio);
  font-weight: 720;
  font-size: 0.86rem;
}

.header-cta:hover {
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(185, 132, 67, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  grid-template-areas:
    "media copy"
    "stats stats";
  align-items: center;
  column-gap: clamp(34px, 5vw, 86px);
  row-gap: clamp(24px, 3vw, 42px);
  min-height: calc(100svh - 96px);
  padding: clamp(46px, 6vw, 88px) 0 20px;
}

.hero-media {
  grid-area: media;
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% 10% -6% -8%;
  z-index: -1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.15;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 58%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%);
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  grid-area: copy;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold-strong);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(4.4rem, 8vw, 8.8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  grid-template-columns: max-content minmax(0, 280px);
  align-items: center;
  gap: 18px 22px;
  margin-top: 34px;
}

.primary-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 13px 0 30px;
  border: 1px solid rgba(185, 132, 67, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 244, 222, 0.88), rgba(212, 167, 105, 0.88)),
    var(--gold-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -10px 24px rgba(115, 81, 38, 0.12),
    0 20px 52px rgba(185, 132, 67, 0.22);
  color: var(--text);
  font-family: var(--font-studio);
  font-weight: 720;
  letter-spacing: 0;
}

.primary-cta::before,
.text-cta::before,
.secondary-cta::before,
.wide-cta::before,
.service-grid a::before,
.header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 44%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 520ms var(--ease-out);
}

.service-grid a::after,
.header-cta::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  border: 1px solid rgba(115, 81, 38, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 180ms ease, background-color 180ms ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(185, 132, 67, 0.24);
}

.primary-cta:hover::before,
.text-cta:hover::before,
.secondary-cta:hover::before,
.wide-cta:hover::before,
.service-grid a:hover::before,
.header-cta:hover::before {
  transform: translateX(120%);
}

.service-grid a:hover::after,
.header-cta:hover::after {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.54);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(185, 132, 67, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 34px rgba(90, 70, 42, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  grid-area: 1 / 1;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 220ms var(--ease-out);
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.site-header.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(25, 25, 25, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, #fffaf4, #f6efe5),
    linear-gradient(110deg, rgba(212, 167, 105, 0.12), transparent);
  box-shadow: 0 28px 84px rgba(90, 70, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.site-header.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
}

.mobile-menu nav a,
.mobile-contact,
.mobile-cta {
  border: 1px solid rgba(25, 25, 25, 0.1);
  border-radius: var(--radius-sm);
  background: #fffdf9;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--graphite);
  font-weight: 600;
}

.mobile-menu nav a.is-active {
  background: #f3e6d3;
}

.mobile-contact {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.mobile-phone {
  font-family: var(--font-studio);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}

.mobile-contact div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mobile-contact div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(25, 25, 25, 0.12);
  border-radius: 999px;
  background: #fffaf4;
  box-shadow: 0 10px 24px rgba(90, 70, 42, 0.08);
}

.mobile-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 12px 0 24px;
  border: 1px solid rgba(185, 132, 67, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 244, 222, 0.88), rgba(212, 167, 105, 0.88)),
    var(--gold-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 42px rgba(185, 132, 67, 0.16);
  font-family: var(--font-studio);
  font-weight: 720;
}

.mobile-cta span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(115, 81, 38, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.primary-cta:active {
  transform: translateY(0) scale(0.985);
}

.primary-cta span,
.text-cta span,
.secondary-cta span,
.wide-cta span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(115, 81, 38, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 180ms ease, background-color 180ms ease;
}

.primary-cta:hover span,
.text-cta:hover span,
.secondary-cta:hover span,
.wide-cta:hover span {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.55);
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.proof-row {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.proof-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.proof-item strong {
  color: var(--text);
}

.line-icon {
  display: inline-grid;
  place-items: center;
  color: var(--gold);
}

.line-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 1180px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.stat {
  display: grid;
  grid-template-columns: 48px auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 18px clamp(14px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat .line-icon {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
}

.stat strong {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 0.95;
}

.stat span:last-child {
  color: var(--muted);
}

.page-section {
  width: min(100% - clamp(32px, 7vw, 128px), 1320px);
  margin: 0 auto;
  padding: clamp(112px, 12vw, 188px) 0 0;
  scroll-margin-top: 112px;
  font-family: var(--font-studio);
}

.section-kicker {
  display: grid;
  grid-template-columns: max-content minmax(40px, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(26px, 3.5vw, 46px);
  color: var(--accent);
  font-family: var(--font-studio);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 132, 67, 0.62), rgba(185, 132, 67, 0.1), transparent);
  transform-origin: left center;
}

.section-intro {
  display: grid;
  gap: clamp(18px, 2.2vw, 30px);
}

.section-intro h2,
.request-copy h2 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.35vw, 4.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-intro p,
.request-copy p,
.benefit-conclusion p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.benefits-shell,
.capabilities-grid,
.services,
.cases,
.request,
.footer-inner {
  position: relative;
}

.capabilities,
.cases,
.request {
  position: relative;
  isolation: isolate;
}

.capabilities::before,
.cases::before,
.request::before {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.capabilities::before {
  z-index: -2;
  top: clamp(56px, 6vw, 94px);
  bottom: clamp(-92px, -5vw, -54px);
  background:
    radial-gradient(ellipse at 22% 18%, rgba(212, 167, 105, 0.2), transparent 30rem),
    radial-gradient(ellipse at 86% 78%, rgba(115, 81, 38, 0.22), transparent 26rem),
    linear-gradient(132deg, #1a1514 0%, #231917 50%, #2f211f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}

.capabilities::after {
  content: "AER";
  position: absolute;
  right: max(clamp(18px, 6vw, 96px), calc((100vw - 1480px) / 2 + 18px));
  bottom: clamp(-74px, -4.2vw, -34px);
  z-index: -1;
  color: rgba(242, 211, 157, 0.07);
  font-family: var(--font-studio);
  font-size: clamp(7.5rem, 17vw, 19rem);
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 0.72;
  pointer-events: none;
  text-shadow:
    0 0 70px rgba(242, 211, 157, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.22);
}

.cases::before {
  top: clamp(76px, 7vw, 116px);
  bottom: clamp(-76px, -4vw, -44px);
  background:
    radial-gradient(ellipse at 18% 26%, rgba(212, 167, 105, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(255, 250, 243, 0.28), rgba(255, 246, 232, 0.72));
  border-top: 1px solid rgba(185, 132, 67, 0.13);
  border-bottom: 1px solid rgba(185, 132, 67, 0.11);
}

.request::before {
  top: clamp(78px, 7vw, 122px);
  bottom: -34px;
  background:
    radial-gradient(ellipse at 74% 22%, rgba(212, 167, 105, 0.2), transparent 24rem),
    radial-gradient(ellipse at 18% 88%, rgba(31, 143, 114, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 248, 239, 0.74));
  border-top: 1px solid rgba(185, 132, 67, 0.12);
}

.capabilities {
  color: var(--milk);
}

.capabilities .section-kicker,
.capabilities .section-intro h2 {
  color: var(--milk);
}

.capabilities .section-intro h2 {
  max-width: 940px;
  font-size: clamp(2.35rem, 3.9vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.capabilities .section-intro {
  gap: clamp(14px, 1.6vw, 22px);
}

.capabilities .section-kicker {
  color: rgba(242, 211, 157, 0.88);
}

.capabilities .section-kicker::after {
  background: linear-gradient(90deg, rgba(242, 211, 157, 0.5), rgba(242, 211, 157, 0.08), transparent);
}

.benefits-shell {
  padding-top: clamp(18px, 2.4vw, 32px);
}

.visibility-lab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(280px, 1fr) minmax(190px, 0.72fr);
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  margin-top: clamp(34px, 5vw, 64px);
}

.problem-connector {
  position: absolute;
  z-index: 2;
  width: clamp(38px, 4.2vw, 58px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(185, 132, 67, 0), rgba(185, 132, 67, 0.7));
  box-shadow: 0 0 14px rgba(212, 167, 105, 0.18);
  pointer-events: none;
}

.problem-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(185, 132, 67, 0.78);
  filter: drop-shadow(0 0 7px rgba(212, 167, 105, 0.42));
  transform: translateY(-50%);
}

.connector-left {
  left: calc(27.6% - 2px);
  transform-origin: right center;
}

.connector-left.connector-top {
  top: 21.5%;
  transform: rotate(-5deg);
}

.connector-left.connector-middle {
  top: 53.8%;
  transform: rotate(-1deg);
}

.connector-left.connector-bottom {
  top: 81.2%;
  transform: rotate(5deg);
}

.connector-right {
  left: calc(69.1% + 1px);
  background: linear-gradient(90deg, rgba(185, 132, 67, 0.7), rgba(185, 132, 67, 0));
  transform-origin: left center;
}

.connector-right::after {
  right: auto;
  left: -4px;
}

.connector-right.connector-top {
  top: 34.3%;
  transform: rotate(-2deg);
}

.connector-right.connector-middle {
  top: 62.8%;
  transform: rotate(2deg);
}

.problem-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.problem-stack article,
.check-panel,
.service-grid article,
.case-rail article,
.lead-form {
  border: 1px solid rgba(25, 25, 25, 0.11);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px);
}

.problem-stack article {
  padding: 22px 24px;
  color: var(--graphite-soft);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  line-height: 1.08;
  box-shadow: 0 18px 44px rgba(90, 70, 42, 0.07);
}

.sign-placeholder,
.mini-placeholder,
.case-placeholder {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(25, 25, 25, 0.22);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 70% 28%, rgba(212, 167, 105, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 235, 221, 0.64)),
    repeating-linear-gradient(90deg, rgba(25, 25, 25, 0.035) 0 1px, transparent 1px 72px);
}

.case-placeholder::before,
.case-placeholder::after,
.service-photo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.case-placeholder::before {
  inset: 18% 13%;
  border: 1px solid rgba(185, 132, 67, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(212, 167, 105, 0.13)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), transparent);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.72),
    0 26px 58px rgba(90, 70, 42, 0.1);
}

.case-placeholder::after {
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(212, 167, 105, 0.16), transparent);
  transform: translateX(-100%);
  animation: placeholderSweep 7s var(--ease-soft) infinite;
}

.sign-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.sign-placeholder span {
  position: relative;
  z-index: 1;
  color: rgba(25, 25, 25, 0.54);
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.bad-sign {
  position: relative;
  z-index: 1;
  min-height: clamp(280px, 25vw, 420px);
  padding: clamp(8px, 1vw, 14px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 239, 0.48)),
    rgba(255, 255, 255, 0.36);
}

.bad-sign img {
  width: 100%;
  height: 100%;
  max-height: clamp(260px, 24vw, 392px);
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-md) - 2px);
  box-shadow: 0 22px 62px rgba(25, 25, 25, 0.1);
}

.benefit-conclusion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: clamp(34px, 5vw, 64px);
}

.text-cta,
.secondary-cta,
.wide-cta,
.service-grid a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  width: fit-content;
  padding: 0 13px 0 30px;
  border: 1px solid rgba(185, 132, 67, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 244, 222, 0.88), rgba(212, 167, 105, 0.88)),
    var(--gold-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 18px 48px rgba(185, 132, 67, 0.16);
  color: var(--text);
  font-family: var(--font-studio);
  font-weight: 720;
  letter-spacing: 0;
}

.text-cta:hover,
.secondary-cta:hover,
.wide-cta:hover,
.service-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(185, 132, 67, 0.22);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(18px, 2.4vw, 32px);
}

.capabilities-grid .section-intro {
  grid-column: 1 / -1;
  max-width: 1080px;
}

.tall-placeholder {
  min-height: 500px;
  box-shadow: 0 30px 90px rgba(90, 70, 42, 0.11);
}

.capability-photo {
  padding: clamp(8px, 1vw, 14px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 239, 0.48)),
    rgba(255, 255, 255, 0.36);
}

.capabilities .capability-photo {
  border-color: rgba(255, 248, 239, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.14), rgba(212, 167, 105, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
}

.capability-photo img {
  width: 100%;
  height: 100%;
  min-height: 472px;
  object-fit: cover;
  object-position: 54% center;
  border-radius: calc(var(--radius-md) - 2px);
  box-shadow: 0 24px 68px rgba(25, 25, 25, 0.12);
}

.check-panel {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.check-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-panel li {
  position: relative;
  min-height: 108px;
  padding: 20px 18px 20px 52px;
  border: 1px solid rgba(25, 25, 25, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 239, 0.52)),
    linear-gradient(110deg, transparent, rgba(212, 167, 105, 0.08), transparent);
  box-shadow: 0 18px 46px rgba(90, 70, 42, 0.07);
  color: var(--graphite-soft);
  font-family: var(--font-studio);
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  font-weight: 800;
  line-height: 1.28;
}

.capabilities .check-panel li {
  border-color: rgba(255, 248, 239, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.11), rgba(255, 248, 239, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.14);
  color: rgba(255, 248, 239, 0.9);
  font-size: clamp(0.95rem, 1.02vw, 1.04rem);
  font-weight: 720;
  letter-spacing: -0.01em;
}

.capabilities .check-panel li::before {
  border-color: var(--gold-soft);
}

.capabilities .secondary-cta {
  border-color: rgba(242, 211, 157, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 244, 222, 0.88), rgba(212, 167, 105, 0.88)),
    var(--gold-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 18px 48px rgba(0, 0, 0, 0.16),
    0 12px 34px rgba(185, 132, 67, 0.12);
}

.check-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  left: 20px;
  width: 18px;
  height: 10px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.check-panel .secondary-cta {
  align-self: end;
  justify-self: start;
}

.services {
  padding-top: clamp(112px, 12vw, 188px);
}

.service-intro {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  max-width: 1080px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.service-intro p {
  max-width: 690px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.service-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 535px;
  padding: 14px 0 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 248, 239, 0.34)),
    rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(90, 70, 42, 0.085);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 220ms var(--ease-out);
}

.service-grid article:hover,
.case-rail article:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(25, 25, 25, 0.12);
}

.mini-placeholder {
  min-height: 150px;
  border-width: 0 0 1px;
}

.service-photo {
  min-height: clamp(280px, 22vw, 350px);
  margin: 0 14px;
  border: 1px solid rgba(185, 132, 67, 0.2);
  border-radius: 8px 8px 34px 8px;
  background: var(--graphite);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  box-shadow:
    0 18px 42px rgba(25, 25, 25, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.service-grid article:nth-child(2n) .service-photo {
  border-radius: 34px 8px 8px 8px;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
}

.service-grid article:nth-child(3n) .service-photo {
  border-radius: 8px 34px 8px 8px;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.service-photo::after {
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(23, 20, 16, 0.34));
  transform: none;
  animation: none;
}

.service-photo img {
  width: 100%;
  height: clamp(280px, 22vw, 350px);
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.01);
  transition: transform 420ms var(--ease-out), filter 420ms ease;
}

.service-grid article:hover .service-photo img {
  filter: saturate(1.02) contrast(1.06);
  transform: scale(1.055);
}

.service-grid h3 {
  margin: 24px 22px 20px;
  font-size: clamp(1.22rem, 1.55vw, 1.62rem);
  line-height: 1.12;
}

.service-grid strong {
  margin: 0 22px 20px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.service-grid a {
  width: calc(100% - 44px);
  margin: 0 22px;
  min-height: 52px;
  padding: 0 10px 0 22px;
  font-size: 0.86rem;
}

.wide-cta {
  width: min(100%, 430px);
  margin-top: clamp(30px, 4vw, 54px);
  margin-left: auto;
  background:
    linear-gradient(135deg, rgba(255, 244, 222, 0.88), rgba(212, 167, 105, 0.88)),
    var(--gold-soft);
}

.cases {
  padding-top: clamp(112px, 12vw, 188px);
}

.cases-intro {
  max-width: 1120px;
}

.case-board {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
  margin-top: clamp(38px, 5vw, 70px);
}

.case-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(25, 25, 25, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--graphite);
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
}

.case-rail {
  display: flex;
  gap: clamp(22px, 2.6vw, 34px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 16px;
}

.case-rail::-webkit-scrollbar {
  display: none;
}

.case-rail article {
  flex: 0 0 min(520px, 84vw);
  scroll-snap-align: start;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 248, 239, 0.32)),
    rgba(255, 255, 255, 0.24);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.case-placeholder {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-width: 0 0 1px;
  background: rgba(255, 255, 255, 0.42);
}

.case-placeholder:has(img)::before,
.case-placeholder:has(img)::after {
  display: none;
}

.case-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.005);
  transition: transform 420ms var(--ease-out), filter 420ms ease;
}

.case-rail article:hover .case-placeholder img {
  filter: saturate(1.02) contrast(1.06);
  transform: scale(1.035);
}

.case-rail h3 {
  margin: 20px 20px 16px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.case-rail dl {
  display: grid;
  gap: 8px;
  margin: 0 20px 22px;
}

.case-rail dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.1);
}

.case-rail dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-rail dd {
  margin: 0;
  color: var(--graphite);
  font-weight: 700;
  text-align: right;
}

.request {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 3vw, 40px);
  padding-top: clamp(112px, 12vw, 188px);
}

.request-copy {
  grid-column: 1 / -1;
  max-width: 1180px;
  padding-bottom: clamp(8px, 2vw, 18px);
}

.request-copy > p:first-child {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.request-copy h2 span {
  color: var(--accent);
}

.request-copy > p:last-child {
  margin-top: 18px;
}

.request-placeholder {
  min-height: 380px;
}

.request-photo {
  display: block;
  padding: 0;
  border-radius: 38px 8px 8px 8px;
  background: var(--paper);
  box-shadow: 0 26px 78px rgba(90, 70, 42, 0.12);
  clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%, 0 32px);
}

.request-photo img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02) brightness(1.03);
}

.lead-form {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(30px, 4.8vw, 56px);
  border-color: rgba(185, 132, 67, 0.24);
  border-radius: 8px 44px 8px 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 239, 0.56) 52%, rgba(242, 211, 157, 0.2)),
    rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 30px 90px rgba(90, 70, 42, 0.13);
}

.lead-form::before,
.lead-form::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lead-form::before {
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 22% 18%, rgba(212, 167, 105, 0.22), transparent 15rem),
    radial-gradient(circle at 88% 72%, rgba(31, 143, 114, 0.08), transparent 16rem),
    linear-gradient(90deg, transparent 0 54%, rgba(185, 132, 67, 0.09) 54% 54.4%, transparent 54.4%);
}

.lead-form::after {
  content: "AER";
  right: clamp(-30px, -2vw, -16px);
  bottom: clamp(-32px, -2vw, -18px);
  z-index: -1;
  color: rgba(185, 132, 67, 0.075);
  font-family: var(--font-display);
  font-size: clamp(5.8rem, 10vw, 9.6rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.form-brand {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: clamp(8px, 2vw, 18px);
}

.form-brand::after {
  content: "";
  width: min(180px, 46%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 132, 67, 0.5), transparent);
}

.form-brand img {
  width: clamp(82px, 9vw, 118px);
  height: auto;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form input {
  min-height: 58px;
  width: 100%;
  border: 1px solid rgba(25, 25, 25, 0.16);
  border-radius: 999px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 32px rgba(90, 70, 42, 0.055);
  color: var(--graphite);
  font: 600 1rem var(--font-studio);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.lead-form input:focus {
  outline: none;
  border-color: rgba(185, 132, 67, 0.56);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 0 4px rgba(212, 167, 105, 0.14),
    0 14px 34px rgba(90, 70, 42, 0.07);
}

.lead-form .primary-cta {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.92rem;
  line-height: 1.4;
}

.footer {
  position: relative;
  width: 100%;
  margin: clamp(46px, 5vw, 76px) auto 0;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 64px) 32px;
  scroll-margin-top: 112px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(255, 250, 243, 0.72) 16%, rgba(247, 243, 236, 0.94)),
    radial-gradient(ellipse at 18% 18%, rgba(212, 167, 105, 0.18), transparent 28rem);
  font-family: var(--font-studio);
}

.footer::before {
  content: "";
  display: block;
  width: min(100%, 1320px);
  height: 1px;
  margin: 0 auto clamp(18px, 2.4vw, 28px);
  background: linear-gradient(90deg, transparent, rgba(185, 132, 67, 0.36) 18%, rgba(185, 132, 67, 0.36) 82%, transparent);
}

.map-widget {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(25, 25, 25, 0.14);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 58% 48%, rgba(212, 167, 105, 0.18), transparent 13rem),
    linear-gradient(28deg, transparent 47%, rgba(25, 25, 25, 0.16) 48%, rgba(25, 25, 25, 0.16) 49%, transparent 50%),
    linear-gradient(122deg, transparent 42%, rgba(25, 25, 25, 0.11) 43%, rgba(25, 25, 25, 0.11) 44%, transparent 45%),
    repeating-linear-gradient(0deg, rgba(25, 25, 25, 0.04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(25, 25, 25, 0.04) 0 1px, transparent 1px 86px),
    rgba(255, 255, 255, 0.54);
  box-shadow: 0 30px 90px rgba(90, 70, 42, 0.12);
}

.map-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 243, 236, 0.04), rgba(247, 243, 236, 0.18)),
    linear-gradient(90deg, rgba(23, 20, 16, 0.07), transparent 18%, transparent 82%, rgba(23, 20, 16, 0.07));
}

.map-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 58px);
  background:
    radial-gradient(circle at 76% 34%, rgba(224, 179, 111, 0.28), transparent 21rem),
    radial-gradient(circle at 16% 82%, rgba(255, 255, 255, 0.72), transparent 22rem),
    linear-gradient(118deg, #f6efe5 0%, #eadcc9 44%, #d9c19e 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.8s ease;
}

.map-loader::before,
.map-loader::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.map-loader::before {
  inset: 18px;
  border: 1px solid rgba(91, 66, 39, 0.2);
  border-radius: calc(var(--radius-md) - 8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.map-loader::after {
  width: 38%;
  aspect-ratio: 1;
  right: -8%;
  top: -42%;
  border: 1px solid rgba(119, 82, 43, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.08),
    0 0 0 86px rgba(255, 255, 255, 0.05);
}

.map-loader-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.86;
}

.map-loader-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(87, 62, 36, 0.055) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(87, 62, 36, 0.055) 0 1px, transparent 1px 82px);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 88%, transparent);
}

.map-loader-road {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(98, 69, 39, 0.24) 18%, rgba(98, 69, 39, 0.36) 58%, transparent);
  transform-origin: left center;
  box-shadow: 0 1px rgba(255, 255, 255, 0.48);
}

.map-loader-road::after {
  content: "";
  position: absolute;
  inset: -1px 0;
  background: linear-gradient(90deg, transparent 0 34%, rgba(255, 248, 233, 0.92) 48%, transparent 62%);
  animation: map-route-shimmer 2.2s ease-in-out infinite;
}

.map-loader-road-one {
  width: 78%;
  left: 31%;
  top: 26%;
  transform: rotate(18deg);
}

.map-loader-road-two {
  width: 72%;
  left: 38%;
  top: 78%;
  transform: rotate(-22deg);
}

.map-loader-road-three {
  width: 54%;
  left: 54%;
  top: 9%;
  transform: rotate(72deg);
}

.map-loader-block {
  position: absolute;
  border: 1px solid rgba(98, 69, 39, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.25);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.38);
  transform: rotate(-8deg);
}

.map-loader-block-one { width: 180px; height: 96px; right: 15%; top: 13%; }
.map-loader-block-two { width: 126px; height: 72px; right: 34%; bottom: 12%; }
.map-loader-block-three { width: 208px; height: 82px; right: -3%; bottom: 17%; }
.map-loader-block-four { width: 128px; height: 68px; left: 48%; top: 45%; }

.map-loader-pin {
  position: absolute;
  left: 72%;
  top: 48%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(87, 57, 27, 0.32);
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(145deg, #f8ddb0, #c9944f);
  box-shadow: 0 18px 38px rgba(79, 53, 27, 0.25), inset 0 1px rgba(255, 255, 255, 0.76);
  transform: translate(-50%, -62%) rotate(-45deg);
  animation: map-pin-float 1.9s ease-in-out infinite;
}

.map-loader-pin::before,
.map-loader-pin::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.map-loader-pin::before {
  width: 18px;
  height: 18px;
  border: 5px solid #3f3021;
  background: rgba(255, 247, 232, 0.92);
}

.map-loader-pin::after {
  width: 92px;
  height: 26px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(105, 72, 36, 0.25);
  transform: translate(-50%, 72%) rotate(45deg);
  animation: map-pin-pulse 1.9s ease-out infinite;
}

.map-loader-card {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  padding: clamp(26px, 3.2vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(34, 27, 21, 0.96), rgba(52, 39, 28, 0.91)),
    #2b2119;
  color: #fffaf2;
  box-shadow: 0 30px 90px rgba(65, 43, 22, 0.28), inset 0 1px rgba(255, 255, 255, 0.1);
}

.map-loader-kicker {
  display: block;
  margin-bottom: 14px;
  color: #e8bd7e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.map-loader-card strong {
  display: block;
  max-width: 440px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
}

.map-loader-card p {
  max-width: 420px;
  margin: 16px 0 24px;
  color: rgba(255, 250, 242, 0.66);
  font-size: 0.98rem;
  line-height: 1.55;
}

.map-loader-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.map-loader-progress span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b57b38, #f7dbab, #b57b38);
  box-shadow: 0 0 16px rgba(236, 185, 112, 0.55);
  animation: map-loader-progress 1.55s ease-in-out infinite;
}

.map-loader-card small {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: rgba(255, 250, 242, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.map-loader-card small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8bd7e;
  box-shadow: 0 0 0 5px rgba(232, 189, 126, 0.1);
  animation: map-status-pulse 1.35s ease-in-out infinite;
}

.map-loader-mark {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 4vw, 68px);
  bottom: clamp(24px, 3vw, 42px);
  display: grid;
  justify-items: end;
  gap: 5px;
  color: rgba(61, 43, 26, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-loader-mark img {
  width: clamp(76px, 8vw, 122px);
  height: auto;
  opacity: 0.62;
  filter: sepia(0.3) saturate(0.66) brightness(0.62);
}

.map-frame {
  position: relative;
  z-index: 2;
  min-height: 430px;
}

.map-frame > a {
  display: none;
}

.map-widget iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  opacity: 0.9;
  filter: saturate(0.78) contrast(0.96) brightness(1.04);
  transition: opacity 0.72s ease, filter 0.72s ease;
}

.map-widget.map-loading iframe {
  opacity: 0;
}

.map-widget.is-map-loaded iframe {
  opacity: 0.9;
}

.map-widget.is-map-loaded .map-loader {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
}

@keyframes map-loader-progress {
  0% { transform: translateX(-115%); }
  55%, 100% { transform: translateX(260%); }
}

@keyframes map-route-shimmer {
  0%, 18% { transform: translateX(-70%); opacity: 0; }
  42% { opacity: 1; }
  78%, 100% { transform: translateX(80%); opacity: 0; }
}

@keyframes map-pin-float {
  0%, 100% { transform: translate(-50%, -62%) rotate(-45deg); }
  50% { transform: translate(-50%, -72%) rotate(-45deg); }
}

@keyframes map-pin-pulse {
  0% { opacity: 0.65; transform: translate(-50%, 72%) rotate(45deg) scale(0.35); }
  100% { opacity: 0; transform: translate(-50%, 72%) rotate(45deg) scale(1.3); }
}

@keyframes map-status-pulse {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(300px, 1.08fr) minmax(260px, 0.72fr) minmax(170px, 0.4fr);
  gap: clamp(28px, 5vw, 84px);
  margin-top: 18px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(25, 25, 25, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 239, 0.56)),
    linear-gradient(90deg, rgba(212, 167, 105, 0.1), transparent 42%);
  box-shadow: 0 20px 70px rgba(90, 70, 42, 0.1);
}

.footer-brand p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-contacts,
.footer-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  font-style: normal;
}

.footer-contacts > span:first-child {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-phone {
  color: var(--graphite);
  font-family: var(--font-studio);
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}

.footer-contacts div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.footer-contacts div a,
.footer-nav a {
  width: fit-content;
  border-bottom: 1px solid rgba(25, 25, 25, 0.14);
  color: var(--muted);
  font-weight: 700;
}

.footer-nav {
  justify-items: start;
}

.footer-legal {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(220px, 272px));
  justify-content: center;
  gap: 8px;
  width: min(100%, 580px);
  margin: 2px auto 0;
}

.footer-legal-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(25, 25, 25, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 239, 0.62)),
    rgba(255, 255, 255, 0.48);
  color: var(--muted);
  cursor: default;
  font: 800 0.82rem/1.2 var(--font-studio);
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.footer-legal-button:hover,
.footer-legal-button:focus-visible {
  border-color: rgba(185, 132, 67, 0.42);
  background: rgba(255, 248, 239, 0.82);
  color: var(--graphite);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 167, 105, 0.18), transparent 32rem),
    rgba(18, 15, 12, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition:
    opacity 260ms var(--ease-out),
    visibility 260ms var(--ease-out);
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-frame {
  display: grid;
  gap: 14px;
  width: min(100%, 1180px);
  margin: 0;
  transform: translateY(14px) scale(0.98);
  transition: transform 320ms var(--ease-soft);
}

.image-lightbox.is-open .lightbox-frame {
  transform: translateY(0) scale(1);
}

.lightbox-frame img {
  width: 100%;
  max-height: min(76vh, 780px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 239, 0.08);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
}

.lightbox-frame figcaption {
  max-width: 820px;
  color: rgba(255, 248, 239, 0.82);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lightbox-close {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 248, 239, 0.3);
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.12);
  color: #fff8ef;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-close:hover {
  transform: scale(1.04);
  background: rgba(255, 248, 239, 0.18);
}

body.lightbox-open {
  overflow: hidden;
}

.js-motion .motion-item {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 34px, 0) scale(0.988);
  will-change: opacity, filter, transform;
  transition:
    opacity 900ms var(--ease-soft),
    filter 960ms var(--ease-soft),
    transform 980ms var(--ease-soft);
  transition-delay: var(--motion-delay, 0ms);
}

.js-motion .motion-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

.js-motion .section-kicker::after {
  transform: scaleX(0);
  transition: transform 980ms var(--ease-soft);
  transition-delay: calc(var(--motion-delay, 0ms) + 120ms);
}

.js-motion .section-kicker.is-visible::after {
  transform: scaleX(1);
}

@keyframes ambientSweep {
  from {
    background-position: 0% 44%, 100% 18%, 20% 80%;
    transform: translate3d(-4%, -1%, 0) scale(1.08);
  }
  to {
    background-position: 100% 56%, 0% 28%, 86% 20%;
    transform: translate3d(4%, 1%, 0) scale(1.08);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes preloadAura {
  from {
    opacity: 0.46;
    transform: rotate(0deg) scale(0.92);
  }
  to {
    opacity: 0.82;
    transform: rotate(16deg) scale(1.04);
  }
}

@keyframes preloadLogo {
  from {
    transform: translateY(2px) scale(0.985);
  }
  to {
    transform: translateY(-2px) scale(1);
  }
}

@keyframes preloadLine {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(250%);
  }
}

@keyframes placeholderSweep {
  0% {
    transform: translateX(-100%);
  }
  38%,
  100% {
    transform: translateX(100%);
  }
}

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

  .main-nav {
    justify-content: end;
  }

  .header-contact {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media"
      "stats";
    min-height: auto;
  }

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

  .hero-media {
    max-width: 760px;
  }

  .visibility-lab,
  .capabilities-grid,
  .request,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .problem-connector {
    display: none;
  }

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

@media (max-width: 820px) {
  .section-band,
  .site-header,
  .page-section {
    width: min(100% - 32px, 1480px);
  }

  .footer {
    width: 100%;
    padding-inline: 16px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-top: 18px;
  }

  .brand-caption,
  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .brand-logo {
    width: 72px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "lead"
      "actions"
      "proof"
      "stats";
    align-items: start;
    row-gap: 16px;
    padding-top: 32px;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    grid-area: eyebrow;
    margin-bottom: 0;
  }

  .hero h1 {
    grid-area: title;
  }

  .hero .lead {
    grid-area: lead;
    margin-top: 0;
  }

  .hero-actions {
    grid-area: actions;
    margin-top: 8px;
  }

  .proof-row {
    grid-area: proof;
    margin-top: 0;
  }

  .hero-media {
    display: none;
  }

  .hero-media::before {
    display: none;
  }

  .media-frame {
    height: 100%;
    min-height: clamp(280px, 74vw, 360px);
    aspect-ratio: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .media-frame::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(247, 243, 236, 0.82) 10%, transparent 30%),
      linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 78%, var(--bg) 100%);
  }

  .media-frame img {
    opacity: 0.86;
    filter: saturate(0.86) contrast(1.02) brightness(1.04);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 86%, transparent 100%);
  }

  h1 {
    font-size: clamp(3.05rem, 13.5vw, 4.15rem);
  }

  .hero-actions,
  .benefit-conclusion,
  .service-intro,
  .case-board {
    grid-template-columns: 1fr;
  }

  .primary-cta,
  .text-cta,
  .secondary-cta,
  .wide-cta {
    width: 100%;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    scroll-snap-type: none;
    margin-top: 10px;
    padding-bottom: 0;
  }

  .stats::-webkit-scrollbar {
    display: initial;
  }

  .stat {
    grid-template-columns: 38px auto;
    column-gap: 12px;
    min-height: 82px;
    padding: 14px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stat .line-icon {
    width: 38px;
    height: 38px;
  }

  .stat strong {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .stat span:last-child {
    font-size: 0.86rem;
  }

  .stat:nth-child(2n),
  .stat:last-child {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section-intro h2,
  .request-copy h2 {
    font-size: clamp(2.12rem, 10.4vw, 3.08rem);
    line-height: 1.02;
  }

  .capabilities::after {
    right: 18px;
    bottom: -24px;
    font-size: clamp(5.2rem, 26vw, 7.4rem);
    letter-spacing: -0.1em;
  }

  .capabilities .section-intro h2 {
    font-size: clamp(2rem, 9.4vw, 2.72rem);
    line-height: 1.03;
  }

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

  .check-panel ul {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .check-panel ul::-webkit-scrollbar {
    display: none;
  }

  .check-panel li {
    flex: 0 0 min(320px, 84vw);
    scroll-snap-align: start;
  }

  .case-arrow {
    display: none;
  }

  .tall-placeholder,
  .request-placeholder,
  .map-widget,
  .map-widget iframe,
  .map-frame,
  .map-loader {
    min-height: 320px;
    height: 320px;
  }

  .map-loader {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 26px;
  }

  .map-loader::before {
    inset: 10px;
    border-radius: 18px;
  }

  .map-loader-card {
    width: min(100%, 430px);
    padding: 24px;
    border-radius: 20px;
  }

  .map-loader-card strong {
    font-size: clamp(1.55rem, 7.6vw, 2rem);
  }

  .map-loader-card p {
    margin: 12px 0 18px;
    font-size: 0.88rem;
  }

  .map-loader-mark {
    display: none;
  }

  .map-loader-pin {
    left: 84%;
    top: 24%;
    width: 42px;
    height: 42px;
    opacity: 0.7;
  }

  .map-loader-block-one,
  .map-loader-block-three,
  .map-loader-block-four {
    display: none;
  }

  .capability-photo img {
    min-height: 100%;
  }

  .check-panel li {
    font-size: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    overflow-x: visible;
  }

  .footer-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .footer-brand .brand {
    min-width: 0;
  }

  .footer .brand-logo {
    width: 64px;
  }

  .footer-brand p {
    margin-top: 0;
    font-size: 0.92rem;
    line-height: 1.46;
  }

  .footer-phone {
    font-size: clamp(1rem, 4.4vw, 1.16rem);
  }

  .footer-contacts,
  .footer-nav {
    gap: 8px;
  }

  .footer-contacts div {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .footer-contacts div a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(25, 25, 25, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.82);
    box-shadow: 0 10px 26px rgba(90, 70, 42, 0.08);
    font-size: 0.8rem;
  }

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

  .footer-nav > a {
    display: none;
  }

  .footer-legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .footer-legal-button {
    min-height: 48px;
    font-size: 0.76rem;
  }
}

@media (max-width: 520px) {
  .media-frame::after {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 22%);
  }

  .lead {
    font-size: 1rem;
  }

  .benefits-shell,
  .capabilities-grid,
  .services,
  .cases,
  .request {
    padding-top: 28px;
  }

  .problem-stack article {
    padding: 18px;
  }
}

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

  .js-motion .motion-item {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* === Premium refinement v2 === */
:root {
  --font-sans: "Manrope", Arial, Helvetica, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --premium-dark: #171311;
  --premium-dark-soft: #241d19;
  --premium-cream: #fbf7f0;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: -0.008em;
}

h1,
.section-intro h2,
.request-copy h2,
.problem-stack article,
.case-rail h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
}

h1 {
  max-width: 820px;
  font-size: clamp(4rem, 7.35vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 620px;
  margin-top: clamp(22px, 2.4vw, 34px);
  font-size: clamp(1.02rem, 1.18vw, 1.18rem);
  line-height: 1.68;
}

.page-section {
  width: min(100% - clamp(36px, 7vw, 128px), 1320px);
  padding-top: clamp(104px, 10vw, 164px);
  scroll-margin-top: 118px;
}

.section-kicker {
  gap: 22px;
  margin-bottom: clamp(28px, 3vw, 42px);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.section-intro {
  gap: clamp(18px, 1.8vw, 26px);
}

.section-intro h2,
.request-copy h2 {
  max-width: 1060px;
  font-size: clamp(2.6rem, 4.25vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.section-intro p,
.request-copy p,
.benefit-conclusion p {
  max-width: 720px;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.72;
}

/* Benefits: premium before/after editorial visual */
.benefits-shell {
  padding-top: 0;
}

.benefits-intro {
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
  align-items: end;
  column-gap: clamp(40px, 6vw, 92px);
}

.benefits-intro p {
  padding-bottom: 0.32em;
}

.visibility-showcase {
  display: grid;
  gap: clamp(22px, 2.5vw, 34px);
  margin-top: clamp(42px, 5vw, 72px);
}

.visibility-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(440px, 55vw, 710px);
  margin: 0;
  border: 1px solid rgba(185, 132, 67, 0.24);
  border-radius: 34px 10px 34px 10px;
  background: var(--premium-dark);
  box-shadow:
    0 38px 100px rgba(54, 39, 24, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.visibility-visual::before,
.visibility-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.visibility-visual::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 12, 10, 0.16), transparent 32%, transparent 64%, rgba(15, 12, 10, 0.48)),
    linear-gradient(90deg, rgba(15, 12, 10, 0.18), transparent 18%, transparent 82%, rgba(15, 12, 10, 0.12));
}

.visibility-visual::after {
  inset: 18px;
  border: 1px solid rgba(255, 248, 239, 0.14);
  border-radius: 24px 7px 24px 7px;
}

.visibility-visual img {
  width: 100%;
  height: 100%;
  min-height: clamp(440px, 55vw, 710px);
  object-fit: cover;
  object-position: center;
  transform: scale(1.003);
}

.visual-label {
  position: absolute;
  z-index: 3;
  top: clamp(24px, 3vw, 42px);
  display: grid;
  gap: 5px;
  min-width: min(250px, 38%);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(19, 16, 14, 0.52);
  color: #fff8ef;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.visual-label span {
  color: rgba(242, 211, 157, 0.92);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.visual-label strong {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.55vw, 1.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.visual-label-bad {
  left: clamp(24px, 3vw, 42px);
}

.visual-label-good {
  right: clamp(24px, 3vw, 42px);
  text-align: right;
}

.comparison-mark {
  position: absolute;
  z-index: 4;
  left: 51.6%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 248, 239, 0.46);
  border-radius: 999px;
  background: rgba(24, 19, 16, 0.7);
  box-shadow: 0 0 44px rgba(212, 167, 105, 0.38);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.comparison-mark::before,
.comparison-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
}

.comparison-mark::before {
  transform: translateX(2px) rotate(45deg);
}

.comparison-mark::after {
  position: absolute;
  transform: translateX(-2px) rotate(-135deg);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 20, 16, 0.16);
  border-bottom: 1px solid rgba(23, 20, 16, 0.12);
}

.diagnostic-grid article {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 226px;
  padding: clamp(22px, 2.4vw, 32px);
  border-right: 1px solid rgba(23, 20, 16, 0.12);
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 220ms ease, transform 220ms var(--ease-out);
}

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

.diagnostic-grid article:hover {
  z-index: 1;
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

.diagnostic-grid article > span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.diagnostic-grid h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.24rem, 1.55vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.diagnostic-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.benefit-conclusion {
  margin-top: clamp(40px, 5vw, 70px);
}

/* Requested Cyrillic watermark: wider spacing and shifted to the right */
.capabilities::after {
  content: "АЕР";
  right: clamp(-76px, -4vw, -28px);
  bottom: clamp(-84px, -4.8vw, -42px);
  font-size: clamp(7.8rem, 17.5vw, 19.5rem);
  letter-spacing: 0.035em;
  line-height: 0.72;
}

.capabilities .section-intro h2 {
  max-width: 1000px;
  font-size: clamp(2.55rem, 4vw, 4.2rem);
  line-height: 0.99;
}

.capabilities-grid {
  gap: clamp(34px, 5vw, 74px);
}

.check-panel ul {
  gap: 14px;
}

.capabilities .check-panel li {
  min-height: 114px;
  padding: 22px 20px 22px 54px;
  border-radius: 16px;
  line-height: 1.38;
}

/* Services: full-bleed editorial cards instead of white-backed tiles */
.services {
  padding-top: clamp(104px, 10vw, 164px);
}

.service-intro {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  align-items: end;
  max-width: none;
  margin-bottom: clamp(46px, 5vw, 76px);
}

.service-intro p {
  max-width: 520px;
  padding-bottom: 0.36em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.service-grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(430px, 38vw, 590px);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(185, 132, 67, 0.22);
  border-radius: 28px 8px 28px 8px;
  background: var(--premium-dark);
  box-shadow: 0 28px 80px rgba(50, 37, 24, 0.16);
  backdrop-filter: none;
}

.service-grid article:nth-child(4n + 1),
.service-grid article:nth-child(4n) {
  grid-column: span 7;
}

.service-grid article:nth-child(4n + 2),
.service-grid article:nth-child(4n + 3) {
  grid-column: span 5;
}

.service-grid article:nth-child(2n) {
  border-radius: 8px 28px 8px 28px;
}

.service-grid article::before,
.service-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.service-grid article::before {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.05) 0%, rgba(18, 15, 13, 0.18) 42%, rgba(18, 15, 13, 0.88) 100%),
    linear-gradient(90deg, rgba(18, 15, 13, 0.34), transparent 58%);
}

.service-grid article::after {
  z-index: 3;
  inset: 16px;
  border: 1px solid rgba(255, 248, 239, 0.14);
  border-radius: 19px 5px 19px 5px;
  opacity: 0.78;
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 38px 96px rgba(36, 26, 18, 0.24);
}

.service-photo,
.service-grid article:nth-child(2n) .service-photo,
.service-grid article:nth-child(3n) .service-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: var(--premium-dark);
  box-shadow: none;
}

.service-photo::after {
  display: none;
}

.service-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.92);
  transform: scale(1.015);
}

.service-grid article:hover .service-photo img {
  filter: saturate(1) contrast(1.07) brightness(0.98);
  transform: scale(1.055);
}

.service-grid h3,
.service-grid strong,
.service-grid a {
  position: relative;
  z-index: 4;
}

.service-grid h3 {
  max-width: 580px;
  margin: 0 0 14px;
  color: #fff8ef;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.34);
}

.service-grid strong {
  margin: 0 0 24px;
  color: var(--gold-soft);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.service-grid a {
  width: fit-content;
  min-height: 46px;
  margin: 0;
  padding: 0 10px 0 20px;
  border-color: rgba(255, 248, 239, 0.28);
  background: rgba(255, 248, 239, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  font-size: 0.78rem;
}

.wide-cta {
  margin-top: clamp(34px, 4vw, 58px);
}

/* General card rhythm */
.case-rail article,
.lead-form {
  border-radius: 18px;
}

.case-rail h3 {
  letter-spacing: -0.025em;
}

@media (max-width: 1100px) {
  .benefits-intro,
  .service-intro {
    grid-template-columns: 1fr;
  }

  .benefits-intro p,
  .service-intro p {
    max-width: 720px;
    padding-bottom: 0;
  }

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

  .diagnostic-grid article:nth-child(3) {
    border-right: 0;
  }

  .diagnostic-grid article:nth-child(n + 4) {
    border-top: 1px solid rgba(23, 20, 16, 0.12);
  }

  .diagnostic-grid article:nth-child(5) {
    border-right: 0;
  }

  .service-grid article,
  .service-grid article:nth-child(4n + 1),
  .service-grid article:nth-child(4n),
  .service-grid article:nth-child(4n + 2),
  .service-grid article:nth-child(4n + 3) {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .page-section {
    width: min(100% - 32px, 1320px);
    padding-top: 88px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.2rem);
    line-height: 0.92;
  }

  .section-intro h2,
  .request-copy h2,
  .capabilities .section-intro h2 {
    font-size: clamp(2.18rem, 10vw, 3.1rem);
    line-height: 1.01;
  }

  .visibility-visual,
  .visibility-visual img {
    min-height: 520px;
  }

  .visibility-visual img {
    object-position: 51% center;
  }

  .visual-label {
    min-width: 0;
    max-width: calc(50% - 30px);
    padding: 12px 13px;
  }

  .visual-label strong {
    font-size: 0.96rem;
  }

  .comparison-mark {
    left: 51.5%;
    width: 48px;
    height: 48px;
  }

  .diagnostic-grid {
    grid-template-columns: 1fr;
    border: 0;
    gap: 10px;
  }

  .diagnostic-grid article,
  .diagnostic-grid article:nth-child(n) {
    grid-template-columns: 42px 1fr;
    gap: 4px;
    min-height: 0;
    padding: 20px;
    border: 1px solid rgba(23, 20, 16, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.28);
  }

  .diagnostic-grid article > span {
    padding-top: 4px;
  }

  .capabilities::after {
    right: -24px;
    bottom: -28px;
    font-size: clamp(5.4rem, 27vw, 8rem);
    letter-spacing: 0.03em;
  }

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

  .service-grid article,
  .service-grid article:nth-child(n) {
    grid-column: 1;
    min-height: 470px;
  }

  .service-grid h3 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }
}

@media (max-width: 520px) {
  .page-section {
    padding-top: 74px;
  }

  .visibility-visual,
  .visibility-visual img {
    min-height: 470px;
  }

  .visibility-visual {
    border-radius: 24px 8px 24px 8px;
  }

  .visibility-visual::after {
    inset: 10px;
    border-radius: 17px 5px 17px 5px;
  }

  .visual-label {
    top: 18px;
    max-width: calc(50% - 22px);
    padding: 10px;
  }

  .visual-label-bad { left: 18px; }
  .visual-label-good { right: 18px; }

  .visual-label span {
    font-size: 0.56rem;
  }

  .visual-label strong {
    font-size: 0.82rem;
  }

  .service-grid article {
    min-height: 430px;
    padding: 24px;
    border-radius: 22px 7px 22px 7px;
  }

  .service-grid article::after {
    inset: 10px;
  }
}

/* =========================================================
   AER premium refinement — hero, client marquee, cases, form
   ========================================================= */

/* Desktop watermark: Cyrillic, wider and further to the right */
.capabilities::after {
  content: "АЕР";
  right: clamp(-270px, -12vw, -150px);
  letter-spacing: 0.075em;
}

/* Client logo marquee */
.clients-marquee {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: clamp(54px, 7vw, 104px) 0 0;
  padding: clamp(58px, 6vw, 88px) 0 clamp(42px, 5vw, 70px);
  background:
    radial-gradient(ellipse at 18% 18%, rgba(212, 167, 105, 0.22), transparent 30rem),
    radial-gradient(ellipse at 84% 86%, rgba(115, 81, 38, 0.2), transparent 26rem),
    linear-gradient(128deg, #171311 0%, #241a17 52%, #31231f 100%);
  color: var(--milk);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(255,255,255,.06);
  font-family: var(--font-studio);
}

.clients-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255,255,255,.035) 22% 22.08%, transparent 22.08% 70%, rgba(255,255,255,.025) 70% 70.08%, transparent 70.08%),
    linear-gradient(180deg, transparent 0 52%, rgba(255,255,255,.035) 52% 52.1%, transparent 52.1%);
}

.clients-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  grid-template-areas:
    "eyebrow copy"
    "title copy";
  align-items: end;
  gap: 12px clamp(42px, 7vw, 116px);
  width: min(100% - clamp(32px, 7vw, 128px), 1320px);
  margin: 0 auto clamp(34px, 4vw, 58px);
}

.clients-eyebrow {
  grid-area: eyebrow;
  margin: 0;
  color: var(--gold-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.clients-heading h2 {
  grid-area: title;
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.034em;
  text-wrap: balance;
}

.clients-heading > p:last-child {
  grid-area: copy;
  max-width: 470px;
  margin: 0 0 .35em;
  color: rgba(255,248,239,.66);
  font-size: clamp(.98rem, 1.2vw, 1.14rem);
  line-height: 1.65;
}

.logo-marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-track {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 18px;
  min-width: max-content;
  padding-right: 18px;
  animation: logoFlow 40s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.client-logo {
  display: grid;
  place-items: center;
  width: clamp(190px, 16vw, 250px);
  height: clamp(104px, 9vw, 132px);
  padding: 20px 26px;
  border: 1px solid rgba(255,248,239,.12);
  border-radius: 22px 7px 22px 7px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,248,239,.88)),
    var(--milk);
  box-shadow: 0 18px 46px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}

.client-logo:nth-child(even) {
  border-radius: 7px 22px 7px 22px;
}

.client-logo:hover {
  transform: translateY(-5px);
  border-color: rgba(242,211,157,.48);
  box-shadow: 0 24px 56px rgba(0,0,0,.25), 0 0 0 1px rgba(242,211,157,.09);
}

.client-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.9) contrast(1.03);
}

.client-logo--green {
  padding: 0;
  overflow: hidden;
  background: #105539;
}

.client-logo--green img {
  object-fit: cover;
}

@keyframes logoFlow {
  to { transform: translateX(-100%); }
}

/* Cases: premium horizontal portfolio rail */
.cases-intro {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .48fr);
  align-items: end;
  max-width: none;
}

.case-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin: clamp(34px, 4vw, 56px) 0 4px;
  padding: 18px 0;
  border-top: 1px solid rgba(23,20,16,.13);
  border-bottom: 1px solid rgba(23,20,16,.1);
  font-family: var(--font-studio);
}

.case-controls > div:first-child {
  display: grid;
  gap: 4px;
}

.case-controls > div:first-child span {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.case-controls > div:first-child strong {
  font-size: 1rem;
  letter-spacing: -.01em;
}

.case-controls > p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  text-align: right;
}

.case-nav {
  display: flex;
  gap: 10px;
}

.case-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(185,132,67,.3);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(242,211,157,.4)),
    var(--milk);
  box-shadow: 0 14px 34px rgba(90,70,42,.12), inset 0 1px 0 rgba(255,255,255,.8);
  color: var(--graphite);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background-color 180ms ease;
}

.case-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(90,70,42,.18);
}

.case-board {
  display: block;
  overflow: visible;
}

.case-rail {
  display: flex;
  gap: clamp(18px, 2vw, 26px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  margin-right: calc((100vw - 100%) / -2);
  padding: 26px max(32px, calc((100vw - 1320px) / 2)) 34px 2px;
}

.case-rail:active { cursor: grabbing; }
.case-rail::-webkit-scrollbar { display: none; }

.case-rail article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 clamp(430px, 42vw, 570px);
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid rgba(185,132,67,.18);
  border-radius: 30px 9px 30px 9px;
  background: rgba(255,250,243,.9);
  box-shadow: 0 28px 78px rgba(90,70,42,.14);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.case-rail article:nth-child(even) {
  border-radius: 9px 30px 9px 30px;
}

.case-rail article::after {
  content: attr(data-case);
  position: absolute;
  right: 20px;
  bottom: 114px;
  z-index: -1;
  color: rgba(185,132,67,.08);
  font-family: var(--font-display);
  font-size: 5.4rem;
  font-weight: 700;
  line-height: .8;
}

.case-rail article:hover {
  transform: translateY(-7px);
  border-color: rgba(185,132,67,.34);
  box-shadow: 0 40px 94px rgba(66,48,31,.2);
}

.case-placeholder {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 0;
  background: #201a17;
}

.case-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block !important;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,10,9,.04), transparent 45%, rgba(12,10,9,.62) 100%),
    linear-gradient(90deg, rgba(12,10,9,.2), transparent 48%);
}

.case-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.04) brightness(.96);
  transform: scale(1.01);
}

.case-rail article:hover .case-placeholder img {
  filter: saturate(1.02) contrast(1.06) brightness(1);
  transform: scale(1.055);
}

.case-badge {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(255,248,239,.18);
  border-radius: 14px;
  background: rgba(24,19,16,.56);
  color: #fff8ef;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}

.case-badge span {
  color: rgba(255,248,239,.66);
  font-size: .7rem;
  font-weight: 700;
}

.case-badge strong {
  color: var(--gold-soft);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.case-card-body {
  position: relative;
  z-index: 1;
  padding: 24px 26px 26px;
}

.case-rail h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
  letter-spacing: -.035em;
}

.case-rail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin: 0;
}

.case-rail dl div {
  display: grid;
  justify-content: initial;
  gap: 5px;
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid rgba(23,20,16,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.48);
}

.case-rail dt {
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .11em;
}

.case-rail dd {
  align-self: end;
  font-size: .9rem;
  line-height: 1.25;
  text-align: left;
}

.case-card-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23,20,16,.11);
  color: var(--graphite);
  font-size: .84rem;
  font-weight: 800;
}

.case-card-link span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--gold-soft);
  transition: transform 180ms var(--ease-out);
}

.case-card-link:hover span { transform: translateX(4px); }

/* Request form: premium dark consultation card */
.request {
  grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr);
  gap: clamp(24px, 4vw, 54px);
}

.request-photo {
  min-height: 620px;
  border-radius: 42px 10px 42px 10px;
}

.request-photo img {
  min-height: 620px;
  filter: saturate(.9) contrast(1.05) brightness(.92);
}

.lead-form {
  align-content: start;
  gap: 18px;
  min-height: 620px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(242,211,157,.2);
  border-radius: 10px 42px 10px 42px;
  background:
    radial-gradient(circle at 14% 12%, rgba(212,167,105,.22), transparent 15rem),
    radial-gradient(circle at 90% 88%, rgba(115,81,38,.24), transparent 18rem),
    linear-gradient(142deg, #181311 0%, #241a17 55%, #33231f 100%);
  box-shadow: 0 34px 90px rgba(56,39,25,.24), inset 0 1px 0 rgba(255,255,255,.07);
  color: var(--milk);
}

.lead-form::before {
  background:
    linear-gradient(90deg, transparent 0 64%, rgba(255,255,255,.04) 64% 64.15%, transparent 64.15%),
    linear-gradient(180deg, transparent 0 47%, rgba(255,255,255,.035) 47% 47.15%, transparent 47.15%);
}

.lead-form::after {
  content: "АЕР";
  right: -36px;
  bottom: -32px;
  color: rgba(242,211,157,.055);
  font-family: var(--font-studio);
  font-size: clamp(7rem, 10vw, 10.5rem);
  font-weight: 800;
  letter-spacing: .05em;
}

.form-head {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: start;
  gap: 20px;
  margin-bottom: 6px;
}

.form-head .form-brand {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin: 0;
  border: 1px solid rgba(242,211,157,.18);
  border-radius: 22px 7px 22px 7px;
  background: rgba(255,248,239,.93);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.form-head .form-brand::after { display: none; }
.form-head .form-brand img { width: 66px; }

.form-badge {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.form-head h3 {
  max-width: 540px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.form-head p {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(255,248,239,.62);
  font-size: .92rem;
  line-height: 1.55;
}

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

.lead-form label,
.contact-method legend {
  color: rgba(255,248,239,.62);
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,248,239,.14);
  border-radius: 14px;
  padding: 0 17px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  color: var(--milk);
  font: 600 .98rem var(--font-studio);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.lead-form input::placeholder { color: rgba(255,248,239,.36); }
.lead-form select { appearance: auto; color-scheme: dark; }

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: rgba(242,211,157,.55);
  background: rgba(255,255,255,.115);
  box-shadow: 0 0 0 4px rgba(212,167,105,.1);
}

.contact-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-method legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-method label {
  display: block;
  cursor: pointer;
}

.contact-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-method span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(255,248,239,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,248,239,.7);
  font-size: .8rem;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.contact-method input:checked + span {
  border-color: rgba(242,211,157,.48);
  background: rgba(242,211,157,.14);
  color: var(--gold-soft);
}

.form-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-benefits span {
  padding: 8px 11px;
  border: 1px solid rgba(255,248,239,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(255,248,239,.65);
  font-size: .72rem;
  font-weight: 700;
}

.lead-form .primary-cta {
  min-height: 62px;
  margin-top: 2px;
}

.form-note {
  margin: -4px 0 0;
  color: rgba(255,248,239,.36);
  font-size: .68rem;
  line-height: 1.45;
  text-align: center;
}

.lead-form .form-status {
  color: var(--gold-soft);
}

/* Footer address and schedule */
.footer-inner {
  grid-template-columns: minmax(260px, 1.1fr) minmax(230px, .72fr) minmax(210px, .58fr) minmax(150px, .38fr);
  gap: clamp(24px, 3.5vw, 56px);
}

.footer-address {
  max-width: 260px;
  line-height: 1.45;
}

.footer-visit {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-visit > span {
  margin-bottom: 2px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-visit strong {
  font-size: .94rem;
  line-height: 1.35;
}

.footer-visit p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .clients-heading {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "copy";
  }
  .clients-heading > p:last-child { max-width: 720px; margin-top: 8px; }

  .cases-intro { grid-template-columns: 1fr; }
  .request { grid-template-columns: 1fr; }
  .request-photo, .request-photo img, .lead-form { min-height: 520px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  /* Compact mobile hero with a real visual on the right, never over the text */
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(118px, .42fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "title media"
      "lead lead"
      "actions actions"
      "proof proof"
      "stats stats";
    column-gap: 14px;
    row-gap: 16px;
  }

  .hero-media {
    position: relative;
    display: block;
    grid-area: media;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 196px;
  }

  .hero-media::before {
    display: block;
    inset: 10px -6px -8px 8px;
    border-radius: 26px 8px 26px 8px;
    background: rgba(212,167,105,.16);
    box-shadow: none;
  }

  .hero-media::after {
    content: "Свой цех · 13 лет";
    position: absolute;
    right: -4px;
    bottom: 13px;
    z-index: 3;
    max-width: calc(100% - 12px);
    padding: 8px 10px;
    border: 1px solid rgba(255,248,239,.18);
    border-radius: 999px;
    background: rgba(24,19,16,.68);
    color: var(--gold-soft);
    font-family: var(--font-studio);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
  }

  .hero .media-frame {
    height: 100%;
    min-height: 196px;
    overflow: hidden;
    border: 1px solid rgba(185,132,67,.24);
    border-radius: 26px 8px 26px 8px;
    background: #2a211d;
    box-shadow: 0 18px 42px rgba(90,70,42,.18);
  }

  .hero .media-frame::after {
    background: linear-gradient(180deg, rgba(18,14,12,.04), rgba(18,14,12,.1) 48%, rgba(18,14,12,.42));
  }

  .hero .media-frame img {
    opacity: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
    filter: saturate(.94) contrast(1.06) brightness(.9);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero h1 {
    align-self: center;
    font-size: clamp(2.75rem, 12vw, 3.7rem);
    line-height: .92;
  }

  /* Hide Cyrillic watermark entirely on mobile */
  .capabilities::after { display: none; }

  .clients-marquee { margin-top: 62px; padding-top: 54px; }
  .clients-heading { width: min(100% - 32px, 1320px); }
  .clients-heading h2 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .logo-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .logo-track { gap: 12px; padding-right: 12px; animation-duration: 30s; }
  .client-logo { width: 166px; height: 88px; padding: 14px 18px; border-radius: 16px 5px 16px 5px; }

  .case-controls {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .case-controls > p { display: none; }
  .case-arrow { display: grid; width: 44px; height: 44px; }
  .case-rail {
    margin-right: -16px;
    padding-right: 22px;
  }
  .case-rail article { flex-basis: min(86vw, 460px); border-radius: 24px 7px 24px 7px; }
  .case-placeholder { aspect-ratio: 4 / 3; }
  .case-badge { left: 14px; right: 14px; bottom: 12px; padding: 11px 12px; }
  .case-card-body { padding: 20px; }
  .case-rail h3 { font-size: 1.9rem; }
  .case-rail dl { gap: 8px; }
  .case-rail dl div { min-height: 66px; padding: 10px; }

  .request-photo, .request-photo img { min-height: 420px; }
  .lead-form { min-height: 0; border-radius: 8px 30px 8px 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-head { grid-template-columns: 74px 1fr; gap: 14px; }
  .form-head .form-brand { width: 74px; height: 74px; border-radius: 18px 6px 18px 6px; }
  .form-head .form-brand img { width: 52px; }
  .form-head h3 { font-size: clamp(1.65rem, 7vw, 2.2rem); }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-visit { padding-top: 4px; }
}

@media (max-width: 520px) {
  .hero {
    grid-template-columns: minmax(0,1fr) 112px;
    column-gap: 10px;
  }
  .hero-media,
  .hero .media-frame { min-height: 184px; }
  .hero h1 { font-size: clamp(2.5rem, 11.7vw, 3.2rem); }
  .hero-media::after { font-size: .49rem; padding: 7px 8px; }

  .clients-heading h2 { font-size: clamp(1.9rem, 9.8vw, 2.65rem); }
  .clients-heading > p:last-child { font-size: .92rem; }
  .client-logo { width: 148px; height: 80px; padding: 12px 14px; }

  .case-controls > div:first-child strong { font-size: .88rem; }
  .case-nav { gap: 7px; }
  .case-arrow { width: 40px; height: 40px; }
  .case-rail article { flex-basis: 88vw; }
  .case-badge { display: grid; justify-content: start; gap: 4px; }
  .case-badge strong { font-size: .62rem; }
  .case-rail dl { grid-template-columns: 1fr 1fr; }

  .lead-form { padding: 24px 20px; }
  .form-head { grid-template-columns: 1fr; }
  .form-head .form-brand { width: 64px; height: 64px; }
  .form-head .form-brand img { width: 46px; }
  .contact-method { grid-template-columns: 1fr; }
  .contact-method span { min-height: 44px; }
  .form-benefits { display: grid; grid-template-columns: 1fr; }
  .form-benefits span { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* === Premium refinement v4: normalized logos, fresh brand visuals and loader === */
.client-logo {
  overflow: hidden;
  contain: paint;
}

.client-logo img {
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 72%;
  object-fit: contain;
  object-position: center;
}

.client-logo--green img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
}

.visibility-visual--generated {
  min-height: 0;
  aspect-ratio: 1680 / 924;
  border-color: rgba(185, 132, 67, 0.3);
  background: #f4eee4;
  box-shadow:
    0 34px 92px rgba(54, 39, 24, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.48) inset;
}

.visibility-visual--generated::before {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.03), transparent 62%, rgba(20, 16, 13, 0.1)),
    linear-gradient(90deg, rgba(255,255,255,.05), transparent 26%, transparent 74%, rgba(255,255,255,.08));
}

.visibility-visual--generated::after {
  inset: 14px;
  border-color: rgba(255, 248, 239, 0.22);
}

.visibility-visual--generated img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.06) saturate(1.04) contrast(1.02);
}

.capabilities .capability-photo {
  isolation: isolate;
  min-height: 500px;
  padding: 10px;
}

.capabilities .capability-photo::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border-radius: calc(var(--radius-md) - 3px);
  background:
    linear-gradient(180deg, transparent 50%, rgba(10, 9, 9, 0.62)),
    linear-gradient(115deg, rgba(242, 211, 157, 0.08), transparent 34%);
  pointer-events: none;
}

.capabilities .capability-photo::after {
  content: "OZON · ОБЪЁМНЫЕ БУКВЫ";
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 30px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 248, 239, 0.22);
  border-radius: 999px;
  background: rgba(18, 16, 15, 0.5);
  color: rgba(255, 248, 239, 0.88);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  backdrop-filter: blur(14px);
}

.capability-photo img {
  min-height: 480px;
  object-position: 48% center;
  filter: brightness(1.04) contrast(1.03);
}

/* Premium dark loading screen */
.preloader {
  gap: 0;
  overflow: hidden;
  color: #fff8ef;
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 163, 95, 0.18), transparent 24rem),
    radial-gradient(circle at 20% 90%, rgba(122, 78, 37, 0.14), transparent 26rem),
    linear-gradient(135deg, #0d0b0a 0%, #17120f 46%, #0a0908 100%);
  transition: opacity 700ms var(--ease-soft), visibility 700ms var(--ease-soft), transform 700ms var(--ease-soft);
}

.preloader::before {
  inset: -10%;
  background-image:
    linear-gradient(rgba(242, 211, 157, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 211, 157, 0.045) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at center, #000 0 32%, transparent 72%);
  animation: gridDrift 24s linear infinite;
}

.preloader::after {
  width: min(84vw, 980px);
  aspect-ratio: 2.2 / 1;
  border-radius: 50%;
  background: linear-gradient(100deg, transparent 12%, rgba(242, 211, 157, 0.13) 50%, transparent 88%);
  filter: blur(34px);
  transform: rotate(-11deg);
  animation: preloadAura 3.8s var(--ease-soft) infinite alternate;
}

.preloader-stage {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(92vw, 620px);
  padding: clamp(38px, 6vw, 72px) clamp(26px, 5vw, 60px);
  border: 1px solid rgba(242, 211, 157, 0.16);
  border-radius: 42px 10px 42px 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    rgba(12, 10, 9, 0.46);
  box-shadow:
    0 46px 120px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  transition: transform 680ms var(--ease-soft), opacity 520ms ease;
}

.preloader-stage::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,211,157,.78), transparent);
  box-shadow: 0 0 24px rgba(242, 211, 157, 0.48);
}

.preloader-eyebrow,
.preloader-tagline {
  margin: 0;
  text-align: center;
}

.preloader-eyebrow {
  color: rgba(242, 211, 157, 0.74);
  font-size: clamp(0.62rem, 1.2vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.preloader .preloader-mark {
  position: relative;
  width: clamp(170px, 22vw, 260px);
  margin: clamp(26px, 4vw, 44px) 0 18px;
  animation: preloadLogo 2.4s var(--ease-soft) infinite alternate;
}

.preloader .preloader-mark::before {
  content: "";
  position: absolute;
  inset: 14% 5%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(212, 167, 105, 0.2);
  filter: blur(34px);
}

.preloader .preloader-mark img {
  filter: brightness(0) saturate(100%) invert(83%) sepia(30%) saturate(744%) hue-rotate(346deg) brightness(101%) contrast(89%) drop-shadow(0 0 28px rgba(212, 167, 105, 0.24));
}

.preloader-tagline {
  max-width: 410px;
  color: rgba(255, 248, 239, 0.76);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.42rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.preloader-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 16px;
  width: min(100%, 390px);
  margin-top: clamp(30px, 4vw, 44px);
}

.preloader .preloader-line {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.12);
}

.preloader .preloader-line::before {
  display: none;
}

.preloader .preloader-line i {
  display: block;
  width: var(--loader-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9d6d35, #f2d39d 70%, #fff5df);
  box-shadow: 0 0 22px rgba(242, 211, 157, 0.44);
  transition: width 180ms ease-out;
}

.preloader-progress strong {
  color: rgba(242, 211, 157, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
}

.preloader-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(242, 211, 157, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.preloader-orbit--one {
  width: min(76vw, 860px);
  aspect-ratio: 1;
  animation: loaderOrbit 18s linear infinite;
}

.preloader-orbit--two {
  width: min(48vw, 560px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: loaderOrbit 13s linear infinite reverse;
}

.preloader.is-hidden {
  transform: scale(1.025);
}

.preloader.is-hidden .preloader-stage {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
}

@keyframes loaderOrbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .visibility-visual--generated,
  .visibility-visual--generated img {
    min-height: 0;
  }

  .visibility-visual--generated {
    aspect-ratio: 1.22 / 1;
  }

  .visibility-visual--generated img {
    object-position: center;
  }

  .capabilities .capability-photo,
  .capability-photo img {
    min-height: 390px;
  }

  .preloader-stage {
    border-radius: 30px 8px 30px 8px;
  }
}

@media (max-width: 520px) {
  .client-logo img {
    max-width: 82%;
    max-height: 68%;
  }

  .visibility-visual--generated {
    aspect-ratio: 1 / 1.08;
  }

  .visibility-visual--generated img {
    object-fit: cover;
    object-position: 50% center;
  }

  .capabilities .capability-photo::after {
    left: 22px;
    bottom: 22px;
    font-size: 0.6rem;
  }

  .preloader-stage {
    width: min(92vw, 420px);
    padding: 34px 22px 30px;
  }

  .preloader-progress {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 12px;
  }
}

/* =========================================================
   AER premium refinement v5 — responsive repair and comparison UI
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body,
main,
section,
header,
footer,
.hero,
.hero-copy,
.hero-media,
.clients-heading,
.visibility-showcase,
.capabilities-grid,
.service-grid,
.case-rail,
.request,
.lead-form {
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

/* =========================================================
   V32 — desktop portfolio rail should not be clipped by section width
   ========================================================= */
@media (min-width: 1181px) {
  .case-board {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    overflow: visible;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 26px max(30px, calc((100vw - 1320px) / 2 + 30px)) 34px;
  }
}

@media (max-width: 1180px) {
  .case-board {
    width: 100%;
    max-width: 100%;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* =========================================================
   V33 — mobile section edge polish
   ========================================================= */
@media (max-width: 620px) {
  .capabilities.page-section,
  .cases.page-section,
  .request.page-section {
    width: calc(100% - 24px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .capabilities .section-intro h2,
  .cases .section-intro h2,
  .request-copy h2 {
    font-size: clamp(2.22rem, 10.4vw, 3.08rem);
    line-height: 1.02;
    letter-spacing: -0.032em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .capabilities .section-kicker,
  .cases .section-kicker,
  .request-copy > p:first-child {
    min-width: 0;
    overflow: hidden;
  }

  .case-board {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    padding: 22px 12px 28px;
    scroll-padding-inline: 12px;
  }

  .case-rail article {
    flex: 0 0 calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .request-photo,
  .lead-form {
    border-radius: 22px 7px 22px 7px;
  }
}

@media (max-width: 390px) {
  .capabilities .section-intro h2,
  .cases .section-intro h2,
  .request-copy h2 {
    font-size: clamp(2.04rem, 10.1vw, 2.62rem);
  }
}

/* =========================================================
   V33 — mobile section edge polish
   ========================================================= */
@media (max-width: 620px) {
  .capabilities.page-section,
  .cases.page-section,
  .request.page-section {
    width: calc(100% - 24px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .capabilities .section-intro h2,
  .cases .section-intro h2,
  .request-copy h2 {
    font-size: clamp(2.22rem, 10.4vw, 3.08rem);
    line-height: 1.02;
    letter-spacing: -0.032em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .capabilities .section-kicker,
  .cases .section-kicker,
  .request-copy > p:first-child {
    min-width: 0;
    overflow: hidden;
  }

  .case-board {
    margin-right: -12px;
    margin-left: -12px;
    width: calc(100% + 24px);
    max-width: calc(100% + 24px);
  }

  .case-rail {
    padding: 22px 12px 28px;
    scroll-padding-inline: 12px;
  }

  .case-rail article {
    flex-basis: calc(100% - 12px);
  }

  .request-photo,
  .lead-form {
    border-radius: 22px 7px 22px 7px;
  }
}

@media (max-width: 390px) {
  .capabilities .section-intro h2,
  .cases .section-intro h2,
  .request-copy h2 {
    font-size: clamp(2.04rem, 10.1vw, 2.62rem);
  }
}

/* =========================================================
   V31 — final mobile overflow and clipping repair
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

body {
  min-width: 320px;
}

main,
section,
header,
footer,
.section-band,
.page-section,
.clients-marquee,
.clients-heading,
.hero,
.capabilities-grid,
.service-grid,
.case-board,
.request,
.lead-form,
.footer-inner {
  max-width: 100%;
  min-width: 0;
}

.case-rail,
.logo-marquee,
.capabilities .check-panel ul {
  max-width: 100%;
  overscroll-behavior-x: contain;
}

.contact-method input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  .section-band,
  .page-section,
  .hero,
  .clients-heading {
    width: calc(100% - 24px);
  }

  .site-header,
  .site-header.is-scrolled {
    width: calc(100% - 20px);
  }

  .capabilities::before,
  .cases::before,
  .request::before {
    left: 0;
    right: 0;
    width: auto;
    transform: none;
  }

  .hero-media::before {
    inset: 9px 0 -7px 8px;
  }

  .hero-media::after {
    right: 8px;
    max-width: calc(100% - 18px);
  }

  .hero h1::after {
    display: none;
  }

  .lead-form,
  .lead-form * {
    min-width: 0;
  }

  .lead-form::after {
    display: none;
  }

  .map-loader-art,
  .map-loader-road,
  .map-loader-pin::after {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    overflow-wrap: anywhere;
  }

  .case-rail {
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0;
  }

  .case-rail article {
    flex-basis: min(100%, 366px);
  }

  .case-card-link {
    gap: 12px;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Logo cards must always contain the entire mark. */
.logo-marquee,
.logo-track,
.client-logo {
  box-sizing: border-box;
}

.client-logo {
  flex: 0 0 auto;
  overflow: hidden;
  isolation: isolate;
}

.client-logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 82% !important;
  max-height: 68% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.client-logo--green img {
  max-width: 90% !important;
  max-height: 84% !important;
}

/* Supplied Pyaterochka image with the previous premium before/after UI. */
.visibility-visual--comparison {
  min-height: 0;
  aspect-ratio: 1681 / 935;
  background: #ddd5ca;
  border-color: rgba(185, 132, 67, 0.34);
  box-shadow:
    0 34px 92px rgba(54, 39, 24, 0.16),
    inset 0 0 0 1px rgba(255,255,255,.36);
}

.visibility-visual--comparison::before {
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.16), transparent 29%, transparent 67%, rgba(14, 12, 10, 0.22)),
    linear-gradient(90deg, rgba(12, 10, 9, 0.09), transparent 18%, transparent 82%, rgba(12, 10, 9, 0.08));
}

.visibility-visual--comparison::after {
  inset: 16px;
  border-color: rgba(255, 248, 239, 0.25);
}

.visibility-visual--comparison img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.02) brightness(.98);
}

.visibility-visual--comparison .visual-label {
  max-width: 38%;
}

.visibility-visual--comparison .comparison-mark {
  left: 50%;
}

/* Form select: visible selected value and readable native dropdown options. */
.lead-form select {
  color: #fff8ef !important;
  -webkit-text-fill-color: #fff8ef;
  color-scheme: light;
  cursor: pointer;
}

.lead-form select:invalid {
  color: rgba(255, 248, 239, 0.64) !important;
  -webkit-text-fill-color: rgba(255, 248, 239, 0.64);
}

.lead-form select option {
  background: #fffaf3;
  color: #1a1512;
  font-weight: 600;
}

.lead-form select option:disabled {
  color: #82766c;
}

/* Tablet landscape and compact desktop. */
@media (max-width: 1180px) and (min-width: 821px) {
  .section-band,
  .page-section,
  .site-header {
    width: min(100% - 56px, 1480px);
  }

  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, .76fr);
    grid-template-areas:
      "copy media"
      "stats stats";
    column-gap: clamp(30px, 4vw, 58px);
    padding-top: 54px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(4rem, 7.1vw, 6.2rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero-actions .microcopy {
    max-width: 420px;
  }

  .clients-heading {
    width: min(100% - 56px, 1320px);
  }

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

  .diagnostic-grid article:nth-child(3) {
    border-right: 0;
  }

  .diagnostic-grid article:nth-child(n+4) {
    border-top: 1px solid rgba(23, 20, 16, 0.12);
  }

  .diagnostic-grid article:last-child {
    grid-column: span 2;
  }

  .capabilities-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 34px;
  }

  .capabilities .check-panel li {
    min-height: 104px;
    padding: 19px 16px 19px 48px;
  }

  .request {
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  }

  .request-copy {
    grid-column: 1 / -1;
  }

  .request-photo,
  .request-photo img,
  .lead-form {
    min-height: 560px;
  }
}

/* Phones and portrait tablets. */
@media (max-width: 820px) {
  .section-band,
  .page-section,
  .site-header {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 72px;
    padding: 14px 0 10px;
  }

  .brand-logo {
    width: 70px;
    max-height: 44px;
    object-fit: contain;
  }

  /* Keep the mobile visual on the right, but reserve a real grid column for it. */
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(124px, 33vw, 188px);
    grid-template-areas:
      "eyebrow eyebrow"
      "title media"
      "lead lead"
      "actions actions"
      "proof proof"
      "stats stats";
    align-items: start;
    column-gap: 14px;
    row-gap: 16px;
    width: calc(100% - 32px);
    padding-top: 30px;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    grid-area: eyebrow;
    max-width: 100%;
    margin: 0;
    font-size: .72rem;
    line-height: 1.45;
  }

  .hero h1 {
    grid-area: title;
    align-self: center;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(2.7rem, 11vw, 4rem);
    line-height: .9;
    letter-spacing: -.045em;
    text-wrap: balance;
  }

  .hero-media {
    position: relative;
    display: block;
    grid-area: media;
    align-self: center;
    width: 100%;
    min-width: 0;
    min-height: clamp(184px, 46vw, 270px);
    max-width: none;
  }

  .hero-media::before {
    display: block;
    inset: 10px -5px -8px 7px;
  }

  .hero .media-frame {
    width: 100%;
    height: 100%;
    min-height: clamp(184px, 46vw, 270px);
    aspect-ratio: .76 / 1;
  }

  .hero .media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
  }

  .hero .lead {
    grid-area: lead;
    max-width: 640px;
    margin: 4px 0 0;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    grid-area: actions;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 4px;
  }

  .hero-actions .primary-cta {
    width: 100%;
  }

  .hero-actions .microcopy {
    max-width: none;
  }

  .proof-row {
    grid-area: proof;
    width: 100%;
  }

  .stats {
    grid-area: stats;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    min-width: 0;
  }

  .clients-marquee {
    margin-top: 58px;
    padding: 48px 0 42px;
  }

  .clients-heading {
    width: calc(100% - 32px);
    gap: 12px;
  }

  .clients-heading h2 {
    max-width: 640px;
    font-size: clamp(2.2rem, 9.7vw, 3.5rem);
    line-height: .98;
  }

  .logo-marquee {
    padding-block: 8px;
  }

  .client-logo {
    width: 166px;
    height: 88px;
    padding: 12px 16px;
  }

  .benefits-intro,
  .service-intro,
  .cases-intro {
    grid-template-columns: 1fr;
  }

  .visibility-showcase {
    margin-top: 34px;
  }

  .visibility-visual--comparison {
    min-height: 0;
    aspect-ratio: 1681 / 935;
    border-radius: 24px 8px 24px 8px;
  }

  .visibility-visual--comparison::after {
    inset: 10px;
    border-radius: 18px 6px 18px 6px;
  }

  .visibility-visual--comparison .visual-label {
    top: 16px;
    min-width: 0;
    max-width: 43%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .visibility-visual--comparison .visual-label-bad {
    left: 16px;
  }

  .visibility-visual--comparison .visual-label-good {
    right: 16px;
  }

  .visibility-visual--comparison .visual-label span {
    font-size: .52rem;
  }

  .visibility-visual--comparison .visual-label strong {
    font-size: clamp(.72rem, 2.9vw, 1rem);
  }

  .visibility-visual--comparison .comparison-mark {
    width: 42px;
    height: 42px;
  }

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

  .diagnostic-grid article {
    min-height: 0;
    padding: 22px;
  }

  .diagnostic-grid article:nth-child(even) {
    border-right: 0;
  }

  .diagnostic-grid article:nth-child(n+3) {
    border-top: 1px solid rgba(23, 20, 16, 0.12);
  }

  .diagnostic-grid article:last-child {
    grid-column: 1 / -1;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .capabilities .section-intro h2 {
    font-size: clamp(2.35rem, 9vw, 3.4rem);
  }

  .capabilities .capability-photo,
  .capability-photo img {
    min-height: 360px;
  }

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

  .capabilities .check-panel li {
    min-height: 108px;
    padding: 18px 14px 18px 46px;
    font-size: .92rem;
  }

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

  .service-grid article {
    min-height: 410px;
    padding: 20px;
  }

  .case-controls {
    width: 100%;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-right: 16px;
    overscroll-behavior-inline: contain;
  }

  .case-rail article {
    flex-basis: min(82vw, 440px);
    min-width: 0;
  }

  .request {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .request-copy,
  .request-photo,
  .lead-form {
    min-width: 0;
  }

  .request-photo,
  .request-photo img {
    min-height: 390px;
  }

  .lead-form {
    width: 100%;
    min-height: 0;
    padding: 28px 24px;
  }

  .lead-form input,
  .lead-form select {
    min-width: 0;
  }

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

@media (max-width: 620px) {
  .section-band,
  .page-section,
  .site-header,
  .hero,
  .clients-heading {
    width: calc(100% - 24px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 116px;
    column-gap: 10px;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.6vw, 3.1rem);
    line-height: .92;
  }

  .hero-media,
  .hero .media-frame {
    min-height: 174px;
  }

  .hero-media::after {
    right: -2px;
    bottom: 10px;
    padding: 6px 7px;
    font-size: .46rem;
  }

  .proof-row {
    gap: 14px;
  }

  .proof-item {
    align-items: start;
  }

  .stats {
    margin-top: 8px;
  }

  .clients-heading h2,
  .section-intro h2,
  .request-copy h2,
  .capabilities .section-intro h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  .visibility-visual--comparison .visual-label {
    top: 11px;
    max-width: 45%;
    padding: 7px 9px;
  }

  .visibility-visual--comparison .visual-label-bad {
    left: 11px;
  }

  .visibility-visual--comparison .visual-label-good {
    right: 11px;
  }

  .visibility-visual--comparison .visual-label strong {
    font-size: .7rem;
  }

  .visibility-visual--comparison .comparison-mark {
    width: 34px;
    height: 34px;
  }

  .visibility-visual--comparison .comparison-mark::before,
  .visibility-visual--comparison .comparison-mark::after {
    width: 7px;
    height: 7px;
  }

  .diagnostic-grid,
  .check-panel ul,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    grid-column: auto;
    border-right: 0;
    border-top: 1px solid rgba(23, 20, 16, 0.12);
  }

  .diagnostic-grid article:first-child {
    border-top: 0;
  }

  .capabilities .capability-photo,
  .capability-photo img {
    min-height: 320px;
  }

  .service-grid article {
    min-height: 420px;
  }

  .case-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .case-controls > div:first-child {
    min-width: 0;
  }

  .case-controls > div:first-child strong {
    display: block;
    max-width: 190px;
    line-height: 1.15;
  }

  .case-rail article {
    flex-basis: calc(100vw - 40px);
  }

  .request-photo,
  .request-photo img {
    min-height: 320px;
  }

  .form-grid,
  .contact-method,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .form-head {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .form-head .form-brand {
    width: 62px;
    height: 62px;
  }

  .form-head .form-brand img {
    width: 44px;
  }

  .form-head h3 {
    font-size: clamp(1.55rem, 7.8vw, 2.05rem);
  }

  .form-benefits {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-benefits span {
    text-align: center;
  }
}

@media (max-width: 390px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 102px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11.4vw, 2.7rem);
  }

  .hero-media,
  .hero .media-frame {
    min-height: 160px;
  }

  .client-logo {
    width: 146px;
    height: 78px;
  }

  .visibility-visual--comparison .visual-label strong {
    display: none;
  }

  .visibility-visual--comparison .visual-label {
    width: auto;
  }

  .lead-form {
    padding: 24px 18px;
  }
}

.lead-form select option {
  -webkit-text-fill-color: #1a1512;
}

/* =========================================================
   AER premium refinement v6 — form, comparison and mobile air
   ========================================================= */

/* Clean, centered comparison control. */
.visibility-visual--comparison .comparison-mark {
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-color: rgba(255, 248, 239, 0.52);
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,.11), transparent 38%),
    rgba(31, 23, 19, 0.82);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    0 0 0 5px rgba(242, 211, 157, 0.08);
}

.visibility-visual--comparison .comparison-mark::before {
  content: "↔";
  display: block;
  width: auto;
  height: auto;
  border: 0;
  color: var(--gold-soft);
  font: 500 1.32rem/1 var(--font-studio);
  letter-spacing: 0;
  transform: translateY(-1px);
}

.visibility-visual--comparison .comparison-mark::after {
  display: none;
}

/* Custom premium project selector: no native white dropdown. */
.custom-select {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 9px;
}

.form-field-label {
  color: rgba(255,248,239,.62);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.custom-select__toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid rgba(255,248,239,.15);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.055)),
    rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  color: rgba(255,248,239,.68);
  font: 600 .98rem var(--font-studio);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.custom-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__chevron {
  justify-self: end;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease-out);
}

.custom-select.is-open .custom-select__toggle,
.custom-select__toggle:focus-visible {
  outline: none;
  border-color: rgba(242,211,157,.62);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 4px rgba(212,167,105,.1);
  color: var(--milk);
}

.custom-select.is-open .custom-select__chevron {
  transform: translateY(3px) rotate(225deg);
}

.custom-select.is-invalid .custom-select__toggle {
  border-color: rgba(255, 158, 126, .72);
  box-shadow: 0 0 0 4px rgba(255, 119, 84, .09);
}

.custom-select__menu {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 318px;
  overflow-y: auto;
  padding: 9px;
  border: 1px solid rgba(242,211,157,.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 5%, rgba(212,167,105,.16), transparent 13rem),
    linear-gradient(145deg, #1b1412, #2b1e1a);
  box-shadow:
    0 20px 54px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.055);
  scrollbar-width: thin;
  scrollbar-color: rgba(242,211,157,.4) transparent;
}

.custom-select.is-open .custom-select__menu {
  display: grid;
  animation: selectMenuIn 190ms var(--ease-out) both;
}

.custom-select__menu button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: rgba(255,248,239,.74);
  font: 650 .78rem/1.3 var(--font-studio);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.custom-select__menu button:hover,
.custom-select__menu button:focus-visible,
.custom-select__menu button.is-selected {
  outline: none;
  border-color: rgba(242,211,157,.26);
  background: rgba(242,211,157,.12);
  color: var(--gold-soft);
}

@keyframes selectMenuIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Three compact promises stay in one row, including on phones. */
.form-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.form-benefits span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 7px;
  border-radius: 14px;
  text-align: center;
}

.form-benefits i {
  color: var(--gold-soft);
  font-style: normal;
  font-size: .75rem;
  line-height: 1;
}

.form-benefits b {
  min-width: 0;
  color: rgba(255,248,239,.68);
  font-size: .68rem;
  font-weight: 720;
  line-height: 1.22;
}

/* More breathing room and less copy pressure on smaller devices. */
@media (max-width: 820px) {
  .page-section {
    padding-top: clamp(78px, 13vw, 112px);
  }

  .section-kicker {
    margin-bottom: 24px;
  }

  .benefits-intro {
    gap: 14px;
  }

  .benefits-intro p {
    max-width: 620px;
    font-size: .96rem;
    line-height: 1.55;
  }

  .diagnostic-grid {
    gap: 10px;
    border: 0;
  }

  .diagnostic-grid article {
    border: 1px solid rgba(23,20,16,.1) !important;
    border-radius: 16px 5px 16px 5px;
    background: rgba(255,255,255,.34);
  }

  .benefit-conclusion {
    display: grid;
    gap: 18px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(185,132,67,.16);
    border-radius: 20px 6px 20px 6px;
    background: rgba(255,255,255,.32);
  }

  .benefit-conclusion p {
    font-size: .94rem;
    line-height: 1.55;
  }

  .lead-form {
    gap: 16px;
  }

  .custom-select__menu {
    grid-template-columns: 1fr;
    max-height: 340px;
  }
}

@media (max-width: 620px) {
  /* Phone hero: full-width title card and a wide image below it. */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "media"
      "lead"
      "actions"
      "proof"
      "stats";
    row-gap: 17px;
    padding-top: 22px;
  }

  .hero .eyebrow {
    display: inline-flex;
    justify-self: start;
    width: auto;
    padding: 8px 11px;
    border: 1px solid rgba(185,132,67,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
    font-size: .66rem;
    letter-spacing: .1em;
  }

  .hero h1 {
    position: relative;
    overflow: hidden;
    align-self: auto;
    padding: 23px 20px 25px;
    border: 1px solid rgba(185,132,67,.19);
    border-radius: 25px 7px 25px 7px;
    background:
      radial-gradient(circle at 92% 12%, rgba(212,167,105,.19), transparent 9rem),
      linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,248,239,.42));
    box-shadow:
      0 20px 52px rgba(90,70,42,.1),
      inset 0 1px 0 rgba(255,255,255,.72);
    font-size: clamp(2.75rem, 13.2vw, 3.7rem);
    line-height: .93;
    letter-spacing: -.04em;
  }

  .hero h1::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(185,132,67,.12);
    border-radius: 50%;
  }

  .hero-media,
  .hero .media-frame {
    width: 100%;
    min-height: 220px;
  }

  .hero-media {
    margin-top: -3px;
  }

  .hero .media-frame {
    aspect-ratio: 16 / 9;
    border-radius: 26px 8px 26px 8px;
  }

  .hero .media-frame img {
    object-position: center 44%;
  }

  .hero-media::before {
    inset: 9px -5px -8px 8px;
  }

  .hero .lead {
    margin: 0;
    padding: 16px 17px;
    border: 1px solid rgba(185,132,67,.13);
    border-left: 3px solid rgba(212,167,105,.7);
    border-radius: 5px 16px 16px 5px;
    background: rgba(255,255,255,.32);
    font-size: .96rem;
    line-height: 1.58;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 1px;
  }

  .hero-actions .microcopy {
    padding: 0 4px;
    font-size: .83rem;
    line-height: 1.45;
  }

  .proof-row {
    gap: 9px;
    margin-top: 3px;
  }

  .proof-item {
    padding: 13px 14px;
    border: 1px solid rgba(185,132,67,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.3);
    font-size: .86rem;
    line-height: 1.42;
  }

  .stats {
    overflow: hidden;
    border: 1px solid rgba(185,132,67,.14);
    border-radius: 20px 6px 20px 6px;
    background: rgba(255,255,255,.24);
  }

  .stat {
    min-height: 82px;
    padding: 13px 11px;
  }

  .stat .line-icon {
    width: 34px;
    height: 34px;
  }

  .stat strong {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }

  .stat span:last-child {
    font-size: .75rem;
  }

  /* Mobile benefits: concise two-column cards; details stay on desktop. */
  .benefits .section-intro h2 {
    font-size: clamp(2.1rem, 10.5vw, 2.85rem);
    line-height: 1.02;
  }

  .visibility-showcase {
    gap: 16px;
    margin-top: 24px;
  }

  .visibility-visual--comparison {
    aspect-ratio: 1.24 / 1;
  }

  .visibility-visual--comparison img {
    object-position: center;
  }

  .visibility-visual--comparison .visual-label {
    max-width: 46%;
  }

  .visibility-visual--comparison .visual-label strong {
    display: none;
  }

  .visibility-visual--comparison .visual-label span {
    font-size: .58rem;
  }

  .visibility-visual--comparison .comparison-mark {
    width: 38px;
    height: 38px;
  }

  .visibility-visual--comparison .comparison-mark::before {
    font-size: 1rem;
  }

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

  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    grid-column: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    min-height: 84px;
    padding: 14px 12px;
  }

  .diagnostic-grid article:last-child {
    grid-column: 1 / -1;
  }

  .diagnostic-grid article > span {
    margin-top: 2px;
    font-size: .6rem;
  }

  .diagnostic-grid h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.1;
  }

  .diagnostic-grid p {
    display: none;
  }

  .benefit-conclusion {
    margin-top: 20px;
    padding: 17px;
  }

  .benefit-conclusion p {
    font-size: .88rem;
  }

  .benefit-conclusion .text-cta {
    width: 100%;
    justify-content: space-between;
  }

  /* Keep all three calculation inclusions on one compact line. */
  .form-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .form-benefits span {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 58px;
    padding: 7px 4px;
  }

  .form-benefits b {
    font-size: clamp(.56rem, 2.65vw, .65rem);
    line-height: 1.16;
  }

  .lead-form {
    padding: 24px 18px;
  }

  .custom-select__toggle {
    min-height: 56px;
    padding-inline: 15px;
    font-size: .9rem;
  }

  .custom-select__menu {
    max-height: 302px;
    padding: 7px;
  }

  .custom-select__menu button {
    min-height: 42px;
    padding: 9px 10px;
    font-size: .75rem;
  }

  /* General mobile rhythm: lighter cards and less vertical bulk. */
  .service-grid article {
    min-height: 365px;
  }

  .case-card-body {
    padding: 18px;
  }

  .request {
    gap: 20px;
  }

  .request-copy > p:last-child {
    margin-top: 12px;
    font-size: .94rem;
    line-height: 1.55;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    padding: 21px 17px 23px;
    font-size: clamp(2.5rem, 13vw, 3.15rem);
  }

  .hero-media,
  .hero .media-frame {
    min-height: 198px;
  }

  .lead-form {
    padding-inline: 15px;
  }

  .form-benefits span {
    padding-inline: 2px;
  }

  .form-benefits b {
    font-size: .55rem;
  }
}

/* Crisp bidirectional chevrons inside the comparison handle. */
.visibility-visual--comparison .comparison-mark::before {
  content: "";
  width: 25px;
  height: 16px;
  border: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M10 2 4 8l6 6M16 2l6 6-6 6' fill='none' stroke='%23f2d39d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: none;
}

.title-mobile { display: none; }

@media (max-width: 620px) {
  .benefits .title-desktop { display: none; }
  .benefits .title-mobile { display: inline; }
  .benefits .section-intro h2 {
    font-size: clamp(2rem, 9.7vw, 2.7rem);
    line-height: 1.02;
  }
  .custom-select__menu {
    max-height: none;
  }
}

/* =========================================================
   AER premium refinement v7 — desktop comparison alignment
   ========================================================= */
@media (min-width: 1025px) {
  .visibility-visual--comparison .comparison-mark {
    left: 51.7%;
  }
}

/* =========================================================
   AER premium refinement v8 — compact fifth card + overlay selector
   ========================================================= */

/* The project selector floats above the following form controls and no longer
   increases the form height when it opens. */
.custom-select {
  z-index: 30;
}

.custom-select.is-open {
  z-index: 80;
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  max-height: min(340px, 56vh);
  margin: 0;
  transform-origin: top center;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(242, 211, 157, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

@media (max-width: 620px) {
  /* The fifth diagnostic card now has the same width as every other card. */
  .diagnostic-grid article:last-child {
    grid-column: auto;
  }

  .custom-select__menu {
    max-height: min(330px, 58vh);
  }
}

/* =========================================================
   AER premium refinement v9 — cases, service labels and CTA clarity
   ========================================================= */

/* Separate the portfolio from neighbouring light sections with a calmer,
   slightly cooler warm-grey canvas. */
.cases::before {
  top: clamp(42px, 4.5vw, 72px);
  bottom: clamp(-70px, -4vw, -42px);
  background:
    radial-gradient(ellipse at 12% 18%, rgba(212, 167, 105, 0.20), transparent 30rem),
    radial-gradient(ellipse at 90% 78%, rgba(109, 91, 69, 0.10), transparent 32rem),
    linear-gradient(180deg, #eee9df 0%, #f3ede3 48%, #ebe4d8 100%);
  border-top: 1px solid rgba(142, 111, 73, 0.18);
  border-bottom: 1px solid rgba(142, 111, 73, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.62),
    inset 0 -1px 0 rgba(255,255,255,.42);
}

/* A soft gallery tray visually groups the scrolling project cards. */
.case-board {
  position: relative;
  isolation: isolate;
  padding-block: 14px 20px;
}

.case-board::before {
  content: "";
  position: absolute;
  inset: 0 -24px;
  z-index: -1;
  border: 1px solid rgba(142, 111, 73, 0.14);
  border-radius: 34px 10px 34px 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.46), rgba(224,214,199,.42)),
    rgba(235,228,216,.72);
  box-shadow:
    0 24px 70px rgba(83, 65, 44, 0.09),
    inset 0 1px 0 rgba(255,255,255,.68);
}

/* Give every project photo a dedicated mat instead of letting it touch the
   outer card edge. */
.case-placeholder {
  width: auto;
  margin: 14px 14px 0;
  border: 1px solid rgba(242, 211, 157, 0.22);
  border-radius: 21px 6px 21px 6px;
  background:
    linear-gradient(145deg, #1a1613, #2a211c);
  box-shadow:
    0 18px 44px rgba(31, 24, 18, 0.18),
    0 0 0 6px rgba(255,255,255,.22);
}

.case-rail article:nth-child(even) .case-placeholder {
  border-radius: 6px 21px 6px 21px;
}

/* Turn the project action into an unmistakable premium button. */
.case-card-link {
  min-height: 54px;
  margin-top: 20px;
  padding: 0 9px 0 20px;
  border: 1px solid rgba(185, 132, 67, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 244, 222, 0.98), rgba(226, 183, 115, 0.92));
  box-shadow:
    0 14px 30px rgba(132, 93, 44, 0.13),
    inset 0 1px 0 rgba(255,255,255,.72);
  color: #211a16;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, border-color 180ms ease;
}

.case-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(185,132,67,.5);
  box-shadow:
    0 18px 36px rgba(132, 93, 44, 0.19),
    inset 0 1px 0 rgba(255,255,255,.76);
}

.case-card-link span {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 0 0 1px rgba(116,77,31,.09);
}

/* Service titles are now framed glass labels, not loose white text. */
.service-grid h3 {
  width: fit-content;
  max-width: min(100%, 620px);
  margin: 0 0 12px;
  padding: 12px 16px 13px;
  border: 1px solid rgba(255, 248, 239, 0.24);
  border-radius: 15px 5px 15px 5px;
  background:
    linear-gradient(135deg, rgba(27,22,19,.70), rgba(52,39,31,.46));
  box-shadow:
    0 14px 34px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.service-grid article:nth-child(even) h3 {
  border-radius: 5px 15px 5px 15px;
}

/* Match the “Заявка” eyebrow to every other section name. */
.request-copy > p:first-child {
  display: grid;
  grid-template-columns: max-content minmax(40px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(100%, 760px);
  margin: 0 0 20px;
}

.request-copy > p:first-child::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(185,132,67,.68), rgba(185,132,67,.12), transparent);
}

@media (max-width: 768px) {
  .case-board {
    padding-block: 10px 14px;
  }

  .case-board::before {
    inset: 0 -10px;
    border-radius: 24px 7px 24px 7px;
  }

  .case-placeholder {
    margin: 10px 10px 0;
    border-radius: 17px 5px 17px 5px;
    box-shadow:
      0 14px 34px rgba(31,24,18,.16),
      0 0 0 4px rgba(255,255,255,.2);
  }

  .service-grid h3 {
    padding: 10px 12px 11px;
    border-radius: 13px 4px 13px 4px;
  }
}

@media (max-width: 620px) {
  .cases::before {
    top: 24px;
    bottom: -28px;
  }

  .case-card-link {
    min-height: 50px;
    padding-left: 16px;
    font-size: .78rem;
  }

  .case-card-link span {
    width: 34px;
    height: 34px;
  }

  .service-grid h3 {
    max-width: 100%;
    font-size: clamp(1.45rem, 7.2vw, 2rem);
  }

  .request-copy > p:first-child {
    gap: 12px;
    margin-bottom: 16px;
  }
}

/* =========================================================
   AER premium refinement v10 — reliable sticky header and
   visible desktop portfolio drag cursor
   ========================================================= */

/* `overflow-x: hidden` turns the page body into a scroll container in modern
   browsers and prevents `position: sticky` from following the viewport.
   `clip` keeps horizontal overflow contained without breaking the header. */
html,
body {
  overflow-x: clip;
}

body {
  overflow-y: visible;
}

/* Keep the navigation inside a floating, fully padded panel at the top and
   preserve its sticky movement while scrolling. */
.site-header {
  top: 10px;
  width: min(calc(100% - clamp(28px, 4vw, 64px)), 1480px);
  margin: 10px auto 0;
  padding: 18px clamp(18px, 1.8vw, 28px) 14px;
  border: 1px solid rgba(141, 105, 61, 0.14);
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.88);
  box-shadow:
    0 16px 46px rgba(83, 64, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  transition:
    top 220ms var(--ease-out),
    width 220ms var(--ease-out),
    padding 220ms var(--ease-out),
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    border-radius 220ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  width: min(calc(100% - clamp(20px, 3vw, 48px)), 1440px);
  margin-top: 10px;
  padding: 11px clamp(17px, 1.6vw, 24px);
  border: 1px solid rgba(185, 132, 67, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow:
    0 20px 58px rgba(72, 52, 32, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* Replace the almost invisible white grab hand with a dark branded cursor on
   desktop. Links retain their familiar pointer cursor. */
@media (hover: hover) and (pointer: fine) {
  .case-rail,
  .case-rail:active {
    cursor: url("assets/ui/portfolio-drag-cursor.png") 16 16, ew-resize;
  }

  .case-rail a,
  .case-rail button,
  .case-card-link {
    cursor: pointer;
  }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .site-header,
  .site-header.is-scrolled {
    width: min(calc(100% - 32px), 1480px);
    padding-inline: 18px;
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-header.is-scrolled {
    top: 8px;
    width: calc(100% - 20px);
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 16px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .map-loader-progress span,
  .map-loader-road::after,
  .map-loader-pin,
  .map-loader-pin::after,
  .map-loader-card small i {
    animation: none !important;
  }

  .map-loader-progress span {
    width: 72%;
    transform: none;
  }
}


/* =========================================================
   AER premium refinement v12 — cleaner mobile portfolio and
   balanced benefit labels
   ========================================================= */

/* Anchor navigation must stop below the floating mobile header. */
section[id] {
  scroll-margin-top: 118px;
}

.diagnostic-grid .label-mobile {
  display: none;
}

@media (max-width: 620px) {
  /* On phones the portfolio keeps only the project card itself. The wide
     gallery tray created a second visible underlay around a single card. */
  .case-board {
    padding-block: 0 8px;
  }

  .case-board::before {
    display: none;
  }

  .case-rail {
    padding-block: 4px 16px;
  }

  .case-rail article {
    box-shadow:
      0 18px 46px rgba(72, 54, 36, 0.11),
      inset 0 1px 0 rgba(255,255,255,.72);
  }

  /* The explanatory sentence repeats the five cards and crowded the top of
     the section under the sticky header, so it is removed on small screens. */
  .benefits-intro p {
    display: none;
  }

  .diagnostic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 24px 12px 15px;
    text-align: center;
  }

  /* The fifth card remains the same width as the others, but is centred in
     the final row instead of hanging against the left edge. */
  .diagnostic-grid article:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 10px) / 2);
    justify-self: center;
  }

  .diagnostic-grid article > span {
    position: absolute;
    top: 12px;
    left: 13px;
    margin: 0;
    font-size: .58rem;
    letter-spacing: .16em;
  }

  .diagnostic-grid article > div {
    width: 100%;
  }

  .diagnostic-grid h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25em;
    margin: 0;
    font-size: clamp(.95rem, 4.25vw, 1.08rem);
    line-height: 1.1;
    text-wrap: balance;
  }

  .diagnostic-grid .label-desktop {
    display: none;
  }

  .diagnostic-grid .label-mobile {
    display: inline;
  }

  .benefit-conclusion {
    gap: 15px;
    padding: 18px;
  }

  .benefit-conclusion p {
    margin: 0;
    font-size: .87rem;
    line-height: 1.5;
  }
}

@media (max-width: 390px) {
  section[id] {
    scroll-margin-top: 108px;
  }

  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    min-height: 90px;
    padding-inline: 9px;
  }

  .diagnostic-grid h3 {
    font-size: .92rem;
  }
}


/* =========================================================
   AER premium refinement v13 — restored diagnostic labels
   and cleaner portfolio cards
   ========================================================= */

/* Remove the decorative project numbering from portfolio cards. */
.case-rail article::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 620px) {
  /* Keep the original full labels, while giving every card the same
     visual rhythm and enough room for two balanced lines. */
  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    min-height: 108px;
    padding: 27px 10px 16px;
  }

  .diagnostic-grid article > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
  }

  .diagnostic-grid h3 {
    width: 100%;
    min-height: 2.35em;
    font-size: clamp(.88rem, 4.05vw, 1rem);
    line-height: 1.12;
    letter-spacing: -0.018em;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .diagnostic-grid article:last-child h3 {
    max-width: 9.5em;
    margin-inline: auto;
  }
}

@media (max-width: 390px) {
  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    min-height: 104px;
    padding-inline: 8px;
  }

  .diagnostic-grid h3 {
    font-size: .88rem;
  }
}

/* =========================================================
   AER premium refinement v14 — natural desktop cursor and
   portfolio rail alignment
   ========================================================= */

/* Project cards are informational; show the standard desktop cursor instead
   of the drag-hand graphic. The real CTA remains visibly clickable. */
@media (hover: hover) and (pointer: fine) {
  .case-rail,
  .case-rail:active,
  .case-rail article,
  .case-card-body,
  .case-rail dl,
  .case-rail dl * {
    cursor: default;
  }

  .case-rail a,
  .case-rail button,
  .case-card-link,
  .case-card-link * {
    cursor: pointer;
  }
}

/* On wide desktop screens the portfolio strip begins closer to the left edge,
   making the first project visible earlier while preserving horizontal scroll. */
@media (min-width: 1181px) {
  .case-rail {
    margin-left: clamp(-120px, -6vw, -64px);
    padding-left: 0;
  }
}

/* =========================================================
   AER premium refinement v15 — full-bleed portfolio rail
   and clean gallery background
   ========================================================= */

/* The former gallery tray created a second pale rounded rectangle beneath
   the project cards. Keep only the section canvas and the cards themselves. */
.case-board {
  padding-block: 0;
}

.case-board::before {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* On desktop, start the horizontal portfolio close to the viewport edge,
   while preserving the existing right-side overflow and scroll behaviour. */
@media (min-width: 1181px) {
  .case-rail {
    margin-left: calc((100vw - 100%) / -2 + clamp(18px, 2vw, 36px));
    padding-left: 0;
  }
}

/* V17 — desktop hero artwork alignment: move the facade artwork left so the soft fade stays clear of the AER letters. */
@media (min-width: 821px) {
  .hero .media-frame img {
    object-position: 78% center;
  }

  .hero .media-frame::after {
    background:
      linear-gradient(90deg, transparent 74%, var(--bg) 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 24%);
  }
}


/* =========================================================
   AER premium refinement v18 — new hero artwork + tidy
   mobile capability checks
   ========================================================= */

/* The new hero artwork already has the volumetric sign centred in-frame.
   Neutral object positioning keeps the lettering clear of the soft blend. */
@media (min-width: 821px) {
  .hero .media-frame img {
    object-position: center center;
  }
}

@media (max-width: 620px) {
  /* Keep the compact horizontal benefits rail, but make every check mark
     and label share the same optical centre and readable left edge. */
  .capabilities .check-panel ul {
    display: flex;
    gap: 10px;
    padding: 0 0 8px;
  }

  .capabilities .check-panel li {
    display: flex;
    flex: 0 0 calc(100% - 14px);
    align-items: center;
    min-height: 94px;
    padding: 16px 18px 16px 52px;
    line-height: 1.32;
    text-align: left;
    scroll-snap-align: start;
  }

  .capabilities .check-panel li::before {
    left: 19px;
    top: 50%;
    margin: 0;
    transform: translateY(-62%) rotate(-45deg);
    transform-origin: center;
  }
}

/* =========================================================
   AER premium refinement v19 — current contacts + legal docs
   ========================================================= */
.footer-phone-secondary {
  margin-top: -4px;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
}
.footer-contact-hours {
  display: block;
  margin-top: -8px;
  color: rgba(255, 248, 239, 0.58);
  font-family: var(--font-studio);
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-contact-hours--always { color: var(--gold-soft); }
.footer-legal-button { text-decoration: none; }
@media (max-width: 820px) {
  .footer-phone-secondary { margin-top: 0; }
  .footer-contact-hours { margin-top: -2px; }
}

/* V20: explicit personal-data consent checkbox */
.form-consent {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px !important;
  margin: 2px 0 0;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.45;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

.lead-form .form-consent > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.form-consent__box {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid rgba(185, 132, 67, 0.5);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 7px 18px rgba(90, 70, 42, 0.07);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.form-consent__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0.7);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-consent > input[type="checkbox"]:checked + .form-consent__box {
  border-color: rgba(185, 132, 67, 0.9);
  background: linear-gradient(135deg, #c99754, #e4ba78);
  box-shadow: 0 7px 18px rgba(185, 132, 67, 0.2);
}

.form-consent > input[type="checkbox"]:checked + .form-consent__box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.form-consent > input[type="checkbox"]:focus-visible + .form-consent__box {
  outline: 3px solid rgba(212, 167, 105, 0.22);
  outline-offset: 2px;
}

.form-consent__text a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(185, 132, 67, 0.45);
  text-underline-offset: 3px;
}

.form-consent__text a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 640px) {
  .form-consent {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px !important;
    font-size: 0.76rem !important;
  }

  .form-consent__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .form-consent__box::after {
    left: 6px;
    top: 2px;
  }
}

/* V23: new supplied AER logo proportions. */
.brand-logo {
  width: clamp(72px, 5.2vw, 92px);
  height: 62px;
  object-fit: contain;
}
.footer .brand-logo {
  width: 76px;
  height: 58px;
}
.preloader-mark img,
.form-head .form-brand img,
.map-loader-mark img {
  object-fit: contain;
}
@media (max-width: 820px) {
  .brand-logo {
    width: 70px;
    height: 48px;
    max-height: 48px;
  }
}

/* =========================================================
   V25 — aligned contact numbers + second header phone
   ========================================================= */
.header-phones {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.header-phones .phone-link {
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.footer-phone-list {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
}
.footer-phone-list .footer-phone {
  display: block;
  width: max-content;
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.footer-phone-list .footer-contact-hours {
  margin: -1px 0 4px;
}
.footer-phone-list .footer-contact-hours--always {
  margin-bottom: 0;
}

.mobile-phones {
  display: grid;
  gap: 5px;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .header-phones { gap: 1px; }
  .header-phones .phone-link { font-size: .86rem; }
}

@media (max-width: 820px) {
  .footer-phone-list .footer-phone {
    font-size: clamp(1rem, 4.4vw, 1.16rem);
  }
}

/* =========================================================
   V26 — footer contact typography refinement
   ========================================================= */
.footer .footer-phone-list {
  gap: 6px !important;
}

.footer .footer-phone-list .footer-phone {
  color: var(--text);
  font-family: var(--font-studio);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: 0;
  text-decoration: none;
  border-bottom-color: rgba(23, 20, 16, 0.16);
}

.footer .footer-phone-list .footer-contact-hours {
  color: var(--muted);
  font-family: var(--font-studio);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.055em;
  opacity: 1;
}

.footer .footer-phone-list .footer-contact-hours--always {
  color: var(--accent-deep);
  font-weight: 850;
  letter-spacing: 0.065em;
}

@media (max-width: 820px) {
  .footer .footer-phone-list .footer-phone {
    font-size: 0.98rem;
  }

  .footer .footer-phone-list .footer-contact-hours {
    font-size: 0.73rem;
  }
}


/* =========================================================
   V28 — footer phone cleanup
   ========================================================= */
.footer .footer-phone-list .footer-phone {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  justify-content: flex-start !important;
}


/* =========================================================
   V30 — prevent page-wide horizontal panning without clipping sections
   ========================================================= */
/* Clip only at the root viewport. Section-level clipping from V29 caused
   wide desktop compositions and shadows to be visibly cut off. */
html {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  max-width: 100%;
  overflow-x: visible;
  overscroll-behavior-x: none;
}

/* Keep genuine horizontal carousels self-contained. */
.case-rail,
.clients-track,
.services-track {
  overscroll-behavior-x: contain;
}

/* Phones/tablets should never use the desktop full-bleed negative margins
   on the portfolio rail. The rail itself remains horizontally scrollable. */
@media (max-width: 1180px) {
  .case-rail {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Defensive sizing for media inside responsive sections. */
img,
video,
svg,
canvas {
  max-width: 100%;
}

/* =========================================================
   V32 — desktop portfolio rail should not be clipped by section width
   ========================================================= */
@media (min-width: 1181px) {
  .case-board {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    overflow: visible;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 26px max(30px, calc((100vw - 1320px) / 2 + 30px)) 34px;
  }
}

@media (max-width: 1180px) {
  .case-board {
    width: 100%;
    max-width: 100%;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
/* =========================================================
   V34 — final mobile edge override
   ========================================================= */
@media (max-width: 620px) {
  .capabilities.page-section,
  .cases.page-section,
  .request.page-section {
    width: calc(100% - 24px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .capabilities .section-intro h2,
  .cases .section-intro h2,
  .request-copy h2 {
    font-size: clamp(2.22rem, 10.4vw, 3.08rem);
    line-height: 1.02;
    letter-spacing: -0.032em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .capabilities .section-kicker,
  .cases .section-kicker,
  .request-copy > p:first-child {
    min-width: 0;
    overflow: hidden;
  }

  .case-board {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    padding: 22px 12px 28px;
    scroll-padding-inline: 12px;
  }

  .case-rail article {
    flex: 0 0 calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .request-photo,
  .lead-form {
    border-radius: 22px 7px 22px 7px;
  }
}

@media (max-width: 390px) {
  .capabilities .section-intro h2,
  .cases .section-intro h2,
  .request-copy h2 {
    font-size: clamp(2.04rem, 10.1vw, 2.62rem);
  }
}
/* =========================================================
   V35 — mobile full-bleed section backgrounds
   ========================================================= */
@media (max-width: 620px) {
  .capabilities.page-section,
  .cases.page-section {
    width: 100%;
    max-width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  .capabilities::before,
  .cases::before {
    left: 0;
    right: 0;
    width: auto;
    transform: none;
  }

  .capabilities-grid,
  .cases-intro,
  .case-controls {
    min-width: 0;
  }

  .case-board {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .case-rail {
    padding-right: 0;
    padding-left: 0;
    scroll-padding-inline: 0;
  }

  .case-rail article {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* =========================================================
   V36 — no pale gutters on mobile color sections
   ========================================================= */
@media (max-width: 620px) {
  .capabilities.page-section,
  .cases.page-section {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }

  .capabilities {
    background:
      radial-gradient(ellipse at 22% 18%, rgba(212, 167, 105, 0.2), transparent 30rem),
      radial-gradient(ellipse at 86% 78%, rgba(115, 81, 38, 0.22), transparent 26rem),
      linear-gradient(132deg, #1a1514 0%, #231917 50%, #2f211f 100%);
  }

  .cases {
    background:
      radial-gradient(ellipse at 18% 26%, rgba(212, 167, 105, 0.16), transparent 30rem),
      linear-gradient(180deg, rgba(255, 250, 243, 0.28), rgba(255, 246, 232, 0.72));
  }

  .capabilities::before,
  .cases::before {
    display: none;
  }
}

/* =========================================================
   V37 - stable mobile edges and CTA clearance
   ========================================================= */
@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
  }

  body {
    min-width: 0;
  }

  main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .capabilities.page-section,
  .cases.page-section,
  .request.page-section {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: clamp(16px, 4.4vw, 24px);
    padding-left: clamp(16px, 4.4vw, 24px);
  }

  .capabilities.page-section {
    padding-bottom: clamp(44px, 12vw, 72px);
  }

  .cases.page-section {
    padding-bottom: clamp(34px, 10vw, 56px);
  }

  .request.page-section {
    padding-top: clamp(72px, 13vw, 96px);
    padding-bottom: clamp(34px, 10vw, 56px);
    background: linear-gradient(135deg, var(--bg-soft), var(--bg));
  }

  .capabilities-grid,
  .cases-intro,
  .case-controls,
  .case-board,
  .request-copy,
  .request-photo,
  .lead-form {
    width: 100%;
    max-width: 100%;
  }

  .capabilities .check-panel {
    gap: clamp(20px, 5vw, 28px);
  }

  .capabilities .check-panel ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .capabilities .check-panel li {
    flex: initial;
    width: 100%;
    min-height: 72px;
    scroll-snap-align: none;
  }

  .capabilities .secondary-cta {
    min-height: 58px;
    margin-top: 4px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: clamp(22px, 6vw, 30px);
    padding-right: 12px;
    transform: none;
  }

  .capabilities .secondary-cta span {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: 12px;
  }

  .case-rail {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    overflow-x: auto;
  }

  .case-rail article {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   V38 - fixed floating header and uncut desktop phones
   ========================================================= */
.site-header,
.site-header.is-scrolled {
  position: fixed;
  left: 50%;
  z-index: 1000;
  margin: 0;
  transform: translateX(-50%);
}

.site-header {
  top: 16px;
  grid-template-columns:
    minmax(206px, max-content)
    minmax(340px, 1fr)
    minmax(178px, max-content)
    max-content;
  width: min(calc(100% - clamp(32px, 7vw, 128px)), 1480px);
}

.site-header.is-scrolled {
  top: 10px;
  width: min(calc(100% - clamp(24px, 5vw, 96px)), 1440px);
  transform: translateX(-50%);
}

.site-header + main {
  padding-top: clamp(118px, 8vw, 136px);
}

.header-contact,
.header-phones,
.header-phones .phone-link {
  min-width: max-content;
  overflow: visible;
}

.header-contact {
  justify-self: end;
  min-width: 178px;
  text-align: right;
}

.header-phones {
  justify-items: end;
}

.header-phones .phone-link {
  width: max-content;
  color: var(--text);
  text-align: right;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .site-header,
  .site-header.is-scrolled {
    width: min(calc(100% - 32px), 1480px);
    grid-template-columns: minmax(188px, max-content) minmax(0, 1fr) max-content;
  }

  .site-header + main {
    padding-top: 112px;
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-header.is-scrolled {
    top: 8px;
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
  }

  .site-header + main {
    padding-top: 96px;
  }
}

/* =========================================================
   V39 - loader priority and readable phone links
   ========================================================= */
.preloader {
  z-index: 10000;
}

body.is-loading .site-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-contact {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: end;
  align-items: start;
  gap: 4px;
  min-width: 196px;
  overflow: visible;
  color: var(--text);
}

.header-phones,
.footer-phone-list {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  min-width: max-content;
  overflow: visible;
}

.header-phones {
  justify-items: end;
}

.phone-link,
.footer-phone-list .footer-phone {
  position: relative;
  z-index: 3;
  display: inline-block;
  width: max-content;
  max-width: none;
  min-width: max-content;
  overflow: visible;
  color: #171410 !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
  white-space: nowrap;
  text-align: right;
  -webkit-text-fill-color: #171410;
  -webkit-mask-image: none;
  mask-image: none;
}

.phone-link small,
.phone-link small *,
.mobile-phone small,
.mobile-phone small *,
.footer-phone-list .footer-phone small,
.footer-phone-list .footer-phone small * {
  opacity: 1 !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.messengers {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  width: 100%;
  min-width: max-content;
  overflow: visible;
}

.footer-contacts,
.footer-phone-list {
  min-width: max-content;
}

.footer-phone-list {
  width: max-content;
  justify-items: start;
}

.footer-phone-list .footer-contact-hours {
  width: max-content;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .site-header .header-contact {
    display: none;
  }
}

@media (max-width: 820px) {
  .footer-contacts,
  .footer-phone-list,
  .footer-phone-list .footer-phone,
  .footer-phone-list .footer-contact-hours {
    min-width: 0;
    width: max-content;
    max-width: 100%;
  }
}

/* =========================================================
   V40 - remove divider layer before request section
   ========================================================= */
.request::before {
  display: none;
}

.cases::before {
  bottom: 0;
  border-bottom: 0;
}

/* =========================================================
   V41 - restore mobile header layout
   ========================================================= */
@media (max-width: 820px) {
  .site-header,
  .site-header.is-scrolled {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
  }

  .site-header .brand {
    min-width: 0;
    max-width: 100%;
    justify-self: start;
  }

  .site-header .brand-caption,
  .site-header .main-nav,
  .site-header .header-contact,
  .site-header .header-cta {
    display: none;
  }

  .site-header .menu-toggle {
    display: grid;
    grid-column: 2;
    justify-self: end;
    width: 46px;
    height: 46px;
  }
}

/* =========================================================
   V42 - native mobile zoom and inline diagnostic numbers
   ========================================================= */
html,
body {
  touch-action: pan-x pan-y pinch-zoom;
}

@media (max-width: 620px) {
  html,
  body {
    overscroll-behavior-x: auto;
  }

  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 82px;
    padding: 16px 14px;
    text-align: left;
  }

  .diagnostic-grid article > span {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    color: var(--accent);
    font-size: .62rem;
    line-height: 1;
    letter-spacing: .12em;
  }

  .diagnostic-grid article > div {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
  }

  .diagnostic-grid h3 {
    justify-content: flex-start;
    width: auto;
    min-height: 0;
    margin: 0;
    font-size: clamp(.9rem, 3.9vw, 1rem);
    line-height: 1.12;
    text-align: left;
    text-wrap: balance;
  }

  .diagnostic-grid article:last-child h3 {
    max-width: none;
    margin-inline: 0;
  }
}

@media (max-width: 390px) {
  .diagnostic-grid article,
  .diagnostic-grid article:last-child {
    min-height: 78px;
    padding: 15px 12px;
  }

  .diagnostic-grid h3 {
    font-size: .88rem;
  }
}
