/* =========================================================
   BimmerWork — BMW-inspired presentational site
   Fonts: Inter (stand-in for BMW TypeNext)
   Palette: BMW blue · deep black · bone white · M stripe
   ========================================================= */

:root {
  /* Palette */
  --bw-black: #0B0B0D;
  --bw-ink:   #121217;
  --bw-ink-2: #1A1A21;
  --bw-line:  rgba(255,255,255,.08);
  --bw-line-dark: rgba(10,10,12,.08);
  --bw-white: #FFFFFF;
  --bw-bone:  #F5F5F3;
  --bw-stone: #E7E7E5;
  --bw-grey-500: #7A7A82;
  --bw-grey-700: #4B4B52;

  --bw-blue:  #1C69D4;
  --bw-blue-deep: #0C3F8C;
  --bw-blue-soft: #2E86F7;

  /* M stripe — classic BMW Motorsport tricolor: light blue, dark blue, red */
  --m-blue:   #2E86F7;
  --m-navy:   #0B2A68;
  --m-red:    #E22718;

  /* Type */
  --ff: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ----- Base ----- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  font-weight: 400;
  color: var(--bw-ink);
  background: var(--bw-bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- M signature stripe ----- */
.m-stripe {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200;
  display: flex;
  pointer-events: none;
}
.m-stripe span { flex: 1; }
.m-stripe span:nth-child(1) { background: var(--m-blue); }
.m-stripe span:nth-child(2) { background: var(--m-navy); }
.m-stripe span:nth-child(3) { background: var(--m-red); }

/* ----- Navigation ----- */
.nav {
  position: fixed; top: 3px; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,11,13,.65);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--bw-white);
  border-bottom: 1px solid var(--bw-line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  letter-spacing: .01em;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* logo image is dark on black — lift it so it reads on all nav states */
  filter: brightness(1.05) contrast(1.1);
}
.nav__wordmark {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1;
}

.nav__links {
  display: flex; justify-content: center; gap: 2px;
}
.nav__links a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255,255,255,.82);
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.06); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: #fff; color: #0B0B0D;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--bw-blue); color: #fff; transform: translateY(-1px); }
.nav__cta svg { transition: transform .3s var(--ease); }
.nav__cta:hover svg { transform: translateX(3px); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 3px auto;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* Nav scrolled state */
.nav.is-scrolled {
  background: rgba(11,11,13,.9);
}

/* ----- Typography ----- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 600;
  color: var(--bw-grey-500);
  margin: 0 0 22px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 18px; height: 1px; background: currentColor;
  transform: translateY(-50%);
}
.eyebrow--light { color: rgba(255,255,255,.75); }

.h-display {
  font-size: clamp(44px, 6.8vw, 108px);
  line-height: .98;
  letter-spacing: -0.028em;
  font-weight: 300;
  margin: 0 0 28px;
  color: var(--bw-black);
}
.h-display .muted { color: var(--bw-grey-500); font-weight: 300; }
.h-display .italic { font-style: italic; font-weight: 300; }
.h-display--light { color: #fff; }
.h-display--light .muted { color: rgba(255,255,255,.55); }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--bw-ink);
  font-weight: 400;
  margin: 0 0 18px;
  max-width: 56ch;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--bw-blue); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(28,105,212,.55);
}
.btn--primary:hover { background: var(--bw-blue-deep); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(10,10,12,.18);
  color: var(--bw-black);
}
.btn--ghost:hover { background: var(--bw-black); color: #fff; border-color: var(--bw-black); }
.hero .btn--ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: #000; border-color: #fff; }
.btn--light {
  background: #fff; color: var(--bw-black);
}
.btn--light:hover { background: var(--bw-blue); color: #fff; transform: translateY(-2px); }
.btn--link {
  padding: 10px 0;
  font-weight: 600;
  color: var(--bw-black);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn--link:hover { color: var(--bw-blue); }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 120px var(--gutter) 60px;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--bw-black);
}
.hero__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 78% 22%, rgba(28,105,212,.28), transparent 60%),
    radial-gradient(900px 500px at 8% 70%, rgba(122,45,122,.18), transparent 60%),
    linear-gradient(180deg, #0A0A0C 0%, #0F1016 50%, #06070A 100%);
}
.hero__glow {
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(60% 40% at 75% 30%, rgba(46,134,247,.22) 0%, transparent 70%);
  filter: blur(30px);
  animation: drift 18s var(--ease) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%,2%,0) scale(1.05); }
}
.hero__road {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 80px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  opacity: .55;
}
.hero__content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  font-size: clamp(52px, 9vw, 148px);
  line-height: .95;
  letter-spacing: -0.035em;
  font-weight: 200;
  margin: 14px 0 28px;
  color: #fff;
}
.hero__title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(90deg, var(--m-blue) 0%, var(--bw-blue-soft) 50%, #fff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .dot { color: var(--bw-blue-soft); }
.hero__lede {
  max-width: 58ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(255,255,255,.78);
  margin: 0 0 36px;
  line-height: 1.55;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}

.hero__meta {
  position: absolute; right: var(--gutter); bottom: 60px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__meta-item { display: flex; align-items: center; gap: 12px; }
.hero__meta-k { font-weight: 600; color: rgba(255,255,255,.85); }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 60px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero__scroll svg { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* ----- Ticker ----- */
.ticker {
  background: var(--bw-black);
  color: rgba(255,255,255,.85);
  border-top: 1px solid var(--bw-line);
  border-bottom: 1px solid var(--bw-line);
  overflow: hidden;
  padding: 16px 0;
}
.ticker__track {
  display: flex; align-items: center; gap: 26px;
  white-space: nowrap;
  animation: ticker 12s linear infinite;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.ticker__track span { flex: 0 0 auto; }
.dot-sep { color: var(--bw-blue); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- About ----- */
.about {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bw-bone);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.two-col--wide { grid-template-columns: 1fr 1fr; }
.two-col__right p { color: var(--bw-grey-700); line-height: 1.7; }

.stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(10,10,12,.1);
}
.stat { position: relative; }
.stat__num {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--bw-black);
  display: inline-block;
}
.stat__suffix {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 300;
  color: var(--bw-blue);
  margin-left: 2px;
}
.stat__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--bw-grey-500);
  letter-spacing: .04em;
}

/* ----- Section heads ----- */
.section-head {
  max-width: 900px;
  margin: 0 0 64px;
}
.section-head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; max-width: none;
}

/* ----- Services ----- */
.services {
  padding: clamp(80px, 10vw, 140px) 0;
  background: #fff;
  border-top: 1px solid rgba(10,10,12,.05);
  border-bottom: 1px solid rgba(10,10,12,.05);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(10,10,12,.08);
  border: 1px solid rgba(10,10,12,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc {
  background: #fff;
  padding: 40px 32px 36px;
  position: relative;
  transition: background .35s var(--ease);
  display: flex; flex-direction: column;
  min-height: 360px;
}
.svc:hover { background: var(--bw-bone); }
.svc__num {
  position: absolute; top: 20px; right: 24px;
  font-size: 11px; letter-spacing: .2em;
  color: var(--bw-grey-500);
  font-weight: 600;
}
.svc__icon {
  color: var(--bw-blue);
  margin-bottom: 28px;
  transition: transform .4s var(--ease);
}
.svc:hover .svc__icon { transform: translateY(-3px); }
.svc__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.svc__desc {
  color: var(--bw-grey-700);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.svc__list {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(10,10,12,.08);
  display: grid; gap: 8px;
  font-size: 13px;
  color: var(--bw-ink);
}
.svc__list li {
  padding-left: 18px;
  position: relative;
}
.svc__list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--bw-blue);
}

.svc--feature {
  background: var(--bw-black);
  color: #fff;
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .svc--feature { grid-column: span 2; }
}
@media (max-width: 720px) {
  .svc--feature { grid-column: span 1; }
}
.svc--feature:hover { background: #141420; }
.svc--feature .svc__num { color: rgba(255,255,255,.5); }
.svc--feature .svc__title { font-weight: 300; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.svc--feature .svc__desc { color: rgba(255,255,255,.7); }
.svc--feature .btn { margin-top: auto; align-self: flex-start; }

/* ----- Process steps ----- */
.process {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bw-bone);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 2%; right: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,10,12,.2) 20%, rgba(10,10,12,.2) 80%, transparent);
}
.step {
  position: relative;
  padding-top: 56px;
}
.step::before {
  content: "";
  position: absolute; top: 24px; left: 0;
  width: 12px; height: 12px;
  background: var(--bw-black);
  border: 3px solid var(--bw-bone);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(10,10,12,.15);
}
.step:first-child::before { background: var(--bw-blue); box-shadow: 0 0 0 1px var(--bw-blue); }
.step__k {
  font-size: 11px; letter-spacing: .22em; font-weight: 600;
  color: var(--bw-grey-500);
  margin-bottom: 6px;
}
.step h3 {
  font-size: 17px; font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--bw-grey-700);
  line-height: 1.6;
  margin: 0;
}

/* ----- Feature banner ----- */
.feature {
  position: relative;
  padding: clamp(100px, 12vw, 160px) 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.feature__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 500px at 15% 30%, rgba(28,105,212,.35), transparent 60%),
    radial-gradient(800px 400px at 85% 70%, rgba(228,33,24,.15), transparent 60%),
    linear-gradient(180deg, #07080B 0%, #0E1018 100%);
}
.feature__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 60% at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 50%, #000 0%, transparent 70%);
}
.feature__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.feature__item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 28px 24px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.feature__item:hover {
  transform: translateY(-4px);
  border-color: rgba(28,105,212,.5);
  background: rgba(28,105,212,.08);
}
.feature__k {
  font-size: 11px; letter-spacing: .22em;
  color: var(--bw-blue-soft);
  font-weight: 600;
  margin-bottom: 20px;
}
.feature__item h3 {
  font-size: 18px; font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.feature__item p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin: 0;
  line-height: 1.6;
}

/* ----- Gallery ----- */
.gallery {
  padding: clamp(80px, 10vw, 140px) 0;
  background: #fff;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bw-stone);
  grid-column: span 2;
}
.gallery__item--hero { grid-column: span 4; grid-row: span 2; }
.gallery__item--portrait { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 4; }

.gallery__btn {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; margin: 0;
  border: 0; background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.gallery__btn:focus-visible {
  outline: 2px solid var(--bw-blue);
  outline-offset: -2px;
}
.gallery__btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out);
}
.gallery__item:hover .gallery__btn img,
.gallery__btn:focus-visible img { transform: scale(1.05); }

.gallery__item figcaption {
  position: absolute; left: 18px; bottom: 14px; right: 18px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  pointer-events: none;
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: .9;
  transition: opacity .4s var(--ease-out);
}
.gallery__item:hover::after { opacity: 1; }

/* ----- Lightbox ----- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(8, 9, 12, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__stage {
  position: relative;
  margin: 0;
  max-width: min(1400px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(.985);
  transition: transform .35s var(--ease-out);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: #111;
}
.lightbox__caption {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox__counter {
  color: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease-out), transform .2s var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid var(--bw-blue);
  outline-offset: 2px;
}
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(2px); }

@media (max-width: 720px) {
  .lightbox { padding: 12px; }
  .lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__img { max-height: 72vh; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__stage, .gallery__btn img, .gallery__item::after {
    transition: none;
  }
}

/* ----- Quotes carousel ----- */
.quotes {
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
  background: var(--bw-bone);
  border-top: 1px solid rgba(10,10,12,.05);
  overflow: hidden;
}
.quotes__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.quotes__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: quotes-scroll 60s linear infinite;
}
.quotes:hover .quotes__track { animation-play-state: paused; }
@keyframes quotes-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.q-card {
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 460px);
  margin: 0;
  background: #fff;
  border: 1px solid rgba(10,10,12,.08);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  box-shadow: 0 1px 0 rgba(10,10,12,.04);
  display: flex; flex-direction: column;
  min-height: 260px;
}
.q-card__mark {
  display: block;
  font-size: 72px;
  line-height: .6;
  height: 36px;
  color: var(--bw-blue);
  font-weight: 300;
  margin-bottom: 4px;
}
.q-card blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bw-ink);
  font-weight: 400;
  letter-spacing: -.005em;
  flex: 1;
}
.q-card figcaption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(10,10,12,.08);
  display: flex; gap: 10px; align-items: center;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bw-grey-500);
  font-weight: 500;
}
.q-card figcaption strong {
  color: var(--bw-black);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ----- Contact ----- */
.contact {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bw-black);
  color: #fff;
}
.contact .eyebrow { color: rgba(255,255,255,.65); }
.contact .h-display { color: #fff; }
.contact .h-display .muted { color: rgba(255,255,255,.45); }
.contact .lede { color: rgba(255,255,255,.72); }

.contact-card {
  background: #13131A;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid; gap: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: baseline;
}
.contact-row:first-child { padding-top: 4px; }
.contact-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.contact-k {
  font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}
.contact-v {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  line-height: 1.45;
}
.contact-v .muted { color: rgba(255,255,255,.45); }
a.contact-v { transition: color .3s var(--ease); }
a.contact-v:hover { color: var(--bw-blue-soft); }

.contact-v--map {
  display: inline-block;
  position: relative;
  padding-right: 2px;
}
.contact-v__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  width: auto;
}
.contact-v__arrow svg { transition: transform .3s var(--ease); }
.contact-v--map:hover .contact-v__arrow {
  background: var(--bw-blue);
  border-color: var(--bw-blue);
  color: #fff;
}
.contact-v--map:hover .contact-v__arrow svg { transform: translate(2px, -2px); }
.contact-row--actions {
  grid-template-columns: 1fr;
  margin-top: 8px;
  padding: 20px 0 4px;
}
.contact-row--actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  border: 0;
}
.contact .btn--primary { box-shadow: none; }
.contact .btn--ghost {
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.contact .btn--ghost:hover { background: #fff; color: #000; border-color: #fff; }

/* ----- Footer ----- */
.footer {
  background: #06070A;
  color: rgba(255,255,255,.7);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.footer__brand {
  display: flex; align-items: center; gap: 14px;
  color: #fff;
}
.footer__logo-img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(1.1) contrast(1.1);
}
.footer__wordmark { font-weight: 700; letter-spacing: -.01em; font-size: 22px; color: #fff; line-height: 1; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__cols h4 {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; font-weight: 600;
  margin: 0 0 20px;
}
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols a { transition: color .3s var(--ease); font-size: 14px; }
.footer__cols a:hover { color: var(--bw-blue-soft); }
.footer__legal {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}

/* ----- Reveal animation ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .feature__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .gallery__item { grid-column: span 2; }
  .gallery__item--hero { grid-column: span 4; grid-row: span 2; }
  .gallery__item--portrait { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 4; grid-row: auto; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--gutter);
  }
  .nav__logo-img { height: 36px; }

  .nav__links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; justify-content: center; align-items: stretch;
    background: #0A0A0D;
    gap: 0;
    padding: 90px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
    pointer-events: none;
    overflow-y: auto;
    z-index: 90;
  }
  .nav__links.is-open { transform: translateX(0); pointer-events: auto; }
  .nav__links a {
    font-size: 32px;
    font-weight: 300;
    padding: 18px 0;
    letter-spacing: -.015em;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    background: transparent;
  }
  .nav__cta { display: none; }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center; flex-direction: column;
    position: relative;
    z-index: 110;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

  .two-col, .two-col--wide { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }

  /* Vertical, ordered process steps on mobile */
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 64px;
    position: relative;
  }
  .steps::before {
    display: block;
    top: 12px; bottom: 12px;
    left: 23px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(180deg, var(--bw-blue) 0%, rgba(10,10,12,.18) 50%, rgba(10,10,12,.12) 100%);
  }
  .step {
    padding: 18px 0 22px;
    border-bottom: 1px solid rgba(10,10,12,.08);
  }
  .step:last-child { border-bottom: 0; }
  .step::before {
    top: 28px; left: -48px;
    width: 14px; height: 14px;
    background: var(--bw-bone);
    border: 2px solid var(--bw-black);
    box-shadow: 0 0 0 4px var(--bw-bone);
    z-index: 1;
  }
  .step:first-child::before {
    background: var(--bw-blue);
    border-color: var(--bw-blue);
    box-shadow: 0 0 0 4px var(--bw-bone), 0 0 0 6px rgba(28,105,212,.25);
  }
  .step__k {
    display: inline-block;
    position: absolute;
    left: -64px;
    top: -2px;
    font-size: 10px;
    letter-spacing: .2em;
    font-weight: 700;
    color: var(--bw-grey-500);
    background: var(--bw-bone);
    padding: 0 2px;
    z-index: 2;
  }
  .step { position: relative; }
  .step h3 { font-size: 20px; margin-bottom: 6px; }
  .step p { font-size: 14.5px; }

  /* Hero — less empty space above content on mobile */
  .hero {
    min-height: auto;
    padding: 96px var(--gutter) 72px;
    justify-content: flex-start;
  }
  .hero__title { margin-top: 4px; }
  .hero__meta { display: none; }
  .hero__scroll { display: none; }

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

  .section-head--row { flex-direction: column; align-items: flex-start; }

  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-row--actions { flex-direction: column; }
  .contact-row--actions .btn { width: 100%; justify-content: center; }

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

  /* Carousel — slightly smaller cards on mobile */
  .q-card { width: 82vw; min-height: 240px; padding: 32px 26px 24px; }
  .quotes__track { animation-duration: 38s; }
}
@media (max-width: 500px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, auto); }
  .gallery__item,
  .gallery__item--hero,
  .gallery__item--portrait,
  .gallery__item--wide { grid-column: auto; grid-row: auto; }
  .gallery__item--portrait { aspect-ratio: 3/4; }
  .stats { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .quote blockquote { padding-left: 0; }
  .quote__mark { position: static; font-size: 80px; display: block; margin-bottom: -30px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
