/* Gilman Construction Media — site styles */

:root {
  --red: #c42026;
  --red-hover: #a81a1f;
  --navy: #0c2340;
  --navy-2: #16305a;
  --navy-ink: #0a1c33;
  --ink: #14161c;
  --muted: #4b556a;
  --rule: #e5e7ee;
  --paper: #f7f5f2;
  --white: #ffffff;
  --accent-balance: 1; /* tweak: 0 = navy dominant, 1 = balanced, 2 = red dominant */
  --card-radius: 14px;
  --card-shadow: 0 1px 2px rgba(15,28,55,0.04), 0 8px 24px rgba(15,28,55,0.06), 0 24px 48px rgba(15,28,55,0.08);
  --card-shadow-hover: 0 2px 4px rgba(15,28,55,0.06), 0 16px 40px rgba(15,28,55,0.10), 0 32px 72px rgba(15,28,55,0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display, .eyebrow {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

/* All-caps display headers (h1, h2) match the hero "YOUR VISION. OUR CAMERAS." treatment */
h1, h2, h1.display, h2.display {
  text-transform: uppercase !important;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy); }

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ------------ Top bar ------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav a {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--red);
}
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 12px 20px !important;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--red-hover); }
.nav-cta::after { display: none !important; }

.nav-login {
  font-family: "Lato", sans-serif;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: var(--white) !important;
  text-decoration: none;
  background: var(--red);
  padding: 12px 18px !important;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.nav-login:hover { background: var(--red-hover); }
.nav-login::after { display: none !important; }
.phone-pill {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease;
  border-radius: 2px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-arrow::after { content: "→"; font-family: "Open Sans", sans-serif; font-weight: 700; }

/* ------------ Hero: split composition ------------ */
.hero {
  position: relative;
  min-height: 480px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-split { min-height: 480px; }
.hero-split-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(115%) contrast(105%);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,35,64,0.88) 0%, rgba(12,35,64,0.65) 50%, rgba(12,35,64,0.2) 100%),
    linear-gradient(180deg, rgba(12,35,64,0.35) 0%, rgba(12,35,64,0.55) 100%);
}
.hero-wedge {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 48%;
  background: linear-gradient(110deg, var(--navy) 0%, rgba(12,35,64,0.82) 70%, transparent 100%);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  z-index: 2;
}
.hero-wedge-accent {
  position: absolute;
  top: 0; bottom: 0;
  left: 46%;
  width: 14px;
  background: var(--red);
  transform: skewX(-18deg);
  transform-origin: top;
  z-index: 2;
  box-shadow: 0 0 40px rgba(196, 32, 38, 0.5);
}
.hero-copy {
  padding: 56px 56px 56px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
  max-width: 760px;
}
.hero-copy h1 { color: var(--white); }
.hero-copy h1 .accent { color: var(--red); display: block; }
.hero-sub {
  font-size: clamp(16px, 1.15vw, 19px);
  color: rgba(255,255,255,0.82);
  margin: 28px 0 40px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -8%;
}
.hero-image::after {
  /* red sliver echoing the flag mark */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -1px;
  width: 8px;
  background: var(--red);
  transform: skewX(-14deg);
  transform-origin: top;
}
.hero-kicker {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--red);
}

/* Hero variant B: full-bleed photo with navy gradient wedge */
.hero.variant-b {
  grid-template-columns: 1fr;
  background: #000;
}
.hero.variant-b .hero-image {
  position: absolute;
  inset: 0;
  clip-path: none;
  margin: 0;
}
.hero.variant-b .hero-image::after { display: none; }
.hero.variant-b .hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12,35,64,0.95) 0%, rgba(12,35,64,0.78) 40%, rgba(12,35,64,0.2) 70%, rgba(12,35,64,0) 100%);
}
.hero.variant-b .hero-copy {
  grid-column: 1;
  position: relative;
  z-index: 3;
  padding: 120px 56px 120px 6vw;
  max-width: 820px;
}

/* ------------ Stat strip ------------ */
.stat-strip {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-strip-hero {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(8, 24, 46, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  color: #fff;
}
.stat-strip-hero .stat-strip-inner { padding-top: 28px; padding-bottom: 28px; }
.stat-strip-hero .stat { border-color: rgba(255,255,255,0.14) !important; }
.stat-strip-hero .stat-num { color: #fff; }
.stat-strip-hero .stat-num .unit { color: var(--red); }
.stat-strip-hero .stat-label { color: rgba(255,255,255,0.78); }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 32px 0;
}
.stat {
  padding: 8px 32px;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num .unit { color: var(--red); }
.stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

/* ------------ Sections ------------ */
section { padding: 112px 0; }
section.tight { padding: 80px 0; }
.section-head {
  max-width: 760px;
  margin: 0 0 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 10px 0 18px; }
.section-head p { color: var(--muted); font-size: 19px; }

/* ------------ Pillars ------------ */
.pillars-wrap {
  position: relative;
  background:
    linear-gradient(rgba(12,35,64,0.82), rgba(12,35,64,0.88)),
    url("assets/jobsite-aerial-crane.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.pillars-wrap .section-head h2 { color: #fff; }
.pillars-wrap .section-head p { color: rgba(255,255,255,0.82); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.pillar {
  padding: 44px 36px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  background: var(--white);
}
.pillar-num {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--red);
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.pillar h3 { margin: 20px 0 12px; }
.pillar p { color: var(--muted); margin: 0; }
.pillar-mark {
  width: 32px;
  height: 3px;
  background: var(--red);
  margin-bottom: 22px;
}

/* ------------ Platform / split feature ------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-img {
  aspect-ratio: 5/4;
  background: var(--rule);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,28,55,0.04), 0 16px 40px rgba(15,28,55,0.10), 0 40px 80px -20px rgba(12,35,64,0.30);
}
.split-img::before {
  content: "";
  position: absolute;
  top: -24px; left: -24px;
  width: 80px; height: 80px;
  background: var(--red);
  z-index: -1;
}
.split h2 { margin-bottom: 20px; }
.split p { color: var(--muted); font-size: 17px; }
.split .checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.split .checklist li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink);
}
.split .checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 12px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* ------------ Clients strip ------------ */
.clients {
  background: var(--white);
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.clients h4 {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 700;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: center;
}
.client-logo {
  height: 80px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  overflow: hidden;
}
.client-logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* logo marquee (auto-scroll + manual arrows) */
.clients-marquee { --clients-bg: var(--white); position: relative; }
.clients-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 56px;
}
.clients-scroller::-webkit-scrollbar { display: none; width: 0; height: 0; }
.clients-row { display: flex; gap: 24px; align-items: center; width: max-content; }
.clients-arrow {
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.clients-arrow:hover {
  background: var(--navy, #0c2340) !important;
  box-shadow: 0 6px 18px rgba(12,35,64,0.22) !important;
}
.clients-arrow:hover svg path { stroke: #fff; }
.clients-arrow:active { transform: translateY(-50%) scale(0.96); }
.clients-arrow:focus-visible {
  outline: 2px solid var(--red, #c42026);
  outline-offset: 2px;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--clients-bg) 20%, rgba(255,255,255,0));
}
.marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--clients-bg) 20%, rgba(255,255,255,0));
}

/* Chatbot widget */
.cb-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(12,35,64,0.34) !important;
  background: var(--red-hover, #a81a1f) !important;
}
.cb-bubble:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(196,32,38,0.45), 0 14px 36px rgba(12,35,64,0.34) !important;
}
@keyframes cb-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* ------------ Testimonials ------------ */
.testimonials { background: var(--paper); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  background: var(--white);
  padding: 40px 36px;
  border-top: 4px solid var(--red);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.testimonial blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.testimonial .attrib {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}
.testimonial .attrib strong {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  color: var(--navy);
  font-size: 15px;
  display: block;
}
.testimonial .attrib span {
  font-size: 13px;
  color: var(--muted);
}
.testimonial .client-tag {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: right;
}

/* ------------ CTA band ------------ */
.cta-band {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 60%, var(--red) 180%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.78); font-size: 19px; margin-top: 16px; }
.cta-actions { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }

/* ------------ Leadership ------------ */
.leader-hero {
  background:
    linear-gradient(rgba(12,35,64,0.84), rgba(12,35,64,0.9)),
    url("assets/jobsite-aerial-crane.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.leader-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(235deg, rgba(196,32,38,0.55) 0%, rgba(196,32,38,0.25) 25%, rgba(12,35,64,0) 55%);
  z-index: 0;
}
.leader-hero::after {
  display: none;
}
.leader-hero .container { position: relative; z-index: 2; }
.leader-hero h1 { color: var(--white); }
.leader-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin-top: 20px; font-size: 19px; }

/* Grid layout */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.leader-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.leader-photo {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center top;
  background-color: var(--navy);
  position: relative;
}
.leader-photo::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 6px;
  background: var(--red);
}
.leader-body { padding: 28px 28px 32px; }
.leader-body .role {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.leader-body h3 { margin: 0 0 12px; font-size: 24px; }
.leader-body h3 a {
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.leader-body h3 a:hover { color: var(--red); }
.leader-body h3 a .linkedin {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  text-align: center;
  line-height: 16px;
  border-radius: 2px;
  transform: translateY(-2px);
  opacity: 0.7;
}
.leader-body h3 a:hover .linkedin { background: var(--red); opacity: 1; }
.leader-body p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* Stacked layout */
.leader-stacked .leader-card {
  flex-direction: row;
  min-height: 320px;
}
.leader-stacked .leader-photo {
  flex: 0 0 320px;
  aspect-ratio: auto;
}
.leader-stacked .leader-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.leader-stacked .leader-body p { font-size: 17px; }
.leader-stacked { display: flex; flex-direction: column; gap: 24px; }

/* ------------ About page ------------ */
.about-hero {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(110deg, rgba(12,35,64,0.92) 0%, rgba(22,48,90,0.82) 55%, rgba(12,35,64,0.78) 100%),
    radial-gradient(ellipse 70% 80% at 100% 100%, rgba(196,32,38,0.45) 0%, rgba(196,32,38,0.18) 40%, rgba(196,32,38,0) 70%),
    url("assets/min/mission-jobsite.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}
.about-hero::after {
  display: none;
}
.about-hero .eyebrow { color: var(--red); }
.about-hero h1 { color: var(--white); }
.about-hero .container { position: relative; z-index: 2; }
.about-hero .flag-bg {
  display: none;
}
.about-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  padding: 96px 0;
}
.about-body .label {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  position: sticky;
  top: 112px;
}
.about-body p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.2em;
}
.about-body p:first-child::first-letter {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 72px;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--red);
}

.values {
  position: relative;
  background:
    linear-gradient(rgba(12,35,64,0.84), rgba(12,35,64,0.90)),
    url("assets/jobsite-aerial-crane.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}
.values h2 { color: var(--white); }
.values .section-head p { color: rgba(255,255,255,0.75); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  padding: 36px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--card-radius);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.value:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
}
.value .num {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
}
.value h4 {
  color: var(--white);
  margin: 16px 0 10px;
  font-size: 18px;
}
.value p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin: 0;
}

/* ------------ Footer ------------ */
.footer {
  background: #08182d;
  color: rgba(255,255,255,0.75);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h5 {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 20px;
}
.footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  font-size: 15px;
}
.footer a:hover { color: var(--white); }
.footer-brand img { height: 56px; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; margin: 0 0 16px; max-width: 360px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.socials a svg { width: 18px; height: 18px; display: block; }
.socials a:hover { border-color: var(--red); color: var(--white); background: var(--red); }

/* ------------ Platform / case stub pages ------------ */
.stub-hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-ink) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.stub-hero h1 { color: var(--white); max-width: 900px; }
.stub-hero p { color: rgba(255,255,255,0.8); font-size: 19px; max-width: 640px; margin-top: 20px; }
.stub-hero .eyebrow { color: #e86a6f; }

.stub-hero-skyline {
  position: relative;
  background:
    linear-gradient(90deg, rgba(8,24,46,0.82) 0%, rgba(8,24,46,0.5) 50%, rgba(8,24,46,0.2) 100%),
    linear-gradient(180deg, rgba(8,24,46,0.25) 0%, rgba(8,24,46,0.55) 100%),
    url("assets/sd-skyline.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.stub-hero-skyline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(8,24,46,0) 0%, var(--navy-ink) 100%);
  pointer-events: none;
}
.stub-hero-skyline .container { position: relative; z-index: 2; }
.stub-hero-skyline p { color: rgba(255,255,255,0.92); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.capabilities-grid { grid-template-columns: repeat(3, 1fr); }
.platform-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.platform-card h3 { margin-bottom: 10px; }
.platform-card p { color: var(--muted); margin: 0; }
.platform-card .marker {
  width: 28px; height: 4px; background: var(--red);
  margin-bottom: 20px;
}

/* Agent cards — launch badge */
.agents-section { background: var(--navy); }
.agents-section .section-head h2 { color: #fff; }
.agents-section .section-head p { color: rgba(255,255,255,0.82); }
.agent-card { display: flex; flex-direction: column; }
.agent-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: rgba(196,32,38,0.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.agent-card p { flex: 1 1 auto; }
.agent-launch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

/* Platform tabs */
.platform-tabs { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 81px; z-index: 20; }
.platform-tablist { display: flex; flex-wrap: wrap; gap: 4px; }
.platform-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 20px 22px;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s ease, border-color .15s ease;
}
.platform-tab:hover { color: var(--navy); }
.platform-tab.is-active { color: var(--navy); border-bottom-color: var(--red); }
.platform-tab-caret { font-size: 10px; transition: transform .15s ease; }
.platform-tab.is-active .platform-tab-caret { transform: rotate(180deg); color: var(--red); }

/* Installation tab */
.install-section { padding-top: 56px; padding-bottom: 32px; }
.install-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8px 0 48px;
}
.install-gallery image-slot { display: block; width: 100%; height: 240px; }
.install-photo { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 12px; }
.install-intro { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; margin-bottom: 12px; }
.install-intro-copy h2 { margin: 12px 0 16px; }
.install-intro-copy p { color: var(--muted); font-size: 17px; margin: 0; }
.install-intro .install-photo { width: 320px; height: 320px; }
.install-gallery--single { display: block; }
.install-gallery--single .install-photo { width: 320px; max-width: 100%; height: 320px; }
.install-block { margin-top: 44px; }
.install-group {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--red);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
.install-item .marker { width: 28px; height: 4px; background: var(--red); margin-bottom: 14px; }
.install-item h4 { font-family: "Lato", sans-serif; font-weight: 800; font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.install-item p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.55; }
.install-steps { display: flex; flex-direction: column; gap: 4px; }
.install-step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.install-step:last-child { border-bottom: none; }
.install-step-num { font-family: "Lato", sans-serif; font-weight: 900; font-size: 28px; color: var(--red); line-height: 1; }
.install-step h4 { font-family: "Lato", sans-serif; font-weight: 800; font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.install-step p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.55; }
.install-closer { margin-top: 32px; font-size: 18px; font-weight: 600; color: var(--navy); max-width: 760px; }

/* Timelapse tab */
.timelapse-section { padding: 64px 0 80px; }
.tl-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.tl-hero-copy h2 { margin: 12px 0 18px; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; }
.tl-hero-copy p { color: var(--muted); font-size: 17px; margin: 0; }
.tl-hero-img { aspect-ratio: 5/4; border-radius: var(--card-radius); box-shadow: 0 18px 40px rgba(15,28,55,0.14); }
.tl-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.tl-list h3 { font-family: "Lato", sans-serif; font-weight: 900; font-size: 22px; color: var(--navy); margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.tl-list .checklist { list-style: none; padding: 0; margin: 0; }
.tl-list .checklist li { position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tl-list .checklist li strong { color: var(--navy); }
.tl-list .checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 12px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* Cameras tab */
.cameras-section { padding: 56px 0 72px; }
.camera-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; max-width: 900px; margin-left: auto; margin-right: auto; }
.camera-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--card-radius); padding: 24px; box-shadow: 0 10px 28px rgba(15,28,55,0.06); }
.camera-photo { background: var(--white); border-radius: 10px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 20px; }
.camera-photo img { width: 78%; height: 78%; object-fit: contain; display: block; }
.camera-model { font-family: "Lato", sans-serif; font-weight: 800; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.camera-card h3 { font-family: "Lato", sans-serif; font-weight: 800; font-size: 19px; color: var(--navy); margin: 0 0 10px; min-height: 2.5em; }
.camera-card p { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.55; }

/* Documentation & aerial media — compact section */
.doc-section { background: var(--paper); padding: 72px 0; }
.doc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.doc-intro h2 { margin: 12px 0 18px; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.doc-intro p { color: var(--muted); font-size: 17px; margin: 0; max-width: 520px; }
.doc-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  padding: 36px 36px 40px;
  box-shadow: 0 10px 28px rgba(15,28,55,0.06);
}
.doc-card .marker { width: 28px; height: 4px; background: var(--red); margin-bottom: 20px; }
.doc-card h3 { margin: 0 0 12px; font-size: 24px; }
.doc-card p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.6; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.case {
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
  background: var(--rule);
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  cursor: pointer;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,35,64,0.1) 40%, rgba(12,35,64,0.85) 100%);
}
.case > * { position: relative; }
.case h3 { color: var(--white); margin: 0; }
.case--link { cursor: pointer; }
.case-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.case--link:hover .case-cta, .case--link:focus-visible .case-cta { opacity: 1; transform: translateY(0); }
.case--link:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---- Case study detail ---- */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 12px 22px;
  transition: background .15s ease, border-color .15s ease;
}
.case-back:hover { background: var(--red); border-color: var(--red); color: #fff; }
.case-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.case-services span {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 8px 16px;
}
.case-spec-bar { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 40px 0; }
.case-spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.case-spec-label {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.case-spec-value { color: var(--navy); font-weight: 600; font-size: 16px; line-height: 1.4; }
.case-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 64px;
  align-items: start;
}
.case-overview h2 { margin: 10px 0 22px; }
.case-overview p { color: var(--muted); font-size: 17px; margin: 0 0 20px; }
.case-stats {
  background: var(--navy);
  border-radius: var(--card-radius);
  padding: 32px 30px;
  position: sticky;
  top: 104px;
}
.case-stats .eyebrow { color: #e86a6f; }
.case-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  margin-top: 20px;
}
.case-stat-num {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 34px;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}
.case-stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.35;
}
.case-figure-wrap { padding-bottom: 80px; padding-top: 0; margin-top: -40px; }
.case-figure { margin: 0; }
.case-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--card-radius);
  box-shadow: 0 18px 40px rgba(15,28,55,0.14);
}
.case-figure figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}
.case .meta {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}

/* ------------ Page router ------------ */
.page { display: none; }
.page.active { display: block; }

/* ------------ Responsive ------------ */
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-image { aspect-ratio: 16/10; clip-path: none; margin: 0; }
  .hero-copy { padding: 64px 28px; }
  .pillars, .values-grid, .testimonial-grid, .leader-grid, .platform-grid, .capabilities-grid, .camera-grid, .doc-grid, .tl-hero, .tl-lists, .case-grid, .case-spec-grid, .case-body, .case-stat-grid, .install-grid, .install-gallery, .install-intro, .about-body, .cta-inner, .split, .footer-grid, .stat-strip-inner {
    grid-template-columns: 1fr !important;
  }
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    cursor: pointer;
    padding: 11px;
    margin-left: auto;
  }
  .nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-drawer {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 60;
    overflow-y: auto;
    padding: 16px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--rule);
  }
  .mobile-drawer a {
    font-family: "Lato", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    padding: 16px 4px;
    border-bottom: 1px solid var(--rule);
    display: block;
  }
  .mobile-drawer a.active { color: var(--red); }
  .mobile-group { padding: 8px 0; }
  .mobile-group-label {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    padding: 12px 4px 4px;
  }
  .mobile-group a {
    padding-left: 18px;
    font-size: 14px;
    font-weight: 700;
    border-bottom: none;
  }
  .mobile-login {
    margin-top: 20px;
    background: var(--red);
    color: #fff !important;
    text-align: center;
    border-radius: 3px;
    border-bottom: none !important;
    padding: 16px !important;
  }

  /* hero tuning */
  .hero-wedge { width: 100% !important; clip-path: none !important; background: linear-gradient(180deg, rgba(12,35,64,0.72) 0%, rgba(12,35,64,0.62) 100%) !important; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 52px) !important; }
  .hero-sub { font-size: 16px !important; }
  .hero-kicker { font-size: 15px !important; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }

  h1 { font-size: clamp(32px, 8vw, 48px); }
  h2 { font-size: clamp(26px, 6vw, 36px); }
  .section-head p, p { font-size: 16px; }

  .nav { display: none; }
  .split { gap: 40px; }
  .stat { border-left: none; border-top: 1px solid var(--rule); padding: 24px 28px; }
  .stat:first-child { border-top: none; }
  .pillar, .value { border-left: none; border-top: none; }
  .pillar:first-child, .value:first-child { border-top: none; }
  .pillars { gap: 20px; }
  .values-grid { gap: 16px; }
  .container { padding: 0 24px; }
  section { padding: 52px 0; }
  .hero-split { min-height: 0 !important; padding: 72px 0 0 !important; }
  .stat-strip { padding: 0; }
  /* hero stat ribbon: flow below hero content instead of overlapping it */
  .stat-strip-hero { position: static !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--navy) !important; }
  .stat-strip-hero .stat-strip-inner { display: grid; grid-template-columns: 1fr 1fr !important; gap: 0; padding-top: 0; padding-bottom: 0; }
  .stat-strip-hero .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding: 22px 16px; text-align: center; }
  .stat-strip-hero .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.14); }
  .pillars-wrap, .values, .testimonials, .agents-section, .clients { padding: 48px 0; }
  .leader-hero { padding: 88px 0 56px; }
  .leader-stacked .leader-card { flex-direction: column; }
  .leader-stacked .leader-photo { flex: 0; aspect-ratio: 4/5; }
  .cta-actions { justify-content: flex-start; }

  /* stop fixed backgrounds from breaking on iOS */
  .pillars-wrap, .values, .leader-hero { background-attachment: scroll !important; }
  /* logo strip fits nicely */
  .clients-scroller { padding: 4px 44px; }
  /* prevent horizontal overflow anywhere */
  img, .split-img, .tl-hero-img { max-width: 100%; }
}

