/* BeeBranding — own website. Style direction: airy light stage with soft brand-blue glows, a live
   frosted-glass orb, thin headlines with one bold word, deep-navy contrast sections and a giant
   wordmark footer. Shared by Hebrew (RTL) and English (LTR); layout uses logical properties. */

:root {
  --bg: #F5F7FD;
  --bg-2: #EEF1FF;
  --ink: #0B1026;
  --ink-soft: #545C7E;
  --line: rgba(11, 16, 38, 0.10);
  --line-strong: rgba(11, 16, 38, 0.22);
  --brand: #5170FF;
  --brand-soft: #8FA3FF;
  --white: #FFFFFF;
  --navy: #070B24;
  --navy-2: #0D1333;
  --navy-ink: #F3F5FF;
  --navy-soft: #A6AECF;
  --navy-line: rgba(143, 163, 255, 0.18);

  --f-body: 'Heebo', system-ui, sans-serif;
  --f-latin: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html[lang="en"] { --f-body: 'Plus Jakarta Sans', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.skip {
  position: absolute; inset-inline-start: 12px; top: -64px; z-index: 200; background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 18px; font-size: 0.95rem; font-weight: 500; color: var(--brand);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html[lang="en"] .eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; }
h1 strong, h2 strong { font-weight: 800; }
.line { display: block; }
h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- buttons: pill, letters rise on hover ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
html[lang="en"] .btn { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: 0 14px 34px -14px rgba(11, 16, 38, 0.55); }
.btn--dark:hover { background: #151C3F; transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-arrow { display: inline-block; color: var(--brand-soft); transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }
html[dir="rtl"] .btn:hover .btn-arrow { transform: translate(-3px, -3px); }
.btn-letters { display: inline-flex; white-space: pre; }
.btn-letters .l { display: inline-block; transition: transform 0.35s var(--ease); transition-delay: calc(var(--i) * 16ms); }
.btn:hover .btn-letters .l { transform: translateY(-3px); }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: radial-gradient(40% 40% at 50% 46%, rgba(81, 112, 255, 0.28), transparent 70%), var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { width: 160px; height: 160px; animation: breathe 2.4s ease-in-out infinite; }
.loader-bar {
  position: absolute; inset-inline: clamp(20px, 5vw, 48px); bottom: clamp(28px, 6vh, 56px);
  display: flex; justify-content: space-between; align-items: end; padding-bottom: 14px;
  border-bottom: 2px solid var(--line); font-size: 1.05rem; color: var(--ink-soft);
}
.loader-bar::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; height: 2px;
  width: calc(var(--p, 0) * 1%); background: var(--ink); transition: width 0.2s linear;
}
.loader-pct { font-family: var(--f-mono); direction: ltr; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }
.no-js .loader { display: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 60; transition: background-color 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled {
  background: rgba(245, 247, 253, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; direction: ltr; text-decoration: none;
  font-family: var(--f-latin); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand img { width: 64px; height: 64px; }
.nav {
  display: flex; gap: 6px; margin-inline: auto; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav a {
  padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: var(--ink-soft); transition: background-color 0.2s, color 0.2s;
}
.nav a:hover { background: var(--white); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  font-family: var(--f-mono); font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--ink-soft);
}
.lang:hover { color: var(--ink); border-color: var(--line-strong); }
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }
.lang-switch a, .nav-langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); transition: background-color 0.2s, color 0.2s;
}
.lang-switch a:hover { color: var(--ink); background: var(--white); }
.lang-switch a[aria-current], .nav-langs a[aria-current] { background: var(--ink); color: var(--white); }
.nav-langs { display: none; }
.legal-langs { display: flex; gap: 8px; }
.ig-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); transition: transform 0.2s, border-color 0.2s; }
.ig-link:hover { transform: scale(1.08); border-color: var(--line-strong); }
.header-actions .btn { min-height: 44px; padding: 10px 20px; }
.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; cursor: pointer;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 999px;
}
.nav-toggle span { position: absolute; inset-inline: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, top 0.25s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav {
    display: none; position: absolute; top: 92px; inset-inline: clamp(12px, 4vw, 40px); margin: 0;
    flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 60px -30px rgba(11, 16, 38, 0.35);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 18px; font-size: 1.05rem; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  /* a 64px mark plus the wordmark is tight on a phone: ease it down so the row breathes */
  .brand img { width: 50px; height: 50px; }
  .brand { gap: 8px; min-width: 0; }
  .header-row { gap: 12px; min-height: 84px; }
  .header-actions { gap: 8px; }
  .ig-link { width: 38px; height: 38px; }
  .ig-link svg { width: 20px; height: 20px; }
  /* no room for three languages in a phone's top row: they move into the menu */
  .header-actions .lang-switch { display: none; }
  .nav .nav-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding: 12px 10px 6px; border-top: 1px solid var(--line); }
  .nav .nav-langs a { height: 38px; padding: 0 14px; font-family: var(--f-body); font-size: 0.95rem; font-weight: 500; border: 1px solid var(--line); }
  .nav { top: 84px; }
}

/* ---------- hero: live glass orb ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(46% 42% at 50% 38%, rgba(81, 112, 255, 0.20), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(143, 163, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #EDF0FA 0%, var(--bg) 70%);
}
/* the Spline player sizes its canvas to its parent, so the wrapper sets the scene's box:
   the upper part of the hero, keeping the blob above the headline */
.hero-3d-wrap {
  position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 72%;
  opacity: 0; transition: opacity 1.1s var(--ease);
  pointer-events: none; /* ambient scene: never block scrolling or clicks */
}
.hero-3d { display: block; width: 100%; height: 100%; pointer-events: none; }
.hero.is-3d-ready .hero-3d-wrap { opacity: 1; }
.orb-shadow {
  position: absolute; z-index: -2; left: 50%; top: 60%; width: min(40vw, 480px); height: 56px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(11, 16, 38, 0.14), transparent); pointer-events: none;
}
.hero.no-webgl .hero-3d-wrap { display: none; }
.hero.no-webgl::after {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 36%; width: min(46vw, 520px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(81, 112, 255, 0.55), rgba(143, 163, 255, 0.35) 45%, rgba(255, 255, 255, 0.8) 72%);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.9);
}
.hero-bottom {
  width: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end;
  gap: 32px 64px; padding-block: 0 clamp(36px, 7vh, 72px);
}
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 1.02; }
.hero-cta { margin-top: 30px; }
.hero-side p { margin: 0 0 18px; color: var(--ink-soft); font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
}
html[lang="en"] .tags li { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; padding-top: 52svh; }
  .hero-3d-wrap { top: 64px; height: 46%; }
  .orb-shadow { top: 46%; width: 56vw; }
  .hero.no-webgl::after { top: 28%; width: 62vw; }
}
.rise { opacity: 0; animation: rise 1s var(--ease) forwards; }
.hero-bottom .rise:nth-child(2) { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body.is-loading .rise { animation-play-state: paused; }


/* ---------- what we build: flowing ribbon behind six floating 3D glass cards ---------- */
.build { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(100px, 13vw, 170px); }
/* the Spline player sizes its canvas to its parent, so the wrapper sets the ribbon's box: it covers the
   whole section, otherwise the page background shows as a lighter band above and below the scene */
.ribbon-wrap {
  position: absolute; inset: 0;
  z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none;
}
.ribbon-canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.build.is-3d-ready .ribbon-wrap { opacity: 1; }
.build.no-webgl .ribbon-wrap { display: none; }
.build.no-webgl::before {
  content: ""; position: absolute; inset: 18% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 50%, rgba(81, 112, 255, 0.18), transparent 70%);
}
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); perspective: 1200px; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-card { height: 100%; }
.svc-float { height: 100%; animation: svc-float 7s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1.1s); }
@keyframes svc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.svc-inner {
  height: 100%; min-height: 230px; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 30px; border-radius: 24px; transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 60px -30px rgba(81, 112, 255, 0.45), 0 12px 24px -18px rgba(11, 16, 38, 0.25);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease), box-shadow 0.3s;
}
.svc-card:hover .svc-inner {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 42px 80px -30px rgba(81, 112, 255, 0.6), 0 16px 30px -18px rgba(11, 16, 38, 0.3);
}
.svc-num { font-family: var(--f-mono); font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1; color: var(--brand); }
.svc-inner h3 { margin-top: auto; font-size: 1.35rem; color: var(--ink); transform: translateZ(30px); }
.svc-inner p { margin: 0; color: rgba(11, 16, 38, 0.8); font-size: 1rem; transform: translateZ(18px); }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-inner { min-height: 0; }
  .svc-inner h3 { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .svc-float { animation: none; } }

/* ---------- dark sections ---------- */
.dark { background: var(--navy); color: var(--navy-ink); position: relative; overflow: hidden; isolation: isolate; }
.dark::before {
  content: ""; position: absolute; z-index: -1; top: -20%; inset-inline-start: 50%; width: 70vw; aspect-ratio: 1.6;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(81, 112, 255, 0.24), transparent);
}
html[dir="rtl"] .dark::before { transform: translateX(50%); }
.dark .eyebrow { color: var(--brand-soft); }
.dark h2, .dark h3 { color: var(--white); }
.dark p { color: var(--navy-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin: 20px 0 0; font-size: 1.12rem; }
.why { padding-block: clamp(100px, 13vw, 170px) clamp(40px, 6vw, 80px); }
/* four cards in a row; flex, not grid, so an uneven last row would sit centred if a card is added */
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.why-grid .why-card { flex: 0 1 calc((100% - 48px) / 4); }
@media (max-width: 1000px) { .why-grid .why-card { flex-basis: calc((100% - 16px) / 2); } }
.why-card {
  display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 26px 24px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(143, 163, 255, 0.08), rgba(143, 163, 255, 0.02)); border: 1px solid var(--navy-line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.why-card:hover { border-color: rgba(143, 163, 255, 0.45); transform: translateY(-4px); }
.why-num { font-family: var(--f-mono); font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1; color: var(--brand-soft); }
.why-card h3 { margin-top: auto; font-size: 1.45rem; }
.why-card p { margin: 0; font-size: 1rem; }
/* white cards with blue type on the navy section (he asked); deep blue keeps body text above 4.5:1 */
.dark .why-card { background: var(--white); border-color: transparent; box-shadow: 0 24px 50px -30px rgba(81, 112, 255, 0.55); }
.dark .why-card:hover { border-color: var(--brand-soft); }
.dark .why-card .why-num { color: var(--brand); }
.dark .why-card h3 { color: #2A3DB0; }
.dark .why-card p { color: rgba(42, 61, 176, 0.85); }
/* after the base card rules so the phone layout wins */
@media (max-width: 600px) {
  .why-grid .why-card { flex-basis: 100%; }
  .why-card { min-height: 0; }
  .why-card h3 { margin-top: 6px; }
}

.work { padding-block: clamp(60px, 8vw, 110px) clamp(100px, 13vw, 170px); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { border-radius: var(--radius); overflow: hidden; background: var(--navy-2); border: 1px solid var(--navy-line); transition: border-color 0.3s, transform 0.3s var(--ease); }
.work-card:hover { border-color: rgba(143, 163, 255, 0.45); transform: translateY(-4px); }
.work-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.work-media { aspect-ratio: 4 / 3; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.work-tag { margin: 0; font-size: 0.9rem; color: var(--brand-soft) !important; }
.work-body p { margin: 0; font-size: 1rem; }
.work-cta { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--white); }
.work-cta::after { content: " \2196"; }
html[dir="ltr"] .work-cta::after { content: " \2197"; }

/* category filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 34px; }
.filter {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--navy-line); background: rgba(143, 163, 255, 0.06); color: var(--navy-soft);
  font: 500 0.98rem/1 var(--f-body); transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
html[lang="en"] .filter { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.filter:hover { color: var(--white); border-color: rgba(143, 163, 255, 0.45); }
.filter.is-active { background: var(--white); border-color: var(--white); color: var(--navy); }
.work-card[hidden] { display: none; }
.work-card.is-filtered-in { animation: card-in 0.5s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.work-media video { width: 100%; height: 100%; object-fit: cover; }
.work-media video.focus-high { object-position: 50% 30%; } /* portrait clip in a landscape box: keep faces in frame */
.work-media video.focus-low { object-position: 50% 70%; } /* ...or the dish at the bottom of the frame */

/* website recordings are 16:9 screen captures: show the whole page, never crop it.
   A 4/3 cover box cut ~25% off each side and made the layouts unreadable. */
.work-media--site {
  aspect-ratio: 16 / 9;
  background: #0A0F2C;
  display: grid;
  place-items: center;
}
.work-media--site video {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.work-card:hover .work-media--site video { transform: none; }

/* live 3D examples */
.work-media--3d { position: relative; background: radial-gradient(70% 70% at 50% 50%, rgba(81, 112, 255, 0.28), transparent 70%), #0A0F2C; }
.card-3d { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.card-3d canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.work-media--3d.is-3d-ready .card-3d { opacity: 1; }
.work-media--3d.no-webgl::after {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(81, 112, 255, 0.7), rgba(143, 163, 255, 0.35) 50%, transparent 72%);
}
.live-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white); font-size: 0.8rem; font-weight: 700;
}
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(143, 163, 255, 0.22); }

/* a 3D box on a soft white background (busy scenes read better on light) */


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

/* ---------- contact ---------- */
.contact { padding-block: clamp(100px, 13vw, 170px); position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; z-index: -1; top: 10%; inset-inline-end: -10%; width: 50vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 112, 255, 0.22), transparent 68%); pointer-events: none;
}
.contact-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px); border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(238, 241, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 50px 120px -60px rgba(11, 16, 38, 0.35);
}
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }
.contact-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.contact-copy p:not(.eyebrow) { margin: 20px 0 0; color: var(--ink-soft); font-size: 1.12rem; }
.mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); direction: ltr;
  font-family: var(--f-mono); font-size: 0.98rem; color: var(--ink); text-decoration: none;
}
.mail:hover { border-color: var(--ink); }
/* email + WhatsApp sit side by side; the wrapper owns the top gap so the pills don't stack it twice */
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-links .mail { margin-top: 0; }
.mail--wa { direction: inherit; font-family: var(--f-body); gap: 8px; }
.mail--wa span[aria-hidden] { color: #25D366; font-size: 0.7rem; line-height: 1; }
.contact-form { display: grid; gap: 18px; align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .chips legend { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.field label .opt { font-weight: 400; opacity: 0.72; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); transition: border-color 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--white); font-size: 0.95rem; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.contact-form .btn { justify-self: stretch; }
.form-note { margin: 0; font-size: 0.88rem; color: var(--ink-soft); transition: color 0.2s; }
.form-note.is-ok { color: #1a7f4b; font-weight: 700; }
.form-note.is-error { color: #c0392b; font-weight: 700; }

/* ---------- footer: giant wordmark ---------- */
.site-footer { background: var(--navy); color: var(--navy-soft); padding-block: clamp(56px, 8vw, 96px) 28px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; }
.footer-top h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 18ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--navy-soft); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.wordmark {
  margin: clamp(40px, 6vw, 72px) 0 0; direction: ltr; text-align: center; white-space: nowrap;
  font-family: var(--f-latin); font-weight: 800; letter-spacing: -0.05em; line-height: 0.8;
  font-size: clamp(3.6rem, 15.5vw, 15.5rem); color: var(--white);
}
.wordmark span { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--navy-line); font-size: 0.9rem; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-js .rise { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .rise { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .loader-mark { animation: none; }
  .work-card.is-filtered-in { animation: none; }
}

/* ---------- services page (services/): ribbon hero, one row per service, closing call to action ---------- */
.build.page-hero { padding-block: clamp(150px, 18vw, 230px) clamp(90px, 11vw, 150px); }
.page-hero .section-head { margin-bottom: 0; }
/* services hero: two hands of blue sand reaching for each other, with twinkling glitter (js/hero-sparkles.js) */
.page-hero:has(.hands) { position: relative; overflow: hidden; }
.page-hero:has(.hands) .wrap { position: relative; z-index: 1; }
/* a soft layer behind the heading, centred on it (absolute + translate, so RTL and LTR land the same) */
.page-hero .hands {
  position: absolute; left: 50%; top: 54%; width: min(1600px, 112vw); aspect-ratio: 2400 / 1029;
  transform: translate(-50%, -50%); pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(70% 80% at 50% 50%, #000 55%, transparent 100%);
}
.page-hero .hands img { display: block; width: 100%; height: 100%; animation: hands-breathe 14s ease-in-out infinite; }
/* the living version: tens of thousands of sand grains in WebGL (js/hands-particles.js); the still is the fallback */
.page-hero .hands .hands-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .hands img { transition: opacity 0.8s ease; }
.page-hero .hands.is-live img { opacity: 0; animation: none; }
@keyframes hands-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (max-width: 700px) { .page-hero .hands { width: 190vw; } }
@media (prefers-reduced-motion: reduce) { .page-hero .hands img { animation: none; } }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.svc-page { padding-block: clamp(40px, 6vw, 80px) clamp(60px, 8vw, 110px); }
.svc-row {
  display: grid;
  grid-template-columns: minmax(80px, 110px) 1.1fr 0.85fr;
  grid-template-areas: "num main list";
  gap: clamp(20px, 3.4vw, 48px); align-items: start;
  padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line);
}
.svc-row-num { grid-area: num; }
.svc-row-main { grid-area: main; }
.svc-row-list { grid-area: list; }

/* rows that carry a visual: the media sits beside the text and swaps side each row,
   so the eye zig-zags down the page instead of reading one flat column */
.svc-row--media {
  grid-template-columns: minmax(80px, 110px) 1fr 0.8fr 1.05fr;
  grid-template-areas: "num main list media";
}
.svc-row--media .svc-media { grid-area: media; }
.svc-row--media:nth-of-type(even) {
  grid-template-columns: 1.05fr minmax(80px, 110px) 1fr 0.8fr;
  grid-template-areas: "media num main list";
}
.svc-media {
  position: relative; overflow: hidden; border-radius: 16px;
  background: #0A0F2C; border: 1px solid var(--line);
  align-self: stretch; min-height: 100%;
}
.svc-media video, .svc-media img { width: 100%; height: 100%; display: block; }
/* screen recordings of whole websites: show the full page, never crop it */
.svc-media--site { aspect-ratio: 16 / 9; }
.svc-media--site video { object-fit: contain; }
/* portrait reels and product stills: fill the frame */
.svc-media--tall { aspect-ratio: 4 / 5; }
.svc-media--tall video, .svc-media--tall img { object-fit: cover; object-position: 50% 35%; }
.svc-media--wide { aspect-ratio: 16 / 9; }
.svc-media--wide video, .svc-media--wide img { object-fit: cover; }
/* live 3D scene inside a service row */
.svc-media--3d { aspect-ratio: 4 / 3; background: radial-gradient(70% 70% at 50% 50%, rgba(81, 112, 255, 0.28), transparent 70%), #0A0F2C; }
.svc-media--3d canvas { display: block; width: 100%; height: 100%; }
/* light variant: the scene renders transparent over the page's own airy stage,
   so the 3D sits in the light layout instead of a dark punched-out box */
.svc-media--3d-light {
  background:
    radial-gradient(58% 58% at 50% 46%, rgba(81, 112, 255, 0.20), transparent 72%),
    linear-gradient(160deg, var(--white), var(--bg-2));
  border-color: var(--line);
}
.svc-media-cap {
  position: absolute; inset-inline-start: 12px; bottom: 12px; margin: 0;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(10, 15, 44, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1.2;
}
/* ---------- video lightbox ---------- */
.vlb[hidden] { display: none; } /* an explicit display beats the hidden attribute, so restate it */
.vlb {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(7, 11, 36, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.vlb-open { overflow: hidden; }
.vlb-stage { width: min(1200px, 100%); display: grid; place-items: center; }
.vlb-video {
  width: 100%; max-height: calc(100vh - clamp(72px, 16vw, 150px)); display: block;
  border-radius: 14px; background: #000; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.vlb-close {
  position: absolute; top: clamp(12px, 3vw, 26px); inset-inline-end: clamp(12px, 3vw, 26px);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; line-height: 1;
  font-size: 1.9rem; color: var(--white);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
}
.vlb-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- feature row: one service gets a full-width, much larger video ---------- */
/* The operations system is the hardest service to picture, so its row drops the side-by-side
   layout and gives the clip the full content width under the text. */
.svc-row--feature,
.svc-row--media.svc-row--feature,
.svc-row--media.svc-row--feature:nth-of-type(even) {
  grid-template-columns: minmax(80px, 110px) 1.05fr 0.95fr;
  grid-template-areas: "num main list" "media media media";
  row-gap: clamp(26px, 3.4vw, 44px);
}
.svc-row--feature .svc-media { width: 100%; }
.svc-row--feature .svc-media--site { aspect-ratio: 16 / 9; }
.svc-row--feature .svc-media-cap { font-size: 0.86rem; padding: 7px 14px; }
@media (max-width: 860px) {
  .svc-row--media.svc-row--feature,
  .svc-row--media.svc-row--feature:nth-of-type(even) {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "num" "main" "list";
  }
}

.svc-media-cap--light {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--ink);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row-num { font-family: var(--f-mono); font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1; color: var(--brand); }
.svc-row-main h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; }
.svc-row-main p { margin: 14px 0 0; color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }
.svc-row-link { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--brand); text-decoration: none; }
.svc-row-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-row-list li { position: relative; padding-inline-start: 22px; color: var(--ink); font-size: 1rem; }
.svc-row-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@media (max-width: 860px) {
  .svc-row,
  .svc-row--media,
  .svc-row--media:nth-of-type(even) {
    grid-template-columns: 1fr; gap: 16px;
    grid-template-areas: "media" "num" "main" "list";
  }
  .svc-media--site, .svc-media--tall, .svc-media--wide, .svc-media--3d { aspect-ratio: 16 / 9; }
  .svc-media--tall video, .svc-media--tall img { object-position: 50% 30%; }
}
.page-cta { padding-block: clamp(80px, 11vw, 150px); text-align: center; }
.page-cta h2 { margin-bottom: 34px; }
/* "all services" button under the home page service cards */
.build-more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- cookie notice ---------- */
.consent {
  position: fixed; z-index: 90; bottom: 16px; inset-inline: 16px; margin-inline: auto; max-width: 760px;
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  padding: 16px 18px 16px 22px; border-radius: 18px;
  background: var(--navy); color: var(--navy-ink); border: 1px solid var(--navy-line);
  box-shadow: 0 24px 60px -20px rgba(7, 11, 36, 0.6);
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.consent.is-on { opacity: 1; transform: none; }
.consent p { flex: 1 1 320px; margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--navy-soft); }
.consent a { color: var(--white); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; margin-inline-start: auto; }
.consent-btn {
  font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--white); color: var(--ink); transition: transform 0.2s var(--ease);
}
.consent-btn:hover { transform: translateY(-1px); }
.consent-btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.consent-btn--ghost { background: transparent; color: var(--navy-ink); border-color: var(--navy-line); }
@media (max-width: 560px) {
  .consent { padding: 16px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
