/* ==========================================================================
   CIS Technologies — Premium Homepage Stylesheet
   Designed for enterprise SaaS-level visual quality
   ========================================================================== */

/* ── Google Font Override: Manrope ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── Homepage Design Tokens ───────────────────────────────────────────────── */
:root {
  --hp-font: 'Manrope', 'Inter', sans-serif;

  /* Extended palette */
  --hp-red:         #D32027;
  --hp-orange:      #EF4413;
  --hp-dark:        #0E1117;
  --hp-dark-mid:    #1A1E27;
  --hp-gray-700:    #374151;
  --hp-gray-500:    #6B7280;
  --hp-gray-300:    #D1D5DB;
  --hp-gray-100:    #F3F4F6;
  --hp-white:       #FFFFFF;
  --hp-surface:     #FAFAFA;

  /* Gradient accents */
  --hp-grad-brand:  linear-gradient(135deg, #D32027 0%, #EF4413 100%);
  --hp-grad-dark:   linear-gradient(160deg, #0E1117 0%, #1A1E27 100%);

  /* Shadows — refined scale */
  --hp-shadow-xs:  0 1px 2px rgba(0,0,0,0.06);
  --hp-shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --hp-shadow-md:  0 8px 24px rgba(0,0,0,0.10);
  --hp-shadow-lg:  0 20px 48px rgba(0,0,0,0.12);
  --hp-shadow-xl:  0 32px 72px rgba(0,0,0,0.16);
  --hp-shadow-red: 0 8px 32px rgba(211, 32, 39, 0.28);

  /* Border */
  --hp-border:     rgba(0,0,0,0.08);
  --hp-border-d:   rgba(255,255,255,0.08);

  /* Radius */
  --hp-r-sm:  6px;
  --hp-r-md:  12px;
  --hp-r-lg:  20px;
  --hp-r-xl:  28px;

  /* Spacing */
  --hp-section: 120px;

  /* Container */
  --hp-container: 1300px;

  /* Easing */
  --hp-ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --hp-ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --hp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base override for homepage ───────────────────────────────────────────── */
body {
  font-family: var(--hp-font);
}

/* ── Container ────────────────────────────────────────────────────────────── */
.hp-container {
  width: 100%;
  max-width: var(--hp-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Scroll Animations ────────────────────────────────────────────────────── */
.hp-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--hp-ease), transform 0.7s var(--hp-ease);
}

.hp-reveal.hp-visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s var(--hp-ease), transform 0.75s var(--hp-ease);
}

.hp-reveal-left.hp-visible {
  opacity: 1;
  transform: translateX(0);
}

.hp-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s var(--hp-ease), transform 0.75s var(--hp-ease);
}

.hp-reveal-right.hp-visible {
  opacity: 1;
  transform: translateX(0);
}

.hp-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--hp-ease), transform 0.7s var(--hp-ease);
}

.hp-reveal-scale.hp-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal, .hp-reveal-left, .hp-reveal-right, .hp-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 1 — PREMIUM NAVIGATION                                             */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 2000;
  padding: 1.5rem 0;
  transition: background 0.4s var(--hp-ease),
              box-shadow 0.4s var(--hp-ease),
              padding 0.4s var(--hp-ease),
              backdrop-filter 0.4s var(--hp-ease);
}

.hp-header--transparent {
  background: transparent;
}

.hp-header--scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), var(--hp-shadow-sm);
  padding: 1rem 0;
}

.hp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hp-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  z-index: 2001;
}

.hp-logo img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Logo: white when transparent, normal when scrolled */
.hp-header--transparent .hp-logo img {
  filter: brightness(0) invert(1);
}

.hp-header--scrolled .hp-logo img {
  filter: none;
}

.hp-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.hp-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.hp-nav__item {
  position: relative;
}

.hp-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--hp-font);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: var(--hp-r-sm);
  transition: color 0.25s ease, background 0.25s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hp-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.875rem;
  right: 0.875rem;
  height: 1.5px;
  background: var(--hp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--hp-ease);
}

.hp-nav__link:hover::after {
  transform: scaleX(1);
}

.hp-nav__link:hover {
  color: var(--hp-white);
  background: rgba(255,255,255,0.08);
}

/* Scrolled nav links */
.hp-header--scrolled .hp-nav__link {
  color: var(--hp-gray-700);
}

.hp-header--scrolled .hp-nav__link:hover {
  color: var(--hp-dark);
  background: var(--hp-gray-100);
}

/* Active / Current Page Nav Link */
.hp-nav__link[aria-current="page"],
.hp-nav__link.hp-nav__link--active {
  color: var(--hp-red) !important;
  font-weight: 600;
}

.hp-nav__link[aria-current="page"]::after,
.hp-nav__link.hp-nav__link--active::after {
  transform: scaleX(1);
}

.hp-header--scrolled .hp-nav__link[aria-current="page"],
.hp-header--scrolled .hp-nav__link.hp-nav__link--active {
  color: var(--hp-red) !important;
}

/* Dropdown chevron */
.hp-nav__chevron {
  width: 12px; height: 12px;
  transition: transform 0.25s ease;
}

.hp-nav__item:hover .hp-nav__chevron {
  transform: rotate(180deg);
}

/* ── Premium Mega Menu ────────────────────────────────────────────────────── */
.hp-mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: clamp(680px, 60vw, 820px);
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 48px rgba(0,0,0,0.11),
    0 0 0 1px rgba(0,0,0,0.03);
  padding: 1.5rem 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--hp-ease), visibility 0.22s;
  z-index: 2100;
  /* Safety: keep within viewport */
  max-width: calc(100vw - 3rem);
}

/* Footer bar inside mega menu */
.hp-mega::after {
  content: '07 SERVICES AVAILABLE';
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-gray-500);
  font-family: var(--hp-font);
}

.hp-nav__item:hover .hp-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Prevent mega menu from going off left edge */
@media (max-width: 1200px) {
  .hp-mega {
    left: auto;
    right: -8rem;
    transform: translateY(10px);
  }
  .hp-nav__item:hover .hp-mega {
    transform: translateY(0);
  }
}

/* Non-IT Staffing full-width row — item 7 spans all 3 columns */
.hp-mega__item--full {
  grid-column: 1 / -1;
}

.hp-mega__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0.875rem;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease;
  overflow: hidden;
}

/* Subtle red left accent line on hover */
.hp-mega__item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--hp-red);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 0.22s ease, transform 0.22s var(--hp-ease);
}

.hp-mega__item:hover {
  background: rgba(248,249,250,0.9);
}

.hp-mega__item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.hp-mega__item--full:hover {
  background: rgba(211,32,39,0.03);
}

.hp-mega__item--active {
  background: rgba(248,249,250,0.9);
}
.hp-mega__item--full.hp-mega__item--active {
  background: rgba(211,32,39,0.03);
}
.hp-mega__item--active::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Icon container */
.hp-mega__icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--hp-gray-100);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.hp-mega__item:hover .hp-mega__icon-wrap,
.hp-mega__item--active .hp-mega__icon-wrap {
  background: rgba(211,32,39,0.07);
  border-color: rgba(211,32,39,0.16);
}

.hp-mega__icon-wrap svg {
  width: 17px;
  height: 17px;
  stroke: var(--hp-gray-500);
  transition: stroke 0.22s ease;
}

.hp-mega__item:hover .hp-mega__icon-wrap svg,
.hp-mega__item--active .hp-mega__icon-wrap svg {
  stroke: var(--hp-red);
}

/* Service number */
.hp-mega__num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hp-gray-500);
  font-family: var(--hp-font);
  line-height: 1;
  margin-bottom: 0.3rem;
  display: block;
  transition: color 0.22s ease;
}

.hp-mega__item:hover .hp-mega__num,
.hp-mega__item--active .hp-mega__num {
  color: var(--hp-red);
}

.hp-mega__text { flex: 1; min-width: 0; }

.hp-mega__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hp-dark);
  margin-bottom: 0.2rem;
  font-family: var(--hp-font);
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.22s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hp-mega__item:hover .hp-mega__title,
.hp-mega__item--active .hp-mega__title {
  color: var(--hp-red);
}

/* Arrow that appears/shifts on hover */
.hp-mega__title-arrow {
  display: inline-block;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s var(--hp-ease);
  color: var(--hp-red);
  line-height: 1;
}

.hp-mega__item:hover .hp-mega__title-arrow,
.hp-mega__item--active .hp-mega__title-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hp-mega__desc {
  font-size: 0.775rem;
  color: var(--hp-gray-500);
  line-height: 1.45;
  margin: 0;
  font-family: var(--hp-font);
  font-weight: 400;
}

/* Header CTA button */
.hp-header__cta {
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.hp-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  background: var(--hp-grad-brand);
  color: var(--hp-white);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--hp-font);
  border-radius: var(--hp-r-sm);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--hp-ease-spring),
              box-shadow 0.25s ease,
              opacity 0.25s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.hp-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-red);
  color: var(--hp-white);
  opacity: 0.95;
}

.hp-btn-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--hp-ease-spring);
}

.hp-btn-cta:hover svg {
  transform: translateX(3px);
}

/* When header is transparent, CTA has subtle border */
.hp-header--transparent .hp-btn-cta {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}

/* Mobile toggle */
.hp-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
  z-index: 2001;
}

.hp-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--hp-white);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.hp-header--scrolled .hp-mobile-toggle span {
  background: var(--hp-dark);
}

.hp-mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hp-mobile-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hp-mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.hp-mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: var(--hp-white);
  box-shadow: var(--hp-shadow-xl);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s var(--hp-ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 5rem 2rem 3rem;
}

.hp-mobile-nav.open {
  transform: translateX(0);
}

.hp-mobile-nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hp-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--hp-gray-100);
  font-family: var(--hp-font);
  transition: color 0.2s ease;
}

.hp-mobile-nav__link:hover {
  color: var(--hp-red);
}

.hp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  backdrop-filter: blur(4px);
}

.hp-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 2 — PREMIUM HERO                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-hero {
  position: relative;
  width: 100%;
  min-height: 820px;
  /* Clamp: never shorter than 820px, never taller than 100vh on large monitors */
  /* On short viewports like 1280×720 the min-height gives us enough room */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hp-dark);
}

/* Slide — fills the hero container, uses flex column so content
   can be vertically centred inside the padded safe area */
.hp-hero__slide {
  position: absolute;
  inset: 0;
  /* Use flex + column so the inner grid is centred vertically
     between the top (header) and bottom (controls) safe areas */
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--hp-ease);
  z-index: 1;
}

.hp-hero__slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Background image */
.hp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-in-out;
  transform: scale(1.04);
}

.hp-hero__slide.active .hp-hero__bg img {
  transform: scale(1.0);
}

/* Multi-layer overlay */
.hp-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(14,17,23,0.88) 0%,
      rgba(14,17,23,0.62) 50%,
      rgba(14,17,23,0.30) 100%),
    linear-gradient(0deg,
      rgba(14,17,23,0.72) 0%,
      transparent 60%);
  z-index: 1;
}

/* Subtle noise texture overlay */
.hp-hero__texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Radial brand glow - very subtle */
.hp-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 60% 50% at 15% 50%, rgba(211,32,39,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Inner layout — safe area padding accounts for:
   - fixed transparent header (~80px) + breathing room above headline
   - bottom breathing room above controls (~80px)
   Both padding values ensure content is NEVER obscured */
.hp-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: var(--hp-container);
  margin: 0 auto;
  /* Horizontal container padding */
  padding-left: 2rem;
  padding-right: 2rem;
  /* Vertical safe area:
     top: 100px header height + 40px breathing room = 140px
     bottom: 80px for controls + breathing room              */
  padding-top: 140px;
  padding-bottom: 100px;
}

/* Content column */
.hp-hero__content {
  max-width: 640px;
}

.hp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s 0.1s var(--hp-ease), transform 0.6s 0.1s var(--hp-ease);
}

.hp-hero__eyebrow-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--hp-orange);
}

.hp-hero__slide.active .hp-hero__eyebrow,
.hp-hero__slide.active .hp-hero__heading,
.hp-hero__slide.active .hp-hero__sub,
.hp-hero__slide.active .hp-hero__actions,
.hp-hero__slide.active .hp-hero__visual {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.hp-hero__heading {
  /* clamp: 36px min (mobile) → scales with viewport → 72px max (large desktop)
     Kept slightly smaller than before to prevent 3-line headings overflowing
     on shorter viewports like 1280×720 */
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hp-white);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s 0.2s var(--hp-ease), transform 0.7s 0.2s var(--hp-ease);
}

.hp-hero__heading em {
  font-style: normal;
  background: var(--hp-grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.32s var(--hp-ease), transform 0.7s 0.32s var(--hp-ease);
}

.hp-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s 0.44s var(--hp-ease), transform 0.6s 0.44s var(--hp-ease);
}

.hp-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  background: var(--hp-grad-brand);
  color: var(--hp-white);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--hp-font);
  border-radius: var(--hp-r-sm);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--hp-ease-spring), box-shadow 0.25s ease;
  border: none;
}

.hp-btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow-red);
  color: var(--hp-white);
}

.hp-btn-hero-primary svg {
  transition: transform 0.25s var(--hp-ease-spring);
}

.hp-btn-hero-primary:hover svg {
  transform: translateX(4px);
}

.hp-btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--hp-font);
  border-radius: var(--hp-r-sm);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.hp-btn-hero-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--hp-white);
  background: rgba(255,255,255,0.07);
}

/* Visual column (right side) */
.hp-hero__visual {
  position: relative;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s 0.35s var(--hp-ease), transform 0.8s 0.35s var(--hp-ease);
  /* Prevent the visual column from overflowing the hero vertically */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-hero__img-frame {
  position: relative;
  border-radius: var(--hp-r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  aspect-ratio: 4/3;
  /* Hard cap: image can never be taller than the available hero safe area.
     hero is 820px min − 140px top pad − 100px bottom pad = ~580px max */
  max-height: 520px;
  width: 100%;
}

.hp-hero__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease-in-out;
}

.hp-hero__slide.active .hp-hero__img-frame img {
  transform: scale(1.03);
}

/* Frame accent border */
.hp-hero__img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--hp-r-xl);
  z-index: 1;
  pointer-events: none;
}

/* Floating UI badge — top right of image
   Use right: -0.5rem (was -1rem) to keep inside hero on smaller screens */
.hp-hero__badge {
  position: absolute;
  top: 1.25rem;
  right: -0.5rem;
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--hp-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 150px;
  z-index: 4;
  backdrop-filter: blur(8px);
  animation: hp-float 4s ease-in-out infinite;
}

.hp-hero__badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--hp-grad-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hp-hero__badge-icon svg {
  width: 16px; height: 16px;
  color: white;
}

.hp-hero__badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hp-gray-500);
  font-family: var(--hp-font);
}

.hp-hero__badge-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hp-dark);
  font-family: var(--hp-font);
}

/* Floating badge — bottom left
   Use left: -0.5rem to stay inside hero horizontally */
.hp-hero__badge-2 {
  position: absolute;
  bottom: 1.25rem;
  left: -0.5rem;
  background: var(--hp-dark-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--hp-r-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--hp-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 4;
  animation: hp-float 4s ease-in-out infinite 2s;
}

.hp-hero__badge-2-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: hp-pulse-dot 2s ease-in-out infinite;
}

.hp-hero__badge-2-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: var(--hp-font);
  white-space: nowrap;
}

@keyframes hp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes hp-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

/* Hero controls — pinned to bottom of hero with guaranteed clearance.
   bottom: 2rem keeps them well above the hero edge.
   The inner content padding-bottom: 100px gives them space above the CTAs. */
.hp-hero__controls {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 2rem;
  /* Ensure controls never overlap content by staying in the bottom 80px zone.
     The content has 100px bottom padding so controls fit without collision. */
}

/* Progress bar style slider indicators */
.hp-hero__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hp-hero__prog-item {
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.3s ease;
}

.hp-hero__prog-item.active {
  width: 64px;
  background: rgba(255,255,255,0.25);
}

.hp-hero__prog-fill {
  height: 100%;
  width: 0%;
  background: var(--hp-white);
  border-radius: 2px;
  transition: none;
}

.hp-hero__prog-item.active .hp-hero__prog-fill {
  animation: hp-progress 5s linear forwards;
}

@keyframes hp-progress {
  from { width: 0%; }
  to   { width: 100%; }
}

.hp-hero__arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.hp-hero__arrow:hover {
  background: rgba(255,255,255,0.15);
  color: var(--hp-white);
  transform: scale(1.08);
}

.hp-hero__arrow svg {
  width: 16px; height: 16px;
}

/* Scroll indicator */
.hp-hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--hp-font);
}

.hp-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: hp-scroll-line 2s ease-in-out infinite;
}

@keyframes hp-scroll-line {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(0.7); }
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 3 — CAPABILITY STRIP                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-strip {
  background: var(--hp-white);
  border-bottom: 1px solid var(--hp-border);
  padding: 0;
}

.hp-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hp-strip__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--hp-border);
  transition: background 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.hp-strip__item:last-child {
  border-right: none;
}

.hp-strip__item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--hp-grad-brand);
  transition: width 0.4s var(--hp-ease);
}

.hp-strip__item:hover::after {
  width: 100%;
}

.hp-strip__item:hover {
  background: var(--hp-gray-100);
}

.hp-strip__icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--hp-gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.hp-strip__item:hover .hp-strip__icon-wrap {
  background: rgba(211,32,39,0.08);
  color: var(--hp-red);
}

.hp-strip__icon-wrap svg {
  width: 20px; height: 20px;
  color: var(--hp-red);
}

.hp-strip__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hp-dark);
  font-family: var(--hp-font);
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.hp-strip__sub {
  font-size: 0.8rem;
  color: var(--hp-gray-500);
  font-family: var(--hp-font);
  line-height: 1.3;
}

.hp-strip__arrow {
  margin-left: auto;
  width: 20px; height: 20px;
  color: var(--hp-gray-300);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.hp-strip__item:hover .hp-strip__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--hp-red);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 4 — ABOUT SECTION (Premium Split)                                  */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-about {
  padding: var(--hp-section) 0;
  background: var(--hp-white);
  overflow: hidden;
}

.hp-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hp-about__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hp-red);
  margin-bottom: 1.25rem;
  font-family: var(--hp-font);
}

.hp-about__label-line {
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--hp-red);
}

.hp-about__heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--hp-dark);
  margin-bottom: 1.75rem;
  font-family: var(--hp-font);
}

.hp-about__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--hp-gray-500);
  margin-bottom: 1.25rem;
  font-family: var(--hp-font);
}

.hp-about__differentiators {
  margin: 2rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.hp-about__diff-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.hp-about__diff-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(211,32,39,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.hp-about__diff-icon svg {
  width: 12px; height: 12px;
  color: var(--hp-red);
}

.hp-about__diff-text {
  font-size: 0.95rem;
  color: var(--hp-gray-700);
  line-height: 1.5;
  font-family: var(--hp-font);
}

.hp-about__diff-text strong {
  color: var(--hp-dark);
}

.hp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  color: var(--hp-dark);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--hp-font);
  border-radius: var(--hp-r-sm);
  text-decoration: none;
  border: 1.5px solid var(--hp-gray-300);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  letter-spacing: 0.01em;
}

.hp-btn-secondary:hover {
  border-color: var(--hp-dark);
  background: var(--hp-dark);
  color: var(--hp-white);
  transform: translateY(-2px);
}

.hp-btn-secondary svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--hp-ease-spring);
}

.hp-btn-secondary:hover svg {
  transform: translateX(3px);
}

/* About visual */
.hp-about__visual {
  position: relative;
}

.hp-about__img-wrap {
  border-radius: var(--hp-r-xl);
  overflow: hidden;
  box-shadow: var(--hp-shadow-xl);
  aspect-ratio: 4/5;
  position: relative;
}

.hp-about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--hp-ease);
}

.hp-about__img-wrap:hover img {
  transform: scale(1.03);
}

.hp-about__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,17,23,0.35) 100%);
  pointer-events: none;
}

/* Floating info card */
.hp-about__float-card {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--hp-shadow-lg);
  min-width: 210px;
  z-index: 4;
}

.hp-about__float-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hp-red);
  margin-bottom: 0.25rem;
  font-family: var(--hp-font);
}

.hp-about__float-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hp-dark);
  margin-bottom: 0.125rem;
  font-family: var(--hp-font);
}

.hp-about__float-card-sub {
  font-size: 0.8rem;
  color: var(--hp-gray-500);
  font-family: var(--hp-font);
  margin: 0;
}

/* Small accent card — top right */
.hp-about__accent-card {
  position: absolute;
  top: 2rem;
  right: -2rem;
  background: var(--hp-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--hp-r-md);
  padding: 1rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--hp-shadow-lg);
  z-index: 4;
}

.hp-about__accent-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--hp-grad-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hp-about__accent-icon svg {
  width: 16px; height: 16px;
  color: white;
}

.hp-about__accent-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: var(--hp-font);
}

.hp-about__accent-value {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-family: var(--hp-font);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 5 — PREMIUM SERVICES                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-services {
  padding: var(--hp-section) 0;
  background: var(--hp-surface);
  position: relative;
}

.hp-services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hp-border), transparent);
}

.hp-section-header {
  margin-bottom: 4.5rem;
  max-width: 640px;
}

.hp-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hp-red);
  margin-bottom: 1rem;
  font-family: var(--hp-font);
}

.hp-section-label-line {
  display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--hp-red);
}

.hp-section-heading {
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--hp-dark);
  margin-bottom: 1rem;
  font-family: var(--hp-font);
}

.hp-section-sub {
  font-size: 1.05rem;
  color: var(--hp-gray-500);
  line-height: 1.65;
  font-family: var(--hp-font);
  margin: 0;
}

/* Premium service grid */
.hp-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--hp-border);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-md);
}

/* Service card */
.hp-svc-card {
  background: var(--hp-white);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}

.hp-svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--hp-grad-brand);
  transition: height 0.45s var(--hp-ease);
}

.hp-svc-card:hover::before {
  height: 100%;
}

.hp-svc-card:hover {
  background: var(--hp-surface);
  transform: translateY(-4px);
  z-index: 2;
  box-shadow: var(--hp-shadow-lg);
}

.hp-svc-card__number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hp-gray-300);
  letter-spacing: 0.12em;
  font-family: var(--hp-font);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.hp-svc-card:hover .hp-svc-card__number {
  color: var(--hp-red);
}

.hp-svc-card__icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--hp-gray-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--hp-red);
  transition: background 0.35s ease, transform 0.35s ease;
}

.hp-svc-card:hover .hp-svc-card__icon-wrap {
  background: rgba(211,32,39,0.08);
  transform: scale(1.08);
}

.hp-svc-card__icon-wrap svg {
  width: 22px; height: 22px;
}

.hp-svc-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hp-dark);
  margin-bottom: 0.75rem;
  font-family: var(--hp-font);
  letter-spacing: -0.01em;
}

.hp-svc-card__desc {
  font-size: 0.875rem;
  color: var(--hp-gray-500);
  line-height: 1.65;
  font-family: var(--hp-font);
  flex: 1;
  margin: 0;
}

.hp-svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hp-red);
  font-family: var(--hp-font);
  margin-top: 1.75rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hp-svc-card__link svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--hp-ease-spring);
}

.hp-svc-card:hover .hp-svc-card__link {
  opacity: 1;
  transform: translateX(0);
}

.hp-svc-card:hover .hp-svc-card__link svg {
  transform: translateX(3px);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 6 — WHY CIS (Editorial)                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-why {
  padding: var(--hp-section) 0;
  background: var(--hp-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid bg */
.hp-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Radial light */
.hp-why::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(211,32,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hp-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hp-why__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hp-orange);
  margin-bottom: 1.25rem;
  font-family: var(--hp-font);
}

.hp-why__label-line {
  display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--hp-orange);
}

.hp-why__heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--hp-white);
  margin-bottom: 1.5rem;
  font-family: var(--hp-font);
}

.hp-why__body {
  font-size: 1.025rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
  font-family: var(--hp-font);
}

.hp-btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--hp-font);
  border-radius: var(--hp-r-sm);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.22);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.hp-btn-outline-white:hover {
  border-color: var(--hp-white);
  color: var(--hp-white);
  background: rgba(255,255,255,0.07);
}

.hp-btn-outline-white svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--hp-ease-spring);
}

.hp-btn-outline-white:hover svg {
  transform: translateX(3px);
}

/* Capability tiles */
.hp-why__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--hp-r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.hp-why__tile {
  background: rgba(255,255,255,0.02);
  padding: 2.25rem 2rem;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hp-why__tile:hover {
  background: rgba(255,255,255,0.05);
}

.hp-why__tile--accent {
  background: rgba(211,32,39,0.12);
  border: 1px solid rgba(211,32,39,0.2);
}

.hp-why__tile--accent:hover {
  background: rgba(211,32,39,0.18);
}

.hp-why__tile-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease;
}

.hp-why__tile--accent .hp-why__tile-icon {
  background: rgba(211,32,39,0.2);
  color: var(--hp-orange);
}

.hp-why__tile:hover .hp-why__tile-icon {
  color: var(--hp-white);
}

.hp-why__tile-icon svg {
  width: 20px; height: 20px;
}

.hp-why__tile-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.5rem;
  font-family: var(--hp-font);
}

.hp-why__tile-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.55;
  font-family: var(--hp-font);
  margin: 0;
}

.hp-why__tile--accent .hp-why__tile-desc {
  color: rgba(255,255,255,0.6);
}



/* --------------------------------------------------------------------------- */
/*  SECTION 7 - INDUSTRIES: Premium Interactive Showcase                        */
/* --------------------------------------------------------------------------- */

.hp-ind2 {
  padding: var(--hp-section) 0;
  background: var(--hp-white);
  overflow: hidden;
}

/* Balanced 46/54 two-column layout */
.hp-ind2__layout {
  display: grid;
  grid-template-columns: 46fr 54fr;
  gap: 4.5rem;
  align-items: center;  /* vertically centre both columns */
}

/* ── LEFT COLUMN ────────────────────────────────────────────────────────────── */
.hp-ind2__left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  /* Allow left column content to breathe without cramping */
  min-width: 0;
}

.hp-ind2__intro {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hp-ind2__heading {
  margin-bottom: 1.25rem !important;
}

.hp-ind2__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hp-gray-500);
  font-family: var(--hp-font);
  margin-bottom: 2rem;
  /* Let description fill the left column width naturally */
  max-width: 440px;
}

.hp-ind2__btn {
  align-self: flex-start;
}

/* ── INDUSTRY NAV ROWS ──────────────────────────────────────────────────────── */
.hp-ind2__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hp-border);
}

.hp-ind2__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  border: none;
  border-bottom: 1px solid var(--hp-border);
  background: transparent;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 0.25s ease;
  border-radius: 0;
}

.hp-ind2__row:focus-visible {
  outline: 2px solid var(--hp-red);
  outline-offset: -2px;
  border-radius: 4px;
}

/* Left accent bar */
.hp-ind2__row-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--hp-grad-brand);
  transition: width 0.35s var(--hp-ease);
  border-radius: 0 2px 2px 0;
}

.hp-ind2__row--active .hp-ind2__row-bar,
.hp-ind2__row:hover .hp-ind2__row-bar {
  width: 3px;
}

/* Row number */
.hp-ind2__row-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hp-gray-300);
  font-family: var(--hp-font);
  min-width: 2rem;
  transition: color 0.25s ease;
  padding-left: 0.75rem;
}

.hp-ind2__row--active .hp-ind2__row-num,
.hp-ind2__row:hover .hp-ind2__row-num {
  color: var(--hp-red);
}

/* Row name */
.hp-ind2__row-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hp-gray-700);
  font-family: var(--hp-font);
  flex: 1;
  transition: color 0.25s ease, transform 0.25s var(--hp-ease);
  letter-spacing: -0.005em;
}

.hp-ind2__row--active .hp-ind2__row-name {
  color: var(--hp-dark);
  font-weight: 700;
}

.hp-ind2__row:hover .hp-ind2__row-name {
  color: var(--hp-dark);
  transform: translateX(3px);
}

/* Row arrow */
.hp-ind2__row-arrow {
  color: var(--hp-gray-300);
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.3s var(--hp-ease-spring);
}

.hp-ind2__row--active .hp-ind2__row-arrow {
  color: var(--hp-red);
  transform: translateX(4px);
}

.hp-ind2__row:hover .hp-ind2__row-arrow {
  color: var(--hp-red);
  transform: translateX(6px);
}

/* ── RIGHT COLUMN: Featured Panel ───────────────────────────────────────────── */
.hp-ind2__right {
  position: sticky;
  top: 120px;
  /* Centre the panel within the right column so it doesn't
     stretch wall-to-wall — gives the balanced editorial feel */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.hp-ind2__panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  /* Constrained dimensions — premium featured visual, not a full-bleed image */
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/5;
  /* Cap absolute height so it never dwarfs the left column */
  max-height: 560px;
  background: var(--hp-dark);
  box-shadow: var(--hp-shadow-xl);
}

/* ── IMAGE STACK (crossfade) ────────────────────────────────────────────────── */
.hp-ind2__images {
  position: absolute;
  inset: 0;
}

.hp-ind2__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s var(--hp-ease);
}

.hp-ind2__img--active {
  opacity: 1;
  z-index: 1;
}

.hp-ind2__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s var(--hp-ease);
}

.hp-ind2__img--active img {
  transform: scale(1.03);
}

/* ── DARK OVERLAY ───────────────────────────────────────────────────────────── */
.hp-ind2__panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      170deg,
      rgba(14,17,23,0.15) 0%,
      rgba(14,17,23,0.55) 55%,
      rgba(14,17,23,0.92) 100%
    );
  pointer-events: none;
}

/* ── FLOATING BADGE (top left) ───────────────────────────────────────────────── */
.hp-ind2__float {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 4;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.hp-ind2__float-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  font-family: var(--hp-font);
}

.hp-ind2__float-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  font-family: var(--hp-font);
  white-space: nowrap;
}

/* ── PANEL CONTENT (bottom) ──────────────────────────────────────────────────── */
.hp-ind2__panel-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 2rem 2rem 2.25rem;
}

.hp-ind2__panel-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hp-orange);
  margin-bottom: 0.5rem;
  font-family: var(--hp-font);
}

.hp-ind2__panel-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hp-white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-family: var(--hp-font);
  margin-bottom: 0.75rem;
  transition: opacity 0.35s ease, transform 0.35s var(--hp-ease);
}

.hp-ind2__panel-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  font-family: var(--hp-font);
  margin-bottom: 1.5rem;
  max-width: 340px;
  transition: opacity 0.35s ease, transform 0.35s var(--hp-ease);
}

.hp-ind2__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--hp-font);
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hp-ind2__panel-link:hover {
  color: var(--hp-white);
  border-bottom-color: rgba(255,255,255,0.7);
}

.hp-ind2__panel-link svg {
  transition: transform 0.25s var(--hp-ease-spring);
}

.hp-ind2__panel-link:hover svg {
  transform: translateX(4px);
}

/* Content-switching fade animation */
.hp-ind2__panel-content.hp-ind2--switching .hp-ind2__panel-name,
.hp-ind2__panel-content.hp-ind2--switching .hp-ind2__panel-desc {
  opacity: 0;
  transform: translateY(8px);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 8 — CASE STUDY (Featured)                                          */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-case {
  padding: var(--hp-section) 0;
  background: var(--hp-surface);
  position: relative;
}

.hp-case::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hp-border), transparent);
}

.hp-case__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hp-case__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(239,68,13,0.08);
  border: 1px solid rgba(239,68,13,0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hp-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--hp-font);
  margin-bottom: 1.5rem;
}

.hp-case__heading {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--hp-dark);
  margin-bottom: 0.75rem;
  font-family: var(--hp-font);
}

.hp-case__industry {
  font-size: 0.8rem;
  color: var(--hp-gray-500);
  font-family: var(--hp-font);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Challenge / Approach / Outcome */
.hp-case__points {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hp-border);
  border-radius: var(--hp-r-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--hp-border);
}

.hp-case__point {
  background: var(--hp-white);
  padding: 1.125rem 1.5rem;
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}

.hp-case__point-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hp-red);
  min-width: 90px;
  padding-top: 2px;
  font-family: var(--hp-font);
  flex-shrink: 0;
}

.hp-case__point-text {
  font-size: 0.875rem;
  color: var(--hp-gray-700);
  line-height: 1.55;
  font-family: var(--hp-font);
  margin: 0;
}

.hp-case__visual {
  position: relative;
}

.hp-case__img-frame {
  border-radius: var(--hp-r-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--hp-shadow-xl);
  position: relative;
}

.hp-case__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-case__img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,17,23,0.4) 100%);
}

/* Sample disclaimer */
.hp-case__disclaimer {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(14,17,23,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--hp-r-sm);
  padding: 0.375rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--hp-font);
  z-index: 2;
  backdrop-filter: blur(8px);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 9 — MARQUEE                                                        */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-marquee {
  padding: 0;
  background: var(--hp-white);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
  overflow: hidden;
}

.hp-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hp-marquee-scroll 26s linear infinite;
  padding: 1.5rem 0;
}

.hp-marquee__track:hover {
  animation-play-state: paused;
}

@keyframes hp-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hp-marquee__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2.5rem;
  white-space: nowrap;
  color: var(--hp-gray-500);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--hp-font);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hp-marquee__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--hp-red);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  SECTION 10 — PREMIUM CTA                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-cta {
  position: relative;
  padding: var(--hp-section) 0;
  background: var(--hp-dark);
  overflow: hidden;
}

/* Grid background */
.hp-cta::before {
  content: '';
  position: absolute;
  inset: 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: 48px 48px;
  pointer-events: none;
}

/* Radial glow center */
.hp-cta::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(211,32,39,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hp-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hp-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hp-orange);
  margin-bottom: 1.5rem;
  font-family: var(--hp-font);
}

.hp-cta__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hp-white);
  margin-bottom: 1.5rem;
  font-family: var(--hp-font);
}

.hp-cta__body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 3rem;
  font-family: var(--hp-font);
}

.hp-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-btn-cta-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2.25rem;
  background: var(--hp-grad-brand);
  color: var(--hp-white);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--hp-font);
  border-radius: var(--hp-r-sm);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--hp-ease-spring), box-shadow 0.25s ease;
}

.hp-btn-cta-lg:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow-red);
  color: var(--hp-white);
}

.hp-btn-cta-lg svg {
  width: 16px; height: 16px;
  transition: transform 0.25s var(--hp-ease-spring);
}

.hp-btn-cta-lg:hover svg {
  transform: translateX(4px);
}

.hp-btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2.25rem;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--hp-font);
  border-radius: var(--hp-r-sm);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.18);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hp-btn-cta-ghost:hover {
  border-color: rgba(255,255,255,0.45);
  color: var(--hp-white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  FOOTER — Upgraded                                                           */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-footer {
  background: #080B10;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.hp-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.hp-footer__logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.hp-footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  max-width: 240px;
  font-family: var(--hp-font);
  margin-bottom: 1.75rem;
}

.hp-footer__socials {
  display: flex;
  gap: 0.75rem;
}

.hp-footer__social {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.hp-footer__social:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--hp-white);
  background: rgba(255,255,255,0.06);
}

.hp-footer__social svg {
  width: 16px; height: 16px;
}

.hp-footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
  font-family: var(--hp-font);
}

.hp-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.hp-footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  font-family: var(--hp-font);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hp-footer__link:hover {
  color: var(--hp-white);
}

.hp-footer__contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.hp-footer__contact-icon {
  color: var(--hp-red);
  flex-shrink: 0;
  margin-top: 1px;
}

.hp-footer__contact-icon svg {
  width: 14px; height: 14px;
}

.hp-footer__contact-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
  font-family: var(--hp-font);
  margin: 0;
}

.hp-footer__contact-text a {
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-footer__contact-text a:hover {
  color: var(--hp-white);
}

.hp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hp-footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  font-family: var(--hp-font);
  margin: 0;
}

.hp-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.hp-footer__legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  font-family: var(--hp-font);
  transition: color 0.2s ease;
}

.hp-footer__legal a:hover {
  color: rgba(255,255,255,0.6);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  COOKIE BANNER                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-cookie {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-lg);
  padding: 1.5rem;
  box-shadow: var(--hp-shadow-xl);
  z-index: 5000;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s var(--hp-ease), opacity 0.45s ease, visibility 0.45s;
}

.hp-cookie.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.hp-cookie__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hp-dark);
  margin-bottom: 0.625rem;
  font-family: var(--hp-font);
}

.hp-cookie__body {
  font-size: 0.825rem;
  color: var(--hp-gray-500);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-family: var(--hp-font);
}

.hp-cookie__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hp-cookie__btn-primary {
  flex: 1;
  padding: 0.625rem 1rem;
  background: var(--hp-grad-brand);
  color: var(--hp-white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--hp-r-sm);
  border: none;
  cursor: pointer;
  font-family: var(--hp-font);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.hp-cookie__btn-primary:hover { opacity: 0.9; }

.hp-cookie__btn-secondary {
  padding: 0.625rem 1rem;
  background: transparent;
  color: var(--hp-gray-500);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--hp-r-sm);
  border: 1px solid var(--hp-border);
  cursor: pointer;
  font-family: var(--hp-font);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.hp-cookie__btn-secondary:hover {
  background: var(--hp-gray-100);
  color: var(--hp-dark);
}


/* ─────────────────────────────────────────────────────────────────────────── */
/*  RESPONSIVE — HOMEPAGE                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  :root { --hp-section: 100px; }

  /* Slightly tighten gap on 1280 screens while keeping both columns */
  .hp-hero__inner {
    gap: 3rem;
    padding-top: 130px;
    padding-bottom: 90px;
  }
  .hp-hero__img-frame { max-height: 460px; }

  /* Industries: on 1280 keep two columns, just tighten the gap */
  .hp-ind2__layout { gap: 3rem; }
  .hp-ind2__panel { max-width: 480px; max-height: 520px; }
  .hp-footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 1024px) {
  :root { --hp-section: 88px; }

  .hp-nav { display: none; }
  .hp-header__cta { display: none; }
  .hp-mobile-toggle { display: flex; }

  /* Single-column hero on tablet: hide the visual panel,
     give the text column enough vertical breathing room */
  .hp-hero {
    min-height: 700px;
  }

  .hp-hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
    /* top: clear the header (≈80px) + comfortable gap */
    padding-top: 130px;
    /* bottom: clear the controls (≈60px) + gap */
    padding-bottom: 90px;
    gap: 2rem;
  }

  .hp-hero__heading { font-size: clamp(2rem, 6vw, 3.25rem); }

  .hp-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .hp-strip__item { border-right: none; border-bottom: 1px solid var(--hp-border); }
  .hp-strip__item:nth-child(odd) { border-right: 1px solid var(--hp-border); }
  .hp-strip__item:nth-last-child(-n+2) { border-bottom: none; }

  .hp-about__grid { grid-template-columns: 1fr; gap: 4rem; }
  .hp-about__visual { order: -1; }
  .hp-about__img-wrap { aspect-ratio: 16/9; }
  .hp-about__float-card { bottom: 1rem; left: 1rem; }
  .hp-about__accent-card { top: 1rem; right: 1rem; }

  .hp-services__grid { grid-template-columns: repeat(2, 1fr); }

  .hp-why__grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .hp-case__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hp-case__visual { order: -1; }
  .hp-case__img-frame { aspect-ratio: 16/9; }

  .hp-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  /* Industries: at 1024px keep side-by-side but with compressed panel */
  .hp-ind2__layout {
    grid-template-columns: 50fr 50fr;
    gap: 2.5rem;
    align-items: start;
  }
  .hp-ind2__right { position: static; justify-content: flex-start; }
  .hp-ind2__panel { max-width: 420px; aspect-ratio: 4/5; max-height: 460px; }
}

@media (max-width: 768px) {
  :root { --hp-section: 72px; }

  .hp-container { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Hero at 768px: header is still ~70-80px, content needs clear breathing room */
  .hp-hero {
    min-height: 600px;
  }

  .hp-hero__inner {
    padding-top: 110px;
    padding-bottom: 80px;
    gap: 2rem;
  }

  .hp-hero__heading { font-size: clamp(1.875rem, 7vw, 2.75rem); }
  .hp-hero__sub { font-size: 0.95rem; margin-bottom: 1.75rem; }
  .hp-hero__controls { gap: 1rem; bottom: 1.5rem; }

  .hp-strip__inner { grid-template-columns: 1fr; }
  .hp-strip__item { border-right: none; border-bottom: 1px solid var(--hp-border); }
  .hp-strip__item:nth-child(odd) { border-right: none; }
  .hp-strip__item:last-child { border-bottom: none; }

  .hp-services__grid { grid-template-columns: 1fr; }

  /* Industries: stack single column at 768px (portrait tablets and phones) */
  .hp-ind2__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .hp-ind2__right { position: static; justify-content: flex-start; }
  .hp-ind2__panel { max-width: none; width: 100%; aspect-ratio: 16/9; max-height: 360px; }

  .hp-why__tiles { grid-template-columns: 1fr; }

  .hp-footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .hp-footer__bottom { flex-direction: column; text-align: center; }

  .hp-cta__heading { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

@media (max-width: 480px) {
  :root { --hp-section: 60px; }

  /* Mobile hero: ensure content stacks and nothing clips */
  .hp-hero {
    min-height: 580px;
  }

  .hp-hero__inner {
    padding-top: 100px;
    padding-bottom: 75px;
  }

  .hp-hero__heading { font-size: clamp(1.75rem, 9vw, 2.25rem); line-height: 1.15; }
  .hp-hero__sub { font-size: 0.9rem; margin-bottom: 1.5rem; }

  .hp-hero__actions { flex-direction: column; gap: 0.75rem; }
  .hp-btn-hero-primary, .hp-btn-hero-ghost { width: 100%; justify-content: center; }

  /* Tighten eyebrow to reclaim vertical space */
  .hp-hero__eyebrow { margin-bottom: 1rem; font-size: 0.65rem; }

  /* Industries: stack vertically on mobile */
  .hp-ind2__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hp-ind2__right { position: static; justify-content: flex-start; }
  .hp-ind2__panel {
    max-width: none;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 300px;
  }
  .hp-ind2__desc { font-size: 0.9rem; max-width: none; }
  .hp-ind2__panel-name { font-size: 1.375rem; }
  .hp-ind2__panel-desc { font-size: 0.8rem; margin-bottom: 1rem; max-width: none; }
  .hp-ind2__panel-content { padding: 1.25rem 1.25rem 1.5rem; }
  .hp-ind2__left { gap: 2rem; }

  .hp-cta__actions { flex-direction: column; }
  .hp-btn-cta-lg, .hp-btn-cta-ghost { width: 100%; justify-content: center; }

  .hp-footer__socials { flex-wrap: wrap; }
}

@media (max-width: 375px) {
  .hp-container { padding-left: 1rem; padding-right: 1rem; }

  .hp-hero {
    min-height: 560px;
  }

  .hp-hero__inner {
    padding-top: 90px;
    padding-bottom: 72px;
  }

  .hp-hero__heading { font-size: 1.625rem; line-height: 1.18; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  SHORT VIEWPORT FIX (landscape / 720px–800px tall screens)                  */
/*  e.g. 1280×720, 1440×768 — very common laptop viewport heights              */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-height: 800px) and (min-width: 1025px) {
  .hp-hero {
    min-height: 720px;
  }

  .hp-hero__inner {
    padding-top: 110px;
    padding-bottom: 80px;
    gap: 3rem;
  }

  /* Scale heading down so 3 lines always fit */
  .hp-hero__heading {
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.12;
    margin-bottom: 1rem;
  }

  .hp-hero__sub {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hp-hero__eyebrow {
    margin-bottom: 1.25rem;
  }

  /* Cap image so it doesn't crowd the content column */
  .hp-hero__img-frame {
    max-height: 400px;
  }

  .hp-hero__controls {
    bottom: 1.5rem;
  }
}

@media (max-height: 720px) and (min-width: 1025px) {
  .hp-hero {
    min-height: 680px;
  }

  .hp-hero__inner {
    padding-top: 100px;
    padding-bottom: 72px;
    gap: 2.5rem;
  }

  .hp-hero__heading {
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    margin-bottom: 0.875rem;
  }

  .hp-hero__sub {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }

  .hp-hero__img-frame {
    max-height: 360px;
  }

  .hp-hero__controls {
    bottom: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  ACCESSIBILITY                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.hp-skip-link:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  padding: 0.75rem 1.5rem;
  background: var(--hp-red);
  color: white;
  z-index: 9999;
  border-radius: var(--hp-r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  font-family: var(--hp-font);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  HOMEPAGE UPGRADE — NEW SECTIONS CSS                                        */
/* ─────────────────────────────────────────────────────────────────────────── */

/* ─── WHY CIS — 5 Differentiators 2-col grid ─────────────────────────── */
.hp-why__diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.hp-why__diff-item {
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.hp-why__diff-item:hover {
  border-color: rgba(229,35,35,0.3);
  background: rgba(229,35,35,0.05);
  transform: translateY(-2px);
}

.hp-why__diff-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E52323;
  margin-bottom: 0.5rem;
  font-family: var(--hp-font);
  display: block;
}

.hp-why__diff-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  font-family: var(--hp-font);
  line-height: 1.3;
}

.hp-why__diff-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0;
  font-family: var(--hp-font);
}

@media (max-width: 992px) {
  .hp-why__diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hp-why__diff-grid { grid-template-columns: 1fr; }
}

/* ─── TECHNOLOGY TRANSFORMATION SECTION ──────────────────────────────── */
.hp-transform {
  padding: var(--hp-section) 0;
  background: var(--hp-bg);
  position: relative;
}

.hp-transform__header {
  text-align: center;
  margin-bottom: 4rem;
}

.hp-transform__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E52323;
  margin-bottom: 1.25rem;
  font-family: var(--hp-font);
}

.hp-transform__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #17202A;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-family: var(--hp-font);
  margin: 0;
}

.hp-transform__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.10);
}

.hp-transform__stage {
  background: #111318;
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.hp-transform__stage--center {
  background: #E52323;
}

.hp-transform__stage-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
  font-family: var(--hp-font);
}

.hp-transform__stage--center .hp-transform__stage-label {
  color: rgba(255,255,255,0.6);
}

.hp-transform__stage-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 1.5rem 0;
  font-family: var(--hp-font);
  letter-spacing: 0.05em;
}

.hp-transform__stage-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.hp-transform__stage-items li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-family: var(--hp-font);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.hp-transform__stage-items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
}

.hp-transform__stage--center .hp-transform__stage-items li {
  color: rgba(255,255,255,0.88);
}

.hp-transform__stage--center .hp-transform__stage-items li::before {
  color: rgba(255,255,255,0.5);
}

.hp-transform__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  background: #0B0D12;
}

.hp-transform__arrow svg {
  width: 24px;
  height: 24px;
  stroke: #E52323;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hp-transform__flow {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .hp-transform__arrow {
    padding: 1.25rem;
    justify-content: center;
  }
  .hp-transform__arrow svg {
    transform: rotate(90deg);
  }
}

/* ─── CAPABILITY ECOSYSTEM SECTION ───────────────────────────────────── */
.hp-ecosystem {
  padding: var(--hp-section) 0;
  background: var(--hp-surface);
  overflow: hidden;
}

.hp-ecosystem__header {
  text-align: center;
  margin-bottom: 4rem;
}

.hp-ecosystem__heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #17202A;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-family: var(--hp-font);
  margin: 0 0 0.75rem;
}

.hp-ecosystem__sub {
  font-size: 0.95rem;
  color: #667085;
  font-family: var(--hp-font);
  margin: 0;
  line-height: 1.6;
}

.hp-ecosystem__diagram {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  height: 480px;
}

.hp-ecosystem__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 124px;
  height: 124px;
  background: #E52323;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 0 0 12px rgba(229,35,35,0.08), 0 0 40px rgba(229,35,35,0.25);
  z-index: 2;
}

.hp-ecosystem__center-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-family: var(--hp-font);
}

.hp-ecosystem__center-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--hp-font);
  text-align: center;
  line-height: 1.25;
}

.hp-ecosystem__node {
  position: absolute;
  background: #FFFFFF;
  border: 1.5px solid #E4E7EC;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 88px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  z-index: 2;
  cursor: default;
}

.hp-ecosystem__node:hover {
  border-color: rgba(229,35,35,0.3);
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
  transform: translate(-50%, calc(-50% - 4px)) !important;
}

.hp-ecosystem__node-icon {
  width: 32px;
  height: 32px;
  background: rgba(229,35,35,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-ecosystem__node-icon svg {
  width: 15px;
  height: 15px;
  stroke: #E52323;
}

.hp-ecosystem__node-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #17202A;
  font-family: var(--hp-font);
  line-height: 1;
  white-space: nowrap;
}

.hp-ecosystem__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(229,35,35,0.3), rgba(229,35,35,0.05));
  transform-origin: top center;
  z-index: 1;
  pointer-events: none;
}

/* Mobile ecosystem — flat grid instead of radial */
@media (max-width: 768px) {
  .hp-ecosystem__diagram {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    max-width: 420px;
  }
  .hp-ecosystem__center {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    min-height: 80px;
    border-radius: 12px;
    padding: 1rem;
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(229,35,35,0.2);
  }
  .hp-ecosystem__center-name { line-height: 1.3; }
  .hp-ecosystem__node {
    position: static;
    transform: none !important;
    min-width: 0;
    width: 100%;
  }
  .hp-ecosystem__node:hover {
    transform: none !important;
  }
  .hp-ecosystem__line { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  TESTIMONIALS SECTION — hp-testi                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

.hp-testi {
  padding: var(--hp-section) 0;
  background: #F7F8FA;
  position: relative;
  overflow: hidden;
}

/* Section Header */
.hp-testi__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hp-testi__trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hp-testi__trust-line {
  display: block;
  height: 1px;
  width: 48px;
  background: #E4E7EC;
}

.hp-testi__trust-text {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #667085;
  font-family: var(--hp-font);
  white-space: nowrap;
}

.hp-testi__sub {
  font-size: 1rem;
  color: #667085;
  font-family: var(--hp-font);
  line-height: 1.65;
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* Carousel Wrapper */
.hp-testi__carousel-wrap {
  position: relative;
  margin-top: 2.5rem;
}

.hp-testi__track-outer {
  overflow: hidden;
  border-radius: 4px;
}

.hp-testi__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Cards */
.hp-testi__card {
  background: #FFFFFF;
  border: 1.5px solid #E4E7EC;
  border-radius: 18px;
  padding: 2.25rem 2rem;
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
  position: relative;
}

.hp-testi__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  border-color: rgba(229,35,35,0.2);
  transform: translateY(-3px);
}

/* Sample badge */
.hp-testi__sample-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: var(--hp-font);
  align-self: flex-start;
}

/* Quote mark */
.hp-testi__quote-mark {
  font-size: 4.5rem;
  line-height: 0.6;
  color: #E52323;
  font-family: Georgia, serif;
  font-weight: 700;
  margin-top: 0.5rem;
  opacity: 0.85;
  user-select: none;
}

/* Quote text */
.hp-testi__quote {
  margin: 0;
  flex: 1;
}

.hp-testi__quote p {
  font-size: 1rem;
  line-height: 1.7;
  color: #344054;
  font-family: var(--hp-font);
  font-weight: 450;
  font-style: italic;
  margin: 0;
}

/* Meta section */
.hp-testi__meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F2F4F7;
  margin-top: auto;
}

.hp-testi__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F2F4F7;
  border: 1.5px solid #E4E7EC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #667085;
}

.hp-testi__avatar svg {
  width: 20px;
  height: 20px;
}

.hp-testi__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #17202A;
  font-family: var(--hp-font);
  line-height: 1.3;
}

.hp-testi__role {
  font-size: 0.78rem;
  color: #667085;
  font-family: var(--hp-font);
  margin-top: 0.1rem;
}

.hp-testi__org {
  font-size: 0.73rem;
  color: #E52323;
  font-family: var(--hp-font);
  font-weight: 600;
  margin-top: 0.1rem;
  letter-spacing: 0.01em;
}

/* Carousel Controls */
.hp-testi__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.hp-testi__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #E4E7EC;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #344054;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.hp-testi__arrow:hover {
  border-color: #E52323;
  background: #E52323;
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(229,35,35,0.25);
}

.hp-testi__arrow:focus-visible {
  outline: 2px solid #E52323;
  outline-offset: 3px;
}

.hp-testi__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Dots */
.hp-testi__dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hp-testi__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D1D5DB;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, width 0.25s ease;
  flex-shrink: 0;
}

.hp-testi__dot--active {
  background: #E52323;
  width: 24px;
  border-radius: 4px;
}

.hp-testi__dot:focus-visible {
  outline: 2px solid #E52323;
  outline-offset: 2px;
}

/* Section CTA link */
.hp-testi__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #17202A;
  text-decoration: none;
  font-family: var(--hp-font);
  border-bottom: 1.5px solid #E4E7EC;
  padding-bottom: 0.15rem;
  transition: color 0.22s ease, border-color 0.22s ease;
  letter-spacing: 0.01em;
}

.hp-testi__cta-link:hover {
  color: #E52323;
  border-color: #E52323;
}

.hp-testi__cta-link svg {
  transition: transform 0.22s var(--hp-ease-spring, ease);
}

.hp-testi__cta-link:hover svg {
  transform: translateX(4px);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
  .hp-testi__card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    min-width: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 640px) {
  .hp-testi__card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 1.75rem 1.5rem;
  }
  .hp-testi__trust-text { white-space: normal; text-align: center; }
  .hp-testi__quote p { font-size: 0.95rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hp-testi__track { transition: none; }
  .hp-testi__card { transition: none; }
  .hp-testi__arrow { transition: none; }
}


/* ==========================================================================
   DIRECT IMPLEMENTATION: COMPREHENSIVE RESPONSIVE FIXES
   ========================================================================== */

/* 1. Global Overflow Prevention */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* 2. Container Padding on Mobile */
@media (max-width: 768px) {
  .hp-container, .sp-container, .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* 3. Typography Clamp Fallbacks */
@media (max-width: 768px) {
  .hp-hero__title, .sp-heading, h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hp-hero__desc, .sp-subheading, h2 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
    word-wrap: break-word;
  }
  p {
    font-size: 1rem !important;
  }
}

/* 4. Grids - Force Single Column on Mobile */
@media (max-width: 1024px) {
  .hp-footer__grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 820px) {
  /* All major multi-column grids */
  .hp-serv-grid,
  .hp-tech__grid,
  .hp-trust__grid,
  .contact-types__grid,
  .contact-why__grid,
  .contact-direct__grid,
  .blog-grid,
  .blog-topics__grid,
  .car-values__grid,
  .hp-cap__grid,
  .hp-ind-grid,
  .hp-footer__grid,
  .contact-split,
  .contact-location,
  .hp-testi__track,
  .trust-grid,
  .service-cards,
  .footer-grid,
  .case-card,
  .industry-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
  
  /* Reset flex directions for horizontal layouts */
  .hp-split, .hp-split--reverse, .hp-cta__inner, .job-card, .process-infographic {
    flex-direction: column !important;
  }
  
  .hp-split__visual, .hp-split__content {
    width: 100% !important;
  }
  
  /* Mega menu mobile reset (it shouldn't show, but if it does, don't break viewport) */
  .hp-mega, .mega-menu {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    transform: none !important;
  }
}

/* 5. Buttons and Forms */
@media (max-width: 768px) {
  .hp-btn, .sp-btn, .hp-btn-cta, .cf-submit, .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .cf-row, .car-form-row, .form-row {
    grid-template-columns: 1fr !important;
  }
  
  .cf-input, .cf-select, .cf-textarea, .car-input, .car-select, .car-textarea, .blog-newsletter__input, input, select, textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .sp-btn-group, .cookie-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  
  .sp-btn-group .sp-btn {
    width: 100% !important;
  }
}

/* 6. Mobile Nav Fixes */
.hp-mobile-nav, .main-nav {
  padding: 5rem 1.5rem 2rem !important;
  overflow-y: auto !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

.hp-mobile-nav__link, .nav-link {
  white-space: normal !important;
  word-wrap: break-word !important;
}

/* Mobile Services dropdown hierarchy fix */
@media (max-width: 1024px) {
  a.hp-mobile-nav__link[href*="services/"], a.nav-link[href*="services/"] {
    font-size: 1rem !important;
    padding-left: 1.5rem !important;
    color: #6B7280 !important;
    border-left: 2px solid #E5E7EB;
    margin-left: 0.5rem;
    display: block;
  }
}

/* 7. Image Responsiveness */
img, video, iframe, canvas, svg {
  max-width: 100% !important;
  height: auto;
}

/* 8. Fix spacing */
@media (max-width: 768px) {
  .hp-section, .sp-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .hp-hero, .sp-hero {
    min-height: 100vh !important;
    height: auto !important;
    /* Remove the padding overrides so the original safe areas work */
  }
  
  .hp-hero__inner {
    padding-top: 100px !important;
    padding-bottom: 120px !important;
  }
  
  .hp-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  
  /* Remove excessive padding/margins on internal elements */
  .contact-types, .contact-direct, .contact-why {
    padding: 4rem 0 !important;
  }
}

/* 9. Privacy Policy & TOS Content */
@media (max-width: 768px) {
  .legal-content, .privacy-content, .tos-content {
    padding: 2rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }
  .legal-content h1, .legal-content h2, .privacy-content h1, .privacy-content h2, .tos-content h1, .tos-content h2 {
    font-size: 1.5rem !important;
  }
}

/* 10. Table Responsiveness */
@media (max-width: 768px) {
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* ==========================================================================
   DIRECT IMPLEMENTATION: HERO HEAD & INDUSTRY OVERLAP FIXES
   ========================================================================== */

@media (max-width: 768px) {
  /* Fix Hero Overlapping Header */
  .hp-hero__inner {
    padding-top: 150px !important; 
    gap: 1.5rem !important; 
  }
  
  /* Fix Industry Panel Text Overlap */
  .hp-ind2__panel {
    aspect-ratio: auto !important;
    min-height: 380px !important;
    max-height: none !important;
  }
  
  .hp-ind2__float {
    top: 1rem !important;
    left: 1rem !important;
    right: auto !important;
  }
  
  .hp-ind2__panel-content {
    padding: 1.5rem !important;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
  }
}

/* ==========================================================================
   DIRECT IMPLEMENTATION: ABOUT US MOBILE FIXES
   ========================================================================== */
@media (max-width: 820px) {
  /* Fix 'Why Clients Partner with Us' block */
  .ab-commit__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  .ab-commit__item {
    width: 100% !important;
    min-height: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* ==========================================================================
   DIRECT IMPLEMENTATION: SERVICE CAPABILITIES FIX
   ========================================================================== */
@media (max-width: 820px) {
  /* Fix Service capabilities block squishing horizontally */
  .sp-models__grid,
  .sp-benefits__grid,
  .sp-process__grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 2rem !important;
  }
}

/* ==========================================================================
   DIRECT IMPLEMENTATION: UNIVERSAL SERVICE PAGES GRID FIX
   ========================================================================== */
@media (max-width: 820px) {
  /* Force all custom grids to stack vertically on mobile */
  .cl-cap-strip__grid, .cl-dash-grid, .cl-optimization__grid, .cl-outcome-grid, .cl-outcomes__grid, .cl-security__grid, .cl-tech-grid,
  .cy-cap-strip__grid, .cy-dash-grid, .cy-gov-grid, .cy-identity__grid, .cy-outcomes-grid, .cy-threat__grid,
  .da-cta__grid, .da-governance__grid, .da-industries__grid, .da-outcomes__grid, .da-strip__grid, .da-why__grid,
  .nit-benefits-grid, .nit-cat-grid, .nit-hero-visual__grid, .nit-industry-grid, .nit-models-grid, .nit-stats-grid,
  .sp-expertise__grid, .sp-industries__grid, .sp-intro__grid, .sp-models__grid, .sp-tech-grid, .sp-trust-strip__grid, .sp-why__grid,
  .sp-why__benefits,
  
  /* Catch-all for aggressive inline styles blocking responsive behavior */
  div[style*="grid-template-columns: repeat"],
  div[style*="grid-template-columns:repeat"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  section[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   DIRECT IMPLEMENTATION: CHECKBOX MOBILE FIX
   ========================================================================== */
@media (max-width: 820px) {
  /* Prevent global input overrides from breaking checkboxes */
  input[type="checkbox"], 
  input[type="radio"], 
  .car-checkbox, 
  .cf-checkbox {
    width: 18px !important;
    height: 18px !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
    margin-top: 0.15rem !important;
  }
}
