/* ============================================================
   Merkaz Media — WebsiteClaude04
   Palette from the logo: blue / magenta / green / yellow,
   coral "play" as the primary CTA color.
   Layout concept: "smeared grid" (from WebsiteClaude02) —
   sections bleed into each other, elements overlap boundaries,
   soft color fields drift behind the page.
   Copy concept (from WebsiteClaude03) — the headline IS the
   text: highlighted words alone tell the story, body copy is
   3-4 short bullets per block, one repeated CTA.
   ============================================================ */

:root {
  --ink: #14171f;
  --ink-soft: #2a2f3c;
  --muted: #5d6675;
  --line: #e6e9f0;
  --bg: #fdfdfe;
  --white: #ffffff;

  --blue: #3b7af0;
  --pink: #e23a94;
  --coral: #f2536b;
  --green: #58b32e;
  --yellow: #f2c230;

  --grad-cta: linear-gradient(135deg, var(--coral), var(--pink));
  --grad-brand: linear-gradient(120deg, var(--blue), var(--pink) 55%, var(--yellow));

  --shadow-sm: 0 6px 18px rgba(20, 23, 31, 0.08);
  --shadow-md: 0 18px 44px rgba(20, 23, 31, 0.12);
  --shadow-lg: 0 34px 80px rgba(20, 23, 31, 0.18);

  --radius: 20px;
  --radius-lg: 28px;
  --container: 1400px;
  --pad: clamp(20px, 4vw, 40px);
  --font: "Assistant", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-align: right;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

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

p { margin: 0 0 1em; }

/* ---------- typography: the headline IS the text ---------- */

h1, h2, h3 { margin: 0 0 0.45em; font-weight: 800; }

h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3 { font-size: 20px; font-weight: 700; }

.nowrap { white-space: nowrap; }

/* highlights: gradient for the hero, one accent color everywhere else —
   the rest of the text stays in a single ink tone */
.hl {
  background: linear-gradient(90deg, var(--blue), var(--pink) 60%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl-accent { color: var(--blue); }

.deep-dive .hl-accent, .contact .hl-accent { color: #7dabff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section { position: relative; padding: clamp(56px, 8vw, 110px) 0; }

.section-head { max-width: 980px; margin-bottom: clamp(28px, 4vw, 48px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 122, 240, 0.08);
  border: 1px solid rgba(59, 122, 240, 0.18);
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* the entire body copy of a block — max 3-4 short bullets */
.slide-bullets {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: clamp(18px, 1.4vw, 19px);
  font-weight: 600;
  color: var(--ink-soft);
}

.slide-bullets li { display: flex; align-items: baseline; gap: 10px; }

.slide-bullets li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex: 0 0 auto;
}

.deep-dive .slide-bullets, .contact .slide-bullets { color: rgba(255, 255, 255, 0.85); }
.deep-dive .slide-bullets li::before, .contact .slide-bullets li::before { color: var(--yellow); }

/* ---------- page-wide soft color fields (the "smear") ---------- */

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
}

.glow-blue   { width: 640px; height: 640px; background: var(--blue);   top: -180px; right: -140px; }
.glow-pink   { width: 560px; height: 560px; background: var(--pink);   top: 30vh;   left: -200px;  }
.glow-yellow { width: 460px; height: 460px; background: var(--yellow); top: 68vh;   right: -160px; opacity: 0.12; }
.glow-green  { width: 420px; height: 420px; background: var(--green);  bottom: -160px; left: 20vw; opacity: 0.1; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(226, 58, 148, 0.35);
}

.btn-primary:hover { box-shadow: 0 16px 34px rgba(226, 58, 148, 0.45); }

.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #232836; }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-nav { padding: 10px 20px; font-size: 16px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 254, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20, 23, 31, 0.06);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--ink);
}

.brand img { width: 128px; height: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-soft);
}

.nav-links a { position: relative; padding: 6px 0; }

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-cta);
  transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero ---------- */

.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.hero-copy .slide-bullets { max-width: 520px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* hero collage — overlapping real screenshots */

.hero-collage {
  position: relative;
  min-height: 560px;
  z-index: 1;
}

.shot {
  position: absolute;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--ink);
  background: var(--ink);
}

/* VaadBot screenshots already sit inside a device mockup — no added frame,
   and the full mockup must stay visible (don't crop the bottom) */
.no-frame {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
  height: auto !important;
}

.no-frame img,
img.no-frame {
  object-fit: contain !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

.no-frame img { width: 100% !important; }

.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.shot-main {
  width: min(260px, 46%);
  aspect-ratio: 9 / 18;
  top: 20px;
  right: 16%;
  transform: rotate(-4deg);
  z-index: 3;
}

.shot-side {
  width: min(220px, 40%);
  aspect-ratio: 9 / 17.5;
  top: 120px;
  left: 2%;
  transform: rotate(5deg);
  z-index: 2;
}

.shot-back {
  width: min(200px, 36%);
  aspect-ratio: 9 / 17;
  top: -20px;
  left: 24%;
  transform: rotate(-10deg);
  z-index: 1;
  opacity: 0.9;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 4;
}

.float-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(88, 179, 46, 0.18);
}

.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 0 4px rgba(242, 194, 48, 0.2); }

.chip-store { bottom: 60px; right: 6%; }

/* logo badges pinned to their phone */
.chip-logo { padding: 8px 14px; background: var(--ink); }
.chip-logo img { height: 30px; width: auto; border-radius: 6px; }

.chip-logo-vaadbot { top: 92px; left: 0; }

.chip-logo-m1 { top: 6px; right: 15%; padding: 3px; border-radius: 13px; }
.chip-logo-m1 img { height: 60px; width: 60px; object-fit: cover; border-radius: 10px; }

/* gentle float animations */

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

[data-float="1"] { animation: floatY 7s ease-in-out infinite; }
[data-float="2"] { animation: floatY 9s ease-in-out 0.8s infinite; }
[data-float="3"] { animation: floatY 11s ease-in-out 1.6s infinite; }

/* ---------- logo strip (bleeds across the hero boundary) ---------- */

.logo-strip {
  position: relative;
  z-index: 5;
  margin-top: clamp(36px, 5vw, 64px);
  margin-bottom: -46px;
  transform: rotate(-1.3deg);
}

.logo-strip-inner {
  width: 104%;
  margin-left: -4%;
  overflow: hidden;
  direction: ltr; /* track must start from the left; page is rtl */
  background: #fff;
  border-block: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 20px 0 24px;
}

.logo-strip-title {
  margin: 0 0 14px;
  text-align: center;
  direction: rtl;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Infinite logo marquee — position driven by JS (requestAnimationFrame) */
.logo-track {
  direction: ltr;
  display: flex;
  width: max-content;
  will-change: transform;
  --logo-gap: 20px;
}

.logo-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  padding-inline-end: var(--logo-gap);
}

/* REVERT logo pills (2026-07-05):
   .logo-pill { height:64px; padding:12px 24px; border-radius:18px; background:#f6f7fa; }
   .logo-pill img { max-height:40px; width:auto; }
   .pill-dark { background:var(--ink); }
   .pill-photo { padding:0; overflow:hidden; }
   .pill-photo img { max-height:64px; border-radius:18px; }
   HTML: m1=pill-photo, boikov/moralforgood=plain pill, vaadbit=pill-dark */

.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border-radius: 0;
}

.logo-pill img {
  display: block;
  width: auto;
  height: 46px;
}

/* white logo on dark strip — only VaadBot */
.pill-dark {
  background: var(--ink);
  border-radius: 14px;
  padding: 10px 16px;
}

.pill-dark img { height: 38px; }

/* square / compact marks (M1, Boikov, Moral for Good) */
.pill-icon img {
  height: 76px;
  width: auto;
}

.pill-m1 img {
  border-radius: 12px;
}

/* horizontal wordmarks */
.pill-wide img {
  height: 50px;
  max-width: 240px;
  object-fit: contain;
}

/* ---------- services (3 equal cards, layout from WebsiteClaude03) ---------- */

.services {
  padding-top: clamp(90px, 11vw, 150px);
  overflow-x: clip;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.7s ease, translate 0.28s ease, box-shadow 0.28s ease;
}

.service-card:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 28px rgba(20, 23, 31, 0.1);
}

.service-card h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.28;
  margin-bottom: 16px;
}

.service-card .slide-bullets { font-size: 16px; gap: 9px; margin-bottom: 20px; }

.service-img {
  margin-top: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  width: 100%;
  object-fit: cover;
  object-position: top;
}

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

.service-img-soft-shadow {
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 5px 10px rgba(20, 23, 31, 0.12));
}

.service-img-phone {
  width: 62%;
  align-self: center;
  aspect-ratio: 9 / 14;
  border: 3px solid var(--ink);
  border-radius: 20px;
}

.discovery-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: clamp(28px, 4vw, 40px);
  padding: 18px 24px;
  border-radius: var(--radius);
  background: rgba(242, 194, 48, 0.1);
  border: 1px solid rgba(242, 194, 48, 0.35);
  font-size: 17px;
}

.discovery-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.discovery-steps span:not(.arr) {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.discovery-steps .arr { color: var(--blue); }

.section-cta { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* ---------- capabilities marquee (flat row, inside services) ---------- */

.cap-marquee {
  direction: ltr;
  overflow: hidden;
  width: 102%;
  margin-inline: -1%;
  max-width: 100vw;
  margin-top: clamp(24px, 3vw, 36px);
  transform: rotate(1.3deg);
  transform-origin: center;
  /* room for .cap box-shadow so it isn’t clipped at top/bottom */
  padding: 14px 0 26px;
}

/* Infinite cap marquee — position driven by JS (same as logo-track) */
.cap-track {
  direction: ltr;
  display: flex;
  width: max-content;
  will-change: transform;
  --cap-gap: 16px;
}

.cap-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--cap-gap);
  padding-inline-end: var(--cap-gap);
}

.cap-marquee:hover .cap-track { cursor: default; }

.cap {
  direction: rtl;
  padding: 13px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.c-pink { background: rgba(226, 58, 148, 0.08); border-color: rgba(226, 58, 148, 0.25); color: #b02771; }
.c-blue { background: rgba(59, 122, 240, 0.08); border-color: rgba(59, 122, 240, 0.25); color: #2557b8; }
.c-yellow { background: rgba(242, 194, 48, 0.12); border-color: rgba(242, 194, 48, 0.4); color: #8a6d0d; }
.c-green { background: rgba(88, 179, 46, 0.1); border-color: rgba(88, 179, 46, 0.3); color: #3c7d1e; }

/* ---------- deep dive (dark island with bleeding phones) ---------- */

.deep-dive {
  margin: clamp(30px, 4vw, 60px) clamp(10px, 2.5vw, 40px);
  padding: clamp(50px, 6vw, 90px) 0;
  border-radius: clamp(24px, 3vw, 44px);
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(59, 122, 240, 0.25), transparent 65%),
    radial-gradient(600px 400px at 10% 90%, rgba(226, 58, 148, 0.22), transparent 65%),
    linear-gradient(160deg, #171225, #1d1830 55%, #251b38);
  color: #fff;
}

.deep-dive h2 { color: #fff; }

.deep-dive .slide-bullets { margin: 0 0 28px; }

.deep-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.deep-screens {
  position: relative;
  min-height: 480px;
}

.deep-phone {
  position: absolute;
  margin: 0;
  width: min(240px, 50%);
  aspect-ratio: 9 / 17.5;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.deep-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* the middle phone pokes out of the dark island */
.dp-1 { top: 40px; right: -2%; transform: rotate(6deg); z-index: 2; }
.dp-2 { top: -150px; right: 34%; transform: rotate(-3deg); z-index: 3; }
.dp-3 { top: 90px; left: -3%; transform: rotate(-8deg); z-index: 1; }

.chip-roles { top: 150px; left: 0; z-index: 4; color: var(--ink); }
.chip-pay { top: 400px; right: 31%; z-index: 4; color: var(--ink); }

/* ---------- work / proof (compact — fits one screen with its heading) ---------- */

.work { padding: clamp(40px, 5vw, 64px) 0; }

.work .section-head { margin-bottom: clamp(18px, 2.5vw, 30px); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.7s ease, translate 0.28s ease, box-shadow 0.28s ease;
}

.work-card:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 28px rgba(20, 23, 31, 0.1);
}

.wc-tall { grid-column: span 4; }
.wc-wide { grid-column: span 4; }

.work-media { display: block; overflow: hidden; background: #f2f3f7; flex: none; }

.work .work-media { cursor: zoom-in; }

.work-media img { transition: transform 0.4s ease; }

a.work-media:hover img { transform: scale(1.04); }

.wm-phone { height: 235px; min-height: 0; }
.wm-phone img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.wm-wide { height: 185px; min-height: 0; }
.wm-wide img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.work-card-soft-media { overflow: visible; }

.work-media.wm-contain {
  background: #fff;
  padding: 10px 0;
  overflow: visible;
  box-sizing: border-box;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wm-contain img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 10px rgba(20, 23, 31, 0.12));
}

.work-body { padding: 12px 18px 14px; }

.work-body p { margin: 0; color: var(--muted); font-size: 16px; }

.work-body p strong { color: var(--ink); }

/* work image lightbox */
.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.work-lightbox[hidden] { display: none; }

.work-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(14, 17, 24, 0.94);
  cursor: zoom-out;
}

.work-lightbox-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1280px, 100%);
  max-height: 100%;
}

.work-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.work-lightbox-close {
  position: absolute;
  top: -44px;
  inset-inline-end: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.work-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

body.work-lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .work-lightbox-close {
    top: auto;
    bottom: calc(100% + 10px);
    inset-inline-end: 0;
  }
}

/* ---------- team + process ---------- */

.team-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.team-media {
  position: relative;
  max-width: 420px;
  justify-self: center;
}

.team-media > img {
  border-radius: 30px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--ink);
}

.team-media::before {
  content: "";
  position: absolute;
  inset: -18px -14px auto auto;
  width: 150px;
  height: 150px;
  border-radius: 40px;
  background: var(--grad-brand);
  opacity: 0.2;
  z-index: -1;
  transform: rotate(8deg);
}

.team-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.team-badge strong { font-size: 18px; }
.team-badge span { font-size: 16px; color: var(--muted); }

.team-copy .slide-bullets { margin: 0 0 28px; }

/* ---------- process ---------- */

.process {
  padding: clamp(40px, 5vw, 64px) 0;
  scroll-margin-top: 100px;
}

.process .section-head { margin-bottom: clamp(20px, 2.5vw, 28px); }

.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(59, 122, 240, 0.06);
  border: 1px solid rgba(59, 122, 240, 0.14);
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
}

.process-flow span:not(.arr) {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.process-flow .arr { color: var(--blue); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.7s ease, translate 0.28s ease, box-shadow 0.28s ease;
}

.step[data-reveal].revealed:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 28px rgba(20, 23, 31, 0.1);
}

.step h3 {
  margin: 12px 0 8px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.25;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}

.sn-blue { background: var(--blue); }
.sn-pink { background: var(--pink); }
.sn-yellow { background: var(--yellow); color: var(--ink); }
.sn-green { background: var(--green); }

/* ---------- contact (dark island) ---------- */

.contact {
  margin: 0 clamp(10px, 2.5vw, 40px) clamp(30px, 4vw, 60px);
  padding: clamp(50px, 6vw, 90px) 0;
  border-radius: clamp(24px, 3vw, 44px);
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(59, 122, 240, 0.28), transparent 65%),
    radial-gradient(600px 500px at 90% 100%, rgba(226, 58, 148, 0.25), transparent 65%),
    linear-gradient(160deg, #151221, #1c1730 60%, #241a36);
  color: #fff;
}

.contact h2 { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 18px 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: fit-content;
}

.contact-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.contact-person div { display: flex; flex-direction: column; line-height: 1.3; }
.contact-person strong { font-size: 17px; }
.contact-person span { font-size: 16px; color: rgba(255, 255, 255, 0.66); }

.contact-form {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

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

.form-field label { font-weight: 700; font-size: 16px; }

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 122, 240, 0.14);
  background: #fff;
}

.btn-submit { width: 100%; }

.form-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.success-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #fff;
}

.success-message[hidden] { display: none; }

.success-message strong { font-size: 22px; }
.success-message span { color: var(--muted); }

.success-message::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(88, 179, 46, 0.14);
  color: var(--green);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* ---------- footer ---------- */

.site-footer { padding: 34px 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 16px;
}

.footer-inner .brand img { width: 120px; }

.footer-nav { display: flex; gap: 22px; font-weight: 700; color: var(--ink-soft); }

.footer-nav a:hover { color: var(--blue); }

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

[data-reveal].revealed { opacity: 1; translate: 0 0; }

.service-card[data-reveal],
.work-card[data-reveal] {
  transition: opacity 0.7s ease, translate 0.28s ease, box-shadow 0.28s ease;
}

.service-card[data-reveal].revealed:hover,
.work-card[data-reveal].revealed:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 28px rgba(20, 23, 31, 0.1);
}

.no-anim [data-reveal] { opacity: 1; translate: 0 0; transition: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; translate: none; transition: none; }
  [data-float], .logo-track, .cap-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { min-height: 480px; max-width: 560px; margin: 20px auto 0; width: 100%; }

  .service-grid { grid-template-columns: 1fr; }
  .service-img { max-width: 480px; align-self: center; }
  .service-img-phone { max-width: 260px; }

  .deep-grid { grid-template-columns: 1fr; }
  .deep-screens { min-height: 430px; max-width: 560px; margin: 70px auto 0; width: 100%; }

  .wc-tall { grid-column: span 6; }
  .wc-wide { grid-column: span 12; }

  .team-grid { grid-template-columns: 1fr; }
  .team-media { max-width: 340px; }

  .steps { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { gap: 10px; min-height: 64px; }
  .brand { padding: 6px 10px; border-radius: 10px; }
  .brand img { width: 92px; }
  .btn-nav { padding: 9px 14px; font-size: 16px; }
  .menu-toggle { width: 40px; height: 40px; }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 14px var(--pad); }

  .nav-links a::after { display: none; }

  .menu-toggle { display: flex; }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .hero { padding-top: 28px; }
  .hero-collage { min-height: 420px; }
  .shot-main { width: 46%; right: 8%; }
  .shot-side { width: 40%; }
  .shot-back { width: 36%; left: 28%; }
  .chip-store { bottom: 20px; right: 2%; }

  .logo-strip { margin-bottom: -30px; }
  .logo-pill { height: 48px; padding: 8px 16px; }
  .logo-pill img { max-height: 28px; }

  .deep-screens { min-height: 380px; margin-top: 90px; }
  .dp-2 { top: -80px; }

  .wc-tall { grid-column: span 12; }

  .steps { grid-template-columns: 1fr; }

  .process-flow { gap: 6px; padding: 14px 12px; }
  .process-flow span:not(.arr) { padding: 6px 10px; font-size: 14px; }

  .team-grid { grid-template-columns: 1fr; }
  .team-media { max-width: 340px; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-collage { min-height: 360px; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
  .btn-nav { padding: 8px 12px; font-size: 16px; }
  .chip-logo-vaadbot { top: 68px; left: -2%; }
  .chip-logo-m1 { top: 2px; right: 6%; }
  .chip-logo img { height: 24px; }
  .chip-logo-m1 img { height: 38px; width: 38px; }
  .float-chip { font-size: 16px; padding: 8px 14px; }
  .chip-logo { padding: 6px 10px; }
  .chip-logo-m1 { padding: 4px; }
}
