:root {
  --ech-deep-blue: #0A2E46;
  --ech-mid-blue: #72BCD4;
  --ech-light-blue: #A3E0EF;
  --ech-gray: #6b7280;
  --ech-ink: #12202b;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ech-ink);
}

/* Full-screen section blocks, capped so they don't stretch into a
   near-empty wall of space on large/external monitors — content
   sizing was tuned for a "one screen" feel, not unbounded height.
   100dvh (where supported) also avoids the layout jump 100vh causes
   on mobile when the browser chrome shows/hides during scroll. */
.min-h-viewport {
  min-height: min(100vh, 960px);
  min-height: min(100dvh, 960px);
}

/* ============ Scroll progress bar ============ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ech-mid-blue), var(--ech-light-blue));
  z-index: 60;
  transition: width 0.1s linear;
}

/* ============ Growth-bars brand mark ============
   Echoes the ECH logo's offset ascending bars. Used as a small
   kinetic flourish next to section eyebrows. */
.growth-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-inline-end: 10px;
  vertical-align: middle;
}

.growth-mark span {
  display: block;
  width: 4px;
  background: var(--ech-mid-blue);
  border-radius: 1px;
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-mark span:nth-child(1) { height: 6px; }
.growth-mark span:nth-child(2) { height: 10px; background: var(--ech-light-blue); transition-delay: 0.08s; }
.growth-mark span:nth-child(3) { height: 14px; background: var(--ech-deep-blue); transition-delay: 0.16s; }

/* Hidden state only applies once JS has primed it (progressive
   enhancement: bars stay visible if JS fails or is slow) */
.growth-mark.reveal-init span {
  transform: scaleY(0);
}

.growth-mark.is-visible span {
  transform: scaleY(1);
}

.growth-mark.on-dark span:nth-child(3) {
  background: white;
}

/* ============ Ticker tape ============ */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[dir="rtl"] .ticker-track {
  animation: ticker-scroll-rtl 32s linear infinite;
}

@keyframes ticker-scroll-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.75rem;

  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.6;
}

/* ============ Partner logo marquee ============ */
.marquee-row {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.marquee-row::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  height: 104px;
  margin: 0 0.9rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid #eef1f4;
  border-radius: 1rem;
  filter: none;
  opacity: 1;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(10, 46, 70, 0.35);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============ Hero slider ============ */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Text swaps mid-fade on a single persistent block — avoids DOM-node
   churn/rAF races that can leave the label blank between swaps. */
.hero-copy {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-copy.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}

.slide-nav-btn {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.slide-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.06);
}

.slider-dot {
  position: relative;
  width: 36px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.slider-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--ech-light-blue);
  border-radius: inherit;
}

.slider-dot.is-active::after {
  animation: dot-fill 6s linear forwards;
}

@keyframes dot-fill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ============ Service cards with ghost index number ============ */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -22px rgba(10, 46, 70, 0.4);
  border-color: var(--ech-mid-blue);
}

.ghost-num {
  position: absolute;
  top: -0.35em;
  inset-inline-end: 0.1em;

  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ech-deep-blue);
  opacity: 0.05;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .ghost-num {
  opacity: 0.09;
  transform: scale(1.08);
}

/* ============ Team card ============ */
.team-card img {
  filter: grayscale(65%) contrast(1.02);
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ============ Nav link underline ============ */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--ech-mid-blue);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--ech-mid-blue);
}

.nav-link.is-active::after {
  width: 100%;
}

/* ============ Mobile nav ============ */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.is-open {
  max-height: 480px;
}

/* ============ Magnetic / kinetic buttons ============ */
.btn-magnetic {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-magnetic:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -14px rgba(10, 46, 70, 0.5);
}

/* ============ Decorative floating blobs ============ */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 20px) scale(1.06); }
}

.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.35;
  animation: float-slow 12s ease-in-out infinite;
  pointer-events: none;
}

/* ============ Page/hero header image overlay ============ */
.header-media {
  position: absolute;
  inset: 0;
}

.header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-media.is-loaded img {
  transform: scale(1);
}

.header-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,46,70,0.96) 20%, rgba(10,46,70,0.82) 55%, rgba(10,46,70,0.55) 100%);
}

/* ============ Floating stat badge over imagery ============ */
.stat-badge {
  box-shadow: 0 24px 48px -20px rgba(10, 46, 70, 0.45);
}

/* ============ Animated counters ============ */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ============ Editorial pull-quote ============ */
.pull-quote {
  position: relative;
  display: inline-block;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5em;
  left: 50%;
  transform: translateX(-50%);

  font-size: 5em;
  line-height: 1;
  color: var(--ech-mid-blue);
  opacity: 0.35;
}

/* ============ Reveal on scroll (progressive enhancement: hidden
   state is only applied by JS, so content stays visible if JS fails
   or is slow) ============ */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-init {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left.reveal-init {
  transform: translateX(-28px);
}

.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right.reveal-init {
  transform: translateX(28px);
}

.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-scale.reveal-init {
  transform: scale(0.94);
}

.reveal-scale.is-visible {
  transform: scale(1);
}

/* Stagger children within a .reveal-group (JS sets --stagger-i per child) */
.stagger-item {
  transition-delay: calc(var(--stagger-i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-init, .stagger-item, .header-media img, .growth-mark span {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .slider-dot.is-active::after {
    animation: none !important;
  }
  .hero-slide {
    transition: none !important;
  }
}
. h e r o - f u l l s c r e e n   {   m i n - h e i g h t :   1 0 0 v h ;   m i n - h e i g h t :   1 0 0 s v h ;   } 
 
 

/* Large Growth Mark for H1 Headings */
.growth-mark-lg {
  height: 48px;
  gap: 8px;
  margin-inline-end: 0;
}
.growth-mark-lg span {
  width: 12px;
  border-radius: 2px;
}
.growth-mark-lg span:nth-child(1) { height: 20px; }
.growth-mark-lg span:nth-child(2) { height: 34px; }
.growth-mark-lg span:nth-child(3) { height: 48px; }
