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

/* ---------- colorful scrollbar (matches media.moraltogether.com) ---------- */
/* WebKit / Chromium / Edge / Safari
   NB: do NOT set `scrollbar-color` here — modern Chrome/Edge would then
   ignore the ::-webkit rules below and render a flat single color. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
  background: #f8fafc;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}
/* rainbow gradient on the handle itself */
::-webkit-scrollbar-thumb {
  background: linear-gradient(#0cf574, #00f2fe, #b100ff, #ff0844, #fce803);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#00f2fe, #b100ff, #ff0844, #fce803, #0cf574);
}

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: 10px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.site-header .brand img {
  height: 58px;
  width: auto;
  display: block;
}

.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 > .container {
  padding-inline: clamp(16px, 3vw, 32px);
}

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

.hero-copy h1 .hero-store-nowrap { white-space: nowrap; }

.hero-copy h1 .hero-app-store {
  white-space: nowrap;
  hyphens: none;
}

.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):not(.discovery-snake-axis) {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

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

.discovery-snake-top,
.discovery-snake-bottom,
.discovery-snake-axis {
  display: contents;
}

.arr-down {
  display: none;
}

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

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

.cap-marquee {
  direction: ltr;
  overflow: hidden;
  width: 104%;
  margin-left: -4%;
  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; }

/* ---------- 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;
  /* simple soft backdrop behind the cut-out photo */
  background: linear-gradient(150deg, #eef1f9, #f6eef6);
  border-radius: 30px;
  padding-top: 32px; /* breathing room above the head */
  box-shadow: var(--shadow-md);
}

.team-media > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 30px 30px;
}

.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: 0 0 clamp(40px, 5vw, 64px);
  scroll-margin-top: 100px;
}

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

.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  padding: 8px 4px 4px;
}

.process-rail::before {
  content: "";
  position: absolute;
  top: 27px;
  right: 10%;
  left: 10%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    to left,
    var(--blue),
    var(--pink) 22%,
    var(--yellow) 48%,
    var(--green) 72%,
    var(--blue)
  );
  opacity: 0.35;
  z-index: 0;
}

.process-rail-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.process-rail-label {
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.2;
  color: var(--ink-soft);
}

.process-rail .step-num {
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 4px #fff, var(--shadow-sm);
}

.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);
  background: #eef1f9; /* fill behind the transparent cut-out */
}

.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; }

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

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form-field select:invalid {
  color: var(--muted);
}

.form-field select option {
  color: var(--ink);
}

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

#f-phone,
#popup-phone {
  direction: ltr;
  text-align: right;
}

#f-phone::placeholder,
#popup-phone::placeholder {
  text-align: right;
}

.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); }

/* contact popup */
.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}

.contact-popup[hidden] { display: none; }

.contact-popup-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(14, 17, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.contact-popup-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, #e8ebf1 0%, #f0f2f6 48%, #e9edf3 100%);
  border: 1px solid #d8dde8;
  box-shadow: var(--shadow-lg);
}

.contact-popup-close {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 2;
}

.contact-popup-close:hover {
  background: transparent;
  color: var(--ink);
}

.contact-popup-form {
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 36px) clamp(22px, 4vw, 32px) clamp(22px, 4vw, 28px);
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.contact-popup-form .success-message {
  background: linear-gradient(165deg, #e8ebf1 0%, #f0f2f6 48%, #e9edf3 100%);
}

.contact-popup-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 28px);
  line-height: 1.15;
  text-align: center;
}

.contact-popup-lead {
  margin: 0 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.contact-popup-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
}

.contact-popup-fields .form-field {
  min-width: 0;
}

.contact-popup-fields input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-color: #d5dbe6;
  box-shadow: 0 2px 10px rgba(20, 23, 31, 0.05);
}

.contact-popup-fields input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(59, 122, 240, 0.14),
    0 2px 10px rgba(20, 23, 31, 0.05);
}

body.contact-popup-open { overflow: hidden; }

.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 {
  height: 52px;
  width: auto;
  display: block;
}

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

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

.footer-legal {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

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

/* ---------- sub pages (legal, thanks) ---------- */

.page-sub .sub-main {
  padding-top: 88px;
  min-height: calc(100vh - 180px);
}

.sub-page {
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.sub-page-inner {
  max-width: 760px;
}

.legal-page h1 {
  margin: 0 0 32px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
}

.legal-body {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 17px;
}

.legal-body:empty {
  display: none;
}

.legal-updated {
  margin: -20px 0 28px;
  font-size: 16px;
  color: var(--muted);
}

.legal-body h2 {
  margin: 2.4em 0 0.8em;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 1em;
}

.legal-body ul {
  margin: 0 0 1.1em;
  padding: 0 1.2em 0 0;
}

.legal-body li {
  margin-bottom: 0.55em;
}

.legal-meta {
  margin: 0 0 2em;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(59, 122, 240, 0.05);
  border: 1px solid rgba(59, 122, 240, 0.12);
}

.legal-meta dt {
  margin-top: 10px;
  font-weight: 700;
  color: var(--ink);
}

.legal-meta dt:first-child {
  margin-top: 0;
}

.legal-meta dd {
  margin: 4px 0 0;
}

.legal-meta dd:empty::before {
  content: "—";
  color: var(--muted);
}

.legal-ph {
  color: var(--muted);
  font-weight: 600;
}

.legal-contact p {
  margin-bottom: 0.45em;
}

.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 260px);
  padding-top: clamp(24px, 5vw, 48px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.thanks-card {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 56px) clamp(28px, 6vw, 48px);
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fc 52%, #f2f4f9 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: thanks-in 0.75s ease both;
}

.thanks-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-brand);
}

.thanks-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(88, 179, 46, 0.2), rgba(88, 179, 46, 0.08));
  border: 1px solid rgba(88, 179, 46, 0.24);
  color: var(--green);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(88, 179, 46, 0.14);
}

.thanks-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.2;
}

.thanks-lead {
  margin: 0;
  max-width: 36ch;
  margin-inline: auto;
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.65;
}

@keyframes thanks-in {
  from {
    opacity: 0;
    translate: 0 22px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-card { animation: none; }
}

/* ---------- 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: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { min-height: 480px; max-width: 560px; margin: 40px auto 0; width: 100%; }
}

@media (max-width: 1080px) {
  .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 6; }

  .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) {
  /* mobile typography: h1/h2 = 34px, body = 18px, labels = 16px */
  h1, h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  h3,
  .service-card h3,
  .process .step h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
  }

  .slide-bullets,
  .service-card .slide-bullets,
  .work-body p,
  .process .step p,
  .discovery-strip,
  .discovery-steps,
  .team-badge strong,
  .team-badge span,
  .contact-person span,
  .form-field input,
  .form-field select,
  .form-field textarea,
  .btn,
  .btn-lg,
  .nav-links,
  .footer-inner,
  .footer-nav,
  .success-message span {
    font-size: 18px;
  }

  .contact-person strong,
  .success-message strong {
    font-size: 20px;
  }

  .nav { gap: 10px; padding-block: 10px; }
  .site-header .brand img { height: 46px; }
  .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; }
  .hero-copy h1 .hero-store-nowrap { white-space: normal; }
  .hero-copy h1 .hero-app-store { white-space: nowrap; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .shot-main { width: 46%; right: 8%; }
  .shot-side { width: 40%; }
  .shot-back { width: 36%; left: 28%; }
  .chip-store { bottom: 20px; right: 2%; }
  .chip-pay { top: 370px; right: 15%; }
  .chip-logo-vaadbot { top: 100px; left: -2%; }
  .chip-logo-m1 { top: 2px; right: 6%; padding: 4px; }
  .chip-logo { padding: 6px 10px; }
  .chip-logo img { height: 24px; }
  .chip-logo-m1 img { height: 38px; width: 38px; }
  .float-chip { font-size: 16px; padding: 8px 14px; }

  .logo-strip { margin-bottom: -30px; }
  .logo-strip-inner { padding: 12px 0 14px; }
  .logo-strip-title { margin-bottom: 8px; }
  .logo-pill { height: auto; padding: 5px 16px; }
  .logo-pill img { max-height: 40px; height: auto; }
  .pill-icon img { height: 48px; max-height: none; }
  .pill-wide img { height: 42px; max-height: none; }

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

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

  .steps { gap: 12px; }

  .process .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px 16px;
  }

  .process .step h3 { margin-top: 10px; }

  .process .step p { text-align: center; }

  .process-rail { display: none; }

  .team-copy .eyebrow { margin-top: 13px; }

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

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

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

@media (max-width: 480px) {
  .discovery-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .discovery-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .discovery-snake-top,
  .discovery-snake-bottom,
  .discovery-snake-axis {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .discovery-snake-top {
    direction: rtl;
    align-items: flex-start;
  }

  .discovery-snake-axis {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .discovery-snake-bottom {
    direction: ltr;
  }

  .discovery-snake-bottom .arr {
    transform: scaleX(-1);
  }

  .arr-across {
    display: none;
  }

  .arr-down {
    display: inline;
  }
}
