/* =========================================================
   UNIFORM HEADER NAV TEXT — SAME SIZE ON EVERY PAGE
   Loaded LAST on every page. High specificity so no page-
   specific rule (home / equipment / clients / leadership /
   reach / projects) can change the header text size.
   To change the header text size everywhere, edit ONLY
   the --nav-font-size value below.
   ========================================================= */
:root {
  --nav-font-size: 16px;      /* Home, About, Capabilities, Projects, Equipment */
  --nav-cta-font-size: 13px;  /* CONTACT button */
  --nav-menu-font-size: 15px; /* dropdown list items */
}

html body .site-header .main-nav > a:not(.nav-cta),
html body .site-header .main-nav > .nav-dropdown > .nav-drop-trigger,
html body .site-header .main-nav > .nav-dropdown > .nav-drop-trigger .nav-label,
html body .site-header.is-scrolled .main-nav > a:not(.nav-cta),
html body .site-header.is-scrolled .main-nav > .nav-dropdown > .nav-drop-trigger,
html body .site-header.is-scrolled .main-nav > .nav-dropdown > .nav-drop-trigger .nav-label {
  font-family: var(--body, "IBM Plex Sans", sans-serif) !important;
  font-size: var(--nav-font-size) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: .01em !important;
}

/* dropdown arrow */
html body .site-header .nav-drop-trigger > span:not(.nav-label) {
  font-size: 13px !important;
}

/* CONTACT button */
html body .site-header .main-nav > a.nav-cta,
html body .site-header.is-scrolled .main-nav > a.nav-cta {
  font-size: var(--nav-cta-font-size) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

/* dropdown flyout items */
html body .site-header .nav-dropdown-menu a,
html body .site-header.is-scrolled .nav-dropdown-menu a {
  font-size: var(--nav-menu-font-size) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

/* =========================================================
   EQUIPMENT PAGE: FULL VIDEO, NO BLACK BARS, NO CROPPING
   Replace the previous video code with this.
   Add at the END of nav-uniform.css
   ========================================================= */

/* Top hero: the hero box takes the video's 16:9 shape,
   so the video fills it fully with nothing cut off */
body.equipment-page-body .equipment-stepwise-hero {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  background: transparent !important;
}
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
body.equipment-page-body .equipment-page-hero-image .equipment-hero-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* same ratio, so nothing is cropped */
  background: transparent !important;
  display: block;
}

/* Piling Gantry card: the box takes the video's 16:9 shape */
body.equipment-page-body .equipment-step-card[data-project="equip-piling-gantry"] .equipment-step-media {
  height: auto !important;
  aspect-ratio: 16 / 9;
  background: transparent !important;
}
body.equipment-page-body .equipment-step-media .equipment-card-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: transparent !important;
  display: block;
}

/* Gallery popup video */
body.equipment-page-body .gallery-video,
.gallery-video {
  background: transparent !important;
}
body.equipment-page-body .gallery-video video,
.gallery-video video {
  width: 100% !important;
  height: auto !important;
  max-height: 76vh !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* =========================================================
   EQUIPMENT HERO TEXT: MOVE TO TOP + RIGHT SIDE
   ========================================================= */
body.equipment-page-body .equipment-stepwise-hero {
  align-items: flex-start !important;   /* text goes to the top */
}

body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy {
  position: relative;
  z-index: 2;
  margin: 130px 750px 0 auto !important;        /* push to the right side */
  padding: 250px 40px 0 0 !important;   /* 120px = space below the header */
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  text-align: left !important;
}

body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy h1,
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy > p {
  margin-left: auto !important;
  text-align: left !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

/* Mobile */
@media (max-width: 700px) {
  body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy {
    padding: 95px 20px 0 0 !important;
    max-width: 100% !important;
  }
}


/* =========================================================
   EQUIPMENT PAGE — BRIGHTER HERO VIDEO
   ========================================================= */

/* 1. Make the video / fallback image itself brighter and more vivid */
body.equipment-page-body .equipment-page-hero-image .equipment-hero-video,
body.equipment-page-body .equipment-page-hero-image img {
  filter: brightness(1.18) contrast(1.08) saturate(1.15) !important;
}

/* 2. Much lighter overlay (was up to 68–80% black at the bottom) */
body.equipment-page-body .equipment-page-hero-image::after,
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-image::after {
  background: linear-gradient(
    180deg,
    rgba(4, 9, 14, 0)   0%,
    rgba(4, 9, 14, 0)   55%,
    rgba(4, 9, 14, .28) 100%
  ) !important;
}

/* 3. Lighter shade behind the menu (was .55) */
html body.equipment-page-body .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(5, 12, 20, .30), rgba(5, 12, 20, 0)) !important;
}

/* 4. Keep the heading readable now that the overlay is lighter */
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy h1,
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy > p,
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy .eyebrow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, .45), 0 4px 22px rgba(0, 0, 0, .55) !important;
}
/* =========================================================
   HOME HERO TEXT — reference style
   ========================================================= */
html body.home-page .executive-hero .hero-content,
html body.home-page .reference-matter-hero .hero-content {
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 0 clamp(24px, 5.1vw, 90px) clamp(70px, 12vh, 130px) !important;
}

/* Red eyebrow with line */
html body.home-page .hero-eyebrow {
  display: flex !important;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px !important;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif !important;
  font-size: clamp(12px, 1vw, 16px) !important;
  font-weight: 700 !important;
  letter-spacing: .26em !important;
  text-transform: uppercase;
  color: #ef233c !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
html body.home-page .hero-eyebrow::after {
  content: "";
  width: clamp(60px, 7vw, 110px);
  height: 2px;
  background: #ef233c;
}

/* Heading */
html body.home-page .reference-matter-hero .hero-content h1.hero-title {
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif !important;
  font-size: clamp(40px, 4.9vw, 82px) !important;
  font-weight: 800 !important;
  line-height: 1.04 !important;
  letter-spacing: -.03em !important;
  text-transform: none !important;
  color: #fff !important;
  max-width: 1000px !important;
  margin: 0 !important;
  text-shadow: 0 3px 18px rgba(0,0,0,.35) !important;
}
html body.home-page .hero-title .hl {
  position: relative;
  display: inline-block;
  color: #ef233c !important;
  padding-bottom: .12em;
}
/* hand-drawn red underline */
html body.home-page .hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 2%;
  bottom: -.06em;
  height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 60 3, 150 4, 297 7' fill='none' stroke='%23ef233c' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* switch off older heading decorations */
html body.home-page .reference-matter-hero .hero-content h1.hero-title::after,
html body.home-page .reference-matter-hero .hero-content h1.hero-title strong::after {
  display: none !important;
  content: none !important;
}

/* Paragraph */
html body.home-page .hero-sub {
  display: block !important;
  max-width: 760px;
  margin: 26px 0 34px !important;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif !important;
  font-size: clamp(15px, 1.35vw, 22px) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,.95) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* Buttons */
html body.home-page .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
html body.home-page .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: clamp(52px, 4.1vw, 66px);
  padding: 0 clamp(24px, 2.1vw, 34px);
  border-radius: 6px;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
html body.home-page .hero-btn-primary {
  background: #e11d3a;
  color: #fff !important;
  border: 2px solid #e11d3a;
}
html body.home-page .hero-btn-primary span { font-size: 1.3em; transition: transform .25s ease; }
html body.home-page .hero-btn-primary:hover { background: #bf1230; border-color: #bf1230; transform: translateY(-2px); }
html body.home-page .hero-btn-primary:hover span { transform: translateX(5px); }
html body.home-page .hero-btn-outline {
  background: rgba(0,0,0,.12);
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.9);
}
html body.home-page .hero-btn-outline:hover { background: #fff; color: #10202c !important; transform: translateY(-2px); }

/* Left-to-right dark fade like the reference */
html body.home-page .executive-hero .hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(4,14,26,.82) 0%, rgba(4,14,26,.55) 32%, rgba(4,14,26,.12) 62%, rgba(4,14,26,0) 100%),
    linear-gradient(180deg, rgba(4,14,26,.35) 0, rgba(4,14,26,0) 140px),
    linear-gradient(0deg, rgba(4,14,26,.35) 0%, rgba(4,14,26,0) 45%) !important;
}

@media (max-width: 700px) {
  html body.home-page .hero-eyebrow { letter-spacing: .16em !important; gap: 10px; font-size: 11px !important; }
  html body.home-page .hero-sub br { display: none; }
  html body.home-page .hero-cta { gap: 12px; }
  html body.home-page .hero-btn { width: 100%; max-width: 320px; }
}

/* =========================================================
   HOME HERO — SMALLER TEXT
   ========================================================= */
html body.home-page .hero-eyebrow {
  font-size: clamp(11px, .8vw, 13px) !important;
  letter-spacing: .22em !important;
  margin-bottom: 14px !important;
}
html body.home-page .hero-eyebrow::after { width: clamp(44px, 5vw, 80px); }

html body.home-page .reference-matter-hero .hero-content h1.hero-title {
  font-size: clamp(28px, 3.3vw, 54px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
  max-width: 780px !important;
}

html body.home-page .hero-sub {
  font-size: clamp(14px, 1.05vw, 18px) !important;
  max-width: 600px !important;
  margin: 18px 0 26px !important;
  line-height: 1.5 !important;
}

html body.home-page .hero-cta { gap: 16px; }
html body.home-page .hero-btn {
  height: clamp(44px, 3.2vw, 52px) !important;
  padding: 0 clamp(18px, 1.6vw, 26px) !important;
  font-size: clamp(13px, .95vw, 16px) !important;
  border-radius: 5px;
}

/* =========================================================
   HOME HERO VIDEO — SHARP AND CLEAR
   (no zoom animation, no filters, very light overlay)
   ========================================================= */
html body.home-page .executive-hero .hero-slide-video,
html body.home-page .reference-matter-hero .hero-slide-video {
  filter: none !important;
  -webkit-filter: none !important;
  animation: none !important;
  transform: none !important;
  object-fit: cover !important;
  image-rendering: auto;
  backface-visibility: hidden;
}

html body.home-page .executive-hero .hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(4,14,26,.62) 0%, rgba(4,14,26,.32) 30%, rgba(4,14,26,0) 58%),
    linear-gradient(180deg, rgba(4,14,26,.28) 0, rgba(4,14,26,0) 120px),
    linear-gradient(0deg, rgba(4,14,26,.22) 0%, rgba(4,14,26,0) 35%) !important;
}
html body.home-page .hero-bottom-fade { display: none !important; }

/* =========================================================
   EQUIPMENT PAGE HERO VIDEO — SHARP AND CLEAR
   ========================================================= */
body.equipment-page-body .equipment-page-hero-image .equipment-hero-video,
body.equipment-page-body .equipment-page-hero-image img {
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  animation: none !important;
}
body.equipment-page-body .equipment-page-hero-image::after,
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-image::after {
  background: linear-gradient(180deg, rgba(4,9,14,.18) 0%, rgba(4,9,14,0) 22%, rgba(4,9,14,0) 100%) !important;
}
html body.equipment-page-body .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(5,12,20,.35), rgba(5,12,20,0)) !important;
}
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy h1,
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy > p {
  text-shadow: 0 2px 4px rgba(0,0,0,.5), 0 4px 20px rgba(0,0,0,.6) !important;
}

@media (max-width: 700px) {
  html body.home-page .reference-matter-hero .hero-content h1.hero-title {
    font-size: clamp(26px, 7.6vw, 36px) !important;
  }
  html body.home-page .hero-btn { height: 46px !important; }
}



/* =========================================================
   HOME HERO — reference style (small text + fade in/out)
   ========================================================= */
:root { --hero-cycle: 9s; }  /* set to your video length in seconds */

/* position: bottom-left, like the reference */
html body.home-page .executive-hero .hero-content,
html body.home-page .reference-matter-hero .hero-content {
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 0 clamp(24px, 3.5vw, 70px) clamp(80px, 20vh, 200px) !important;
}

/* keep only heading + subtitle (as in the reference) */
html body.home-page .hero-eyebrow,
html body.home-page .hero-cta { display: none !important; }

/* heading */
html body.home-page .reference-matter-hero .hero-content h1.hero-title {
  font-family: "Inter", "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: clamp(24px, 2.15vw, 42px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -.015em !important;
  color: #fff !important;
  max-width: 760px !important;
  margin: 0 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.35) !important;
}
html body.home-page .hero-title .hl {
  color: #fff !important;
  padding: 0;
}
html body.home-page .hero-title .hl::after { display: none !important; }

/* subtitle */
html body.home-page .hero-sub {
  font-family: "Inter", Arial, sans-serif !important;
  font-size: clamp(12px, .85vw, 15px) !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  max-width: 560px !important;
  margin: 10px 0 0 !important;
  color: rgba(255,255,255,.95) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.45) !important;
}

/* fade in -> hold -> fade out, repeating with the video.
   (filter/translate are used because older rules force
   opacity/transform with !important) */
@keyframes heroTextCycle {
  0%   { filter: opacity(0); translate: 0 18px; }
  9%   { filter: opacity(1); translate: 0 0; }
  86%  { filter: opacity(1); translate: 0 0; }
  100% { filter: opacity(0); translate: 0 -6px; }
}
html body.home-page .executive-hero .hero-content h1.hero-title,
html body.home-page .executive-hero .hero-content p.hero-sub {
  animation: heroTextCycle var(--hero-cycle) ease-in-out infinite !important;
}
html body.home-page .executive-hero .hero-content p.hero-sub {
  animation-delay: .25s !important;
}
@media (prefers-reduced-motion: reduce) {
  html body.home-page .executive-hero .hero-content h1.hero-title,
  html body.home-page .executive-hero .hero-content p.hero-sub {
    animation: none !important; filter: none !important; translate: none !important;
  }
}

/* =========================================================
   HOME HERO VIDEO — bright, vivid, no heavy overlay
   ========================================================= */
html body.home-page .executive-hero .hero-slide-video,
html body.home-page .reference-matter-hero .hero-slide-video {
  filter: brightness(1.14) contrast(1.06) saturate(1.2) !important;
  animation: none !important;
  transform: none !important;
  object-fit: cover !important;
  backface-visibility: hidden;
}
html body.home-page .executive-hero .hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(4,14,26,.38) 0%, rgba(4,14,26,.14) 30%, rgba(4,14,26,0) 55%),
    linear-gradient(0deg,  rgba(4,14,26,.18) 0%, rgba(4,14,26,0) 35%) !important;
}
html body.home-page .hero-bottom-fade { display: none !important; }

/* =========================================================
   EQUIPMENT PAGE VIDEO — bright and vivid
   ========================================================= */
body.equipment-page-body .equipment-page-hero-image .equipment-hero-video,
body.equipment-page-body .equipment-page-hero-image img {
  filter: brightness(1.14) contrast(1.06) saturate(1.2) !important;
  transform: none !important;
  animation: none !important;
}
body.equipment-page-body .equipment-page-hero-image::after,
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-image::after {
  background: linear-gradient(180deg, rgba(4,9,14,.14) 0%, rgba(4,9,14,0) 20%, rgba(4,9,14,0) 100%) !important;
}

@media (max-width: 700px) {
  html body.home-page .reference-matter-hero .hero-content h1.hero-title { font-size: clamp(22px, 6.2vw, 30px) !important; }
  html body.home-page .hero-sub br { display: none; }
}
/* =========================================================
   HOME HERO — RESTORE ORIGINAL DESIGN + KEEP FADE ANIMATION
   ========================================================= */

/* show the eyebrow and buttons again */
html body.home-page .hero-eyebrow {
  display: flex !important;
  color: #ef233c !important;
  font-size: clamp(11px, .85vw, 14px) !important;
  letter-spacing: .24em !important;
  margin: 0 0 14px !important;
}
html body.home-page .hero-cta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0;
}

/* heading: white, with red "Beyond Limits." and the red underline */
html body.home-page .reference-matter-hero .hero-content h1.hero-title {
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif !important;
  font-size: clamp(26px, 2.7vw, 46px) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: -.025em !important;
  color: #fff !important;
  max-width: 820px !important;
}
html body.home-page .hero-title .hl {
  color: #ef233c !important;
  padding-bottom: .12em;
}
html body.home-page .hero-title .hl::after { display: block !important; }

/* paragraph */
html body.home-page .hero-sub {
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif !important;
  font-size: clamp(13px, 1vw, 17px) !important;
  font-weight: 500 !important;
  max-width: 640px !important;
  margin: 16px 0 24px !important;
  color: rgba(255,255,255,.95) !important;
}

/* buttons: original red + outline style, a bit smaller */
html body.home-page .hero-btn {
  height: clamp(44px, 3.3vw, 54px) !important;
  padding: 0 clamp(18px, 1.7vw, 28px) !important;
  font-size: clamp(13px, .95vw, 16px) !important;
  border-radius: 6px;
}
html body.home-page .hero-btn-primary { background: #e11d3a; border: 2px solid #e11d3a; color: #fff !important; }
html body.home-page .hero-btn-outline { background: rgba(0,0,0,.12); border: 2px solid rgba(255,255,255,.9); color: #fff !important; }

/* fade in / out for ALL hero text, one after another */
html body.home-page .executive-hero .hero-content p.hero-eyebrow,
html body.home-page .executive-hero .hero-content h1.hero-title,
html body.home-page .executive-hero .hero-content p.hero-sub,
html body.home-page .executive-hero .hero-content div.hero-cta {
  animation: heroTextCycle var(--hero-cycle) ease-in-out infinite !important;
}
html body.home-page .executive-hero .hero-content p.hero-eyebrow { animation-delay: 0s !important; }
html body.home-page .executive-hero .hero-content h1.hero-title  { animation-delay: .15s !important; }
html body.home-page .executive-hero .hero-content p.hero-sub     { animation-delay: .3s !important; }
html body.home-page .executive-hero .hero-content div.hero-cta   { animation-delay: .45s !important; }

@media (prefers-reduced-motion: reduce) {
  html body.home-page .executive-hero .hero-content p.hero-eyebrow,
  html body.home-page .executive-hero .hero-content div.hero-cta {
    animation: none !important; filter: none !important; translate: none !important;
  }
}

@media (max-width: 700px) {
  html body.home-page .reference-matter-hero .hero-content h1.hero-title { font-size: clamp(24px, 6.8vw, 32px) !important; }
  html body.home-page .hero-btn { width: 100%; max-width: 300px; }
}





/* FINAL EQUIPMENT VIDEO BRIGHTNESS OVERRIDE */
body.equipment-page-body .equipment-page-hero-image .equipment-hero-video,
body.equipment-page-body .equipment-page-hero-image img {
  filter: brightness(1.30) contrast(1.06) saturate(1.15) !important;
  -webkit-filter: brightness(1.30) contrast(1.06) saturate(1.15) !important;
}



/* FINAL HOMEPAGE VIDEO BRIGHTNESS */
html body.home-page .executive-hero .hero-slide-video,
html body.home-page .reference-matter-hero .hero-slide-video {
  filter: brightness(1.30) contrast(1.06) saturate(1.15) !important;
  -webkit-filter: brightness(1.30) contrast(1.06) saturate(1.15) !important;
}

/* Lighten the dark overlay over the homepage video */
html body.home-page .executive-hero .hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(4,14,26,.22) 0%, rgba(4,14,26,.08) 30%, rgba(4,14,26,0) 58%),
    linear-gradient(180deg, rgba(4,14,26,.16) 0, rgba(4,14,26,0) 120px),
    linear-gradient(0deg, rgba(4,14,26,.12) 0%, rgba(4,14,26,0) 35%) !important;
}

