/* ==========================================================================
   ADAIS — Main stylesheet
   Built on Bootstrap 5.3. Organised as:
   1. Design tokens   2. Base   3. Utilities   4. Navigation   5. Hero
   6. Sections        7. Timeline   8. Cards & products   9. Portfolio
   10. Testimonials   11. FAQ & forms   12. Footer   13. Motion   14. Responsive
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  --ad-primary: #0077B6;
  --ad-primary-rgb: 0, 119, 182;
  --ad-navy: #023E8A;
  --ad-navy-rgb: 2, 62, 138;
  --ad-logo: #0000FF;
  --ad-sky: #90E0EF;
  --ad-foam: #CAF0F8;

  --ad-bg: #FFFFFF;
  --ad-surface: #F3F8FC;
  --ad-surface-2: #E6F1FA;
  --ad-ink: #0A2342;
  --ad-muted: #4F6278;
  --ad-line: rgba(2, 62, 138, .12);

  --ad-glass-bg: rgba(255, 255, 255, .6);
  --ad-glass-strong: rgba(255, 255, 255, .82);
  --ad-glass-border: rgba(255, 255, 255, .75);
  --ad-glass-shadow: 0 10px 40px -12px rgba(2, 62, 138, .22);
  --ad-glass-blur: 18px;

  --ad-hero-from: #FFFFFF;
  --ad-hero-to: #E3F4FB;
  --ad-blob-1: #0077B6;
  --ad-blob-2: #90E0EF;
  --ad-blob-3: #023E8A;
  --ad-blob-opacity: .38;

  --ad-font-display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ad-font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ad-radius-xl: 2rem;
  --ad-radius-lg: 1.25rem;
  --ad-radius: .875rem;
  --ad-radius-sm: .5rem;

  --ad-nav-h: 76px;
  --ad-section-y: clamp(4rem, 8vw, 6.5rem);
  --ad-ease: cubic-bezier(.22, .61, .36, 1);
  --ad-speed: .35s;

  /* Bootstrap bridges */
  --bs-primary: var(--ad-primary);
  --bs-primary-rgb: var(--ad-primary-rgb);
  --bs-body-bg: var(--ad-bg);
  --bs-body-color: var(--ad-ink);
  --bs-body-font-family: var(--ad-font-body);
  --bs-link-color: var(--ad-primary);
  --bs-link-color-rgb: var(--ad-primary-rgb);
  --bs-link-hover-color: var(--ad-navy);
  --bs-link-hover-color-rgb: var(--ad-navy-rgb);
  --bs-border-color: var(--ad-line);
  --bs-secondary-color: var(--ad-muted);
  --bs-emphasis-color: var(--ad-ink);
}

[data-bs-theme="dark"] {
  --ad-bg: #03142E;
  --ad-surface: #071D3D;
  --ad-surface-2: #0B2750;
  --ad-ink: #E7F2FB;
  --ad-muted: #A3B7CC;
  --ad-line: rgba(144, 224, 239, .14);

  --ad-glass-bg: rgba(8, 31, 66, .55);
  --ad-glass-strong: rgba(6, 25, 54, .85);
  --ad-glass-border: rgba(144, 224, 239, .16);
  --ad-glass-shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);

  --ad-hero-from: #03142E;
  --ad-hero-to: #052452;
  --ad-blob-1: #0077B6;
  --ad-blob-2: #00B4D8;
  --ad-blob-3: #0000FF;
  --ad-blob-opacity: .3;

  --bs-body-bg: var(--ad-bg);
  --bs-body-color: var(--ad-ink);
  --bs-link-color: #48CAE4;
  --bs-link-color-rgb: 72, 202, 228;
  --bs-link-hover-color: #90E0EF;
  --bs-link-hover-color-rgb: 144, 224, 239;
  --bs-border-color: var(--ad-line);
  --bs-secondary-color: var(--ad-muted);
  --bs-emphasis-color: var(--ad-ink);
}

/* 2. Base ------------------------------------------------------------------ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ad-nav-h) + 1rem);
}

body {
  font-family: var(--ad-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--ad-bg);
  color: var(--ad-ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--ad-speed) var(--ad-ease), color var(--ad-speed) var(--ad-ease);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ad-font-display);
  color: var(--ad-ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.display-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -.035em;
  line-height: 1.02;
  font-weight: 800;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  letter-spacing: -.03em;
  max-width: 20ch;
}

.section-intro {
  color: var(--ad-muted);
  font-size: 1.125rem;
  max-width: 60ch;
}

.text-muted-ad { color: var(--ad-muted) !important; }
.measure { max-width: 62ch; }

a { transition: color var(--ad-speed) var(--ad-ease); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--ad-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ad-primary); color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--ad-navy);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--ad-radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Utilities -------------------------------------------------------------- */
.section { padding-block: var(--ad-section-y); position: relative; }
.section-surface { background: var(--ad-surface); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.glass {
  background: var(--ad-glass-bg);
  -webkit-backdrop-filter: blur(var(--ad-glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--ad-glass-blur)) saturate(160%);
  border: 1px solid var(--ad-glass-border);
  box-shadow: var(--ad-glass-shadow);
  border-radius: var(--ad-radius-lg);
}

.icon-tile {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--ad-radius);
  background: rgba(var(--ad-primary-rgb), .1);
  color: var(--ad-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}
[data-bs-theme="dark"] .icon-tile { background: rgba(72, 202, 228, .12); color: #48CAE4; }

.tag {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(var(--ad-primary-rgb), .1);
  color: var(--ad-navy);
}
[data-bs-theme="dark"] .tag { background: rgba(72, 202, 228, .14); color: var(--ad-sky); }

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.5rem;
  transition: transform .2s var(--ad-ease), box-shadow .2s var(--ad-ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  --bs-btn-bg: var(--ad-primary);
  --bs-btn-border-color: var(--ad-primary);
  --bs-btn-hover-bg: var(--ad-navy);
  --bs-btn-hover-border-color: var(--ad-navy);
  --bs-btn-active-bg: var(--ad-navy);
  --bs-btn-active-border-color: var(--ad-navy);
  --bs-btn-disabled-bg: var(--ad-primary);
  --bs-btn-disabled-border-color: var(--ad-primary);
  --bs-btn-focus-shadow-rgb: var(--ad-primary-rgb);
  box-shadow: 0 8px 22px -10px rgba(var(--ad-primary-rgb), .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(var(--ad-navy-rgb), .8); }

.btn-glass {
  color: var(--ad-ink);
  background: var(--ad-glass-bg);
  border: 1px solid var(--ad-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { color: var(--ad-primary); background: var(--ad-glass-strong); transform: translateY(-2px); }

.btn-light-solid { background: #fff; color: var(--ad-navy); border: 0; }
.btn-light-solid:hover { background: var(--ad-foam); color: var(--ad-navy); transform: translateY(-2px); }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.link-arrow i { transition: transform .25s var(--ad-ease); font-size: .85em; }
.link-arrow:hover i { transform: translateX(4px); }

/* 4. Navigation ------------------------------------------------------------- */
.site-nav {
  height: var(--ad-nav-h);
  transition: background-color var(--ad-speed) var(--ad-ease), box-shadow var(--ad-speed) var(--ad-ease), border-color var(--ad-speed);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled,
.site-nav.is-open {
  background: var(--ad-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-bottom-color: var(--ad-line);
  box-shadow: 0 6px 24px -18px rgba(2, 62, 138, .5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--ad-font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .04em;
  color: var(--ad-navy);
}
.brand:hover { color: var(--ad-navy); }
[data-bs-theme="dark"] .brand,
[data-bs-theme="dark"] .brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; transition: transform .4s var(--ad-ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.site-nav .nav-link {
  font-weight: 500;
  color: var(--ad-ink);
  padding: .5rem .9rem !important;
  border-radius: 999px;
  position: relative;
}
.site-nav .nav-link:hover { color: var(--ad-primary); }
.site-nav .nav-link.active {
  color: var(--ad-primary);
  background: rgba(var(--ad-primary-rgb), .09);
}
[data-bs-theme="dark"] .site-nav .nav-link.active,
[data-bs-theme="dark"] .site-nav .nav-link:hover { color: #48CAE4; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ad-line);
  background: var(--ad-glass-bg);
  color: var(--ad-ink);
  transition: transform .4s var(--ad-ease), background-color .2s;
}
.theme-toggle:hover { transform: rotate(18deg); background: var(--ad-glass-strong); }
.theme-toggle .fa-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
[data-bs-theme="dark"] .theme-toggle .fa-moon { display: none; }

.navbar-toggler {
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius-sm);
  padding: .45rem .6rem;
  color: var(--ad-ink);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(var(--ad-primary-rgb), .3); }

/* 5. Hero ------------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, var(--ad-hero-from) 10%, var(--ad-hero-to) 100%);
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--ad-nav-h) + 3rem);
  padding-bottom: 4rem;
}
.page-hero {
  padding-top: calc(var(--ad-nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Animated ocean blobs */
.ocean { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ocean span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--ad-blob-opacity);
  will-change: transform;
}
.ocean span:nth-child(1) {
  width: 42vw; height: 42vw; min-width: 320px; min-height: 320px;
  background: var(--ad-blob-1);
  top: -12%; right: -8%;
  animation: drift-a 22s ease-in-out infinite alternate;
}
.ocean span:nth-child(2) {
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px;
  background: var(--ad-blob-2);
  bottom: -14%; left: -6%;
  animation: drift-b 26s ease-in-out infinite alternate;
}
.ocean span:nth-child(3) {
  width: 22vw; height: 22vw; min-width: 180px; min-height: 180px;
  background: var(--ad-blob-3);
  top: 38%; left: 42%;
  opacity: calc(var(--ad-blob-opacity) * .7);
  animation: drift-c 30s ease-in-out infinite alternate;
}
.ocean::after {
  /* faint grid gives the "engineering" texture behind the glass */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--ad-navy-rgb), .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ad-navy-rgb), .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
[data-bs-theme="dark"] .ocean::after {
  background-image:
    linear-gradient(rgba(144, 224, 239, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 224, 239, .06) 1px, transparent 1px);
}

@keyframes drift-a { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(14vw, -8vh) scale(1.2); } }
@keyframes drift-c { to { transform: translate(-10vw, -14vh) scale(.85); } }

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ad-muted);
  max-width: 46ch;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  color: var(--ad-muted);
  font-size: .95rem;
}
.hero-points i { color: var(--ad-primary); margin-right: .4rem; }

/* Deployment panel — the signature visual of the hero */
.deploy-panel { padding: 0; overflow: hidden; max-width: 460px; margin-inline: auto; }
.deploy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ad-line);
  font-size: .9rem;
}
.deploy-status { flex-shrink: 0; }
.deploy-head strong { font-family: var(--ad-font-display); }
.deploy-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: #0a8a5a;
}
[data-bs-theme="dark"] .deploy-status { color: #4ade9b; }
.deploy-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 138, 90, .5); }
  70% { box-shadow: 0 0 0 8px rgba(10, 138, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 138, 90, 0); }
}
.deploy-steps { list-style: none; margin: 0; padding: 1rem 1.25rem 1.25rem; }
.deploy-steps li {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(6px);
  animation: step-in .5s var(--ad-ease) forwards;
}
.deploy-steps li + li { border-top: 1px dashed var(--ad-line); }
.deploy-steps li:nth-child(1) { animation-delay: .5s; }
.deploy-steps li:nth-child(2) { animation-delay: .9s; }
.deploy-steps li:nth-child(3) { animation-delay: 1.3s; }
.deploy-steps li:nth-child(4) { animation-delay: 1.7s; }
.deploy-steps li:nth-child(5) { animation-delay: 2.1s; }
.deploy-steps .fa-circle-check { color: var(--ad-primary); }
[data-bs-theme="dark"] .deploy-steps .fa-circle-check { color: #48CAE4; }
.deploy-steps .fa-spinner { color: var(--ad-muted); }
.deploy-steps small { color: var(--ad-muted); font-variant-numeric: tabular-nums; }
@keyframes step-in { to { opacity: 1; transform: none; } }

.deploy-foot {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(var(--ad-primary-rgb), .06);
  font-size: .85rem;
  color: var(--ad-muted);
}
.deploy-foot span { display: inline-flex; align-items: center; gap: .4rem; }

.breadcrumb { --bs-breadcrumb-divider-color: var(--ad-muted); --bs-breadcrumb-item-active-color: var(--ad-muted); font-size: .95rem; }
.breadcrumb a { text-decoration: none; }

/* 6. Sections ---------------------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--ad-line);
}
.service-row:last-child { border-bottom: 1px solid var(--ad-line); }
.service-row h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.service-row p { color: var(--ad-muted); margin-bottom: .75rem; }
.service-row .tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.split-media {
  border-radius: var(--ad-radius-xl);
  overflow: hidden;
  position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 5; }
.split-media .glass {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
}
.split-media .glass p { margin: 0; font-size: .95rem; }

.cta-band {
  border-radius: var(--ad-radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(144, 224, 239, .45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(0, 0, 255, .35), transparent 50%),
    linear-gradient(135deg, var(--ad-primary), var(--ad-navy));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 52ch; }

.stat-line {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.stat-line div { border-left: 2px solid var(--ad-primary); padding-left: 1rem; }
.stat-line strong { display: block; font-family: var(--ad-font-display); font-size: 2rem; line-height: 1; color: var(--ad-navy); }
[data-bs-theme="dark"] .stat-line strong { color: #fff; }
.stat-line span { color: var(--ad-muted); font-size: .95rem; }

.value-item { padding: 1.75rem; height: 100%; }
.value-item h3 { font-size: 1.2rem; margin: 1rem 0 .5rem; }
.value-item p { color: var(--ad-muted); margin: 0; font-size: 1rem; }

.vision-card { padding: clamp(1.75rem, 4vw, 2.75rem); height: 100%; }
.vision-card h2 { font-size: 1.6rem; }
.vision-card ul { padding-left: 1.1rem; margin: 0; color: var(--ad-muted); }
.vision-card li + li { margin-top: .5rem; }

.team-card { text-align: left; }
.team-card .photo { border-radius: var(--ad-radius-lg); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 1; }
.team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ad-ease); filter: saturate(.85); }
.team-card:hover img { transform: scale(1.04); }
.team-card h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.team-card p { color: var(--ad-muted); font-size: .95rem; margin: 0; }

.stack-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.stack-list span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ad-line);
  background: var(--ad-bg);
  font-weight: 500;
  font-size: .95rem;
}
.stack-list i { color: var(--ad-primary); }

.engage-card { padding: 2rem; height: 100%; display: flex; flex-direction: column; }
.engage-card h3 { font-size: 1.3rem; }
.engage-card p { color: var(--ad-muted); }
.engage-card .best-for { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ad-line); font-size: .95rem; }

/* 7. Timeline (scroll-based storytelling) -------------------------------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 23px;
  width: 2px;
  background: var(--ad-line);
  border-radius: 2px;
}
.timeline-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--progress, 0%);
  background: linear-gradient(to bottom, var(--ad-sky), var(--ad-primary), var(--ad-logo));
  border-radius: 2px;
  transition: height .15s linear;
}
.timeline-item {
  position: relative;
  padding-left: 4.25rem;
  padding-bottom: 2.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ad-font-display);
  font-weight: 700;
  font-size: .95rem;
  background: var(--ad-bg);
  border: 2px solid var(--ad-line);
  color: var(--ad-muted);
  transition: background-color .5s var(--ad-ease), border-color .5s var(--ad-ease), color .5s var(--ad-ease), transform .5s var(--ad-ease);
  z-index: 1;
}
.timeline-item.is-active .timeline-marker {
  background: var(--ad-primary);
  border-color: var(--ad-primary);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(var(--ad-primary-rgb), .15);
}
.timeline-card { padding: 1.5rem 1.6rem; }
.timeline-card .when {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ad-primary);
  display: block;
  margin-bottom: .35rem;
}
[data-bs-theme="dark"] .timeline-card .when { color: #48CAE4; }
.timeline-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.timeline-card p { color: var(--ad-muted); margin: 0; }
.timeline-card .deliverable {
  margin-top: 1rem;
  font-size: .925rem;
  display: flex;
  gap: .5rem;
  color: var(--ad-ink);
}
.timeline-card .deliverable i { color: var(--ad-primary); margin-top: .3rem; }

@media (min-width: 992px) {
  .timeline-sticky { position: sticky; top: calc(var(--ad-nav-h) + 2rem); }
}

/* 8. Cards & products ----------------------------------------------------- */
.product-card {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ad-ease), box-shadow .35s var(--ad-ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(var(--ad-navy-rgb), .45); }
.product-card h3 { font-size: 1.45rem; margin: 1.1rem 0 .4rem; }
.product-card .for { color: var(--ad-muted); font-size: .95rem; margin-bottom: 1.1rem; }
.product-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.product-card li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .975rem; }
.product-card li i { color: var(--ad-primary); margin-top: .35rem; font-size: .8rem; }
.product-card .link-arrow { margin-top: auto; }

.product-showcase { position: relative; padding: clamp(1.5rem, 4vw, 3rem); }
.product-showcase img { border-radius: var(--ad-radius); width: 100%; display: block; }

/* 9. Portfolio --------------------------------------------------------------- */
.work-slide {
  position: relative;
  border-radius: var(--ad-radius-xl);
  overflow: hidden;
}
.work-slide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.work-slide .work-caption {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  max-width: 440px;
  padding: 1.4rem 1.5rem;
}
.work-caption h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.work-caption p { margin: 0; color: var(--ad-muted); font-size: .975rem; }

.carousel-controls { display: flex; gap: .5rem; }
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ad-line);
  background: var(--ad-bg);
  color: var(--ad-ink);
  display: grid;
  place-items: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.carousel-btn:hover { background: var(--ad-primary); color: #fff; border-color: var(--ad-primary); }
.carousel-btn:active { transform: scale(.94); }

.carousel-indicators.ad-indicators { position: static; margin: 1.5rem 0 0; justify-content: flex-start; }
.ad-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background-color: var(--ad-primary);
  border: 0;
  margin: 0 4px 0 0;
  opacity: .25;
  transition: width .3s var(--ad-ease), opacity .3s;
}
.ad-indicators .active { width: 48px; opacity: 1; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  border: 1px solid var(--ad-line);
  background: var(--ad-bg);
  color: var(--ad-ink);
  border-radius: 999px;
  padding: .55rem 1.15rem;
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--ad-primary); color: var(--ad-primary); }
.filter-btn.active { background: var(--ad-primary); border-color: var(--ad-primary); color: #fff; }

.project-card { display: block; text-decoration: none; color: inherit; }
.project-card:hover { color: inherit; }
.project-card .thumb {
  position: relative;
  border-radius: var(--ad-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
}
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ad-ease); }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .thumb .glass {
  position: absolute;
  top: .9rem;
  left: .9rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
}
.project-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.project-card p { color: var(--ad-muted); font-size: .975rem; margin: 0; }
.project-item { transition: opacity .35s var(--ad-ease), transform .35s var(--ad-ease); }
.project-item.is-hiding { opacity: 0; transform: scale(.97); }

/* 10. Testimonials --------------------------------------------------------- */
.quote-card { padding: clamp(2rem, 5vw, 3.25rem); }
.quote-card blockquote {
  font-family: var(--ad-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.015em;
  margin: 0 0 2rem;
  color: var(--ad-ink);
}
.quote-card .quote-icon { font-size: 2rem; color: var(--ad-primary); opacity: .35; margin-bottom: 1rem; }
.quote-person { display: flex; align-items: center; gap: 1rem; }
.quote-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote-person strong { display: block; }
.quote-person span { color: var(--ad-muted); font-size: .95rem; }

.testimonial-wrap { position: relative; }
.testimonial-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, rgba(var(--ad-primary-rgb), .35), transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

/* 11. FAQ & forms ---------------------------------------------------------- */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--ad-line);
  --bs-accordion-btn-color: var(--ad-ink);
  --bs-accordion-active-color: var(--ad-primary);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(var(--ad-primary-rgb), .25);
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-btn-padding-y: 1.35rem;
}
.accordion-item { border-left: 0; border-right: 0; border-radius: 0 !important; }
.accordion-item:first-of-type { border-top: 0; }
.accordion-button { font-family: var(--ad-font-display); font-weight: 600; font-size: 1.125rem; }
.accordion-button:focus { border-radius: var(--ad-radius-sm); }
.accordion-body { color: var(--ad-muted); padding-top: 0; padding-bottom: 1.5rem; max-width: 65ch; }
[data-bs-theme="dark"] .accordion-button::after,
[data-bs-theme="dark"] .accordion-button:not(.collapsed)::after { filter: invert(1) brightness(1.5); }

.form-panel { padding: clamp(1.75rem, 4vw, 2.75rem); }
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.form-control,
.form-select {
  border-radius: var(--ad-radius-sm);
  border: 1px solid var(--ad-line);
  background-color: var(--ad-bg);
  color: var(--ad-ink);
  padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: var(--ad-muted); opacity: .7; }
.form-control:focus,
.form-select:focus {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 4px rgba(var(--ad-primary-rgb), .15);
  background-color: var(--ad-bg);
  color: var(--ad-ink);
}
.form-check-input:checked { background-color: var(--ad-primary); border-color: var(--ad-primary); }
.form-text { color: var(--ad-muted); }
.char-count { font-size: .85rem; color: var(--ad-muted); font-variant-numeric: tabular-nums; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--ad-radius);
  background: rgba(10, 138, 90, .1);
  color: #08704a;
  border: 1px solid rgba(10, 138, 90, .25);
}
[data-bs-theme="dark"] .form-success { color: #6ee7b0; }
.form-success.show { display: flex; animation: step-in .4s var(--ad-ease) forwards; opacity: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ad-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; font-family: var(--ad-font-display); }
.contact-list a, .contact-list span { color: var(--ad-muted); text-decoration: none; }
.contact-list a:hover { color: var(--ad-primary); }

.map-embed {
  border-radius: var(--ad-radius-xl);
  overflow: hidden;
  border: 1px solid var(--ad-line);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 420px; border: 0; }
[data-bs-theme="dark"] .map-embed iframe,
[data-bs-theme="dark"] .footer-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }

/* 12. Footer ----------------------------------------------------------------- */
.site-footer {
  background: #021C40;
  color: #B8CBE0;
  padding-top: clamp(3.5rem, 7vw, 5rem);
  font-size: .975rem;
}
[data-bs-theme="dark"] .site-footer { background: #010D20; border-top: 1px solid var(--ad-line); }
.site-footer h2,
.site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer .brand,
.site-footer .brand:hover { color: #fff; }
.site-footer a { color: #B8CBE0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .6rem; }

.newsletter {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--ad-radius-xl);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  margin-bottom: clamp(3rem, 6vw, 4rem);
}
.newsletter h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.newsletter p { color: #B8CBE0; margin: 0; }
.newsletter .form-control {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 999px;
  padding-inline: 1.25rem;
}
.newsletter .form-control::placeholder { color: #B8CBE0; }
.newsletter .form-control:focus { background: rgba(255, 255, 255, .12); border-color: var(--ad-sky); color: #fff; }
.newsletter .invalid-feedback { color: #ffb3b3; }
.newsletter .form-control.is-invalid { border-color: #ff8a8a; }
.newsletter-msg { font-size: .925rem; color: var(--ad-sky); min-height: 1.4em; margin-top: .5rem; }

.social-links { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  transition: background-color .25s, transform .25s var(--ad-ease), border-color .25s;
}
.social-links a:hover { background: var(--ad-primary); border-color: var(--ad-primary); transform: translateY(-3px); color: #fff; }

.footer-map { border-radius: var(--ad-radius-lg); overflow: hidden; line-height: 0; border: 1px solid rgba(255, 255, 255, .12); }
.footer-map iframe { width: 100%; height: 180px; border: 0; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--ad-glass-border);
  background: var(--ad-glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ad-primary);
  box-shadow: var(--ad-glass-shadow);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ad-ease), transform .3s var(--ad-ease), visibility .3s, background-color .2s, color .2s;
  z-index: 1030;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ad-primary); color: #fff; }
.back-to-top svg { position: absolute; inset: -1px; transform: rotate(-90deg); }
.back-to-top circle { fill: none; stroke: var(--ad-primary); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: var(--dash, 151); transition: stroke-dashoffset .1s linear; }
.back-to-top:hover circle { stroke: #fff; }

/* 13. Motion --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ad-ease), transform .8s var(--ad-ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .deploy-steps li { opacity: 1; transform: none; }
}

/* 14. Responsive ------------------------------------------------------------ */
@media (min-width: 992px) {
  /* Two-sided timeline on large screens */
  .timeline.timeline-split .timeline-track { left: 50%; transform: translateX(-1px); }
  .timeline.timeline-split .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 3.5rem;
  }
  .timeline.timeline-split .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3.5rem;
  }
  .timeline.timeline-split .timeline-marker { left: auto; right: -24px; }
  .timeline.timeline-split .timeline-item:nth-child(even) .timeline-marker { right: auto; left: -24px; }
  .timeline.timeline-split .timeline-item + .timeline-item { margin-top: -3.5rem; }

  .stat-line { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    margin-top: .75rem;
    padding: 1rem;
    border-radius: var(--ad-radius-lg);
    background: var(--ad-glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ad-line);
    box-shadow: var(--ad-glass-shadow);
  }
  .site-nav .nav-link { padding: .7rem 1rem !important; }
  .hero { min-height: auto; }
  .work-slide img { aspect-ratio: 4 / 3; }
  .work-slide .work-caption { position: static; max-width: none; margin-top: -2.5rem; margin-inline: 1rem; position: relative; }
}

@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .btn { padding: .7rem 1.25rem; }
  .hero .btn { width: 100%; }
  .deploy-foot { flex-direction: column; gap: .4rem; }
  .map-embed iframe { height: 320px; }
  .back-to-top { right: 1rem; bottom: 1rem; }
}

/* Check list (service details) */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--ad-line); }
.check-list li:last-child { border-bottom: 1px solid var(--ad-line); }
.check-list i { color: var(--ad-primary); margin-top: .35rem; font-size: .85rem; }
[data-bs-theme="dark"] .check-list i,
[data-bs-theme="dark"] .product-card li i,
[data-bs-theme="dark"] .hero-points i,
[data-bs-theme="dark"] .text-primary { color: #48CAE4 !important; }
[data-bs-theme="dark"] .accordion { --bs-accordion-active-color: #48CAE4; }
[data-bs-theme="dark"] .btn-primary { --bs-btn-hover-bg: #0096C7; --bs-btn-hover-border-color: #0096C7; }
