/* Walkwel Inner Pages — Cinematic Dark Design System (About Us aligned) */

:root {
  --deep-blue: #2e3c91;
  --light-blue: #8ae2ff;
  --white: #ffffff;
  --beige: #f5f4d6;
  --peach: #f0c9a5;
  --pale-green: #b4edc6;
  --dark-bg: #0d0f1a;
  --dark-card: #131628;
  --dark-mid: #1a1f3a;
  --dark-ink: #080a12;
}

/* ── Dark page override for legacy light pages ── */
.d2-dark-page {
  background: var(--dark-bg) !important;
  color: var(--white) !important;
}

.d2-dark-page .white-bg-1,
.d2-dark-page.white-bg-1 {
  background: var(--dark-bg) !important;
}

.d2-dark-page nav {
  background: rgba(13, 15, 26, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(138, 226, 255, 0.08) !important;
}



.d2-dark-page .logo-light {
  opacity: 0 !important;
}

.d2-dark-page .logo-white {
  opacity: 1 !important;
}

.d2-dark-page .logo-gradient {
  opacity: 0 !important;
}

.d2-dark-page .bg-white,
.d2-dark-page .bg-white\/95 {
  background: var(--dark-card) !important;
}

.d2-dark-page .black-text-1,
.d2-dark-page .text-\[\#1A1A1A\] {
  color: #fff !important;
}

.d2-dark-page .gray-text-1,
.d2-dark-page .text-\[\#706D79\] {
  color: rgba(255, 255, 255, 0.48) !important;
}

.d2-dark-page .choose-card,
.d2-dark-page .career-card-1,
.d2-dark-page .career-card-2,
.d2-dark-page .rounded-3xl.bg-white {
  background: var(--dark-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
}

.d2-dark-page .border-gray-100 {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.d2-dark-page .bg-gray-50,
.d2-dark-page .bg-gray-100,
.d2-dark-page .career-white-box {
  background: rgba(255, 255, 255, 0.05) !important;
}

.d2-dark-page .blue-text-gradient {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--beige) 60%, var(--peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.d2-dark-page .bg-\[\#2f3f93\],
.d2-dark-page .bg-\[\#2F3F93\] {
  background: var(--light-blue) !important;
  color: var(--dark-bg) !important;
}

/* ── Shared tokens (when not inline) ── */
[x-cloak] {
  display: none !important;
}

.nav-glass {
  background: rgba(13, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(138, 226, 255, 0.08);
}

/* Viewport-centered mega menu (no transform — avoids Alpine transition conflicts) */
.nav-mega-panel {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(1060px, calc(100vw - 2rem));
  z-index: 300;
}

.gradient-text-d2 {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--beige) 60%, var(--peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag-d2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(138, 226, 255, 0.1);
  border: 1px solid rgba(138, 226, 255, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-blue);
}

.btn-primary-d2 {
  background: var(--light-blue);
  color: var(--dark-bg);
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary-d2:hover {
  background: #6dd5f6;
  transform: translateY(-1px);
}

.btn-ghost-d2 {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost-d2:hover {
  color: white;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 1024px) {
  .shell {
    padding: 0 32px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 20px;
  }
}

/* ── Scroll reveal ── */
[data-animate],
[data-animate-slide],
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-animate-slide] {
  transform: translateX(-32px);
}

[data-animate].is-visible,
[data-animate-slide].is-visible,
[data-reveal].is-visible,
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

[data-animate][data-delay="1"],
[data-animate-slide][data-delay="1"],
[data-reveal][data-delay="1"] {
  transition-delay: 0.1s;
}

[data-animate][data-delay="2"],
[data-animate-slide][data-delay="2"],
[data-reveal][data-delay="2"] {
  transition-delay: 0.2s;
}

[data-animate][data-delay="3"],
[data-reveal][data-delay="3"] {
  transition-delay: 0.3s;
}

/* ── Cinematic industry row ── */
.cine-row {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cine-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--row-accent, var(--light-blue));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cine-row.is-visible::before,
.cine-row:hover::before {
  transform: scaleY(1);
}

.cine-row-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.cine-row-reverse .cine-row-grid {
  grid-template-columns: 420px 1fr;
}

.cine-row-reverse .cine-copy {
  order: 2;
}

.cine-row-reverse .cine-media {
  order: 1;
}

.cine-num {
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  transition: -webkit-text-stroke 0.4s;
}

.cine-row:hover .cine-num {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

.cine-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--row-accent, var(--light-blue));
  margin-bottom: 12px;
  display: block;
}

.cine-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.cine-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px;
  max-width: 540px;
}

.cine-media {
  position: relative;
}

.cine-video-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(138, 226, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(46, 60, 145, 0.25);
}

.cine-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cine-row:hover .cine-video-frame video {
  transform: scale(1.06);
}

.cine-video-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.cine-video-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(var(--row-accent-rgb, 138, 226, 255), 0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ── Portfolio showcase rail ── */
.showcase-section {
  padding: 40px 0 100px;
  background: var(--dark-bg);
}

.showcase-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-rail::-webkit-scrollbar {
  display: none;
}

.showcase-item {
  flex: 0 0 min(85vw, 520px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--item-accent, rgba(138, 226, 255, 0.2));
}

.showcase-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.showcase-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--item-accent-rgb, 138, 226, 255), 0.2) 0%, rgba(13, 15, 26, 0.9) 100%);
}

.showcase-letter {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 140px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}

.showcase-body {
  padding: 28px 28px 32px;
}

.showcase-name {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
}

.showcase-meta {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  margin: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-meta strong {
  font-size: 16px;
  font-weight: 800;
}

.showcase-meta span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

.featured-spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 64px;
  margin-bottom: 48px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(46, 60, 145, 0.35) 0%, transparent 55%),
    var(--dark-card);
  border: 1px solid rgba(138, 226, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.featured-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(138, 226, 255, 0.03) 100%);
  pointer-events: none;
}

.featured-video {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid rgba(138, 226, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.featured-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Service editorial rail ── */
.service-rail {
  padding: 80px 0;
  background: var(--dark-bg);
}

.service-strip {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: padding-left 0.3s ease;
}

.service-strip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: var(--strip-accent, var(--light-blue));
  border-radius: 0 4px 4px 0;
  transition: width 0.35s ease;
}

.service-strip:hover {
  padding-left: 12px;
}

.service-strip:hover::before {
  width: 4px;
}

.service-strip-num {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
}

.service-strip-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.service-strip-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}

.service-strip-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--strip-accent, var(--light-blue));
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.service-strip-link:hover {
  gap: 14px;
}

/* ── Culture mosaic (Life at Walkwel / Careers) ── */
.culture-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 180px 180px 180px 180px;
  grid-template-areas:
    'a a a a a a a b b b b b'
    'a a a a a a a c c c c c'
    'd d d d e e e e e e e e'
    'd d d d e e e e e e e e'; /* CHANGED: e now spans row 4 (was empty) */
  gap: 16px;
  padding: 48px 0;
}

.mosaic-cell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--dark-card);
  min-height: 160px;
  isolation: isolate;
}

.mosaic-cell video, .mosaic-cell img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    object-position: center center !important;
    height: 100%;
    object-fit: cover;
}

.mosaic-cell-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(13, 15, 26, 0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.mosaic-cell-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.mosaic-cell-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.mosaic-a { grid-area: a; }
.mosaic-b { grid-area: b; }
.mosaic-c { grid-area: c; }
.mosaic-d { grid-area: d; }
.mosaic-e { grid-area: e; } /* Now spans 2 rows via grid-template-areas *//* Responsive: mobile stacks all cards vertically */
@media (max-width: 1024px) {
  .culture-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      'a'
      'b'
      'c'
      'd'
      'e';
  }

  .mosaic-a,
  .mosaic-b,
  .mosaic-c,
  .mosaic-d,
  .mosaic-e {
    min-height: 220px;
  }
}
/* ── Marquee stats ── */
.d2-stats-marquee {
  display: flex;
  gap: 48px;
  animation: d2-marquee 30s linear infinite;
  width: max-content;
}

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

.d2-stat-chip {
  flex-shrink: 0;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.d2-stat-chip strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--light-blue);
}

.d2-dark-page .bg-\[\#F5F5F7\] {
  background: var(--dark-bg) !important;
}

.d2-dark-page .border-\[\#BDBDBD\] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.d2-dark-page .text-gray-500 {
  color: rgba(255, 255, 255, 0.45) !important;
}

.d2-dark-page .bg-black {
  background: var(--light-blue) !important;
  color: var(--dark-bg) !important;
}

.d2-dark-page .hover\:bg-gray-800:hover {
  background: #6dd5f6 !important;
}

.d2-dark-page .swiper-slide,
.d2-dark-page .swiper-wrapper {
  color: inherit;
}

.ind-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ind-cap {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.6);
}

.ind-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: gap 0.2s;
}

.ind-link:hover {
  gap: 14px;
}

.d2-stats-marquee span {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.d2-stats-marquee span:nth-child(odd) {
  color: rgba(138, 226, 255, 0.25);
}


/* ── Filter pills (portfolio) ── */
.filter-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s;
}

.filter-pill:hover {
  border-color: rgba(138, 226, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

.filter-pill.active {
  background: var(--light-blue);
  color: var(--dark-bg);
  border-color: var(--light-blue);
}

@media (max-width: 1024px) {
  .cine-row-grid,
  .cine-row-reverse .cine-row-grid {
    grid-template-columns: 1fr;
  }

  .cine-row-reverse .cine-copy,
  .cine-row-reverse .cine-media {
    order: unset;
  }

  .featured-spotlight {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .culture-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      'a'
      'b'
      'c'
      'd'
      'e';
  }

  .mosaic-a,
  .mosaic-b,
  .mosaic-c,
  .mosaic-d,
  .mosaic-e {
    min-height: 220px;
  }

  .service-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d2-stats-marquee {
    animation: none;
  }

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