/* ==========================================================================
   AZYION MOTION LAYER — headline text, cursor & hover, scroll reveals,
   gold accents. Loaded after site.css. Everything is switched on by the
   .m-on class, which motion.js adds only when the visitor allows motion.
   ========================================================================== */

/* ---------- 1. Headline text effects ---------- */
.m-on .mw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.05em 0.16em;
  margin: 0 -0.05em -0.16em;
}

.m-on .mw-i {
  display: inline-block;
  transform: translateY(108%) rotate(5deg);
  transform-origin: 0 100%;
  opacity: 0;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
  transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms));
}

.m-on .m-split.m-in .mw-i {
  transform: none;
  opacity: 1;
}

/* the hero headline uses the word animation instead of the plain fade-up */
.js.m-on .hero-copy > .m-split {
  animation: none;
  opacity: 1;
  transform: none;
}

/* gold words: each word carries its own gold, plus a light sheen that sweeps across */
.m-on .m-gparent {
  background: none !important;
}

.m-on .mw-i.m-g {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 130% 0, 0 0;
}

.m-on .m-split.m-in .mw-i.m-g {
  animation: m-sheen 5.5s ease-in-out infinite;
  animation-delay: calc(1.4s + var(--i, 0) * 90ms);
}

@keyframes m-sheen {
  0%, 55% { background-position: 130% 0, 0 0; }
  85%, 100% { background-position: -30% 0, 0 0; }
}

/* eyebrows open up and their gold rule draws in */
.m-on .eyebrow.m-eb {
  opacity: 0;
  letter-spacing: 0.42em;
  transition: opacity 0.9s ease, letter-spacing 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.m-on .eyebrow.m-eb.m-in {
  opacity: 1;
  letter-spacing: 0.18em;
}

.m-on .eyebrow.rule.m-eb::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}

.m-on .eyebrow.rule.m-eb.m-in::before {
  transform: none;
}

/* ---------- 2. Cursor glow, ring, 3D tilt, magnetic buttons ---------- */
.m-glow,
.m-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.m-glow {
  z-index: 40;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.16) 0%, rgba(197, 160, 89, 0.06) 35%, rgba(197, 160, 89, 0) 65%);
}

.m-ring {
  z-index: 9999;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
}

.m-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.35s ease, border-color 0.35s ease;
}

.m-cursor-on .m-glow,
.m-cursor-on .m-ring {
  opacity: 1;
}

.m-ring.is-link::before {
  transform: scale(1.75);
  background-color: rgba(197, 160, 89, 0.12);
  border-color: rgba(197, 160, 89, 0.7);
}

.m-ring.is-down::before {
  transform: scale(0.8);
}

.m-ring.is-text {
  opacity: 0 !important;
}

/* 3D tilt with a soft light that follows the pointer */
.m-on .svc-card,
.m-on .rel-card {
  position: relative;
  transform-style: preserve-3d;
}

.m-on .svc-card::after,
.m-on .rel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(223, 194, 133, 0.22), rgba(223, 194, 133, 0) 45%);
  z-index: 3;
}

.m-on .svc-card.m-tilt,
.m-on .rel-card.m-tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) !important;
  transition: transform 0.12s linear, box-shadow 0.35s ease, border-color 0.3s ease, opacity 0.8s ease !important;
}

.m-on .svc-card.m-tilt::after,
.m-on .rel-card.m-tilt::after {
  opacity: 1;
}

/* magnetic buttons */
.m-on .btn.m-mag {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---------- 3. Scroll-driven reveals ---------- */
/* gold wipe over service photos */
.m-on .m-wipe {
  position: relative;
}

.m-on .m-wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left center;
}

.m-on .m-wipe.m-in::after {
  animation: m-wipe 1.15s cubic-bezier(0.75, 0, 0.2, 1) forwards;
  animation-delay: var(--wd, 0s);
}

.m-on .m-wipe > img {
  opacity: 0;
}

.m-on .m-wipe.m-in > img {
  opacity: 1;
  transition: opacity 0s linear calc(var(--wd, 0s) + 0.55s);
}

@keyframes m-wipe {
  0% { transform: scaleX(0); transform-origin: left center; }
  46% { transform: scaleX(1); transform-origin: left center; }
  54% { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* standalone photos open like a curtain and drift slightly as you scroll */
.m-on img.m-clip {
  clip-path: inset(0 0 100% 0);
  scale: 1.08;
  translate: 0 var(--mp, 0px);
  transition: clip-path 1.3s cubic-bezier(0.75, 0, 0.2, 1), scale 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.m-on img.m-clip.m-in {
  clip-path: inset(0 0 0 0);
  scale: 1;
}

/* dark bands open out from a rounded card to full width */
.m-on .band-dark.m-open {
  clip-path: inset(0 var(--bi, 0px) round var(--br, 0px));
}

/* ---------- 4. Moving gold accents ---------- */
.m-on .band,
.m-on .band-dark {
  position: relative;
}

.m-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(197, 160, 89, 0) 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, rgba(197, 160, 89, 0) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.m-line.m-in {
  transform: scaleX(1);
}

/* a light that travels along the drawn line */
.m-line::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 3px;
  border-radius: 3px;
  background: radial-gradient(closest-side, rgba(255, 236, 190, 0.95), rgba(223, 194, 133, 0));
  opacity: 0;
}

.m-line.m-in::after {
  animation: m-travel 7s ease-in-out 1.8s infinite;
}

@keyframes m-travel {
  0% { transform: translateX(-140px); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translateX(calc(100vw)); opacity: 1; }
  50%, 100% { transform: translateX(calc(100vw)); opacity: 0; }
}

/* numbered items: a gold segment draws over the top rule, and fills on hover */
.m-on .num-item {
  position: relative;
}

.m-on .num-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0s) + 0.25s);
}

.m-on .num-item.m-in::before {
  transform: scaleX(0.3);
}

.m-on .num-item.m-in:hover::before {
  transform: scaleX(1);
  transition-delay: 0s;
}

/* numbers roll up into place */
.m-on .m-roll {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.m-on .m-roll > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0s) + 0.15s);
}

.m-on .m-roll.m-in > span {
  transform: none;
}

/* arrows nudge forward, the WhatsApp button breathes */
.m-on .hero-copy .btn svg,
.m-on .cta .btn svg {
  animation: m-nudge 2.6s ease-in-out 2s infinite;
}

@keyframes m-nudge {
  0%, 70%, 100% { transform: translateX(0); }
  80% { transform: translateX(5px); }
  90% { transform: translateX(0); }
}

.m-on .wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(197, 160, 89, 0.55);
  animation: m-pulse 3.2s ease-out 3s infinite;
  pointer-events: none;
}

@keyframes m-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(1.35, 1.6); opacity: 0; }
}

/* ---------- Safety: no motion for visitors who ask for less ---------- */


/* ---------- Industries strip: scrolls on its own, nonstop ---------- */
.m-on .industries .marquee-track {
  animation: m-marquee 38s linear infinite;
}

.m-on .industries .marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes m-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .m-on .industries .marquee-track {
    animation-duration: 26s;
  }
}

/* ---------- Service details tabs ---------- */
.svc-tabs .head-row {
  margin-bottom: 36px;
}

.tabs {
  position: relative;
  display: flex;
  gap: 6px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs [role="tab"] {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 22px 18px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: none;
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  color: var(--stone);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.tabs [role="tab"]:hover {
  color: var(--ink);
  background-color: rgba(197, 160, 89, 0.07);
}

.tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
}

.tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.tab-n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.tab-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--gold-gradient);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab-panel:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 6px;
}

.tab-panel:not([hidden]) {
  animation: m-tab-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes m-tab-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.tab-ov {
  max-width: 920px;
}

.tab-panel .faq-list {
  max-width: 920px;
}



/* Details-page photo: keep its 16:11 shape (the height attribute was stretching it on wide screens) */
.hero-grid .hero-img {
  height: auto;
}

/* ==========================================================================
   "Every website includes" — scroll-built website animation
   Stages (added as classes s1…s8 while scrolling):
   s1 browser · s2 page layout · s3 mobile · s4 speed · s5 Google · s6 WhatsApp · s7 SSL · s8 Arabic
   ========================================================================== */
.inc-anim {
  --ia-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  margin-top: 32px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(197, 160, 89, 0.22), rgba(197, 160, 89, 0) 55%),
    linear-gradient(160deg, #111a30 0%, #0A0F1D 100%);
  box-shadow: 0 24px 50px -18px rgba(10, 15, 29, 0.45);
  isolation: isolate;
  font-family: var(--sans);
}

.ia-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(197, 160, 89, 0.25), rgba(197, 160, 89, 0));
  pointer-events: none;
}

/* browser window */
.ia-browser {
  position: absolute;
  left: 6%;
  top: 21%;
  width: 72%;
  height: 52%;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: opacity 0.7s var(--ia-ease), transform 0.8s var(--ia-ease);
}

.ia-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 13%;
  padding: 0 4%;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.ia-bar > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CBD5E1;
}

.ia-bar > i:nth-child(1) { background: #F87171; }
.ia-bar > i:nth-child(2) { background: #FBBF24; }
.ia-bar > i:nth-child(3) { background: #34D399; }

.ia-url {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  height: 62%;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: clamp(8px, 0.75vw, 11px);
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
}

.ia-lock {
  flex: none;
  display: inline-flex;
  width: 11px;
  height: 11px;
  color: #94A3B8;
  transition: color 0.4s ease, transform 0.5s var(--ia-ease);
}

.ia-lock svg { width: 100%; height: 100%; }

.ia-https {
  color: #94A3B8;
  transition: color 0.4s ease;
}

.ia-lang {
  position: relative;
  display: flex;
  margin-left: 6px;
  padding: 2px;
  border-radius: 999px;
  background: #E2E8F0;
  font-size: clamp(8px, 0.7vw, 10px);
}

.ia-lang b {
  position: relative;
  z-index: 1;
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  color: #0A0F1D;
  transition: color 0.4s ease;
}

.ia-lang::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 999px;
  background: var(--gold-gradient);
  transition: transform 0.5s var(--ia-ease);
}

/* page inside the browser */
.ia-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 87%;
  padding: 12px 14px;
}

.ia-nav {
  display: flex;
  align-items: center;
  gap: 6%;
}

.ia-nav span {
  height: 5px;
  width: 9%;
  border-radius: 3px;
  background: #E2E8F0;
}

.ia-nav .ia-logo {
  width: 16%;
  height: 8px;
  margin-right: auto;
  background: #0A0F1D;
}

.ia-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: align-items 0s;
}

.ia-hero span {
  display: block;
  border-radius: 4px;
  transition: transform 0.6s var(--ia-ease), opacity 0.5s ease, margin 0.6s var(--ia-ease);
}

.ia-h1 { width: 72%; height: 11px; background: #0A0F1D; }
.ia-h1.short { width: 46%; background: var(--gold-gradient); }
.ia-p { width: 80%; height: 5px; background: #E2E8F0; }
.ia-p.short { width: 58%; }
.ia-btn { width: 24%; height: 13px; margin-top: 4px; border-radius: 999px !important; background: var(--gold-gradient); }

.ia-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.ia-cards span {
  border-radius: 6px;
  background: linear-gradient(180deg, #F1F5F9 0%, #F1F5F9 55%, #FFFFFF 55%);
  border: 1px solid #E2E8F0;
  transition: transform 0.6s var(--ia-ease), opacity 0.5s ease;
}

/* phone */
.ia-phone {
  position: absolute;
  right: 6%;
  bottom: 9%;
  width: 24%;
  aspect-ratio: 9 / 18.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 7px 8px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 3px solid #1E293B;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.55);
  transition: opacity 0.6s ease, transform 0.9s var(--ia-ease);
}

.ia-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 34%;
  height: 5px;
  border-radius: 999px;
  background: #1E293B;
  transform: translateX(-50%);
}

.ia-phone span { display: block; border-radius: 3px; }
.ia-phone .a { height: 8px; width: 80%; background: #0A0F1D; }
.ia-phone .b { height: 4px; width: 100%; background: #E2E8F0; }
.ia-phone .b.short { width: 70%; }
.ia-phone .c { flex: 1; border-radius: 6px; background: #F1F5F9; border: 1px solid #E2E8F0; }

/* floating chips */
.ia-speed,
.ia-serp,
.ia-wa {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
  color: #0A0F1D;
  transition: opacity 0.5s ease, transform 0.7s var(--ia-ease);
}

.ia-speed { left: 4%; bottom: 5%; }

.ia-speed svg {
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}

.ia-speed circle {
  fill: none;
  stroke-width: 5;
}

.ia-speed .t { stroke: #E2E8F0; }

.ia-speed .v {
  stroke: #10B981;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 2.3;
  transition: stroke-dashoffset 1.4s var(--ia-ease);
}

.ia-speed strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #059669;
}

.ia-speed small,
.ia-serp small {
  display: block;
  font-size: 10px;
  color: #64748B;
  letter-spacing: 0.02em;
}

.ia-serp { top: 4%; right: 4%; }

.ia-serp b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold-gradient);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  color: #0A0F1D;
}

.ia-serp span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1a0dab;
}

.ia-wa {
  right: 22%;
  bottom: 33%;
  max-width: 52%;
  padding: 8px 12px 8px 8px;
  border-radius: 14px 14px 4px 14px;
}

.ia-wa svg {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
}

.ia-wa span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.ia-wa small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: #64748B;
}

/* ---- stage states (only when motion is on; otherwise everything shows) ---- */
.m-on .inc-anim:not(.s1) .ia-browser { opacity: 0; transform: translateY(24px) scale(0.94); }
.m-on .inc-anim:not(.s2) .ia-nav span,
.m-on .inc-anim:not(.s2) .ia-hero span,
.m-on .inc-anim:not(.s2) .ia-cards span { opacity: 0; transform: translateY(10px); }
.m-on .inc-anim .ia-hero span:nth-child(2) { transition-delay: 0.06s; }
.m-on .inc-anim .ia-hero span:nth-child(3) { transition-delay: 0.12s; }
.m-on .inc-anim .ia-hero span:nth-child(4) { transition-delay: 0.16s; }
.m-on .inc-anim .ia-hero span:nth-child(5) { transition-delay: 0.22s; }
.m-on .inc-anim .ia-cards span:nth-child(2) { transition-delay: 0.08s; }
.m-on .inc-anim .ia-cards span:nth-child(3) { transition-delay: 0.16s; }
.ia-nav span { transition: opacity 0.5s ease, transform 0.6s var(--ia-ease); }

.m-on .inc-anim:not(.s3) .ia-phone { opacity: 0; transform: translate(40%, 30%) rotate(12deg); }

.m-on .inc-anim:not(.s4) .ia-speed { opacity: 0; transform: translateY(16px) scale(0.9); }
.m-on .inc-anim:not(.s4) .ia-speed .v { stroke-dashoffset: 113.1; }

.m-on .inc-anim:not(.s5) .ia-serp { opacity: 0; transform: translateY(-14px) scale(0.9); }

.m-on .inc-anim:not(.s6) .ia-wa { opacity: 0; transform: translateY(14px) scale(0.85); transform-origin: right bottom; }

.inc-anim .ia-lock,
.inc-anim .ia-https { color: #059669; }
.m-on .inc-anim:not(.s7) .ia-lock,
.m-on .inc-anim:not(.s7) .ia-https { color: #94A3B8; }
.m-on .inc-anim.s7 .ia-lock { animation: ia-pop 0.6s var(--ia-ease); }

@keyframes ia-pop {
  50% { transform: scale(1.5); }
}

/* Arabic: switch moves, page text flips to right-to-left */
.m-on .inc-anim.s8 .ia-lang::before { transform: translateX(100%); }
.m-on .inc-anim.s8 .ia-hero { align-items: flex-end; }
.m-on .inc-anim.s8 .ia-nav .ia-logo { order: 9; margin: 0 0 0 auto; }

/* the matching list item fills its gold bar while its stage is showing */
.m-on .num-item.ia-lit::before {
  transform: scaleX(1);
  transition-delay: 0s;
}

.m-on .num-item.ia-lit .n {
  color: var(--gold);
}

@media (max-width: 768px) {
  .ia-speed svg { width: 28px; height: 28px; }
  .ia-speed strong { font-size: 15px; }
  .ia-serp b { width: 24px; height: 24px; font-size: 13px; }
  .ia-serp span, .ia-wa span { font-size: 10px; }
  .ia-wa small { display: none; }
  .ia-wa svg { width: 22px; height: 22px; padding: 4px; }
  .ia-speed, .ia-serp, .ia-wa { padding: 6px 9px 6px 6px; gap: 6px; }
}

/* ==========================================================================
   Process steps — a small scene for each step, played when it scrolls in
   (paused on the first frame until the step is on screen)
   ========================================================================== */
.st-art {
  --e: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  height: 156px;
  margin-bottom: 26px;
  border-radius: 14px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(197, 160, 89, 0.12), rgba(197, 160, 89, 0) 60%),
    #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(10, 15, 29, 0.25);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
}

.m-on .st-art * {
  animation-play-state: paused !important;
}

.m-on .st-art.m-in * {
  animation-play-state: running !important;
}

@keyframes st-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes st-grow-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- 01 Consult: a short chat --- */
.st-consult {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 14px;
}

.sc-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.sc-out { justify-content: flex-end; }

.sc-av {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #CBD5E1, #94A3B8);
}

.sc-av.a { background: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); }

.sc-msg {
  padding: 7px 11px;
  border-radius: 12px 12px 12px 4px;
  background: #F1F5F9;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.sc-out .sc-msg { border-radius: 12px 12px 4px 12px; }
.sc-msg.sc-gold { background: var(--gold-gradient); font-weight: 600; color: #0A0F1D; }

.sc-typing {
  position: absolute;
  right: 27px;
  bottom: 0;
  display: flex;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 12px 12px 4px 12px;
  background: #F1F5F9;
  opacity: 0;
}

.sc-typing b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94A3B8;
  animation: st-dot 0.9s ease-in-out infinite;
}

.sc-typing b:nth-child(2) { animation-delay: 0.15s; }
.sc-typing b:nth-child(3) { animation-delay: 0.3s; }

@keyframes st-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes st-typing {
  0% { opacity: 0; transform: scale(0.9); }
  15%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.9); }
}

.m-on .st-consult .sc-row:first-child { animation: st-pop 0.6s var(--e) calc(var(--sd) + 0.2s) both; }
.m-on .st-consult .sc-typing { animation: st-typing 1s ease calc(var(--sd) + 0.8s) both; }
.m-on .st-consult .sc-out .sc-msg,
.m-on .st-consult .sc-out .sc-av { animation: st-pop 0.6s var(--e) calc(var(--sd) + 1.75s) both; }
.m-on .st-consult .sc-2 { animation: st-pop 0.6s var(--e) calc(var(--sd) + 2.4s) both; }

/* --- 02 Plan & quote: a proposal is written and agreed --- */
.sp-doc {
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 58%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 20px -12px rgba(10, 15, 29, 0.3);
}

.sp-doc > span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #E2E8F0;
  transform-origin: left center;
}

.sp-doc .sp-title { width: 55%; height: 8px; background: var(--ink); }
.sp-doc .short { width: 60%; }

.sp-total {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
  font-size: 11px;
}

.sp-total small { color: #64748B; }
.sp-total b { margin-left: auto; font-family: var(--serif); color: var(--gold-deep); }

.sp-dots {
  width: 30px;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #E2E8F0 0%, #F8FAFC 50%, #E2E8F0 100%);
  background-size: 200% 100%;
  animation: st-shimmer 1.6s linear infinite;
}

@keyframes st-shimmer {
  to { background-position: -200% 0; }
}

.sp-stamp {
  position: absolute;
  right: 9%;
  top: 46%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 2px solid #059669;
  border-radius: 8px;
  color: #059669;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-10deg);
}

.sp-stamp svg { width: 14px; height: 14px; }

@keyframes st-stamp {
  0% { opacity: 0; transform: rotate(-10deg) scale(1.8); }
  60% { opacity: 1; transform: rotate(-10deg) scale(0.92); }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}

.sp-chip {
  position: absolute;
  right: 8%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.6);
  background: #FFFDF8;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
}

.sp-chip.c1 { top: 16px; }
.sp-chip.c2 { bottom: 16px; }

.m-on .st-plan .sp-doc { animation: st-pop 0.6s var(--e) calc(var(--sd) + 0.1s) both; }
.m-on .st-plan .sp-doc > span { animation: st-grow-x 0.6s var(--e) both; }
.m-on .st-plan .sp-doc > span:nth-child(1) { animation-delay: calc(var(--sd) + 0.4s); }
.m-on .st-plan .sp-doc > span:nth-child(2) { animation-delay: calc(var(--sd) + 0.6s); }
.m-on .st-plan .sp-doc > span:nth-child(3) { animation-delay: calc(var(--sd) + 0.75s); }
.m-on .st-plan .sp-doc > span:nth-child(4) { animation-delay: calc(var(--sd) + 0.9s); }
.m-on .st-plan .sp-total { animation: st-pop 0.5s var(--e) calc(var(--sd) + 1.1s) both; }
.m-on .st-plan .sp-chip.c1 { animation: st-pop 0.5s var(--e) calc(var(--sd) + 0.8s) both; }
.m-on .st-plan .sp-chip.c2 { animation: st-pop 0.5s var(--e) calc(var(--sd) + 1.05s) both; }
.m-on .st-plan .sp-stamp { animation: st-stamp 0.55s var(--e) calc(var(--sd) + 1.7s) both; }

/* --- 03 Design & build: wireframe → finished design, then on mobile --- */
.sb-desk {
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 64%;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 8px 20px -12px rgba(10, 15, 29, 0.3);
}

.sb-bar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.sb-bar i { width: 5px; height: 5px; border-radius: 50%; background: #CBD5E1; }

.sb-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 7px 5px 1fr 18px;
  gap: 6px;
  height: calc(100% - 18px);
  padding: 9px;
}

.sb-body span,
.sb-phone span {
  display: block;
  border-radius: 3px;
  border: 1px dashed #CBD5E1;
}

.sb-body .sb-h { grid-column: 1 / 3; background: var(--ink); border-color: transparent; }
.sb-body .sb-h2 { grid-column: 1 / 3; width: 70%; background: var(--gold); border-color: transparent; }
.sb-body .sb-img { grid-column: 1 / 4; background: linear-gradient(120deg, #DFC285, #C5A059 60%, #A07D38); border-color: transparent; }
.sb-body .sb-c { background: #F1F5F9; border-color: transparent; }

.sb-phone {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 52px;
  height: 96px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 6px 6px;
  border-radius: 10px;
  border: 2px solid #1E293B;
  background: #FFFFFF;
  box-shadow: 0 10px 20px -10px rgba(10, 15, 29, 0.5);
}

.sb-phone .sb-h { height: 5px; width: 80%; background: var(--ink); border-color: transparent; }
.sb-phone .sb-img { flex: 1; background: linear-gradient(120deg, #DFC285, #A07D38); border-color: transparent; }
.sb-phone .sb-c { height: 14px; background: #F1F5F9; border-color: transparent; }

.sb-code,
.sb-ok {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.sb-code {
  top: 14px;
  right: 16px;
  background: var(--ink);
  color: var(--gold-light);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.sb-ok {
  left: 24px;
  bottom: 22px;
  background: #ECFDF5;
  color: #059669;
  box-shadow: 0 6px 14px -8px rgba(5, 150, 105, 0.6);
}

.sb-ok svg { width: 12px; height: 12px; }

@keyframes st-fill {
  0%, 35% { background: transparent; border-color: #CBD5E1; }
  100% { border-color: transparent; }
}

.m-on .st-build .sb-desk { animation: st-pop 0.6s var(--e) calc(var(--sd) + 0.1s) both; }
.m-on .st-build .sb-body span { animation: st-fill 1.2s ease calc(var(--sd) + 0.5s) both; }
.m-on .st-build .sb-body span:nth-child(3) { animation-delay: calc(var(--sd) + 0.7s); }
.m-on .st-build .sb-body span:nth-child(n+4) { animation-delay: calc(var(--sd) + 0.9s); }
.m-on .st-build .sb-code { animation: st-pop 0.5s var(--e) calc(var(--sd) + 0.4s) both; }
.m-on .st-build .sb-phone { animation: st-phone 0.8s var(--e) calc(var(--sd) + 1.7s) both; }
.m-on .st-build .sb-ok { animation: st-pop 0.5s var(--e) calc(var(--sd) + 2.3s) both; }

@keyframes st-phone {
  from { opacity: 0; transform: translate(30px, 20px) rotate(10deg); }
  to { opacity: 1; transform: none; }
}

/* --- 04 Launch & grow: live, then a growth line draws upward --- */
.sl-chart {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 44px;
  bottom: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 58px);
  overflow: visible;
}

.sl-grid { stroke: #EEF2F6; stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.sl-area { fill: url(#slFill); }

.sl-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@keyframes st-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes st-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sl-dot {
  position: absolute;
  right: 9px;
  top: calc(44px + (100% - 58px) * 0.12 - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6);
  animation: st-ping 2s ease-out infinite;
}

@keyframes st-ping {
  0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(197, 160, 89, 0); }
}

.sl-live,
.sl-up {
  position: absolute;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.sl-live { left: 14px; background: #ECFDF5; color: #059669; }

.sl-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: st-blink 1.4s ease-in-out infinite;
}

@keyframes st-blink {
  50% { opacity: 0.25; }
}

.sl-up { right: 14px; background: var(--ink); color: var(--gold-light); }
.sl-up svg { width: 13px; height: 13px; }

.m-on .st-launch .sl-live { animation: st-pop 0.5s var(--e) calc(var(--sd) + 0.2s) both; }
.m-on .st-launch .sl-line { animation: st-draw 1.6s cubic-bezier(0.6, 0, 0.3, 1) calc(var(--sd) + 0.6s) both; }
.m-on .st-launch .sl-area { animation: st-fade 0.8s ease calc(var(--sd) + 1.7s) both; }
.m-on .st-launch .sl-dot { animation: st-fade 0.3s ease calc(var(--sd) + 2.1s) both, st-ping 2s ease-out calc(var(--sd) + 2.4s) infinite; }
.m-on .st-launch .sl-up { animation: st-pop 0.5s var(--e) calc(var(--sd) + 2.2s) both; }

@media (max-width: 768px) {
  .st-art { height: 150px; }
}

/* ==========================================================================
   Services storyboard
   Desktop (with motion): the section pins and a reel of scenes slides sideways.
   Phones / reduced motion: a vertical storyboard timeline.
   ========================================================================== */
.sb .head-row { margin-bottom: 40px; }

.sbf {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 20px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(10, 15, 29, 0.25);
}

.sbf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sbf-scene {
  font-weight: 700;
  color: var(--gold-deep);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
}

.sbf-cat { color: var(--stone); font-weight: 600; }

.sbf-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #E2E8F0;
}

.sbf-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12) translateX(calc(var(--d, 0) * -5%));
  transition: transform 0.2s linear, filter 0.5s ease;
}

.sbf-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.28) 0%, rgba(10, 15, 29, 0) 35%, rgba(10, 15, 29, 0) 70%, rgba(10, 15, 29, 0.2) 100%);
  pointer-events: none;
}

/* camera viewfinder corners */
.vf {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 0 solid rgba(255, 255, 255, 0.9);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vf.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.vf.tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.vf.bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.vf.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

.sbf-rec {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 15, 29, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  transform: translateX(-50%);
}

.sbf-rec b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
}

.sbf.is-on .sbf-rec b { animation: st-blink 1.1s ease-in-out infinite; }

.sbf-cap { padding: 0 6px; }

.sbf-name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sbf-name a { color: var(--ink); text-decoration: none; }
.sbf-name a:hover { color: var(--gold-deep); }

.sbf-cap p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--stone);
}

.sbf-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
}

.sbf-more svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.sbf-more:hover svg { transform: translateX(4px); }

/* intro and final cards */
.sbf-intro,
.sbf-end {
  justify-content: center;
  gap: 18px;
  padding: 36px 32px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(197, 160, 89, 0.14), rgba(197, 160, 89, 0) 60%),
    #FFFFFF;
}

.sbf-intro-t {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sbf-intro-s {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--stone);
}

.sbf-intro-s svg { width: 16px; height: 16px; animation: m-nudge 2s ease-in-out infinite; }
.sbf-end .btn { align-self: flex-start; }

.sb-hud { display: none; }

/* ---------- Vertical timeline (phones, reduced motion, no JS) ---------- */
.sb-reel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: min(100% - 2 * var(--gutter, 20px), 720px);
  margin: 0 auto;
  padding-left: 30px;
}

.sb-reel::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  border-left: 2px dashed rgba(197, 160, 89, 0.5);
}

.sb-reel > .sbf::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ivory, #FAFAF9);
}

.sb-reel > .sbf-intro { display: none; }

.m-on .sb:not(.sb-pin) .sbf {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.m-on .sb:not(.sb-pin) .sbf.m-in { opacity: 1; transform: none; }

.m-on .sb:not(.sb-pin) .sbf .sbf-shot {
  clip-path: inset(0 0 100% 0 round 12px);
  transition: clip-path 1.1s cubic-bezier(0.75, 0, 0.2, 1) 0.15s;
}

.m-on .sb:not(.sb-pin) .sbf.m-in .sbf-shot { clip-path: inset(0 0 0 0 round 12px); }
.m-on .sb:not(.sb-pin) .sbf.m-in::before { animation: st-ping 2s ease-out 0.4s 2; }

/* ---------- Pinned horizontal reel (desktop with motion) ---------- */
.sb.sb-pin { padding-bottom: 0; }

.sb-pin .sb-sticky {
  position: sticky;
  top: 77px;
  height: calc(100vh - 77px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
}

.sb-pin .sb-reel {
  flex-direction: row;
  align-items: stretch;
  gap: 64px;
  width: max-content;
  margin: 0;
  padding: 0 max(6vw, calc((100vw - 1144px) / 2));
  will-change: transform;
}

.sb-pin .sb-reel::before { display: none; }
.sb-pin .sb-reel > .sbf::before { display: none; }
.sb-pin .sb-reel > .sbf-intro { display: flex; }
.sb-pin .sbf-intro-s { display: flex; }

.sb-pin .sbf {
  width: min(34vw, 500px, calc((100vh - 77px - 150px) * 1.2));
  transform: scale(calc(1 - 0.07 * var(--ad, 0)));
  opacity: calc(1 - 0.45 * var(--ad, 0));
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.sb-pin .sbf-intro,
.sb-pin .sbf-end { width: min(28vw, 400px); }

.sb-pin .sbf.is-on {
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 30px 60px -28px rgba(10, 15, 29, 0.35), 0 0 0 1px rgba(197, 160, 89, 0.25);
}

.sb-pin .sbf:not(.is-on) .sbf-shot img { filter: saturate(0.55); }
.sb-pin .sbf.is-on .vf.tl { transform: translate(-3px, -3px); }
.sb-pin .sbf.is-on .vf.tr { transform: translate(3px, -3px); }
.sb-pin .sbf.is-on .vf.bl { transform: translate(-3px, 3px); }
.sb-pin .sbf.is-on .vf.br { transform: translate(3px, 3px); }

/* dashed "next scene" arrows between frames */
.sb-pin .sb-reel > .sbf:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -52px;
  width: 40px;
  height: 10px;
  background:
    linear-gradient(90deg, var(--gold) 50%, transparent 50%) 0 50% / 8px 2px repeat-x,
    linear-gradient(45deg, transparent 45%, var(--gold) 45%, var(--gold) 60%, transparent 60%) 100% 0 / 8px 5px no-repeat,
    linear-gradient(-45deg, transparent 45%, var(--gold) 45%, var(--gold) 60%, transparent 60%) 100% 100% / 8px 5px no-repeat;
  opacity: 0.7;
}

/* caption slides in as its scene becomes active */
.sb-pin .sbf-cap > * {
  transform: translateY(10px);
  opacity: 0.35;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.sb-pin .sbf.is-on .sbf-cap > * { transform: none; opacity: 1; }
.sb-pin .sbf.is-on .sbf-cap > :nth-child(2) { transition-delay: 0.08s; }
.sb-pin .sbf.is-on .sbf-cap > :nth-child(3) { transition-delay: 0.16s; }

/* HUD: scene counter, scene ticks and a progress bar */
.sb-pin .sb-hud {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 28px;
  width: min(100% - 2 * var(--gutter, 24px), 1144px);
  margin: 0 auto;
}

.sb-count {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

.sb-count b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

.sb-ticks {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-ticks li {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #94A3B8;
  transition: color 0.3s ease;
}

.sb-ticks li.on { color: var(--gold-deep); font-weight: 700; }
.sb-ticks li.now { color: var(--ink); }

.sb-prog {
  position: relative;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.sb-prog i {
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

@media (min-width: 900px) {
  .sb:not(.sb-pin) .sb-reel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(100% - 2 * var(--gutter, 24px), 1144px);
    padding-left: 0;
  }
  .sb:not(.sb-pin) .sb-reel::before,
  .sb:not(.sb-pin) .sb-reel > .sbf::before { display: none; }
}

/* "clip" stops sideways scrolling like "hidden" did, but still lets sections pin (position: sticky) */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* Storyboard without scene labels, counter or timeline */
.sbf-head { justify-content: flex-start; }
.sb-reel { padding-left: 0; }
.sb-reel::before,
.sb-reel > .sbf::before { display: none !important; }

/* ==========================================================================
   "What we build" — four cards with self-drawing gold illustrations
   ========================================================================== */
.wb-head { max-width: 860px; margin-bottom: 52px; }
.wb-head .h2 { margin: 0 0 22px; }

.wb-lede {
  margin: 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2, #334155);
}

.wb-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-item { display: flex; }

.wb-card {
  --e: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 18px 20px 22px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(10, 15, 29, 0.3);
  transition: transform 0.4s var(--e), box-shadow 0.4s ease, border-color 0.4s ease;
}

.wb-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 30px 50px -28px rgba(10, 15, 29, 0.35);
}

.wb-art {
  position: relative;
  height: 136px;
  margin-bottom: 18px;
  border-radius: 12px;
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(197, 160, 89, 0.16), rgba(197, 160, 89, 0) 70%),
    linear-gradient(180deg, #FBFAF7, #F6F3EC);
  overflow: hidden;
}

.wb-svg { width: 100%; height: 100%; overflow: visible; }

.wb-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.wb-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.wb-tag {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-deep);
}

.wb-desc {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
}

.wb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.wb-link svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.wb-card:hover .wb-link svg { transform: translateX(4px); }
.wb-link:hover { color: var(--gold-deep); }

.wb-also {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--stone);
}

.wb-also a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.wb-also a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .wb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .wb-grid { grid-template-columns: 1fr; }
  .wb-lede { font-size: 16px; }
}

/* ---- shared drawing styles ---- */
.wb-svg .dr {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.wb-svg .fl { fill: #CBD5E1; }
.wb-svg .bar, .wb-svg .msg { fill: #E2E8F0; }
.wb-svg .b1 { fill: var(--ink); }
.wb-svg .btn-g, .wb-svg .col.c4, .wb-svg .msg.me { fill: #C5A059; }
.wb-svg .col { fill: #E8DCC0; }
.wb-svg .col.c3 { fill: #DFC285; }

.wb-svg .bolt circle { fill: var(--ink); }
.wb-svg .bolt path { fill: #DFC285; }
.wb-svg .cursor path { fill: var(--ink); stroke: #FFFFFF; stroke-width: 1.2; }
.wb-svg .ripple { fill: none; stroke: #C5A059; stroke-width: 2; opacity: 0; }

.wb-svg .trend { stroke: #A07D38; stroke-width: 2.5; }
.wb-svg .axis { stroke: #CBD5E1; }
.wb-svg .like path { fill: #E25B6B; }

.wb-svg .gear .dr { stroke: #A07D38; }
.wb-svg .clock .dr { stroke: var(--ink); }
.wb-svg .hand, .wb-svg .hand2 { stroke: #A07D38; stroke-width: 2.5; stroke-linecap: round; }
.wb-svg .t247 { font: 800 15px var(--serif); fill: var(--ink); }

.wb-svg .curve { stroke: #A07D38; stroke-width: 2.5; }
.wb-svg .guide { stroke: #CBD5E1; stroke-width: 1.2; stroke-dasharray: 1; }
.wb-svg .node { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.5; }
.wb-svg .pen path { fill: var(--ink); }
.wb-svg .pen .nib { fill: none; stroke: #DFC285; stroke-width: 1.2; }
.wb-svg .sw.s1 { fill: #0A0F1D; }
.wb-svg .sw.s2 { fill: #C5A059; }
.wb-svg .sw.s3 { fill: #E8DCC0; }
.wb-svg .aa { font: 800 26px var(--serif); fill: var(--ink); text-anchor: end; }

/* resting positions (shown as-is without motion) */
.wb-svg .cursor { transform: translate(46px, 84px); }
.wb-svg .pen { transform: translate(178px, 30px); }
.wb-svg .like.l1 { transform: translate(52px, 40px); }
.wb-svg .like.l2 { transform: translate(118px, 22px); }
.wb-svg .like.l3 { transform: translate(160px, 8px); }

.wb-svg .gear,
.wb-svg .hand,
.wb-svg .hand2,
.wb-svg .col,
.wb-svg .sw,
.wb-svg .node,
.wb-svg .bolt,
.wb-svg .msg,
.wb-svg .ripple {
  transform-box: fill-box;
  transform-origin: center;
}

.wb-svg .col { transform-origin: center bottom; }
.wb-svg .hand, .wb-svg .hand2 { transform-origin: 0% 100%; }
.wb-svg .hand2 { transform-origin: 0% 50%; }
.wb-svg .msg { transform-origin: left center; }
.wb-svg .msg.me { transform-origin: right center; }

/* ---- motion: everything waits on its first frame until the card is on screen ---- */
.m-on .wb-art * { animation-play-state: paused !important; }
.m-on .wb-card.m-in .wb-art * { animation-play-state: running !important; }

@keyframes wb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wb-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes wb-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes wb-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes wb-fade { from { opacity: 0; } to { opacity: 1; } }

.m-on .wb-card { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease var(--wd), transform 0.9s var(--e) var(--wd), box-shadow 0.4s ease, border-color 0.4s ease; }
.m-on .wb-card.m-in { opacity: 1; transform: none; }
.m-on .wb-card.m-in:hover { transform: translateY(-6px); transition-delay: 0s; }

.m-on .wb-svg .dr { animation: wb-draw 1.3s cubic-bezier(0.6, 0, 0.3, 1) calc(var(--wd) + 0.35s) both; }
.m-on .wb-svg .dr + .dr { animation-delay: calc(var(--wd) + 0.75s); }

/* 01 Websites: page builds, cursor clicks the button, speed bolt pops */
.wb-svg .bar { transform-box: fill-box; transform-origin: left center; }
.m-on .wb-svg .fl { animation: wb-pop 0.4s var(--e) both; }
.m-on .wb-svg .fl.d1 { animation-delay: calc(var(--wd) + 0.9s); }
.m-on .wb-svg .fl.d2 { animation-delay: calc(var(--wd) + 1s); }
.m-on .wb-svg .fl.d3 { animation-delay: calc(var(--wd) + 1.1s); }
.m-on .wb-svg .bar { animation: wb-grow-x 0.6s var(--e) both; }
.m-on .wb-svg .b1 { animation-delay: calc(var(--wd) + 1.1s); }
.m-on .wb-svg .b2 { animation-delay: calc(var(--wd) + 1.25s); }
.m-on .wb-svg .b3 { animation-delay: calc(var(--wd) + 1.4s); }
.wb-svg .btn-g { transform-box: fill-box; transform-origin: center; }
.m-on .wb-svg .btn-g { animation: wb-pop 0.5s var(--e) calc(var(--wd) + 1.55s) both, wb-press 4s ease calc(var(--wd) + 3.2s) infinite; }
.m-on .wb-svg .cursor { animation: wb-cursor 4s cubic-bezier(0.5, 0, 0.2, 1) calc(var(--wd) + 1.4s) infinite both; }
.m-on .wb-svg .ripple { animation: wb-ripple 4s ease-out calc(var(--wd) + 1.4s) infinite both; }
.m-on .wb-svg .bolt { animation: wb-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--wd) + 2s) both, wb-zap 4s ease calc(var(--wd) + 3s) infinite; }

@keyframes wb-cursor {
  0% { transform: translate(150px, 108px); opacity: 0; }
  10% { opacity: 1; }
  40%, 52% { transform: translate(46px, 84px); }
  46% { transform: translate(46px, 84px) scale(0.85); }
  85% { transform: translate(46px, 84px); opacity: 1; }
  100% { transform: translate(150px, 108px); opacity: 0; }
}

@keyframes wb-ripple {
  0%, 44% { opacity: 0; transform: scale(0.3); }
  47% { opacity: 1; }
  70%, 100% { opacity: 0; transform: scale(2.2); }
}

@keyframes wb-press { 0%, 40%, 100% { transform: none; } 45% { transform: scale(0.9); } }
@keyframes wb-zap { 0%, 80%, 100% { transform: none; } 86% { transform: scale(1.15) rotate(-8deg); } 92% { transform: scale(1); } }

/* 02 Marketing: bars rise, the trend line draws, likes float up */
.m-on .wb-svg .col { animation: wb-grow-y 0.8s var(--e) both; }
.m-on .wb-svg .col.c1 { animation-delay: calc(var(--wd) + 0.6s); }
.m-on .wb-svg .col.c2 { animation-delay: calc(var(--wd) + 0.75s); }
.m-on .wb-svg .col.c3 { animation-delay: calc(var(--wd) + 0.9s); }
.m-on .wb-svg .col.c4 { animation-delay: calc(var(--wd) + 1.05s); }
.m-on .wb-svg .trend { animation-delay: calc(var(--wd) + 1.2s) !important; }
.m-on .wb-svg .like { animation: wb-float 3.2s ease-out infinite both; }
.m-on .wb-svg .like.l1 { animation-delay: calc(var(--wd) + 1.8s); }
.m-on .wb-svg .like.l2 { animation-delay: calc(var(--wd) + 2.6s); }
.m-on .wb-svg .like.l3 { animation-delay: calc(var(--wd) + 3.4s); }
.wb-svg .like.l1 { --lx: 52px; --ly: 52px; }
.wb-svg .like.l2 { --lx: 118px; --ly: 40px; }
.wb-svg .like.l3 { --lx: 160px; --ly: 26px; }

@keyframes wb-float {
  0% { opacity: 0; transform: translate(var(--lx), var(--ly)) scale(0.4); }
  20% { opacity: 1; transform: translate(var(--lx), calc(var(--ly) - 8px)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--lx) + 6px), calc(var(--ly) - 40px)) scale(0.9); }
}

/* 03 Automation: a chat plays out, the gear turns, the clock runs */
.m-on .wb-svg .msg { animation: wb-msg 6s var(--e) infinite both; }
.m-on .wb-svg .msg.m1 { animation-delay: calc(var(--wd) + 0.9s); }
.m-on .wb-svg .msg.m2 { animation-delay: calc(var(--wd) + 1.4s); }
.m-on .wb-svg .msg.m3 { animation-delay: calc(var(--wd) + 1.9s); }
.m-on .wb-svg .msg.m4 { animation-delay: calc(var(--wd) + 2.4s); }

@keyframes wb-msg {
  0% { opacity: 0; transform: scaleX(0.2); }
  8%, 85% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}

.m-on .wb-svg .gear { animation: wb-spin 8s linear calc(var(--wd) + 1.2s) infinite; }
.m-on .wb-svg .hand { animation: wb-spin 6s linear calc(var(--wd) + 1s) infinite; }
.m-on .wb-svg .hand2 { animation: wb-spin 24s linear calc(var(--wd) + 1s) infinite; }
.m-on .wb-svg .t247 { animation: wb-fade 0.6s ease calc(var(--wd) + 1.4s) both; }
@keyframes wb-spin { to { transform: rotate(360deg); } }

/* 04 Design: the pen draws a curve, anchor points and swatches pop in */
.m-on .wb-svg .curve { animation-duration: 1.8s !important; animation-delay: calc(var(--wd) + 0.4s) !important; }
.m-on .wb-svg .guide { animation: wb-fade 0.6s ease calc(var(--wd) + 1.9s) both !important; }
.m-on .wb-svg .node { animation: wb-pop 0.4s var(--e) both; }
.m-on .wb-svg .node.n1 { animation-delay: calc(var(--wd) + 0.4s); }
.m-on .wb-svg .node.n2 { animation-delay: calc(var(--wd) + 1.2s); }
.m-on .wb-svg .node.n3 { animation-delay: calc(var(--wd) + 2.1s); }
.m-on .wb-svg .pen { animation: wb-pen 1.8s cubic-bezier(0.6, 0, 0.3, 1) calc(var(--wd) + 0.4s) both; offset-path: path("M24 92C52 20 96 20 104 60S160 104 178 30"); offset-rotate: 0deg; }
.m-on .wb-svg .sw { animation: wb-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.m-on .wb-svg .sw.s1 { animation-delay: calc(var(--wd) + 2.2s); }
.m-on .wb-svg .sw.s2 { animation-delay: calc(var(--wd) + 2.35s); }
.m-on .wb-svg .sw.s3 { animation-delay: calc(var(--wd) + 2.5s); }
.m-on .wb-svg .aa { animation: wb-fade 0.8s ease calc(var(--wd) + 2.4s) both; }

@keyframes wb-pen {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

.m-on .wb-svg .pen { transform: none; }

/* About page */
.ab-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: clamp(48px, 6vw, 72px) !important;
  padding-bottom: clamp(48px, 6vw, 72px) !important;
}

.ab-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ab-stat b {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ab-stat > span { font-size: 15px; color: var(--stone); }

.ab-locs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ab-loc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(197, 160, 89, 0.12), rgba(197, 160, 89, 0) 60%),
    #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(10, 15, 29, 0.3);
}

.ab-loc h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ab-loc p { margin: 0; color: var(--stone); line-height: 1.6; }
.ab-loc .link { align-self: flex-start; margin-top: 6px; }

@media (max-width: 900px) {
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ab-locs { grid-template-columns: 1fr; }
}

/* the navigation now has more links: keep it on one line on smaller laptops */
@media (min-width: 901px) and (max-width: 1240px) {
  .site-header .nav { gap: 20px; }
  .site-header .nav a:not(.btn) { font-size: 14px; }
  .site-header .brand-tag { display: none; }
}

/* About: founder */
.ab-founder {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.ab-photo {
  position: relative;
  margin: 0;
  max-width: 440px;
}

.ab-photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold);
  border-radius: 24px;
  opacity: 0.55;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s;
}

.m-on .ab-photo:not(.in)::before { transform: translate(-22px, -22px); }

.ab-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
  background: #F1F5F9;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(10, 15, 29, 0.45);
}

.ab-bio .h2 { margin: 0 0 8px; }

.ab-role {
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.ab-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ab-focus li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  background: #FFFDF8;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ab-bio .actions { margin-top: 30px; }

@media (max-width: 860px) {
  .ab-founder { grid-template-columns: 1fr; }
  .ab-photo { max-width: 340px; margin: 0 auto 12px; }
}

/* Hero facts: quiet and understated, but still readable over the video */
.hero-full .facts {
  opacity: 1 !important;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  background: rgba(10, 15, 29, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-shadow: none;
}

.hero-full .fact-num {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: rgba(223, 194, 133, 0.85) !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 700 !important;
}

.hero-full .fact-label {
  color: rgba(226, 232, 240, 0.72) !important;
  font-size: 13px;
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-full .facts { padding: 14px 16px; gap: 14px; }
}

/* Footer contact links with icons */
.foot-nav a.fc {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-nav a.fc i {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 194, 133, 0.25);
  color: #DFC285;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.foot-nav a.fc svg {
  width: 15px;
  height: 15px;
}

.foot-nav a.fc:hover i {
  background: #DFC285;
  color: #0A0F1D;
  transform: translateY(-2px);
}

/* give the contact column room so numbers stay on one line */
@media (min-width: 901px) {
  .foot-nav {
    grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.75fr) minmax(250px, 1.25fr);
    gap: 24px 44px;
    flex-basis: 640px;
  }
}

.foot-nav a.fc span { white-space: nowrap; }

/* ==========================================================================
   About hero: the team works a live project board as you scroll
   s1 board · s2 team online · s3 cards planned · s4–s6 cards move Plan → Build → Launch
   ========================================================================== */
.tw {
  --e: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 12;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius-lg, 22px);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(197, 160, 89, 0.16), rgba(197, 160, 89, 0) 60%),
    linear-gradient(180deg, #FFFFFF, #FBF9F4);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(10, 15, 29, 0.35);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
}

.tw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tw-title { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }

.tw-team { display: flex; align-items: center; }
.tw-team .tw-av { margin-left: -6px; box-shadow: 0 0 0 2px #FFFFFF; }
.tw-team em { margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 600; color: #059669; display: flex; align-items: center; gap: 5px; }
.tw-team em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10B981; animation: st-blink 1.4s ease-in-out infinite; }

.tw-av {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
}

.av-s { background: #0A0F1D; color: #DFC285; }
.av-d { background: #C5A059; }
.av-v { background: #334155; }
.av-m { background: #A07D38; }
.av-a { background: #10B981; }

.tw-board {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tw-col {
  border-radius: 12px;
  background: #F4F1EA;
  padding: 8px;
}

.tw-col span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748B;
}

.tw-col:nth-child(3) span { color: #059669; }

.tw-lanes {
  position: absolute;
  inset: 30px 0 4px;
}

.tw-card {
  --col: 0;
  --row: 0;
  position: absolute;
  left: calc(var(--col) * (100% + 8px) / 3 + 6px);
  top: calc(var(--row) * 25%);
  width: calc((100% - 16px) / 3 - 12px);
  height: calc(25% - 6px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 6px 14px -8px rgba(10, 15, 29, 0.25);
  font-size: clamp(9.5px, 0.78vw, 11.5px);
  transition: left 0.9s var(--e), opacity 0.5s ease, transform 0.5s var(--e), border-color 0.4s ease, background-color 0.4s ease;
}

.tw-card b { flex: 1; min-width: 0; font-weight: 700; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tw-card .tw-av { width: 18px; height: 18px; font-size: 8px; }
.tw-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #CBD5E1; transition: background-color 0.4s ease; }

.tw-ok {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.tw-ok svg { width: 11px; height: 11px; }

.tw-card.c0 { --row: 0; }
.tw-card.c1 { --row: 1; }
.tw-card.c2 { --row: 2; }
.tw-card.c3 { --row: 3; }

/* progress */
.tw-prog {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}

.tw-prog i { position: relative; flex: 1; height: 6px; border-radius: 999px; background: #EEE9DE; overflow: hidden; }
.tw-prog b { position: absolute; inset: 0; border-radius: inherit; background: var(--gold-gradient); transform: scaleX(var(--twp, 1)); transform-origin: left; transition: transform 0.8s var(--e); }
.tw-prog strong { min-width: 34px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* live cursors */
.tw-cur {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

.tw-cur svg { width: 14px; height: 14px; }
.tw-cur span { margin: 12px 0 0 -2px; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #FFFFFF; white-space: nowrap; }
.tw-cur.cu1 svg { fill: #C5A059; } .tw-cur.cu1 span { background: #C5A059; }
.tw-cur.cu2 svg { fill: #334155; } .tw-cur.cu2 span { background: #334155; }
.tw-cur.cu1 { transform: translate(60%, 160%); }
.tw-cur.cu2 { transform: translate(300%, 380%); }

/* chat and launch */
.tw-chat {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 52px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 62%;
}

.tw-chat p {
  margin: 0;
  padding: 8px 11px;
  border-radius: 12px 12px 12px 4px;
  background: #0A0F1D;
  color: #FFFFFF;
  font-size: 11.5px;
  line-height: 1.35;
  box-shadow: 0 12px 24px -12px rgba(10, 15, 29, 0.6);
}

.tw-chat small { display: block; margin-top: 2px; font-size: 9.5px; color: #DFC285; }

.tw-launch {
  position: absolute;
  z-index: 3;
  left: calc(100% / 6 + 6px);
  top: 52%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #0A0F1D;
  font-family: var(--serif);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 18px 30px -14px rgba(160, 125, 56, 0.8);
  transform: translate(-50%, -50%);
}

.tw-launch svg { width: 18px; height: 18px; }

.tw-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tw-confetti b { position: absolute; left: calc(100% / 6 + 6px); top: 52%; width: 7px; height: 7px; border-radius: 2px; background: #C5A059; opacity: 0; }
.tw-confetti b:nth-child(2n) { background: #0A0F1D; border-radius: 50%; }
.tw-confetti b:nth-child(3n) { background: #10B981; }

/* ---- stages (with motion on; otherwise the finished board shows) ---- */
.tw .tw-card { --col: 2; }
.tw .tw-ok { transform: scale(1); }
.tw .tw-card .tw-dot { background: #10B981; }

.m-on .tw .tw-top,
.m-on .tw .tw-board,
.m-on .tw .tw-prog { transition: opacity 0.7s ease, transform 0.8s var(--e); }
.m-on .tw:not(.s1) .tw-top,
.m-on .tw:not(.s1) .tw-board,
.m-on .tw:not(.s1) .tw-prog { opacity: 0; transform: translateY(14px); }

.m-on .tw .tw-team .tw-av { transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s ease; }
.m-on .tw .tw-team .tw-av:nth-child(2) { transition-delay: 0.08s; }
.m-on .tw .tw-team .tw-av:nth-child(3) { transition-delay: 0.16s; }
.m-on .tw .tw-team .tw-av:nth-child(4) { transition-delay: 0.24s; }
.m-on .tw .tw-team .tw-av:nth-child(5) { transition-delay: 0.32s; }
.m-on .tw:not(.s2) .tw-team .tw-av { transform: scale(0); opacity: 0; }
.m-on .tw:not(.s2) .tw-team em { opacity: 0; }
.m-on .tw .tw-team em { transition: opacity 0.4s ease 0.4s; }

.m-on .tw .tw-card { --col: 0; }
.m-on .tw .tw-ok { transform: scale(0); }
.m-on .tw .tw-card .tw-dot { background: #CBD5E1; }
.m-on .tw:not(.s3) .tw-card { opacity: 0; transform: translateY(10px) scale(0.95); }
.m-on .tw.s3 .tw-card.c1 { transition-delay: 0.1s, 0.1s, 0.1s, 0s, 0s; }
.m-on .tw.s3 .tw-card.c2 { transition-delay: 0.2s, 0.2s, 0.2s, 0s, 0s; }
.m-on .tw.s3 .tw-card.c3 { transition-delay: 0.3s, 0.3s, 0.3s, 0s, 0s; }

/* s4: design + dev start building */
.m-on .tw.s4 .tw-card.c0,
.m-on .tw.s4 .tw-card.c1 { --col: 1; }
.m-on .tw.s4 .tw-card.c0 .tw-dot,
.m-on .tw.s4 .tw-card.c1 .tw-dot { background: #C5A059; }

/* s5: brand + website launch, marketing + automation in build */
.m-on .tw.s5 .tw-card.c0,
.m-on .tw.s5 .tw-card.c1 { --col: 2; }
.m-on .tw.s5 .tw-card.c2,
.m-on .tw.s5 .tw-card.c3 { --col: 1; }
.m-on .tw.s5 .tw-card.c2 .tw-dot,
.m-on .tw.s5 .tw-card.c3 .tw-dot { background: #C5A059; }
.m-on .tw.s5 .tw-card.c0 .tw-ok,
.m-on .tw.s5 .tw-card.c1 .tw-ok { transform: scale(1); transition-delay: 0.7s; }
.m-on .tw.s5 .tw-card.c0 .tw-dot,
.m-on .tw.s5 .tw-card.c1 .tw-dot { background: #10B981; }

/* s6: everything launched */
.m-on .tw.s6 .tw-card.c0, .m-on .tw.s6 .tw-card.c1, .m-on .tw.s6 .tw-card.c2, .m-on .tw.s6 .tw-card.c3 { --col: 2; }
.m-on .tw.s6 .tw-card.c2 .tw-ok, .m-on .tw.s6 .tw-card.c3 .tw-ok { transform: scale(1); transition-delay: 0.7s; }
.m-on .tw.s6 .tw-card.c2 .tw-dot, .m-on .tw.s6 .tw-card.c3 .tw-dot { background: #10B981; }
.m-on .tw.s6 .tw-card { border-color: rgba(16, 185, 129, 0.45); }

/* chat bubble during build, launch badge at the end */
.m-on .tw .tw-chat,
.m-on .tw .tw-launch { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
.m-on .tw:not(.s4) .tw-chat,
.m-on .tw.s6 .tw-chat { opacity: 0; transform: translateY(12px) scale(0.9); }
.m-on .tw:not(.s6) .tw-launch { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
.m-on .tw.s6 .tw-launch { transition-delay: 0.8s; }
.m-on .tw.s6 .tw-confetti b { animation: tw-burst 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) 0.9s both; }
.tw-confetti b:nth-child(1) { --tx: -120px; --ty: -70px; --r: 200deg; }
.tw-confetti b:nth-child(2) { --tx: 110px; --ty: -80px; --r: -160deg; }
.tw-confetti b:nth-child(3) { --tx: -150px; --ty: 20px; --r: 120deg; }
.tw-confetti b:nth-child(4) { --tx: 150px; --ty: 30px; --r: -220deg; }
.tw-confetti b:nth-child(5) { --tx: -60px; --ty: -110px; --r: 300deg; }
.tw-confetti b:nth-child(6) { --tx: 70px; --ty: -115px; --r: -280deg; }
.tw-confetti b:nth-child(7) { --tx: -90px; --ty: 70px; --r: 180deg; }
.tw-confetti b:nth-child(8) { --tx: 95px; --ty: 75px; --r: -140deg; }

@keyframes tw-burst {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(1); }
}

/* live cursors wander over the board */
.m-on .tw .tw-cur { opacity: 0; transition: opacity 0.5s ease; }
.m-on .tw.s3 .tw-cur { opacity: 1; }
.m-on .tw.s3 .tw-cur.cu1 { animation: tw-cur1 7s ease-in-out infinite; }
.m-on .tw.s3 .tw-cur.cu2 { animation: tw-cur2 8s ease-in-out 0.6s infinite; }

@keyframes tw-cur1 {
  0%, 100% { transform: translate(60px, 90px); }
  30% { transform: translate(170px, 120px); }
  55% { transform: translate(120px, 190px); }
  80% { transform: translate(250px, 100px); }
}

@keyframes tw-cur2 {
  0%, 100% { transform: translate(330px, 210px); }
  25% { transform: translate(230px, 150px); }
  60% { transform: translate(380px, 120px); }
  85% { transform: translate(280px, 240px); }
}

@media (max-width: 600px) {
  .tw { aspect-ratio: 4 / 3.6; padding: 12px; }
  .tw-team em { display: none; }
  .tw-card .tw-av { display: none; }
  .tw-chat { max-width: 78%; bottom: 44px; }
  .tw-chat p { font-size: 10.5px; }
  .tw-cur.cu2 { display: none; }
}

/* Typeface: Space Grotesk everywhere (closest free match to Styrene) */
:root {
  --serif: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--sans);
}

.display,
.h2,
.sbf-intro-t {
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Hero loading: no old photo, no black flash.
   A still from the hero video shows first; the video fades in once YouTube reports it is playing. */
.hero-full {
  /* same colours as the hero video, so there is no colour jump while it loads */
  background: linear-gradient(180deg, rgb(51, 117, 170) 0%, rgb(67, 157, 231) 55%, rgb(75, 178, 253) 100%) !important;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../images/hero-poster.jpg") center / cover no-repeat;
}

.hero-bg-video {
  transition: opacity 0.9s ease;
}

.js .hero-bg-video:not(.is-playing) {
  opacity: 0;
}

.hero-bg-shade {
  z-index: 1;
}

/* ---------- Services: auto-scrolling reel (loops on its own, pauses on hover) ---------- */
.sb.sb-auto .sb-track { height: auto !important; }
.sb.sb-auto .sb-sticky { position: static; height: auto; overflow: hidden; padding: 6px 0 26px; }

.sb.sb-auto .sb-reel {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: max-content;
  margin: 0;
  padding: 0;
  transform: none;
  animation: sb-loop 70s linear infinite;
}

.sb.sb-auto .sb-reel::before { display: none; }

.sb.sb-auto .sb-row {
  display: flex;
  align-items: stretch;
  gap: 56px;
  padding-right: 56px;
}

.sb.sb-auto .sb-reel:hover,
.sb.sb-auto.sb-hold .sb-reel { animation-play-state: paused; }

@keyframes sb-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sb.sb-auto .sbf {
  width: min(380px, 78vw);
  opacity: 1 !important;
  transform: none !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.sb.sb-auto .sbf .sbf-shot { clip-path: none !important; }
.sb.sb-auto .sbf-shot img { transform: scale(1.04); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

.sb.sb-auto .sbf:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 30px 60px -28px rgba(10, 15, 29, 0.35), 0 0 0 1px rgba(197, 160, 89, 0.25);
}

.sb.sb-auto .sbf:hover .sbf-shot img { transform: scale(1.1); }
.sb.sb-auto .sbf:hover .vf.tl { transform: translate(-3px, -3px); }
.sb.sb-auto .sbf:hover .vf.tr { transform: translate(3px, -3px); }
.sb.sb-auto .sbf:hover .vf.bl { transform: translate(-3px, 3px); }
.sb.sb-auto .sbf:hover .vf.br { transform: translate(3px, 3px); }

/* dashed arrows between every card, including into the loop */
.sb.sb-auto .sb-row > .sbf::after {
  content: "";
  position: absolute;
  top: 40%;
  right: -46px;
  width: 36px;
  height: 10px;
  background:
    linear-gradient(90deg, var(--gold) 50%, transparent 50%) 0 50% / 8px 2px repeat-x,
    linear-gradient(45deg, transparent 45%, var(--gold) 45%, var(--gold) 60%, transparent 60%) 100% 0 / 8px 5px no-repeat,
    linear-gradient(-45deg, transparent 45%, var(--gold) 45%, var(--gold) 60%, transparent 60%) 100% 100% / 8px 5px no-repeat;
  opacity: 0.7;
}

.sb.sb-auto .sb-row > .sbf::before { display: none !important; }

/* soft fade at both edges */
.sb.sb-auto .sb-sticky {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

@media (max-width: 600px) {
  .sb.sb-auto .sb-reel { animation-duration: 55s; }
  .sb.sb-auto .sb-row { gap: 40px; padding-right: 40px; }
  .sb.sb-auto .sb-row > .sbf::after { right: -34px; width: 26px; }
}

/* ---------- Services reel: manual control (drag, swipe, trackpad, buttons) ---------- */
.sb.sb-auto .sb-reel {
  animation: none !important;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  will-change: transform;
}

.sb.sb-auto.sb-dragging .sb-reel { cursor: grabbing; }
.sb.sb-auto.sb-dragging .sbf { transition: none; }
.sb.sb-auto .sbf img { -webkit-user-drag: none; pointer-events: none; }

.sb-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sb-nav { display: flex; gap: 10px; }

.sb-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px -14px rgba(10, 15, 29, 0.4);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.sb-btn svg { width: 17px; height: 17px; }
.sb-btn:hover { background: var(--ink); color: #DFC285; border-color: var(--ink); transform: translateY(-2px); }
.sb-btn:active { transform: scale(0.94); }
.sb-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 600px) {
  .sb-btn { width: 42px; height: 42px; }
  .sb-tools { width: 100%; justify-content: space-between; }
}
.sb.sb-auto .sb-reel a { -webkit-user-drag: none; }

/* no loop: line the first card up with the page content, no trailing arrow after the last card */
.sb.sb-auto .sb-row {
  padding-left: max(24px, calc((100vw - 1144px) / 2));
  padding-right: max(24px, calc((100vw - 1144px) / 2));
}

.sb.sb-auto .sb-row > .sbf:last-child::after { display: none; }

.sb.sb-auto .sb-sticky {
  -webkit-mask-image: none;
  mask-image: none;
}

.sb-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--line);
}

/* normal mouse pointer everywhere */
.m-glow, .m-ring { display: none !important; }
.sb.sb-auto .sb-reel,
.sb.sb-auto.sb-dragging .sb-reel { cursor: auto; }

/* Hero video: only a light shade so the video stays bright */
.hero-bg-shade {
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.12) 0%, rgba(10, 15, 29, 0.22) 100%) !important;
}

/* Logo in the header and footer */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
  flex: none;
}

.foot-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.foot-logo img {
  display: block;
  width: auto;
  height: 42px;
  margin-right: 12px;
}

@media (max-width: 600px) {
  .brand-logo { height: 30px; }
}

/* ---------- Logo: no glow, a quick light flash sweeps across it every 2.5 s ---------- */
.brand,
.foot-logo {
  position: relative;
}

.m-on .brand::before,
.m-on .foot-logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  transform: translateY(-50%);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 40%, rgba(255, 244, 214, 0.95) 50%, rgba(255, 255, 255, 0) 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 150% 0;
  animation: logo-flash 2.5s ease-in-out infinite;
}

.m-on .brand::before {
  width: calc(34px * 108 / 96);
  height: 34px;
  -webkit-mask: url("../../images/brand/azyion-logo-a.png") center / contain no-repeat;
  mask: url("../../images/brand/azyion-logo-a.png") center / contain no-repeat;
}

.m-on .foot-logo::before {
  width: calc(42px * 108 / 96);
  height: 42px;
  -webkit-mask: url("../../images/brand/azyion-logo-a-light.png") center / contain no-repeat;
  mask: url("../../images/brand/azyion-logo-a-light.png") center / contain no-repeat;
}

@keyframes logo-flash {
  0%, 70% { background-position: 150% 0; }
  95%, 100% { background-position: -50% 0; }
}

@media (max-width: 600px) {
  .m-on .brand::before { width: calc(30px * 108 / 96); height: 30px; }
}



/* Footer: company details under the logo */
.foot-brand > p {
  max-width: 400px;
  line-height: 1.65;
}

.foot-facts {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--on-dark-2, #94A3B8);
}

.foot-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-facts svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #DFC285;
}

.foot-cta {
  display: inline-flex;
  width: fit-content;
}

/* ==========================================================================
   Phones & tablets: responsive polish
   ========================================================================== */
/* Service-page tabs: all four visible as a 2x2 grid on phones (no hidden tabs off-screen) */
@media (max-width: 600px) {
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 36px;
    padding-bottom: 14px;
    overflow: visible;
  }
  .tabs [role="tab"] {
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
    font-size: 15px;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
  }
  .tabs [role="tab"][aria-selected="true"] {
    border-color: rgba(197, 160, 89, 0.7);
    background: rgba(197, 160, 89, 0.1);
    box-shadow: 0 8px 20px -16px rgba(10, 15, 29, 0.45);
  }
  .tab-ink { display: none; }
}

/* Long words never push the page sideways on small screens */
@media (max-width: 600px) {
  h1.display, h2.display, h2.h2 { overflow-wrap: break-word; }
}

/* Older iPhones (iOS < 16) don't support overflow: clip, fall back to hidden on the body only */
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

/* Hero video also plays on phones and tablets (it was hidden below 768px) */
@media (max-width: 768px) {
  .hero-bg { overflow: hidden; }
  .hero-bg-video { display: block; }
}
