/* ==========================================================================
   ADAPTAL CORE STYLESHEET (style.css) — Light Minimal Redesign
   ========================================================================== */

/* 1. RESET & VARIABLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

em, i {
  font-style: normal !important;
}

:root {
  --bg:        #F5F4EF;
  --bg2:       #EEEDE7;
  --bg3:       #E6E4DD;
  --bg-card:   #FFFFFF;
  --text:      #1A1916;
  --text-mid:  #6B6860;
  --text-dim:  #A09D96;
  --accent:    #3E443B;
  --accent2:   #2F342D;
  --accent-bg: #E9ECE8;
  --rule:      rgba(0,0,0,0.08);
  --rule-mid:  rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);
  --display:   'DM Sans', sans-serif;
  --body:      'DM Sans', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* ── DOT GRID CANVAS (interactive background) ── */
#dot-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* All page content sits above the canvas */
nav, section, footer, main {
  position: relative;
  z-index: 1;
}

/* 2. CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: var(--bg3);
  border-radius: 99px;
  border: 2px solid var(--bg2);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Scroll progress bar tracker */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  z-index: 200;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* 3. NAVIGATION */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(245,244,239,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 110;
}

.nav-links {
  display: none !important; /* Hidden globally in favor of the full screen menu toggle */
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 110;
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

/* Premium Hamburger Trigger */
.menu-toggle {
  display: flex; /* Displayed globally in favor of the full screen menu toggle */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* 4. BUTTONS */
.btn-primary {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(62, 68, 59, 0.25);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(62, 68, 59, 0.3);
}

.btn-ghost {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  border: 1px solid var(--rule);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  background: var(--bg-card);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.2);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: inline-block;
}

.btn-white:hover {
  background: var(--accent);
  color: #fff;
}

/* Animations */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade.in {
  opacity: 1;
  transform: translateY(0);
}

.count-num { display: inline-block; }


/* ── INTERACTIVE ELEMENTOR-STYLE HERO SLIDER (index.html) ── */
.hero.as-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8% 0 8%;
  background: #000;
}

/* Background image transitions */
.as-slider-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.hero-bg-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Tone and Color variations for Finance and Operations */
.hero-bg-img.finance-tint {
  filter: hue-rotate(180deg) saturate(0.7) brightness(0.65);
}

.hero-bg-img.industrial-tint {
  filter: sepia(0.2) contrast(1.1) brightness(0.6);
}

/* Dark gradient overlay so text is readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,8,0.85) 0%,
    rgba(10,10,8,0.65) 45%,
    rgba(10,10,8,0.3) 75%,
    rgba(10,10,8,0.1) 100%
  );
  z-index: 1;
}

/* Left panel content container */
.hero-left-panel {
  position: relative;
  z-index: 3;
  width: 48%;
  max-width: 620px;
  color: #fff;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Dynamic widget area (for text transitions) */
.as-changing-widget-container {
  position: relative;
  width: 100%;
}

.title-widget {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  align-items: start;
}

h1.elementor-widget.title-slide {
  grid-area: stack;
  position: relative !important;
  width: 100%;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.5s;
}

h1.elementor-widget.title-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

h1.elementor-widget.title-slide em {
  font-style: normal;
  color: #86efac;
}

.desc-widget {
  position: relative;
  margin-top: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-areas: "stack";
  align-items: start;
}

p.elementor-widget.desc-slide {
  grid-area: stack;
  position: relative !important;
  width: 100%;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s, visibility 0.5s 0.1s;
}

p.elementor-widget.desc-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.action-widget {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  align-items: center;
}

.elementor-widget.action-slide {
  grid-area: stack;
  position: relative !important;
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s, visibility 0.5s 0.2s;
}

.elementor-widget.action-slide.active {
  position: relative !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Center-left vertical navigation bar (as-bar) */
.as-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 320px;
  z-index: 3;
  width: 40px;
  margin: 0 20px;
}

.as-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.as-bar .dot {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transform: scale(0.4);
  transition: all 0.3s ease-in-out;
}

.as-bar .dot-number {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.as-bar .dot.active {
  transform: scale(1);
  background: var(--accent);
  border-color: var(--accent);
}

.as-bar .dot.active .dot-number {
  opacity: 1;
}

.as-bar .dot:hover {
  transform: scale(1);
  background: var(--accent);
  border-color: var(--accent);
}

.as-bar .dot:hover .dot-number {
  opacity: 1;
}

/* Right side card slider container */
.as-side-slider-container {
  width: 44%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.as-side-slider {
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 10px 0;
  width: max-content;
}

.swiper-slide {
  flex-shrink: 0;
  width: 120px;
  height: 180px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.as-side-slider .swiper-slide:nth-child(4n+1) {
  background: radial-gradient(at 20% 20%, rgba(16, 185, 129, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 40%, rgba(6, 95, 70, 0.65) 0%, transparent 70%),
              radial-gradient(at 40% 90%, rgba(62, 68, 59, 0.55) 0%, transparent 60%),
              linear-gradient(135deg, #122018, #09100c);
}
.as-side-slider .swiper-slide:nth-child(4n+2) {
  background: radial-gradient(at 10% 20%, rgba(197, 160, 89, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 30%, rgba(62, 68, 59, 0.65) 0%, transparent 70%),
              radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #1c221a, #0e120d);
}
.as-side-slider .swiper-slide:nth-child(4n+3) {
  background: radial-gradient(at 20% 30%, rgba(52, 211, 153, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 20%, rgba(13, 148, 136, 0.65) 0%, transparent 70%),
              radial-gradient(at 30% 80%, rgba(62, 68, 59, 0.55) 0%, transparent 60%),
              linear-gradient(135deg, #0f1d18, #070e0b);
}
.as-side-slider .swiper-slide:nth-child(4n+4) {
  background: radial-gradient(at 10% 30%, rgba(110, 231, 183, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 40%, rgba(16, 185, 129, 0.55) 0%, transparent 70%),
              radial-gradient(at 40% 90%, rgba(52, 211, 153, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #112219, #08120c);
}

.swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.3);
}

.swiper-slide.active {
  width: 160px;
  height: 240px;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 30px rgba(62, 68, 59, 0.45);
}

.slide-card-cite {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.slide-card-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.slide-card-title {
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Slider control arrows */
.as-slider-arrows {
  display: flex;
  gap: 10px;
}

.as-slider-left, .as-slider-right {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.as-slider-left:hover, .as-slider-right:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

/* Hero stats bar below hero */
.hero-stats-bar {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
}

.stat {
  flex: 1;
  padding: 28px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* 6. TICKER / LOGO STRIP */
.logo-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
  overflow: hidden;
}

.logo-strip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 90px;
  transition: color 0.2s;
  position: relative;
}

.logo-strip-label:hover { color: var(--text); }

.label-hover { display: none; }
.logo-strip-label:hover .label-default { display: none; }
.logo-strip-label:hover .label-hover { display: inline; }

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.logo-scroll {
  display: flex;
  gap: 0;
  animation: ticker 38s linear infinite;
  width: max-content;
}

.logo-strip:hover .logo-scroll { animation-play-state: paused; }

@keyframes ticker { 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }

.client-item {
  display: inline-flex;
  flex-direction: column;
  padding: 0 36px;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
}

.client-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.client-industry {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* Show/hide industry toggle */
.logo-strip.show-industries .client-name { display: none; }
.logo-strip.show-industries .client-industry { display: block; font-size: 12px; color: var(--text); }
.logo-strip:not(.show-industries) .client-industry { display: none; }


/* Partner strip */
.partner-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg2);
  overflow: hidden;
}

.partner-strip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 90px;
  transition: color 0.2s;
  position: relative;
}

.partner-strip-label:hover { color: var(--text); }
.partner-label-hover { display: none; }
.partner-strip-label:hover .partner-label-default { display: none; }
.partner-strip-label:hover .partner-label-hover { display: inline; }

.partner-ticker-wrap { overflow: hidden; flex: 1; }

.partner-scroll {
  display: flex;
  gap: 0;
  animation: ticker 28s linear infinite;
  width: max-content;
}

.partner-strip:hover .partner-scroll { animation-play-state: paused; }

.partner-item {
  display: inline-flex;
  flex-direction: column;
  padding: 0 32px;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
}

.partner-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.partner-solution {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.partner-strip.show-solutions .partner-name { display: none; }
.partner-strip.show-solutions .partner-solution { display: block; font-size: 12px; color: var(--text); }
.partner-strip:not(.show-solutions) .partner-solution { display: none; }


/* 7. INNER PAGE HERO */
/* 7. INNER PAGE HERO (full-bleed image) */
.page-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--rule);
}

/* Background image */
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.page-hero.loaded .page-hero-bg {
  transform: scale(1);
}

/* Dark gradient overlay */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,8,0.80) 0%,
    rgba(10,10,8,0.52) 50%,
    rgba(10,10,8,0.15) 100%
  );
  z-index: 1;
}

/* Text content */
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 64px 64px;
  max-width: 700px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 16px;
  font-weight: 600;
  display: block;
}

h1.page-title {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

h1.page-title em {
  font-style: normal;
  color: #86efac;
}

.page-intro {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.8;
}


/* 8. COMMON SECTIONS */
.section {
  padding: 96px 48px;
  border-bottom: 1px solid var(--rule);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
  padding: 32px 0;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.section-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.section-link:hover { opacity: 0.7; }


/* 9. SERVICES STAGGER GRID */
.services-stagger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg);
  position: relative;
}

.service-stagger-card {
  position: relative;
  min-height: 520px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  z-index: 1;
  transition: background-color 0.4s ease;
}

.service-stagger-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.service-stagger-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26,25,22,0.1) 0%, rgba(26,25,22,0.85) 100%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.service-stagger-card .card-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
}

.stagger-card-num {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  transition: color 0.4s ease;
}

.stagger-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-card-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
}

.stagger-card-desc {
  font-family: var(--body);
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  transition: color 0.4s ease;
}

.stagger-card-caps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
}

.stagger-card-caps li {
  font-family: var(--body);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  position: relative;
  padding-left: 16px;
}

.stagger-card-caps li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  transition: color 0.4s ease;
}

.stagger-card-link {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.4s ease;
  display: inline-block;
  margin-top: 8px;
}

/* Hover behaviors */
.service-stagger-card:hover .card-bg {
  opacity: 1;
  transform: scale(1.0);
}

.service-stagger-card.theme-salesforce:hover .card-bg {
  background-image: radial-gradient(at 20% 20%, rgba(90, 169, 230, 0.45) 0%, transparent 60%),
                    radial-gradient(at 80% 40%, rgba(31, 72, 112, 0.65) 0%, transparent 70%),
                    radial-gradient(at 40% 90%, rgba(107, 37, 133, 0.55) 0%, transparent 60%),
                    linear-gradient(135deg, #142d48, #0e1a24);
}
.service-stagger-card.theme-managed:hover .card-bg {
  background-image: radial-gradient(at 10% 20%, rgba(197, 160, 89, 0.55) 0%, transparent 60%),
                    radial-gradient(at 80% 30%, rgba(62, 68, 59, 0.75) 0%, transparent 70%),
                    radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.45) 0%, transparent 60%),
                    linear-gradient(135deg, #1c221a, #0e120d);
}
.service-stagger-card.theme-integration:hover .card-bg {
  background-image: radial-gradient(at 20% 30%, rgba(236, 90, 60, 0.45) 0%, transparent 60%),
                    radial-gradient(at 80% 20%, rgba(138, 39, 21, 0.65) 0%, transparent 70%),
                    radial-gradient(at 30% 80%, rgba(107, 37, 133, 0.55) 0%, transparent 60%),
                    linear-gradient(135deg, #3d1a12, #210d09);
}
.service-stagger-card.theme-ai:hover .card-bg {
  background-image: radial-gradient(at 10% 30%, rgba(177, 79, 201, 0.55) 0%, transparent 60%),
                    radial-gradient(at 80% 40%, rgba(106, 37, 133, 0.65) 0%, transparent 70%),
                    radial-gradient(at 40% 90%, rgba(63, 209, 192, 0.45) 0%, transparent 60%),
                    linear-gradient(135deg, #2a1235, #14081c);
}

.service-stagger-card:hover .card-overlay {
  opacity: 1;
}

.service-stagger-card:hover .stagger-card-num {
  color: rgba(255,255,255,0.6);
}

.service-stagger-card:hover .stagger-card-bottom {
  transform: translateY(0);
}

.service-stagger-card:hover .stagger-card-title {
  color: #ffffff;
}

.service-stagger-card:hover .stagger-card-desc {
  color: rgba(255,255,255,0.8);
}

.service-stagger-card:hover .stagger-card-caps {
  opacity: 1;
  max-height: 150px;
  margin-top: 16px;
}

.service-stagger-card:hover .stagger-card-caps li::before {
  color: #ffffff;
}

.service-stagger-card:hover .stagger-card-link {
  color: #ffffff;
}

/* Desktop Separator Lines */
@media (min-width: 1025px) {
  .service-stagger-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, rgba(26,25,22,0) 0%, var(--rule) 50%, rgba(26,25,22,0) 100%);
    z-index: 5;
    transition: opacity 0.4s ease;
  }
  .service-stagger-card:hover::after {
    opacity: 0;
  }
}

/* Tablet Layout (2x2 Grid) */
@media (max-width: 1024px) and (min-width: 768px) {
  .services-stagger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-stagger-card {
    min-height: 480px;
    padding: 40px 28px;
  }
  /* Vertical separator for left column items (1 and 3) */
  .service-stagger-card:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, rgba(26,25,22,0) 0%, var(--rule) 50%, rgba(26,25,22,0) 100%);
    z-index: 5;
    transition: opacity 0.4s ease;
  }
  .service-stagger-card:hover::after {
    opacity: 0;
  }
  /* Horizontal separator for top row items (1 and 2) */
  .service-stagger-card:nth-child(-n+2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, rgba(26,25,22,0) 0%, var(--rule) 50%, rgba(26,25,22,0) 100%);
    z-index: 5;
    transition: opacity 0.4s ease;
  }
  .service-stagger-card:hover::before {
    opacity: 0;
  }
}

/* Mobile Layout (1 Column Stack) */
@media (max-width: 767px) {
  .services-stagger-grid {
    grid-template-columns: 1fr;
  }
  .service-stagger-card {
    min-height: 400px;
    padding: 36px 24px;
  }
  /* Horizontal separators for all except last item */
  .service-stagger-card:not(:last-child)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, rgba(26,25,22,0) 0%, var(--rule) 50%, rgba(26,25,22,0) 100%);
    z-index: 5;
    transition: opacity 0.4s ease;
  }
  .service-stagger-card:hover::before {
    opacity: 0;
  }
}


.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background: transparent;
  border: none;
  perspective: 1200px;
}

.case-card {
  padding: 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  transform-origin: top center;
  opacity: 0;
}

.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}

.case-card:nth-child(4n+1)::after {
  background: radial-gradient(at 20% 20%, rgba(16, 185, 129, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 40%, rgba(6, 95, 70, 0.65) 0%, transparent 70%),
              radial-gradient(at 40% 90%, rgba(62, 68, 59, 0.55) 0%, transparent 60%),
              linear-gradient(135deg, #122018, #09100c);
}
.case-card:nth-child(4n+2)::after {
  background: radial-gradient(at 10% 20%, rgba(197, 160, 89, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 30%, rgba(62, 68, 59, 0.65) 0%, transparent 70%),
              radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #1c221a, #0e120d);
}
.case-card:nth-child(4n+3)::after {
  background: radial-gradient(at 20% 30%, rgba(52, 211, 153, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 20%, rgba(13, 148, 136, 0.65) 0%, transparent 70%),
              radial-gradient(at 30% 80%, rgba(62, 68, 59, 0.55) 0%, transparent 60%),
              linear-gradient(135deg, #0f1d18, #070e0b);
}
.case-card:nth-child(4n+4)::after {
  background: radial-gradient(at 10% 30%, rgba(110, 231, 183, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 40%, rgba(16, 185, 129, 0.55) 0%, transparent 70%),
              radial-gradient(at 40% 90%, rgba(52, 211, 153, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #112219, #08120c);
}

.case-card:hover::after { transform: translateY(0); }

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card > * {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.case-card:hover .case-industry { color: rgba(255,255,255,0.6); }
.case-card:hover .case-client,
.case-card:hover .case-arrow { color: #fff; }
.case-card:hover .case-outcome { color: rgba(255,255,255,0.8); }
.case-card:hover .case-stat { color: rgba(255,255,255,0.25); }

.case-card.hidden { display: none; }

.case-card.animating {
  animation: cubeIn 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes cubeIn {
  0%   { opacity: 0; transform: translateY(30px) rotateX(-14deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.case-industry {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 40px;
  display: block;
}

.case-client {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.1;
  color: var(--text);
}

.case-stat {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--bg3);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.case-outcome {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

.case-arrow {
  font-size: 16px;
  color: var(--text-dim);
  display: block;
}


/* 11. FILTER BUTTONS */
.filter-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--bg-card);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* 12. ROI CALCULATOR */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc-group { display: flex; flex-direction: column; gap: 12px; }

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.calc-val-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 99px;
  min-width: 32px;
  text-align: center;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg3);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(62, 68, 59, 0.3);
}

.calc-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(62, 68, 59, 0.3);
}

.calc-select {
  font-size: 13px;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.calc-select:focus { border-color: var(--accent); }

.calc-results {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.calc-results-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.calc-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.calc-res-group { display: flex; flex-direction: column; gap: 4px; }

.calc-res-val {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
}

.calc-res-val.accent { color: var(--accent); }

.calc-res-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.calc-feasibility {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
}

.calc-feasibility.moderate { background: #FEF3C7; color: #92400E; }
.calc-feasibility.high { background: #D1FAE5; color: #065F46; }
.calc-feasibility.auto-ready { background: var(--accent-bg); color: var(--accent); }

.calc-cta-btn {
  width: 100%;
  text-align: center;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(62, 68, 59, 0.2);
}

.calc-cta-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}


/* 13. ABOUT SECTION (index.html) */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.about-text em { font-style: normal; color: var(--accent); }

.about-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.about-stat {
  background: var(--bg-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-stat-num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.about-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}


/* 14. CTA BANNER */
.cta-banner {
  background: var(--accent-bg);
  border-top: 1px solid rgba(62, 68, 59, 0.15);
  border-bottom: 1px solid rgba(62, 68, 59, 0.15);
  padding: 96px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-headline {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.cta-headline em { font-style: normal; color: var(--accent); }


/* 15. FOOTER */
footer {
  background: var(--bg-card);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--rule);
}

.footer-logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.footer-links a:hover,
.footer-links a.active { color: var(--text); }

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}


/* 16. CONTACT MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,25,22,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 560px;
  position: relative;
  margin: auto 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--rule);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover { background: var(--bg3); color: var(--text); }

.modal-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-title em { font-style: normal; color: var(--accent); }

.modal-sub {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.modal-field input,
.modal-field textarea {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.modal-field input::placeholder,
.modal-field textarea::placeholder { color: var(--text-dim); }

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 68, 59, 0.12);
}

.modal-field input.error,
.modal-field textarea.error { border-color: #dc2626; }

.modal-field textarea {
  height: 100px;
  resize: vertical;
  min-height: 80px;
}

.modal-error {
  font-size: 11px;
  color: #dc2626;
  display: none;
}

.modal-field.has-error .modal-error { display: block; }
.modal-field.has-error input,
.modal-field.has-error textarea { border-color: #dc2626; }

.modal-submit {
  width: 100%;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(62, 68, 59, 0.2);
}

.modal-submit:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}


/* 17. SERVICES PAGE */
.services-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 56px;
}

.svc-card {
  background: var(--bg-card);
  padding: 40px;
}

.svc-card-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  display: block;
}

.svc-card-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.svc-card-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
}

.svc-card-caps {
  list-style: none;
  padding: 0;
}

.svc-card-caps li {
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-mid);
  line-height: 1.5;
}

.svc-card-caps li::before {
  content: '→ ';
  color: var(--accent);
  font-size: 10px;
}

.svc-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.process-step {
  background: var(--bg-card);
  padding: 36px;
}

.process-num {
  font-size: 32px;
  font-family: var(--display);
  font-weight: 300;
  color: var(--bg3);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 20px;
}

.process-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}


/* 18. INDUSTRIES PAGE */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.industry-card {
  background: var(--bg-card);
  padding: 36px;
  transition: background 0.2s;
}

.industry-card:hover { background: var(--bg2); }

.industry-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.industry-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.industry-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.industry-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.industry-client-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg2);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--rule);
}


/* 19. ABOUT PAGE */
.about-page-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-page-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.value-card {
  background: var(--bg-card);
  padding: 32px;
}

.value-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.team-card {
  background: var(--bg-card);
  padding: 36px;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--rule);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-mid);
}

.team-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}


/* 20. THANK YOU PAGE */
.thankyou-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px;
  text-align: center;
}

.thankyou-inner { max-width: 540px; }

.thankyou-icon {
  width: 64px; height: 64px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 28px;
  border: 1px solid rgba(62, 68, 59, 0.2);
}

.thankyou-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1;
}

.thankyou-title em { font-style: normal; color: var(--accent); }

.thankyou-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 40px;
}

.thankyou-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

@media (max-width: 960px) {
  /* Nav mobile */
  nav {
    padding: 0 24px;
    height: 60px;
  }

  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    z-index: 105;
    padding-top: 80px;
  }

  .nav-links.mobile-open { transform: translateX(0); }

  .nav-links a {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
  }

  .menu-toggle { display: flex; }

  /* Hero mobile (Interactive Slider) */
  .hero.as-slider {
    height: auto;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 120px 24px 80px;
    gap: 40px;
  }
  .hero-left-panel {
    width: 100%;
    max-width: 100%;
  }
  .title-widget {
    min-height: 160px; /* Reduced for smaller viewport headline wrap */
  }
  h1.elementor-widget.title-slide {
    font-size: clamp(34px, 9vw, 52px);
  }
  .as-bar {
    flex-direction: row;
    height: auto;
    width: 200px;
    margin: 10px auto;
  }
  .as-bar::before {
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
    bottom: auto;
    transform: translateY(-50%);
  }
  .as-side-slider-container {
    width: 100%;
    align-items: center;
    gap: 16px;
  }
  .as-side-slider {
    padding: 10px 0;
  }
  .swiper-slide {
    width: 110px;
    height: 160px;
  }
  .swiper-slide.active {
    width: 130px;
    height: 195px;
  }
  .hero-stats-bar {
    flex-direction: column;
  }
  .hero-stats-bar .stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 20px 24px;
  }
  .hero-stats-bar .stat:last-child {
    border-bottom: none;
  }

  /* Sections */
  .section { padding: 64px 24px; }
  .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Tickers */
  .logo-strip,
  .partner-strip { padding: 16px 24px; }

  /* Page heros */
  .page-hero { padding: 120px 24px 60px; height: 50vh; min-height: 380px; }
  h1.page-title { font-size: clamp(36px, 9vw, 56px); }



  /* Cases grid */
  .cases-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Calc */
  .calc-container { grid-template-columns: 1fr; }
  .calc-results { margin-top: 0; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-page-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  /* Industries */
  .industries-grid { grid-template-columns: 1fr; }

  /* Services page grids */
  .services-hero-grid { grid-template-columns: 1fr; }
  .svc-process-grid { grid-template-columns: 1fr 1fr; }

  /* CTA banner */
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 24px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 40px 24px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Modal */
  .modal { padding: 32px 24px; margin: 0; border-radius: 12px; }
  .modal-row { grid-template-columns: 1fr; }
  .modal-title { font-size: 32px; }

  /* Thank you */
  .thankyou-wrap { padding: 100px 24px; }
  .thankyou-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .svc-process-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(38px, 12vw, 60px); }
  h1.page-title { font-size: clamp(36px, 11vw, 56px); }
}


/* ============================================================
   SERVICE DETAIL PAGE (services.html)
   ============================================================ */

.service-detail-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 32px;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.service-detail-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  padding-top: 8px;
}

.service-detail-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.1;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-detail-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}

.service-detail-list {
  list-style: none;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.service-detail-item {
  font-size: 13px;
  color: var(--text-mid);
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
  transition: background 0.15s;
}

.service-detail-item:last-child { border-bottom: none; }
.service-detail-item:hover { background: var(--bg2); }

.service-detail-item::before {
  content: '→ ';
  color: var(--accent);
  font-size: 11px;
  margin-right: 2px;
}

@media (max-width: 960px) {
  .service-detail-row { grid-template-columns: 1fr; gap: 16px; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}


/* ============================================================
   ABOUT PAGE EXTRA COMPONENTS
   ============================================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.value-card {
  background: var(--bg-card);
  padding: 36px;
  transition: background 0.2s;
}

.value-card:hover { background: var(--bg2); }

.value-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.value-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.value-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
}

.locations-flex {
  display: flex;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.location-card {
  flex: 1;
  background: var(--bg-card);
  padding: 32px 24px;
  transition: background 0.2s;
  min-width: 0;
}

.location-card:hover { background: var(--accent-bg); }

.location-city {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.location-region {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .values-grid { grid-template-columns: 1fr; }
  .locations-flex { flex-direction: column; }
}


/* ============================================================
   INDUSTRIES PAGE GRID
   ============================================================ */

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background: transparent;
  border: none;
}

.ind-card {
  background: var(--bg-card);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.ind-card::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}

.ind-card:nth-child(4n+1)::after {
  background: radial-gradient(at 20% 20%, rgba(16, 185, 129, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 40%, rgba(6, 95, 70, 0.65) 0%, transparent 70%),
              radial-gradient(at 40% 90%, rgba(62, 68, 59, 0.55) 0%, transparent 60%),
              linear-gradient(135deg, #122018, #09100c);
}
.ind-card:nth-child(4n+2)::after {
  background: radial-gradient(at 10% 20%, rgba(197, 160, 89, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 30%, rgba(62, 68, 59, 0.65) 0%, transparent 70%),
              radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #1c221a, #0e120d);
}
.ind-card:nth-child(4n+3)::after {
  background: radial-gradient(at 20% 30%, rgba(52, 211, 153, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 20%, rgba(13, 148, 136, 0.65) 0%, transparent 70%),
              radial-gradient(at 30% 80%, rgba(62, 68, 59, 0.55) 0%, transparent 60%),
              linear-gradient(135deg, #0f1d18, #070e0b);
}
.ind-card:nth-child(4n+4)::after {
  background: radial-gradient(at 10% 30%, rgba(110, 231, 183, 0.45) 0%, transparent 60%),
              radial-gradient(at 80% 40%, rgba(16, 185, 129, 0.55) 0%, transparent 70%),
              radial-gradient(at 40% 90%, rgba(52, 211, 153, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #112219, #08120c);
}

.ind-card:hover::after { transform: translateY(0); }

.ind-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ind-card > * {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.ind-card:hover svg {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ind-card:hover .ind-name {
  color: #fff;
}

.ind-card:hover .ind-desc {
  color: rgba(255, 255, 255, 0.85);
}

.ind-card:hover .ind-count {
  color: rgba(255, 255, 255, 0.5);
}

.ind-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.ind-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.ind-count {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
  display: block;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

@media (max-width: 960px) {
  .ind-grid { grid-template-columns: 1fr; gap: 20px; }
}

.ind-card.hidden {
  display: none;
}

.ind-card.animating {
  animation: cubeIn 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── INDUSTRIES FILTER BAR ── */
.ind-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  justify-content: flex-start;
  align-items: center;
}

.ind-filter-btn {
  background: var(--bg-card);
  color: var(--text-mid);
  border: 1px solid var(--rule);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.ind-filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.ind-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(62, 68, 59, 0.25);
}

@media (max-width: 960px) {
  .ind-filters-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px 16px;
    margin-left: -24px;
    margin-right: -24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .ind-filters-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .ind-filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

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


/* ============================================================
   HURSK HERO SECTION SYSTEM
   ============================================================ */

.hursk-hero, .hursk-hero * { box-sizing: border-box; margin: 0; padding: 0; }

.hursk-hero {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;

  /* CSS variables for the central glow / circle / bg color -- switched per slide */
  --glow: #b14fc9;
  --glow-mid: #6a2585;
  --bg-tint: #2a1235;

  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  max-height: 1000px;
  background:
    radial-gradient(ellipse 60% 70% at 70% 60%, var(--bg-tint) 0%, #151e18 65%, #0e1410 90%),
    #0e1410;
  overflow: hidden;
  padding: 80px 0 0; /* Adjusted for Adaptal fixed nav */
  display: flex;
  flex-direction: column;
  transition: background 0.6s ease;
}

/* inner container caps width so text and image stay anchored on wide screens */
.hursk-hero .hero-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 70px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.hursk-hero .pagination {
  position: absolute;
  bottom: 40px;
  left: 70px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hursk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============ MAIN GRID ============ */
.hursk-hero .main {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  padding-top: 20px;
  min-height: 0;
}

/* ============ TEXT ============ */
.hursk-hero .text {
  position: relative;
  z-index: 4;
  padding-left: 0;
  max-width: 520px;
  justify-self: start;
  align-self: center;
}

.hursk-hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
}

.hursk-hero .title {
  font-family: 'Helvetica', 'Inter', sans-serif;
  font-size: clamp(84px, 6.2vw, 98px);
  font-weight: 500;
  letter-spacing: -3.5px;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 32px;
}

.hursk-hero .desc {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 410px;
  margin-bottom: 32px;
  min-height: 80px; /* Reserves space for description to prevent vertical jumping */
}

.hursk-hero .btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--glow);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hursk-hero .btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* swipe row */
.hursk-hero .swipe { display: flex; align-items: center; gap: 26px; }

.hursk-hero .swipe-btn-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}
.hursk-hero .swipe-btn-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  transition: opacity 0.3s ease;
  opacity: 1;
}
.hursk-hero .swipe-btn-wrap:hover::before { opacity: 0; }

.hursk-hero .swipe-btn {
  position: relative;
  width: 56px; height: 56px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hursk-hero .swipe-btn:hover { background: rgba(255,255,255,0.08); transform: translateX(3px); }
.hursk-hero .swipe-btn:active { transform: translateX(6px); }
.hursk-hero .swipe-btn svg { width: 20px; height: 20px; }
.hursk-hero .swipe-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
}

/* ============ ANIMATIONS ============ */
@keyframes hursk-slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hursk-photoSlideIn {
  from { opacity: 0; transform: translate(calc(-50% + 100px), -50%); }
  to   { opacity: 1; transform: translate(calc(-50% + 60px), -50%); }
}

.hursk-hero .text-content.is-animating .title,
.hursk-hero .text-content.is-animating .desc,
.hursk-hero .text-content.is-animating .btn-primary {
  animation: hursk-slideInLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hursk-hero .text-content.is-animating .desc { animation-delay: 0.08s; }
.hursk-hero .text-content.is-animating .btn-primary { animation-delay: 0.16s; }

/* ============ SLIDER ============ */
.hursk-hero .subject {
  position: relative;
  align-self: center;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hursk-hero .circle {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 60px), -50%);
  background:
    radial-gradient(circle at 50% 50%,
      var(--glow) 0%,
      var(--glow) 55%,
      var(--glow-mid) 75%,
      transparent 92%);
  filter: blur(0.5px);
  z-index: 1;
  transition: background 0.6s ease;
}

.hursk-hero .photo-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hursk-hero .photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 60px), -50%);
  height: 800px;
  width: 800px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hursk-hero .photo.is-active {
  opacity: 1;
  animation: hursk-photoSlideIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Centerpiece Image Styling & Float Animation */
.hursk-hero .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: centerpieceFloat 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes centerpieceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hursk-hero .page-num {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
  min-width: 18px;
}
.hursk-hero .page-num.dim { color: rgba(255,255,255,0.55); }

.hursk-hero .progress {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 380px;
}
.hursk-hero .progress-segment {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}
.hursk-hero .progress-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0s linear;
}
.hursk-hero .progress-segment.is-past::after { transform: scaleX(1); }
.hursk-hero .progress-segment.is-active::after {
  transform: scaleX(1);
  transition: transform var(--slide-duration, 5s) linear;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) and (min-width: 821px) {
  .hursk-hero .hero-inner { padding: 0 40px; }
  .hursk-hero .title { font-size: clamp(68px, 6.5vw, 82px); }
  .hursk-hero .pagination { left: 40px; }
  .hursk-hero .subject { align-items: center; }
  .hursk-hero .circle {
    width: 440px; height: 440px;
    top: 50%; bottom: auto;
    transform: translate(calc(-50% + 40px), calc(-50% - 20px));
  }
  .hursk-hero .photo {
    top: 50%; bottom: auto;
    width: 540px;
    height: 540px;
    transform: translate(calc(-50% + 40px), calc(-50% - 20px));
  }
  @keyframes hursk-photoSlideIn {
    from { opacity: 0; transform: translate(calc(-50% + 80px), calc(-50% - 20px)); }
    to   { opacity: 1; transform: translate(calc(-50% + 40px), calc(-50% - 20px)); }
  }
}

@media (max-width: 820px) {
  .hursk-hero { padding: 80px 0 0; height: auto; min-height: 0; }
  .hursk-hero .hero-inner { padding: 0 24px; }

  .hursk-hero .main {
    grid-template-columns: 1fr;
    padding-top: 10px;
    gap: 0;
  }

  .hursk-hero .subject { order: 1; height: 60vw; min-height: 320px; max-height: 460px; align-items: center; }
  .hursk-hero .circle {
    width: 280px; height: 280px;
    top: 50%; bottom: auto;
    transform: translate(calc(-50% - 10px), -50%);
  }
  .hursk-hero .photo {
    top: 50%;
    bottom: auto;
    width: 350px;
    height: 350px;
    transform: translate(calc(-50% - 10px), -50%);
  }
  @keyframes hursk-photoSlideIn {
    from { opacity: 0; transform: translate(calc(-50% + 30px), -50%); }
    to   { opacity: 1; transform: translate(calc(-50% - 10px), -50%); }
  }

  .hursk-hero .text { padding-left: 0; padding-bottom: 30px; padding-top: 30px; order: 2; }
  .hursk-hero .title { font-size: 72px; letter-spacing: -3px; margin-bottom: 24px; }
  .hursk-hero .desc { margin-bottom: 36px; }

  .hursk-hero .pagination { position: relative; bottom: auto; left: auto; padding: 0 0 24px; width: 100%; }
  .hursk-hero .progress { flex: 1; width: auto; }
}

@media (max-width: 480px) {
  .hursk-hero .title { font-size: 56px; letter-spacing: -2px; }
  .hursk-hero .swipe-btn { width: 52px; height: 52px; }
}


/* ============================================================
   INDUSTRIES PAGE CAROUSEL SLIDER OVERRIDES
   ============================================================ */



/* Numbering on the left styling adjustments */
.industries-slider .as-bar {
  margin-left: 0 !important;
  margin-right: 40px !important;
}

/* Arrows under text styling adjustments */
.industries-slider .hero-left-panel .as-slider-arrows {
  margin-top: 36px !important;
  display: flex !important;
  gap: 12px !important;
}

@media (max-width: 960px) {

  
  /* Responsive flex stacking order: Text, then Dots, then Cards */
  .industries-slider {
    display: flex !important;
    flex-direction: column !important;
  }
  .industries-slider .hero-left-panel {
    order: 1 !important;
  }
  .industries-slider .as-bar {
    order: 2 !important;
    flex-direction: row !important;
    height: auto !important;
    width: 200px !important;
    margin: 20px auto !important;
  }
  .industries-slider .as-side-slider-container {
    order: 3 !important;
  }
}

/* ============================================================
   DISTORTED IMAGE FULL-SCREEN MENU DRAWER (v2 Layout)
   ============================================================ */
:root {
  --hover-image-width: 400;
  --hover-image-height: 280;
}

.distorted-menu-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

body.distorted-menu-active .distorted-menu-wrapper {
  visibility: visible;
  opacity: 1;
}

.distorted-menu-wrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Canvas above solid background but below text/content */
}

/* Left Sidebar Column */
.distorted-menu-sidebar {
  width: 100px;
  height: 100%;
  background: var(--bg-card); /* white card background */
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.distorted-menu-logo a {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.distorted-menu-logo a:hover {
  color: var(--accent);
}

/* Right Main Content Area */
.distorted-menu-main {
  flex-grow: 1;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
}

.distorted-menu-container {
  width: 100%;
  max-width: 900px;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Close Button (Diagonal Lines) */
.distorted-menu-close-btn {
  position: absolute;
  top: 40px;
  right: 80px;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.distorted-menu-close-btn span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.distorted-menu-close-btn span:nth-child(1) {
  transform: rotate(45deg);
}

.distorted-menu-close-btn span:nth-child(2) {
  transform: rotate(-45deg);
}

.distorted-menu-close-btn:hover {
  transform: rotate(90deg);
}

.distorted-menu-close-btn:hover span {
  background: var(--accent);
}

/* Top Row: Search */
.distorted-menu-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--rule);
  padding: 32px 0 20px 0;
}

.distorted-menu-search-row .search-text {
  font-family: var(--body);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.distorted-menu-search-row .search-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  transition: transform 0.3s ease;
}

.distorted-menu-search-row:hover .search-icon svg {
  transform: scale(1.1);
}

/* Links List */
.distorted-menu-content {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}

.distorted-menu-links {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.distorted-menu-links .menu-item {
  width: 100%;
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.distorted-menu-active .distorted-menu-links .menu-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger transitions for list items */
body.distorted-menu-active .distorted-menu-links .menu-item:nth-child(1) { transition-delay: var(--d, 0.1s); }
body.distorted-menu-active .distorted-menu-links .menu-item:nth-child(2) { transition-delay: var(--d, 0.18s); }
body.distorted-menu-active .distorted-menu-links .menu-item:nth-child(3) { transition-delay: var(--d, 0.26s); }
body.distorted-menu-active .distorted-menu-links .menu-item:nth-child(4) { transition-delay: var(--d, 0.34s); }
body.distorted-menu-active .distorted-menu-links .menu-item:nth-child(5) { transition-delay: var(--d, 0.42s); }

.distorted-menu-links .menu-item a {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 20px;
  text-decoration: none;
  width: 100%;
  transition: transform 0.3s ease;
}

.distorted-menu-links .menu-item a .menu-num {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.distorted-menu-links .menu-item a .menu-lbl {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.distorted-menu-links .menu-item a:hover .menu-num {
  color: var(--accent);
}

.distorted-menu-links .menu-item a:hover .menu-lbl {
  color: var(--accent);
  transform: translateX(-12px);
}

/* Footer Links */
.distorted-menu-footer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: 24px;
  margin-top: 16px;
}

.menu-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.menu-footer-item a {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.menu-footer-item a:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --hover-image-width: 210;
    --hover-image-height: 150;
  }

  .distorted-menu-sidebar {
    display: none;
  }

  .distorted-menu-main {
    padding: 40px 24px;
  }

  .distorted-menu-close-btn {
    top: 24px;
    right: 24px;
  }

  .distorted-menu-container {
    height: 95%;
  }

  .distorted-menu-search-row {
    padding: 16px 0 12px 0;
  }

  .distorted-menu-links .menu-item {
    padding: 10px 0;
  }

  .distorted-menu-links .menu-item a .menu-num {
    font-size: 14px;
    gap: 10px;
  }

  .distorted-menu-links .menu-item a .menu-lbl {
    font-size: clamp(28px, 8vw, 42px);
  }
  
  .distorted-menu-footer {
    padding-top: 16px;
    margin-top: 8px;
  }
}



/* ── SCROLL REVEAL ANIMATIONS ── */
.card-fade {
  opacity: 0 !important;
  transform: translateY(12px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.card-fade.in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.typing-cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 2px;
  animation: cursorBlink 0.8s infinite;
  color: var(--accent);
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


