/* ==========================================================================
   KEN Infotech — Design System
   Purple / Blue / White premium technology aesthetic
   ========================================================================== */

:root {
  /* Brand palette */
  --violet-950: #2d021c;
  --violet-900: #590437;
  --violet-800: #860753;
  --violet-700: #b2096e;
  --violet-600: #df0b8a;
  --violet-500: #dd62b0;
  --violet-400: #e482c0;
  --violet-200: #f2c0df;
  --violet-50: #fcf0f7;

  --blue-900: #0e1b38;
  --blue-800: #162959;
  --blue-700: #1d387a;
  --blue-600: #25479b;
  --blue-500: #558ec8;
  --blue-400: #77a5d3;
  --blue-100: #dde9f4;
  --blue-50: #eff4fa;

  --ink: #0b1120;
  --ink-soft: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--violet-500) 0%, var(--violet-700) 100%);
  --grad-brand-soft: linear-gradient(120deg, #fdf4f9 0%, #f0f4f9 100%);
  --grad-deep: linear-gradient(135deg, #590437 0%, #860753 45%, #0e1b38 100%);
  --grad-text: linear-gradient(100deg, #df0b8a 0%, #a21a94 45%, #25479b 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(14, 27, 56, 0.06);
  --shadow-sm: 0 6px 18px -8px rgba(14, 27, 56, 0.18);
  --shadow-md: 0 18px 40px -22px rgba(14, 27, 56, 0.35);
  --shadow-lg: 0 34px 70px -32px rgba(14, 27, 56, 0.42);
  --shadow-glow: 0 24px 60px -24px rgba(223, 11, 138, 0.55);

  /* Shape + rhythm */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: clamp(1.15rem, 3.6vw, 2.75rem);
  --section-y: clamp(3.75rem, 8vw, 7.5rem);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: clamp(110px, 12vh, 140px);
}

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(0.975rem, 0.94rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.35rem + 3.2vw, 4rem);
}

h2 {
  font-size: clamp(1.65rem, 1.12rem + 2.2vw, 2.85rem);
}

h3 {
  font-size: clamp(1.3rem, 1.05rem + 1.05vw, 1.85rem);
}

h4 {
  font-size: clamp(1.1rem, 0.99rem + 0.5vw, 1.35rem);
}

h5 {
  font-size: 1.05rem;
}

p {
  text-wrap: pretty;
}

ul {
  padding-left: 1.15rem;
}

::selection {
  background: var(--violet-200);
  color: var(--violet-900);
}

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

/* ---------- Layout primitives ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - (var(--gutter) * 2), 900px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem);
}

.section--alt {
  background: var(--surface-2);
}

.section--gradient {
  background: var(--grad-brand-soft);
}

.section--deep {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.82);
}

.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4,
.section--deep h5 {
  color: #fff;
}

.grid {
  display: grid;
  gap: clamp(1.1rem, 2.2vw, 1.9rem);
  align-items: stretch;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  grid-auto-rows: 1fr;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.75rem, 4.5vw, 4rem);
  align-items: center;
}

@media (max-width: 991px) {
  .solution-split .solution-media,
  .split .solution-media {
    order: 1 !important;
  }
  .solution-split .solution-content,
  .split .solution-content {
    order: 2 !important;
  }
}

.stack>*+* {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-auto {
  margin-top: auto !important;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-600);
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-pill);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.section--deep .eyebrow {
  color: var(--violet-200);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.02rem, 0.97rem + 0.35vw, 1.2rem);
  color: var(--body);
}

.section--deep .lead {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 780px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.92rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--blue-600), var(--violet-600));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px -20px rgba(37, 99, 235, 0.6);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
}

.btn .btn-arrow {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--violet-700);
  border-color: var(--violet-200);
  box-shadow: none;
}

.btn--ghost::after {
  background: var(--violet-50);
}

.btn--ghost:hover {
  color: var(--violet-800);
  box-shadow: var(--shadow-sm);
}

.btn--pink {
  background: linear-gradient(135deg, #df0b8a 0%, #b2096e 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 10px 28px -6px rgba(223, 11, 138, 0.5);
}

.btn--pink::after {
  background: linear-gradient(120deg, #e6007e, #df0b8a);
}

.btn--pink:hover {
  color: #ffffff !important;
  box-shadow: 0 16px 36px -6px rgba(223, 11, 138, 0.65);
}

.btn--light {
  background: #fff;
  color: var(--violet-700);
  box-shadow: var(--shadow-md);
}

.btn--light::after {
  background: var(--violet-50);
}

.btn--light:hover {
  color: var(--violet-800);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: none;
}

.btn--outline-light::after {
  background: rgba(255, 255, 255, 0.14);
}

.btn--wide {
  width: 100%;
}

.btn--sm {
  padding: 0.68rem 1.25rem;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--violet-700);
  transition: gap 0.3s ease, color 0.3s ease;
}

.link-arrow:hover {
  gap: 0.85rem;
  color: var(--blue-600);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease,
    border-color 0.45s ease;
  height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet-200);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3,
.card h4 {
  margin-bottom: 0.6rem;
}

.card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--violet-200);
  margin-bottom: 1.1rem;
  color: var(--violet-700);
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.card:hover .card__icon {
  transform: translateY(-3px) rotate(-4deg);
}

/* Media card (image on top) */
.media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.media-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet-200);
}

.media-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
}

.media-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--img-par, 0px), 0) scale(var(--img-scale, 1));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-card:hover .media-card__media img {
  --img-scale: 1.045;
}

.media-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 3, 46, 0) 40%, rgba(22, 3, 46, 0.5) 100%);
  opacity: 0.75;
}

/* Subtle brand-tinted overlay on hover */
.media-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.28), rgba(37, 99, 235, 0.22));
  transition: opacity 0.4s ease;
}

.media-card:hover .media-card__media::before {
  opacity: 1;
}

.media-card .chip {
  transition: transform 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.media-card:hover .chip {
  transform: translateY(-2px);
  border-color: var(--violet-300, var(--violet-200));
}


.media-card__body {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
}

.media-card .link-arrow,
.media-card .mt-auto {
  margin-top: auto !important;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
  color: var(--violet-700);
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.75rem;
  width: fit-content;
}

.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  backdrop-filter: blur(14px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease,
    border-color 0.45s ease;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Feature / tick list */
.tick-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.tick-list li {
  position: relative;
  padding-left: 2.1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 6px 14px -6px rgba(109, 40, 217, 0.8);
}

.tick-list li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 0.62em;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.section--deep .tick-list li {
  color: rgba(255, 255, 255, 0.86);
}

.tick-list--2col {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* Pill list of capabilities */
.pill-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0.85rem;
}

.pill-grid li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.pill-grid li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-200);
}

.pill-grid li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Stats */
.stat {
  text-align: center;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(100deg, #fff, var(--violet-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

/* Media frame (images with gradient border glow) */
.frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-brand-soft);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--contain {
  padding: clamp(1rem, 3vw, 2.25rem);
  background: var(--grad-brand-soft);
}

.frame--contain img {
  object-fit: contain;
}

.frame--tall {
  aspect-ratio: 4 / 5;
}

.frame--wide {
  aspect-ratio: 16 / 10;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-left: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet-500), var(--blue-500), transparent);
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 0.45rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--violet-500);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.14);
}

.section--deep .timeline__item::before {
  background: var(--violet-950);
}

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
}

.logo-tile {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  min-height: 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.logo-tile img {
  max-height: 66px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.5s ease;
}

.logo-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-200);
}

.logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* ---------- Header / nav ---------- */
.topbar {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.55rem;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.3s ease;
}

.topbar a:hover {
  color: #fff;
}

.topbar__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.topbar__socials {
  display: flex;
  gap: 0.9rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s ease, background 0.35s ease, padding 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-stuck {
  box-shadow: var(--shadow-md);
  background: rgba(11, 12, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 0;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nav__brand img {
  height: clamp(48px, 5.5vw, 68px);
  width: auto;
  object-fit: contain;
}

.nav__cluster {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.75rem);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.35vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: #ffffff;
  padding: 0.55rem 0.25rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__link:hover {
  color: #ffffff;
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.is-active {
  color: #ffffff;
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.nav__toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav__toggle span::before {
  top: -7px;
  left: 50%;
}

.nav__toggle span::after {
  top: 7px;
  left: 50%;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  /* 10% reduction in mobile view only (PC view untouched) */
  :root {
    --header-h: calc(clamp(110px, 12vh, 140px) * 0.9);
  }

  .nav {
    min-height: var(--header-h);
    padding: calc(0.75rem * 0.9) 0;
  }

  .nav__brand img {
    height: 39.6px !important; /* 10% reduction from 44px */
  }

  .site-header.is-condensed .nav {
    min-height: calc(var(--header-h) - 18px);
    padding: calc(0.5rem * 0.9) 0;
  }

  .site-header.is-condensed .nav__brand img {
    height: 34px !important;
  }

  .nav__toggle {
    display: block;
    width: 41px;
    height: 41px;
    border-radius: 12px;
  }

  .nav__toggle span,
  .nav__toggle span::before,
  .nav__toggle span::after {
    width: 18px;
  }

  .nav__toggle span::before {
    top: -6px;
  }

  .nav__toggle span::after {
    top: 6px;
  }

  .nav__toggle[aria-expanded="true"] span::before {
    transform: translateX(-50%) translateY(6px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span::after {
    transform: translateX(-50%) translateY(-6px) rotate(-45deg);
  }

  .nav__cta {
    display: none;
  }

  .nav__menu {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18);
    padding: 0.75rem var(--gutter) 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
  }

  .nav__menu.is-open {
    max-height: min(85vh, 650px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.02rem;
    font-weight: 600;
    color: #0f172a !important;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover {
    color: var(--magenta-600, #df0b8a) !important;
  }

  .nav__link.is-active {
    color: var(--magenta-600, #df0b8a) !important;
    font-weight: 700;
  }

  .nav__item.has-dropdown {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav__item.has-dropdown > .nav__link {
    border-bottom: none;
  }

  .nav__dropdown-toggle .nav__chevron {
    display: inline-flex !important;
    margin-left: auto;
    color: #64748b;
    transition: transform 0.3s ease;
  }

  .nav__item.has-dropdown.is-expanded .nav__chevron {
    transform: rotate(180deg);
  }

  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 2.5px solid var(--magenta-500, #df0b8a);
    margin: 0.2rem 0 0.75rem 0.6rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    min-width: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav__sublink {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155 !important;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .nav__sublink:hover {
    color: var(--magenta-600, #df0b8a) !important;
    background: rgba(223, 11, 138, 0.06);
  }

  .nav__sublink.is-active {
    color: var(--magenta-600, #df0b8a) !important;
    font-weight: 700;
    background: rgba(223, 11, 138, 0.08);
  }

  .nav__menu .nav__mobile-cta {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    list-style: none;
  }

  .nav__menu .nav__mobile-cta .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--magenta-600, #df0b8a) 0%, #4a148c 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(223, 11, 138, 0.3);
    text-decoration: none;
  }
}

/* ---------- Page hero (All Pages 100svh/100dvh Responsive Viewport Fit) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #04070f;
  color: rgba(255, 255, 255, 0.82);
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h, 72px);
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

#hero-canvas,
#aurora-curtain-canvas,
#galaxy-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#aurora-curtain-canvas,
#galaxy-canvas {
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  display: block;
  background: #02040a;
  transform-origin: center center;
  will-change: transform;
}

.hero--galaxy,
.hero--home,
.hero--video {
  background: #02040a;
}

.hero--galaxy::before,
.hero--home::before,
.hero--video::before {
  display: none !important;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%);
  object-fit: cover !important;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.82) contrast(1.05);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(90deg, rgba(4, 7, 15, 0.88) 0%, rgba(4, 7, 15, 0.55) 45%, rgba(4, 7, 15, 0.25) 100%),
    linear-gradient(180deg, rgba(4, 7, 15, 0.45) 0%, transparent 40%, rgba(4, 7, 15, 0.85) 100%);
  pointer-events: none;
}

.hero--video .hero-seq {
  text-align: left;
  align-items: flex-start;
  margin-inline: 0 auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  max-width: min(720px, 92vw);
}

.hero--video .hero-seq .lead,
.hero--video .hero-seq p.lead {
  margin-inline: 0 auto;
  text-align: left;
}

.hero--galaxy .hero-seq {
  align-items: center;
  text-align: center;
  transform: translateY(-clamp(3rem, 8vh, 6rem));
}

.hero--galaxy .hero-seq .lead,
.hero--galaxy .hero-seq p.lead {
  margin-inline: auto;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(45% 60% at 15% 20%, rgba(47, 139, 255, 0.28), transparent 60%),
    radial-gradient(40% 55% at 85% 80%, rgba(63, 208, 255, 0.18), transparent 62%);
  animation: gradient-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding-block: clamp(0.75rem, 2.5vh, 2.5rem);
  display: flex;
  align-items: center;
}

/* Subpage hero content layout */
.hero .hero-seq {
  position: static;
  width: 100%;
  max-width: min(920px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2vw + 1.2vh, 3.6rem);
  font-weight: 600;
  line-height: clamp(1.08, 1.04 + 0.1vw, 1.16);
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0;
}

.hero p.lead,
.hero .lead {
  font-size: clamp(0.78rem, 0.66rem + 0.22vw + 0.2vh, 0.98rem);
  line-height: clamp(1.35, 1.28 + 0.22vh, 1.54);
  color: rgb(255, 255, 255);
  margin-top: clamp(0.4rem, 1.4vh, 1.2rem);
  margin-bottom: 0;
  max-width: min(72ch, 94vw);
}

/* Pink bar / eyebrow completely removed in hero across all pages */
.hero .eyebrow,
.hero .crumbs {
  display: none !important;
}

.hero .mt-4 {
  margin-top: clamp(0.35rem, 1.2vh, 1rem) !important;
}

.hero .mt-6 {
  margin-top: clamp(0.4rem, 1.4vh, 1.25rem) !important;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  width: 100%;
  height: 100%;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.85rem);
  margin-top: clamp(0.6rem, 1.6vh, 1.35rem);
}

.hero__actions .btn {
  padding: clamp(0.38rem, 0.8vh, 0.62rem) clamp(0.95rem, 1.5vw, 1.5rem);
  font-size: clamp(0.76rem, 0.68rem + 0.2vw, 0.88rem);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual .frame {
  aspect-ratio: 5 / 4;
  max-height: clamp(220px, 42vh, 420px);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  pointer-events: none;
}

.hero__orb--1 {
  width: clamp(140px, 20vw, 280px);
  aspect-ratio: 1;
  background: var(--blue-500);
  top: -8%;
  right: -6%;
  animation: float-y 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: clamp(120px, 16vw, 230px);
  aspect-ratio: 1;
  background: #3fd0ff;
  bottom: -10%;
  left: -8%;
  animation: float-y 15s ease-in-out infinite reverse;
}

/* ---------- Hero — LOUD.-style full-bleed variant (Home Page) ---------- */
.hero--home.hero--loud .hero__inner {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding-block: clamp(0.4rem, 1.6vh, 1.6rem);
  display: flex;
  align-items: stretch;
}

.hero__loud-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* small pulsing dot, top-left */
.hero__dot {
  position: absolute;
  top: clamp(0.5rem, 2vh, 1.75rem);
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5cc8ff;
  box-shadow: 0 0 0 0 rgba(92, 200, 255, 0.6);
  animation: hero-dot-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

/* centered badge pill above the headline */
.hero__badge {
  align-self: center;
  margin-top: clamp(0.25rem, 1.5vh, 1.25rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 0.54rem + 0.2vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(0.2rem, 0.45vh, 0.35rem) clamp(0.65rem, 1vw, 0.95rem);
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

/* centered headline block — holds headline, lead paragraph, and action buttons */
.hero__loud-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  max-width: min(920px, 94vw);
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 2;
}

.hero__loud-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 0.95rem + 1.8vw + 1.2vh, 3.35rem);
  letter-spacing: -0.01em;
  line-height: clamp(1.08, 1.04 + 0.1vw, 1.15);
  color: #fff;
  max-width: min(22ch, 100%);
  margin: 0;
}

.hero__loud-content .lead {
  margin-top: clamp(0.35rem, 1.2vh, 1.1rem);
  margin-bottom: 0;
  font-size: clamp(0.75rem, 0.64rem + 0.22vw + 0.2vh, 0.94rem);
  line-height: clamp(1.32, 1.25 + 0.22vh, 1.48);
  max-width: min(64ch, 92vw);
  color: #ffffff;
}

.hero__loud-content .animated-gradient,
.hero__loud-content .gradient-text {
  background: linear-gradient(100deg, #5cc8ff 0%, #3fd0ff 45%, #2f8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__loud-content .hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 0.9vw, 0.85rem);
  margin-top: clamp(0.5rem, 1.5vh, 1.25rem);
  flex-shrink: 0;
}

.hero__loud-content .hero__actions .btn {
  padding: clamp(0.38rem, 0.8vh, 0.62rem) clamp(0.95rem, 1.5vw, 1.5rem);
  font-size: clamp(0.76rem, 0.68rem + 0.2vw, 0.88rem);
}

/* bottom-left vertical tag list */
.hero__tags {
  position: absolute;
  left: 0;
  bottom: clamp(0.5rem, 2vh, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.2rem, 0.6vh, 0.5rem);
  z-index: 1;
}

.hero__tags li {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 0.52rem + 0.16vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.hero__tags li:hover {
  color: #7fd4ff;
  transform: translateX(3px);
}

/* floating pill, bottom-right */
.hero__loud-cta {
  position: absolute;
  right: 0;
  bottom: clamp(0.5rem, 2vh, 1.75rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 0.62rem + 0.16vw, 0.8rem);
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(0.32rem, 0.6vh, 0.52rem) clamp(0.75rem, 1.1vw, 1.15rem);
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  z-index: 1;
  white-space: nowrap;
}

.hero__loud-cta:hover {
  background: rgba(92, 200, 255, 0.14);
  border-color: rgba(92, 200, 255, 0.5);
  transform: translateY(-2px);
}

@keyframes gradient-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(2%, -3%, 0) scale(1.06);
  }
}

@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes hero-dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(92, 200, 255, 0.55);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(92, 200, 255, 0);
  }
}

/* Height-based adjustments for short viewport heights (laptops 1366x768 / 1280x720) */
@media (max-height: 750px) {
  .hero {
    min-height: 100svh;
    height: auto;
    padding-top: var(--header-h, 60px);
    padding-bottom: 1.5rem;
  }

  .hero p.lead,
  .hero .lead,
  .hero__loud-content .lead {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
  }
}

@media (max-height: 640px) {
  .hero {
    min-height: 100svh;
    height: auto;
    padding-top: var(--header-h, 54px);
    padding-bottom: 1rem;
  }

  .hero__badge {
    margin-top: 0.2rem;
  }

  .hero__tags,
  .hero__dot {
    opacity: 0.7;
  }

  .hero h1,
  .hero__loud-content h1 {
    font-size: clamp(1.35rem, 0.85rem + 2vw, 2.15rem);
  }

  .hero p.lead,
  .hero .lead,
  .hero__loud-content .lead {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
    margin-top: 0.3rem;
  }
}

/* Mobile & Tablet */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: calc(100svh - var(--header-h, 64px));
    max-height: none;
    padding-block: clamp(2.5rem, 6vh, 4rem);
    overflow: visible;
  }

  .hero p.lead,
  .hero .lead,
  .hero__loud-content .lead {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
  }

  .hero__inner {
    height: auto;
    min-height: auto;
    padding-block: 0;
  }

  .hero__tags {
    display: none;
  }

  .hero__loud-cta {
    position: static;
    margin-top: 1.5rem;
    align-self: center;
  }

  .hero__dot {
    display: none;
  }
}

/* Breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 1.35rem;
}

.crumbs a {
  transition: color 0.3s ease;
}

.crumbs a:hover {
  color: #fff;
}

.crumbs span[aria-current] {
  color: var(--violet-200);
}

.crumbs .sep {
  opacity: 0.5;
}

/* ---------- Contact / CTA band ---------- */
/* ---------- Contact / CTA band (Floating overlapping card) ---------- */
.cta-band {
  position: relative;
  z-index: 25;
  background: transparent !important;
  border-radius: 0;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: clamp(-3.8rem, -4.8vw, -2.8rem) !important;
  pointer-events: none;
}

.cta-band::before {
  display: none !important;
}

.cta-band>* {
  position: relative;
  z-index: 1;
}

.cta-band .container {
  background: linear-gradient(90deg, #b80068 0%, #870058 52%, #42003a 100%) !important;
  border-radius: 10px !important;
  padding: clamp(1.1rem, 1.8vw, 1.45rem) clamp(1.8rem, 3.8vw, 3.2rem) !important;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  outline: none !important;
  overflow: hidden;
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2rem !important;
  pointer-events: auto;
}

.cta-band .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* Right side tech circuit lines */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='220' viewBox='0 0 600 220' fill='none'%3E%3Cpath d='M80 30 H320 L360 70 H540' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='80' cy='30' r='3.5' stroke='%23ffffff' stroke-opacity='0.3' fill='%23ffffff' fill-opacity='0.2' stroke-width='1.5'/%3E%3Ccircle cx='320' cy='30' r='2.5' fill='%23ffffff' fill-opacity='0.25'/%3E%3Cpath d='M180 90 H390 L430 130 H570' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='180' cy='90' r='3' stroke='%23ffffff' stroke-opacity='0.3' fill='%23ffffff' fill-opacity='0.2' stroke-width='1.5'/%3E%3Cpath d='M40 150 H260 L300 190 H480' stroke='%23ffffff' stroke-opacity='0.1' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='150' r='3' stroke='%23ffffff' stroke-opacity='0.25' fill='%23ffffff' fill-opacity='0.15' stroke-width='1.5'/%3E%3Cpath d='M230 30 L250 50 H360 L380 70' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1'/%3E%3Ccircle cx='380' cy='70' r='2' fill='%23ffffff' fill-opacity='0.25'/%3E%3Cpath d='M430 130 L450 150 H530' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1'/%3E%3Ccircle cx='530' cy='150' r='2.5' fill='%23ffffff' fill-opacity='0.2'/%3E%3C/svg%3E"),
    /* Left side tech nodes / honeycomb */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='350' height='220' viewBox='0 0 350 220' fill='none'%3E%3Cpath d='M20 50 L60 25 L100 50 L100 95 L60 120 L20 95 Z M60 120 L100 145 L100 190 L60 215 L20 190 L20 145 Z' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2'/%3E%3Ccircle cx='60' cy='25' r='3' fill='%23ffffff' fill-opacity='0.18'/%3E%3Ccircle cx='100' cy='50' r='3' fill='%23ffffff' fill-opacity='0.18'/%3E%3Ccircle cx='20' cy='95' r='3' fill='%23ffffff' fill-opacity='0.18'/%3E%3Ccircle cx='60' cy='120' r='3.5' fill='%23ffffff' fill-opacity='0.22'/%3E%3Cpath d='M100 95 L140 120 L180 95' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'/%3E%3Ccircle cx='140' cy='120' r='2.5' fill='%23ffffff' fill-opacity='0.15'/%3E%3C/svg%3E");
  background-position: right center, left center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto 100%, auto 100%;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 820px) {
  .cta-band {
    margin-bottom: clamp(-3rem, -4.5vw, -2.5rem) !important;
  }

  .cta-band .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }
}

.cta-band .section-head {
  text-align: left !important;
  align-items: flex-start !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  flex: 1 1 auto;
}

.cta-band .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.cta-band .cta-pill-icon {
  display: inline-block;
  vertical-align: middle;
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.25vw, 2.15rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
}

.cta-band .lead {
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: 60ch;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85) !important;
}

.cta-band .btn,
.cta-band .btn--light,
.cta-band .btn--cta-card {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: linear-gradient(135deg, #c70077 0%, #7b0057 100%) !important;
  color: #fff !important;
  padding: 0.85rem 1.85rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.cta-band .btn::after,
.cta-band .btn--light::after,
.cta-band .btn--cta-card::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.cta-band .btn:hover,
.cta-band .btn--light:hover,
.cta-band .btn--cta-card:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, #e6007e 0%, #8c0062 100%) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(230, 0, 126, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

.cta-band .btn:hover .btn-arrow,
.cta-band .btn--light:hover .btn-arrow,
.cta-band .btn--cta-card:hover .btn-arrow {
  color: #ffffff !important;
  transform: translateX(4px) !important;
}

/* Ensure any plain section directly preceding .cta-band has a clean flat white background */
.section--alt:has(+ .cta-band),
.section--gradient:has(.cta-band) {
  background: var(--surface) !important;
}

.cta-band-wrap {
  background: var(--surface) !important;
}


/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.95rem 1.15rem;
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.field::placeholder {
  color: #9a9cb5;
}

.field:focus {
  outline: none;
  border-color: var(--violet-400);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

textarea.field {
  min-height: 165px;
  resize: vertical;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.35rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #0a0a1a;
  color: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.site-footer::before {
  display: none;
}

.footer-bg-map {
  position: absolute;
  top: clamp(6rem, 8vw, 8rem);
  right: -10%;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at center, rgba(223, 11, 138, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.site-footer>* {
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 5rem);
}

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

.footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet-600);
}

.footer__links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

.footer__links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__links li:last-child {
  border-bottom: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__links a::before {
  content: "›";
  color: var(--violet-600);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}

.footer__links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer__contacts {
  display: grid;
  gap: 1.25rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.25rem;
}

.footer__contact-item:last-child {
  border-bottom: none;
}

.footer__contact-item .contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-600) 0%, var(--blue-700) 100%);
  color: #fff;
  flex-shrink: 0;
}

.footer__contact-item .contact-icon svg {
  width: 20px;
  height: 20px;
}

.footer__contact-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.footer__contact-item div {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.65);
}

.footer__contact-item a:hover {
  color: #fff;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.footer__socials a:hover {
  transform: translateY(-4px);
  background: var(--violet-600);
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  z-index: 80;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-4px);
}

/* Utility */
.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;
}

.rich-text p+p {
  margin-top: 1rem;
}

.rich-text ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin-block: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 560px) {
  .topbar {
    font-size: 0.8rem;
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
  }
}


/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}

.scroll-progress>span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-brand);
  will-change: transform;
}

/* ---------- Condensed header on scroll ---------- */
.site-header.is-condensed {
  background: #25479B;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.is-condensed .nav {
  min-height: calc(var(--header-h) - 20px);
  padding: 0.5rem 0;
}

.site-header.is-condensed .nav__brand img {
  height: clamp(40px, 4.2vw, 54px);
}

.nav__brand img {
  transition: height 0.35s ease;
}

.nav {
  transition: min-height 0.5s ease;
}

/* ---------- Staggered checklist reveal ---------- */
.js .list-check[data-anim] li,
.js ul[data-anim].list-check li {}


/* Hide the in-menu mobile CTA on desktop so only one primary CTA shows */
@media (min-width: 1025px) {
  .nav__menu .nav__mobile-cta {
    display: none;
  }
}

/* ---------- Dropdown Styles ---------- */
.nav__item.has-dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav__chevron {
  transition: transform 0.3s ease;
}

.nav__item.has-dropdown:hover .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
}

.nav__item.has-dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sublink {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.nav__sublink:hover,
.nav__sublink.is-active {
  color: var(--violet-700);
  background: var(--surface-2);
}

/* ==========================================================================
   Home Redesign Additions — Sections 1 to 13
   ========================================================================== */

/* ---------- Section 2: Credibility Strip ---------- */
.credibility-strip {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  margin-bottom: 2.5rem;
}

.credibility-strip__inner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 45px -15px rgba(14, 27, 56, 0.12);
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: center;
}

.credibility-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.credibility-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
  display: none;
}

@media (min-width: 1100px) {
  .credibility-item:not(:last-child)::after {
    display: block;
  }
}

.credibility-item__val {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.credibility-item__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
}

/* ---------- Deliverables / Tag Lists in Cards ---------- */
.card-tags-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-700);
  margin-top: 0.35rem;
}

.card-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

.card-tags li {
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.58rem;
  transition: all 0.3s ease;
}

.media-card:hover .card-tags li,
.card:hover .card-tags li {
  border-color: var(--violet-200);
  background: var(--violet-50);
  color: var(--violet-900);
}

/* ---------- Section 8: Method / How We Deliver ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
  position: relative;
}

.method-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.method-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.method-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-200);
}

.method-card:hover::before {
  transform: scaleX(1);
}

.method-card__step {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.method-card__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--violet-700);
}

.method-callout {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  margin-top: 2.75rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.method-callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
}

.method-callout:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet-300);
}

.method-callout__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-600);
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  padding: 0.38rem 0.95rem;
  border-radius: var(--r-pill);
}

.method-callout__badge svg {
  color: var(--violet-600);
  flex-shrink: 0;
}

.method-callout p {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
}

.method-callout p strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(120deg, rgba(223, 11, 138, 0.1) 0%, rgba(37, 71, 155, 0.08) 100%);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
}

/* ---------- Section 9: Technology Ecosystem ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
}

.tech-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-300);
}

.tech-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tech-card__badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet-600);
}

/* ---------- Section 10: Case Studies Extended Card ---------- */
.case-study-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  height: 100%;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet-200);
}

.case-study-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}

.case-study-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study-card:hover .case-study-card__media img {
  transform: scale(1.05);
}

.case-study-card__body {
  padding: clamp(1.3rem, 2.2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.case-study-meta__pill {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet-700);
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.65rem;
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: var(--body);
}

.case-block strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.case-note-disclaimer {
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
}

/* ---------- Section 11: Why KEN Grid ---------- */
.why-ken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.why-ken-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-ken-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-200);
}

.why-ken-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--violet-200);
  display: grid;
  place-items: center;
  color: var(--violet-700);
  margin-bottom: 0.35rem;
}

/* =========================================================
   CLIENT LOGOS TABLE (EQUAL CELL SIZES)
   ========================================================= */
.client-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-top: 2.5rem;
  overflow: hidden;
}

.client-logo-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.client-logo-table td {
  width: 33.333%;
  height: 135px;
  text-align: center;
  vertical-align: middle;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: background-color 0.25s ease;
}

.client-logo-table td[colspan="3"] {
  width: 100%;
  height: 145px;
}

.client-logo-table td[colspan="3"] img,
.client-logo-table td img.logo-onboxd-featured {
  max-width: 320px;
  max-height: 95px;
}

.client-logo-table td img.logo-onboxd {
  max-width: 220px;
  max-height: 75px;
}

.client-logo-table td img.logo-canopy {
  max-height: 80px;
  max-width: 170px;
  transform: scale(1.48);
}
.client-logo-table td:hover img.logo-canopy {
  transform: scale(1.56);
}

.client-logo-table td img.logo-cmg {
  max-height: 78px;
  max-width: 165px;
  transform: scale(1.35);
}
.client-logo-table td:hover img.logo-cmg {
  transform: scale(1.42);
}

.client-logo-table td img.logo-spark {
  max-height: 82px;
  max-width: 180px;
  transform: scale(1.3);
}
.client-logo-table td:hover img.logo-spark {
  transform: scale(1.38);
}

.client-logo-table td img.logo-ezel {
  max-height: 78px;
  max-width: 160px;
  transform: scale(1.25);
}
.client-logo-table td:hover img.logo-ezel {
  transform: scale(1.32);
}

.client-logo-table td img.logo-dtail {
  max-height: 78px;
  max-width: 160px;
  transform: scale(1.28);
}
.client-logo-table td:hover img.logo-dtail {
  transform: scale(1.35);
}

.client-logo-table td img.logo-datrive {
  max-height: 68px;
  max-width: 195px;
}

.client-logo-table td:hover {
  background-color: #f8fafc;
}

.client-logo-table td img {
  max-width: 170px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.client-logo-table td:hover img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .client-table-container {
    margin-top: 1.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .client-logo-table {
    min-width: 520px;
  }
  .client-logo-table td {
    height: 105px;
    padding: 1rem;
  }
  .client-logo-table td img {
    max-width: 130px;
    max-height: 46px;
  }
  .client-logo-table td img.logo-onboxd {
    max-width: 170px;
    max-height: 58px;
  }
  .client-logo-table td img.logo-canopy {
    max-height: 56px;
    transform: scale(1.38);
  }
  .client-logo-table td:hover img.logo-canopy {
    transform: scale(1.44);
  }
  .client-logo-table td img.logo-cmg {
    max-height: 54px;
    transform: scale(1.25);
  }
  .client-logo-table td:hover img.logo-cmg {
    transform: scale(1.32);
  }
  .client-logo-table td img.logo-spark {
    max-height: 58px;
    transform: scale(1.2);
  }
  .client-logo-table td:hover img.logo-spark {
    transform: scale(1.26);
  }
  .client-logo-table td img.logo-ezel {
    max-height: 54px;
    transform: scale(1.18);
  }
  .client-logo-table td:hover img.logo-ezel {
    transform: scale(1.24);
  }
  .client-logo-table td img.logo-dtail {
    max-height: 54px;
    transform: scale(1.2);
  }
  .client-logo-table td:hover img.logo-dtail {
    transform: scale(1.26);
  }
}

/* What We Do Cards — Equal Height & Aligned Explore Links */
#what-we-do .grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

#what-we-do .media-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

#what-we-do .media-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

#what-we-do .media-card .link-arrow,
#what-we-do .media-card .mt-auto {
  margin-top: auto !important;
}

@media (min-width: 768px) {
  #what-we-do .media-card__body p {
    min-height: 4.8em;
  }
}

/* ---------- Client Logos Marquee ---------- */
.client-logo-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.client-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  height: 72px !important;
  padding: 0.5rem 1.1rem !important;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--r-pill, 9999px);
  box-shadow: 0 4px 16px -4px rgba(14, 27, 56, 0.06);
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.client-logo-pill:hover {
  transform: translateY(-3px);
  border-color: var(--violet-300, #c4b5fd);
  box-shadow: 0 10px 28px -6px rgba(139, 92, 246, 0.2);
}

.client-logo-pill img {
  max-width: 120px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.client-logo-pill:hover img {
  transform: scale(1.06);
}

/* Individual Optical Sizing for Visually Balanced Logos */
.client-logo-pill img.logo-datrive {
  max-height: 27px;
  max-width: 110px;
}

.client-logo-pill img.logo-specsavers {
  max-height: 30px;
  max-width: 110px;
}

.client-logo-pill img.logo-gsk {
  max-height: 33px;
  max-width: 115px;
}

.client-logo-pill img.logo-canopy {
  max-height: 56px;
  max-width: 135px;
  transform: scale(1.7);
}
.client-logo-pill:hover img.logo-canopy {
  transform: scale(1.8);
}

.client-logo-pill img.logo-cmg {
  max-height: 50px;
  max-width: 125px;
  transform: scale(1.4);
}
.client-logo-pill:hover img.logo-cmg {
  transform: scale(1.48);
}

.client-logo-pill img.logo-spark {
  max-height: 52px;
  max-width: 125px;
  transform: scale(1.45);
}
.client-logo-pill:hover img.logo-spark {
  transform: scale(1.53);
}

.client-logo-pill img.logo-divine {
  max-height: 48px;
  max-width: 110px;
  transform: scale(1.35);
}
.client-logo-pill:hover img.logo-divine {
  transform: scale(1.43);
}

.client-logo-pill img.logo-ezel {
  max-height: 50px;
  max-width: 115px;
  transform: scale(1.25);
}
.client-logo-pill:hover img.logo-ezel {
  transform: scale(1.33);
}

.client-logo-pill img.logo-azion {
  max-height: 48px;
  max-width: 115px;
  transform: scale(1.22);
}
.client-logo-pill:hover img.logo-azion {
  transform: scale(1.3);
}
/* ==========================================================================
   FORM SUBMISSION STATES  (js/forms.js)
   ========================================================================== */

.form-status {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1.15rem;
  border-radius: var(--r-md, 10px);
  font-size: .95rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.form-status.is-pending {
  background: rgba(148, 163, 184, .12);
  border-color: rgba(148, 163, 184, .35);
  color: var(--ink, #14162b);
}

.form-status.is-success {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .4);
  color: #065f46;
}

.form-status.is-error {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .4);
  color: #991b1b;
}

[data-field-error] {
  margin: .4rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: #dc2626;
}

.field.is-invalid,
.careers-input.is-invalid,
.careers-select.is-invalid,
.careers-textarea.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

button[aria-busy="true"] {
  opacity: .72;
  cursor: progress;
}

button[aria-busy="true"] .btn-arrow { display: none; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Upload zone interaction states (js/forms.js) */
.careers-upload-zone { cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.careers-upload-zone:focus-visible { outline: 2px solid var(--violet-400, #8b5cf6); outline-offset: 3px; }
.careers-upload-zone.is-dragging { border-color: var(--violet-400, #8b5cf6); background: rgba(139, 92, 246, .07); }
.careers-upload-zone.has-file .careers-upload-icon { color: #10b981; }
.careers-upload-zone.is-invalid { border-color: #dc2626; background: rgba(220, 38, 38, .05); }

/* A looping background video is decoration. Under reduced motion, swap it for
   the poster still rather than hiding it — the hero must keep its imagery. */
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap {
    background: url("../media/get-in-touch-poster.webp") center / cover no-repeat;
  }
  .hero-bg-video { display: none; }
}


/* ==========================================================================
   SITE FOOTER + PHONE MODAL
   Extracted from js/components.js: injecting 15 KB of CSS per page cost a
   style recalculation on every load and could never be cached.
   ========================================================================== */

var styleBlock = `
      
.custom-footer {
  position: relative;
  background-color: #0b0c1b !important;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  font-family: var(--font-body), sans-serif;
  z-index: 10;
}
.custom-footer::before {
  content: "";
  position: absolute;
  top: clamp(6rem, 8vw, 8rem); right: 0; bottom: 0; width: 40%;
  background: radial-gradient(circle at center, rgba(223, 11, 138, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.custom-footer .container {
  position: relative;
  z-index: 1;
}
.custom-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.1fr;
  gap: 3rem;
  padding: clamp(6rem, 7.5vw, 7.5rem) 0 2rem 0;
}
@media (max-width: 1024px) {
  .custom-footer::before { display: none !important; }
}
@media (max-width: 900px) {
  .custom-footer-grid { grid-template-columns: 1fr; }
}
.cf-logo {
  width: 140px;
  margin-bottom: 1.5rem;
}
.cf-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.cf-title span {
  background: linear-gradient(90deg, #df0b8a, #8e24aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cf-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 90%;
}
.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #df0b8a 0%, #4a148c 100%);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
}
.cf-btn:hover { opacity: 0.9; color: #fff; }
.cf-follow {
  margin-top: 1.5rem;
}
.cf-follow h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.fs-icons {
  display: flex;
  gap: 0.5rem;
}
.fs-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: #17192f;
  display: flex; justify-content: center; align-items: center;
  color: #fff;
  transition: background 0.3s;
}
.fs-icon:hover { background-color: #df0b8a; color: #fff; }
.fs-icon svg { width: 16px; height: 16px; }

.cf-links-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 480px) {
  .cf-links-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.cf-heading {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}
.cf-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background-color: #df0b8a;
}

.fl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.fl-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fl-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}
.fl-arrow {
  color: #df0b8a;
  margin-right: 0.75rem;
  font-weight: 700;
}
.fl-link:hover { color: #fff; }

.custom-footer [data-anim] {
  clip-path: none !important;
}

.fc-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 4px 0;
}
.fc-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 4px 6px 1.25rem 4px;
  margin: 0 -4px;
  border-radius: 8px;
}
.fc-item:last-child { border-bottom: none; }
.fc-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #df0b8a 0%, #4a148c 100%);
  display: flex; justify-content: center; align-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
a.fc-item { text-decoration: none; }
a.fc-item:hover .fc-icon,
.fc-item--clickable:hover .fc-icon {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(223, 11, 138, 0.4);
}
.fc-icon svg { width: 18px; height: 18px; }
.fc-text { flex-grow: 1; }
.fc-text strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}
a.fc-item:hover .fc-text strong,
.fc-item--clickable:hover .fc-text strong {
  color: #df0b8a;
}
.fc-text div {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.fc-text a { color: rgba(255,255,255,0.6); text-decoration: none; }
.fc-text a:hover { color: #fff; }

/* Footer Phone Links */
.fc-phone-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 2px 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.fc-phone-btn:hover {
  color: #df0b8a;
  transform: translateX(3px);
}
.fc-item--clickable {
  cursor: pointer;
}

.custom-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.65rem 0;
  text-align: center;
  margin-top: 1rem;
}
.cf-copyright {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}
.cf-copyright .cf-separator {
  opacity: 0.45;
  user-select: none;
}
.cf-copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.cf-copyright a:hover {
  color: #ffffff;
  text-decoration: underline;
}
@media (max-width: 576px) {
  .cf-copyright .cf-separator {
    display: none;
  }
}

/* Ken Phone Action Modal */
.ken-phone-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.ken-phone-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ken-phone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ken-phone-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}
.ken-phone-modal-card {
  background: #101323;
  border: 1px solid #232738;
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  position: relative;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
}
.ken-phone-modal-overlay.is-open .ken-phone-modal-card {
  transform: scale(1) translateY(0);
}
.ken-phone-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 0%,
    rgba(49, 85, 167, 0.10),
    transparent 35%
  );
  pointer-events: none;
}
.ken-phone-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #9295a5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ken-phone-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.ken-modal-header {
  text-align: center;
  margin-bottom: 1.15rem;
}
.ken-modal-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #3155a7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.ken-modal-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
}
.ken-modal-sub {
  color: #9295a5;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
.ken-modal-tabs {
  display: flex;
  gap: 0.25rem;
  background: #141727;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #232738;
  margin-bottom: 0.85rem;
}
.ken-modal-tab {
  flex: 1;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #9295a5;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.ken-modal-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.ken-modal-tab.is-active {
  background: rgba(49, 85, 167, 0.16);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(49, 85, 167, 0.3);
  border-bottom: 2px solid #3155a7;
}
.ken-modal-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171a2b;
  border: 1px solid #292d40;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.85rem;
}
.ken-modal-preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8ab4f8;
}
.ken-modal-preview-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.ken-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ken-modal-action-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  background: #171a2b;
  border: 1px solid #292d40;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}
.ken-modal-action-btn:hover {
  background: #1c2035;
  border-color: #3b425e;
}
.ken-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ken-action-icon--phone {
  background: #3155a7;
}
.ken-action-icon--wa {
  background: #1da851;
}
.ken-action-text {
  flex-grow: 1;
  text-align: left;
}
.ken-action-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}
.ken-action-text span {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  color: #9295a5;
}
.ken-action-badge {
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ken-modal-action--phone .ken-action-badge {
  background: rgba(49, 85, 167, 0.2);
  color: #8ab4f8;
  border: 1px solid rgba(49, 85, 167, 0.35);
}
.ken-modal-action--phone:hover .ken-action-badge {
  background: #3155a7;
  color: #ffffff;
}
.ken-modal-action--wa .ken-action-badge {
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.3);
}
.ken-modal-action--wa:hover .ken-action-badge {
  background: #1da851;
  color: #ffffff;
}
