/* ==========================================================================
   Ujaagar Digital — styles
   Brand source of truth: "logo and BI/" colour, typography & UI sheets.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --midnight: #0E1C33;
  --midnight-2: #14274A;      /* elevated navy surface */
  --midnight-3: #1B3160;      /* floating navy surface */
  --blue: #4169FF;            /* Ujaagar Blue — accents, icons, large text */
  --blue-strong: #3558F0;     /* white text on blue fills (AA contrast) */
  --blue-ink: #2B4FE0;        /* small blue text on light surfaces (AA) */
  --blue-light: #8FA6FF;      /* small blue text on navy (AA) */
  --blue-50: #EDF1FF;
  --canvas: #F5F7FB;
  --white: #FFFFFF;
  --slate: #475569;
  --line: #E2E8F2;
  --line-dark: rgba(255, 255, 255, 0.1);
  --on-dark-muted: rgba(255, 255, 255, 0.74);
  --wa-green: #1FA855;

  /* Type */
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-urdu: "Noto Sans Arabic", "Noto Nastaliq Urdu", sans-serif;

  /* Spacing scale: 8 / 16 / 24 / 32 / 48 (+ section rhythm) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-section: clamp(64px, 9vw, 112px);

  /* Radii */
  --r-card: 16px;
  --r-btn: 12px;

  /* Layered, navy-tinted shadows (base → elevated → floating) */
  --sh-1: 0 1px 2px rgba(14, 28, 51, 0.04), 0 2px 6px rgba(14, 28, 51, 0.04);
  --sh-2: 0 1px 2px rgba(14, 28, 51, 0.04), 0 6px 16px rgba(14, 28, 51, 0.06), 0 16px 40px rgba(14, 28, 51, 0.06);
  --sh-3: 0 2px 4px rgba(14, 28, 51, 0.06), 0 12px 28px rgba(14, 28, 51, 0.12), 0 32px 64px rgba(14, 28, 51, 0.16);
  --sh-blue: 0 4px 10px rgba(65, 105, 255, 0.22), 0 14px 32px rgba(65, 105, 255, 0.22);

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1200px;
  --header-h: 72px;

  /* Film grain for depth */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--midnight);
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0 0 var(--s-2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-btn);
  background: var(--white); color: var(--midnight); font-weight: 600; text-decoration: none;
  box-shadow: var(--sh-3);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--s-3));
  margin-inline: auto;
  padding-inline: var(--s-3);
}
@media (max-width: 479px) { .container { padding-inline: var(--s-2); } }

.text-blue { color: var(--blue); }
.text-blue-light { color: var(--blue-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--s-2);
  font-family: var(--font-head);
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-ink);
}
.eyebrow::before {
  content: ""; width: 24px; height: 4px; border-radius: 4px; background: var(--blue);
}
.eyebrow-on-dark { color: var(--blue-light); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--midnight);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 600; line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* hover sheen — opacity only */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0; transition: opacity 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.btn:focus-visible { outline-offset: 4px; }

.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 14px 24px; }
.btn-block { width: 100%; }

.btn-navy { --btn-bg: var(--midnight); box-shadow: var(--sh-2); }
.btn-navy:hover { box-shadow: var(--sh-3); }
.btn-blue { --btn-bg: var(--blue-strong); box-shadow: var(--sh-blue); }
.btn-ghost-light {
  --btn-bg: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-light::after { background: rgba(255, 255, 255, 0.08); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.85); }

.btn-arrow {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: -8px;
  border-radius: 50%;
  background: var(--white); color: var(--blue-strong);
  transition: transform 0.35s var(--ease-spring);
}
.btn-navy .btn-arrow { background: var(--blue); color: var(--white); }
.btn-arrow svg { width: 16px; height: 16px; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* WhatsApp CTAs (header + hero): white icon, soft glow, one light sweep on hover */
.btn-wa {
  gap: 10px;
  transition: transform 280ms var(--ease-out), opacity 0.2s;
}
.btn-wa-icon { width: 20px; height: 20px; flex-shrink: 0; margin-left: -2px; color: var(--white); }
.btn-sm .btn-wa-icon { width: 18px; height: 18px; }
.btn-wa::after { /* stronger glow layer — faded in on hover, never brightens the face */
  background: transparent;
  box-shadow: 0 6px 14px rgba(65, 105, 255, 0.34), 0 18px 40px rgba(65, 105, 255, 0.34);
  transition: opacity 280ms var(--ease-out);
}
.btn-sweep {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden;
  pointer-events: none;
}
.btn-sweep::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-150%) skewX(-18deg);
}
.btn-wa .btn-arrow { transition: transform 280ms var(--ease-out); }
/* touch devices: no sticky hover state */
.btn-wa:hover { transform: none; }
.btn-wa:hover::after { opacity: 0; }
.btn-wa:hover .btn-arrow { transform: none; }
@media (hover: hover) {
  .btn-wa:hover { transform: translateY(-3px); }
  .btn-wa:hover::after { opacity: 1; }
  .btn-wa:hover .btn-arrow { transform: translateX(4px); }
  .btn-wa:hover .btn-sweep::before {
    transform: translateX(300%) skewX(-18deg);
    transition: transform 650ms var(--ease-out);
  }
}
.btn-wa:active { transform: translateY(0); transition-duration: 120ms; }
.btn-wa:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .btn-sweep { display: none; }
  .btn-wa:hover, .btn-wa:hover .btn-arrow { transform: none; }
}

/* Magnetic CTAs: a stationary wrapper owns hover detection, the button follows the cursor via
   the independent `translate` property so it never fights the button's own hover transform. */
.magnetic { position: relative; display: inline-flex; vertical-align: middle; }
.magnetic-block { display: flex; width: 100%; }
.magnetic::before { content: ""; position: absolute; inset: -12px; } /* generous, layout-free hit area */
.magnetic > .btn { will-change: auto; }
.magnetic.is-active > .btn { will-change: translate; }
@media (hover: hover) and (pointer: fine) {
  .btn-blue:not(.btn-wa) { transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), opacity 0.2s; }
  .btn-blue:hover {
    box-shadow: 0 6px 14px rgba(65, 105, 255, 0.32), 0 20px 44px rgba(65, 105, 255, 0.34);
  }
  .btn-ghost-light { transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), border-color 0.25s var(--ease-out); }
  .btn-ghost-light:hover {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 1px rgba(143, 166, 255, 0.35), 0 8px 24px rgba(65, 105, 255, 0.28);
  }
  .btn-navy:hover { box-shadow: 0 6px 14px rgba(8, 20, 48, 0.2), 0 16px 36px rgba(65, 105, 255, 0.22); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: var(--s-3);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  color: var(--blue-ink); text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-spring); }
.text-link:hover svg { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:active { opacity: 0.7; }

.inline-link { color: var(--blue-ink); font-weight: 500; text-underline-offset: 3px; }
.inline-link:hover { text-decoration-thickness: 2px; }
.inline-link:active { opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 28, 51, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header::after { /* scroll shadow, animated with opacity */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: 0 8px 24px rgba(4, 10, 22, 0.35);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.site-header.is-scrolled::after { opacity: 1; }

.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  height: var(--header-h);
}
.brand { display: inline-flex; border-radius: 8px; flex-shrink: 0; transition: opacity 0.2s; }
.brand img { width: auto; height: 44px; }
.brand:hover { opacity: 0.88; }
.brand:active { opacity: 0.7; }

.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a:not(.btn) {
  display: inline-block; position: relative;
  padding: 8px 12px; border-radius: 10px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.primary-nav a:not(.btn):hover { color: var(--white); }
.primary-nav a:not(.btn):hover::after,
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="true"] { color: var(--white); }
.primary-nav a:not(.btn):active { background: rgba(255, 255, 255, 0.08); }
.nav-cta-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: var(--r-btn);
  border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: var(--white);
  cursor: pointer; place-items: center;
  transition: background-color 0.2s, transform 0.2s var(--ease-spring);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle-bars span {
  display: block; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .brand img { height: 38px; }

  .primary-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    padding: var(--s-3) var(--s-3) var(--s-5);
    background: var(--midnight);
    border-top: 1px solid var(--line-dark);
    display: flex; flex-direction: column; gap: var(--s-3);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .primary-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s;
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a:not(.btn) {
    display: block; padding: 14px 4px; border-radius: 0;
    font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--white);
    border-bottom: 1px solid var(--line-dark);
  }
  .primary-nav a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: inline-flex; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark-muted);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(65, 105, 255, 0.28), transparent 60%),
    radial-gradient(45% 55% at 10% 100%, rgba(65, 105, 255, 0.16), transparent 70%),
    radial-gradient(35% 40% at 50% -10%, rgba(143, 166, 255, 0.12), transparent 70%),
    var(--midnight);
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
}
.hero::after { /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: 0.06; mix-blend-mode: overlay;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.pill { /* rounded bars from the brand sheets */
  position: absolute; width: clamp(56px, 7vw, 96px); border-radius: 999px;
  background: linear-gradient(180deg, rgba(65, 105, 255, 0.34), rgba(65, 105, 255, 0.06));
}
.pill-1 { left: -24px; bottom: -60px; height: 280px; }
.pill-2 { left: clamp(48px, 7vw, 100px); bottom: -120px; height: 220px; opacity: 0.7; }
.pill-3 { right: -20px; top: 40px; height: 300px; opacity: 0.55; }
.pill-4 { right: clamp(60px, 8vw, 116px); top: 180px; height: 220px; opacity: 0.35; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: var(--s-5);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); }
}

.hero h1 { color: var(--white); margin-bottom: var(--s-3); }
.hero-lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.75;
  color: #CBD3E1; /* light grey on midnight ≈ 11:1 contrast */
  max-width: 34em; margin-bottom: var(--s-4);
}
@media (max-width: 479px) {
  .hero .btn-row .magnetic { flex: 1 1 100%; }
  .hero .btn-row .magnetic > .btn { flex: 1 1 100%; }
}

.hero-points {
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3);
  margin-top: var(--s-4);
  font-size: 1rem; color: var(--white);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hero-points svg {
  flex-shrink: 0;
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: rgba(65, 105, 255, 0.22); color: var(--blue-light);
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 380px;
  max-width: 520px; width: 100%;
  margin-inline: auto;
}
.hv-card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: 0 2px 4px rgba(4, 10, 22, 0.2), 0 24px 48px rgba(4, 10, 22, 0.35), 0 48px 96px rgba(4, 10, 22, 0.25);
}
.hv-main {
  position: absolute; inset: 24px 28px 36px 40px;
  padding: var(--s-3);
  display: flex; flex-direction: column;
}
.hv-main::before { /* speech-bubble tail echoing the logo */
  content: ""; position: absolute; left: 32px; bottom: -22px;
  width: 30px; height: 24px; background: var(--white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hv-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-3); }
.hv-dots { display: flex; gap: 6px; }
.hv-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hv-title { font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: var(--midnight); }
.hv-chart {
  flex: 1; display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 14px);
  padding: var(--s-2); border-radius: 12px; background: var(--canvas);
}
.hv-chart span {
  flex: 1; height: var(--h); border-radius: 999px;
  background: linear-gradient(180deg, #C9D5FF, #DCE4FF);
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 0.9s var(--ease-spring);
}
.hv-chart span.is-accent { background: linear-gradient(180deg, var(--blue), #6F8DFF); }
.hv-chart span:nth-child(1) { transition-delay: 0.30s; }
.hv-chart span:nth-child(2) { transition-delay: 0.36s; }
.hv-chart span:nth-child(3) { transition-delay: 0.42s; }
.hv-chart span:nth-child(4) { transition-delay: 0.48s; }
.hv-chart span:nth-child(5) { transition-delay: 0.54s; }
.hv-chart span:nth-child(6) { transition-delay: 0.60s; }
.hv-chart span:nth-child(7) { transition-delay: 0.66s; }
.hero-visual.is-visible .hv-chart span,
html:not(.js) .hv-chart span { transform: scaleY(1); }
.hv-legend { display: flex; gap: var(--s-2); margin-top: var(--s-2); font-size: 0.8125rem; color: var(--slate); }
.hv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hv-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-a { background: #DCE4FF; } .lg-b { background: #A9BBFF; } .lg-c { background: var(--blue); }

.hv-float {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  font-size: 0.8125rem; line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.hv-float strong { display: block; font-family: var(--font-head); font-size: 0.875rem; color: var(--midnight); }
.hv-float small { color: var(--slate); font-size: 0.75rem; }
.hv-icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px; background: var(--blue-50); color: var(--midnight);
}
.hv-icon svg { width: 22px; height: 22px; }
.hv-icon .accent, .hv-icon .accent-fill { color: var(--blue); }
.hv-icon-green { background: #E6F7EC; color: var(--wa-green); }
.hv-float-1 { top: 0; right: 0; }
.hv-float-2 { bottom: -28px; right: 12px; animation-delay: -2s; }
.hv-float-3 { top: 42%; left: -8px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 479px) {
  .hero-visual { min-height: 320px; }
  .hv-main { inset: 28px 0 56px 0; }
  .hv-float-2 { bottom: -8px; right: 0; }
  .hv-legend { flex-wrap: wrap; gap: 4px 12px; }
  .hv-float-3 { display: none; }
  .hv-float-1 { right: -4px; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--blue-strong);
  color: var(--white);
  padding-block: 16px;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.marquee-track {
  display: flex; align-items: center; gap: var(--s-4);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span { white-space: nowrap; }
.marquee-track i { font-style: normal; opacity: 0.6; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--s-4) / 2)); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s-section); position: relative; }
.section-canvas { background: var(--canvas); }
.section-dark {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(65, 105, 255, 0.18), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(65, 105, 255, 0.1), transparent 70%),
    var(--midnight);
  color: var(--on-dark-muted);
}
.section-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: 0.05; mix-blend-mode: overlay;
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: var(--s-5); }
.section-head h2 { margin-bottom: var(--s-2); }
.section-lede { font-size: 1.0625rem; }
.section-head-split {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3);
}
.section-head-split h2 { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-1);
}

/* Services */
.services-title-accent { display: block; }
.service-grid {
  display: grid; gap: 20px; align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
@media (min-width: 1240px) { .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.service-grid > li { display: flex; }

.service-card {
  --card-line: #DCE3F1;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; width: 100%;
  padding: 32px 28px 24px;
  border: 1px solid var(--card-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(65, 105, 255, 0.075), rgba(65, 105, 255, 0) 168px),
    var(--white);
  box-shadow: 0 1px 2px rgba(14, 28, 51, 0.04), 0 8px 24px rgba(14, 28, 51, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
/* restrained blue highlight along the top edge */
.service-card::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: -1px; left: 28px; right: 28px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue), rgba(65, 105, 255, 0.15));
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(65, 105, 255, 0.42);
    box-shadow: 0 2px 4px rgba(14, 28, 51, 0.04), 0 14px 32px rgba(65, 105, 255, 0.16), 0 28px 56px rgba(14, 28, 51, 0.08);
  }
}
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(65, 105, 255, 0.42);
  box-shadow: 0 2px 4px rgba(14, 28, 51, 0.04), 0 14px 32px rgba(65, 105, 255, 0.16), 0 28px 56px rgba(14, 28, 51, 0.08);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em;
  text-wrap: balance; hyphens: manual;
}
.service-card > p { font-size: 0.9375rem; line-height: 1.7; }

.service-icon {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin-bottom: 24px;
  border-radius: 18px; color: var(--midnight);
  background: linear-gradient(145deg, var(--blue-50), var(--white));
  border: 1px solid rgba(65, 105, 255, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 14px rgba(65, 105, 255, 0.1);
}
.ic {
  width: 46px; height: 46px; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.ic .ic-accent { stroke: var(--blue); }
.ic .ic-accent-fill { fill: var(--blue); stroke: var(--blue); }
.ic * { transform-box: fill-box; transform-origin: center; }

.ticks {
  flex: 1; display: grid; align-content: start; gap: 10px;
  margin: 20px 0 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem; line-height: 1.5; color: var(--midnight);
}
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(65, 105, 255, 0.14);
  transform: translateY(-2px);
}

.service-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px; margin-top: auto;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em;
  color: var(--blue-ink); text-decoration: none;
}
.service-cta svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.service-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-cta:hover svg, .service-cta:focus-visible svg { transform: translateX(4px); }
.service-cta:active { opacity: 0.7; }

/* Icon micro-animations: play once on hover / keyboard focus, resting state is a complete drawing */
@keyframes ic-wave {
  0% { opacity: 0; transform: translateX(-5px) scale(0.72); }
  55% { opacity: 1; transform: translateX(0) scale(1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes ic-rise {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@keyframes ic-play {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes ic-pen {
  from { opacity: 0; transform: translate(-6px, -6px) rotate(-14deg); }
  to { opacity: 1; transform: none; }
}
/* social tiles rest slightly scattered and settle into an organised stack */
.ic-social .tile { fill: var(--white); transition: transform 0.5s var(--ease-out); }
.ic-social .t1 { transform: translate(-2px, 0) rotate(-8deg); }
.ic-social .t2 { transform: translate(2px, 0) rotate(5deg); }
.service-card:hover .ic-social .tile,
.service-card:focus-within .ic-social .tile { transform: none; }
.ic-social .t1, .ic-social .t2 { transition-delay: 0s; }
.ic-creative .pen-nib { fill: var(--white); }

@media (hover: hover) {
  .service-card:hover .ic-meta .wave { animation: ic-wave 0.7s var(--ease-out) backwards; }
  .service-card:hover .ic-meta .w2 { animation-delay: 0.1s; }
  .service-card:hover .ic-meta .w3 { animation-delay: 0.2s; }
  .service-card:hover .ic-web .bx { animation: ic-rise 0.5s var(--ease-out) backwards; }
  .service-card:hover .ic-web .bx2 { animation-delay: 0.08s; }
  .service-card:hover .ic-web .bx3 { animation-delay: 0.16s; }
  .service-card:hover .ic-web .bx4 { animation-delay: 0.24s; }
  .service-card:hover .ic-creative .play { animation: ic-play 0.6s var(--ease-spring); }
  .service-card:hover .ic-creative .pen { animation: ic-pen 0.6s var(--ease-out) 0.1s backwards; }
}
.service-card:focus-within .ic-meta .wave { animation: ic-wave 0.7s var(--ease-out) backwards; }
.service-card:focus-within .ic-meta .w2 { animation-delay: 0.1s; }
.service-card:focus-within .ic-meta .w3 { animation-delay: 0.2s; }
.service-card:focus-within .ic-web .bx { animation: ic-rise 0.5s var(--ease-out) backwards; }
.service-card:focus-within .ic-web .bx2 { animation-delay: 0.08s; }
.service-card:focus-within .ic-web .bx3 { animation-delay: 0.16s; }
.service-card:focus-within .ic-web .bx4 { animation-delay: 0.24s; }
.service-card:focus-within .ic-creative .play { animation: ic-play 0.6s var(--ease-spring); }
.service-card:focus-within .ic-creative .pen { animation: ic-pen 0.6s var(--ease-out) 0.1s backwards; }

@media (max-width: 400px) {
  .service-card { padding: 28px 22px 20px; }
  .service-card::before { left: 22px; right: 22px; }
}

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.filter {
  min-height: 40px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent; color: var(--on-dark-muted);
  font: 500 0.9375rem/1.4 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}
.filter:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.filter:active { transform: scale(0.95); }
.filter.is-active { background: var(--white); color: var(--midnight); border-color: var(--white); }

.work-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-item[hidden] { display: none; }

.work-card {
  margin: 0; height: 100%;
  background: var(--midnight-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(4, 10, 22, 0.2), 0 16px 32px rgba(4, 10, 22, 0.2);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 4px 8px rgba(4, 10, 22, 0.25), 0 28px 56px rgba(4, 10, 22, 0.4); }
.work-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--midnight-3); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.work-media::before { /* colour treatment */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(65, 105, 255, 0.35), rgba(14, 28, 51, 0.1));
  mix-blend-mode: multiply;
}
.work-media::after { /* legibility overlay */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 55%);
  opacity: 0.7; transition: opacity 0.35s;
}
.work-card:hover .work-media img { transform: scale(1.05); }
.work-card:hover .work-media::after { opacity: 1; }
.work-card figcaption { padding: var(--s-3); }
.work-card h3 { font-size: 1.0625rem; margin-top: 10px; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(65, 105, 255, 0.18); color: var(--blue-light);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.work-empty { text-align: center; }
.center-cta { display: flex; justify-content: center; margin-top: var(--s-5); }

/* About */
.about-grid { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); } }
.about-copy h2 { margin-bottom: var(--s-3); }
.urdu-inline { font-family: var(--font-urdu); font-weight: 600; color: var(--midnight); }

.values { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.values li {
  display: flex; gap: var(--s-2);
  padding: var(--s-2) 0; border-top: 1px solid var(--line);
}
.values h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.values p { font-size: 0.9375rem; }
.value-num { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--blue); min-width: 32px; }

.about-panel {
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(70% 60% at 80% 10%, rgba(65, 105, 255, 0.35), transparent 70%),
    var(--midnight);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.about-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: 0.06; mix-blend-mode: overlay;
}
.about-panel-inner {
  position: relative; z-index: 1;
  padding: clamp(32px, 6vw, 56px);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.about-icon { width: 80px; height: 80px; border-radius: 20px; margin-bottom: var(--s-4); box-shadow: 0 0 0 1px var(--line-dark); }
.urdu-tagline {
  align-self: stretch; text-align: right;
  font-family: var(--font-urdu); font-weight: 600;
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); line-height: 1.6;
  white-space: nowrap;
  color: var(--white); margin-bottom: var(--s-1);
}
.urdu-tagline span { color: var(--blue); }
.about-panel-en { font-family: var(--font-head); font-weight: 600; color: var(--on-dark-muted); }
.about-bars { position: absolute; right: 32px; bottom: -40px; display: flex; align-items: flex-end; gap: 14px; opacity: 0.35; }
.about-bars span { width: 36px; border-radius: 999px; background: var(--blue); }
.about-bars span:nth-child(1) { height: 90px; }
.about-bars span:nth-child(2) { height: 140px; }
.about-bars span:nth-child(3) { height: 200px; }

/* Process */
.process-grid { display: grid; gap: var(--s-3); counter-reset: step; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  position: relative; padding: var(--s-4) var(--s-3);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step-num {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--font-head); font-weight: 700; font-size: 2.5rem; line-height: 1;
  letter-spacing: -0.03em; color: var(--blue);
}
.process-step h3 { margin-bottom: var(--s-1); }
.process-step p { font-size: 0.9375rem; }
@media (min-width: 1100px) {
  .process-step:not(:last-child)::after { /* connector */
    content: ""; position: absolute; top: 52px; right: -20px; width: 16px; height: 2px;
    background: var(--blue); opacity: 0.4;
  }
}

/* FAQ */
.faq-grid { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-6); align-items: start; } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.faq[open] { border-color: #C9D5FF; box-shadow: var(--sh-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 20px var(--s-3);
  cursor: pointer; list-style: none;
  border-radius: var(--r-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.0625rem; }
.faq summary:hover h3 { color: var(--blue-ink); }
.faq summary:active { opacity: 0.8; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-ink);
  transition: transform 0.4s var(--ease-spring);
}
.faq-icon svg { width: 16px; height: 16px; }
.faq[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 var(--s-3) 20px; }
.faq[open] .faq-body { animation: faq-in 0.35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.contact-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-6); } }
.contact-info h2 { margin-bottom: var(--s-2); }
.channels { display: grid; gap: 12px; margin-top: var(--s-4); }
.channel {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-card);
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--slate);
  box-shadow: var(--sh-1);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
a.channel:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
a.channel:active { transform: scale(0.98); }
.channel small { display: block; font-size: 0.8125rem; }
.channel strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--midnight); word-break: break-word; }
.channel-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-ink);
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-icon-green { background: #E6F7EC; color: #178A45; }

.form-card { padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-3); border-color: transparent; }
.field-row { display: grid; gap: 0 var(--s-2); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 500; color: var(--midnight); }
.req { color: #C0262D; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #CDD5E3; border-radius: var(--r-btn);
  background: var(--white);
  font: 400 1rem/1.5 var(--font-body); color: var(--midnight);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1C33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA8C2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 105, 255, 0.18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C0262D; background-color: #FFF8F8; }
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus { border-color: #C0262D; box-shadow: 0 0 0 4px rgba(192, 38, 45, 0.16); }
.field-error { margin: 6px 0 0; font-size: 0.875rem; color: #B3232A; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 12px 0 0; font-size: 0.8125rem; }
.form-status { margin-top: var(--s-2); border-radius: var(--r-btn); }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status.is-success, .form-status.is-error, .form-status.is-info { padding: 14px 16px; font-size: 0.9375rem; }
.form-status.is-success { background: #E7F6EC; color: #145C30; }
.form-status.is-error { background: #FDECEC; color: #8F1D22; }
.form-status.is-info { background: var(--blue-50); color: var(--midnight); }
.form-status a { font-weight: 600; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: var(--on-dark-muted);
  padding-top: var(--s-6);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: var(--s-5) var(--s-4); padding-bottom: var(--s-5); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer-brand img { width: auto; height: 56px; margin-bottom: var(--s-2); }
.footer-tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; color: var(--white); margin-bottom: var(--s-1); }
.footer-about { max-width: 30em; }
.footer-title {
  font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin-bottom: var(--s-2);
}
.footer-links { display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color 0.2s; border-radius: 4px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-links a:active { opacity: 0.7; }
.footer-cta { margin-top: var(--s-3); }
.socials { display: flex; gap: var(--s-1); margin-top: var(--s-2); }
.socials a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  text-decoration: none; font-size: 0.875rem; color: var(--white);
  transition: background-color 0.2s, transform 0.3s var(--ease-spring);
}
.socials a:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.socials a:active { transform: scale(0.96); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.back-top { text-decoration: none; border-radius: 4px; }
.back-top:hover { color: var(--white); }
.back-top:active { opacity: 0.7; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  --wa-edge: 20px;
  position: fixed; z-index: 90;
  right: calc(var(--wa-edge) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--wa-edge) + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa-green); color: var(--white);
  box-shadow: 0 4px 10px rgba(31, 168, 85, 0.3), 0 14px 32px rgba(14, 28, 51, 0.25);
  transition: transform 280ms var(--ease-out), opacity 200ms var(--ease-out);
}
.wa-float[hidden] { display: none; }
.wa-float svg { width: 30px; height: 30px; }
@media (hover: hover) { .wa-float:hover { transform: translateY(-2px); } }
.wa-float:active { transform: translateY(0); transition-duration: 120ms; }
.wa-float:focus-visible { /* white gap + navy ring: visible on light and dark sections */
  outline: 3px solid var(--midnight); outline-offset: 3px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--white), 0 14px 32px rgba(14, 28, 51, 0.25);
}
@media (max-width: 640px) { .wa-float { --wa-edge: 16px; } }
body.nav-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
/* keep the footer's last line clear of the floating button */
.footer-bottom { padding-bottom: calc(var(--s-3) + 56px + 20px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .footer-bottom { padding-bottom: calc(var(--s-3) + 56px + 16px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .process-step.reveal.is-visible:hover { transition: transform 0.45s var(--ease-spring), box-shadow 0.35s var(--ease-out), opacity 0.7s; }
.js .process-step.reveal.is-visible:hover { transform: translateY(-4px); }
/* Service cards: 18px rise + fade, staggered 90ms, plays once (animation, so hover transitions stay undelayed) */
.js .service-card.reveal { opacity: 0; transform: translateY(18px); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out); }
.js .service-card.reveal.is-visible { opacity: 1; transform: none; animation: svc-in 0.7s var(--ease-out) calc(var(--i, 0) * 90ms) backwards; }
@keyframes svc-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .js .service-card.reveal.is-visible:hover { transform: translateY(-6px); } }
.js .service-card.reveal.is-visible:focus-within { transform: translateY(-6px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .service-card.reveal { opacity: 1; transform: none; }
  .service-card .ic * { animation: none !important; }
  .hv-chart span { transform: scaleY(1); }
}

/* ==========================================================================
   Multi-page extension — nav dropdown, page heroes, new section components.
   Built from the same tokens, radii, shadows and easing as everything above.
   ========================================================================== */

/* Two-line headings: the second line carries the blue highlight */
.h-split > span { display: block; }
.h-split > .text-blue, .hero .h-split > .text-blue { color: var(--blue); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-wide { max-width: 760px; }

/* Buttons */
.btn-white { --btn-bg: var(--white); --btn-fg: var(--midnight); box-shadow: 0 4px 10px rgba(4, 10, 22, 0.18), 0 14px 32px rgba(4, 10, 22, 0.2); }
.btn-white .btn-wa-icon { color: var(--wa-green); }
.btn-white.btn-wa::after { box-shadow: 0 6px 14px rgba(4, 10, 22, 0.28), 0 18px 40px rgba(4, 10, 22, 0.28); }
.btn-white .btn-sweep::before { background: linear-gradient(100deg, transparent, rgba(65, 105, 255, 0.18), transparent); }
.btn-white:focus-visible, .btn-wa.btn-white:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.btn-ghost-dark { --btn-bg: transparent; --btn-fg: var(--midnight); border-color: #CDD5E3; }
.btn-ghost-dark::after { background: rgba(14, 28, 51, 0.05); }
.btn-ghost-dark:hover { border-color: var(--midnight); }

/* ---------- Navigation: current page + Services dropdown ---------- */
.primary-nav a[aria-current]:not(.btn) { color: var(--white); }
.primary-nav a[aria-current]:not(.btn)::after { transform: scaleX(1); }
.primary-nav .has-sub { position: relative; display: flex; align-items: stretch; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 26px; margin: 3px 0 3px -8px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--on-dark-muted); cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.sub-toggle svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.sub-toggle:hover { color: var(--white); }
.sub-toggle:active { background: rgba(255, 255, 255, 0.08); }
.sub-toggle:focus-visible { outline-color: var(--blue-light); outline-offset: 0; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.primary-nav .sub-menu a:not(.btn)::after { display: none; }
.primary-nav .sub-menu a:not(.btn) { display: block; padding: 10px 12px; border-radius: 12px; }
.sub-menu strong { display: block; font-family: var(--font-head); font-size: 0.9375rem; font-weight: 600; color: var(--white); letter-spacing: -0.01em; }
.sub-menu small { display: block; font-size: 0.8125rem; line-height: 1.5; color: var(--on-dark-muted); }
.primary-nav .sub-menu a:not(.btn):hover { background: rgba(255, 255, 255, 0.07); }
.primary-nav .sub-menu a:not(.btn):active { background: rgba(255, 255, 255, 0.12); }
.primary-nav .sub-menu a[aria-current] { background: rgba(65, 105, 255, 0.2); }

@media (min-width: 960px) {
  .primary-nav .sub-menu {
    position: absolute; top: calc(100% + 8px); left: -12px; z-index: 5;
    display: grid; gap: 2px; width: 340px; padding: 8px;
    background: var(--midnight-2); border: 1px solid var(--line-dark); border-radius: 16px;
    box-shadow: 0 2px 4px rgba(4, 10, 22, 0.3), 0 20px 48px rgba(4, 10, 22, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.2s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
  .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (min-width: 960px) and (hover: hover) {
  .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 959px) {
  .primary-nav .has-sub { flex-wrap: wrap; }
  .primary-nav .has-sub > a { flex: 1; }
  .sub-toggle { width: 52px; margin: 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); color: var(--white); }
  .sub-toggle svg { width: 20px; height: 20px; }
  .primary-nav .sub-menu { display: none; width: 100%; padding: 4px 0 12px 12px; }
  .has-sub.is-open .sub-menu { display: grid; }
  .primary-nav .sub-menu a:not(.btn) { padding: 12px 8px; border-bottom: 0; }
  .sub-menu strong { font-size: 1.0625rem; }
}

/* ---------- Page heroes (reuse the home hero surface) ---------- */
.hero-page { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 60px)); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-page h1 { font-size: clamp(2.125rem, 1.3rem + 3.2vw, 3.5rem); }
.hero-page h1 > span { display: block; }
.hero-solo .hero-copy { max-width: 760px; }
.hero-solo .hero-lede { max-width: 38em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: var(--s-3); font-size: 0.875rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.45; }
.crumbs a { text-decoration: none; border-radius: 4px; }
.crumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:active { opacity: 0.7; }
.crumbs [aria-current] { color: var(--white); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.hero-tags li {
  padding: 6px 14px; border-radius: 999px; font-size: 0.875rem; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05);
}

/* Service-specific hero visuals (decorative, no real data) */
.pv-rows { flex: 1; display: grid; align-content: center; gap: 18px; }
.pv-row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; font-size: 0.8125rem; font-weight: 500; color: var(--slate); }
.pv-bar { position: relative; height: 10px; border-radius: 999px; background: #E3EAFF; overflow: hidden; }
.pv-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), #7C97FF); }
.pv-pill { align-self: flex-start; margin-top: var(--s-2); padding: 6px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-ink); font-size: 0.75rem; font-weight: 600; }
.pv-cal { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 8px; align-content: stretch; }
.pv-cal span { border-radius: 10px; background: var(--canvas); min-height: 0; }
.pv-cal .on { background: #C9D5FF; }
.pv-cal .hot { background: var(--blue); }
.pv-cal .dow { display: grid; place-items: center; background: none; font-size: 0.6875rem; font-weight: 600; color: var(--slate); letter-spacing: 0.04em; }
.pv-site { flex: 1; display: grid; gap: 10px; align-content: start; padding: var(--s-2); border-radius: 12px; background: var(--canvas); }
.pv-site .hero-block { height: 76px; border-radius: 10px; background: linear-gradient(135deg, #C9D5FF, #EDF1FF); }
.pv-site .line { height: 8px; border-radius: 999px; background: #D6DEEF; }
.pv-site .line.s { width: 55%; }
.pv-site .boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-site .boxes i { height: 52px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.pv-site .cta { width: 46%; height: 28px; border-radius: 8px; background: var(--blue-strong); }
.pv-video { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.pv-screen { display: grid; place-items: center; min-height: 0; border-radius: 12px; background: radial-gradient(70% 90% at 80% 0%, rgba(143, 166, 255, 0.55), transparent 70%), linear-gradient(135deg, var(--midnight-2), var(--midnight-3)); }
.pv-screen svg { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: var(--white); }
.pv-tracks { display: grid; gap: 6px; }
.pv-track { display: flex; gap: 6px; height: 12px; }
.pv-track i { flex: var(--f); border-radius: 6px; background: #C9D5FF; }
.pv-track i.b { background: var(--blue); }
.pv-track i.g { background: #E3EAFF; }

/* ---------- Home sections ---------- */
.chip-block { margin-top: var(--s-4); }
.chip-label { margin-bottom: 10px; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--midnight); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 16px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--midnight);
  background: var(--blue-50); border: 1px solid #D5DEFF;
}
.section-dark .chips li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: var(--white); }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.about-links .text-link { margin: 0; padding: 0; }

.pillars { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: 24px; }
.pillar-a {
  color: var(--on-dark-muted);
  background: radial-gradient(70% 60% at 95% 0%, rgba(65, 105, 255, 0.42), transparent 70%), var(--midnight);
  box-shadow: var(--sh-3);
}
.pillar-a::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: 0.06; mix-blend-mode: overlay; }
.pillar-b { background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.pillar-tag { display: block; margin-bottom: var(--s-2); font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-ink); }
.pillar-a .pillar-tag { color: var(--blue-light); }
.pillar h3 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; }
.pillar-a h3 { color: var(--white); }
.pillar-lede { margin: 8px 0 0; }
.pillar ol { margin-top: var(--s-3); counter-reset: pillar; }
.pillar li { display: flex; gap: var(--s-2); padding: 18px 0; border-top: 1px solid var(--line); }
.pillar-a li { border-top-color: var(--line-dark); }
.pillar li::before {
  counter-increment: pillar; content: counter(pillar, decimal-leading-zero);
  min-width: 32px; font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--blue);
}
.pillar li strong { display: block; margin-bottom: 2px; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; color: var(--midnight); }
.pillar-a li strong { color: var(--white); }
.pillar li span { font-size: 0.9375rem; }

.service-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-3); margin-top: auto; }
.service-links .service-cta { margin-top: 0; }
.service-cta-alt { color: var(--slate); }
.service-cta-alt:hover { color: var(--midnight); }
.services-note { margin-top: var(--s-4); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-card);
  background: var(--blue-50); border: 1px solid #C9D5FF;
  color: var(--midnight); font-size: 0.9375rem; line-height: 1.6;
}
.notice svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; color: var(--blue-ink); }
.notice p { margin: 0; }

/* Concept labelling on work cards */
.concept-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(14, 28, 51, 0.88); border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.filters-light .filter { color: var(--midnight); border-color: #CDD5E3; }
.filters-light .filter:hover { border-color: var(--midnight); color: var(--midnight); }
.filters-light .filter.is-active { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.work-note { margin-top: var(--s-4); font-size: 0.9375rem; }
.work-empty { margin-top: var(--s-3); }

/* Communication & approvals */
.comms-grid { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 960px) { .comms-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); } }
.comm-list { display: grid; gap: 14px; margin-top: var(--s-4); }
@media (min-width: 640px) { .comm-list { grid-template-columns: 1fr 1fr; } }
.comm-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  border-radius: var(--r-card); background: var(--canvas); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.comm-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.comm-item h3 { font-size: 1rem; margin-bottom: 4px; }
.comm-item p { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.icon-chip {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); color: var(--blue-ink); border: 1px solid #D5DEFF;
}
.icon-chip svg { width: 22px; height: 22px; }

.approval {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 4vw, 36px); border-radius: 24px; color: var(--on-dark-muted);
  background: radial-gradient(70% 60% at 90% 0%, rgba(65, 105, 255, 0.4), transparent 70%), var(--midnight);
  box-shadow: var(--sh-3);
}
.approval::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: 0.06; mix-blend-mode: overlay; }
.approval h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.approval-sub { margin: 0; font-size: 0.9375rem; }
.approval ol { margin-top: var(--s-3); counter-reset: ap; }
.approval li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-dark); color: var(--white); font-weight: 500; }
.approval li::before {
  counter-increment: ap; content: counter(ap);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(65, 105, 255, 0.24); color: var(--blue-light); font-family: var(--font-head); font-weight: 700;
}
.who { padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(65, 105, 255, 0.26); color: var(--blue-light); }
.who-you { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.approval-foot { margin: var(--s-3) 0 0; padding-top: var(--s-2); border-top: 1px solid var(--line-dark); font-size: 0.875rem; }

/* CTA band: a floating blue card that straddles the canvas → footer boundary */
.cta-section { position: relative; padding-top: var(--s-section); background: linear-gradient(to bottom, var(--canvas) 50%, var(--midnight) 50%); }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: var(--s-4); align-items: center;
  padding: clamp(32px, 6vw, 72px); border-radius: 28px; color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(143, 166, 255, 0.55), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(14, 28, 51, 0.5), transparent 70%),
    linear-gradient(135deg, var(--blue-strong), #2A45C4);
  box-shadow: 0 2px 4px rgba(14, 28, 51, 0.1), 0 24px 56px rgba(14, 28, 51, 0.28), 0 48px 96px rgba(53, 88, 240, 0.25);
}
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.4fr auto; gap: var(--s-6); } }
.cta-card h2 { color: var(--white); margin-bottom: var(--s-2); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.12; }
.cta-card h2 > .text-blue { color: #C9D5FF; }
.cta-card p { max-width: 34em; font-size: 1.0625rem; }
.cta-card .pill { background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02)); z-index: -1; }
.cta-card .pill-a { right: -20px; top: -70px; height: 240px; }
.cta-card .pill-b { right: 90px; bottom: -110px; height: 200px; opacity: 0.6; }
@media (max-width: 899px) { .cta-card .btn-row .magnetic, .cta-card .btn-row .magnetic > .btn { flex: 1 1 100%; } }
.cta-section + .site-footer { padding-top: var(--s-6); }

/* ---------- Service page sections ---------- */
.who-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .who-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.who-card {
  position: relative; padding: 28px 24px; border-radius: 20px; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.who-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #C9D5FF; }
.who-card .icon-chip { margin-bottom: var(--s-2); background: var(--blue-50); }
.who-card h3 { margin-bottom: 8px; }
.who-card p { font-size: 0.9375rem; }

.deliver-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 960px) { .deliver-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-6); } .deliver-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.deliver-list { display: grid; gap: 12px; }
.deliver-item {
  display: flex; gap: var(--s-2); align-items: flex-start; padding: 18px 20px;
  border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.deliver-item:hover { transform: translateX(4px); box-shadow: var(--sh-2); }
.deliver-item .chk {
  display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-ink);
}
.deliver-item .chk svg { width: 16px; height: 16px; }
.deliver-item h3 { font-size: 1rem; margin-bottom: 2px; }
.deliver-item p { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.deliver-head .notice { margin-top: var(--s-3); }

.flow { display: grid; gap: 16px; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(var(--n, 5), 1fr); gap: 20px; } }
.flow-step {
  position: relative; padding: 24px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line-dark);
  transition: transform 0.45s var(--ease-spring), background-color 0.3s var(--ease-out), border-color 0.3s;
}
.flow-step:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.075); border-color: rgba(143, 166, 255, 0.4); }
.flow-num { display: block; margin-bottom: var(--s-2); font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.flow-step h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.flow-step p { margin: 0; font-size: 0.9375rem; line-height: 1.65; }
@media (min-width: 1100px) {
  .flow-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -20px; width: 20px; height: 2px; background: var(--blue); opacity: 0.45; }
}

.rel-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } .rel-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.rel-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px;
  border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  color: var(--slate); text-decoration: none;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #C9D5FF; }
.rel-card:active { transform: scale(0.98); }
.rel-card .tag-soft { align-self: flex-start; margin-bottom: 6px; }
.rel-card strong { font-family: var(--font-head); font-size: 1.0625rem; letter-spacing: -0.015em; color: var(--midnight); }
.rel-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: var(--blue-ink); }
.rel-card .more svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.rel-card:hover .more svg { transform: translateX(4px); }
.rel-card p { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.tag-soft { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Services overview ---------- */
.svc-rows { display: grid; gap: var(--s-3); }
.svc-row {
  display: grid; gap: var(--s-3); padding: clamp(24px, 4vw, 40px);
  border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-2);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 960px) { .svc-row { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-6); align-items: start; } }
.svc-row-num { display: block; margin-bottom: var(--s-2); font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.18em; color: var(--blue-ink); }
.svc-row h3 { margin-bottom: 10px; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; }
.svc-row .ticks { flex: none; margin: 0 0 var(--s-3); padding-top: 0; border-top: 0; }
@media (min-width: 640px) { .svc-row .ticks { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }
.svc-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--s-3); }
.svc-row-actions .service-cta { margin-top: 0; }

.compare { display: grid; gap: 20px; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; gap: var(--s-3); } }
.compare-card { padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.compare-card:first-child { border-color: #C9D5FF; background: linear-gradient(180deg, rgba(65, 105, 255, 0.07), rgba(65, 105, 255, 0) 160px), var(--white); }
.compare-card h3 { margin: 12px 0 8px; font-size: 1.375rem; letter-spacing: -0.02em; }
.compare-card .ticks { flex: none; margin-bottom: 0; }
.compare-foot { margin-top: var(--s-3); }

.goals { display: grid; gap: 12px; }
@media (min-width: 800px) { .goals { grid-template-columns: 1fr 1fr; } }
.goal {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 18px 20px;
  border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  text-decoration: none; color: var(--slate);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.goal:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #C9D5FF; }
.goal:active { transform: scale(0.98); }
.goal strong { display: block; font-family: var(--font-head); font-size: 1rem; letter-spacing: -0.01em; color: var(--midnight); }
.goal small { display: block; font-size: 0.875rem; }
.goal svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--blue-ink); transition: transform 0.3s var(--ease-out); }
.goal:hover svg { transform: translateX(4px); }

/* ---------- About ---------- */
.values-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { padding: 28px 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.value-card .value-num { display: block; margin-bottom: var(--s-2); font-size: 2rem; line-height: 1; letter-spacing: -0.03em; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.9375rem; }

/* ---------- Contact page ---------- */
.next-steps { display: grid; gap: 16px; counter-reset: ns; }
@media (min-width: 800px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-steps li { padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); counter-increment: ns; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); display: block; margin-bottom: var(--s-2); font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.next-steps h3 { margin-bottom: 6px; }
.next-steps p { margin: 0; font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  .comm-item:hover, .who-card:hover, .deliver-item:hover, .flow-step:hover, .rel-card:hover, .goal:hover { transform: none; }
}
.work-card h3 { color: var(--white); }
.pv-site, .pv-video, .pv-rows, .pv-cal { min-height: 0; }
.pv-site { overflow: hidden; }
@media (max-width: 479px) {
  .pv-site .hero-block { height: 52px; }
  .pv-site .line { display: none; }
  .pv-site .boxes i { height: 36px; }
}
