/*
Theme Name: IMDigitalLabs
Theme URI: https://imdigitallabs.com
Author: IMDigitalLabs
Author URI: https://imdigitallabs.com
Description: Custom theme for IMDigitalLabs, a full-service digital studio spanning web, mobile, AI, cloud, security, and marketing. Dark, blue-to-cyan brand system with a full-bleed hero video, glossy icon badges, and tilt-on-hover service cards.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imdigitallabs
*/

/* ==========================================================================
   IMDigitalLabs -- shared stylesheet (v2: blue/cyan brand, full digital
   agency scope, heavier 3D treatment: rotating cube, glossy icon badges,
   tilt cards, layered glass panels). Deliberate single dark theme.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  color-scheme: dark;

  --bg-void: #060910;
  --bg-surface: #0c1220;
  --bg-elevated: #101a2e;
  --bg-elevated-2: #142238;
  --border-soft: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.15);

  --text-primary: #eef2fb;
  --text-secondary: #9aa6c3;
  --text-muted: #62709a;

  --blue-deep: #1541c7;
  --blue: #2f7dfb;
  --cyan: #34d1f2;
  --gradient-brand: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--cyan) 100%);

  --accent: var(--blue);
  --accent-strong: #529bff;
  --accent-soft: rgba(47,125,251,0.14);
  --accent-line: rgba(47,125,251,0.4);

  --radius-card: 16px;
  --radius-input: 10px;
  --radius-pill: 999px;

  --shadow-elevated: 0 24px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 16px 44px rgba(47,125,251,0.2);

  --container: 1220px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);

  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
h1,h2,h3,h4{ font-family: var(--font-display); text-wrap: balance; }
button{ font-family: inherit; }
[hidden]{ display: none !important; }

::selection{ background: var(--accent-soft); color: var(--text-primary); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- layout helpers ---------- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section{
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-head{
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-head.wide{ max-width: 760px; }
.section-head.center{ max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
h2.headline{
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.lede{
  margin-top: 0.9rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-head.center .lede{ margin-inline: auto; }
.text-gradient{
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}
.eyebrow::after{ content: ""; width: 32px; height: 1px; background: var(--border-strong); }
.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Content sits fully visible at rest -- first paint, no-JS, and any
   thumbnail/print view all show everything with nothing gated behind
   scroll or an observer. ".reveal" is kept as a hook only. */
.reveal{ opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:active{ transform: translateY(1px) scale(0.98); }
.btn-primary{
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(47,125,251,0.35);
}
.btn-primary:hover{ filter: brightness(1.1); box-shadow: 0 14px 36px rgba(47,125,251,0.45); }
.btn-ghost{
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover{ border-color: var(--accent-line); background: var(--accent-soft); }
.btn-small{ padding: 0.6rem 1.15rem; font-size: 0.85rem; }

/* ---------- nav ---------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6,9,16,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav.is-scrolled{
  background: rgba(6,9,16,0.94);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 1.5rem;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.brand-logo{ display: block; width: 224px; height: auto; flex-shrink: 0; }
.nav-links{
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
}
.nav-links a{ position: relative; transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--text-primary); }
.nav-links a::before{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::before{ transform: scaleX(1); }
.nav-links a[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--gradient-brand);
}
.nav-item{ position: relative; display: flex; align-items: center; }
.nav-item > a{ display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-caret{ width: 13px; height: 13px; transition: transform 0.2s var(--ease); }
.nav-item.has-submenu:hover .nav-caret,
.nav-item.has-submenu:focus-within .nav-caret{ transform: rotate(180deg); }
.nav-submenu{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 220px;
  padding: 0.6rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 70;
}
.nav-item.has-submenu:hover .nav-submenu,
.nav-item.has-submenu:focus-within .nav-submenu{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 12px);
}
.nav-submenu a{
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.nav-submenu a:hover{ color: var(--text-primary); background: var(--accent-soft); }
.nav-actions{ display: flex; align-items: center; gap: 0.9rem; }
.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav-toggle:hover{
  border-color: var(--accent-line);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(47,125,251,0.12);
}
.nav-toggle:active{ transform: scale(0.92); }
.nav-toggle[aria-expanded="true"]{
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-primary);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover span, .nav-toggle:hover span::before, .nav-toggle:hover span::after{ background: var(--accent-strong); }
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(6px) rotate(45deg); background: var(--accent-strong); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-6px) rotate(-45deg); background: var(--accent-strong); }

.mobile-panel{
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-void);
}
.mobile-panel.is-open{ display: block; }
.mobile-panel .container{ padding-block: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-panel a{ font-size: 1rem; color: var(--text-secondary); }
.mobile-panel a[aria-current="page"]{ color: var(--accent-strong); }
.mobile-submenu summary{
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
}
.mobile-submenu summary::-webkit-details-marker{ display: none; }
.mobile-submenu summary[aria-current="page"]{ color: var(--accent-strong); }
.mobile-submenu summary::after{
  content: "";
  display: inline-block;
  margin-left: 0.5rem;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.mobile-submenu[open] summary::after{ transform: rotate(-135deg); }
.mobile-submenu-list{ display: flex; flex-direction: column; gap: 0.75rem; padding: 0.9rem 0 0.2rem 1rem; }
.mobile-submenu-list a{ font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-actions .btn{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ==========================================================================
   Glossy 3D icon badges -- the recurring "physical" element used across
   the hero, service grid, carousel, and info panels.
   ========================================================================== */
.icon-badge{
  --badge-size: 48px;
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 30%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(120% 120% at 28% 20%, rgba(255,255,255,0.55), transparent 46%),
    var(--gradient-brand);
  box-shadow:
    0 10px 22px rgba(15,55,180,0.35),
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -8px 14px rgba(0,0,15,0.28);
}
.icon-badge.lg{ --badge-size: 64px; border-radius: 26%; }
.icon-badge svg{ width: 46%; height: 46%; }

/* ==========================================================================
   Full-bleed hero background video -- fills the entire hero section behind
   the copy, faded and scrimmed so it reads as one merged surface with the
   text rather than a separate boxed element.
   ========================================================================== */
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.4;
  filter: saturate(1.05);
  transform: scale(1.02);
}
.hero-bg::before{
  /* darkens the left/text side more than the right, so copy stays readable
     without hiding the clip entirely */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--bg-void) 0%, rgba(6,9,16,0.86) 26%, rgba(6,9,16,0.5) 55%, rgba(6,9,16,0.72) 100%);
}
.hero-bg::after{
  /* fades the video edge-to-edge into the page background, top and bottom */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-void) 0%, transparent 22%, transparent 78%, var(--bg-void) 100%);
}

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero{
  position: relative;
  padding-block: clamp(4rem, 11vw, 7rem) clamp(4.5rem, 11vw, 7.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero-grid{
  position: relative;
  z-index: 1;
}
.hero-copy{ position: relative; max-width: 640px; }
.hero-tagline{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}
.hero-slides{ position: relative; min-height: 260px; overflow: hidden; }
.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.hero-slide.is-active{
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-slide.is-prev{ transform: translateX(-60px); }
.hero-slide.no-transition{ transition: none !important; }
.hero-slide h1{
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.hero-slide .lede{ font-size: 1.08rem; max-width: 46ch; }
.hero-cta-row{
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.hero-controls{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.hero-dots{ display: flex; gap: 0.5rem; }
.hero-dot{
  width: 26px; height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.hero-dot.is-active{ background: var(--gradient-brand); width: 40px; }
.hero-arrows{ display: flex; gap: 0.5rem; margin-left: 0.4rem; }
.hero-arrow{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.hero-arrow:hover{ border-color: var(--accent-line); color: var(--accent-strong); }

@media (max-width: 860px){
  .hero-copy{ min-height: 260px; }
  .hero-bg::before{ background: linear-gradient(190deg, var(--bg-void) 0%, rgba(6,9,16,0.9) 32%, rgba(6,9,16,0.55) 62%, rgba(6,9,16,0.82) 100%); }
}

/* ---------- page hero (compact, non-slide pages) ---------- */
.page-hero{
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .headline{ font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.015em; max-width: 20ch; }
.page-hero .lede{ font-size: 1.08rem; }
.page-hero .lede a{ color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.page-hero .lede a:hover{ color: var(--cyan); }

/* ==========================================================================
   Page hero 3D visual (floating glossy badge scene, service pages)
   ========================================================================== */
.page-hero.has-visual .container{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-visual{
  position: relative;
  height: 280px;
  perspective: 1000px;
}
.hero-visual-core{
  --badge-size: 168px;
  position: absolute;
  top: 50%; left: 50%;
  width: var(--badge-size);
  height: var(--badge-size);
  margin: calc(var(--badge-size) / -2) 0 0 calc(var(--badge-size) / -2);
  border-radius: 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(120% 120% at 28% 20%, rgba(255,255,255,0.55), transparent 46%),
    var(--gradient-brand);
  box-shadow:
    0 30px 60px rgba(15,55,180,0.45),
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -14px 26px rgba(0,0,15,0.3);
  animation: hero-float 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.hero-visual-core svg{ width: 42%; height: 42%; }
.hero-visual-accent{
  position: absolute;
  border-radius: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(120% 120% at 28% 20%, rgba(255,255,255,0.5), transparent 46%),
    var(--gradient-brand);
  box-shadow:
    0 16px 30px rgba(15,55,180,0.35),
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -8px 14px rgba(0,0,15,0.28);
  opacity: 0.92;
}
.hero-visual-accent svg{ width: 44%; height: 44%; }
.hero-visual-accent.a1{ width: 64px; height: 64px; top: 8%; right: 10%; animation: hero-float 5.5s ease-in-out infinite; animation-delay: 0.4s; }
.hero-visual-accent.a2{ width: 52px; height: 52px; bottom: 12%; left: 2%; animation: hero-float 6.5s ease-in-out infinite; animation-delay: 1.1s; }
.hero-visual-ring{
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 240px;
  margin: -120px 0 0 -120px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  opacity: 0.5;
}

@keyframes hero-float{
  0%, 100%{ transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  50%{ transform: translateY(-16px) rotateY(16deg) rotateX(6deg); }
}

@media (prefers-reduced-motion: reduce){
  .hero-visual-core, .hero-visual-accent{ animation: none; }
}

@media (max-width: 900px){
  .page-hero.has-visual .container{ grid-template-columns: 1fr; }
  .hero-visual{ display: none; }
}

/* ==========================================================================
   Services grid (glossy badge cards)
   ========================================================================== */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.service-card{
  position: relative;
  padding: 1.8rem;
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card:hover{ border-color: var(--accent-line); box-shadow: var(--shadow-elevated); }
.service-card .icon-badge{ margin-bottom: 1.2rem; }
.service-card h3{ font-size: 1.12rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p{ color: var(--text-secondary); font-size: 0.94rem; }
.service-card .glow{
  position: absolute;
  width: 220px; height: 220px;
  left: var(--tilt-x, 70%);
  top: var(--tilt-y, 70%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47,125,251,0.18), transparent 70%);
  pointer-events: none;
  transition: left 0.15s linear, top 0.15s linear;
}
.card-link{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.card-link svg{ width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.card-link:hover{ color: var(--cyan); }
.card-link:hover svg{ transform: translateX(3px); }

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

/* ==========================================================================
   Tilt cards (parallax tilt on pointer move)
   ========================================================================== */
.tilt-card{
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.process{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process::before{
  content: "";
  position: absolute;
  top: 22px;
  left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}
.process-step{ position: relative; }
.process-num{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 8px 18px rgba(47,125,251,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.process-step h3{ font-size: 1.08rem; font-weight: 700; margin-bottom: 0.4rem; }
.process-step p{ color: var(--text-secondary); font-size: 0.94rem; }
.step-tags{ display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.step-tag{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}

@media (max-width: 860px){
  .process{ grid-template-columns: 1fr; gap: 2rem; }
  .process::before{ display: none; }
}

/* ==========================================================================
   Tech stack (homepage, "Tools we build with")
   ========================================================================== */
.stack-groups{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}
.stack-group-label{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.stack-row{ display: flex; flex-wrap: wrap; gap: 0.9rem; }
.stack-item{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.1rem 0.5rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.stack-item:hover{ border-color: var(--accent-line); background: var(--bg-elevated); }
.logo-tile{
  width: 34px;
  height: 34px;
  border-radius: 26%;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-tile img{ width: 62%; height: 62%; object-fit: contain; }
.stack-item span{ font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }

@media (max-width: 700px){
  .stack-groups{ grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Services detail grid (full card grid on the Services page)
   ========================================================================== */
.services-detail-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-detail-card{
  scroll-margin-top: 120px;
  padding: 1.8rem;
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-detail-card:hover{ border-color: var(--accent-line); box-shadow: var(--shadow-elevated); }
.service-detail-card .tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.service-detail-card h3{ font-size: 1.2rem; font-weight: 700; }
.service-detail-card p{ color: var(--text-secondary); font-size: 0.94rem; }
.service-detail-card .caps{ display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.3rem; }
.service-detail-card .caps li{
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}
.service-detail-card .caps li::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
  transform: translateY(-2px);
}

@media (max-width: 900px){ .services-detail-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .services-detail-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 3.75rem);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(47,125,251,0.22), transparent 70%);
}
.cta-band h2{ font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; max-width: 26ch; }
.cta-band p{ color: var(--text-secondary); margin-top: 0.6rem; max-width: 42ch; font-size: 0.98rem; }
.cta-band .actions{ flex-shrink: 0; }
@media (max-width: 700px){
  .cta-band{ flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--border-soft);
  padding-block: 2.25rem 1.75rem;
}
.footer-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.1rem;
}
.footer-brand{ padding-top: 0.2rem; }
.footer-brand .brand-logo{ width: auto; height: 38px; display: block; }
.footer-links{
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 3.25rem;
  flex: 0 1 auto;
}
.footer-office-label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-address{ color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; margin-top: 0.5rem; }
.footer-col{ min-width: 0; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li{ color: var(--text-muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.footer-col a{ color: var(--text-secondary); font-size: 0.92rem; transition: color 0.2s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover{ color: var(--accent-strong); }
.footer-contact-list{ margin-top: 0.75rem; }
.footer-contact-list li{ display: flex; align-items: flex-start; gap: 0.55rem; }
.footer-contact-list svg{ width: 15px; height: 15px; flex-shrink: 0; margin-top: 0.2rem; color: var(--text-muted); }
.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.footer-legal-links{ display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal-links a{ color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer-legal-links a:hover{ color: var(--accent-strong); }

@media (max-width: 760px){
  .footer-links{ grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}

/* ==========================================================================
   Sitemap page
   ========================================================================== */
.sitemap-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.sitemap-col h3{ font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.sitemap-col ul{ display: flex; flex-direction: column; gap: 0.75rem; }
.sitemap-col a{ color: var(--text-secondary); font-size: 0.96rem; transition: color 0.2s var(--ease); }
.sitemap-col a:hover{ color: var(--accent-strong); }

@media (max-width: 700px){
  .sitemap-grid{ grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Results grid (stat cards with a big gradient number)
   ========================================================================== */
.results-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.result-card{
  padding: 1.9rem;
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.result-number{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-card h3{ font-size: 1.05rem; font-weight: 700; }
.result-card p{ color: var(--text-secondary); font-size: 0.9rem; }

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

/* ==========================================================================
   Blog grid (blog index) and single post
   ========================================================================== */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card{
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.8rem;
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-soft);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.blog-card:hover{ border-color: var(--accent-line); box-shadow: var(--shadow-elevated); }
.blog-card .tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.blog-card h3{ font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.blog-card h3 a{ color: var(--text-primary); }
.blog-card h3 a:hover{ color: var(--accent-strong); }
.blog-card p{ color: var(--text-secondary); font-size: 0.92rem; }
.blog-card .blog-meta{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.blog-card .card-link{ margin-top: -0.2rem; }

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

/* ==========================================================================
   Schedule band (contact page, "Prefer to schedule a call?")
   ========================================================================== */
.schedule-band{
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  padding-block: clamp(3rem, 7vw, 4.5rem);
  text-align: center;
}
.schedule-band-inner{ max-width: 640px; margin-inline: auto; }
.schedule-band h2{
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.9rem;
}
.schedule-band p{
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}
.btn-schedule{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-schedule:hover{ background: rgba(255,255,255,0.24); transform: translateY(-1px); }

/* ==========================================================================
   Trust marquee (homepage, auto-scrolling industry strip)
   ========================================================================== */
.trust-marquee{
  padding-block: clamp(2.25rem, 5vw, 3rem);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-surface);
  overflow: hidden;
}
.trust-marquee-label{
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.marquee-wrap{
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee-wrap:hover .marquee-track{ animation-play-state: paused; }
.marquee-item{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.3rem 0.7rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item .icon-badge{ --badge-size: 34px; border-radius: 26%; }
.marquee-item span{ font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }

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

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

/* ==========================================================================
   Mind map (homepage, "One engine, five disciplines")
   ========================================================================== */
.mindmap-wrap{ max-width: 1400px; margin-inline: auto; }
.mindmap{
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 800;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1.3px) 0 0 / 28px 28px,
    var(--bg-void);
  overflow: hidden;
}
.mindmap-lines{ position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-line-solid{
  stroke: var(--accent-strong);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(47,125,251,0.75));
}
.mm-line-dotted{
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}
.mm-node{
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.mm-hub{
  flex-direction: column;
  gap: 0.3rem;
  width: 13.5%;
  aspect-ratio: 190 / 120;
  border-radius: 20px;
  background: var(--gradient-brand);
  box-shadow: 0 0 46px rgba(47,125,251,0.55), 0 0 0 1px rgba(255,255,255,0.15) inset;
  color: #fff;
  animation: mm-pulse 3.4s ease-in-out infinite;
  z-index: 2;
}
.mm-hub-eyebrow{
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.9vw, 0.68rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.mm-hub-title{ font-size: clamp(0.85rem, 1.6vw, 1.25rem); font-weight: 800; }
.mm-category{
  padding: 0.6rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 22px rgba(47,125,251,0.35);
  color: var(--text-primary);
  font-size: clamp(0.68rem, 1.1vw, 0.92rem);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 1;
}
.mm-category:hover{ box-shadow: 0 0 34px rgba(47,125,251,0.55); border-color: var(--accent-strong); transform: translate(-50%, -50%) scale(1.04); }
.mm-leaf{
  width: 9%;
  min-width: 92px;
  padding: 0.45rem 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: clamp(0.52rem, 0.78vw, 0.68rem);
  font-weight: 600;
  white-space: normal;
  line-height: 1.2;
}

@keyframes mm-pulse{
  0%, 100%{ box-shadow: 0 0 40px rgba(47,125,251,0.5), 0 0 0 1px rgba(255,255,255,0.15) inset; }
  50%{ box-shadow: 0 0 62px rgba(52,209,242,0.65), 0 0 0 1px rgba(255,255,255,0.25) inset; }
}

@media (prefers-reduced-motion: reduce){ .mm-hub{ animation: none; } }

@media (max-width: 1180px){
  .mindmap-section{ display: none; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.field{ display: flex; flex-direction: column; gap: 0.5rem; }
.field label{ font-size: 0.88rem; color: var(--text-secondary); }
.field input,
.field select,
.field textarea{
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.96rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder{ color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus{ border-color: var(--accent-strong); background: var(--bg-elevated); outline: none; }
.field textarea{ resize: vertical; min-height: 130px; }
.field select{ appearance: none; cursor: pointer; }
.field.select-wrap{ position: relative; }
.field.select-wrap::after{
  content: "";
  position: absolute;
  right: 1rem; bottom: 0.95rem;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.checkbox-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.checkbox-item{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.checkbox-item:has(input:checked){ border-color: var(--accent-line); color: var(--text-primary); background: var(--accent-soft); }
.checkbox-item input{ accent-color: var(--accent-strong); width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 500px){ .checkbox-grid{ grid-template-columns: 1fr; } }
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .field.full{ grid-column: 1 / -1; }
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }
.form-note{ font-size: 0.82rem; color: var(--text-muted); margin-top: 0.9rem; }
.form-success{
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-input);
  background: rgba(82,201,143,0.1);
  border: 1px solid rgba(82,201,143,0.35);
  color: #8fe0b8;
  font-size: 0.94rem;
}
.form-success.is-visible{ display: flex; }
.form-success svg{ flex-shrink: 0; }

/* ---------- misc content blocks (about/contact/services) ---------- */
.two-col{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px){ .two-col{ grid-template-columns: 1fr; } }

.prose p{ color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 1.1rem; max-width: 62ch; }
.prose p:last-child{ margin-bottom: 0; }
.prose strong{ color: var(--text-primary); }

.value-list{ display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border-soft); }
.value-row{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.2rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--border-soft);
}
.value-row .mark{ color: var(--accent-strong); font-family: var(--font-mono); font-size: 0.85rem; padding-top: 0.2rem; }
.value-row h3{ font-size: 1.08rem; font-weight: 700; margin-bottom: 0.35rem; }
.value-row p{ color: var(--text-secondary); font-size: 0.95rem; max-width: 58ch; }

.compare{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.compare-col{ padding: 1.9rem; border-radius: var(--radius-card); border: 1px solid var(--border-soft); background: var(--bg-surface); }
.compare-col.us{ border-color: var(--accent-line); background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface)); }
.compare-col h4{ font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.1rem; }
.compare-col.us h4{ color: var(--accent-strong); }
.compare-col ul{ display: flex; flex-direction: column; gap: 0.9rem; }
.compare-col li{ color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 700px){ .compare{ grid-template-columns: 1fr; } }

.plans{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan{
  padding: 1.9rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  display: flex; flex-direction: column; gap: 1rem;
}
.plan.featured{ border-color: var(--accent-line); background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface)); box-shadow: var(--shadow-glow); }
.plan .plan-name{ font-size: 1.1rem; font-weight: 700; }
.plan .plan-meta{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-strong); letter-spacing: 0.04em; }
.plan p{ color: var(--text-secondary); font-size: 0.92rem; }
@media (max-width: 860px){ .plans{ grid-template-columns: 1fr; } }

.info-card{
  padding: 1.9rem;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.info-row{ display: flex; gap: 0.9rem; align-items: flex-start; }
.info-row .icon-badge{ --badge-size: 38px; border-radius: 28%; }
.info-row h4{ font-size: 0.98rem; font-weight: 700; margin-bottom: 0.25rem; }
.info-row p, .info-row a{ color: var(--text-secondary); font-size: 0.92rem; }
.info-row a:hover{ color: var(--accent-strong); }
.next-steps{ display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.next-steps li{ display: flex; gap: 0.7rem; color: var(--text-secondary); font-size: 0.9rem; }
.next-steps li b{ color: var(--text-primary); font-weight: 600; }
