/* ==========================================================================
   VERTEX ZIMBABWE - DESIGN SYSTEM & STYLESHEET
   Clean Light Mode with Signature Deep-Purple Interactive Network Banners
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --ac: #1a0548;          /* Deep midnight purple */
  --ac2: #2b0f6b;         /* Royal purple */
  --ink: #17132b;         /* Deepest ink for headings */
  --tx: #4a475c;          /* Neutral dark slate for reading */
  --tx-muted: #78748d;    /* Muted text */
  --ln: #e6e4f0;          /* Subtle light border */
  --ln-light: #f0edf8;
  
  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-alt: #f3f0ff;       /* Signature soft lavender alternate */
  --bg-soft: #faf9fd;
  
  /* Brand Vibrant Accents */
  --c1: #6c3cff;          /* Electric violet */
  --c2: #00b8f0;          /* Cyan */
  --c3: #ff3d9a;          /* Hot pink */
  --c4: #ff8a1f;          /* Amber orange */
  --logo-orange: #FE5417; /* Exact orange endpoint from logoFull.svg */
  --c-green: #10b981;     /* Emerald */
  
  /* Unified interactive accent: solid cyan-blue across buttons, pills and borders. */
  --grad-primary: var(--c2);
  --grad-primary-hover: var(--c2);
  --grad-cyan: var(--c2);
  --grad-button: var(--grad-cyan);
  
  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 9999px;

  /* Consistent, classic interaction timing */
  --transition-classic: 0.3s ease-in-out;
  
  --nav-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  background-color: var(--bg-white);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--tx);
  background-color: var(--bg-white);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.15rem; }

p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  max-width: 65ch;
}

a {
  color: var(--c1);
  text-decoration: none;
  transition: color var(--transition-classic);
}

a:hover {
  color: #000000;
}

:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--tx);
  font-weight: 400;
  line-height: 1.65;
}

/* ==========================================================================
   NAVIGATION BAR (PERMANENT DARK GLASS WITH SCROLL HIDE/SHOW)
   Always stays dark midnight-purple glass with logoWhite.svg
   ========================================================================== */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(13, 4, 38, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  will-change: transform;
  display: flex;
  align-items: center;
}

/* Auto-hide on scroll down, show on scroll up */
.hd.hd-hidden {
  transform: translateY(-100%);
}

.hd .navbar {
  padding: 0;
  width: 100%;
}

.navbar-brand img {
  height: 34px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.navbar-brand:hover img {
  transform: translateY(-1px);
}

.hd .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem !important;
  position: relative;
  transition: color 0.2s ease;
}

.hd .nav-link:hover,
.hd .nav-link.on {
  color: #ffffff !important;
}

.hd .nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 4px;
  height: 2px;
  background: var(--grad-button);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd .nav-link:hover::after,
.hd .nav-link.on::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.4rem 0.65rem;
  border-radius: var(--r-sm);
}

.navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--c1);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon {
  position: relative;
  height: 14px;
  background: transparent;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before { top: 0; }
.menu-icon span { position: absolute; top: 6px; left: 0; }
.menu-icon::after { bottom: 0; }

.navbar-toggler[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .menu-icon span {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS — SMOOTH GRADIENT SYSTEM
   Light bg: gradient default → dark on hover (white text always)
   Dark bg (.net / .hd): white default → gradient on hover
   Classic smooth ease-in-out transitions throughout
   ========================================================================== */

/* BASE BUTTON */
.btn-v {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  background: var(--grad-button);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px -4px rgba(0, 184, 240, 0.32);
  transition: transform var(--transition-classic),
              box-shadow var(--transition-classic),
              color var(--transition-classic),
              border-color var(--transition-classic);
  isolation: isolate;
  z-index: 0;
}

/* Shared blue gradient layer for every filled hover state. */
.btn-v::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-button);
  opacity: 0;
  transition: opacity var(--transition-classic);
  z-index: 1;
  pointer-events: none;
}

/* Children always sit above the overlay */
.btn-v > * {
  position: relative;
  z-index: 2;
}

/* Keep button labels and icons tied to the button's contrast color. */
.btn-v span,
.btn-v i,
.btn-v svg,
.fil button span,
.fil button i,
.fil button svg,
.est-option-btn span,
.est-option-btn i,
.est-option-btn svg {
  color: inherit !important;
}

.btn-v svg,
.fil button svg,
.est-option-btn svg {
  fill: currentColor;
  stroke: currentColor;
}

/* LIGHT BACKGROUND: blue gradient with a brighter lift on hover. */
.btn-v:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(0, 184, 240, 0.42);
  color: #ffffff !important;
}
.btn-v:hover::after {
  opacity: 1;
}

/* ─── DARK BACKGROUND VARIANT (.net / .hd context) ─── */
/* Starts WHITE, gradient appears on hover */
.net .btn-v,
.page-hero .btn-v {
  background: #ffffff;
  color: #000000 !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.net .btn-v::after,
.page-hero .btn-v::after {
  background: var(--grad-button);
  opacity: 0;
}
.net .btn-v:hover,
.page-hero .btn-v:hover {
  color: #ffffff !important;
  box-shadow: 0 12px 30px -6px rgba(0, 184, 240, 0.45);
}
.net .btn-v:hover::after,
.page-hero .btn-v:hover::after {
  opacity: 1;
}

/* ─── GHOST / OUTLINE BUTTON on LIGHT backgrounds ─── */
.btn-v.btn-o {
  background: #ffffff;
  color: #000000 !important;
  border: 1.5px solid var(--ln);
  box-shadow: 0 2px 8px rgba(23, 19, 43, 0.05);
}
.btn-v.btn-o::after {
  background: var(--grad-button);
}
.btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: var(--c2);
  box-shadow: 0 10px 24px -6px rgba(0, 184, 240, 0.38);
}
.btn-v.btn-o:hover::after { opacity: 1; }

/* ─── GHOST BUTTON inside .net (dark bg) ─── */
.net .btn-v.btn-o {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.net .btn-v.btn-o::after {
  background: var(--grad-button);
}
.net .btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: var(--c2);
  box-shadow: 0 10px 24px -6px rgba(0, 184, 240, 0.38);
}
.net .btn-v.btn-o:hover::after { opacity: 1; }

/* ─── SERVICE CARD BUTTON ─── */
.tech-card .btn-v.btn-o {
  background: rgba(108, 60, 255, 0.06) !important;
  color: var(--c1) !important;
  border: 1.5px solid rgba(108, 60, 255, 0.25) !important;
  font-weight: 600;
}
.tech-card .btn-v.btn-o::after {
  background: var(--grad-button);
}
.tech-card .btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: var(--c2) !important;
  box-shadow: 0 8px 20px -4px rgba(0, 184, 240, 0.36);
}
.tech-card .btn-v.btn-o:hover::after { opacity: 1; }

/* SMALL SIZE */
.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  border-radius: 8px;
}

/* FOOTER btn-o (light bg — same as standard light btn-o) */
.ft .btn-v.btn-o {
  background: #ffffff;
  color: #000000 !important;
  border: 1.5px solid var(--ln);
}

.ft .btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: var(--c2);
}

.ft .btn-v.btn-o:hover > span,
.ft .btn-v.btn-o:hover > i,
body[data-page="contact"] .contact-box .btn-v:hover > span,
body[data-page="contact"] .contact-box .btn-v:hover > i {
  color: #ffffff !important;
}

/* NAVBAR BUTTON (.hd is dark) — white default, gradient on hover */
.hd .btn-v {
  background: #ffffff;
  color: #000000 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}
.hd .btn-v::after {
  background: var(--grad-button);
  opacity: 0;
}
.hd .btn-v:hover {
  color: #ffffff !important;
  box-shadow: 0 8px 22px -5px rgba(0, 184, 240, 0.45);
}
.hd .btn-v:hover::after {
  opacity: 1;
}

/* ==========================================================================
   NETWORK BACKGROUND (THE ATTACHED SIGNATURE BANNER THEME)
   Deep midnight purple with glowing radial violet & cyan, plus motion network
   ========================================================================== */
.net {
  position: relative;
  overflow: hidden;
  color: #cfc8ea;
  background: radial-gradient(circle at 85% 15%, rgba(108, 60, 255, 0.7), transparent 48%),
              radial-gradient(circle at 5% 95%, rgba(0, 184, 240, 0.32), transparent 42%),
              #0d0426;
}

.net canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
}

.net > .container,
.net > * {
  position: relative;
  z-index: 1;
}

.net h1, .net h2, .net h3 {
  color: #ffffff;
}

.net .lead {
  color: #d7d1f2;
}

.net .btn-o {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.net .btn-o:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
}

/* ==========================================================================
   HERO SECTION (BANNER WITH ATTACHED NETWORK THEME)
   ========================================================================== */
.hero {
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--ln);
}

.hero h1 {
  position: relative;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-align: left;
}

.hero-title-reserve,
.hero-title-live,
.hero-title-prefix,
.hero-title-gradient-line {
  display: block;
}

.hero-title-reserve {
  visibility: hidden;
  pointer-events: none;
}

.hero-title-live {
  position: absolute;
  inset: 0;
}

.hero-title-gradient {
  display: inline;
  color: var(--logo-orange);
  background: none;
  -webkit-text-fill-color: var(--logo-orange);
  -webkit-text-stroke: 0;
}

.hero-title-gradient-line {
  min-height: 1.2em;
}

.hero-type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 0.12em;
  border-radius: 999px;
  background: var(--logo-orange);
  vertical-align: -0.04em;
  animation: hero-caret-blink 0.75s steps(1, end) infinite;
}

.hero-typing-static .hero-type-cursor {
  display: none;
}

@keyframes hero-caret-blink {
  50% { opacity: 0; }
}

.hero .lead {
  margin-bottom: 2rem;
  color: #d7d1f2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item b {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item:nth-child(1) b { color: #7de3ff; }
.stat-item:nth-child(2) b { color: #ff8fc4; }
.stat-item:nth-child(3) b { color: #ffc27a; }

.stat-item span {
  font-size: 0.88rem;
  color: #a99fd0;
  font-weight: 500;
}

.hero-lottie {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background: url('assets/img/hero.svg') center / contain no-repeat;
}

.hero-lottie.is-loaded {
  background-image: none;
}

.hero-lottie svg,
.hero-lottie canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ========================================================================== 
   TECH MARQUEE / TICKER STRIP (LIGHT THEME)
   ========================================================================== */
.tech-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--ln);
  padding: 20px 0;
}

.tech-ticker-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tech-item:hover {
  color: var(--c1);
  transform: translateY(-2px);
}

.tech-item i {
  font-size: 1.3rem;
}

/* ==========================================================================
   SECTIONS & CLEAN LIGHT CARDS
   Spacious, comfortable viewable height, no crowding
   ========================================================================== */
.sec {
  padding: 76px 0;
  position: relative;
}

.sec.alt {
  background-color: var(--bg-alt);
}

.sec-header {
  margin-bottom: 3rem;
}

.sec-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.sec-title-tag {
  color: var(--c1);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  display: block;
}

/* Animated solid-blue ring shared by the site's main card containers. */
@property --card-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:where(
  .tech-card,
  .work-item,
  .process-step,
  .estimator-card,
  .contact-box,
  .info-card,
  .terminal-window
) {
  position: relative;
}

:where(
  .tech-card,
  .work-item,
  .process-step,
  .estimator-card,
  .contact-box,
  .info-card,
  .terminal-window
)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 3px;
  border-radius: inherit;
  background: var(--c2);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-classic);
}

:where(
  .tech-card,
  .work-item,
  .process-step,
  .estimator-card,
  .contact-box,
  .info-card,
  .terminal-window
):hover::before {
  opacity: 1;
}

/* Keep the landing-page estimator visually static on hover. */
body[data-page="index"] .estimator-card::before {
  display: none;
}

/* Services and Contact containers stay static; their controls remain interactive. */
body[data-page="services"] .tech-card::before,
body[data-page="contact"] .contact-box::before,
body[data-page="contact"] .info-card::before {
  display: none;
}

body[data-page="services"] .tech-card:hover {
  border-color: var(--ln);
  transform: none;
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
}

body[data-page="services"] .tech-card:hover .card-icon-box,
body[data-page="services"] .tech-card:hover .card-img-wrap img {
  transform: none;
}

/* Clean White Tech Card */
.tech-card {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-md);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  border-color: var(--c1);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(108, 60, 255, 0.16);
}

.card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.tech-card:hover .card-icon-box {
  transform: scale(1.08);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
}

.card-title-row .card-icon-box {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.tech-card .card-title-row h3 {
  margin: 0;
}

.icon-cyan { background: var(--c2); }
.icon-violet { background: var(--c1); }
.icon-pink { background: var(--c3); }
.icon-amber { background: var(--c4); }
.icon-emerald { background: var(--c-green); }

.tech-card h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.tech-card p {
  color: var(--tx);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.tech-card .card-short-description {
  color: var(--tx-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 4.05rem;
  margin-bottom: 1rem;
}

/* Landing-page service cards share one centered, readable content axis. */
.home-services .card-title-row {
  justify-content: center;
}

.home-services .card-title-row h3 {
  max-width: 18ch;
  text-align: left;
  text-wrap: balance;
}

.home-services .card-short-description {
  width: 100%;
  max-width: 32ch;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  text-wrap: pretty;
}

.home-services .card-short-description br {
  display: none;
}

.home-services .tag-list {
  justify-content: center;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--ln-light);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-pill {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 500;
  border: 1px solid #d1d5db;
}

/* ==========================================================================
   PORTFOLIO / WORK SHOWCASE (CLEAN LIGHT CARDS)
   ========================================================================== */
.work-item {
  --work-card-accent: var(--grad-cyan);
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  border: 1px solid #ddd8ed;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(35, 20, 73, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-item:hover,
.work-item:focus-within {
  border-color: rgba(108, 60, 255, 0.48);
  transform: translateY(-7px);
  box-shadow: 0 24px 48px -12px rgba(70, 32, 145, 0.28);
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(108, 60, 255, 0.12);
}

.work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(13, 4, 38, 0.34) 100%);
  transition: opacity var(--transition-classic);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition-classic);
}

.work-item:hover .work-thumb img,
.work-item:focus-within .work-thumb img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.03);
}

.work-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--work-card-accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(13, 4, 38, 0.24);
  transition: transform var(--transition-classic), box-shadow var(--transition-classic);
}

.work-item:hover .work-badge,
.work-item:focus-within .work-badge {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 4, 38, 0.32);
}

.work-body {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(108, 60, 255, 0.07), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
}

.work-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 68px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--work-card-accent);
  transform: translateX(-50%);
}

.work-body h3 {
  font-size: 1.24rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
  text-wrap: balance;
}

.work-body p {
  width: 100%;
  max-width: 36ch;
  margin-right: auto;
  font-size: 0.92rem;
  color: var(--tx);
  margin-bottom: 1.2rem;
  margin-left: auto;
  flex-grow: 1;
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
}

.work-body .tag-list {
  justify-content: center;
  margin-top: 0;
}

.work-body .tag-pill {
  padding: 4px 9px;
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 600;
}

.work-body > .d-flex {
  width: 100%;
  justify-content: center !important;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ln-light);
  text-align: center;
}

.work-body > .d-flex > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tx-muted) !important;
  font-size: 0.69rem !important;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.work-body > .d-flex > span::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--work-card-accent);
  box-shadow: 0 0 0 3px rgba(108, 60, 255, 0.09);
}

.work-body > .d-flex > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.48rem 0.78rem;
  border-radius: 8px;
  background: var(--work-card-accent);
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  box-shadow: 0 7px 16px -6px rgba(70, 32, 145, 0.48);
  transition: transform var(--transition-classic), box-shadow var(--transition-classic), filter var(--transition-classic);
}

.work-body > .d-flex > a:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 20px -7px rgba(70, 32, 145, 0.62);
}

/* Portfolio Filters */
.fil {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.2rem;
}

.fil button {
  background: #ffffff;
  border: 1px solid var(--ln);
  color: var(--ink);
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-classic),
              border-color var(--transition-classic),
              color var(--transition-classic),
              box-shadow var(--transition-classic),
              transform var(--transition-classic);
}

.fil button:hover {
  background: var(--grad-button);
  color: #ffffff;
  border-color: var(--c2);
  box-shadow: 0 8px 18px -7px rgba(0, 184, 240, 0.45);
  transform: translateY(-1px);
}

.fil button.on {
  background: var(--grad-button);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 184, 240, 0.32);
}

.fil button.on:hover {
  background: var(--grad-button);
  border-color: var(--c2);
}

/* ==========================================================================
   INTERACTIVE ESTIMATOR (CLEAN LIGHT CONTAINER)
   ========================================================================== */
.estimator-card {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(23, 19, 43, 0.08);
}

.est-option-btn {
  background: var(--bg-soft);
  border: 1px solid var(--ln);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-classic),
              border-color var(--transition-classic),
              color var(--transition-classic),
              box-shadow var(--transition-classic),
              transform var(--transition-classic);
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.est-option-btn:hover {
  background: var(--grad-button);
  border-color: var(--c2);
  color: #ffffff;
  box-shadow: 0 8px 18px -7px rgba(0, 184, 240, 0.42);
  transform: translateY(-1px);
}

.est-option-btn.selected {
  background: var(--grad-button);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 184, 240, 0.28);
}

.est-option-btn.selected:hover {
  background: var(--grad-button);
  border-color: var(--c2);
  color: #ffffff;
  box-shadow: 0 8px 18px -7px rgba(0, 184, 240, 0.42);
}

.est-summary-box {
  background: var(--bg-alt);
  border: 1px solid rgba(108, 60, 255, 0.18);
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   SIMULATED TERMINAL (CLEAN SLATE & DEEP PURPLE CONTRAST)
   ========================================================================== */
.terminal-window {
  background: var(--ac);
  border-radius: 14px;
  box-shadow: 0 25px 60px -20px rgba(26, 5, 72, 0.5);
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.75;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-red { background: #ff5f56; }
.term-yellow { background: #ffbd2e; }
.term-green { background: #27c93f; }

.terminal-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  margin-left: 8px;
}

.terminal-body {
  padding: 18px 20px;
  color: #e9e4fb;
  min-height: 240px;
  white-space: pre-wrap;
}

.terminal-body .cmd { color: #b9a6ff; font-weight: 600; }
.terminal-body .success { color: #9be7b0; font-weight: 600; }
.terminal-body .info { color: #7de3ff; }

.cur {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #ffffff;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

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

/* ==========================================================================
   4-STAGE DELIVERY TIMELINE (CLEAN LIGHT CARDS)
   ========================================================================== */
.process-step {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-md);
  padding: 1.75rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
}

.process-step:hover {
  border-color: var(--c1);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(108, 60, 255, 0.12);
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
}

.process-step h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--tx);
}

/* ==========================================================================
   SUBPAGE HEADER HERO (ATTACHED BANNER THEME)
   ========================================================================== */
.page-hero {
  padding: 115px 0 65px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.page-hero .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 58ch;
  color: #d7d1f2;
}

/* ==========================================================================
   ABOUT STORY
   ========================================================================== */
.about-story {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 184, 240, 0.08), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(108, 60, 255, 0.08), transparent 30%),
    var(--bg-white);
}

.about-story-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid rgba(108, 60, 255, 0.13);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 255, 0.96));
  box-shadow: 0 26px 70px -38px rgba(26, 5, 72, 0.4);
}

.about-story-shell::before,
.about-story-shell::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.about-story-shell::before {
  top: -150px;
  right: -110px;
  background: rgba(0, 184, 240, 0.11);
}

/* Carry the same corner glow into each card without blocking interactions. */
.home-services .tech-card,
.home-process .process-step {
  isolation: isolate;
  overflow: hidden;
}

.home-services .tech-card::after,
.home-process .process-step::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -110px;
  z-index: 2;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0, 184, 240, 0.11);
  filter: blur(10px);
  pointer-events: none;
}

.home-services .tech-card > *,
.home-process .process-step > * {
  position: relative;
  z-index: 1;
}

.about-story-shell::after {
  bottom: -170px;
  left: 34%;
  background: rgba(108, 60, 255, 0.1);
}

.about-story .col-lg-6 {
  display: flex;
}

.about-story-visual,
.about-story-copy {
  width: 100%;
}

.about-story-image-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: var(--ac);
  box-shadow: 0 24px 48px -24px rgba(26, 5, 72, 0.58);
}

.about-story-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.about-story-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter var(--transition-classic);
}

.about-story-image-frame:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.about-story-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 4, 38, 0.04) 38%, rgba(13, 4, 38, 0.82) 100%),
    linear-gradient(135deg, rgba(0, 184, 240, 0.08), transparent 44%);
  pointer-events: none;
}

.about-story-location {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--r-full);
  background: rgba(13, 4, 38, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(13, 4, 38, 0.2);
}

.about-story-location i {
  color: #7de3ff;
}

.about-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.25rem, 1vw, 0.8rem) 0;
}

.about-story-copy h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.about-story-lead {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.72;
}

.about-story-detail {
  margin-bottom: 0;
  color: var(--tx);
  line-height: 1.75;
}

.about-story-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.about-story-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(108, 60, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px -18px rgba(26, 5, 72, 0.48);
  transition: transform var(--transition-classic),
              border-color var(--transition-classic),
              box-shadow var(--transition-classic);
}

.about-story-stat::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--grad-button);
}

.about-story-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 184, 240, 0.38);
  box-shadow: 0 16px 30px -18px rgba(0, 184, 240, 0.48);
}

.about-story-stat-icon {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(0, 184, 240, 0.14);
  color: var(--c2);
  font-size: 1.05rem;
}

.about-story-stat-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.about-story-stat-copy strong {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.18rem;
  background: var(--grad-button);
  color: var(--c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-story-stat-copy span {
  color: var(--tx-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 991.98px) {
  .about-story-image-frame {
    min-height: 390px;
  }

  .about-story-copy {
    padding: 0.5rem 0.35rem 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .about-story {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about-story-shell {
    padding: 0.65rem;
    border-radius: 22px;
  }

  .about-story-image-frame {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 17px;
  }

  .about-story-location {
    top: 12px;
    right: 12px;
    padding: 0.4rem 0.58rem;
    font-size: 0.67rem;
  }

  .about-story-copy {
    padding: 0.55rem 0.35rem 0.3rem;
    text-align: center;
  }

  .about-story-copy h2 {
    max-width: none;
    margin-bottom: 0.85rem;
  }

  .about-story-lead,
  .about-story-detail {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .about-story-stats {
    gap: 0.6rem;
    margin-top: 1.2rem;
  }

  .about-story-stat {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem 0.5rem;
    text-align: center;
  }

  .about-story-stat-copy {
    align-items: center;
  }

  .about-story-stat-copy strong {
    font-size: 1.45rem;
  }

  .about-story-stat-copy span {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   CONTACT FORM & PREVIEWS
   ========================================================================== */
.contact-box {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(23, 19, 43, 0.06);
}

.form-label {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  background: #ffffff;
  border: 1px solid #cfcddb;
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  background: #ffffff;
  border-color: var(--c1);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(108, 60, 255, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: var(--tx-muted);
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-md);
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
}

.info-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.4rem;
}

.info-card-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--bg-alt);
  color: var(--c1);
}

/* ==========================================================================
   CALL TO ACTION BANNER (EXACT ATTACHED SCREENSHOT THEME)
   ========================================================================== */
.cta-banner {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.cta-banner p.lead {
  color: #cfc8ea;
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* ==========================================================================
   FOOTER (CLEAN LIGHT THEME WITH UPDATED LINKS)
   ========================================================================== */
.ft {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--ln);
  padding: 68px 0 28px;
  font-size: 0.95rem;
}

.ft .logo-wrap img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
}

.ft h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.ft ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ft li {
  margin-bottom: 0.65rem;
}

.ft a {
  color: var(--tx);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ft a:not(.btn-v):hover {
  color: var(--c1);
  padding-left: 4px;
}

.ft-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
  color: var(--tx);
}

.ft-contact-item i {
  color: var(--c1);
  font-size: 1.1rem;
}

.ft-bottom {
  border-top: 1px solid var(--ln);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--tx-muted);
}

.ft-bottom a {
  color: var(--tx);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-bottom a:hover {
  color: var(--c1);
}

/* Floating WhatsApp Button */
.wa-floating-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

.wa-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: waPing 2.2s infinite;
  z-index: -1;
}

@keyframes waPing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Reveal motion on scroll */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-type-cursor {
    display: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .hd .container {
    position: relative;
  }

  .hd .navbar {
    min-height: var(--nav-height);
  }

  .hd .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    max-height: calc(100dvh - var(--nav-height) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(13, 4, 38, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-md);
    padding: 1rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .hd .navbar-nav {
    width: 100%;
    margin: 0 0 0.75rem !important;
  }

  .hd .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
  }

  .hd .nav-link:hover,
  .hd .nav-link.on {
    background: rgba(255, 255, 255, 0.08);
  }

  .hd .navbar-collapse > .d-flex,
  .hd .navbar-collapse .btn-v {
    width: 100%;
  }

  .hero-stats {
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-height: 66px;
  }

  .sec {
    padding: 52px 0;
  }

  .estimator-card,
  .contact-box {
    padding: 1.4rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  body[data-page="index"] .container {
    --bs-gutter-x: 2.25rem;
    padding-right: 1.125rem;
    padding-left: 1.125rem;
  }

  /* Keep the navigation usable even while the Bootstrap bundle is loading. */
  body[data-page="index"] .hd .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body[data-page="index"] .hd .navbar-brand {
    margin-right: 0;
  }

  body[data-page="index"] .hd .navbar-brand img {
    height: 30px;
    max-width: 168px;
  }

  body[data-page="index"] .hd .navbar-toggler {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
  }

  body[data-page="index"] .hd .navbar-collapse:not(.show) {
    display: none;
  }

  body[data-page="index"] .hd .navbar-collapse {
    left: 0;
    right: 0;
    padding: 0.75rem;
    border-radius: 12px;
  }

  body[data-page="index"] .hd .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero: natural content height avoids clipping and tiny type on short phones. */
  body[data-page="index"] .hero {
    min-height: 0;
    padding: calc(var(--nav-height) + 34px) 0 34px;
    text-align: left;
  }

  body[data-page="index"] .hero > .container > .row {
    display: grid;
    grid-template-areas:
      "title"
      "art"
      "actions"
      "stats";
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin: 0;
  }

  body[data-page="index"] .hero-copy {
    display: contents;
  }

  body[data-page="index"] .hero h1 {
    grid-area: title;
    width: 100%;
    max-width: 16ch;
    margin: 0 auto;
    font-size: clamp(2rem, 9.4vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-align: center;
  }

  body[data-page="index"] .hero-animation-col {
    grid-area: art;
    width: 100%;
    margin: -2rem 0 -3.75rem;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  body[data-page="index"] .hero-lottie {
    width: min(94vw, 380px);
    max-height: none;
  }

  body[data-page="index"] .hero .lead {
    display: none;
  }

  body[data-page="index"] .hero-actions {
    grid-area: actions;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem !important;
    width: 100%;
    margin: 0 !important;
  }

  body[data-page="index"] .hero-actions .btn-v {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.7rem 0.75rem;
    font-size: 0.86rem;
    line-height: 1.2;
    white-space: normal;
  }

  body[data-page="index"] .hero-stats {
    grid-area: stats;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    width: 100%;
    margin: 0.2rem 0 0;
    padding-top: 1rem;
  }

  body[data-page="index"] .stat-item {
    min-width: 0;
  }

  body[data-page="index"] .stat-item b {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
  }

  body[data-page="index"] .stat-item span {
    display: block;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  /* A compact horizontal tech strip keeps every item without adding height. */
  body[data-page="index"] .tech-ribbon {
    display: block;
    padding: 14px 0;
    overflow: hidden;
  }

  body[data-page="index"] .tech-ribbon .container {
    padding-right: 0;
  }

  body[data-page="index"] .tech-ticker-items {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 2px 1.125rem 5px 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body[data-page="index"] .tech-ticker-items::-webkit-scrollbar,
  body[data-page="index"] .home-services .row::-webkit-scrollbar,
  body[data-page="index"] .home-work .row::-webkit-scrollbar {
    display: none;
  }

  body[data-page="index"] .tech-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--ln);
    border-radius: 999px;
    background: var(--bg-soft);
    font-size: 0.78rem;
  }

  body[data-page="index"] .tech-item i {
    font-size: 1rem;
  }

  body[data-page="index"] .sec {
    padding: 48px 0;
  }

  body[data-page="index"] .sec-header {
    margin-bottom: 1.6rem;
  }

  body[data-page="index"] .sec-header p {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  body[data-page="index"] .sec-title-tag {
    margin-bottom: 0.45rem;
    font-size: 0.73rem;
    letter-spacing: 0.11em;
  }

  body[data-page="index"] .sec h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.6rem, 7vw, 1.85rem);
    line-height: 1.15;
  }

  /* Swipeable service cards use every existing image without a six-card stack. */
  body[data-page="index"] .home-services .row,
  body[data-page="index"] .home-work > .container > .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.9rem;
    width: auto;
    margin-right: -1.125rem;
    margin-left: -1.125rem;
    padding: 0 1.125rem 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1.125rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body[data-page="index"] .home-services .row > .rv,
  body[data-page="index"] .home-work > .container > .row > .rv {
    flex: 0 0 min(84vw, 330px);
    width: min(84vw, 330px);
    max-width: min(84vw, 330px);
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body[data-page="index"] .home-services .tech-card {
    padding: 0.85rem;
  }

  body[data-page="index"] .home-services .card-img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.9rem;
  }

  body[data-page="index"] .home-services .card-title-row {
    gap: 0.7rem;
    margin-bottom: 0.65rem;
  }

  body[data-page="index"] .home-services .card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.15rem;
  }

  body[data-page="index"] .home-services .card-title-row h3 {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  body[data-page="index"] .home-services .card-short-description {
    min-height: 0;
    margin-bottom: 0.85rem;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  body[data-page="index"] .home-services .card-short-description br {
    display: none;
  }

  body[data-page="index"] .home-services .tag-list {
    gap: 5px;
  }

  body[data-page="index"] .home-services .tag-pill {
    padding: 2px 7px;
    font-size: 0.7rem;
  }

  body[data-page="index"] .home-services .mt-5 {
    margin-top: 1.15rem !important;
  }

  body[data-page="index"] .home-services .btn-v {
    width: 100%;
    min-height: 48px;
  }

  body[data-page="index"] .home-estimator .estimator-card {
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(23, 19, 43, 0.08);
  }

  body[data-page="index"] .home-estimator .estimator-card > .row {
    --bs-gutter-y: 1.15rem;
    margin-right: -0.35rem;
    margin-left: -0.35rem;
  }

  body[data-page="index"] .home-estimator .estimator-card > .row > * {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
  }

  body[data-page="index"] .home-estimator h4 {
    font-size: 0.98rem;
    margin-bottom: 0.7rem !important;
  }

  body[data-page="index"] .home-estimator .est-option-btn {
    min-height: 48px;
    padding: 0.55rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  body[data-page="index"] .home-estimator .est-option-btn > i:last-child {
    flex: 0 0 auto;
    margin-left: 0.35rem;
  }

  body[data-page="index"] .home-estimator .est-summary-box {
    min-height: 0;
    padding: 1.1rem;
  }

  body[data-page="index"] .home-estimator .est-summary-box h3 {
    font-size: 1.15rem;
  }

  body[data-page="index"] .home-work .sec-header {
    align-items: stretch !important;
    gap: 0.9rem !important;
  }

  body[data-page="index"] .home-work .sec-header .btn-v {
    width: 100%;
    min-height: 46px;
  }

  body[data-page="index"] .home-work .work-thumb {
    aspect-ratio: 16 / 9;
  }

  body[data-page="index"] .home-work .work-body {
    padding: 1rem;
  }

  body[data-page="index"] .home-work .work-body h3 {
    font-size: 1.1rem;
  }

  body[data-page="index"] .home-work .work-body p {
    display: -webkit-box;
    margin-bottom: 0.9rem;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-page="index"] .home-work .work-body > .d-flex {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  body[data-page="index"] .home-process .row {
    --bs-gutter-y: 0.75rem;
  }

  body[data-page="index"] .home-process .process-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 0.75rem;
    padding: 1rem;
  }

  body[data-page="index"] .home-process .step-num {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1.45rem;
  }

  body[data-page="index"] .home-process .process-step h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  body[data-page="index"] .home-process .process-step p {
    grid-column: 2;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  body[data-page="index"] .home-advantages > .container > .row {
    --bs-gutter-y: 1.75rem;
  }

  body[data-page="index"] .home-advantages .col-lg-6:first-child > p {
    margin-bottom: 1.15rem !important;
  }

  body[data-page="index"] .home-advantages .row.g-3 {
    --bs-gutter-y: 0.7rem;
  }

  body[data-page="index"] .home-advantages .row.g-3 > div > .d-flex {
    height: 100%;
    padding: 0.85rem;
    border: 1px solid var(--ln);
    border-radius: 12px;
    background: var(--bg-soft);
  }

  body[data-page="index"] .home-advantages .row.g-3 .fs-4 {
    font-size: 1.2rem !important;
  }

  body[data-page="index"] .home-advantages .row.g-3 h5 {
    font-size: 0.95rem;
  }

  body[data-page="index"] .home-advantages .row.g-3 p {
    font-size: 0.8rem !important;
    line-height: 1.4;
  }

  body[data-page="index"] .terminal-window {
    font-size: 0.74rem;
    line-height: 1.55;
  }

  body[data-page="index"] .terminal-body {
    min-height: 190px;
    padding: 14px 16px;
  }

  body[data-page="index"] .home-cta {
    padding: 44px 0;
    text-align: center;
  }

  body[data-page="index"] .home-cta .row {
    --bs-gutter-y: 1.25rem;
  }

  body[data-page="index"] .home-cta h2 {
    font-size: 1.75rem;
  }

  body[data-page="index"] .home-cta .lead {
    margin: 0 auto;
    font-size: 0.95rem;
  }

  body[data-page="index"] .home-cta .btn-v {
    width: 100%;
    min-height: 48px;
  }

  body[data-page="index"] .ft {
    padding: 48px 0 22px;
  }

  body[data-page="index"] .ft > .container > .row {
    --bs-gutter-y: 2rem;
  }

  body[data-page="index"] .ft .logo-wrap img {
    height: 34px;
    margin-bottom: 0.9rem;
  }

  body[data-page="index"] .ft .col-lg-5 > p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  body[data-page="index"] .ft .col-lg-5 > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem !important;
    margin-top: 1rem !important;
  }

  body[data-page="index"] .ft .col-lg-5 > .d-flex .btn-v {
    width: 100%;
    min-height: 46px;
    padding: 0.6rem;
    font-size: 0.78rem;
  }

  body[data-page="index"] .ft h4 {
    margin-bottom: 0.85rem;
  }

  body[data-page="index"] .ft li {
    margin-bottom: 0.5rem;
  }

  body[data-page="index"] .ft-contact-item {
    align-items: flex-start;
    margin-bottom: 0.65rem;
    font-size: 0.87rem;
    line-height: 1.45;
  }

  body[data-page="index"] .ft-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.82rem;
  }

  body[data-page="index"] .wa-floating-btn {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.45rem;
  }
}

@media (max-width: 360px) {
  body[data-page="index"] .hero-actions,
  body[data-page="index"] .ft .col-lg-5 > .d-flex {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .hero h1 {
    font-size: 1.9rem;
  }

  body[data-page="index"] .hero-lottie {
    width: min(98vw, 330px);
  }
}

@media (hover: none) and (max-width: 767px) {
  .work-item:hover,
  .work-item:focus-within {
    transform: none;
  }

  .work-item:hover .work-thumb img,
  .work-item:focus-within .work-thumb img,
  .work-item:hover .work-badge,
  .work-item:focus-within .work-badge {
    transform: none;
    filter: none;
  }

  body[data-page="index"] :where(.tech-card, .work-item, .process-step, .terminal-window)::before {
    display: none;
  }

  body[data-page="index"] :where(.tech-card, .work-item, .process-step):hover {
    transform: none;
  }
}
