/* ==========================================================================
   LIDERO CONSTRUCTION — Site styles
   Brand: Archivo · Navy #222634 · Light Blue #7081A0 · Blue-White (5% tint)
   Type spec (at 1920 design width):
     H1 Medium 72 · H2 SemiBold 42 · H3 SemiBold 25
     Body Light 24 · Eyebrow Light 24 (tracking 150)
     Buttons/Nav Medium 20 (tracking 100)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #222634;
  --navy-2: #2b3042;        /* slightly lifted navy for cards on dark */
  --slate: #7081A0;
  --slate-light: #93a1ba;
  --light: #f7f8fa;         /* Blue-White: #7081A0 @ 5% over white */
  --line: #e4e7ee;
  --white: #ffffff;
  --text: #222634;
  --text-muted: #5c6474;
  --text-on-dark: rgba(255, 255, 255, 0.85);
  --container: 1400px;   /* design content spans ~73% of 1920 artboard */
  --radius: 4px;
  --shadow: 0 12px 40px rgba(33, 38, 53, 0.12);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Body: Archivo Light 24 at 1920 → scales down on smaller viewports */
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }

/* Eyebrow: Archivo Light 24, tracking 150 */
.eyebrow {
  display: block;
  font-size: clamp(0.85rem, 1.1vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

/* H1: Archivo Medium 72 @1920 — scales as a fixed % of viewport, like the mock */
.h-display {
  font-size: clamp(2.1rem, 3.75vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* H2: Archivo SemiBold 42 @1920 */
.h-section {
  font-size: clamp(1.45rem, 2.19vw, 2.625rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* H3: Archivo SemiBold 25 */
.h-card {
  font-size: clamp(1.05rem, 1.3vw, 1.5625rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead { color: var(--text-muted); }

/* Icon placeholder — navy dot; swap for real icons later */
.icon-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}
.icon-dot--sm { width: 16px; height: 16px; margin-top: 8px; }
.on-dark .icon-dot, .bg-navy .icon-dot { background: var(--slate); }

.on-dark { color: var(--white); }
.on-dark .lead, .on-dark p { color: var(--text-on-dark); }
.on-dark .eyebrow { color: var(--slate-light); }

/* ---------- Layout ---------- */

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

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.bg-navy { background: var(--navy); }
.bg-light { background: var(--light); }
.bg-slate { background: var(--slate); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ---------- Buttons ---------- */

/* Buttons: Archivo Medium 20, tracking 100 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: inherit;
  font-size: clamp(0.8rem, 1.04vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--solid { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--solid:hover { background: transparent; color: var(--white); }

.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }

.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: transparent; color: var(--navy); }

.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.78rem, 1vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 16px; }
.link-arrow::after { content: "→"; font-size: 1rem; }

/* ---------- Header / Nav ----------
   Per mock: transparent over hero with a white hairline, logo left,
   links centered, contact pill right; turns solid navy on scroll. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--navy);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 92px;
}

.site-header__logo { justify-self: start; }
.site-header__logo img { height: 50px; width: auto; }

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.6vw, 50px);
}

/* Nav: measured ~16px @1920 in the mock, Medium, tracking 100 */
.site-nav a:not(.btn) {
  font-size: clamp(0.72rem, 0.83vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).is-active { color: var(--white); }

.site-nav__contact { display: none; }
@media (max-width: 960px) { .site-nav__contact { display: block; } }

.site-header__cta.btn {
  padding: 12px 28px;
  font-size: clamp(0.72rem, 0.83vw, 1rem);
}
.site-header__cta.btn--solid:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 640px;
  padding-top: 92px;   /* header height — centers hero copy in the visible area below the fixed nav */
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(33, 38, 53, 0.88) 0%, rgba(33, 38, 53, 0.55) 55%, rgba(33, 38, 53, 0.35) 100%);
}

.hero__content {
  position: relative;
  max-width: 1160px;   /* wide enough for the H1 to break like the mock (2 lines) */
  padding: 120px 0;
}

.hero__content h1 { margin-bottom: 1.5rem; }

.hero__content .lead {
  color: #fff;
  max-width: 700px;
  margin-bottom: 2.5rem;
}

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

/* Inner page hero (shorter) */
.hero--page { min-height: 420px; }
.hero--page .hero__content { padding: 80px 0; }

/* ---------- Stats strip ---------- */

.stats-strip { background: var(--navy); }

.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 0;
}

.stat { text-align: center; }

.stat__value {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat__label {
  margin-top: 12px;
  font-size: clamp(0.85rem, 1vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ---------- Split sections ---------- */

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.split--flush {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.split--flush .split__panel {
  padding: 96px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split--flush .split__panel .inner { max-width: 640px; }

/* ---------- Differentiators ---------- */

.diff-card {
  background: var(--white);
  border-top: 3px solid var(--slate);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.diff-card:hover { transform: translateY(-4px); }

.diff-card .icon-dot { margin-bottom: 24px; }

.diff-card h3 { margin-bottom: 0.75rem; }

.diff-card p { margin: 0; color: var(--text-muted); font-size: 0.9em; }

/* ---------- Project carousel ---------- */

.carousel { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 3);
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  /* vertical padding gives card shadows room inside the scroll clip; horizontal stays flush so partial cards cut cleanly at the edge */
  padding: 28px 0 56px;
  margin: -28px 0 -40px;
}
.carousel__track::-webkit-scrollbar { display: none; }

.project-card {
  scroll-snap-align: start;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition);
}
.project-card:hover { transform: translateY(-4px); }
.project-card:hover .project-card__img { transform: scale(1.03); }
.project-card__img { transition: transform 0.5s ease; }

.project-card__img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.project-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }

.project-card__loc {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}

.project-card__scope {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 10px 0 20px;
  flex: 1;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: all var(--transition);
}
.carousel__nav:hover { background: var(--navy); color: var(--white); }
.carousel__nav--prev { left: -22px; }
.carousel__nav--next { right: -22px; }

/* ---------- Featured case study ---------- */

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  margin: 2rem 0;
}

.metrics-row .metric {
  flex: 1 1 0;
  min-width: 140px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.metrics-row .metric:last-child { border-right: 0; }

.metric__label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.metric__value { font-weight: 600; font-size: 0.98rem; margin-top: 4px; }

.on-dark .metrics-row { border-color: rgba(255,255,255,0.15); }
.on-dark .metrics-row .metric { border-color: rgba(255,255,255,0.15); }
.on-dark .metric__value { color: var(--white); }

/* ---------- Services snapshot ---------- */

.service-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service-item:first-child { border-top: 1px solid var(--line); }

/* Navy dot = icon placeholder (real icons to come) */
.service-item__marker {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy);
}

.service-item h3 { font-size: clamp(0.95rem, 1.15vw, 1.35rem); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.service-item p { margin: 6px 0 0; color: var(--text-muted); font-size: 0.88em; }

/* ---------- Contact CTA section ---------- */

.contact-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 96px 0;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 247, 250, 0.22);   /* lighter veil so the photo reads through */
}

.contact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}

.form-field { margin-bottom: 22px; }

.form-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--navy);
  padding: 8px 2px;
  outline: none;
  transition: border-color var(--transition);
}

.form-field textarea {
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--slate); }

.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin: 0 0 1rem; font-size: 0.95rem; }
.contact-info a { font-weight: 600; letter-spacing: 0.06em; }
.contact-info a:hover { color: var(--slate); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); }

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 0;
  font-size: 0.8rem;
}

.site-footer a:hover { color: var(--white); }

.site-footer__social { display: flex; align-items: center; gap: 18px; }

.site-footer__social span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Reveal animation (subtle only) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .section { padding: 72px 0; }

  .grid-2, .contact-card { grid-template-columns: 1fr; gap: 40px; }

  .split--flush { grid-template-columns: 1fr; }
  .split--flush .split__panel { padding: 64px 32px; }

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

  .carousel__track { grid-auto-columns: 80%; }
  .carousel__nav { display: none; }

  .stats-strip__inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }

  .contact-card { padding: 40px 28px; }

  /* Mobile nav */
  .nav-toggle { display: block; }

  .site-header__inner { display: flex; justify-content: space-between; height: 72px; }
  .site-header__cta { display: none; }

  body.nav-open .site-header { background: var(--navy); }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy);
    padding: 12px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: -1;
  }
  .site-nav.is-open { transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 0.85rem; }

  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
}

/* ==========================================================================
   Inner pages — case studies, projects, services, about, contact, trade
   ========================================================================== */

/* ---------- Page hero (shorter, consistent gradient per redline) ---------- */

.hero--page { min-height: 560px; align-items: flex-end; }  /* fixed so all page heroes match regardless of lead length */
.hero--page .hero__content { padding: 160px 0 64px; max-width: 1160px; }
.hero--page .h-display { font-size: clamp(1.9rem, 2.9vw, 3.5rem); }

/* Quick stats row in case study hero */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.quick-stats .metric { padding: 18px 40px 4px 0; }
.quick-stats .metric__label { color: var(--slate-light); }
.quick-stats .metric__value { color: var(--white); }

/* ---------- Pull quote (signature element) ---------- */

.pull-quote {
  padding: 88px 0;
  background: var(--white);
}
.pull-quote blockquote {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
  font-size: clamp(1.3rem, 1.77vw, 2.125rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--navy);
}
.pull-quote blockquote strong { font-weight: 500; }

/* ---------- Callout boxes ---------- */

.callout {
  background: var(--light);
  border-left: 3px solid var(--slate);
  padding: 28px 32px;
}
.callout--dark {
  background: var(--navy);
  border-left-color: var(--slate);
  color: var(--white);
}
.callout--dark li, .callout--dark p { color: var(--text-on-dark); }
.callout__label {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.callout ul { margin: 0; padding-left: 18px; }
.callout li { margin: 6px 0; font-size: 0.92em; }
.callout p { margin: 0; font-size: 0.95em; }

/* ---------- Big stat (outcome) ---------- */

.big-stat {
  text-align: center;
  padding: 48px 32px;
  background: var(--navy);
  color: var(--white);
}
.big-stat__value {
  font-size: clamp(3rem, 5.2vw, 6.25rem);
  font-weight: 500;
  line-height: 1;
}
.big-stat__label {
  margin-top: 14px;
  font-size: 0.8em;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ---------- Scope grid (approach bullets, 2-col) ---------- */

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.scope-grid li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95em;
  color: var(--text-muted);
}
.scope-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
}

.outcome-list { list-style: none; margin: 2rem 0; padding: 0; }
.outcome-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98em;
}
.outcome-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--slate);
}

/* ---------- Case study gallery (bottom, per redline) ---------- */

.cs-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cs-gallery figure { margin: 0; }
.cs-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cs-gallery figcaption {
  margin-top: 12px;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Case studies index ---------- */

.cs-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: stretch;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.cs-row:last-child { border-bottom: 0; }
.cs-row > a { display: block; }
.cs-row img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
@media (max-width: 960px) {
  .cs-row img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Projects grid + filters ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.filter-bar button {
  font-family: inherit;
  font-size: clamp(0.72rem, 0.83vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-bar button:hover { border-color: var(--navy); color: var(--navy); }
.filter-bar button.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.projects-grid .project-card { box-shadow: 0 6px 24px rgba(33,38,53,0.08); }
.projects-grid .project-card.is-hidden { display: none; }

/* ---------- Numbered steps (services: how projects progress) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, auto);   /* tracks fit content exactly */
  justify-content: center;
  gap: 88px;
  counter-reset: step;
}
.step { position: relative; }
.step__num {
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  font-weight: 300;
  color: var(--slate);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.9em; }

/* ---------- Service blocks (services page) ---------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: 0; }
.service-block__scope { margin: 1.5rem 0 0; }

/* ---------- Forms (select styling to match inputs) ---------- */

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23222634' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

.radio-row { display: flex; gap: 24px; align-items: center; padding: 6px 0; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9em; cursor: pointer; }

/* ---------- Content prose helpers ---------- */

.prose p { color: var(--text-muted); }
.prose h3 { margin: 2.2rem 0 0.6rem; }

.divider-note {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92em;
  color: var(--text-muted);
}

/* ---------- Inner page responsive ---------- */

@media (max-width: 960px) {
  .cs-gallery, .steps, .projects-grid { grid-template-columns: 1fr; gap: 32px; }
  .scope-grid, .form-grid-2 { grid-template-columns: 1fr; }
  .cs-row, .service-block { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .quick-stats .metric { padding-right: 24px; }
  .hero--page { min-height: 440px; }
}

/* ==========================================================================
   Interactive US map — hover markers for project info, click → case study
   ========================================================================== */

.us-map {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px;
}
.us-map > img { width: 100%; height: auto; display: block; }

.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  display: block;
  z-index: 2;
}

.map-marker__pin {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--slate);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  transition: transform var(--transition), color var(--transition);
  transform-origin: bottom center;
}
.map-marker__pin svg { width: 100%; height: 100%; fill: var(--navy); }

.map-marker:hover .map-marker__pin,
.map-marker:focus-visible .map-marker__pin { transform: scale(1.25); color: var(--white); }

.map-marker--hq .map-marker__pin { color: var(--slate-light); width: 26px; height: 26px; }

/* Tooltip card */
.map-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 3;
}
.map-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--white);
}
.map-marker:hover .map-tooltip,
.map-marker:focus-visible .map-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.map-tooltip strong {
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.map-tooltip em {
  font-style: normal;
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.map-tooltip > span { font-size: 0.72em; color: var(--text-muted); }
.map-tooltip__cta {
  margin-top: 8px;
  font-weight: 500 !important;
  color: var(--navy) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.62em !important;
}

/* Icon slots — white line icons inside the navy dots */
.icon-dot { display: flex; align-items: center; justify-content: center; }
.icon-dot svg {
  width: 55%;
  height: 55%;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-item__marker { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; align-self: center; }
.service-item__marker svg { width: 60%; height: 60%; stroke: var(--white); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 4-up gallery variant for light project pages */
.cs-gallery--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .cs-gallery--4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Layout fixes — left-aligned page headers, split fill, balanced media
   ========================================================================== */

/* Hero is a flex parent, which made .container shrink-to-fit and center.
   Force full width so hero content left-aligns with the rest of the site. */
.hero .container { width: 100%; }

/* Split sections: image always fills the panel height exactly (no undersized
   image / white gap when the text panel is taller) */
.split--flush .split__media { position: relative; min-height: 420px; }
.split--flush .split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Service blocks: consistent icon-to-heading rhythm */
.service-block .icon-dot { margin-bottom: 20px; }

/* Cap tall portrait photos in two-column text sections so the image column
   doesn't dwarf the copy */
.media-capped {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* Approach section: balanced two-column with image matching text height */
.approach-grid { align-items: stretch; }
.approach-grid .prose { padding-right: 8px; }
.approach-media { min-height: 420px; }
.approach-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 960px) {
  .approach-media { min-height: 0; }
  .approach-media img { max-height: 420px; }
}

/* Map: lift the hovered marker (and its tooltip) above sibling pins */
.map-marker:hover,
.map-marker:focus-visible { z-index: 30; }

/* Typography: no orphaned words — balance headings, tidy paragraph rag */
h1, h2, h3, .h-display, .h-section, .h-card, blockquote { text-wrap: balance; }
p, .lead, figcaption, .stat__label { text-wrap: pretty; }

/* ==========================================================================
   Map legend + client logo marquee
   ========================================================================== */

.map-legend {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  font-size: 0.85em;
  color: var(--text-muted);
}
.map-legend i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -1px;
}

/* Scrolling client logos (Built for Ownership Groups) */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
/* marquee runs continuously (client request) */
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.logo-tile {
  flex: none;
  height: 64px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: clamp(0.95rem, 1.15vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.logo-marquee img {
  height: 44px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);   /* renders any logo white on navy; remove per-logo if undesired */
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-marquee { mask-image: none; -webkit-mask-image: none; }
}


/* ==========================================================================
   Round-3 client revisions
   ========================================================================== */

/* Home hero: photo-forward overlay, but strong enough behind the copy to stay legible */
.hero:not(.hero--page)::before {
  background: linear-gradient(100deg, rgba(33, 38, 53, 0.78) 0%, rgba(33, 38, 53, 0.44) 50%, rgba(33, 38, 53, 0.10) 100%);
}
.hero:not(.hero--page) .hero__content h1,
.hero:not(.hero--page) .hero__content .lead {
  text-shadow: 0 2px 18px rgba(33, 38, 53, 0.45), 0 1px 3px rgba(33, 38, 53, 0.5);
}
.hero:not(.hero--page) .btn--outline {
  background: rgba(34, 38, 52, 0.30);   /* translucent backing so the outline button reads on bright photos */
}

/* Dark project tiles (homepage carousel) */
.project-card--dark .project-card__body { background: var(--navy); }
.project-card--dark .h-card { color: var(--white); }
.project-card--dark .project-card__loc { color: var(--slate-light); }
.project-card--dark .project-card__scope { color: rgba(255, 255, 255, 0.72); }
.project-card--dark .link-arrow { color: var(--white); }



/* Featured case study: quote-style headline */
.quote-headline {
  font-size: clamp(1.25rem, 1.75vw, 2.1rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--navy);
}

/* Project cards: tight, downward shadow — no sideways spill to get clipped
   at the carousel's scroll edges (was a 40px-blur halo that left a seam) */
.project-card {
  box-shadow: 0 16px 24px -14px rgba(33, 38, 53, 0.32);
}

/* ==========================================================================
   Case study v2 — original XD template (Challenge/Approach bullets, slider,
   Outcome feature) + lightbox
   ========================================================================== */

.cs-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-top: 2rem;
}
.cs-bullet { display: flex; gap: 14px; align-items: flex-start; }
.cs-bullet .icon-dot { width: 34px; height: 34px; flex: none; margin-top: 2px; }
.cs-bullet .icon-dot svg { width: 55%; height: 55%; stroke: var(--white); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-bullet h4 {
  font-size: clamp(0.8rem, 0.95vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.cs-bullet p { margin: 0; font-size: 0.82em; color: var(--text-muted); }


/* Full-width slider */
.cs-slider { position: relative; overflow: hidden; }
.cs-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cs-slider__track::-webkit-scrollbar { display: none; }
.cs-slider__track img {
  flex: none;
  width: 100%;
  height: clamp(380px, 55vw, 640px);
  object-fit: cover;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.cs-slider__label {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  z-index: 2;
}
.cs-slider .carousel__nav { z-index: 3; }
.cs-slider .carousel__nav--prev { left: 24px; }
.cs-slider .carousel__nav--next { right: 24px; }
.cs-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.cs-slider__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.cs-slider__dots button.is-active { background: var(--white); }

/* Outcome feature (big icon + headline stat) */
.outcome-feature { display: flex; gap: 28px; align-items: center; }
.outcome-feature .icon-dot { width: 110px; height: 110px; flex: none; }
.outcome-feature .icon-dot svg { width: 46%; height: 46%; }
.outcome-feature__value { font-size: clamp(1.6rem, 2.4vw, 2.6rem); font-weight: 600; letter-spacing: 0.03em; line-height: 1.1; }
.outcome-feature__label { margin-top: 6px; color: var(--text-muted); font-size: 0.9em; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(23, 26, 36, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.85);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 16px;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { color: #fff; }
.lightbox__close { top: 18px; right: 24px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cs-gallery figure img, [data-lightbox] img { cursor: zoom-in; }

/* Our Work: case study cards row */
.cswork-card { display: flex; flex-direction: column; background: var(--white); box-shadow: 0 16px 24px -14px rgba(33, 38, 53, 0.32); }
.cswork-card > a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cswork-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.cswork-card__body .metrics-row { margin: 1.25rem 0; }
.cswork-card__body .metrics-row .metric { padding: 10px 14px; min-width: 0; }
.cswork-card__body p.lead { font-size: 0.88em; flex: 1; }

@media (max-width: 960px) {
  .cs-bullets { grid-template-columns: 1fr; }
  .outcome-feature { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   CASE STUDY — "The Challenge" / "The Approach" as flush 50/50 splits
   Replaces the old .container.grid-2 + .cs-photos layout, which left
   258-360px of dead space below the icon bullets (photo column was a fixed
   883px; text columns ran 523-624px).

   Built on the existing .split--flush primitive (homepage Positioning
   section) so this is the same component with a modifier, not a new pattern.
   Height is set by the copy panel; the media is out of flow and stretches to
   match, so a height mismatch is structurally impossible rather than tuned.
   Case-study splits stay light/white — the navy flush panel remains the
   homepage's signature.
   ========================================================================== */

.cs-split {
  background: var(--white);
  /* 52vw keeps photo aspect near ~1.9:1 at every width instead of letting it
     drift to cinemascope on ultrawide monitors (measured 2.55:1 at 2560px
     without this). Capped so it can't run away on very large displays. */
  min-height: clamp(480px, 52vw, 1300px);
}
.cs-split--light { background: var(--light); }

/* Copy panel — outer padding lands text on the same vertical line .container
   uses site-wide: panel width P = viewport/2, so target = P - 676px. */
.cs-split.split--flush .cs-split__panel {
  padding-block: clamp(72px, 7vw, 144px);
  padding-inline: max(24px, calc(100% - 676px)) clamp(32px, 3.5vw, 56px);
}

/* Mirrored sections (The Approach): photos left, copy right. Presentational
   only — DOM order stays copy-then-photos so reading order and the mobile
   stack always lead with the heading. */
@media (min-width: 961px) {
  .cs-split.cs-split--reverse .cs-split__media { order: -1; }
  .cs-split.cs-split--reverse.split--flush .cs-split__panel {
    padding-inline: clamp(32px, 3.5vw, 56px) max(24px, calc(100% - 676px));
  }
}

/* Photo column — the inner grid is absolutely positioned so the images
   contribute zero height to the row (otherwise they'd size it and the panel
   would stretch instead: same bug inverted). grid-auto-rows:1fr means any
   number of photos divides the height evenly — 1 photo fills, 2 split. */
.cs-split .cs-split__media { position: relative; min-width: 0; min-height: 0; }
.cs-split .cs-split__media-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 16px;
}
.cs-split .cs-split__media-inner img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}
/* A flush edge must not slide on scroll-reveal — fade only. */
.cs-split .cs-split__media.reveal { transform: none; }

/* Icon points — reserving two lines of title height keeps every row-mate's
   body copy starting on the same line whether the title wraps or not. */
.cs-split .cs-bullets {
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  margin-top: 2.25rem;
}
.cs-split .cs-bullet h4 { min-height: 2.3em; text-wrap: balance; }

/* Below 1200px bullets go single-column: no row-mates, so release the
   reserved second line. */
@media (max-width: 1200px) {
  .cs-split .cs-bullets { grid-template-columns: 1fr; }
  .cs-split .cs-bullet h4 { min-height: 0; }
}

/* Single column — photos return to normal flow at the approved 3:2 stack. */
@media (max-width: 960px) {
  .cs-split { min-height: 0; }
  .cs-split.split--flush .cs-split__panel {
    padding-block: clamp(56px, 11vw, 80px);
    padding-inline: 24px;
  }
  .cs-split .cs-split__media-inner {
    position: static;
    grid-auto-rows: auto;
  }
  .cs-split .cs-split__media-inner img { height: auto; aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   Round 6 (Sept 2026 QA): case-study metrics divider, Outcome-with-photo,
   Services + About page components
   ========================================================================== */

/* Case study: metrics moved out of the hero into a navy divider */
.cs-stats { background: var(--navy); }
.cs-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px; padding-bottom: 40px;
}
.cs-stats .metric__label { color: var(--slate-light); }
.cs-stats .metric__value {
  color: var(--white);
  font-size: clamp(1.05rem, 1.3vw, 1.5rem);
  font-weight: 500;
  margin-top: 6px;
  text-wrap: balance;
}

/* Outcome: metric feature sits inside the copy panel, photo takes the other half */
.cs-split .outcome-feature { margin-top: 2.25rem; gap: 22px; }
.cs-split .outcome-feature .icon-dot { width: 80px; height: 80px; }

/* Full-width intro blocks (Services / About) */
.intro-block { max-width: 900px; }
.intro-block .link-arrow { margin-top: 1.5rem; }

/* Services: "Typical Projects" lists inside the splits */
.svc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 1.75rem 0 0.5rem;
}
.svc-list { margin: 0; color: var(--text-muted); font-size: 0.92em; line-height: 1.8; }

/* Services: capability columns */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.cap-col h3 {
  font-size: clamp(0.85rem, 1vw, 1.15rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 12px;
}
.cap-col ul { list-style: none; margin: 0; padding: 0; }
.cap-col li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 0.92em; }
.cap-col li:last-child { border-bottom: 0; }

/* Full-width photo-backed CTA */
.cta-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 128px 0;
}
.cta-photo::before { content: ""; position: absolute; inset: 0; background: rgba(34, 38, 52, 0.78); }
.cta-photo .container { position: relative; }
.cta-photo .lead { color: rgba(255, 255, 255, 0.85); }

/* About: four principle cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* About: The Lidero Standard, four columns on navy, treated as a visual */
.standard-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.standard-col { padding: 40px 36px; border-left: 1px solid rgba(255, 255, 255, 0.14); text-align: center; }
.standard-col:first-child { border-left: 0; }
.standard-col__num {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1;
  margin-bottom: 20px;
}
.standard-col h3 {
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  min-height: 2.3em;
}
.standard-col ul { list-style: none; margin: 0 auto; padding: 0; }
.standard-col li { color: rgba(255, 255, 255, 0.75); font-size: 0.95em; padding: 5px 0; }

@media (max-width: 960px) {
  .cs-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; padding-top: 32px; padding-bottom: 32px; }
  .cap-grid, .grid-4, .standard-grid { grid-template-columns: 1fr 1fr; }
  .standard-col, .standard-col:first-child { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); padding: 28px 8px; }
  .standard-col h3 { min-height: 0; }
}
@media (max-width: 600px) {
  .cap-grid, .grid-4, .standard-grid { grid-template-columns: 1fr; }
}

/* Centered section header (eyebrow + h2) */
.section-head--center { text-align: center; }
.section-head--center .h-section { margin-left: auto; margin-right: auto; }
