/* ============================================
   DELMON MASTERBATCH - Premium Layer
   Loaded AFTER style.css. Enhances visuals and
   adds the immersive product showcase + particles
   + micro-interactions. Never overrides core layout.
   ============================================ */

/* --- Tokens --- */
:root {
  --pm-bg: linear-gradient(135deg, #0a1628 0%, #101f3f 45%, #332b99 130%);
  --pm-accent-grad: linear-gradient(135deg, #e8621a, #ff0033);
  --pm-glass: rgba(255, 255, 255, 0.06);
  --pm-glass-line: rgba(255, 255, 255, 0.14);
  --pm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dm-red: #e11b22;
  --dm-red-deep: #a30d14;
  --dm-red-soft: #ff4b50;
  --dm-grey-dark: #2b3038;
}

/* --- Reveal states (only when JS present) --- */
.js-on .reveal,
.js-on .reveal-left,
.js-on .reveal-right,
.js-on .reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.8s var(--pm-ease), transform 0.8s var(--pm-ease);
}

.js-on .reveal { transform: translateY(36px); }
.js-on .reveal-left { transform: translateX(-44px); }
.js-on .reveal-right { transform: translateX(44px); }
.js-on .reveal-scale { transform: scale(0.95); }

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

/* --- Cursor glow (desktop) --- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1200;
  background: radial-gradient(circle, rgba(232, 98, 26, 0.14) 0%, rgba(51, 43, 153, 0.10) 42%, transparent 70%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* --- Header: glass on scroll --- */
.header {
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 98, 26, 0.7);
}

/* --- Buttons: premium finish --- */
.btn {
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s var(--pm-ease), box-shadow 0.3s var(--pm-ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn:hover::after {
  left: 130%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(10, 22, 40, 0.20);
}

.btn.magneted {
  transform: translate3d(var(--mx, 0), calc(var(--my, 0) + 0px), 0);
}

.btn.magneted::after {
  left: 130%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
  transition: transform 0.3s var(--pm-ease), box-shadow 0.3s var(--pm-ease);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(255, 0, 51, 0.35);
}

/* --- Section kickers --- */
.overline {
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title h2 {
  position: relative;
}

/* ============================================
   IMMERSIVE PRODUCT SHOWCASE (Products page)
   ============================================ */
.showcase {
  padding: 96px 0 0;
  background:
    radial-gradient(1200px 600px at 82% 6%, rgba(51, 43, 153, 0.22), transparent 60%),
    radial-gradient(900px 500px at 8% 96%, rgba(232, 98, 26, 0.12), transparent 55%),
    var(--light);
}

.showcase .sc-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.showcase .sc-head .overline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--logo-red);
}

.showcase .sc-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  background: linear-gradient(135deg, var(--primary), #332b99);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase .sc-head p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin: 0;
}

.showcase-stage {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  perspective: 1500px;
  background:
    radial-gradient(1100px 640px at 78% 22%, rgba(51, 43, 153, 0.42), transparent 62%),
    radial-gradient(760px 520px at 12% 88%, rgba(232, 98, 26, 0.20), transparent 55%),
    linear-gradient(135deg, #0a1628 0%, #0f2040 48%, #1c2f5e 100%);
  isolation: isolate;
}

.showcase-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), transparent 78%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), transparent 78%);
  pointer-events: none;
}

.showcase-state-hint {
  display: none;
}

.showcase-track {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.showcase-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  padding: 0 clamp(24px, 7vw, 120px);
  cursor: pointer;
  opacity: 0;
  will-change: transform, opacity;
}

.sc-visual {
  position: relative;
  flex: 0 1 auto;
  width: clamp(260px, 32vw, 430px);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--pm-glass);
  border: 1px solid var(--pm-glass-line);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform-style: preserve-3d;
}

.sc-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--pm-ease);
}

.showcase-item:hover .sc-visual img {
  transform: scale(1.06);
}

.sc-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, transparent 38%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.sc-visual-glints {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  z-index: 2;
  background: radial-gradient(120px 80px at 30% 22%, rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.showcase-item:hover .sc-visual-glints {
  opacity: 1;
}

.sc-info {
  position: relative;
  z-index: 2;
  flex: 0 1 clamp(300px, 30vw, 460px);
  color: #e9edf6;
}

.sc-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #ffd9c7;
  background: rgba(232, 98, 26, 0.16);
  border: 1px solid rgba(232, 98, 26, 0.42);
  margin-bottom: 22px;
}

.sc-info h3 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 14px;
  line-height: 1.12;
  color: var(--white);
  background: linear-gradient(120deg, #ffffff, #c3b9ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sc-info p {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: rgba(233, 237, 246, 0.78);
  margin-bottom: 30px;
}

.sc-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--pm-ease);
  will-change: transform;
}

.sc-open i {
  color: var(--accent);
}

.showcase-item:hover .sc-open,
.magneted.sc-open {
  background: rgba(232, 98, 26, 0.22);
  border-color: rgba(232, 98, 26, 0.6);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
}

/* showcase stage meta (counter / progress) */
.showcase-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(24px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  pointer-events: none;
}

.showcase-counter {
  font-family: 'Russo One', 'Inter', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: #ffffff;
  min-width: 110px;
}

.showcase-counter span {
  color: rgba(255, 255, 255, 0.45);
}

.showcase-progress {
  flex: 1;
  max-width: 460px;
  height: 3px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.showcase-progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), #ff0033);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.showcase-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.showcase-hint i {
  animation: dm-drop 1.8s ease-in-out infinite;
}

@keyframes dm-drop {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* --- Static fallback (no GSAP / reduced motion) --- */
.showcase-stage.showcase-static {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 60px 0;
  background:
    radial-gradient(1100px 640px at 78% 4%, rgba(51, 43, 153, 0.28), transparent 60%),
    linear-gradient(135deg, #0a1628 0%, #10213f 100%);
}

.showcase-stage.showcase-static .showcase-track {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.showcase-stage.showcase-static .showcase-item {
  position: static;
  opacity: 1;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pm-glass-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--pm-ease), box-shadow 0.35s ease;
}

.showcase-stage.showcase-static .showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.showcase-stage.showcase-static .sc-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: none;
}

.showcase-stage.showcase-static .sc-info {
  flex: 0 1 auto;
  padding: 26px 26px 30px;
}

.showcase-stage.showcase-static .sc-info h3 {
  font-size: 1.5rem;
}

.showcase-stage.showcase-static .showcase-meta,
.showcase-stage.showcase-static .showcase-progress,
.showcase-stage.showcase-static .showcase-hint {
  display: none;
}

/* ============================================
   PRODUCT DETAIL EXPAND
   ============================================ */
.product-expand {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.product-expand.open {
  opacity: 1;
  visibility: visible;
}

.product-expand-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
}

.product-expand-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1060px, calc(100% - 36px));
  height: min(660px, 90vh);
  transform: translate(-50%, -50%);
  display: flex;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(18, 32, 58, 0.97), rgba(10, 22, 40, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.7);
}

.product-expand-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.product-expand-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.pe-col {
  min-width: 0;
}

.pe-col.pe-visual {
  flex: 1 1 46%;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--pm-glass-line);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6);
}

.pe-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}

.pe-col.pe-body {
  flex: 1 1 54%;
  padding: 48px 48px 40px 0;
  overflow-y: auto;
  color: #e9edf6;
}

.pe-body::-webkit-scrollbar { width: 6px; }
.pe-body::-webkit-scrollbar-track { background: transparent; }
.pe-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 100px; }

.pe-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #ffd9c7;
  background: rgba(232, 98, 26, 0.16);
  border: 1px solid rgba(232, 98, 26, 0.42);
  margin-bottom: 20px;
}

.pe-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 8px;
}

.pe-tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.pe-desc {
  color: rgba(233, 237, 246, 0.78);
  margin-bottom: 26px;
}

.pe-body h4 {
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 26px 0 14px;
  position: relative;
  padding-left: 14px;
}

.pe-body h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
}

.pe-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 0;
}

.pe-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: rgba(233, 237, 246, 0.88);
}

.pe-benefits li i {
  color: #35d07f;
  font-size: 0.8rem;
  margin-top: 4px;
}

.pe-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pe-app-chip {
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: #e9edf6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pe-tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
}

.pe-tech-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.pe-tech-row span {
  color: rgba(233, 237, 246, 0.6);
}

.pe-tech-row strong {
  color: #ffffff;
  text-align: right;
}

.pe-cta {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

/* ============================================
   HERO PARTICLES
   ============================================ */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}

@media (max-width: 992px) {
  .particles-canvas {
    opacity: 0.75;
  }
}

/* ============================================
   CARD UPGRADES
   ============================================ */
.mb-service-card,
.app-card,
.product-card {
  transition: transform 0.35s var(--pm-ease), box-shadow 0.35s ease;
}

.mb-service-card:hover,
.app-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(10, 22, 40, 0.16);
}

/* ============================================
   CTA SECTION PREMIUM
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 340px at 82% 20%, rgba(51, 43, 153, 0.5), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(232, 98, 26, 0.28), transparent 55%);
  pointer-events: none;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER TOP ACCENT
   ============================================ */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--logo-red), #332b99, var(--accent));
  background-size: 200% 100%;
  animation: dm-gradslide 6s linear infinite;
}

@keyframes dm-gradslide {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

/* same running accent line, pinned to the top edge of the header */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--logo-red), #332b99, var(--accent));
  background-size: 200% 100%;
  animation: dm-gradslide 6s linear infinite;
  pointer-events: none;
}

/* ============================================
   LOADING SCREEN SHIMMER
   ============================================ */
.loading-logo img {
  animation: dm-float 2.6s ease-in-out infinite;
}

@keyframes dm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   RESPONSIVE PREMIUM
   ============================================ */
@media (max-width: 992px) {
  .showcase-item {
    gap: 36px;
    padding: 0 32px;
  }

  .showcase-stage.showcase-static .showcase-track {
    grid-template-columns: 1fr;
  }
}

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

  .showcase-stage {
    min-height: 100svh;
    height: 100svh;
  }

  .showcase-item {
    flex-direction: column;
    gap: 22px;
    padding: 56px 26px 90px;
    text-align: center;
  }

  .sc-visual {
    width: clamp(200px, 58vw, 290px);
  }

  .sc-chip { margin-bottom: 16px; }

  .sc-info h3 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .sc-info p {
    margin-bottom: 20px;
  }

  .showcase-meta {
    padding: 18px 22px;
  }

  .showcase-hint {
    display: none;
  }

  .product-expand-panel {
    flex-direction: column;
    width: calc(100% - 24px);
    height: 92vh;
    border-radius: 18px;
  }

  .pe-col.pe-visual {
    flex: 0 0 34%;
    padding: 20px 20px 0;
  }

  .pe-visual-frame {
    height: 100%;
    max-height: 200px;
  }

  .pe-col.pe-body {
    flex: 1 1 auto;
    padding: 24px 22px 32px;
  }

  .pe-benefits,
  .pe-tech {
    grid-template-columns: 1fr;
  }

  .pe-cta {
    margin-top: 22px;
  }

  .cursor-glow {
    display: none;
  }
}

/* ============================================
   PRODUCT COLOUR CATALOGUE - 74-colour journey
   ============================================ */
.cj {
  position: relative;
  background: #ffffff;
  padding: 96px 0 0;
  overflow: hidden;
}

.cj .cj-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.cj .cj-head .overline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--logo-red);
}

.cj .cj-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  color: var(--primary);
}

.cj .cj-head p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin: 0;
}

/* --- Reference grid (searchable catalogue) --- */
.cj-reference {
  margin-top: 90px;
  padding: 0 0 96px;
}

.cj-reference-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 34px;
}

.cj-reference-head .overline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.cj-reference-head p {
  color: var(--text-light);
  margin: 8px 0 0;
}


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

  .cj-reference {
    margin-top: 60px;
  }
}

/* ============================================
   HERO 3D — MASTERBATCH MATERIAL IN MOTION
   ============================================ */
.hero {
  overflow: hidden;
  overflow: clip;
}

.hero-3d {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 56%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
  transform-origin: 60% 50%;
}

.hero-3d .hero3d-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  will-change: transform, opacity;
}

body:not(.hero-webgl) .hero-3d {
  display: none;
}

.hero-webgl .particles-canvas {
  display: none;
}

.hero .container,
.hero-container {
  z-index: 3;
}

.hero-dots {
  z-index: 4;
}

.hero-content {
  justify-content: flex-start;
}

.hero-left {
  flex: 0 1 46%;
  min-width: 320px;
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 46px;
  position: relative;
  z-index: 3;
}

.hero-stats-row .hero-stat {
  text-align: left;
  padding: 0 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats-row .hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats-row .hero-stat h3 {
  font-size: 2.1rem;
  color: #ffffff;
}

.hero-stats-row .hero-stat p {
  margin: 0;
  color: rgba(233, 237, 246, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .hero-3d {
    width: 100%;
    height: 100%;
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .hero-left {
    flex: 1 1 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats-row {
    justify-content: center;
    gap: 10px 24px;
    margin-top: 36px;
  }

  .hero-stats-row .hero-stat {
    padding: 0 20px;
  }

  .hero-stats-row .hero-stat h3 {
    font-size: 1.6rem;
  }

  .hero-3d {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 46%;
    opacity: 0.85;
    transform-origin: 50% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d {
    opacity: 0.9;
  }
}

/* ============================================
   HERO ENTRY — CLEAN PREMIUM CORPORATE
   Light background, elegant typography, spacing,
   subtle entrance only. No imagery, no falling
   pellets, no stock backgrounds.
   ============================================ */
.hero-entry {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  text-align: center;
  padding: 140px 20px 96px;
  background:
    radial-gradient(56rem 26rem at 50% -6rem, rgba(232, 98, 26, 0.07) 0%, rgba(232, 98, 26, 0) 60%),
    radial-gradient(40rem 20rem at 108% 110%, rgba(51, 43, 153, 0.06) 0%, rgba(51, 43, 153, 0) 65%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

/* Faint engineering grid, fading toward the edges */
.hero-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 58, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 58, 110, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 42%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 78%);
  mask-image: radial-gradient(58% 58% at 50% 42%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 78%);
}

.hero-entry .hero-container,
.hero-entry .container {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.hero-entry .hero-overline {
  color: var(--accent);
  text-shadow: none;
  margin-bottom: 26px;
  letter-spacing: 6px;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-entry .hero-overline::before,
.hero-entry .hero-overline::after {
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-entry .hero-overline::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-entry .hero-title {
  color: var(--primary);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  text-shadow: none;
}

.hero-entry .hero-title .highlight {
  color: var(--logo-red);
}

.hero-entry .hero-subtitle {
  color: var(--text-light);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 38px;
}

.hero-entry .hero-buttons {
  justify-content: center;
}

/* Thin divider above the stats */
.hero-rule {
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--logo-red));
  margin: 52px auto 40px;
}

/* Stats strip */
.hero-entry .hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: auto;
  max-width: 680px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-entry .hero-stats-row .hero-stat {
  display: block;
  text-align: center;
  padding: 0 44px;
  border-bottom: 0;
  border-left: 1px solid var(--gray-light);
}

.hero-entry .hero-stats-row .hero-stat:first-child {
  padding-top: 0;
  border-left: 0;
}

.hero-entry .hero-stats-row .hero-stat h3 {
  color: var(--primary);
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
}

.hero-entry .hero-stats-row .hero-stat p {
  color: var(--text-light);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

/* Entry sequence (html.js-on added by premium.js; .is-enter added
   by premium.js once the loading screen has lifted).
   Elements are hidden ONLY while js-on is present AND the sequence has
   not started; once .is-enter applies they return to opacity 1 from the
   cascade, so visibility never depends on an animation completing. */
html.js-on .hero-entry:not(.is-enter) .hero-overline,
html.js-on .hero-entry:not(.is-enter) .hero-title,
html.js-on .hero-entry:not(.is-enter) .hero-subtitle,
html.js-on .hero-entry:not(.is-enter) .hero-buttons .btn,
html.js-on .hero-entry:not(.is-enter) .hero-rule,
html.js-on .hero-entry:not(.is-enter) .hero-stats-row {
  opacity: 0;
}

.hero-entry.is-enter .hero-overline {
  animation: delmonHeroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.hero-entry.is-enter .hero-title {
  animation: delmonHeroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.22s;
}

.hero-entry.is-enter .hero-subtitle {
  animation: delmonHeroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.34s;
}

.hero-entry.is-enter .hero-buttons .btn {
  animation: delmonHeroIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.46s;
}

.hero-entry.is-enter .hero-rule {
  animation: delmonHeroIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.58s;
}

.hero-entry.is-enter .hero-stats-row {
  animation: delmonHeroIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.7s;
}

@keyframes delmonHeroIn {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .hero-entry {
    padding: 118px 18px 70px;
  }

  .hero-entry .hero-rule {
    margin: 44px auto 34px;
  }

  .hero-entry .hero-stats-row {
    gap: 22px 0;
  }

  .hero-entry .hero-stats-row .hero-stat {
    padding: 0 26px;
  }
}

@media (max-width: 575.98px) {
  .hero-entry {
    padding: 104px 14px 58px;
  }

  .hero-entry .hero-overline {
    letter-spacing: 4px;
  }

  .hero-entry .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
  }

  .hero-entry .hero-stats-row {
    width: 100%;
    max-width: 340px;
    gap: 24px 0;
  }

  .hero-entry .hero-stats-row .hero-stat {
    padding: 0;
    border-left: 0;
  }

  .hero-entry .hero-stats-row .hero-stat:nth-child(2) {
    border-left: 1px solid var(--gray-light);
  }

  .hero-entry .hero-stats-row .hero-stat h3 {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-entry .hero-overline,
  .hero-entry .hero-title,
  .hero-entry .hero-subtitle,
  .hero-entry .hero-buttons .btn,
  .hero-entry .hero-rule,
  .hero-entry .hero-stats-row {
    opacity: 1 !important;
    animation: none;
  }
}

/* ============================================
   PREMIUM REDESIGN v2
   Header CTA · Hero split · Stats · Why icons ·
   Apps cards · Contact · Typography polish
   ============================================ */

/* --- Header "Request a Quote" CTA --- */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  padding: 10px 22px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(255, 0, 51, 0.45);
  transition: transform 0.3s var(--pm-ease), box-shadow 0.3s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 16px 34px -8px rgba(255, 0, 51, 0.5);
}

.mobile-menu-cta {
  display: block;
  margin: 12px 4px 6px;
  padding: 13px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 26px -10px rgba(255, 0, 51, 0.5);
}

@media (max-width: 991.98px) {
  .header-cta { display: none; }
}

/* --- Typography: Inter only, sentence-case buttons --- */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

.btn {
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-primary,
.btn-outline,
.btn-outline-dark,
.btn-white {
  border-radius: 100px;
}

.hero-overline {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

.showcase-counter {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
}

.btn-block {
  display: block;
  width: 100%;
}

.mb-card-btn {
  margin-top: 16px;
  font-size: 0.85rem;
  padding: 10px 20px;
}

/* --- Hero: premium split layout --- */
.hero-entry.hero-split {
  padding: 148px 24px 92px;
  text-align: left;
}

.hero-entry.hero-split .hero-container,
.hero-entry.hero-split .container {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 84px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-entry.hero-split .hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  letter-spacing: 4px;
}

.hero-entry.hero-split .hero-overline::before {
  content: '';
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--logo-red));
  box-shadow: 0 0 12px rgba(232, 98, 26, 0.45);
}

.hero-entry.hero-split .hero-overline::after {
  display: none;
}

.hero-entry.hero-split .hero-title {
  max-width: 660px;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.hero-entry.hero-split .hero-title .highlight {
  background: linear-gradient(120deg, var(--accent), var(--logo-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-entry.hero-split .hero-subtitle {
  max-width: 540px;
  margin: 0 0 34px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: #5a6577;
}

.hero-entry.hero-split .hero-buttons {
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero visual (square masterbatch pieces) --- */
.hero-visual {
  position: relative;
  height: clamp(360px, 40vw, 540px);
  perspective: 900px;
  overflow: hidden;
  will-change: transform;
}

.hero-cube-field {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * 1deg)) rotateY(calc(var(--mx, 0) * 1deg));
  will-change: transform;
}

.hero-cube {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: var(--c);
  border-radius: calc(var(--s) * 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 16px 32px -10px rgba(10, 22, 40, 0.4);
  opacity: 0;
  transform: translateY(10px) rotate(var(--r, 0deg));
  transition: opacity 0.5s ease var(--d2, 0s), transform 0.5s ease var(--d2, 0s);
  pointer-events: none;
}

.hero-cube-field.ready .hero-cube {
  opacity: 1;
  transform: translateY(0) rotate(var(--r, 0deg));
}

.hero-spot-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px 20px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(51, 43, 153, 0.1);
  border-radius: 20px;
  box-shadow:
    0 34px 70px -18px rgba(10, 22, 40, 0.4),
    inset 0 1px 0 #ffffff;
  animation: heroSpotFloat 8s ease-in-out infinite alternate;
  animation-delay: 0.6s;
}

@keyframes heroSpotFloat {
  0% { transform: translate(-50%, calc(-50% - 6px)); }
  100% { transform: translate(-50%, calc(-50% + 6px)); }
}

.hero-spot-shade {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: var(--spot);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 34px -10px var(--spot);
  overflow: hidden;
}

.hero-spot-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.32) 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-spot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.hero-spot-chip {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--accent);
  margin-bottom: 4px;
}

.hero-spot-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.hero-spot-sub {
  font-size: 0.84rem;
  color: var(--text-light);
}

.hero-float-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 22, 40, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 34px -12px rgba(10, 22, 40, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  animation: heroTagFloat 7s ease-in-out infinite alternate;
}

.hero-float-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 98, 26, 0.7);
}

.hero-float-a { top: 6%; right: 6%; animation-delay: 0.2s; }
.hero-float-b { bottom: 8%; left: 4%; animation-delay: 1.2s; }

@keyframes heroTagFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Entrance sequence for the visual */
html.js-on .hero-entry:not(.is-enter) .hero-visual {
  opacity: 0;
}

.hero-entry.is-enter .hero-visual {
  animation: delmonHeroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.35s;
}

/* --- Statistics section --- */
.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #14315c 55%, #1a3a6e 100%);
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, rgba(0, 0, 0, 0.5), transparent 80%);
  mask-image: radial-gradient(60% 60% at 50% 40%, rgba(0, 0, 0, 0.5), transparent 80%);
  pointer-events: none;
}

.stats-section .section-title {
  position: relative;
  z-index: 1;
}

.stats-section .section-title h2 { color: #ffffff; }
.stats-section .section-title p { color: rgba(255, 255, 255, 0.62); }
.stats-section .section-title .overline { color: var(--accent); }
.stats-section .section-title .underline { background: rgba(255, 255, 255, 0.25); }

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.stat-card {
  position: relative;
  text-align: center;
  padding: 40px 22px 34px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.35s var(--pm-ease), background 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(232, 98, 26, 0.55);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(232, 98, 26, 0.22), rgba(255, 0, 51, 0.18));
  border: 1px solid rgba(232, 98, 26, 0.35);
  color: #ffb38a;
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.stat-card h3 {
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(120deg, #ffffff, #cfc7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
}

.stat-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* --- Why Delmon: icon upgrade --- */
.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--logo-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--pm-ease);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(232, 98, 26, 0.12), rgba(51, 43, 153, 0.08));
  border: 1px solid rgba(232, 98, 26, 0.22);
  transition: transform 0.35s var(--pm-ease), background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.why-card:hover .why-icon {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
  color: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(255, 0, 51, 0.45);
}

/* --- Applications: premium white cards --- */
.app-grid .app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 214px;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: 0 8px 26px -14px rgba(10, 22, 40, 0.14);
  text-align: left;
  overflow: hidden;
  transition: transform 0.35s var(--pm-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.app-grid .app-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--logo-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--pm-ease);
}

.app-grid .app-card:hover::before {
  transform: scaleX(1);
}

.app-grid .app-card:hover {
  border-color: rgba(232, 98, 26, 0.4);
  box-shadow: 0 22px 44px -14px rgba(10, 22, 40, 0.22);
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 12px 24px -8px rgba(10, 22, 40, 0.4);
  transition: transform 0.35s var(--pm-ease), background 0.35s ease;
}

.app-grid .app-card:hover .app-icon {
  transform: rotate(-6deg) scale(1.08);
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
}

.app-grid .app-card h4 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 1.04rem;
  font-weight: 700;
}

.app-grid .app-card p {
  margin: 0;
  max-width: 100%;
  color: var(--text-light);
  font-size: 0.87rem;
  line-height: 1.55;
}

.app-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.35s var(--pm-ease), background 0.3s ease, color 0.3s ease;
}

.app-grid .app-card:hover .app-arrow {
  opacity: 1;
  transform: translateX(0);
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
  color: #ffffff;
}

/* --- Contact: banner + form --- */
.contact-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 52px clamp(28px, 6vw, 68px);
  background:
    radial-gradient(600px 300px at 88% 10%, rgba(255, 0, 51, 0.18), transparent 60%),
    radial-gradient(520px 280px at 4% 96%, rgba(51, 43, 153, 0.55), transparent 60%),
    linear-gradient(135deg, #0a1628, #1a3a6e);
  color: #ffffff;
  box-shadow: 0 32px 70px -28px rgba(10, 22, 40, 0.55);
}

.contact-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, rgba(0, 0, 0, 0.5), transparent 85%);
  mask-image: radial-gradient(70% 70% at 70% 30%, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.contact-banner .cb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-banner h2 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.5px;
}

.contact-banner p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 620px;
  font-size: 1.02rem;
}

.contact-banner .cb-inner .btn {
  flex-shrink: 0;
}

.contact-form-section {
  background: var(--light);
}

.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-panel {
  padding: 40px 36px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: 0 14px 40px -20px rgba(10, 22, 40, 0.18);
}

.contact-info-panel .overline {
  margin-bottom: 12px;
}

.contact-info-panel h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-info-panel > p {
  color: var(--text-light);
  margin-bottom: 18px;
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
}

.ci-item:last-child {
  border-bottom: 0;
}

.ci-item i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-top: 2px;
  font-size: 0.95rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(232, 98, 26, 0.12), rgba(51, 43, 153, 0.06));
  border: 1px solid rgba(232, 98, 26, 0.2);
}

.ci-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3px;
}

.ci-item a,
.ci-item span {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.ci-item a:hover {
  color: var(--accent);
}

.contact-form-panel {
  padding: 40px 38px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: 0 14px 40px -20px rgba(10, 22, 40, 0.18);
}

.contact-form-panel h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-form-panel > p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.form-group label span {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--light);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #97a0af;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 98, 26, 0.12);
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--logo-red);
  box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.12);
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 0 10px;
}

.form-success.show {
  display: block;
}

.form-success i {
  font-size: 2.6rem;
  color: #35d07f;
  margin-bottom: 14px;
}

.form-success h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .hero-entry.hero-split .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    width: 100%;
    max-width: 520px;
    height: 380px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hero-entry.hero-split {
    padding: 118px 18px 70px;
  }

  .hero-visual {
    height: 340px;
  }

  .contact-banner {
    padding: 38px 24px;
  }

  .contact-banner .cb-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form-panel,
  .contact-info-panel {
    padding: 28px 22px;
  }
}

@media (max-width: 575.98px) {
  .hero-visual {
    height: 300px;
  }

  .hero-entry.hero-split .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }

  .hero-float-tag {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stat-card {
    padding: 26px 14px 22px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.contact-banner .hero-overline {
  color: #ffb38a;
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ============================================
   HERO TRIPTYCH — text / CTA / premium stats
   ============================================ */
.hero-entry.hero-triptych {
  padding: 148px 24px 92px;
  text-align: center;
}

.hero-entry.hero-triptych .hero-container {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.hero-entry.hero-triptych .hero-copy {
  position: relative;
  isolation: isolate;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-entry.hero-triptych .hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 18px;
  letter-spacing: -1.4px;
  font-weight: 800;
  color: var(--dm-red);
}

.hero-entry.hero-triptych .hero-title .highlight {
  background: linear-gradient(110deg, var(--dm-red-soft) 0%, var(--dm-red) 40%, var(--dm-red-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-entry.hero-triptych .hero-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: #1a1d22;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  letter-spacing: 0.1px;
}

/* Right image panel */
.hero-visual-panel {
  position: relative;
  align-self: center;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-light);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 30px 60px -26px rgba(10, 22, 40, 0.5);
}

.hero-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 55%, rgba(10, 22, 40, 0.35) 100%);
  pointer-events: none;
}

/* Entrance */
html.js-on .hero-entry:not(.is-enter) .hero-visual-panel {
  opacity: 0;
}

.hero-entry.is-enter .hero-visual-panel {
  animation: delmonHeroIn 0.7s ease both;
  animation-delay: 0.65s;
}

/* Centre CTA zone — horizontal buttons, Explore first, Contact second */
.hero-entry.hero-triptych .hero-cta-mid {
  grid-column: 2;
  grid-row: 2;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px 0 0;
}

.hero-entry.hero-triptych .hero-cta-mid .btn {
  border-radius: 999px;
  padding: 15px 34px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  box-shadow: 0 18px 36px -18px rgba(10, 22, 40, 0.7);
}

.hero-entry.hero-triptych .hero-cta-mid .btn-primary {
  background: linear-gradient(180deg, var(--dm-red-soft) 0%, var(--dm-red) 46%, var(--dm-red-deep) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 34px -16px rgba(225, 27, 34, 0.75);
}

.hero-entry.hero-triptych .hero-cta-mid .btn-primary::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 5px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-entry.hero-triptych .hero-cta-mid .btn-outline-dark {
  background: linear-gradient(180deg, #4a505b 0%, var(--dm-grey-dark) 55%, #22262c 100%);
  color: #f2f4f7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.75);
}

.hero-entry.hero-triptych .hero-cta-mid .btn-outline-dark::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 5px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* Right stats zone — premium glass cards */
.hero-stats-premium {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 210px;
  justify-self: end;
  margin-left: auto;
}

.hsp-item {
  padding: 24px 14px 20px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(10, 22, 40, 0.08);
  box-shadow: 0 18px 44px -20px rgba(10, 22, 40, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hsp-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(10, 22, 40, 0.45);
}

.hsp-number {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--dm-red-soft), var(--dm-red) 45%, var(--dm-red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hsp-label {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Entrance */
html.js-on .hero-entry:not(.is-enter) .hero-stats-premium {
  opacity: 0;
}

.hero-entry.is-enter .hero-stats-premium {
  animation: delmonHeroIn 0.6s ease both;
  animation-delay: 0.55s;
}

@media (max-width: 991.98px) {
  .hero-entry.hero-triptych .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }

  .hero-entry.hero-triptych .hero-copy,
  .hero-entry.hero-triptych .hero-cta-mid,
  .hero-stats-premium {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-entry.hero-triptych .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-entry.hero-triptych .hero-title,
  .hero-entry.hero-triptych .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-entry.hero-triptych .hero-cta-mid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-stats-premium {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    justify-self: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hsp-item {
    flex: 1 1 150px;
  }

  .hero-visual-panel {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .hero-stats-premium {
    gap: 10px;
  }

  .hsp-item {
    flex: 1 1 44%;
    padding: 20px 10px 16px;
  }

  .hsp-number {
    font-size: 1.6rem;
  }

  .hsp-label {
    font-size: 0.66rem;
    letter-spacing: 1.5px;
  }

  .hero-visual-panel {
    max-width: 340px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-visual {
    opacity: 1 !important;
    animation: none !important;
  }

  .hero-cube,
  .hero-spot-card,
  .hero-float-tag {
    animation: none !important;
  }

  .hero-spot-card {
    transform: translate(-50%, -50%) !important;
  }

  .hero-stats-premium {
    opacity: 1 !important;
    animation: none !important;
  }

  .hero-visual-panel {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ============================================
   HEADER: transparent -> white on scroll
   ============================================ */
.header {
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid transparent;
}

.header .logo {
  background: #ffffff;
  padding: 8px 16px 8px 10px;
  border-radius: 14px;
  box-shadow: 0 10px 30px -14px rgba(10, 22, 40, 0.4);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

.header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1);
}

.header.scrolled .logo {
  box-shadow: 0 6px 18px -14px rgba(10, 22, 40, 0.2);
}

.nav-links a {
  color: var(--dm-red);
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 9px 18px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--dm-red-deep);
  background: rgba(225, 27, 34, 0.09);
}

.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(120deg, var(--dm-red) 0%, var(--dm-red-deep) 100%);
  box-shadow: 0 8px 22px -10px rgba(225, 27, 34, 0.75);
}

.nav-links a.active::after {
  display: none;
}

.mobile-menu a {
  font-weight: 700;
}

.mobile-menu a.active {
  color: #ffffff;
  background: linear-gradient(120deg, var(--dm-red) 0%, var(--dm-red-deep) 100%);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ============================================
   PAGE HERO: full-screen slide hero
   ============================================ */
.page-hero {
  min-height: 100vh;
  min-height: 100svh;
}

/* ============================================
   CONTACT SECTION: glass cards on white
   ============================================ */
#contact {
  scroll-margin-top: 84px;
}

.contact-section {
  position: relative;
  background: #ffffff;
  padding: 100px 0 110px;
  overflow: hidden;
}

.contact-section::before,
.contact-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.contact-section::before {
  width: 440px;
  height: 440px;
  top: -120px;
  left: -140px;
  background: radial-gradient(circle, rgba(232, 98, 26, 0.16) 0%, rgba(232, 98, 26, 0) 70%);
}

.contact-section::after {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle, rgba(51, 43, 153, 0.14) 0%, rgba(51, 43, 153, 0) 70%);
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-section .section-title {
  margin-bottom: 54px;
}

/* ============================================
   BRANCH LOCATIONS: skyline branch cards
   ============================================ */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 46px;
}

.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid rgba(13, 62, 112, 0.1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px -24px rgba(10, 30, 60, 0.35);
  transition: transform 0.45s var(--pm-ease), box-shadow 0.45s var(--pm-ease), border-color 0.45s ease;
}

.branch-card:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 62, 112, 0.24);
  box-shadow: 0 34px 70px -26px rgba(10, 30, 60, 0.45);
}

/* full-card photo layer */
.branch-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 50% 50%;
  transform: scale(1.02);
  transition: transform 0.9s var(--pm-ease);
  pointer-events: none;
}

.branch-card:hover .branch-photo {
  transform: scale(1.07);
}

/* readability scrim across the whole card */
.branch-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 16, 36, 0.68) 0%, rgba(5, 16, 36, 0.46) 26%, rgba(5, 16, 36, 0.72) 62%, rgba(5, 16, 36, 0.92) 100%);
}

.branch-bg {
  position: relative;
  z-index: 2;
  min-height: 262px;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.branch-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 16, 36, 0.5) 0%, rgba(5, 16, 36, 0.1) 45%, rgba(5, 16, 36, 0.7) 100%);
}

.branch-photo,
.branch-scrim,
.branch-bg::before {
  pointer-events: none;
}

.branch-pin {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dm-red, #e11b22);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 20px -6px rgba(225, 27, 34, 0.7);
}

/* HEAD OFFICE tab attached under the Dammam map pin */
.branch-pin-wrap {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.branch-pin-wrap .branch-pin {
  position: relative;
  top: 0;
  right: 0;
}

.branch-pin-tag {
  display: block;
  padding: 6px 11px;
  border-radius: 7px;
  background: linear-gradient(135deg, #e11b22, #b3121a);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7);
}

.branch-media {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.branch-avatar {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 62%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: #0d1a33;
  box-shadow: 0 12px 26px -8px rgba(4, 12, 28, 0.7);
}

.branch-labels {
  position: relative;
  z-index: 3;
}

.branch-name {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.branch-badge {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f5fa8, #0a4182);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(4, 20, 44, 0.9);
}

.branch-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
  padding: 26px 22px 0;
}

.branch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 14.5px;
  color: #eef3fa;
}

.branch-row > i {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13.5px;
}

.branch-row > a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.25s ease;
}

.branch-row > a:hover {
  color: #9ecbff;
}

.branch-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 3px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2ee06f, #17b356);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(23, 179, 86, 0.9);
  transition: transform 0.3s var(--pm-ease), box-shadow 0.3s ease;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.branch-wa:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(23, 179, 86, 1);
}

.branch-wa em {
  font-style: normal;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.88;
}

.branch-map {
  position: relative;
  z-index: 2;
  margin: 22px 22px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #eef2f7;
}

.branch-map iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
  filter: saturate(0.95);
}

.branch-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 22px 24px;
}

.branch-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #d7e2f0;
}

.branch-loc i {
  color: #ff6a70;
  font-size: 14px;
}

.branch-map-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f5fa8, #0a4182);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(10, 65, 130, 1);
  transition: transform 0.3s var(--pm-ease), box-shadow 0.3s ease;
}

.branch-map-btn i {
  font-size: 11px;
  opacity: 0.85;
}

.branch-map-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(10, 65, 130, 1);
}

@media (max-width: 991.98px) {
  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767.98px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .branch-bg {
    min-height: 208px;
  }

  .branch-foot {
    flex-wrap: wrap;
  }
}

/* ============================================
   FOOTER QUICK LINKS: unique blinking option
   ============================================ */
@keyframes dmFooterBlink {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.footer-col-links a {
  position: relative;
  display: block;
  width: fit-content;
  transition: transform 0.35s var(--pm-ease), color 0.3s ease;
}

.footer-col-links a::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--logo-red));
  animation: dmFooterBlink 1.6s ease-in-out infinite;
}

.footer-col-links a:nth-of-type(1)::before { animation-delay: 0s; }
.footer-col-links a:nth-of-type(2)::before { animation-delay: 0.2s; }
.footer-col-links a:nth-of-type(3)::before { animation-delay: 0.4s; }
.footer-col-links a:nth-of-type(4)::before { animation-delay: 0.6s; }
.footer-col-links a:nth-of-type(5)::before { animation-delay: 0.8s; }

.footer-col-links a:hover {
  transform: translateX(6px);
}

.footer-col-links a:hover::before {
  animation-play-state: paused;
  opacity: 1;
  transform: scale(1.45);
}

@media (prefers-reduced-motion: reduce) {
  .footer-col-links a::before {
    animation: none;
    opacity: 0.8;
  }

  .footer-col-links a:hover {
    transform: none;
  }
}

/* ============================================
   HERO: video background
   ============================================ */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}

.hero-entry::before {
  z-index: 1;
}

/* light theme overlay: wash the video bright so the whole hero reads light */
.hero-entry::after {
  display: none;
}

/* soft light pool behind the copy so black text stays readable */
.hero-entry.hero-triptych .hero-copy::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(1180px, 128%);
  height: 152%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 44%, rgba(255, 255, 255, 0.52) 66%, rgba(255, 255, 255, 0) 100%);
  filter: blur(8px);
}

.hero-entry.hero-triptych .hero-copy > * {
  position: relative;
  z-index: 1;
}

/* title / subtitle colours requested: black base, red accent, dark subtitle */
/* triptych (homepage) title: black base + red accent, winning on specificity */
.hero-entry.hero-triptych .hero-title {
  color: #000000;
}

.hero-entry.hero-triptych .hero-title .highlight {
  background: none;
  -webkit-text-fill-color: #ff0033;
  color: #ff0033;
}

.hero-entry.hero-triptych .hero-subtitle {
  color: #10151c;
}

/* keep the overline readable against the dark frame */
.hero-entry .hero-overline {
  color: #ff0033;
}

.hero-entry .hero-overline::before,
.hero-entry .hero-overline::after {
  background: linear-gradient(90deg, transparent, #ff0033);
}

.hero-entry .hero-overline::after {
  background: linear-gradient(90deg, #ff0033, transparent);
}
.contact-section { padding: 50px 20px; background-color: #f9f9f9; }
.contact-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.contact-card { background: #002244; color: #ffffff; width: 320px; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.card-header { padding: 30px 20px; text-align: center; background-size: cover; background-position: center; }
.card-header h3 { margin: 0 0 10px; font-size: 24px; }
.branch-tag { background: rgba(0, 0, 0, 0.5); padding: 5px 10px; border-radius: 20px; font-size: 13px; }
.card-body { padding: 20px; }
.contact-info { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info li { margin-bottom: 12px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.contact-info a { color: #ffffff; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.map-preview { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 15px; }
.map-preview img { width: 100%; height: 120px; object-fit: cover; }
.map-btn { position: absolute; bottom: 10px; right: 10px; background: #ffffff; color: #000; padding: 5px 10px; border-radius: 5px; font-size: 12px; text-decoration: none; font-weight: bold; }
.card-footer { font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; display: flex; align-items: center; gap: 8px; }
.contact-section { padding: 60px 20px; background-color: #f8f9fa; }
.section-title { text-align: center; font-size: 36px; color: #1a1a1a; margin-bottom: 40px; font-weight: 700; }
.contact-grid { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.contact-card { background: #0a192f; color: #ffffff; width: 350px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease; }
.contact-card:hover { transform: translateY(-5px); }
.card-header { padding: 25px 20px 20px; text-align: center; background-size: cover; background-position: center; position: relative; }
.card-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(5,15,30,0.6), rgba(10,25,47,0.9)); z-index: 1; }
.card-header > * { position: relative; z-index: 2; }
.branch-icon-badge { width: 65px; height: 65px; background: #004080; border: 3px solid #ffffff; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); overflow: hidden; }
.branch-icon-badge img { width: 100%; height: 100%; object-fit: cover; }
.card-header h3 { margin: 0 0 8px; font-size: 26px; font-weight: bold; }
.branch-tag { background: rgba(0, 0, 0, 0.4); padding: 4px 12px; border-radius: 20px; font-size: 13px; display: inline-block; }
.card-body { padding: 20px; }
.contact-info { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info li { margin-bottom: 14px; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.icon-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.phone-icon { background-color: #e53935; }
.email-icon { background-color: #d32f2f; }
.whatsapp-icon { background-color: #2e7d32; }
.contact-info a { color: #ffffff; text-decoration: none; font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }
.map-preview { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 15px; border: 2px solid rgba(255,255,255,0.1); }
.map-preview img { width: 100%; height: 110px; object-fit: cover; display: block; }
.map-btn { position: absolute; bottom: 8px; right: 8px; background: #ffffff; color: #1a1a1a; padding: 5px 12px; border-radius: 6px; font-size: 12px; text-decoration: none; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: background 0.2s; }
.map-btn:hover { background: #f0f0f0; }
.card-footer { font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; display: flex; align-items: center; gap: 8px; color: #b0c4de; }
.contact-section { padding: 60px 20px; background-color: #f8f9fa; }
.section-title { text-align: center; font-size: 36px; color: #1a1a1a; margin-bottom: 40px; font-weight: 700; }
.contact-grid { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.contact-card { width: 350px; border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease; position: relative; }
.contact-card:hover { transform: translateY(-5px); }
.card-overlay { background: linear-gradient(to bottom, rgba(5, 15, 30, 0.75), rgba(10, 25, 47, 0.90)); width: 100%; height: 100%; padding: 25px 20px; box-sizing: border-box; color: #ffffff; display: flex; flex-direction: column; justify-content: space-between; }
.card-header { text-align: center; margin-bottom: 20px; }
.card-header h3 { margin: 0 0 8px; font-size: 24px; font-weight: bold; }
.branch-tag { background: rgba(255, 255, 255, 0.2); padding: 4px 12px; border-radius: 20px; font-size: 13px; display: inline-block; }
.card-body { margin-bottom: 20px; }
.contact-info { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info li { margin-bottom: 14px; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.contact-info i { color: #4da6ff; width: 18px; text-align: center; }
.contact-info a { color: #ffffff; text-decoration: none; font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }
.map-action-box { text-align: right; }
.map-btn { background: #ffffff; color: #1a1a1a; padding: 8px 16px; border-radius: 8px; font-size: 13px; text-decoration: none; font-weight: bold; box-shadow: 0 2px 6px rgba(0,0,0,0.3); display: inline-block; transition: background 0.2s; }
.map-btn:hover { background: #e6e6e6; }
.card-footer { font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 12px; display: flex; align-items: center; gap: 8px; color: #b0c4de; }
.contact-section { padding: 60px 20px; background-color: #f8f9fa; }
.section-title { text-align: center; font-size: 36px; color: #1a1a1a; margin-bottom: 40px; font-weight: 700; }
.contact-grid { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.contact-card { width: 350px; border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease; position: relative; }
.contact-card:hover { transform: translateY(-5px); }
.card-overlay { background: linear-gradient(to bottom, rgba(5, 15, 30, 0.75), rgba(10, 25, 47, 0.90)); width: 100%; height: 100%; padding: 25px 20px; box-sizing: border-box; color: #ffffff; display: flex; flex-direction: column; justify-content: space-between; }
.card-header { text-align: center; margin-bottom: 20px; }
.card-header h3 { margin: 0 0 8px; font-size: 24px; font-weight: bold; }
.branch-tag { background: rgba(255, 255, 255, 0.2); padding: 4px 12px; border-radius: 20px; font-size: 13px; display: inline-block; }
.card-body { margin-bottom: 20px; }
.contact-info { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info li { margin-bottom: 14px; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.contact-info i { color: #4da6ff; width: 18px; text-align: center; }
.contact-info a { color: #ffffff; text-decoration: none; font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }
.map-action-box { text-align: right; }
.map-btn { background: #ffffff; color: #1a1a1a; padding: 8px 16px; border-radius: 8px; font-size: 13px; text-decoration: none; font-weight: bold; box-shadow: 0 2px 6px rgba(0,0,0,0.3); display: inline-block; transition: background 0.2s; }
.map-btn:hover { background: #e6e6e6; }
.card-footer { font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 12px; display: flex; align-items: center; gap: 8px; color: #b0c4de; }
