:root {
  --bg: #020617;
  --bg-alt: #0f172a;
  --surface: rgba(15, 23, 42, 0.56);
  --surface-strong: rgba(15, 23, 42, 0.76);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --muted: rgba(226, 232, 240, 0.72);
  --violet: #8b5cf6;
  --violet-strong: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --stage-glow: rgba(139, 92, 246, 0.45);
  --shadow: 0 40px 120px rgba(2, 6, 23, 0.6);
  --radius: 28px;
  --container-max: 1180px;
  /* Avoid 100vw here — it ignores scrollbar width and causes horizontal gaps on mobile */
  --page-gutter: clamp(18px, 5vw, 28px);
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Syne', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%,
      rgba(124, 58, 237, 0.28),
      transparent 38%),
    radial-gradient(circle at 80% 10%,
      rgba(34, 211, 238, 0.22),
      transparent 30%),
    linear-gradient(180deg, #020617 0%, #081122 55%, #020617 100%);
  overflow-x: hidden;
}

body[data-stage='1'] {
  --stage-glow: rgba(34, 211, 238, 0.4);
}

body[data-stage='2'] {
  --stage-glow: rgba(244, 114, 182, 0.36);
}

body[data-stage='3'] {
  --stage-glow: rgba(139, 92, 246, 0.52);
}

body.is-loading {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

#logo-loader {
  position: fixed;
  inset: 0;
  background: #020617;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  will-change: transform;
  overflow: hidden;
}

/* ── Multi-layer ambient glow ── */
.loader-bg-glow {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(124, 58, 237, 0.28) 0%,
      rgba(34, 211, 238, 0.14) 38%,
      transparent 68%);
  filter: blur(46px);
  opacity: 0.55;
  animation: loaderGlowPulse 6.5s ease-in-out infinite;
  pointer-events: none;
}

/* Secondary glow — cyan accent offset */
.loader-bg-glow::after {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%,
      rgba(34, 211, 238, 0.18),
      transparent 60%);
  opacity: 0.55;
  animation: loaderGlowPulse 7.5s ease-in-out infinite reverse;
}

@keyframes loaderGlowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

/* ── Decorative corner accents ── */
#logo-loader::before,
#logo-loader::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.08);
  pointer-events: none;
}

#logo-loader::before {
  top: -48px;
  left: -48px;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.08);
}

#logo-loader::after {
  bottom: -48px;
  right: -48px;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.07);
  border-color: rgba(34, 211, 238, 0.08);
}

/* ── Centered content stack ── */
.loader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ── Orbital ring around lottie ── */
.loader-orbit {
  position: absolute;
  width: clamp(180px, 23vw, 270px);
  height: clamp(180px, 23vw, 270px);
  border-radius: 50%;
  border: 0.8px solid transparent;
  background:
    linear-gradient(#020617, #020617) padding-box,
    conic-gradient(from 0deg,
      transparent 0%,
      rgba(139, 92, 246, 0.45) 25%,
      rgba(34, 211, 238, 0.45) 50%,
      transparent 75%) border-box;
  animation: loaderOrbit 2.8s linear infinite;
  pointer-events: none;
  /* center on the lottie icon — lottie is first in the flex stack */
  top: clamp(-14px, -1.6vw, -22px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* Small bright dot travelling around the orbit */
.loader-orbit::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.35);
}

/* Outer faint ring */
.loader-orbit::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.08);
  pointer-events: none;
}

@keyframes loaderOrbit {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

/* ── Lottie icon wrap — mask vignette ── */
.loader-lottie-wrap {
  width: clamp(150px, 18vw, 230px);
  height: clamp(150px, 18vw, 230px);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 48%, rgba(110, 62, 230, 0.28), rgba(3, 9, 28, 0.97) 64%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 0 28px rgba(124, 58, 237, 0.14), 0 16px 42px rgba(2, 6, 23, 0.5);
  margin-bottom: 2px;
  animation: loaderCoreBreath 7s ease-in-out infinite;
}

.loader-lottie-wrap>svg {
  width: 100% !important;
  height: 100% !important;
  transform: scale(0.72);
  transform-origin: center;
}

/* ── Brand name — gradient text ── */
.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  margin: 0;
  text-indent: 0.42em;
  background: linear-gradient(90deg, #f4f7ff 0%, #8ed8ea 60%, #9589d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Tagline ── */
.loader-sub {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.42);
  margin: 0;
  text-indent: 0.26em;
}

/* ── Progress sweep line — wider with dual-color shine ── */
.loader-line {
  display: none;
}

.loader-line span {
  display: none;
}

@keyframes loaderCoreBreath {

  0%,
  100% {
    filter: saturate(0.94) brightness(0.94);
  }

  50% {
    filter: saturate(1) brightness(1);
  }
}


/* Hide hero copy while preloader is active — body.is-loading set in HTML from first paint */
.is-loading .hero-copy {
  opacity: 0;
  visibility: hidden;
}

/* Fade in hero copy when is-loading is removed — CSS fallback for any JS timing issues */
.hero-copy {
  transition: opacity 0.8s ease 0.15s;
}

#preloader {
  position: fixed;
  inset: 0;
  /* Solid dark background — greeting shows on its own screen, not over the hero */
  background: radial-gradient(ellipse at 50% 40%, #0d1340 0%, #020617 65%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

/* COLUMN STRIPS — cover screen during preloader exit */
#preloader-tiles,
.preloader-tiles {
  position: fixed;
  /* must be fixed to cover everything */
  inset: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  z-index: 10001;
  /* above #preloader (9999) and #logo-loader (10000) */
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  /* hidden during greeting, shown at exit wipe */
}

.preloader-tile {
  flex: 1 0 0%;
  height: 100%;
  background: #020617;
  will-change: transform;
  transform-origin: center top;
  margin-left: -1px;
}

.preloader-tile:first-child {
  margin-left: 0;
}

/* INNER */
.loader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  position: relative;
  z-index: 9999;
}

/* TEXT */
#greeting {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: 2px;
  display: inline-block;
  font-family: var(--font-body);
  text-shadow: 0 22px 70px rgba(34, 211, 238, 0.18);
  margin: 0;
  line-height: 1;
}

/* LETTERS */
.letter {
  display: inline-block;
  opacity: 0;
  will-change: opacity, transform, filter;
}

/* ─── Enigma-style animation utilities ───────────────── */

/* Word split reveal wrappers */
.reveal-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.reveal-word-inner {
  display: inline-block;
  will-change: transform;
}

/* Horizontal line wipe in */
.line-wipe {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), transparent);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-wipe.is-visible {
  width: 100%;
}

/* Char-by-char scramble text */
[data-scramble] {
  will-change: auto;
}

/* Nav link — Enigma style: slide text upward on hover with clip-path */
.site-nav a {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

/* Tile variation: every nth tile gets a subtle hue shift */
.preloader-tile:nth-child(3n) {
  background:
    radial-gradient(ellipse at 60% 40%,
      rgba(139, 92, 246, 0.1),
      transparent 60%),
    linear-gradient(145deg, #020617 0%, #08111f 60%, #050713 100%);
}

.preloader-tile:nth-child(5n) {
  background:
    radial-gradient(ellipse at 30% 70%,
      rgba(244, 114, 182, 0.06),
      transparent 60%),
    linear-gradient(145deg, #020617 0%, #08111f 60%, #050713 100%);
}

/* ─── Hero section entrance \u2014 Enigma-style stagger ──────── */
.hero-copy [data-reveal] {
  transition: none;
}

/* Paragraph reveal \u2014 lines fade up one by one */
.para-reveal-line {
  display: block;
  overflow: hidden;
}

.para-reveal-inner {
  display: block;
  will-change: transform, opacity;
}

/* Section heading accent dash */
.section-intro::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  margin-bottom: 20px;
  border-radius: 2px;
  transform-origin: left center;
  animation: none;
}

/* Eyebrow \u2014 gradient text on scroll entry (applied via JS class) */
.eyebrow.is-active {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero h1 char span styling for scramble */
.scramble-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* Smooth hero metrics counter entrance */
.hero-metrics div {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-metrics div:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}

/* ─── Nav hover: slide-up text reveal (Enigma style) ──── */
.site-nav a .nav-text-inner {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover .nav-text-inner {
  transform: translateY(-110%);
}

.site-nav a .nav-text-clone {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover .nav-text-clone {
  transform: translateY(-110%);
}

/* Touch / coarse pointers: hide duplicate hover layer (avoids stacked “double” labels on tap) */
@media (hover: none),
(pointer: coarse) {
  .site-nav a .nav-text-clone {
    display: none !important;
  }

  .site-nav a .nav-text-inner {
    transform: none !important;
    transition: none;
  }
}


img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.container {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

main#top {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-intro h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.04em;
}



.section-intro h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.66);
}

.glass-panel {
  background: linear-gradient(180deg,
      rgba(17, 24, 39, 0.6),
      rgba(17, 24, 39, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 20;
}

.nav-shell {
  width: fit-content;
  min-width: 0;
  max-width: min(940px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(8, 15, 32, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 3px 0;
}

.brand img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 236px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.84);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  color: #f8f7ff;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(139, 92, 246, 0.7)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.4), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(124, 58, 237, 0.35);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.button::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.12),
      transparent 55%);
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 60px rgba(124, 58, 237, 0.48);
}

.button-small {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.9rem;
}

.button-secondary {
  background: rgba(10, 17, 34, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(2, 6, 23, 0.32);
}

.hero {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: 236px;
  padding-bottom: 120px;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #020617;
}



.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 32px;
  padding-left: 0;
  min-height: 60vh;
}

.hero-copy {
  max-width: min(100%, 640px);
  text-shadow: none;
  margin: auto 0;
}

.hero-copy h1 {
  display: block;

  font-size: clamp(3.8rem, 7vw, 5.8rem);

  max-width: 10ch;

  margin: 0 0 clamp(1.1rem, 2.1vw, 1.8rem);

  font-family: var(--font-display);

  font-weight: 700;

  line-height: 1.14;
  padding-bottom: 0.08em;
  overflow: visible;

  letter-spacing: -0.015em;

  text-wrap: balance;
}

.hero-copy h2,
.hero-copy .hero-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
}

/* Hero copy: subtle backdrop so video stays visible */
.hero-copy {
  position: relative;
  max-width: 520px;
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: -8px -8px -6px;
  background: radial-gradient(circle at 20% 30%, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.06) 58%, transparent 86%);
  border-radius: 20px;
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

.hero-text,
.contact-copy p,
.hero-metrics p,
.service-card p,
.testimonial-card p,
.faq-answer p,
.team-card p,
.hero-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 520px;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.98rem, 1.55vw, 1.08rem);
  color: rgba(248, 250, 252, 0.82);
  line-height: 1.7;
}

.hero-line-accent,
.hero-line-lottie,
.section-accent-line,
.hero-scanner-lottie,
.contact-hud,
.contact-scanner-lottie {
  display: none !important;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-actions .button {
  min-height: 56px;
  padding: 1rem 2rem;
  font-weight: 600;
}

.hero-actions .button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 22px 56px rgba(124, 58, 237, 0.34);
}

.hero-trust {
  margin-top: 16px;
}

.hero-trust p {
  margin: 0;
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.hero-metrics div {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-metrics span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: white;
  margin-bottom: 10px;
}

.hero-metrics p,
.panel-tag,
.path-steps span,
.salary-badge,
.form-note,
.footer-shell span {
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.hero-panel-visual {
  position: relative;
  display: grid;
  place-items: center;
  margin: -6px -6px 24px;
  min-height: 250px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%,
      rgba(34, 211, 238, 0.18),
      transparent 34%),
    radial-gradient(circle at 78% 22%,
      rgba(139, 92, 246, 0.18),
      transparent 30%),
    linear-gradient(180deg, rgba(5, 12, 31, 0.94), rgba(10, 18, 41, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size:
    auto,
    34px 34px,
    34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 88%);
  pointer-events: none;
}

.hero-ui-lottie {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 250px;
  max-height: 310px;
}

.panel-tag {
  margin-bottom: 18px;
  color: rgba(226, 232, 240, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.path-steps {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.path-steps span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.path-steps span::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
}



.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* True cover: avoids portrait phones showing body bg stripes at left/right edges */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.03) contrast(1.04);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 28, 0.82) 0%, rgba(7, 10, 28, 0.45) 45%, rgba(7, 10, 28, 0.08) 100%),
    linear-gradient(180deg, rgba(9, 20, 46, 0.18) 0%, rgba(11, 20, 48, 0.08) 40%, rgba(5, 12, 30, 0.34) 100%),
    radial-gradient(circle at 78% 22%, rgba(118, 86, 215, 0.12), transparent 46%);
  pointer-events: none;
}

.hero-ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.52;
  pointer-events: none;
}

.hero-ambient-c {
  width: min(24vw, 240px);
  height: min(24vw, 240px);
  right: 12%;
  top: 16%;
  opacity: 0.34;
  filter: blur(34px);
  background: radial-gradient(circle, rgba(108, 78, 214, 0.46), rgba(39, 118, 176, 0.12) 58%, transparent 80%);
  animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {

  0%,
  100% {
    opacity: 0.26;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.38;
    transform: scale(1.04);
  }
}

.sky-glow,
.orb,
.ring,
.mountain,
.fog,
.grid-haze {
  position: absolute;
  will-change: transform, opacity;
}

.sky-glow-a {
  inset: -20% auto auto -8%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle,
      rgba(139, 92, 246, 0.34),
      transparent 68%);
  filter: blur(24px);
}

.sky-glow-b {
  inset: 14% -10% auto auto;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle,
      rgba(34, 211, 238, 0.18),
      transparent 68%);
  filter: blur(22px);
}

.orb {
  border-radius: 50%;
  mix-blend-mode: screen;
}

.orb-a {
  top: 16%;
  right: 17%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.95),
      rgba(124, 58, 237, 0.36) 38%,
      transparent 72%);
  filter: blur(2px);
}

.orb-b {
  top: 27%;
  left: 10%;
  width: 88px;
  height: 88px;
  background: radial-gradient(circle at 30% 30%,
      rgba(34, 211, 238, 0.8),
      rgba(34, 211, 238, 0.08) 52%,
      transparent 72%);
}

.orb-c {
  top: 8%;
  left: 52%;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, rgba(244, 114, 182, 1), transparent 72%);
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.9);
}

.ring-a {
  top: 9%;
  right: 22%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  filter: blur(0.2px);
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 10% 100%, 0 48%);
  opacity: 0.54;
}

.mountain {
  left: 0;
  width: 100%;
  transform-origin: center bottom;
}

.mountain-back {
  bottom: 18%;
  height: 38vh;
  background: linear-gradient(180deg,
      rgba(25, 12, 68, 0.82),
      rgba(6, 7, 22, 0.98));
  clip-path: polygon(0 78%,
      13% 62%,
      24% 70%,
      34% 44%,
      44% 73%,
      59% 35%,
      70% 72%,
      84% 21%,
      100% 71%,
      100% 100%,
      0 100%);
}

.mountain-mid {
  bottom: 6%;
  height: 42vh;
  background: linear-gradient(180deg,
      rgba(66, 34, 141, 0.9),
      rgba(20, 11, 54, 1));
  clip-path: polygon(0 66%,
      11% 82%,
      26% 48%,
      41% 82%,
      56% 34%,
      68% 78%,
      87% 22%,
      100% 66%,
      100% 100%,
      0 100%);
  filter: drop-shadow(0 -24px 40px rgba(124, 58, 237, 0.28));
}

.mountain-front {
  bottom: -10%;
  height: 42vh;
  background: linear-gradient(180deg,
      rgba(186, 142, 255, 0.82),
      rgba(133, 88, 233, 0.9));
  clip-path: polygon(0 45%,
      10% 34%,
      21% 46%,
      33% 26%,
      48% 39%,
      61% 18%,
      74% 39%,
      87% 22%,
      100% 44%,
      100% 100%,
      0 100%);
  filter: blur(2px);
}

.fog {
  left: -10%;
  width: 120%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(212, 169, 255, 0.24),
      transparent 68%);
}

.fog-a {
  bottom: 2%;
  height: 22vh;
  filter: blur(24px);
}

.fog-b {
  bottom: -8%;
  height: 34vh;
  opacity: 0.62;
  filter: blur(34px);
}

.grid-haze {
  inset: auto 0 0;
  height: 34vh;
  background:
    linear-gradient(180deg, transparent, rgba(156, 86, 255, 0.14)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size:
    auto,
    80px 80px,
    80px 80px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
  opacity: 0.5;
}

.scene-lottie {
  position: absolute;
  pointer-events: none;
}

.hero-floating-lines {
  top: 10%;
  left: -4%;
  width: min(68vw, 920px);
  height: min(42vh, 380px);
  opacity: 0.16;
  mix-blend-mode: screen;
  filter: saturate(0.85) blur(0.2px);
}

.hero-scanner-lottie {
  top: 17%;
  left: 2%;
  width: min(30vw, 380px);
  height: min(21vw, 240px);
  opacity: 0.5;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.26));
}

.scroll-indicator {
  display: none;
}

@keyframes scrollPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 52px);
  }
}

/* ─────────────────────────────────────────────
   CAREER JOURNEY (Home)
───────────────────────────────────────────── */
.journey {
  padding-top: 140px;
}

.journey-track {
  min-height: 280vh;
}

.journey-pin {
  position: relative;
  width: min(var(--container-max), calc(100% - 2 * var(--page-gutter)));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 42px;
  border-radius: 36px;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  overflow: visible;
}

.journey-pin::before,
.journey-pin::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: var(--stage-glow);
  filter: blur(60px);
  transition: background 0.4s ease;
}

.journey-pin::before {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
}

.journey-pin::after {
  width: 240px;
  height: 240px;
  bottom: -40px;
  left: -80px;
}

.journey-sidebar,
.journey-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.journey-label {
  margin: 0 0 20px;
  color: rgba(226, 232, 240, 0.74);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journey-stages {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 18px;
}

.journey-stages::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.35));
  border-radius: 999px;
}

.journey-stages::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 8px;
  width: 6px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 1), rgba(34, 211, 238, 0.88));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.7);
  /* No CSS transition — scroll-linked transform fights easing and causes jitter */
  transform: translate3d(0, var(--journey-progress-y, 0px), 0);
  will-change: transform;
  contain: layout paint;
}

.stage-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.stage-card.active {
  transform: translateX(10px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.62);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.08));
  box-shadow: 0 18px 40px rgba(8, 15, 32, 0.32), 0 0 0 1px rgba(168, 85, 247, 0.34);
}

.stage-card span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(226, 232, 240, 0.56);
}

/* Journey center column intentionally removed (clean 2-col layout) */
.journey-glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 68%);
  filter: blur(24px);
}

.journey-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 20px;
}

.journey-narrative h3 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-top: 8px;
}

.journey-kicker {
  font-size: 1.25rem;
  color: white;
}

.journey-visual-panel {
  width: min(100%, 640px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(10, 18, 41, 0.88), rgba(8, 15, 32, 0.82));
  padding: 20px;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.52);
}

.journey-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.journey-panel-head strong {
  font-size: 1.04rem;
  letter-spacing: 0.02em;
}

.journey-panel-head span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.66);
}

.journey-track-line {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.journey-track-line i {
  display: block;
  width: var(--journey-panel-fill, 25%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.95), rgba(34, 211, 238, 0.86));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.58);
  /* Width driven every scroll tick — transition caused lag behind fast scrub */
  transition: none;
  will-change: width;
}

.journey-panel-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.journey-panel-stats article {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  padding: 12px;
}

.journey-panel-stats small {
  display: block;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-panel-stats p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.journey-panel-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journey-panel-tags span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 999px;
  padding: 7px 11px;
}

/* Stage-specific glow colors */
body[data-stage='0'] .journey-glow {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 68%);
}

body[data-stage='1'] .journey-glow {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 68%);
}

body[data-stage='2'] .journey-glow {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.26), transparent 68%);
}

body[data-stage='3'] .journey-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 68%);
}

/* lottie-shell removed from journey */

.section-accent-line {
  position: relative;
  width: min(100%, 420px);
  height: 86px;
  margin-top: 18px;
  opacity: 0.96;
}

.stage-card h3,
.service-card h3,
.testimonial-card h3,
.team-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.testimonial-card h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
}

.stage-card p,
.testimonial-card small,
.team-card p {
  margin: 10px 0 0;
}

.lottie-player {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lottie-player {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
}

/* progress-orbit / progress-pulse / progress-core fully removed */

.services {
  padding-top: 80px;
}

.services .container {
  position: relative;
}

.services .section-intro {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.services-visual {
  position: absolute;
  top: -12px;
  right: -24px;
  width: min(34vw, 410px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
  filter: drop-shadow(0 30px 65px rgba(2, 6, 23, 0.42));
}

.job-match-lottie {
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* ── Services loading skeleton ───────────────────────────────────── */
@keyframes shimmerSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

body.services-loading .services [data-reveal] {
  opacity: 1;
  /* keep layout stable */
  transform: none;
  /* avoid reveal transforms fighting skeleton */
}

body.services-loading .services-visual {
  opacity: 0.75;
}

body.services-loading .job-match-lottie {
  position: relative;
}

body.services-loading .job-match-lottie::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(34, 211, 238, 0.55);
  animation: spinLoader 0.9s linear infinite;
  filter: drop-shadow(0 10px 30px rgba(2, 6, 23, 0.35));
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

body.services-loading .service-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

body.services-loading .service-card>* {
  opacity: 0;
}

body.services-loading .service-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03));
}

body.services-loading .service-card::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.12) 45%,
      transparent 80%);
  animation: shimmerSweep 1.2s ease-in-out infinite;
  opacity: 0.9;
}

body.services-loaded .service-card>* {
  opacity: 1;
  transition: opacity 420ms ease;
}

.service-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-grid {
  position: relative;
  z-index: 1;
}

.service-card,
.team-card,
.testimonial-card {
  padding: 28px;
  border-radius: 28px;
}

.service-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.1),
      transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon,
.social-link,
.team-link,
.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 24px;
  background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.22),
      rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-icon svg,
.floating-whatsapp svg,
.social-link svg,
.team-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover {
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.2),
    0 24px 60px rgba(34, 211, 238, 0.12),
    var(--shadow);
}

.carousel-shell {
  padding: 30px;
  border-radius: 32px;
  overflow: hidden;
}

.proof-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.proof-intro {
  max-width: none;
  margin-bottom: 0;
}

.proof-intro h2 {
  max-width: 14ch;
  line-height: 1.04;
}

.proof-lottie-container {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
}

.proof-signal::before {
  content: '';
  position: absolute;
  inset: 12% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
  filter: blur(20px);
  animation: none;
}

.proof-signal-copy {
  display: none;
}

.proof-signal-orbit {
  display: none;
}

.proof-signal-orbit::before,
.proof-signal-orbit::after {
  display: none;
}

.proof-signal-orbit-a {
  display: none;
}

.proof-signal-orbit-b {
  display: none;
}

.proof-signal-core {
  display: none;
}

.proof-signal-core i {
  display: none;
}

.proof-signal-bars {
  display: none;
}

.proof-signal-bars span {
  display: none;
}

/* Career Ascent Animation: Radiating Opportunities */
/* Keyframes preserved but no longer used - can be removed in future cleanup */

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.carousel-header p,
.footer-shell p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button,
.social-link,
.team-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.carousel-button:hover,
.social-link:hover,
.team-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.08);
}

.carousel-window {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 18px;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 min(360px, calc(100vw - 72px));
  min-height: 380px;
  background:
    radial-gradient(circle at 90% 10%,
      rgba(34, 211, 238, 0.12),
      transparent 26%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.testimonial-avatar {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.testimonial-avatar--focus-top {
  object-position: center 36%;
}

.testimonial-avatar--focus-right {
  /* More face-focused with top breathing room */
  object-position: 58% 20%;
}

@media (max-width: 768px) {
  .brand img {
    height: 30px;
  }
}

.testimonial-content {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .testimonial-content {
    padding: 20px 18px;
  }
}

.salary-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: rgba(248, 250, 252, 0.84);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.testimonial-card small {
  display: block;
  color: rgba(226, 232, 240, 0.66);
  margin: 0;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
}

.team-avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.15),
    inset 0 0 30px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Ensure team and testimonial images are fully visible and responsive */
.team-avatar,
.testimonial-card {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* On larger viewports make space less aggressive and keep images visible */
@media (min-width: 1000px) {
  .section {
    padding: 100px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .service-grid,
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-card {
    min-height: 380px;
  }
}

@media (min-width: 1400px) {

  .service-grid,
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .container {
    width: min(1320px, 100%);
    padding-left: max(clamp(22px, 4vw, 40px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(22px, 4vw, 40px), env(safe-area-inset-right, 0px));
  }
}

/* Ensure main content isn't hidden under fixed header on larger screens */
@media (min-width: 900px) {
  main {
    padding-top: 100px;
  }

  .site-header+main>.hero:first-child {
    padding-top: 260px;
    margin-top: -100px;
  }
}

.avatar-initials {
  position: absolute;
  opacity: 1;
  transition: opacity 0.22s ease;
  font-weight: 700;
  font-size: 1.8rem;
}

/* When avatar has a valid image, hide the initials */
.team-avatar.has-img .avatar-initials {
  opacity: 0;
}

.team-info {
  flex: 1;
  width: 100%;
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

.team-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.avatar-a {
  background: radial-gradient(circle at 30% 30%,
      rgba(34, 211, 238, 0.5),
      rgba(124, 58, 237, 0.9));
}

.avatar-b {
  background: radial-gradient(circle at 30% 30%,
      rgba(244, 114, 182, 0.5),
      rgba(59, 130, 246, 0.9));
}

.avatar-c {
  background: radial-gradient(circle at 30% 30%,
      rgba(139, 92, 246, 0.5),
      rgba(34, 211, 238, 0.85));
}

.team-link {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85) translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.3s ease,
    border-color 0.3s ease;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.team-link svg {
  width: 20px;
  height: 20px;
  fill: var(--cyan);
}

.team-card:hover .team-link {
  opacity: 1;
  transform: scale(1) translateY(0);
  background: rgba(34, 211, 238, 0.25);
  border-color: rgba(34, 211, 238, 0.5);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.faq-question span {
  font-size: 1.08rem;
}

.faq-question i {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-question i::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid rgba(255, 255, 255, 0.88);
  transform: translate(-50%, -62%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-item.active .faq-question i::before {
  transform: translate(-50%, -35%) rotate(225deg);
  border-color: var(--cyan);
}

.faq-answer {
  height: 0;
  overflow: hidden;
}

.faq-answer p {
  margin: 0 0 24px;
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
  gap: 34px;
  padding: 42px;
  border-radius: 34px;
  overflow: visible;
}

.contact-hud {
  position: absolute;
  top: 58px;
  right: 18px;
  width: min(30vw, 320px);
  height: 210px;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 34px rgba(34, 211, 238, 0.18));
}

.contact-scanner-lottie {
  width: 100%;
  height: 100%;
}

.contact-copy h2 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  max-width: 10ch;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
}

.field-code select {
  text-align: left;
}

.form-success {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid transparent;
  background: rgba(34, 211, 238, 0.02);
  opacity: 0;
  transform: translateY(10px);
  transition:
    max-height 0.45s ease,
    padding 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.form-success p {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
}

.form-success.is-visible {
  padding: 14px 16px;
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(34, 211, 238, 0.16);
  background: linear-gradient(135deg,
      rgba(34, 211, 238, 0.1),
      rgba(139, 92, 246, 0.08));
}

.form-rocket-lottie {
  width: 64px;
  height: 64px;
}

.field {
  position: relative;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 24px 18px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #eef2ff;
  box-shadow: 0 0 0px 1000px rgba(10, 16, 34, 0.96) inset;
  transition: background-color 9999s ease-out 0s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.field label {
  position: absolute;
  left: 18px;
  top: 18px;
  color: rgba(226, 232, 240, 0.62);
  pointer-events: none;
  transition:
    transform 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease,
    left 0.2s ease;
}

.field label .field-optional {
  font-weight: 400;
  color: rgba(226, 232, 240, 0.42);
  letter-spacing: 0.02em;
}

/* Invalid field state applied by JS */
.field.field-error input,
.field.field-error textarea,
.field.field-error select {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.06);
}

.field.field-error label {
  color: #ffb3b3;
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label,
.field.has-value label {
  transform: translateY(-10px);
  font-size: 0.78rem;
  color: rgba(34, 211, 238, 0.88);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(226, 232, 240, 0.8) 50%),
    linear-gradient(135deg, rgba(226, 232, 240, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 28px,
    calc(100% - 12px) 28px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

/* Custom searchable country-code dropdown */
.field-code {
  position: relative;
}

.country-code-selected-flag {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 22px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.24);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.country-code-selected-flag::before {
  content: attr(data-iso);
  position: absolute;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(226, 232, 240, 0.72);
}

.country-code-selected-flag img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.country-code-selected-flag img[hidden],
.country-code-item-flag img[hidden] {
  display: none;
}

.field-code input {
  padding-left: 18px;
}

.field-code.has-country-flag .country-code-selected-flag {
  display: flex;
}

.field-code.has-country-flag input {
  padding-left: 58px;
}

.field-code.has-country-flag label {
  left: 58px;
}

.country-code-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: min(320px, calc(100vw - 40px));
  min-width: 100%;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 2000;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(8, 14, 30, 0.98);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.7);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.5) rgba(255, 255, 255, 0.06);
}

.country-code-menu::-webkit-scrollbar {
  width: 6px;
}

.country-code-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.country-code-menu::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5);
  border-radius: 999px;
}

.country-code-menu[hidden] {
  display: none;
}

.country-code-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  padding: 12px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.country-code-item:hover,
.country-code-item.is-active {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}

.country-code-item-flag {
  position: relative;
  width: 34px;
  min-width: 34px;
  height: 24px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-code-item-flag::before {
  content: attr(data-iso);
  position: absolute;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(226, 232, 240, 0.7);
}

.country-code-item-flag img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.country-code-item-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  line-height: 1.35;
  font-weight: 500;
  color: inherit;
}

.form-note {
  color: rgba(226, 232, 240, 0.62);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 22px 50px rgba(18, 140, 126, 0.28);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 0 24px rgba(124, 58, 237, 0.22),
    inset 0 0 16px rgba(34, 211, 238, 0.1);
}

body.cursor-active .cursor {
  opacity: 1;
}

body.cursor-expanded .cursor-ring {
  transform: scale(1.9);
  border-color: rgba(34, 211, 238, 0.4);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

svg defs {
  position: absolute;
}

:is(.hero-ui-lottie,
  .hero-scanner-lottie,
  .proof-motion-lottie,
  .job-match-lottie,
  .form-rocket-lottie)>svg {
  width: 100% !important;
  height: 100% !important;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 28px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 21;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: rgba(226, 232, 240, 0.84);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 1100px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(8, 15, 32, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 19;
    padding: 0;
    margin: 0;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.65);
  }

  .site-nav.is-open {
    max-height: 400px;
    opacity: 1;
    padding: 16px 14px;
  }

  .site-nav a {
    padding: 12px 18px;
    border-radius: 14px;
    transition: background 0.25s ease;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .preloader-word {
    font-size: 6rem;
  }

  .hero-layout,
  .journey-pin,
  .contact-shell,
  .faq-grid,
  .service-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .proof-header-row {
    grid-template-columns: 1fr;
  }

  .proof-lottie-container {
    justify-self: start;
  }

  .hero-panel {
    max-width: 620px;
  }

  .proof-motion-panel {
    max-width: 340px;
  }

  .journey-copy {
    max-width: 620px;
  }

  .journey-panel-stats {
    grid-template-columns: 1fr;
  }

  .hero-scanner-lottie {
    display: none;
  }

  .hero-floating-lines {
    width: min(88vw, 760px);
    left: -8%;
    opacity: 0.12;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .journey-track {
    min-height: auto;
  }

  .journey-pin {
    width: min(var(--container-max), calc(100% - 2 * var(--page-gutter)));
    min-height: auto;
  }

  /* Keep the Services right-side animation visible and in-flow on tablets */
  .services-visual {
    position: relative;
    top: auto;
    right: auto;
    width: min(86vw, 380px);
    margin: 0 auto 26px;
    z-index: 0;
    opacity: 0.85;
    filter: drop-shadow(0 20px 50px rgba(2, 6, 23, 0.35));
  }
}

@media (max-width: 768px) {
  .preloader-copy {
    width: min(94vw, 520px);
  }

  .preloader-word {
    font-size: 4.2rem;
  }

  .section {
    padding: 88px 0;
  }

  .site-header {
    top: 10px;
  }

  .nav-shell {
    width: calc(100% - 28px);
    max-width: none;
    margin-inline: 14px;
    padding: 12px 14px;
  }

  .brand img {
    width: 154px;
    height: auto;
  }

  .nav-cta {
    display: none;
  }

  .hero.section {
    padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 80px));
    padding-bottom: max(112px, calc(env(safe-area-inset-bottom, 0px) + 88px));
  }

  /* Slightly smaller animation for phones */
  .services-visual {
    width: min(92vw, 300px);
    margin-bottom: 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 8.4vw, 3.35rem);
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
    text-align: left;
    text-wrap: wrap;
  }

  .hero-layout {
    padding-left: 0;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions .button {
    width: min(100%, 320px);
  }

  .proof-header-row {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 20px;
  }

  .proof-intro h2 {
    max-width: 100%;
  }

  .proof-lottie-container {
    width: min(100%, 240px);
  }

  .proof-signal {
    justify-self: start;
    width: min(100%, 260px);
    aspect-ratio: 1 / 0.92;
  }

  .proof-signal-core {
    width: 96px;
    height: 96px;
  }

  .proof-signal-bars {
    width: min(82%, 180px);
    bottom: 10px;
  }

  .proof-signal-bars span {
    min-width: 8px;
  }

  .hero-video {
    object-position: center 30%;
    transform: translate(-50%, -50%) scale(1.05);
  }

  .hero-panel-visual,
  .hero-ui-lottie {
    min-height: 210px;
  }

  .hero-line-accent {
    width: min(100%, 220px);
    height: 60px;
  }

  .scroll-indicator {
    bottom: 18px;
  }

  .section-accent-line {
    height: 62px;
  }

  /* ── Carousel shell: tighter padding on mobile so cards have room ──
     Shell had 24px padding → 48px total consumed, leaving the card
     wider than the carousel-window, clipping the right border. */
  .journey-pin,
  .contact-shell {
    padding: 24px;
  }

  .carousel-shell {
    padding: 16px 16px 20px;
  }

  /* progress-orbit removed */

  /* ── Testimonial card: correct width to fit inside the carousel window ──
     Available width = 100vw
       - container margin (40px)
       - container padding-inline x2 (32px)
       - carousel-shell padding x2 (32px, reduced above)
       = 100vw - 104px
     Using min() so it never exceeds 300px on larger phones. */
  .testimonial-card {
    flex-basis: min(300px, calc(100vw - 104px));
    min-height: 0;
  }

  .testimonial-avatar {
    aspect-ratio: 5 / 4;
    height: auto;
    object-position: center 40%;
  }

  .testimonial-avatar--focus-top {
    object-position: center 38%;
  }

  .testimonial-avatar--focus-right {
    object-position: 56% 40%;
  }

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

  .form-rocket-lottie {
    width: 56px;
    height: 56px;
  }

  .contact-hud {
    display: none;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-preview {
    padding: 56px 0 28px;
  }

  .blog-grid {
    gap: 18px;
    padding-bottom: 0;
  }

  .blog-preview+.contact {
    padding-top: 44px;
  }

  .blog-card-body {
    padding: 22px;
  }

  .blog-hero h1,
  .blog-card-body h2,
  .section-intro h2,
  .contact-copy h2 {
    display: block;
    text-align: left;
    text-wrap: wrap;
  }

  .lens-typography {
    display: block;
    text-align: left;
  }

  .lens-space {
    width: 0.28em;
  }

  .lens-typography .lt-char {
    margin-inline: 0;
    transform: none !important;
  }

  .blog-hero h1 {
    max-width: 100%;
    line-height: 1.08;
  }
}

/* Mobile background — same dark navy palette as desktop, no purple shift */
@media (max-width: 768px) {
  .preloader-word {
    font-size: 2.05rem;
  }
}

/* Ultra-wide polish: avoid oversized vertical breathing on 1440px+ */
@media (min-width: 1440px) {
  .section {
    padding: 92px 0;
  }

  .hero {
    padding-top: 210px;
    padding-bottom: 92px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(4.2rem, 5.2vw, 6.1rem);
  }

  .hero-text {
    max-width: 560px;
  }

  .journey-track {
    min-height: 250vh;
  }

  .journey-pin {
    min-height: calc(100vh - 140px);
  }

  .proof-header-row {
    gap: 32px;
  }

  .proof-intro h2 {
    max-width: 12ch;
  }
}

/* Small-phone polish: tighten spacing and prevent crowding */
@media (max-width: 375px) {
  .container {
    width: min(var(--container-max), 100%);
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .section {
    padding: 64px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10.4vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }

  .hero-text {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    min-height: 50px;
    padding: 0.78rem 1.2rem;
    width: 100%;
  }

  .site-header {
    top: 8px;
  }

  .nav-shell {
    width: calc(100% - 20px);
    margin-inline: 10px;
    padding: 10px 12px;
  }

  .section {
    padding: 64px 0;
  }

  .journey-pin,
  .contact-shell,
  .carousel-shell {
    padding: 18px;
    border-radius: 22px;
  }

  .stage-card {
    padding: 14px 14px;
    border-radius: 16px;
  }

  .stage-card p {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .proof-intro h2 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
    line-height: 1.08;
  }

  .proof-lottie-container {
    width: min(100%, 210px);
  }

  .carousel-header p {
    font-size: 0.92rem;
  }

  .testimonial-card {
    flex-basis: calc(100vw - 78px);
  }
}

@media (hover: none),
(pointer: coarse) {

  /* Only hide the mouse cursor — WhatsApp stays visible on mobile */
  .cursor {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   SCROLL PROGRESS BAR
───────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee, #f472b6);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 10001;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
  will-change: transform;
  contain: paint;
}

body.is-loading #scroll-progress {
  opacity: 0;
}

/* ─────────────────────────────────────────────
   NAVBAR — scroll-active glassmorphism boost
───────────────────────────────────────────── */
.site-header.scrolled .nav-shell {
  background: rgba(4, 9, 22, 0.58);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* ─────────────────────────────────────────────
   LOADER — improved exit clip-path wipe
───────────────────────────────────────────── */
#logo-loader.is-wiping {
  clip-path: inset(0 0 100% 0) !important;
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ─────────────────────────────────────────────
   HERO H1 — word-split reveal states
───────────────────────────────────────────── */
/* Hero h1 uses the shared .reveal-word-wrap / .reveal-word-inner curtain system
   defined in the WORD CURTAIN REVEAL section below */

/* ─────────────────────────────────────────────
   HERO METRICS — animated counters shimmer
───────────────────────────────────────────── */
.hero-metrics div {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-metrics div:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}

/* ─────────────────────────────────────────────
   COMPANY MARQUEE
───────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee-eyebrow {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

@-webkit-keyframes marquee-scroll {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-inner {
  display: flex;
  width: max-content;
  gap: 0;
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-animation: marquee-scroll 40s linear infinite;
  animation: marquee-scroll 40s linear infinite;
  -webkit-animation-play-state: running;
  animation-play-state: running;
}

.marquee-inner.marquee-inner--reduced {
  -webkit-animation: none !important;
  animation: none !important;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 16px;
  column-gap: clamp(20px, 5vw, 36px);
  padding: 0 max(var(--page-gutter), env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.marquee-inner.marquee-inner--reduced .marquee-track+.marquee-track {
  display: none;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner {
    -webkit-animation: none !important;
    animation: none !important;
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
    column-gap: clamp(20px, 5vw, 36px);
    padding: 0 max(var(--page-gutter), env(safe-area-inset-left, 0px));
    box-sizing: border-box;
  }

  .marquee-inner .marquee-track+.marquee-track {
    display: none;
  }
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 44px);
  padding-right: clamp(28px, 5vw, 44px);
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  margin: -10px -8px;
  min-height: 36px;
  color: rgba(226, 232, 240, 0.25);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.28s ease,
    transform 0.28s ease,
    text-shadow 0.28s ease,
    opacity 0.28s ease;
  white-space: nowrap;
  cursor: default;
  border-radius: 6px;
}

.marquee-item:hover {
  color: rgba(248, 250, 252, 0.92);
  transform: scale(1.08);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.22);
  opacity: 1;
}

.marquee-item img.marquee-logo-img {
  display: block;
  height: auto;
  width: auto;
  max-height: 28px;
  max-width: 132px;
  object-fit: contain;
  object-position: center;
  opacity: 0.88;
  flex-shrink: 0;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    filter 0.28s ease;
  /* Lifts low-contrast brand grays (e.g. Microsoft wordmark) on dark backgrounds */
  filter: brightness(1.08);
}

.marquee-item img.marquee-logo-img--muted-light {
  filter: brightness(1.35) contrast(1.05);
}

/* Icon + HTML text — avoids SVG-<text> / nested-<image> bugs when used as <img> */
.marquee-item.marquee-item--brandlockup {
  flex-direction: row;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  color: inherit;
}

/* Match visual mass of .marquee-logo-img { max-height: 28px } wordmarks */
.marquee-brand-icon {
  display: block;
  height: 28px;
  width: auto;
  max-height: 28px;
  max-width: 52px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  opacity: 1;
}

.marquee-brand-icon--tesla {
  max-width: 36px;
}

.marquee-brand-icon--snowflake {
  max-width: 42px;
}

.marquee-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.72rem, 2.6vw, 0.88rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.marquee-brand-text--nvidia {
  color: #76b900;
}

.marquee-brand-text--tesla {
  color: #e82127;
  letter-spacing: 0.18em;
}

.marquee-brand-text--snowflake {
  color: #29b5e8;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  /* Lowercase reads smaller — bump slightly vs all-caps neighbors */
  font-size: clamp(0.78rem, 2.9vw, 0.95rem);
}

.marquee-item:hover img.marquee-logo-img {
  opacity: 1;
  transform: scale(1.06);
  filter: brightness(1.12) drop-shadow(0 0 12px rgba(34, 211, 238, 0.2));
}

.marquee-item:hover img.marquee-logo-img--muted-light {
  filter: brightness(1.45) contrast(1.05) drop-shadow(0 0 12px rgba(34, 211, 238, 0.2));
}

/* ─────────────────────────────────────────────
   BACK TO TOP BUTTON
───────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(34, 211, 238, 0.8));
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 29;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
  will-change: opacity, transform;
}

#back-to-top:hover {
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.3);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
  color: white;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─────────────────────────────────────────────
   STAGE CARD — click ripple
───────────────────────────────────────────── */
.stage-card {
  cursor: pointer;
  overflow: hidden;
}

.stage-card:hover {
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

/* ─────────────────────────────────────────────
   TEAM CARD — hover lift
───────────────────────────────────────────── */
.team-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(2, 6, 23, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.18);
}

/* ─────────────────────────────────────────────
   SALARY BADGE — pulse glow
───────────────────────────────────────────── */
.salary-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
  }
}

/* ─────────────────────────────────────────────
   BUTTON — shimmer sweep on hover
───────────────────────────────────────────── */
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 1;
}

.button:hover::before {
  animation: btnShimmer 0.6s ease forwards;
}

@keyframes btnShimmer {
  to {
    transform: translateX(220%);
  }
}

/* ─────────────────────────────────────────────
   FORM FIELD — enhanced focus ring
───────────────────────────────────────────── */
.field input:focus,
.field textarea:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 0 20px rgba(34, 211, 238, 0.08);
}

/* ─────────────────────────────────────────────
   MOBILE: hide back-to-top at small viewports
───────────────────────────────────────────── */
@media (max-width: 768px) {
  #back-to-top {
    right: 16px;
    bottom: 90px;
    width: 42px;
    height: 42px;
  }
}

/* ─────────────────────────────────────────────
   HERO PARTICLES CANVAS
───────────────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

/* ─────────────────────────────────────────────
   CURSOR SPOTLIGHT (hero section)
───────────────────────────────────────────── */
.hero {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--spotlight-x) var(--spotlight-y),
      rgba(124, 58, 237, 0.09),
      transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero.has-spotlight::before {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   GRADIENT BORDER TRACE — Service Cards
───────────────────────────────────────────── */
.service-card {
  --gx: 50%;
  --gy: 50%;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  background: radial-gradient(180px circle at var(--gx) var(--gy),
      rgba(139, 92, 246, 0.7),
      rgba(34, 211, 238, 0.4) 50%,
      transparent 80%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   WORD CURTAIN REVEAL
   Wraps split by JS: .reveal-word-wrap > .reveal-word-inner
───────────────────────────────────────────── */
.reveal-word-wrap {
  display: inline-block;
  overflow: hidden;
  /* Align to text baseline so words sit naturally */
  vertical-align: bottom;
  /* Tiny extra space so descenders don't clip */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  line-height: inherit;
}

.reveal-word-inner {
  display: inline-block;
  will-change: transform;
  line-height: inherit;
}

/* ─────────────────────────────────────────────
   BLOG PAGE
───────────────────────────────────────────── */
.blog-hero {
  padding-top: 160px;
  padding-bottom: 60px;
  text-align: left;
  position: relative;
}

.blog-hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);

  font-family: var(--font-display);

  font-weight: 700;

  letter-spacing: -0.018em;

  line-height: 1.08;

  margin: 12px 0 22px;

  display: block;

  width: 100%;

  max-width: 100%;

  text-align: left;
}

.blog-hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Post meta bar (author / date / tag) */
.blog-post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.55);
  letter-spacing: 0.04em;
}

.bpmb-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 600;
}

.bpmb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.bpmb-sep {
  opacity: 0.35;
}

/* ── Blog content: 2-column layout ── */
.blog-content-section {
  padding-top: 0;
  padding-bottom: 80px;
}

.blog-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* ── Article ── */
.blog-article {
  min-width: 0;
}

.blog-article-hero-img {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 6, 23, 0.75);
  aspect-ratio: 16 / 9;
}

.blog-article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.blog-hero h1.is-typing::after {
  content: '|';
  margin-left: 6px;
  color: rgba(226, 232, 240, 0.85);
  animation: blogCaretBlink 0.85s step-end infinite;
}

@keyframes blogCaretBlink {
  50% {
    opacity: 0;
  }
}

.blog-article-body {
  font-size: 1.02rem;
  line-height: 1.82;
  color: rgba(226, 232, 240, 0.82);
}

.blog-article-body p {
  margin: 0 0 1.4em;
}

.blog-article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem) !important;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: white;
  margin: 2em 0 0.75em;
  word-break: break-word;
}

.blog-article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: white;
  margin: 1.6em 0 0.6em;
}

.blog-article-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 48px 0;
}

/* ── Comments ── */
.blog-comments-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}

.blog-comments-note {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.5);
  margin: 0 0 28px;
}

.req {
  color: var(--violet);
}

.blog-comment-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.blog-comment-save {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 20px;
}

.blog-comment-save input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--violet);
}

.save-info-label {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.55);
  line-height: 1.55;
  cursor: pointer;
}

.blog-comment-submit {
  min-height: 50px;
  padding: 0 28px;
  font-size: 0.95rem;
}

/* ── Sidebar ── */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.sidebar-widget {
  border-radius: 20px;
  padding: 22px;
}

.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Recent Works: 3-col photo grid */
.sidebar-recent-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.srw-thumb {
  display: block;
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: rgba(2, 6, 23, 0.7);
}

.srw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: opacity 0.3s ease;
  opacity: 0.78;
}

.srw-thumb:hover img {
  opacity: 1;
}

/* Popular Posts */
.sidebar-popular-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.spp-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 46px;
  border-radius: 7px;
  overflow: hidden;
  display: block;
  background: rgba(2, 6, 23, 0.7);
}

.spp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.spp-info {
  flex: 1;
  min-width: 0;
}

.spp-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.4;
  transition: color 0.25s ease;
  margin-bottom: 3px;
}

.spp-title:hover {
  color: var(--cyan);
}

.spp-date {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.38);
  letter-spacing: 0.04em;
}

/* Categories */
.sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.25s ease;
}

.sidebar-categories li:last-child a {
  border-bottom: none;
}

.sidebar-categories li a:hover {
  color: var(--cyan);
}

.scat-count {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.32);
}

/* Meta */
.sidebar-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-meta li a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.25s ease;
}

.sidebar-meta li:last-child a {
  border-bottom: none;
}

.sidebar-meta li a:hover {
  color: var(--cyan);
}

/* ── Old blog card styles (homepage preview) ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 120px;
}

/* Blog content layout responsive */
@media (max-width: 1100px) {
  .blog-content-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

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

@media (max-width: 900px) {

  /* margin-top:auto absorbs all space above copy — stronger bottom anchoring than flex-end alone */
  .hero.section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: max(104px, calc(env(safe-area-inset-top, 0px) + 88px));
    padding-bottom: max(108px, calc(env(safe-area-inset-bottom, 0px) + 84px));
    box-sizing: border-box;
  }

  .hero-layout {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 0;
    width: 100%;
    margin-top: auto;
  }

  .hero-copy {
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .hero-text,
  .hero-copy .hero-trust {
    text-align: left;
    margin-inline: 0;
    padding-inline: 0;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    max-width: none;
  }

  .blog-content-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .blog-comment-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.32));
  backdrop-filter: blur(16px);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.blog-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.blog-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 11, 24, 0.9));
}

.blog-card-body {
  padding: 26px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.15);
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 14px;
  width: fit-content;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.blog-card-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 12px;
  color: white;
}

.blog-card-body h2 a {
  color: inherit;
  transition: color 0.25s ease;
}

.blog-card-body h2 a:hover {
  color: var(--cyan);
}

/* Premium kinetic typography lens effect */
/* Premium Lens Typography */
.lens-typography {
  position: relative;
  display: inline;
  line-height: 1.12;
}

.lens-word {
  display: inline;
  white-space: normal;
}

.lens-space {
  display: inline-block;
  width: 0.32em;
}

.lens-typography .lt-char {
  position: relative;

  display: inline;
  align-items: flex-end;
  justify-content: center;

  margin-inline: 0.008em;

  transform-origin: center bottom;

  contain: layout paint style;

  backface-visibility: hidden;
  transform-style: preserve-3d;

  transition:
    opacity 160ms ease,
    color 160ms ease;
}

.lens-typography .lt-char.is-hot {
  color: rgba(255, 255, 255, .98);
}

.blog-card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.45);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
  transition: gap 0.25s ease;
}

.blog-read-link:hover {
  gap: 10px;
}

.blog-read-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Blog section on homepage */
.blog-preview {
  padding: 80px 0 120px;
}

.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.blog-preview-header .section-intro {
  margin-bottom: 0;
}

.blog-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.25s ease;
}

.blog-preview-link:hover {
  gap: 12px;
}

.blog-preview-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 0;
  }

  .blog-preview {
    padding: 56px 0 28px;
  }

  .blog-preview+.contact {
    padding-top: 44px;
  }

  .blog-card-body {
    padding: 22px;
  }

  .blog-preview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-sidebar {
    grid-template-columns: 1fr !important;
  }

  .blog-comment-fields {
    grid-template-columns: 1fr !important;
  }

  .blog-hero {
    padding-top: 120px;
  }

  /* WhatsApp stacked BELOW back-to-top, both on the right */
  .floating-whatsapp {
    right: 20px;
    left: auto;
    bottom: 20px;
    width: 46px;
    height: 46px;
  }

  #back-to-top {
    right: 20px;
    bottom: 76px;
    /* sits above WhatsApp */
    width: 44px;
    height: 44px;
  }

  /* Container breathing room */
  .container {
    padding-inline: max(16px, 4vw);
  }

  /* Hero copy: prevent overflow */
  .hero-copy {
    width: 100%;
    padding-right: 0;
    overflow: hidden;
  }

  /* Cap section h2 font-size on mobile to prevent overflow */
  h2 {
    font-size: clamp(1.7rem, 6.5vw, 2.6rem) !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .blog-hero h1,
  .blog-card-body h2,
  .section-intro h2,
  .contact-copy h2 {
    display: block;
    text-align: left;
    text-wrap: wrap;
  }

  .lens-typography {
    display: block;
    text-align: left;
  }

  .lens-space {
    width: 0.28em;
  }

  .lens-typography .lt-char {
    margin-inline: 0;
    transform: none !important;
  }

  .blog-hero h1 {
    max-width: 100%;
    line-height: 1.08;
  }

  /* Eyebrow: reduce letter-spacing so it fits */
  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.65rem;
  }

  /* Loader brand text */
  .loader-brand {
    font-size: 1.05rem;
    letter-spacing: 0.28em;
  }
}

@media (max-width: 420px) {
  .hero.section {
    padding-top: max(92px, calc(env(safe-area-inset-top, 0px) + 76px));
    padding-bottom: max(116px, calc(env(safe-area-inset-bottom, 0px) + 92px));
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.72rem);
    line-height: 1.08;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 12px;
  }

  .floating-whatsapp {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 16px;
  }

  #back-to-top {
    right: 14px;
    bottom: 68px;
    width: 40px;
    height: 40px;
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  .proof-motion-header {
    flex-direction: column;
  }

  .proof-motion-badge {
    width: fit-content;
  }

  .contact-shell {
    gap: 20px;
  }

  .contact-copy h2 {
    max-width: 100%;
    font-size: clamp(1.95rem, 8.5vw, 2.55rem);
    line-height: 1.08;
  }

  .field-code input {
    padding-left: 18px;
  }

  .field-code.has-country-flag input {
    padding-left: 54px;
  }

  .field-code.has-country-flag label {
    left: 54px;
  }
}

@media (max-width: 375px) {
  .hero.section {
    padding-top: max(88px, calc(env(safe-area-inset-top, 0px) + 72px));
    padding-bottom: max(114px, calc(env(safe-area-inset-bottom, 0px) + 90px));
  }

  .contact-shell {
    gap: 22px;
    padding: 32px 18px;
  }

  .contact-copy h2 {
    font-size: clamp(1.78rem, 7.6vw, 2.35rem);
    line-height: 1.08;
  }

  .country-code-selected-flag {
    width: 28px;
    height: 20px;
  }
}

@media (max-width: 360px) {
  .contact-shell {
    gap: 24px;
    padding: 32px 16px;
  }

  .country-code-item-flag {
    width: 30px;
    min-width: 30px;
    height: 22px;
  }

  .country-code-menu {
    width: min(300px, calc(100vw - 32px));
  }

  .country-code-item {
    gap: 10px;
    padding: 11px 12px;
  }
}

/* Samsung Galaxy S8+ (~360×740): extra-low hero stack — must follow generic mobile hero padding overrides */
@media (max-width: 374px) and (min-height: 700px) and (max-height: 790px) {
  .hero.section {
    padding-top: max(64px, calc(env(safe-area-inset-top, 0px) + 48px));
    /* Extra bottom cushion so translateY + FAB clearance survives hero overflow clipping */
    padding-bottom: max(132px, calc(env(safe-area-inset-bottom, 0px) + 96px));
  }

  .hero-layout {
    margin-top: auto;
    margin-bottom: 0;
    transform: translateY(clamp(16px, 5vh, 52px));
  }
}

/* Samsung Galaxy S20 Ultra (~412×915): extra-low hero stack */
@media (min-width: 390px) and (max-width: 430px) and (min-height: 880px) {
  .hero.section {
    padding-top: max(72px, calc(env(safe-area-inset-top, 0px) + 56px));
    padding-bottom: max(148px, calc(env(safe-area-inset-bottom, 0px) + 108px));
  }

  .hero-layout {
    margin-top: auto;
    margin-bottom: 0;
    transform: translateY(clamp(20px, 6vh, 72px));
  }
}

/* ─────────────────────────────────────────────
   MOBILE PERFORMANCE OPTIMIZATIONS
   All rules here target touch/mobile devices only.
   Goal: zero jank during scroll while keeping all visuals.
───────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {

  /* ── 1. Remove expensive backdrop-filter blurs on mobile ─────
     backdrop-filter: blur() triggers a full compositing layer and
     significantly increases GPU load during scroll on mobile.
     We replace with a solid opaque fallback that looks identical. */
  .nav-shell {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 12, 26, 0.97);
  }

  .site-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 12, 26, 0.99);
  }

  .glass-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 16, 34, 0.92);
  }

  .team-link {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* ── 2. Reduce expensive CSS filters on scene elements ─────
     filter: blur() on large elements forces software rasterisation on
     many mobile GPUs, causing per-frame re-compositing during scroll. */
  .mountain-front {
    filter: none;
  }

  .mountain-mid {
    filter: none;
  }

  .fog-a,
  .fog-b {
    filter: blur(16px);
    /* reduced from 24px/34px */
  }

  .sky-glow-a {
    filter: blur(16px);
    /* reduced from 24px */
  }

  .sky-glow-b {
    filter: blur(14px);
    /* reduced from 22px */
  }

  .loader-bg-glow {
    filter: blur(32px);
    /* reduced from 48px */
  }

  /* ── 3. Scope will-change more precisely on mobile ────────
     Over-applying will-change creates too many compositing layers and
     eats into the mobile GPU memory budget, causing jank. Only apply
     it to elements that are actively being GSAP-animated. */
  .sky-glow,
  .orb,
  .ring,
  .mountain,
  .fog,
  .grid-haze {
    will-change: auto;
  }

  .carousel-track {
    will-change: auto;
  }

  .letter {
    will-change: auto;
  }

  .reveal-word-inner {
    will-change: auto;
  }

  .service-card {
    /* Disable 3D card tilt on mobile (no mousemove to drive it) */
    transform-style: flat;
    will-change: auto;
  }

  /* ── 4. content-visibility for offscreen sections ────────
     Tells the browser to skip layout + paint for sections not yet
     on screen. This is one of the highest-ROI mobile perf tricks.
     contain-intrinsic-size prevents layout shift when the section
     enters the viewport. */
  .services,
  .journey,
  .testimonials,
  .team,
  .faq,
  .contact,
  .blog-preview {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
  }

  /* ── 5. Disable non-essential CSS animations on mobile ───
     The slideLine and scrollPulse CSS animations run at 60fps
     independently of GSAP. On mobile they add to the animation
     budget without being critical to the experience. */
  .panel-line span {
    animation: none;
    top: 40px;
    /* rest at midpoint */
    opacity: 0.7;
  }

  /* salary badge pulse — keep but slow down so it’s less frequent */
  .salary-badge {
    animation-duration: 5s;
  }

  /* ── 6. Hero floating lines Lottie — reduce opacity to hide on mobile ─
     The hero floating lines SVG is scroll-driven via bindLottieToScroll
     which calls goToAndStop() on every scroll tick — expensive on mobile.
     CSS hides it so the ScrollTrigger + Lottie overhead is wasted on nothing
     even if the JS still sets it up. */
  .hero-floating-lines {
    display: none !important;
  }

  /* ── 7. Disable the CSS noise texture on mobile ────────
     The fixed noise overlay with mix-blend-mode: soft-light forces a
     full-screen blend composite every frame — expensive during scroll. */
  .noise {
    display: none;
  }

  /* ── 9. Simpler service card hover (no border gradient trace on mobile) */
  .service-card::before {
    display: none;
  }

  /* ── 10. Disable the hero cursor spotlight on touch devices ───── */
  .hero::before {
    display: none;
  }
}