/* ==========================================================================
   Service pages
   ========================================================================== */
.sv-hero { position: relative; padding-top: calc(var(--nav-h) + 24px); padding-bottom: clamp(32px, 4vw, 56px); overflow: hidden; }
.sv-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sc) 0%, var(--bg) 100%); }
.sv-switch { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px var(--line); margin-bottom: clamp(40px, 6vw, 72px); }
.sv-switch a { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .25s, color .25s; }
.sv-switch a:hover { color: var(--ink); }
.sv-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.sv-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.sv-hero .h-display { margin: 18px 0 20px; font-size: clamp(42px, 5.8vw, 80px); }
.sv-hero .h-display .serif { font-size: 1.08em; }
.sv-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.sv-hero__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.sv-hero__disc { position: absolute; inset: 8%; border-radius: 50%; background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .2); }
.sv-hero__art img { position: relative; width: 92%; height: auto; animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-12px); } }
@media (max-width: 860px) { .sv-hero__grid { grid-template-columns: 1fr; } .sv-hero__art { max-width: 360px; justify-self: center; } }

.sv-head { margin-bottom: clamp(32px, 4vw, 52px); }
.sv-head .h1 { margin-top: 16px; }
.sv-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* What we offer: a clean two-column list, no boxes */
.offer { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); }
.offer__item { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 6px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.offer__item::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--thread); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.offer__item:hover::after { transform: scaleX(1); }
.offer__i { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bc); color: var(--ink); transition: transform .5s var(--ease); }
.offer__i .ico { width: 22px; height: 22px; }
.offer__item:hover .offer__i { transform: rotate(-8deg) scale(1.06); }
.offer__item .h3 { margin: 0; }
.offer__item p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34em; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } .offer__item { grid-template-columns: 52px 1fr; padding: 22px 0; } }
.sv-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 40px; }
.sv-tools > span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.sv-tools .chip { background: #fff; box-shadow: 0 0 0 1px var(--line); }

.sv-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
.sv-card { display: grid; gap: 16px; }
.sv-card__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sv-card__media .vis { transition: transform 1s var(--ease); }
.sv-card:hover .sv-card__media .vis { transform: scale(1.04); }
.sv-card__meta span { color: var(--muted); font-size: 15px; }
.sv-card__meta .h3 { margin-bottom: 4px; }
@media (max-width: 700px) { .sv-work { grid-template-columns: 1fr; } }

.sv-faq { border-top: 1px solid var(--line); }
.sv-faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.sv-deliv { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.sv-deliv li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink); }
.sv-deliv .ico { width: 22px; height: 22px; flex: none; color: var(--ink); padding: 3px; border-radius: 50%; background: var(--sc); }
@media (max-width: 860px) { .sv-faq__grid { grid-template-columns: 1fr; } }

.sv-end { padding-bottom: clamp(88px, 11vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sv-next { display: flex; align-items: center; gap: 20px; padding: 28px 32px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: background .3s; }
.sv-next .h2 { margin-left: auto; }
.sv-next .arrow { width: 28px; height: 28px; transition: transform .4s var(--ease); }
.sv-next:hover { background: var(--soft); }
.sv-next:hover .arrow { transform: translateX(6px); }
@media (max-width: 560px) { .sv-next { flex-wrap: wrap; gap: 8px 16px; padding: 22px 20px; } .sv-next .label { width: 100%; } .sv-next .h2 { margin-left: 0; font-size: clamp(24px, 7.4vw, 32px); } .sv-next .arrow { margin-left: auto; } }

/* ==========================================================================
   The scroll story: one pinned screen, one chapter per stretch of scroll.
   service.js sets .at-k (cumulative), --q (0 → n) and the Muse Thread fill.
   ========================================================================== */
.story { position: relative; height: calc(var(--n) * 85vh + 100vh); }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.story__inner { display: grid; gap: clamp(14px, 2.6vh, 32px); width: 100%; }
.story__top { display: grid; grid-template-columns: 1fr minmax(240px, 36%); align-items: end; gap: 16px 48px; }
.story__top .h2 { margin: 0; max-width: 18em; }
.story__track { display: flex; align-items: center; gap: 14px; padding-bottom: .45em; }
.story__track .thread { flex: 1; height: 3px; }
.story__count { font-size: 14px; color: var(--faint); }
.story__count b { font-weight: 400; color: var(--ink); }
.story__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.story__texts { display: grid; }
.story__ch { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.story__ch.is-past { transform: translateY(-28px); }
.story__ch.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .1s; }
.story__t { margin: 0 0 18px; font-size: clamp(40px, 5vw, 76px); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.story__ch p { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--text); max-width: 26em; }
.story__stage { position: relative; height: min(62vh, 600px); container-type: size; }
.story__stage > * { position: absolute; inset: 0; }
.story__note { margin: 0; font-size: 13px; color: var(--faint); }
.story img { display: block; }

/* ---- Strategy: noise → patterns → one idea → a plan ---- */
.sg__w { position: absolute; left: var(--x0); top: var(--y0); transform: translate(-50%, -50%) rotate(var(--r)); font-size: clamp(14px, 3.6cqmin, 22px); letter-spacing: -.02em; color: var(--muted); white-space: nowrap; padding-bottom: .12em;
  background: var(--thread) no-repeat 0 100% / 0% 2px;
  transition: left 1.1s var(--ease) var(--dl), top 1.1s var(--ease) var(--dl), transform 1.1s var(--ease) var(--dl), opacity .6s, color .4s, background-size .8s var(--ease) .2s;
  animation: sgDrift 5s ease-in-out infinite alternate; animation-delay: calc(var(--dl) * -10); }
@keyframes sgDrift { to { translate: 0 -8px; } }
.at-1 .sg__w { opacity: .3; }
.at-1 .sg__w.is-hot { opacity: 1; color: var(--ink); background-size: 100% 2px; }
.at-2 .sg__w { left: var(--x1); top: var(--y1); transform: translate(-50%, -50%); opacity: .85; animation: none; }
.sg__g { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); opacity: 0; transition: opacity .6s .5s; white-space: nowrap; }
.at-2 .sg__g { opacity: 1; }
.at-3 .sg__w, .at-3 .sg__w.is-hot, .at-3 .sg__g { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.5); transition-delay: 0s; }
.sg__idea { position: absolute; inset: auto 4% auto; top: 50%; margin: 0; text-align: center; font-family: var(--serif); font-size: clamp(26px, 7.4cqmin, 54px); line-height: 1.08; letter-spacing: -.01em; opacity: 0; transform: translateY(-30%); transition: opacity .7s var(--ease) .3s, transform 1s var(--ease); }
.sg__idea em { padding-bottom: .04em; background: var(--thread) no-repeat 0 100% / 0% .08em; transition: background-size 1s var(--ease) .8s; }
.at-3 .sg__idea { opacity: 1; transform: translateY(-50%); }
.at-3 .sg__idea em { background-size: 100% .08em; }
.at-4 .sg__idea { transform: translateY(-115%); }
.sg__plan { position: absolute; left: 4%; right: 4%; top: 64%; opacity: 0; transition: opacity .6s; }
.sg__plan .thread { --p: 0; height: 3px; margin: 0 12.5%; }
.sg__plan .thread > i { transition: transform 1.4s var(--ease) .2s; }
.sg__plan ol { list-style: none; margin: -9px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.sg__plan li { display: grid; justify-items: center; gap: 10px; font-size: clamp(12px, 3cqmin, 15px); color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.sg__plan li i { width: 15px; height: 15px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.at-4 .sg__plan { opacity: 1; }
.at-4 .sg__plan .thread { --p: 1; }
.at-4 .sg__plan li { opacity: 1; transform: none; }
.at-4 .sg__plan li:nth-child(2) { transition-delay: .4s; } .at-4 .sg__plan li:nth-child(3) { transition-delay: .7s; } .at-4 .sg__plan li:nth-child(4) { transition-delay: 1s; }
.at-4 .sg__plan li:first-child { transition-delay: .1s; }

/* ---- Branding: grid → mark → palette → voice → the world ---- */
.bd__grid { position: absolute; left: 50%; top: 50%; width: 80cqmin; height: 80cqmin; transform: translate(-50%, -50%); fill: none; stroke: var(--line-2); stroke-width: .6; transition: opacity .8s; }
.bd__grid * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.bd__grid path { stroke-dasharray: .02 .015; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s .6s; }
.is-in .bd__grid * { stroke-dashoffset: 0; }
.is-in .bd__grid path { opacity: 1; }
.at-2 .bd__grid { opacity: .5; }
.bd__mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform 1s var(--ease), opacity .6s; }
.bd__icon { width: 30cqmin; height: 30cqmin; border-radius: 26%; box-shadow: 0 24px 50px -20px rgba(2, 38, 46, .5); opacity: 0; transform: scale(.5) rotate(-14deg); transition: opacity .6s, transform 1s var(--ease); }
.at-1 .bd__icon { opacity: 1; transform: rotate(-4deg); }
.bd__logo { position: absolute; left: 50%; top: calc(100% + 5cqmin); width: 40cqmin; height: auto; opacity: 0; transform: translate(-50%, 12px); transition: opacity .6s .2s, transform .8s var(--ease) .2s; }
.at-3 .bd__mark { transform: translate(-50%, -66%); }
.at-3 .bd__logo { opacity: 1; transform: translate(-50%, 0); }
.bd__dot { position: absolute; left: 50%; top: 50%; width: 7.5cqmin; height: 7.5cqmin; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 10px 20px -10px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))) scale(0); transition: transform 1s var(--ease) calc(var(--k) * 70ms), opacity .6s; }
.at-2 .bd__dot { transform: translate(-50%, -50%) rotate(var(--a)) translateX(38cqmin) rotate(calc(-1 * var(--a))) scale(1); }
.bd__word { position: absolute; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 6cqmin, 40px); color: var(--ink); opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .8s var(--ease); }
.bd__word--0 { left: 0; top: 10%; }
.bd__word--1 { right: 0; top: 46%; transition-delay: .2s; }
.bd__word--2 { left: 4%; bottom: 8%; transition-delay: .4s; }
.at-3 .bd__word { opacity: 1; transform: none; }
.at-4 .bd__mark, .at-4 .bd__dot, .at-4 .bd__word, .at-4 .bd__grid { opacity: 0; transition-delay: 0s; }
.bd__ph { position: absolute; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 30px 60px -28px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .7s, transform 1.1s var(--ease); }
.bd__ph--0 { left: 0; top: 10%; width: 58%; aspect-ratio: 4 / 3; transform: translateY(40px) rotate(-10deg); }
.bd__ph--1 { right: 2%; top: 0; width: 34%; aspect-ratio: 3 / 4; transform: translateY(40px) rotate(12deg); transition-delay: .15s; }
.bd__ph--2 { left: 24%; bottom: 0; width: 52%; aspect-ratio: 3 / 2; transform: translateY(40px) rotate(-4deg); transition-delay: .3s; }
.at-4 .bd__ph { opacity: 1; }
.at-4 .bd__ph--0 { transform: rotate(-5deg); }
.at-4 .bd__ph--1 { transform: rotate(5deg); }
.at-4 .bd__ph--2 { transform: rotate(-1deg); }

/* ---- Web: map → wireframe → design → phone → live ---- */
.wb__browser { position: absolute; left: 0; top: 4%; width: 92%; height: calc(92cqw / 1.6 + 30px); max-height: 86%; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -32px rgba(0, 0, 0, .35); overflow: hidden; display: flex; flex-direction: column; transition: transform 1s var(--ease); }
.wb__bar { flex: none; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F4F4F2; border-bottom: 1px solid var(--line); }
.wb__bar > i { width: 9px; height: 9px; border-radius: 50%; background: #DCDCD8; }
.wb__url { position: relative; margin: 0 auto; width: 150px; height: 18px; font-size: 11px; color: var(--muted); }
.wb__url b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 400; transition: opacity .5s; }
.wb__u1 { opacity: 0; color: var(--ink); }
.wb__u1 s { width: 7px; height: 7px; border-radius: 50%; background: #2BB673; margin-right: 6px; box-shadow: 0 0 0 3px rgba(43, 182, 115, .2); }
.at-4 .wb__u0 { opacity: 0; } .at-4 .wb__u1 { opacity: 1; }
.wb__view { position: relative; flex: 1; overflow: hidden; background: #FBFBF9; }
.wb__map { position: absolute; inset: 6%; transition: opacity .6s; }
.wb__map svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line-2); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wb__map path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.is-in .wb__map path { stroke-dashoffset: 0; }
.wb__map span { position: absolute; transform: translate(-50%, -50%) scale(.8); white-space: nowrap; font-size: clamp(10px, 2.4cqw, 13px); padding: .5em .9em; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line-2); opacity: 0; transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(var(--k) * 90ms + .2s); }
.wb__map span:first-of-type { background: var(--ink); color: #fff; box-shadow: none; }
.is-in .wb__map span { opacity: 1; transform: translate(-50%, -50%); }
.at-1 .wb__map { opacity: 0; }
.wb__wire { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.wb__wire i { position: absolute; border-radius: 6px; background: #E9E9E5; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.at-1 .wb__wire { opacity: 1; }
.at-1 .wb__wire i { transform: none; }
.w-nav { top: 5%; left: 5%; right: 5%; height: 7%; }
.w-h1 { top: 20%; left: 8%; width: 52%; height: 10%; transition-delay: .1s !important; }
.w-h2 { top: 34%; left: 8%; width: 36%; height: 5%; transition-delay: .2s !important; }
.w-search { top: 46%; left: 8%; right: 28%; height: 10%; border-radius: 999px !important; background: #DEDED9 !important; transition-delay: .3s !important; }
.w-c1, .w-c2, .w-c3 { top: 64%; height: 30%; width: 26%; transition-delay: .4s !important; }
.w-c1 { left: 8%; } .w-c2 { left: 37%; } .w-c3 { left: 66%; }
.wb__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1); }
.at-2 .wb__shot { clip-path: inset(0 0 0 0); }
.at-3 .wb__browser { transform: scale(.94) translate(-3%, -2%); }
.wb__phone { position: absolute; inset: auto 0 0 auto; height: 74%; aspect-ratio: 1170 / 2532; padding: 6px; border-radius: 26px; background: #111; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); opacity: 0; transform: translate(30%, 12%) rotate(12deg); transition: opacity .6s, transform 1.1s var(--ease); }
.wb__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.at-3 .wb__phone { opacity: 1; transform: rotate(4deg); }
.wb__toast { position: absolute; inset: auto auto 4% 4%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #fff; font-size: 14px; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -18px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(16px); transition: opacity .5s .3s, transform .7s var(--ease) .3s; }
.wb__toast i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2BB673; color: #fff; font-style: normal; font-size: 12px; }
.at-4 .wb__toast { opacity: 1; transform: none; }

/* ---- Marketing: idea → feed → in their language → measured ---- */
.mk__phone { position: absolute; z-index: 2; left: 50%; top: 50%; height: 96%; aspect-ratio: 9 / 19; padding: 8px; border-radius: 34px; background: #111; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); transform: translate(-50%, -50%); }
.mk__screen { position: relative; height: 100%; border-radius: 27px; overflow: hidden; background: #fff; }
.mk__idea { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; padding: 14%; font-size: clamp(22px, 6.4cqmin, 38px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; transition: opacity .5s; }
.mk__idea em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.mk__idea i { display: inline-block; width: 2px; height: .9em; margin-left: 4px; vertical-align: -.1em; background: #FF9BC4; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.at-1 .mk__idea { opacity: 0; }
.mk__feed { position: absolute; left: 0; right: 0; top: 0; padding: 12px 10px; display: grid; gap: 14px; opacity: 0; transform: translateY(calc(clamp(0, var(--q, 0) - 1, 1.5) * -46%)); transition: opacity .5s; }
.at-1 .mk__feed { opacity: 1; }
.mk__feed figure { margin: 0; display: grid; gap: 7px; }
.mk__feed span { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; color: var(--ink); }
.mk__feed span b { width: 16px; height: 16px; border-radius: 50%; background: var(--thread); }
.mk__feed img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.mk__float { position: absolute; z-index: 1; width: 25cqmin; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .4); opacity: 0; transform: scale(.4); transition: opacity .6s, transform 1s var(--ease); }
.mk__float--0 { left: 2%; top: 4%; } .mk__float--1 { left: 0; top: 38%; transition-delay: .1s; } .mk__float--2 { left: 5%; bottom: 3%; transition-delay: .2s; }
.mk__float--3 { right: 2%; top: 2%; transition-delay: .05s; } .mk__float--4 { right: 0; top: 37%; transition-delay: .15s; } .mk__float--5 { right: 5%; bottom: 4%; transition-delay: .25s; }
.at-2 .mk__float { opacity: 1; }
.at-2 .mk__float--0 { transform: rotate(-8deg); } .at-2 .mk__float--1 { transform: rotate(4deg); } .at-2 .mk__float--2 { transform: rotate(-3deg); }
.at-2 .mk__float--3 { transform: rotate(7deg); } .at-2 .mk__float--4 { transform: rotate(-5deg); } .at-2 .mk__float--5 { transform: rotate(4deg); }
.at-3 .mk__float { opacity: .35; }
.mk__chart { position: absolute; z-index: 3; left: 0; top: 10%; width: 100%; height: 80%; fill: none; stroke: url(#mkThread); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0; transition: opacity .4s; }
.at-3 .mk__chart { opacity: 1; }
.mk__chart path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); filter: drop-shadow(0 6px 10px rgba(255, 155, 196, .45)); }
.at-3 .mk__chart path { stroke-dashoffset: 0; }

@media (max-width: 560px) {
  .sg__w { left: var(--xm); top: var(--ym); font-size: 13px; }
  .at-2 .sg__w { left: var(--x1); top: var(--y1); }
  .at-3 .sg__w, .at-3 .sg__w.is-hot { left: 50%; top: 50%; }
}
@media (max-width: 860px) {
  .story { height: calc(var(--n) * 75vh + 100vh); }
  .story__top { grid-template-columns: 1fr; gap: 12px; }
  .story__top .h2 { font-size: clamp(24px, 6.4vw, 34px); }
  .story__grid { grid-template-columns: 1fr; gap: 16px; }
  .story__stage { order: -1; height: min(40svh, 380px); }
  .story__t { font-size: clamp(30px, 8.6vw, 46px); margin-bottom: 10px; }
  .story__ch p { font-size: 15px; }
  .story__note { font-size: 12px; }
}
@media (max-height: 700px) and (min-width: 861px) { .story__stage { height: 54vh; } .story__t { font-size: clamp(36px, 4vw, 56px); } }

/* ---- Icons and colour in the story ---- */
.story__k { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story__k .ico { width: 40px; height: 40px; padding: 9px; border-radius: 13px; background: var(--bc); color: var(--ink); transform: rotate(-6deg) scale(.8); transition: transform .8s var(--ease) .15s; }
.story__ch.is-on .story__k .ico { transform: rotate(-6deg); }
.story__k b { font-weight: 400; }
.story__stage::before { content: ''; position: absolute; inset: 10% 8%; border-radius: 50%; background: var(--thread); filter: blur(80px); opacity: .16; transform: rotate(calc(var(--q, 0) * 40deg)); pointer-events: none; }

/* ---- Web: Arabic, search, the system behind it ---- */
.wb__ar { position: absolute; z-index: 3; inset: auto auto 16% 6%; width: min(62%, 330px); padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -26px rgba(0, 0, 0, .35); display: grid; gap: 6px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .8s var(--ease); }
.wb__ar strong { font-size: clamp(20px, 4.4cqw, 28px); font-weight: 600; line-height: 1.2; }
.wb__ar p { margin: 0; font-size: 14px; color: var(--muted); }
.wb__switch { justify-self: start; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); font-size: 12px; margin-bottom: 6px; }
.wb__switch b { padding: 4px 10px; border-radius: 999px; font-weight: 500; color: var(--muted); }
.wb__switch .is-on { background: var(--ink); color: #fff; }
.at-4 .wb__ar { opacity: 1; transform: none; }
.at-5 .wb__ar { opacity: 0; transform: translateY(-20px); }
.at-5 .wb__browser, .at-5 .wb__phone { opacity: .12; }
.at-7 .wb__browser, .at-7 .wb__phone { opacity: 1; }
.wb__browser { transition: transform 1s var(--ease), opacity .6s; }
.wb__serp, .wb__crm { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(92%, 520px); opacity: 0; transform: translate(-50%, -44%); transition: opacity .5s, transform .8s var(--ease); pointer-events: none; }
.wb__serp { display: grid; gap: 14px; }
.wb__q { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 36px -20px rgba(0, 0, 0, .3); font-size: 16px; }
.wb__q .ico { width: 20px; height: 20px; color: var(--muted); }
.wb__res { padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; }
.wb__res small { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.wb__res small i { width: 18px; height: 18px; border-radius: 50%; background: #1F1712; }
.wb__res b { font-size: 18px; font-weight: 500; color: #1A47B8; }
.wb__res p { margin: 0; font-size: 14px; color: var(--muted); }
.wb__res--ghost { gap: 8px; opacity: .6; }
.wb__res--ghost i { height: 10px; border-radius: 6px; background: var(--soft-2); }
.wb__res--ghost i:nth-child(2) { width: 70%; } .wb__res--ghost i:nth-child(3) { width: 85%; }
.at-5 .wb__serp { opacity: 1; transform: translate(-50%, -50%); }
.at-6 .wb__serp { opacity: 0; transform: translate(-50%, -58%); }
.wb__crm { padding: 18px; border-radius: 18px; background: #0E1F1C; color: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); display: grid; gap: 14px; }
.crm__top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.crm__top b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.crm__top .ico { width: 20px; height: 20px; color: #C8F224; }
.crm__top span { color: rgba(255, 255, 255, .5); }
.crm__pace { display: grid; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.crm__pace .thread { --p: 0; height: 6px; background: rgba(255, 255, 255, .1); }
.crm__pace .thread > i { transition: transform 1.6s var(--ease) .3s; }
.at-6 .crm__pace .thread { --p: .72; }
.crm__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crm__col { display: grid; align-content: start; gap: 8px; }
.crm__col h4 { margin: 0 0 2px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.crm__col h4 em { font-style: normal; color: #C8F224; }
.crm__card { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 12px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease); transition-delay: calc(var(--k) * 90ms + .3s); }
.crm__card.is-warn { background: rgba(245, 166, 35, .2); color: #F5C26B; }
.crm__card.is-done { background: rgba(200, 242, 36, .14); color: #DDF57A; }
.at-6 .wb__crm { opacity: 1; transform: translate(-50%, -50%); }
.at-6 .crm__card { opacity: 1; transform: none; }
.at-7 .wb__crm { opacity: 0; transform: translate(-50%, -58%); }
.at-4 .wb__u0 { opacity: 1; } .at-4 .wb__u1 { opacity: 0; } .at-4 .wb__toast { opacity: 0; }
.at-7 .wb__u0 { opacity: 0; } .at-7 .wb__u1 { opacity: 1; } .at-7 .wb__toast { opacity: 1; transform: none; }
@media (max-width: 560px) { .crm__card { font-size: 10px; padding: 8px; } .wb__crm { padding: 14px; } .wb__res b { font-size: 15px; } .wb__ar { inset: auto auto 6% 4%; } }
