/* ==========================================================================
   HCA — Hindustan Consulting Associates
   Design system: arctic white + engineering blue
   ========================================================================== */

:root {
  /* Unified light identity: warm cream base, professional trust blue primary, gold secondary thread */
  --bg: #F1EDE4;            /* warm cream */
  --surface: #FBF9F4;       /* warm off-white */
  --ink: #1A1712;           /* warm charcoal */
  --ink-soft: #574F41;      /* warm grey */
  --navy: #103A70;          /* deep engineering navy */
  --blue: #245C9E;          /* professional trust blue (primary accent) */
  --gold: #A9791F;          /* muted gold (secondary thread) */
  --wash: #E5DFD2;          /* warm tint */
  --wash-soft: #ECE7DB;     /* warm tint, softer */
  --line: rgba(60, 50, 30, 0.15);
  --hairline: rgba(60, 50, 30, 0.08);
  --shadow-sm: 0 1px 2px rgba(90, 70, 30, 0.06), 0 4px 12px rgba(90, 70, 30, 0.07);
  --shadow-md: 0 2px 4px rgba(90, 70, 30, 0.07), 0 12px 32px rgba(90, 70, 30, 0.11);
  --shadow-lg: 0 4px 8px rgba(90, 70, 30, 0.08), 0 24px 64px rgba(90, 70, 30, 0.15);
  --font-display: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- typography ---------- */
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--blue);
  display: inline-block;
}

.h-xl { font-size: clamp(40px, 6.5vw, 84px); line-height: 1.02; font-weight: 700; }
.h-lg { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.08; font-weight: 700; }
.h-md { font-size: clamp(24px, 3vw, 36px);  line-height: 1.15; font-weight: 600; }
.h-sm { font-size: 20px; line-height: 1.3; font-weight: 600; }

.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.mono  { font-family: var(--font-mono); }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(244, 247, 250, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.brand img { transition: transform 0.4s var(--ease); transform-origin: left center; }
.site-header.scrolled .brand img { transform: scale(0.86); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 15px;
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--navy); background: var(--wash-soft); }
.nav-links a.active { color: var(--navy); background: var(--wash); }
.nav-links a.nav-cta {
  background: var(--navy);
  color: #fff;
  margin-left: 8px;
  box-shadow: var(--shadow-sm);
}
.nav-links a.nav-cta:hover { background: var(--blue); color: #fff; }

/* Homepage: header floats over a dark hero video before scrolling */
body.descent .site-header:not(.scrolled) .brand-name { color: #fff; }
body.descent .site-header:not(.scrolled) .brand-name small { color: rgba(255, 255, 255, 0.75); }
body.descent .site-header:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.92); }
body.descent .site-header:not(.scrolled) .nav-links a:hover,
body.descent .site-header:not(.scrolled) .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.14); }
body.descent .site-header:not(.scrolled) .nav-toggle span,
body.descent .site-header:not(.scrolled) .nav-toggle span::before,
body.descent .site-header:not(.scrolled) .nav-toggle span::after { background: #fff; }
@media (max-width: 900px) {
  body.descent .nav-open .site-header:not(.scrolled) .nav-links a { color: var(--navy); }
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 10px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after  { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: -1;
  }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; z-index: 99; }
  .nav-links a { font-size: 22px; font-family: var(--font-display); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 30px;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tint { background: linear-gradient(180deg, var(--bg) 0%, var(--wash-soft) 50%, var(--bg) 100%); }

/* hairline grid texture */
.grid-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }

/* word-by-word thesis reveal */
.thesis-words .w {
  opacity: 0.16;
  transition: opacity 0.5s ease;
}
.thesis-words .w.lit { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 60px;
  overflow: hidden;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-scene svg { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); min-width: 1500px; width: 110vw; height: auto; }
.parallax-layer { will-change: transform; transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1); }

.hero-content { position: relative; z-index: 2; }
.hero h1 { color: var(--ink); max-width: 14ch; }
.hero h1 .accent { color: var(--navy); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: var(--wash);
  z-index: -1;
}
.hero .lead { margin: 26px 0 38px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  margin-top: clamp(40px, 7vh, 80px);
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* hero hotspots (interactive pointers) */
.hotspot {
  position: absolute;
  z-index: 3;
  width: 22px; height: 22px;
  cursor: pointer;
}
.hotspot .pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.28;
  animation: pulse 2.6s infinite var(--ease);
}
.hotspot .core {
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.hotspot:hover .core { transform: scale(1.35); background: var(--blue); }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.30; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hotspot .tip {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 10px 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.hotspot:hover .tip, .hotspot:focus-within .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.hotspot .tip b { font-family: var(--font-display); font-size: 13.5px; color: var(--navy); display: block; }
.hotspot .tip small { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); letter-spacing: 0.06em; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 38px;
  background: linear-gradient(var(--blue), transparent);
  animation: cue 2s infinite var(--ease);
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- sector cards ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 56px;
}
@media (max-width: 800px) { .sector-grid { grid-template-columns: 1fr; } }

.sector-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 38px 36px 34px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  display: block;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(45, 127, 249, 0.35); }
.sector-card .sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 18px;
  display: block;
}
.sector-card h3 { font-size: 24px; color: var(--ink); margin-bottom: 12px; }
.sector-card p { color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
.sector-card .sec-art {
  position: absolute;
  right: -20px; bottom: -24px;
  width: 190px;
  opacity: 0.55;
  transition: opacity 0.45s, transform 0.6s var(--ease);
}
.sector-card:hover .sec-art { opacity: 1; transform: translateY(-6px) scale(1.03); }
.sector-card .go {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.sector-card .go svg { transition: transform 0.35s var(--ease); }
.sector-card:hover .go svg { transform: translateX(5px); }
.sector-card:hover .go { color: var(--blue); }

/* ---------- lifecycle / how we work ---------- */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 60px;
  position: relative;
}
@media (max-width: 900px) { .lifecycle { grid-template-columns: 1fr; } }
.phase {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.phase:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.phase .ph-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.phase .ph-mark svg { width: 22px; height: 22px; }
.phase h3 { font-size: 21px; margin-bottom: 6px; }
.phase .ph-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; display: block; }
.phase ul { list-style: none; }
.phase li {
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.phase li::before { content: "—"; color: var(--blue); font-family: var(--font-mono); flex: none; }

/* connector line between phases (desktop) */
@media (min-width: 901px) {
  .lifecycle::before {
    content: "";
    position: absolute;
    top: 51px;
    left: 8%; right: 8%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 14px);
    opacity: 0.4;
    z-index: 0;
  }
}

/* ---------- numbers strip ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.num-card { text-align: left; padding: 26px 0 8px; border-top: 1px solid var(--line); position: relative; }
.num-card::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.num-card:hover::after { transform: scaleX(1); }
.num-card .value {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.num-card .value sup { font-size: 0.5em; color: var(--blue); }
.num-card .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* ---------- people grid ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 1000px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .people-grid { grid-template-columns: repeat(2, 1fr); } }

.person {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  background: var(--wash-soft);
  border: 1px solid var(--hairline);
  display: block;
}
.person img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}
.person:hover img { filter: grayscale(0%); transform: scale(1.045); }
.person .p-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(14, 20, 32, 0.82));
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.person:hover .p-info { transform: none; opacity: 1; }
.person .p-info b { font-family: var(--font-display); font-size: 13.5px; display: block; line-height: 1.25; }
.person .p-info small { font-family: var(--font-mono); font-size: 9.8px; letter-spacing: 0.06em; opacity: 0.85; }

/* ---------- clients marquee ---------- */
.marquee {
  overflow: hidden;
  margin-top: 48px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: rgba(62, 74, 92, 0.55);
  white-space: nowrap;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-chip:hover { color: var(--navy); }
.client-chip::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--blue); transform: rotate(45deg); opacity: 0.6; }

/* ---------- awards strip ---------- */
.awards-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 1000px) { .awards-strip { grid-template-columns: repeat(2, 1fr); } }
.award {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.award:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.award .a-code { font-family: var(--font-mono); font-size: 12px; color: var(--blue); letter-spacing: 0.1em; display: block; margin-bottom: 8px; }
.award b { font-family: var(--font-display); font-size: 14.5px; line-height: 1.3; display: block; }
.award small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; display: block; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(50px, 7vw, 90px) clamp(32px, 6vw, 80px);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 18ch; line-height: 1.1; }
.cta-band .contour {
  position: absolute;
  right: -60px; top: -40px;
  width: 480px;
  opacity: 0.14;
  pointer-events: none;
}
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--wash); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg, #0E1420);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(70px, 8vw, 110px) 0 40px;
  margin-top: clamp(80px, 10vw, 140px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  font-weight: 500;
}
.site-footer p, .site-footer a { font-size: 14.5px; line-height: 1.75; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { transition: color 0.25s; color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 14px; }

.brochure-card {
  background: rgba(45, 127, 249, 0.12);
  border: 1px solid rgba(45, 127, 249, 0.35);
  border-radius: var(--radius);
  padding: 24px;
  display: block;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.brochure-card:hover { background: rgba(45, 127, 249, 0.2); transform: translateY(-3px); }
.brochure-card b { font-family: var(--font-display); color: #fff; display: block; margin-bottom: 6px; font-size: 16px; }
.brochure-card small { font-size: 13px; }

.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); margin-left: 18px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 190px 0 70px; position: relative; overflow: hidden; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 22px; }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 26px; display: flex; gap: 10px; }
.crumb a:hover { color: var(--blue); }

/* ---------- service accordion cards ---------- */
.svc-list { margin-top: 46px; display: flex; flex-direction: column; gap: 14px; }
.svc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.svc[open] { border-color: rgba(45, 127, 249, 0.4); box-shadow: var(--shadow-md); }
.svc summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary .s-idx { font-family: var(--font-mono); font-size: 11.5px; color: var(--blue); letter-spacing: 0.12em; flex: none; width: 52px; }
.svc summary .s-plus {
  margin-left: auto;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.svc summary .s-plus::before, .svc summary .s-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.6px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}
.svc summary .s-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc[open] summary .s-plus { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); }
.svc[open] summary .s-plus::before, .svc[open] summary .s-plus::after { background: #fff; }
.svc .svc-body { padding: 0 28px 26px 100px; }
@media (max-width: 640px) { .svc .svc-body { padding-left: 28px; } }
.svc .svc-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.svc .svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc .svc-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--navy);
  background: var(--wash-soft);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: 99px;
}

/* ---------- team page ---------- */
.team-list { display: flex; flex-direction: column; gap: 26px; margin-top: 56px; }
.member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (max-width: 720px) { .member { grid-template-columns: 1fr; } }
.member .m-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1.1;
  background: var(--wash-soft);
}
.member .m-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter 0.4s; }
.member:hover .m-photo img { filter: none; }
.member h3 { font-size: 22px; color: var(--navy); }
.member .m-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin: 6px 0 16px; display: block; }
.member p { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.14);
}

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; margin-top: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.contact-card + .contact-card { margin-top: 20px; }
.contact-card h3 { font-size: 19px; margin-bottom: 16px; color: var(--navy); }
.contact-card p { color: var(--ink-soft); font-size: 15px; }
.contact-card a.big { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--navy); transition: color 0.25s; }
.contact-card a.big:hover { color: var(--blue); }

/* ---------- video embed ---------- */
.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline);
  margin-top: 48px;
  background: var(--ink);
}
.video-frame video { width: 100%; display: block; }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.quote-block {
  position: relative;
  padding: 34px 0 6px;
  font-size: clamp(18px, 2vw, 23px);
  font-family: var(--font-display);
  line-height: 1.5;
  color: var(--ink);
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: -8px; left: -6px;
  font-size: 88px;
  line-height: 1;
  color: var(--wash);
  font-family: var(--font-display);
  z-index: -1;
}
.quote-attr { margin-top: 22px; display: flex; align-items: center; gap: 16px; }
.quote-attr img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.quote-attr b { font-family: var(--font-display); display: block; }
.quote-attr small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--surface);
}

/* ==========================================================================
   v2 · L&T-inspired navigation, hero slider, custom cursor
   ========================================================================== */

/* ---------- utility bar ---------- */
.util-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
}
.util-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
}
.util-inner .util-note {
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.util-inner a { color: rgba(255,255,255,0.85); transition: color 0.25s; font-weight: 500; }
.util-inner a:hover { color: #fff; }
@media (max-width: 900px) {
  .util-inner .util-note { display: none; }
  .util-inner { justify-content: center; gap: 20px; }
}

/* header sits below util bar */
.site-header { top: 0; }
.site-header.has-util { position: sticky; }
.header-stack { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.header-stack .site-header { position: relative; }

/* ---------- dropdown nav ---------- */
.nav-links > li { position: relative; }
.nav-links > li > a .caret {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s var(--ease);
  font-size: 9px;
  vertical-align: middle;
}
.drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 110;
}
.drop::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 12px; /* hover bridge */
}
.nav-links > li:hover > .drop,
.nav-links > li:focus-within > .drop,
.nav-links > li.open > .drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-links > li:hover > a .caret,
.nav-links > li.open > a .caret { transform: rotate(180deg); }
.drop li a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.drop li a:hover { background: var(--wash-soft); color: var(--navy); }
.drop li a small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 1px;
}
.drop .drop-rule { height: 1px; background: var(--hairline); margin: 8px 6px; }

@media (max-width: 900px) {
  .drop {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 4px;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-links > li { text-align: center; }
  .nav-links > li.open > .drop { display: block; }
  .nav-links > li:hover > .drop { display: none; }
  .nav-links > li.open:hover > .drop { display: block; }
  .drop li a { font-size: 16px; font-family: var(--font-body); padding: 8px; }
  .drop li a small { display: none; }
}

/* ---------- hero + thesis, pinned to one continuous video ---------- */
.hero-thesis-pin { position: relative; }
.pin-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  z-index: 0;
  background: var(--bg);
}
.pin-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pin-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,20,32,0.32) 0%, rgba(14,20,32,0.12) 35%, rgba(14,20,32,0.7) 100%);
}
.hero-copy {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100svh;
  min-height: 620px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero-copy .wrap {
  width: 100%;
  padding: 0 32px clamp(120px, 16vh, 170px);
  pointer-events: auto;
}
.hero-copy .eyebrow { color: var(--blue); }
.hero-copy h2 {
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 1.03;
  font-weight: 700;
  color: #fff;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(14, 20, 32, 0.35);
}
.hero-copy .hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 52ch;
  margin: 18px 0 30px;
  text-shadow: 0 1px 12px rgba(14, 20, 32, 0.4);
}
.hero-copy > .wrap > * { opacity: 0; transform: translateY(28px); animation: heroIn 0.8s var(--ease) forwards; }
.hero-copy > .wrap > *:nth-child(1) { animation-delay: 0.25s; }
.hero-copy > .wrap > *:nth-child(2) { animation-delay: 0.38s; }
.hero-copy > .wrap > *:nth-child(3) { animation-delay: 0.52s; }
.hero-copy > .wrap > *:nth-child(4) { animation-delay: 0.66s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.thesis-copy {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 11vw, 150px) 0;
}
.thesis-copy .eyebrow { color: #bcd4ff; }
.thesis-copy .thesis-words { color: #fff; }

@media (max-width: 640px) {
  .hero-copy h2 { font-size: clamp(32px, 9vw, 44px); }
}

.s-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(14, 20, 32, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.s-arrow:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

/* ---------- custom cursor ---------- */
@media (pointer: fine) {
  body.custom-cursor { cursor: default; }
  body.custom-cursor a, body.custom-cursor button, body.custom-cursor summary,
  body.custom-cursor label, body.custom-cursor .hotspot, body.custom-cursor .sdot,
  body.custom-cursor .cdot, body.custom-cursor .s-arrow { cursor: pointer; }
  .cursor-pin { display: none !important; }
}
.cursor-pin {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
}
body.cursor-on .cursor-pin { opacity: 1; }
.cursor-pin svg {
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(14, 20, 32, 0.3));
  transition: transform 0.22s var(--ease);
  transform-origin: 9% 91%; /* the tip */
}
.cursor-pin .pin-body { fill: var(--navy); stroke: #fff; stroke-width: 0.9; transition: fill 0.2s; }
body.cursor-hover .cursor-pin .pin-body { fill: var(--blue); }
body.cursor-hover .cursor-pin svg { transform: rotate(-10deg) scale(1.15); }
body.cursor-down .cursor-pin svg { transform: scale(0.82); }
@media (pointer: coarse) {
  .cursor-pin { display: none !important; }
}

/* ---------- client logo marquee ---------- */
.client-logo {
  height: 64px;
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  display: flex;
  align-items: center;
  flex: none;
}
.client-logo img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s, opacity 0.3s;
}
.client-logo:hover img { filter: none; opacity: 1; }
.marquee-track.logos { gap: 26px; }

/* ---------- initials avatars (members without photos yet) ---------- */
.m-photo.avatar, .p-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--wash-soft), var(--wash));
}
.m-photo.avatar span, .p-avatar span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.m-photo.avatar span { font-size: 42px; }
.p-avatar { width: 100%; height: 100%; }
.p-avatar span { font-size: 30px; }

/* ---------- selected projects rows ---------- */
.proj-list { margin-top: 46px; }
.proj {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.proj-list .proj:last-child { border-bottom: 1px solid var(--hairline); }
.proj b { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--ink); }
.proj b small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.proj .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: right;
  flex: none;
}

/* ==========================================================================
   v3 · The Descent — landing page only (body.descent)
   ========================================================================== */

body.descent { transition: background-color 1.1s var(--ease); }
/* Descent flattened to the Careers (ember) cream so the homepage base matches exactly */
body.descent[data-zone="0"] { background-color: #f7f2e8; }
body.descent[data-zone="1"] { background-color: #f7f2e8; }
body.descent[data-zone="2"] { background-color: #f7f2e8; }
body.descent[data-zone="3"] { background-color: #f7f2e8; }

/* Remaining .dk sections are the two cinematic video moments — give them a solid
   dark backdrop so masked video edges blend and white text stays readable */
.section.dk { background-color: #17213a; }

/* dark-zone sections: text flips to light */
.dk .h-lg, .dk .h-md, .dk h2, .dk h3 { color: #fff; }
.dk .lead, .dk .muted, .dk p { color: rgba(255, 255, 255, 0.72); }
.dk .eyebrow { color: #d4af37; }
.dk .eyebrow::before { background: #d4af37; }
.dk .num-card { border-top-color: rgba(255, 255, 255, 0.22); }
.dk .num-card .value { color: #fff; }
.dk .num-card .value sup { color: #d4af37; }
.dk .num-card .label { color: rgba(255, 255, 255, 0.6); }
.dk .btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.dk .btn-ghost:hover { border-color: #d4af37; color: #d4af37; }
.dk .award { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.dk .award b { color: #fff; }
.dk .award small { color: rgba(255, 255, 255, 0.6); }
.dk .person { border-color: rgba(255, 255, 255, 0.16); }
.dk .p-avatar { background: linear-gradient(160deg, #1C3A6B, #16305B); }
.dk .p-avatar span { color: #9CC3F2; }
.dk .client-logo { background: #fff; border-color: transparent; }
.dk .cta-band { box-shadow: 0 0 0 1px rgba(127, 178, 255, 0.25), var(--shadow-lg); }

/* ---------- depth gauge rail ---------- */
.depth-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  height: 46vh;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  font-family: var(--font-mono);
  color: var(--navy);
  transition: color 1.1s var(--ease), opacity 0.4s;
}
body[data-zone="2"] .depth-rail, body[data-zone="3"] .depth-rail { color: var(--navy); }
.depth-rail .track {
  position: relative;
  width: 1px;
  height: 100%;
  background: currentColor;
  opacity: 0.85;
}
.depth-rail .track::before, .depth-rail .track::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px; height: 1px;
  background: currentColor;
}
.depth-rail .track::before { top: 0; }
.depth-rail .track::after { bottom: 0; }
.depth-rail .tick {
  position: absolute;
  left: -2px;
  width: 5px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.depth-rail .marker {
  position: absolute;
  left: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.15);
}
.depth-rail .readout {
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  opacity: 0.9;
  white-space: nowrap;
}
@media (max-width: 1100px) { .depth-rail { display: none; } }

/* ---------- sector accordion strip ---------- */
.sector-strip {
  display: flex;
  gap: 12px;
  margin-top: 56px;
  min-height: 540px;
}
.spanel {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(175deg, #16305B 0%, #0C1B33 100%);
  border: 1px solid rgba(127, 178, 255, 0.18);
  cursor: pointer;
  transition: flex 0.75s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}
.spanel.open { flex: 2.7; }
.spanel .sp-art {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 0.6s, transform 1s var(--ease);
}
.spanel.open .sp-art { opacity: 0.85; transform: scale(1.04); }
.spanel .sp-art svg { width: 100%; height: 100%; }
.spanel .sp-num {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #7FB2FF;
}
.spanel .sp-title {
  position: absolute;
  bottom: 26px; left: 24px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.35s;
}
.spanel.open .sp-title { opacity: 0; }
.spanel .sp-body {
  position: relative;
  padding: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease) 0.25s, transform 0.5s var(--ease) 0.25s;
  pointer-events: none;
}
.spanel.open .sp-body { opacity: 1; transform: none; pointer-events: auto; }
.spanel .sp-body h3 { color: #fff; font-size: 24px; margin-bottom: 10px; white-space: nowrap; }
.spanel .sp-body p { color: rgba(255, 255, 255, 0.75); font-size: 14.5px; max-width: 42ch; min-width: 260px; }
.spanel .sp-body .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #7FB2FF; }
@media (max-width: 900px) {
  .sector-strip { flex-direction: column; min-height: 0; }
  .spanel { min-height: 86px; }
  .spanel.open { min-height: 340px; flex: none; }
  .spanel .sp-title { writing-mode: horizontal-tb; transform: none; bottom: auto; top: 50%; margin-top: -13px; left: 24px; }
  .spanel.open .sp-title { opacity: 0; }
  .spanel .sp-body p { min-width: 0; }
  .spanel .sp-body h3 { white-space: normal; }
}

/* ---------- full-bleed section video backdrops ---------- */
.video-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.video-back video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(12, 27, 51, 0.82) 14%,
    rgba(12, 27, 51, 0.6) 50%,
    rgba(12, 27, 51, 0.85) 86%,
    transparent 100%);
}
/* this section follows a lighter static zone: open the fade on a matching solid
   tone instead of transparent, so it doesn't wait on the body's own (slower,
   scroll-timed) colour transition to catch up */
.video-back.fade-from-zone1::after {
  background: linear-gradient(180deg,
    #E2EDF9 0%,
    rgba(12, 27, 51, 0.82) 14%,
    rgba(12, 27, 51, 0.6) 50%,
    rgba(12, 27, 51, 0.85) 86%,
    transparent 100%);
}
/* section sits directly against the footer: fade the top only, keep the bottom edge solid */
.video-back.hard-bottom::after {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(12, 27, 51, 0.82) 14%,
    rgba(12, 27, 51, 0.6) 50%,
    rgba(12, 27, 51, 0.85) 100%);
}
section .wrap { position: relative; z-index: 1; }

/* ---------- self-drawing blueprint strokes ---------- */
.draw path, .draw circle, .draw line {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.draw.drawn path, .draw.drawn circle, .draw.drawn line {
  animation: drawline 1.7s var(--ease) forwards;
}
.draw.drawn path:nth-of-type(2n) { animation-delay: 0.25s; }
.draw.drawn path:nth-of-type(3n) { animation-delay: 0.5s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   v4 · solid sector cards, globe, clients pager, showcase tilt cards, scrollbar
   ========================================================================== */

/* ---------- custom vertical scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--navy) transparent; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--navy), var(--blue));
  border-radius: 8px;
  border: 2px solid rgba(244, 247, 250, 0.6);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ---------- solid sector cards ---------- */
.sector-solid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 800px) { .sector-solid { grid-template-columns: 1fr; } }
.scard {
  display: block;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 38px 36px;
  color: #fff;
  transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.scard:hover { transform: translateY(-6px); background: #154a95; box-shadow: var(--shadow-lg); }
.scard .sc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #7FB2FF;
  display: block;
  margin-bottom: 20px;
}
.scard h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.scard p { color: rgba(255, 255, 255, 0.72); font-size: 15px; max-width: 48ch; }
.scard .go {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #7FB2FF;
}
.scard .go svg { transition: transform 0.35s var(--ease); }
.scard:hover .go svg { transform: translateX(5px); }

/* ---------- afro-eurasia reach map ---------- */
.submap {
  position: relative;
  max-width: 100%;
  margin-left: auto;
}
.submap svg { width: 100%; height: auto; display: block; }
.submap .hotspot { position: absolute; width: 8px; height: 8px; }
.submap .hotspot .pulse { opacity: 0.18; animation-duration: 3.6s; }
.submap .hotspot .core {
  inset: 1.5px;
  background: #ffd97a;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.submap .hotspot:hover .core { transform: scale(1.7); background: #fff; }
.submap .hotspot .tip { z-index: 8; bottom: 15px; }
.submap .country-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  fill: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(10, 30, 50, 0.5);
  stroke-width: 2px;
}
.submap .physmap { border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.submap .route {
  fill: none;
  stroke: #ffd97a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1 7;
  opacity: 0.75;
}

/* parallax section video */
.video-back video { will-change: transform; transform: scale(1.18); }

/* ---------- interactive globe (retired) ---------- */
.globe-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}
@media (max-width: 900px) { .globe-cols { grid-template-columns: 1fr; } }
#globe3d {
  position: relative;
  height: min(72vh, 640px);
  cursor: grab;
}
#globe3d:active { cursor: grabbing; }
#globe3d canvas { display: block; }
.globe-tip {
  position: absolute;
  z-index: 5;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.globe-tip.on { opacity: 1; }
.globe-tip b { font-family: var(--font-display); font-size: 13.5px; color: var(--navy); display: block; }
.globe-tip small { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); letter-spacing: 0.06em; }
.globe-stats { display: flex; flex-direction: column; gap: 0; }
.globe-stats .gs {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.globe-stats .gs:last-child { border-bottom: 1px solid var(--line); }
.globe-stats .gs b { font-family: var(--font-display); font-size: 17px; color: var(--navy); }
.globe-stats .gs span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); text-align: right; }
.globe-hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 14px; }

/* ---------- clients marquee: dual-row, opposite-direction, connected loop ---------- */
.clients-marquee {
  position: relative;
  margin-top: 48px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.cm-row { overflow: hidden; position: relative; }
.cm-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: cm-scroll-a 42s linear infinite;
}
.cm-row-a::before,
.cm-row-a::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 34px;
  height: 14px;
  border: 2px solid rgba(127, 178, 255, 0.35);
  border-top: none;
  z-index: 1;
  pointer-events: none;
}
.cm-row-a::before { left: 6%; border-right: none; border-bottom-left-radius: 14px; }
.cm-row-a::after { right: 6%; border-left: none; border-bottom-right-radius: 14px; }
.cm-row-b .cm-track { animation-name: cm-scroll-b; animation-duration: 48s; }
.cm-cell {
  flex: 0 0 auto;
  width: 168px;
  height: 100px;
  margin-right: 14px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}
.cm-cell img {
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
}
.clients-marquee:hover .cm-track { animation-play-state: paused; }
@keyframes cm-scroll-a { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cm-scroll-b { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* keep the associates loop scrolling even when the global reduced-motion
   reset zeroes out every other animation (higher specificity beats the * reset) */
.clients-marquee .cm-track {
  animation-duration: 42s !important;
  animation-iteration-count: infinite !important;
}
.clients-marquee .cm-row-b .cm-track { animation-duration: 48s !important; }
@media (max-width: 800px) {
  .cm-cell { width: 132px; height: 84px; padding: 12px 16px; }
  .cm-cell img { max-height: 44px; }
}

/* ---------- 3D tilt project showcase ---------- */
.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 56px;
  perspective: 1400px;
}
.tcard {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 40px rgba(4, 12, 28, 0.5);
  background: #0C1B33;
}
.tcard img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.tcard:hover img { transform: scale(1.05); }
.tcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(12, 27, 51, 0) 30%, rgba(9, 19, 36, 0.9) 85%);
  z-index: 1;
}
.tcard::after { /* moving sheen */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 20%), rgba(127, 178, 255, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tcard:hover::after { opacity: 1; }
.tcard .tc-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 22px;
  transform: translateZ(46px);
}
.tcard .tc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7FB2FF;
  display: inline-block;
  border: 1px solid rgba(127, 178, 255, 0.4);
  border-radius: 99px;
  padding: 4px 11px;
  margin-bottom: 12px;
  background: rgba(12, 27, 51, 0.55);
  backdrop-filter: blur(4px);
}
.tcard h3 { color: #fff; font-size: 19px; line-height: 1.25; margin-bottom: 6px; }
.tcard .tc-meta { color: rgba(255, 255, 255, 0.7); font-size: 13px; }

/* cursor perf */
.cursor-pin { will-change: transform; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .thesis-words .w { opacity: 1; }
}

/* ================================================================
   INNER-PAGE INTERACTIVE SYSTEMS (businesses / careers / team / about)
   ================================================================ */

/* ---- Businesses: expanding sector doors ---- */
.xdoors {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  min-height: 460px;
}
.xdoor {
  position: relative;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy, #0E3163) 0%, #14407e 100%);
  color: #fff;
  text-decoration: none;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: flex 0.65s var(--ease), background 0.5s;
  cursor: pointer;
}
.xdoor::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at var(--mx, 50%) var(--my, 20%), rgba(94,156,247,0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.xdoor:hover, .xdoor.open { flex: 2.6; }
.xdoor:hover::after, .xdoor.open::after { opacity: 1; }
.xdoor .xd-key {
  position: absolute;
  top: 26px; left: 26px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
}
.xdoor h3 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.12;
  margin-bottom: 10px;
  transform: translateY(0);
  transition: transform 0.5s var(--ease);
}
.xdoor .xd-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.xdoor .xd-reveal p {
  overflow: hidden;
  min-height: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  opacity: 0;
  transition: opacity 0.45s 0.12s;
}
.xdoor:hover .xd-reveal, .xdoor.open .xd-reveal { grid-template-rows: 1fr; }
.xdoor:hover .xd-reveal p, .xdoor.open .xd-reveal p { opacity: 1; }
.xdoor .go { margin-top: 16px; color: #cfe1ff; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.xdoor svg.xbg {
  position: absolute; right: -20px; top: -10px;
  width: 55%; opacity: 0.14;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.xdoor:hover svg.xbg { transform: scale(1.12) rotate(-3deg); opacity: 0.24; }
@media (max-width: 860px) {
  .xdoors { flex-direction: column; min-height: 0; }
  .xdoor { min-height: 150px; }
  .xdoor .xd-reveal { grid-template-rows: 1fr; } .xdoor .xd-reveal p { opacity: 1; }
}

/* ---- Team: cursor spotlight + tilt profiles ---- */
.spotlight {
  position: relative;
}
.spotlight::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 420px at var(--mx, 50%) var(--my, 50%), rgba(45,127,249,0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.member.tilt {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  padding: 26px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e6ebf2);
  transition: transform 0.25s ease-out, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.member.tilt:hover { box-shadow: 0 24px 60px rgba(14,49,99,0.14); }
.member.tilt .m-photo img { transition: transform 0.4s var(--ease); }
.member.tilt:hover .m-photo img { transform: scale(1.045); }

/* ---- Careers: marquee + magnetic + draw-in steps ---- */
.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--hairline, #e6ebf2);
  border-bottom: 1px solid var(--hairline, #e6ebf2);
  padding: 18px 0;
  background: var(--navy, #0E3163);
  color: rgba(255,255,255,0.9);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track em { font-style: normal; color: #7FB2FF; }
@keyframes marquee { to { transform: translateX(-50%); } }

.magnetic { display: inline-block; transition: transform 0.2s ease-out; will-change: transform; }

.hire-steps { list-style: none; margin-top: 28px; counter-reset: hstep; }
.hire-steps li {
  padding: 18px 0;
  border-top: 1px solid var(--hairline, #e6ebf2);
  display: flex; gap: 18px;
  align-items: baseline;
  counter-increment: hstep;
  transition: transform 0.35s var(--ease), background 0.35s;
}
.hire-steps li:last-child { border-bottom: 1px solid var(--hairline, #e6ebf2); }
.hire-steps li::before {
  content: counter(hstep, decimal-leading-zero);
  color: var(--blue, #2D7FF9);
  font-weight: 700;
  font-size: 22px;
  flex: none;
  min-width: 40px;
}
.hire-steps li:hover { transform: translateX(12px); background: linear-gradient(90deg, rgba(45,127,249,0.05), transparent 70%); }

/* ---- About: journey line + flip values ---- */
.journey { position: relative; margin-top: 48px; padding-left: 34px; }
.journey::before {
  content: "";
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--blue, #2D7FF9) var(--jp, 0%), var(--hairline, #e2e8f2) var(--jp, 0%));
  transition: none;
}
.jstep { position: relative; padding: 22px 0 22px 12px; }
.jstep::before {
  content: "";
  position: absolute; left: -32px; top: 32px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface, #fff);
  border: 2.5px solid var(--blue, #2D7FF9);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.jstep:hover::before { transform: scale(1.4); background: var(--blue, #2D7FF9); }
.jstep .j-year { color: var(--blue, #2D7FF9); font-weight: 700; letter-spacing: 0.12em; font-size: 13px; }
.jstep h3 { margin: 6px 0 8px; font-size: 20px; }
.jstep p { color: var(--ink-soft, #5a6b80); font-size: 14.5px; max-width: 62ch; }

.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .value-cards { grid-template-columns: 1fr; } }
.vcard {
  position: relative;
  border-radius: 16px;
  padding: 34px 28px;
  background: var(--navy, #0E3163);
  color: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.vcard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(300px 200px at var(--mx, 50%) var(--my, 0%), rgba(127,178,255,0.3), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.vcard:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(10,30,60,0.35); }
.vcard:hover::before { opacity: 1; }
.vcard .ph-tag { color: #9cc3ff; }
.vcard h3 { font-size: 19px; line-height: 1.35; margin-top: 10px; }
.vcard .ph-mark { color: #9cc3ff; width: 30px; margin-bottom: 14px; }
.vcard .ph-mark svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .member.tilt, .magnetic { transition: none; }
}

/* ---- full-bleed parallax video interludes (inner pages) ---- */
.video-interlude {
  position: relative;
  height: 52vh;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy, #0E3163);
}
.video-interlude .video-back { position: absolute; inset: 0; }
.video-interlude .video-back video {
  width: 100%; height: 120%;
  object-fit: cover;
  will-change: transform;
}
.video-interlude::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,24,48,0.32), rgba(8,24,48,0.12) 45%, rgba(8,24,48,0.36));
}
.video-interlude::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
}
.video-interlude .vi-caption {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 0 24px;
}
.video-interlude .vi-caption h2 { font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -0.01em; }
.video-interlude .vi-caption p { margin-top: 10px; color: rgba(255,255,255,0.85); font-size: 15px; }

/* ================================================================
   PER-PAGE COLOUR THEMES — variable overrides, coherent sets
   ================================================================ */

/* hide blueprint grid texture on themed pages */
body[data-theme] .grid-texture { display: none; }

/* shared dark-UI adjustments */
body[data-ui="dark"] .brand-name { color: #fff; }
body[data-ui="dark"] .nav-links a:hover,
body[data-ui="dark"] .nav-links a.active { color: #fff; }
body[data-ui="dark"] .site-header.scrolled { background: var(--glass, rgba(12,14,18,0.82)); }
body[data-ui="dark"] .page-hero h1,
body[data-ui="dark"] .page-hero .lead { color: var(--ink); }
body[data-ui="dark"] .crumb, body[data-ui="dark"] .crumb a { color: var(--ink-soft); }
body[data-ui="dark"] img { filter: none; }
body[data-ui="dark"] ::selection { background: var(--blue); color: #0b0c0e; }

/* — Team: onyx / silver (Apple-like) — */
/* — People (onyx): now unified light, warm cream with blue thread — */
body[data-theme="onyx"] {
  --bg: #F1EDE4; --surface: #FBF9F4; --ink: #1A1712; --ink-soft: #574F41;
  --navy: #103A70; --blue: #245C9E; --gold: #A9791F;
  --wash: #E5DFD2; --wash-soft: #ECE7DB;
  --line: rgba(60,50,30,0.15); --hairline: rgba(60,50,30,0.08);
  --glass: rgba(241,237,228,0.82);
  --shadow-sm: 0 1px 2px rgba(90,70,30,0.06), 0 4px 12px rgba(90,70,30,0.07);
  --shadow-md: 0 2px 4px rgba(90,70,30,0.07), 0 12px 32px rgba(90,70,30,0.11);
  --shadow-lg: 0 4px 8px rgba(90,70,30,0.08), 0 24px 64px rgba(90,70,30,0.15);
  --footer-bg: #14202f;
}
body[data-theme="onyx"] .page-hero {
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(36,92,158,0.10), transparent 60%),
    linear-gradient(180deg, #F6F2EA 0%, #F1EDE4 100%);
}
body[data-theme="onyx"] .member.tilt {
  background: linear-gradient(165deg, #FBF9F4 0%, #F4EFE6 100%);
  border-color: rgba(60,50,30,0.14);
}
body[data-theme="onyx"] .member.tilt:hover { box-shadow: 0 24px 60px rgba(90,70,30,0.16), 0 0 0 1px rgba(36,92,158,0.14); }
body[data-theme="onyx"] .spotlight::before {
  background: radial-gradient(420px 420px at var(--mx,50%) var(--my,50%), rgba(36,92,158,0.06), transparent 70%);
}

/* — Expertise (deep): now unified light, warm cream with engineering-blue thread — */
body[data-theme="deep"] {
  --bg: #F1EDE4; --surface: #FBF9F4; --ink: #1A1712; --ink-soft: #574F41;
  --navy: #103A70; --blue: #245C9E; --gold: #A9791F;
  --wash: #E5DFD2; --wash-soft: #ECE7DB;
  --line: rgba(60,50,30,0.15); --hairline: rgba(60,50,30,0.08);
  --glass: rgba(241,237,228,0.82);
  --footer-bg: #14202f;
}
body[data-theme="deep"] .page-hero {
  background:
    radial-gradient(1000px 460px at 25% -12%, rgba(36,92,158,0.12), transparent 60%),
    linear-gradient(180deg, #F6F2EA 0%, #F1EDE4 100%);
}
body[data-theme="deep"] .svc { background: var(--surface); border-color: var(--hairline); }
/* xdoor stays a navy accent card (white text) on the light page — like the CTA band */
body[data-theme="deep"] .xdoor { background: linear-gradient(160deg, #103A70 0%, #17508e 100%); }
body[data-theme="deep"] .xdoor .go { color: #d8b871; }

/* sector accent colours win over the theme's flat navy — mirrors index.html .scard[data-sector] */
.xdoor[data-sector="tunnel"],     body[data-theme="deep"] .xdoor[data-sector="tunnel"]     { background: linear-gradient(160deg, #202329 0%, #2f343c 100%); }
.xdoor[data-sector="tunnel"] .xd-key, .xdoor[data-sector="tunnel"] .go, body[data-theme="deep"] .xdoor[data-sector="tunnel"] .go     { color: #c2c9d2; }
.xdoor[data-sector="water"],      body[data-theme="deep"] .xdoor[data-sector="water"]      { background: linear-gradient(160deg, #0a2038 0%, #10395f 100%); }
.xdoor[data-sector="water"] .xd-key, .xdoor[data-sector="water"] .go, body[data-theme="deep"] .xdoor[data-sector="water"] .go      { color: #4da3ff; }
.xdoor[data-sector="transport"],  body[data-theme="deep"] .xdoor[data-sector="transport"]  { background: linear-gradient(160deg, #16181c 0%, #2b241a 100%); }
.xdoor[data-sector="transport"] .xd-key, .xdoor[data-sector="transport"] .go, body[data-theme="deep"] .xdoor[data-sector="transport"] .go { color: #f0b429; }
.xdoor[data-sector="structural"], body[data-theme="deep"] .xdoor[data-sector="structural"] { background: linear-gradient(160deg, #211a16 0%, #38291f 100%); }
.xdoor[data-sector="structural"] .xd-key, .xdoor[data-sector="structural"] .go, body[data-theme="deep"] .xdoor[data-sector="structural"] .go { color: #d08a5e; }

/* — Careers: champagne & gold, people-first premium — */
body[data-theme="ember"] {
  --bg: #f7f2e8; --surface: #fffdf8; --ink: #241d10; --ink-soft: #6d6250;
  --navy: #1e2b45; --blue: #b8860b;
  --wash: #efe4cd; --wash-soft: #f3ecdd;
  --line: rgba(120, 95, 40, 0.2); --hairline: rgba(120, 95, 40, 0.1);
  --glass: rgba(247, 242, 232, 0.8);
  --shadow-sm: 0 1px 2px rgba(120, 90, 30, 0.08), 0 4px 12px rgba(120, 90, 30, 0.08);
  --shadow-md: 0 2px 4px rgba(120, 90, 30, 0.09), 0 12px 32px rgba(120, 90, 30, 0.12);
}
body[data-theme="ember"] .page-hero {
  background:
    radial-gradient(900px 420px at 75% -10%, rgba(212, 175, 55, 0.22), transparent 60%),
    linear-gradient(180deg, #fbf7ee 0%, #f7f2e8 100%);
}
body[data-theme="ember"] .page-hero h1,
body[data-theme="ember"] h2.h-lg,
body[data-theme="ember"] h2.h-md {
  background: linear-gradient(92deg, #1e2b45 0%, #6d5316 55%, #b8860b 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
body[data-theme="ember"] .dk h2.h-lg,
body[data-theme="ember"] .dk h2.h-md,
body[data-theme="ember"] .hero-copy h2,
body[data-theme="ember"] .cta-band h2 {
  background: linear-gradient(92deg, #ffffff 0%, #e9d8a6 55%, #d4af37 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
body[data-theme="ember"] .marquee-band { background: #1e2b45; border-color: rgba(212,175,55,0.3); }
body[data-theme="ember"] .marquee-track em { color: #d4af37; }
body[data-theme="ember"] .contact-card { background: var(--surface); border: 1px solid rgba(184,134,11,0.3); box-shadow: var(--shadow-md); }
body[data-theme="ember"] .hire-steps li::before { color: #b8860b; }
body[data-theme="ember"] .btn-primary { background: linear-gradient(90deg, #1e2b45, #2c4066); }
body[data-theme="ember"] .cta-band .btn-primary { background: #d4af37; color: var(--navy); }
body[data-theme="ember"] .cta-band .btn-primary:hover { background: #e9d8a6; }
body[data-theme="ember"] .ph-tag, body[data-theme="ember"] .eyebrow { color: #b8860b; }
body[data-theme="ember"] .eyebrow::before { background: #b8860b; }

/* — About: warm stone (light, not white) — */
body[data-theme="stone"] {
  --bg: #ebe6dc; --surface: #f6f3ec; --ink: #1a1712; --ink-soft: #5a5344;
  --wash: #ddd4c2; --wash-soft: #e4dccd;
  --line: rgba(60,50,30,0.16); --hairline: rgba(60,50,30,0.09);
  --glass: rgba(235,230,220,0.86);
}
body[data-theme="stone"] .site-header.scrolled { background: var(--glass); }
body[data-theme="stone"] .page-hero {
  background:
    radial-gradient(900px 420px at 30% -10%, rgba(15,61,124,0.1), transparent 60%),
    linear-gradient(180deg, #f1ede5 0%, #ebe6dc 100%);
}

/* — Sector themes — */
body[data-theme="slate"] {
  --bg: #16181b; --surface: #1f2226; --ink: #f0f1f3; --ink-soft: #a3a8af;
  --navy: #26292e; --blue: #c2c9d2;
  --wash: #24272c; --wash-soft: #191c1f;
  --line: rgba(200,208,218,0.18); --hairline: rgba(200,208,218,0.09);
  --glass: rgba(22,24,27,0.82);
}
body[data-theme="tide"] {
  --bg: #071c33; --surface: #0d2947; --ink: #ecf3fb; --ink-soft: #94b0d0;
  --navy: #051424; --blue: #4da3ff;
  --wash: #103254; --wash-soft: #092440;
  --line: rgba(120,180,255,0.22); --hairline: rgba(120,180,255,0.11);
  --glass: rgba(7,28,51,0.82);
}
body[data-theme="asphalt"] {
  --bg: #131519; --surface: #1c1f25; --ink: #f2f3f5; --ink-soft: #a4abb6;
  --navy: #22262d; --blue: #f0b429;
  --wash: #22262d; --wash-soft: #17191e;
  --line: rgba(240,180,41,0.2); --hairline: rgba(255,255,255,0.08);
  --glass: rgba(19,21,25,0.82);
}
body[data-theme="steel"] {
  --bg: #1b1614; --surface: #26201c; --ink: #f4efec; --ink-soft: #b0a49c;
  --navy: #2e2622; --blue: #d08a5e;
  --wash: #2c2420; --wash-soft: #201a17;
  --line: rgba(208,138,94,0.22); --hairline: rgba(208,138,94,0.11);
  --glass: rgba(27,22,20,0.82);
}
body[data-theme="slate"] .page-hero,
body[data-theme="tide"] .page-hero,
body[data-theme="asphalt"] .page-hero,
body[data-theme="steel"] .page-hero {
  background:
    radial-gradient(900px 420px at 70% -10%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, var(--blue) 4%) 0%, var(--bg) 100%);
}

/* dark-UI text remaps: anything set in navy becomes ink/accent */
body[data-ui="dark"] h1, body[data-ui="dark"] h2, body[data-ui="dark"] h3,
body[data-ui="dark"] h4, body[data-ui="dark"] .member h3,
body[data-ui="dark"] .svc summary, body[data-ui="dark"] .contact-card h3,
body[data-ui="dark"] .quote-block, body[data-ui="dark"] .award b {
  color: var(--ink);
}
body[data-ui="dark"] .btn-ghost { color: var(--ink); border-color: var(--line); }
body[data-ui="dark"] .contact-card a.big { color: var(--blue); }
body[data-ui="dark"] .svc[open] summary .s-plus { background: var(--blue); border-color: var(--blue); }
body[data-ui="dark"] .svc[open] summary .s-plus::before,
body[data-ui="dark"] .svc[open] summary .s-plus::after { background: var(--bg); }
body[data-ui="dark"] .m-role, body[data-ui="dark"] .ph-tag, body[data-ui="dark"] .eyebrow { color: var(--blue); }
body[data-ui="dark"] .eyebrow::before { background: var(--blue); }
body[data-ui="dark"] .svc-tags span { background: var(--wash); color: var(--ink-soft); border-color: var(--hairline); }
body[data-ui="dark"] .chip { background: var(--wash); color: var(--ink); border-color: var(--line); }
body[data-ui="dark"] .btn-primary { background: var(--blue); color: var(--bg); }
body[data-ui="dark"] .btn-primary:hover { background: var(--ink); }

/* ================================================================
   SCROLL-SCRUBBED SECTOR VIDEO — video advances with scroll,
   content printed on top of it
   ================================================================ */
.video-scrub { position: relative; height: 320vh; }
.video-scrub .vs-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.video-scrub video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-scrub .vs-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,10,18,0.32), rgba(5,10,18,0.08) 40%, rgba(5,10,18,0.36));
}
.video-scrub .vs-content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  z-index: 2;
}
.video-scrub .vs-content h2 { font-size: clamp(28px, 4.4vw, 58px); letter-spacing: -0.015em; max-width: 20ch; }
.video-scrub .vs-content p { margin-top: 14px; font-size: clamp(14px, 1.5vw, 18px); color: rgba(255,255,255,0.85); max-width: 52ch; }
.video-scrub .vs-progress {
  position: absolute; left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: 130px; height: 2px;
  background: rgba(255,255,255,0.25);
  z-index: 2;
}
.video-scrub .vs-progress i {
  display: block; height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(var(--vp, 0));
  transform-origin: left;
}
@media (prefers-reduced-motion: reduce) {
  .video-scrub { height: auto; }
  .video-scrub .vs-sticky { position: relative; height: 60vh; }
}


/* footer merges with page theme; transparent header */
body[data-theme="onyx"] { --footer-bg: #060708; }
body[data-theme="deep"] { --footer-bg: #081222; }
body[data-theme="ember"] { --footer-bg: #17213a; }
body[data-theme="stone"] { --footer-bg: #211d15; }
body[data-theme="slate"] { --footer-bg: #0f1113; }
body[data-theme="tide"] { --footer-bg: #04101f; }
body[data-theme="asphalt"] { --footer-bg: #0c0e11; }
body[data-theme="steel"] { --footer-bg: #120e0c; }
body[data-ui="dark"] .site-footer, body[data-theme="stone"] .site-footer { margin-top: clamp(60px, 8vw, 100px); }

.site-header.scrolled {
  background: transparent;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: none;
}

/* ================================================================
   FULL-PAGE VIDEO RIDE — hydropower & water
   ================================================================ */
body[data-videopage] { background: #05080c; }
body[data-theme="tide"][data-videopage] { background: #021418; }
body[data-videopage] .page-video { position: fixed; inset: 0; z-index: 0; }
body[data-videopage] .page-video video {
  width: 100%; height: 100%;
  object-fit: cover;
}
body[data-theme="tide"] .page-video .pv-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(2,20,24,0.05), transparent 60%),
    linear-gradient(180deg, rgba(2,20,24,0.18), rgba(2,20,24,0.03) 45%, rgba(2,20,24,0.22));
}
body[data-videopage] main { position: relative; z-index: 1; }
body[data-videopage] .section,
body[data-videopage] .section-tint,
body[data-videopage] .page-hero { background: transparent; }
body[data-videopage] .site-footer { position: relative; z-index: 1; }

/* glassy readable panels riding on the water */
body[data-theme="tide"] .svc,
body[data-theme="tide"] .contact-card,
body[data-theme="tide"] .phase,
body[data-theme="tide"] .award,
body[data-theme="tide"] .stat-card {
  background: rgba(4, 34, 42, 0.55);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(110, 220, 210, 0.22);
}
body[data-theme="tide"] .proj-section {
  background: rgba(4, 34, 42, 0.55);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-top: 1px solid rgba(110, 220, 210, 0.22);
  border-bottom: 1px solid rgba(110, 220, 210, 0.22);
}
body[data-videopage] .cta-band { backdrop-filter: blur(8px); }

/* vibrant aquatic type */
body[data-theme="tide"] .page-hero h1,
body[data-theme="tide"] h2.h-lg, body[data-theme="tide"] h2.h-md {
  background: linear-gradient(92deg, #ffffff 0%, #e9d8a6 55%, #d4af37 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.28));
}
body[data-theme="tide"] .eyebrow {
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 99px;
  padding: 5px 14px 5px 12px;
  width: fit-content;
}
body[data-theme="tide"] .eyebrow::before { background: #d4af37; }
body[data-theme="tide"] .lead, body[data-theme="tide"] p { color: rgba(230, 250, 250, 0.88); }
body[data-theme="tide"] .svc summary { color: #eafcfa; }
body[data-theme="tide"] .svc-tags span {
  background: rgba(69, 196, 176, 0.16);
  color: #9df2e4;
  border-color: rgba(110, 220, 210, 0.3);
}
body[data-theme="tide"] .btn-primary { background: linear-gradient(90deg, #2d7ff9, #4da3ff); color: #fff; }
body[data-theme="tide"] .btn-primary:hover { background: #eafcfa; }
body[data-theme="tide"] .chip { background: #eafcfa; color: #051424; border-color: rgba(5, 20, 36, 0.15); }
body[data-videopage] .site-header.scrolled { backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }


/* — videopage colour voices: slate (tunnelling), asphalt (transport), steel (structural) — */
body[data-videopage]:not([data-theme="tide"]) .page-video .pv-scrim {
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(5,8,12,0.05), transparent 60%),
    linear-gradient(180deg, rgba(5,8,12,0.2), rgba(5,8,12,0.04) 45%, rgba(5,8,12,0.24));
}
body[data-videopage]:not([data-theme="tide"]) .svc,
body[data-videopage]:not([data-theme="tide"]) .contact-card,
body[data-videopage]:not([data-theme="tide"]) .phase,
body[data-videopage]:not([data-theme="tide"]) .award,
body[data-videopage]:not([data-theme="tide"]) .stat-card {
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}
body[data-videopage] .lead, body[data-videopage] p { color: rgba(240, 244, 250, 0.88); }
body[data-videopage] .svc summary { color: var(--ink); }

body[data-theme="slate"][data-videopage] .svc,
body[data-theme="slate"][data-videopage] .contact-card,
body[data-theme="slate"][data-videopage] .phase,
body[data-theme="slate"][data-videopage] .award {
  background: rgba(16, 22, 30, 0.58);
  border: 1px solid rgba(140, 175, 225, 0.24);
}
body[data-theme="slate"][data-videopage] .proj-section {
  background: rgba(16, 22, 30, 0.58);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-top: 1px solid rgba(140, 175, 225, 0.24);
  border-bottom: 1px solid rgba(140, 175, 225, 0.24);
}
body[data-theme="slate"][data-videopage] .page-hero h1,
body[data-theme="slate"][data-videopage] h2.h-lg,
body[data-theme="slate"][data-videopage] h2.h-md {
  background: linear-gradient(92deg, #ffffff 0%, #e9d8a6 55%, #d4af37 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.28));
}
body[data-theme="slate"][data-videopage] .eyebrow {
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 99px;
  padding: 5px 14px 5px 12px;
  width: fit-content;
}
body[data-theme="slate"][data-videopage] .eyebrow::before { background: #d4af37; }
body[data-theme="slate"][data-videopage] .svc-tags span { background: rgba(200,208,218,0.14); color: #d7dde4; border-color: rgba(200,208,218,0.3); }
body[data-theme="slate"][data-videopage] .btn-primary { background: linear-gradient(90deg, #c2c9d2, #eceff3); color: #16181b; }

body[data-theme="asphalt"][data-videopage] .svc,
body[data-theme="asphalt"][data-videopage] .contact-card,
body[data-theme="asphalt"][data-videopage] .phase,
body[data-theme="asphalt"][data-videopage] .award {
  background: rgba(20, 20, 22, 0.58);
  border: 1px solid rgba(240, 180, 41, 0.26);
}
body[data-theme="asphalt"][data-videopage] .proj-section {
  background: rgba(20, 20, 22, 0.58);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-top: 1px solid rgba(240, 180, 41, 0.26);
  border-bottom: 1px solid rgba(240, 180, 41, 0.26);
}
body[data-theme="asphalt"][data-videopage] .page-hero h1,
body[data-theme="asphalt"][data-videopage] h2.h-lg,
body[data-theme="asphalt"][data-videopage] h2.h-md {
  background: linear-gradient(92deg, #ffffff 0%, #e9d8a6 55%, #d4af37 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.28));
}
body[data-theme="asphalt"][data-videopage] .eyebrow {
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 99px;
  padding: 5px 14px 5px 12px;
  width: fit-content;
}
body[data-theme="asphalt"][data-videopage] .eyebrow::before { background: #d4af37; }
body[data-theme="asphalt"][data-videopage] .svc-tags span { background: rgba(240,180,41,0.14); color: #ffd97a; border-color: rgba(240,180,41,0.3); }
body[data-theme="asphalt"][data-videopage] .btn-primary { background: linear-gradient(90deg, #f0b429, #ffd97a); color: #191307; }

body[data-theme="steel"][data-videopage] .svc,
body[data-theme="steel"][data-videopage] .contact-card,
body[data-theme="steel"][data-videopage] .phase,
body[data-theme="steel"][data-videopage] .award {
  background: rgba(22, 27, 32, 0.58);
  border: 1px solid rgba(190, 205, 220, 0.24);
}
body[data-theme="steel"][data-videopage] .proj-section {
  background: rgba(22, 27, 32, 0.58);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-top: 1px solid rgba(190, 205, 220, 0.24);
  border-bottom: 1px solid rgba(190, 205, 220, 0.24);
}
body[data-theme="steel"][data-videopage] .page-hero h1,
body[data-theme="steel"][data-videopage] h2.h-lg,
body[data-theme="steel"][data-videopage] h2.h-md {
  background: linear-gradient(92deg, #ffffff 0%, #e9d8a6 55%, #d4af37 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.28));
}
body[data-theme="steel"][data-videopage] .eyebrow {
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 99px;
  padding: 5px 14px 5px 12px;
  width: fit-content;
}
body[data-theme="steel"][data-videopage] .eyebrow::before { background: #d4af37; }
body[data-theme="steel"][data-videopage] .svc-tags span { background: rgba(208,138,94,0.14); color: #f0c8ab; border-color: rgba(208,138,94,0.3); }
body[data-theme="steel"][data-videopage] .btn-primary { background: linear-gradient(90deg, #d08a5e, #ffcfa8); color: #241610; }


/* ================================================================
   SEAMLESS VIDEO SECTIONS + THEMED SECTOR CARDS + ABOUT PREMIUM
   ================================================================ */

/* soft-merge full-bleed video sections into surroundings (no hard rectangle) */
.section.dk .video-back video,
.video-interlude .video-back video {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
/* section sits directly against the footer: fade the top only, keep the bottom edge solid */
.section.dk .video-back.hard-bottom video {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
}
.section.dk, .video-interlude { position: relative; }
.video-interlude { background: transparent; }
.video-interlude::after {
  background: linear-gradient(180deg, rgba(8,24,48,0.18), rgba(8,24,48,0.05) 45%, rgba(8,24,48,0.2));
}

/* — About (stone): premium light, gold thread — */
body[data-theme="stone"] { --blue: #a5741a; }
body[data-theme="stone"] .vcard {
  background: linear-gradient(165deg, #fffdf8 0%, #f4efe4 100%);
  color: var(--ink);
  border: 1px solid rgba(165, 116, 26, 0.28);
  box-shadow: 0 12px 34px rgba(120, 90, 30, 0.1);
}
body[data-theme="stone"] .vcard h3 { color: #1e2b45; }
body[data-theme="stone"] .vcard .ph-tag, body[data-theme="stone"] .vcard .ph-mark { color: #a5741a; }
body[data-theme="stone"] .vcard::before {
  background: radial-gradient(300px 200px at var(--mx,50%) var(--my,0%), rgba(212,175,55,0.22), transparent 65%);
}
body[data-theme="stone"] .vcard:hover { box-shadow: 0 26px 60px rgba(120, 90, 30, 0.2); }
body[data-theme="stone"] .page-hero h1 {
  background: linear-gradient(92deg, #1e2b45 0%, #6d5316 60%, #a5741a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
body[data-theme="stone"] .quote-block { border-left: 3px solid #a5741a; padding-left: 22px; }
body[data-theme="stone"] .award { border: 1px solid rgba(165,116,26,0.22); background: #fffdf8; }

/* — landing sector cards: each carries its sector's theme — */
.sector-solid .scard { color: #fff; border: none; transition: transform 0.4s var(--ease), box-shadow 0.4s; overflow: hidden; position: relative; }
.sector-solid .scard h3, .sector-solid .scard p { color: inherit; }
.sector-solid .scard p { color: rgba(255,255,255,0.78); }
.scard[data-sector="tunnel"] { background: linear-gradient(160deg, #202329 0%, #2f343c 100%); }
.scard[data-sector="tunnel"] .sc-num, .scard[data-sector="tunnel"] .go { color: #c2c9d2; }
.scard[data-sector="water"] { background: linear-gradient(160deg, #0a2038 0%, #10395f 100%); }
.scard[data-sector="water"] .sc-num, .scard[data-sector="water"] .go { color: #4da3ff; }
.scard[data-sector="transport"] { background: linear-gradient(160deg, #16181c 0%, #2b241a 100%); }
.scard[data-sector="transport"] .sc-num, .scard[data-sector="transport"] .go { color: #f0b429; }
.scard[data-sector="structural"] { background: linear-gradient(160deg, #211a16 0%, #38291f 100%); }
.scard[data-sector="structural"] .sc-num, .scard[data-sector="structural"] .go { color: #d08a5e; }
.sector-solid .scard:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(0,0,0,0.35); }

/* card -> sector page zoom transition */
.sector-zoom {
  position: fixed;
  z-index: 999;
  border-radius: 18px;
  transition: all 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex; align-items: center; justify-content: center;
}
.sector-zoom span {
  color: #fff; font-size: clamp(22px, 4vw, 44px); font-weight: 700;
  opacity: 0; transition: opacity 0.3s 0.2s;
  letter-spacing: -0.01em;
}
.sector-zoom.grow { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
.sector-zoom.grow span { opacity: 1; }

/* ================================================================
   SECTOR VIDEO-HERO LEGIBILITY — "reverse camouflage" + shadow floor
   The hero text over the scroll-scrubbed background video stays legible
   two ways: (1) a permanent text-shadow FLOOR so it never washes out on
   any frame, and (2) JS samples the video luminance behind the heading on
   each scroll tick and flips .cam-light / .cam-dark on .page-hero so the
   type colour inverts as the footage flows. If pixel-sampling isn't
   available (e.g. opened as a local file:// where the video canvas is
   tainted), it falls back to the light-on-dark floor, still fully legible.
   ================================================================ */

/* ember gradient heading on video pages, kept legible over any frame by the
   contour floor below (stroke + shadow), instead of collapsing to flat white */
body[data-videopage] .page-hero h1,
body[data-videopage] .page-hero h2.h-lg,
body[data-videopage] .page-hero h2.h-md {
  background: linear-gradient(92deg, #ffffff 0%, #e9d8a6 55%, #d4af37 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.28)) !important;
  transition: filter 0.28s ease, text-shadow 0.28s ease;
}

body[data-videopage] .page-hero .lead {
  transition: color 0.28s ease, text-shadow 0.28s ease;
  text-shadow:
    0 0 1px rgba(3, 8, 14, 0.85),
    0 1px 3px rgba(3, 8, 14, 0.8),
    0 1px 16px rgba(3, 8, 14, 0.55);
}
body[data-videopage] .page-hero .eyebrow,
body[data-videopage] .page-hero .crumb,
body[data-videopage] .page-hero .crumb a {
  transition: color 0.28s ease, text-shadow 0.28s ease;
  text-shadow: 0 0 1px rgba(3, 8, 14, 0.8), 0 1px 8px rgba(3, 8, 14, 0.6);
}
/* body copy that floats directly on the video lower down */
body[data-videopage] .lead,
body[data-videopage] > main > .section > .wrap > .two-col .lead {
  text-shadow: 0 0 1px rgba(3, 8, 14, 0.7), 0 1px 10px rgba(3, 8, 14, 0.5);
}

/* (2a) DARK / MID FRAME behind → light fill on the dark contour (default) */
body[data-videopage] .page-hero.cam-light h1 { color: #ffffff; }
body[data-videopage] .page-hero.cam-light .lead { color: rgba(255, 255, 255, 0.95); }

/* (2b) BRIGHT FRAME behind → dark fill, flipped to a LIGHT contour so the
   edge still separates the text from a bright, similarly-light background */
body[data-videopage] .page-hero.cam-dark .lead {
  color: rgba(10, 16, 22, 0.96);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(255, 255, 255, 0.85),
    0 1px 14px rgba(255, 255, 255, 0.6);
}
body[data-videopage] .page-hero.cam-dark .eyebrow,
body[data-videopage] .page-hero.cam-dark .crumb,
body[data-videopage] .page-hero.cam-dark .crumb a {
  color: rgba(10, 16, 22, 0.82);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.85), 0 1px 8px rgba(255, 255, 255, 0.6);
}
