/* ════════════════════════════════════════════════════════════════════
   CLIENTELE — "Our Strength. Your Trust." Hero
   Isolated component (see clientele-hero.js). Replaces the previous
   .clh cinematic-trophy hero on clientele.html only. Full-bleed
   photographic composition of a corporate handshake (Hero/Clientele.*)
   — the plate already carries the dark navy field on the left, the
   blurred business silhouettes, the faint world-map dots and the
   orange/blue wave accent along the bottom, so none of those are
   redrawn separately — one full-inset photo + one scrim, matching the
   site's established hero convention (.op-hero in process-hero.css,
   .sush in sustainability-hero.css, .q-hero in quality-hero.css), not a
   boxed image stitched against a separately drawn background. Three
   trust/partnership features sit under the copy on the left.

   Motion contract: only transform / opacity are animated on anything
   that runs continuously. Width, height, margin, left and top are
   never transitioned.
   ════════════════════════════════════════════════════════════════════ */

.cnh {
  --navy: #03142B;
  --navy-mid: #073A78;
  --navy-deep: #020B1C;
  --ink: #F5F7FB;
  --ink-dim: #B8C4D4;
  --accent: #FF7A00;
  --accent-2: #FF8A00;
  --accent-hot: #FFC24B;
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ink);
}

@media (max-width: 900px) {
  .cnh { height: auto; min-height: 0; max-height: none; }
}

.cnh-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ══ full-bleed photo ══ */
.cnh-visual { position: absolute; inset: 0; overflow: hidden; will-change: transform; }

.cnh-visual picture,
.cnh-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cnh-visual-img {
  object-fit: cover;
  object-position: 62% 52%;
  transform: scale(1.05);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: cnhIdleFloat 6.5s ease-in-out 1.8s infinite;
}

@media (max-width: 1100px) {
  .cnh-visual-img { object-position: 68% 50%; }
}

/* single scrim reinforcing the plate's own navy field on the left so
   the headline stays readable at any crop */
.cnh-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, var(--navy-deep) 0%, rgba(3, 20, 43, .94) 24%, rgba(3, 20, 43, .78) 40%, rgba(3, 20, 43, .42) 56%, rgba(3, 20, 43, .1) 72%, transparent 86%),
    linear-gradient(180deg, rgba(2, 8, 20, .3) 0%, transparent 18%, transparent 62%, rgba(2, 8, 20, .4) 100%);
}

@media (max-width: 900px) {
  .cnh-scrim {
    background:
      linear-gradient(180deg, rgba(3, 20, 43, .7) 0%, rgba(3, 20, 43, .34) 20%, rgba(2, 11, 28, .28) 38%, rgba(2, 11, 28, .58) 58%, rgba(2, 11, 28, .9) 76%, var(--navy-deep) 96%),
      linear-gradient(90deg, rgba(3, 20, 43, .45) 0%, transparent 45%, transparent 60%, rgba(3, 20, 43, .3) 100%);
  }
}

/* ── faint technical grid, low opacity, confined to the content field ── */
.cnh-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .04;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0px, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0px, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 42px);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 60%);
  mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 60%);
  animation: cnhGridDrift 22s linear infinite;
}

@keyframes cnhGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 84px 0, 0 84px; }
}

@media (max-width: 900px) {
  .cnh-grid { display: none; }
}

/* ── soft breathing ambient glow layered over the handshake and the
   wave accent already baked into the plate — the only motion added to
   the still photo's own lighting ── */
.cnh-glow-wrap { position: absolute; inset: 0; z-index: 1; will-change: transform; }

.cnh-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  mix-blend-mode: screen;
}

.cnh-glow-orange {
  left: 58%;
  top: 44%;
  width: clamp(220px, 26vw, 420px);
  height: clamp(220px, 26vw, 420px);
  background: radial-gradient(circle, rgba(255, 138, 0, .32) 0%, rgba(255, 122, 0, .12) 55%, transparent 75%);
  animation: cnhGlowBreathe 7s ease-in-out infinite;
}

.cnh-glow-blue {
  left: 78%;
  top: 78%;
  width: clamp(200px, 24vw, 380px);
  height: clamp(200px, 24vw, 380px);
  background: radial-gradient(circle, rgba(10, 79, 163, .34) 0%, rgba(10, 79, 163, .12) 55%, transparent 75%);
  animation: cnhGlowBreathe 8s ease-in-out infinite 1.2s;
}

@keyframes cnhGlowBreathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.08); }
}

@media (max-width: 1100px) {
  .cnh-glow { display: none; }
}

/* ── tiny orange particles drifting up through the plate's own wave
   band along the bottom ── */
.cnh-particles { position: absolute; inset: 0; z-index: 2; overflow: hidden; will-change: transform; }

.cnh-particle {
  position: absolute;
  left: var(--px);
  bottom: -10px;
  width: var(--ps);
  height: var(--ps);
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 8px 2px rgba(255, 194, 75, .55);
  opacity: 0;
  animation: cnhParticleRise var(--pd) ease-in var(--pdelay) infinite;
}

@keyframes cnhParticleRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: .8; }
  85% { opacity: .4; }
  100% { opacity: 0; transform: translate3d(var(--pdx), -140px, 0); }
}

@media (max-width: 900px) {
  .cnh-particles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cnh-visual-img { animation: none !important; }
  .cnh-grid, .cnh-glow, .cnh-particle { animation: none !important; }
  .cnh-glow { opacity: .6; }
}

/* ══ content ══ */
.cnh-inner {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2.5rem;
}

.cnh-content { max-width: min(45%, 600px); }

.cnh-eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
}

.cnh-eyebrow .accent { color: var(--accent-hot); }

.cnh-heading {
  margin-top: .9rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.8rem, 5.2vw + 1vh, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.01em;
}

.cnh-heading .line { display: block; opacity: 0; }
.cnh-heading .ink { color: #fff; }
.cnh-heading .accent {
  color: var(--accent);
  filter: drop-shadow(0 0 30px rgba(255, 122, 0, .35));
}

.cnh-underline {
  position: relative;
  margin-top: 1.3rem;
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 122, 0, 0));
  opacity: 0;
}

.cnh-underline-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 10px 3px rgba(255, 194, 75, .65);
  will-change: transform;
  animation: cnhUnderlineTravel 3.4s ease-in-out 1.1s infinite;
}

@keyframes cnhUnderlineTravel {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translateX(104px); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cnh-underline-dot { animation: none; transform: translateX(104px); }
}

.cnh-desc {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-dim);
  padding: .95rem 1.3rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0;
}

.cnh-desc .accent { color: var(--accent-hot); font-weight: 600; }

/* ══ three trust/partnership features ══ */
.cnh-features {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 3.6rem;
}

.cnh-feature {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: 0 1.35rem;
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, .14);
  outline: none;
  opacity: 0;
  transform: translateY(14px);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.cnh-feature:first-child { border-left: none; padding-left: 0; }

.cnh-feature-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 122, 0, .3), rgba(3, 20, 43, .05)), rgba(3, 20, 43, .68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 122, 0, .45);
  color: var(--accent-hot);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, box-shadow .28s ease, color .28s ease;
}

.cnh-feature-icon svg { width: 19px; height: 19px; }

/* ── idle "flex" pulse: a soft ring breathing outward behind each icon ── */
.cnh-feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-hot);
  box-shadow: 0 0 0 0 rgba(255, 194, 75, .5);
  opacity: 0;
  animation: cnhIconFlex 2.6s cubic-bezier(.22, 1, .36, 1) infinite;
}
.cnh-feature:nth-child(1) .cnh-feature-icon::after { animation-delay: 0s; }
.cnh-feature:nth-child(2) .cnh-feature-icon::after { animation-delay: .65s; }
.cnh-feature:nth-child(3) .cnh-feature-icon::after { animation-delay: 1.3s; }
.cnh-feature:nth-child(4) .cnh-feature-icon::after { animation-delay: 1.95s; }

@keyframes cnhIconFlex {
  0% { transform: scale(1); opacity: .9; }
  75% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.cnh-feature-text {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.4;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(2, 8, 20, .7);
  transition: color .28s ease;
  overflow-wrap: break-word;
}

.cnh-feature:hover,
.cnh-feature:focus-visible { transform: translateY(-2px); }

.cnh-feature:hover .cnh-feature-icon,
.cnh-feature:focus-visible .cnh-feature-icon {
  transform: scale(1.08);
  border-color: var(--accent-hot);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 138, 0, .14), 0 0 18px rgba(255, 194, 75, .4);
}

.cnh-feature:hover .cnh-feature-text,
.cnh-feature:focus-visible .cnh-feature-text { color: var(--accent-hot); }

@media (prefers-reduced-motion: reduce) {
  .cnh-feature, .cnh-feature:hover, .cnh-feature:focus-visible { transform: none !important; }
  .cnh-feature-icon::after { animation: none !important; display: none; }
}

@media (max-width: 1280px) and (min-width: 901px) {
  .cnh-feature { padding: 0 1rem; }
  .cnh-feature-icon { width: 34px; height: 34px; }
  .cnh-feature-icon svg { width: 16px; height: 16px; }
  .cnh-feature-text { font-size: .68rem; }
}

/* ══ mobile: eyebrow, headline, underline, copy and the three features
   stack centered over the same full-bleed photo, no separate boxed
   card — matches the homepage / leadership hero ══ */
@media (max-width: 900px) {
  .cnh-inner { padding: calc(var(--nav-h) + 1.6rem) 1.25rem 2.5rem; display: block; }

  .cnh-content { max-width: none; text-align: center; }

  .cnh-underline { margin-left: auto; margin-right: auto; }

  .cnh-desc { margin-left: auto; margin-right: auto; }

  .cnh-features {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 1.6rem;
    margin-top: 2.6rem;
    margin-bottom: 0;
  }

  .cnh-feature {
    flex: 0 0 auto;
    width: 33.33%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .55rem;
    border-left: none;
    padding: 0 .5rem;
  }
  .cnh-feature-text { font-size: .68rem; }

  .cnh-visual-img { object-position: 62% 32%; animation: none; }
}

@keyframes cnhIdleFloat {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50% { transform: scale(1.05) translateY(-5px); }
}

/* ══ LOW-END MOBILE: decorative background-position sweep/drift forces a
   repaint every frame and (where paired) costs extra compositing via
   mix-blend-mode; simplify it away below the tablet breakpoint regardless
   of the user's reduced-motion preference, since most low-end-phone users
   won't have that OS setting enabled ══ */
@media (max-width: 760px) {
  .cnh-grid { animation: none !important; }
}

/* ══ LOW-POWER MODE: same grid-drift simplification as the mobile
   breakpoint above, keyed off device capability (.low-power-mode)
   instead of viewport width ══ */
.low-power-mode .cnh-grid { animation: none !important; }
