/* ═══════════════════════════════════════════════════════════════════════════
   WHAT WE DO — Page intro (.wd-intro), scroll-snap sections (.wds-section),
                image panels, content panels, feature bullets, scroll dots.
                Responsive stacking rules for tablet + mobile.
   Edit here for What We Do page changes only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   WHAT WE DO UNIQUE PAGE STYLES
──────────────────────────────────────────── */

/* Intro split dark bg, two columns */
.wd-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(120deg, #0B0B0D 0%, #326BCD 100%);
  height: 100vh; min-height: unset;
  align-items: center;
  border-bottom: 3px solid rgba(50,107,205,0.4);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}
.wd-intro-left {
  padding: 80px 64px;
  border-right: 1px solid rgba(255,255,255,0.15);
  position: relative; z-index: 1;
}
.wd-intro-right {
  padding: 80px 64px;
  position: relative; z-index: 1;
}
.wd-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.wd-eyebrow::before { content:''; width: 20px; height: 1px; background: #1a2a2b; }
.wd-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 700;
  color: white; line-height: 1.1; letter-spacing: -0.02em;
}
.wd-hero-title em { font-style: normal; color: #88AB3C; }
.wd-intro-right p {
  font-size: 1.05rem; color: rgba(255,255,255,0.75);
  line-height: 1.8; margin-bottom: 40px;
}
.wd-nav-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.wd-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px; text-decoration: none;
  transition: all 0.2s; border-radius: 2px;
}
.wd-pill:hover, .wd-pill.active {
  color: white; border-color: white; background: rgba(255,255,255,0.15);
}

/* Capability rows full bleed alternating panels */
.wd-capability {
  display: grid; grid-template-columns: 380px 1fr;
  min-height: 520px;
}
.wd-capability.wd-reverse { grid-template-columns: 380px 1fr; direction: rtl; }
.wd-capability.wd-reverse > * { direction: ltr; }

/* Left panel */
.wd-cap-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 52px; position: relative;
}
.wd-dark { background: #0d1a1b; }
.wd-blue { background: #59888B; }

.wd-cap-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,0.08); margin-bottom: -16px;
  letter-spacing: -0.04em;
}
.wd-cap-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700;
  color: white; line-height: 1.2; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.wd-cap-desc {
  font-size: 0.92rem; color: rgba(255,255,255,0.6);
  line-height: 1.75; margin-bottom: 32px;
}
.wd-cap-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: white; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px; display: inline-block;
  transition: border-color 0.2s;
}
.wd-cap-cta:hover { border-color: white; }

/* Right content area */
.wd-cap-content {
  background: #1a2a2b; padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
}
.wd-cap-content-light { background: #f2f5f5; }

/* Feature rows */
.wd-feature-row {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wd-cap-content-light .wd-feature-row { border-bottom-color: var(--border); }
.wd-feature-row:first-of-type { padding-top: 0; }
.wd-feature-row:last-of-type { border-bottom: none; }

.wd-feature-icon-wrap {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(50,107,205,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.wd-icon-blue { background: #e0f7f8; }

.wd-feature-title {
  font-weight: 700; font-size: 0.95rem; margin-bottom: 6px;
  color: #ffffff;
}
.wd-cap-content-light .wd-feature-title { color: var(--ink); }
.wd-feature-body {
  font-size: 0.85rem; line-height: 1.65; color: rgba(255,255,255,0.5);
}
.wd-cap-content-light .wd-feature-body { color: var(--ink-60); }

/* Tech tag strip */
/* wd-tag-strip removed */
.wd-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #326BCD; background: rgba(50,107,205,0.15);
  padding: 4px 12px; border-radius: 2px;
}
.wd-tag-blue { color: #326BCD; background: #e8f5e9; }

/* Timeline for App Dev */
.wd-timeline { display: flex; flex-direction: column; }
.wd-timeline-item { display: flex; gap: 20px; }
.wd-tl-marker {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 20px;
}
.wd-tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #326BCD; flex-shrink: 0; margin-top: 4px;
}
.wd-tl-line {
  width: 2px; flex: 1; background: rgba(255,255,255,0.1);
  margin: 6px 0; min-height: 32px;
}
.wd-tl-content { padding: 0 0 32px 0; }
.wd-tl-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 6px;
}
.wd-tl-title { font-weight: 700; font-size: 1rem; color: white; margin-bottom: 8px; }
.wd-tl-body { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* Stat grid for Data & BI */
.wd-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid #d0d8e8;
}
.wd-stat-card {
  padding: 32px; border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.wd-stat-card:nth-child(2n) { border-right: none; }
.wd-stat-card:nth-last-child(-n+2) { border-bottom: none; }
.wd-stat-card:hover { background: #eef3f3; }
.wd-stat-icon { font-size: 1.5rem; margin-bottom: 12px; }
.wd-stat-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; color: var(--ink); }
.wd-stat-body { font-size: 0.83rem; color: var(--ink-60); line-height: 1.65; }

/* Helper function scrollToSection */

/* Responsive */
@media (max-width: 900px) {
  .wd-intro { grid-template-columns: 1fr; }
  .wd-intro-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 104px 28px 56px; }
  .wd-intro-right { padding: 40px 28px; }
  .wd-capability, .wd-capability.wd-reverse { grid-template-columns: 1fr; direction: ltr; }
  .wd-cap-panel { padding: 48px 28px; }
  .wd-cap-content, .wd-cap-content-light { padding: 40px 28px; }
  .wd-stat-grid { grid-template-columns: 1fr; }
  .wd-stat-card { border-right: none !important; }
}








/* ═══════════════════════════════════════════
   WDS — SCROLL-SNAP CINEMATIC REVEAL
═══════════════════════════════════════════ */

/* The whatwedo page becomes a scroll-snap container */
#whatwedo {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* Hide scrollbar but keep scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#whatwedo::-webkit-scrollbar { display: none; }

/* Every section snaps to full viewport */
.wds-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #07111c;
  display: block;
}

/* IMAGE — starts full width, transitions to 50% when section is active */
.wds-image-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 100%;
  z-index: 2;
  transition: width 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: width;
}
.wds-img-left  { left: 0; right: auto; }
.wds-img-right { right: 0; left: auto; }

.wds-image-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.wds-img-cover {
  position: absolute; inset: 0;
  pointer-events: none;
}
.wds-img-left  .wds-img-cover { background: linear-gradient(to left,  rgba(7,17,28,0.6) 0%, transparent 55%); }
.wds-img-right .wds-img-cover { background: linear-gradient(to right, rgba(7,17,28,0.6) 0%, transparent 55%); }

/* ACTIVE state — triggered by IntersectionObserver when section snaps into view */
.wds-section.is-active .wds-image-panel {
  width: 50%;
}

/* CONTENT — always positioned, fades in when active */
.wds-content-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: #07111c;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.65s, transform 0.7s ease 0.65s;
  overflow-y: auto;
  scrollbar-width: none;
}
.wds-content-panel::-webkit-scrollbar { display: none; }
.wds-img-left  ~ .wds-content-panel { right: 0; left: auto; }
.wds-img-right ~ .wds-content-panel { left: 0;  right: auto; }

.wds-section.is-active .wds-content-panel {
  opacity: 1;
  transform: translateY(0);
}

/* CONTENT STYLES */
.wds-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.22em;
  margin-bottom: 18px;
}
.wds-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.wds-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 400px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 24px;
}
.wds-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.wds-feature  { display: flex; gap: 14px; align-items: flex-start; }
.wds-feature-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.wds-feature-icon img { width: 18px; height: 18px; object-fit: contain; }
.wds-feature-title {
  font-weight: 700; font-size: 0.81rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2px;
}
.wds-feature-body {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
}
.wds-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff; text-decoration: none;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  width: fit-content;
  transition: background 0.2s, border-color 0.2s, gap 0.2s;
}
.wds-cta::after { content: '→'; transition: transform 0.2s; }
.wds-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); gap: 15px; }
.wds-cta:hover::after { transform: translateX(3px); }

/* Scroll hint dots — right edge */
.wds-scroll-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.wds-scroll-dots.visible { opacity: 1; pointer-events: auto; }
.wds-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  pointer-events: auto;
}
.wds-dot.active {
  background: #ffffff;
  transform: scale(1.4);
}

/* Bottom CTA snaps too */
.cta-full { scroll-snap-align: start; }

@media (max-width: 900px) {
  #whatwedo { height: auto; overflow-y: auto; scroll-snap-type: none; }
  .wds-section { height: auto; scroll-snap-align: none; }
  .wds-image-panel { position: relative !important; width: 100% !important; height: 55vw; transition: none; }
  .wds-content-panel { position: relative !important; width: 100% !important; opacity: 1 !important; transform: none !important; padding: 40px 24px; left: auto !important; right: auto !important; }
  .wds-scroll-dots { display: none; }
}

/* ── WDS responsive fixes: override @supports 100dvh block on mobile ── */
/* The @supports(height:100dvh) block further down would restore height:100dvh
   on mobile, clipping content and breaking layout. !important wins over it. */
@media (max-width: 900px) {
  #whatwedo    { height: auto !important; overflow-y: visible !important; }
  .wds-section { height: auto !important; overflow: visible !important; }
}

/* Tablet (≤ 768px): tighten image height and content padding */
@media (max-width: 768px) {
  .wds-image-panel { height: 46vw; max-height: 280px; }
  .wds-content-panel { padding: 32px 20px; }
  .wds-heading { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .wds-desc { font-size: 0.84rem; margin-bottom: 20px; padding-bottom: 18px; }
  .wds-features { gap: 14px; margin-bottom: 22px; }
}

/* Phone (≤ 520px): further reductions + ensure icons are always visible */
@media (max-width: 520px) {
  .wds-image-panel { height: 48vw; max-height: 220px; }
  .wds-content-panel { padding: 24px 16px 32px; }
  .wds-heading { font-size: clamp(1.3rem, 6.5vw, 1.75rem); }
  .wds-num { margin-bottom: 8px; }
  .wds-desc { font-size: 0.8rem; margin-bottom: 16px; padding-bottom: 14px; max-width: 100%; }
  .wds-features { gap: 10px; margin-bottom: 18px; }
  .wds-feature  { gap: 10px; align-items: flex-start; }
  /* Force icon box to always render and never collapse */
  .wds-feature-icon {
    width: 28px; height: 28px;
    min-width: 28px; min-height: 28px;
    flex-shrink: 0;
    display: flex !important;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
  }
  .wds-feature-icon img { width: 16px; height: 16px; }
  .wds-feature-title { font-size: 0.77rem; }
  .wds-feature-body  { font-size: 0.7rem; line-height: 1.55; }
  .wds-cta { font-size: 0.68rem; padding: 9px 18px; }
}
/* ═══ END WDS ═══ */
