/* ==========================================================================
   CIPHER — polish layer (loaded last)
   Real-project case studies, "your project next" card, technology marquee,
   brand-logo element and small production fixes.
   ========================================================================== */

/* <cipher-logo> expands to an inline SVG (assets/js/logo.js) — keep layout as if the SVG were inline */
cipher-logo { display: contents; }

/* ---------- section shell ---------- */
.cs-sec { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%); }
.cs-sec .fw-head { margin-bottom: clamp(28px, 3.4vw, 46px); }
.cs-list { display: grid; gap: clamp(18px, 2vw, 26px); }
.work-sec .cs-list { margin-top: clamp(8px, 1.5vw, 20px); }

/* ---------- case study card ---------- */
.cs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "info stage"; border-radius: 36px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #ffffff 0%, #f3f7ff 100%);
  box-shadow: 0 60px 100px -70px rgba(10, 26, 74, .6), 0 0 0 1px rgba(47, 111, 232, .12), inset 0 0 0 1px #fff; }
.cs[hidden] { display: none; }

.cs-stage { grid-area: stage; position: relative; display: grid; place-items: center; min-height: 100%; padding: clamp(56px, 5vw, 76px) clamp(18px, 3vw, 44px) clamp(40px, 4vw, 60px); overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 80% at 70% 15%, #1f56d6 0%, #0a1a4a 52%, #040c26 100%); }
.cs-grid { position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(92, 217, 247, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 217, 247, .09) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 45%, #000 30%, transparent 100%); }
.cs-glow { position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; left: 10%; bottom: -45%; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 217, 247, .38), transparent); }
.cs-dev { width: 100%; max-width: 640px; }
.cs-stage .fw-dev { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.cs:hover .cs-stage .fw-dev { transform: translateY(-8px); }
.cs-stage .fw-base { background: linear-gradient(#e9eff9, #9fb1d1); }

.cs-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font: 600 12.5px/1 var(--font-head); color: #fff; white-space: nowrap;
  background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 16px 32px -16px rgba(0, 0, 0, .6); }
.cs-float svg { width: 14px; height: 14px; color: var(--sky-300); }
.cs-float.f1 { top: 20px; inset-inline-end: 20px; font-family: var(--font-mono); }
.cs-float.f2 { bottom: 20px; inset-inline-start: 20px; }
.cs-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: csPulse 2s ease-out infinite; }
@keyframes csPulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.cs-info { grid-area: info; display: grid; align-content: center; justify-items: start; gap: 18px; padding: clamp(26px, 3.6vw, 52px); }
.cs-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cs-num { font: 800 48px/1 var(--font-mono); color: transparent; -webkit-text-stroke: 1.5px rgba(47, 111, 232, .28); }
.cs-title { margin: 0; font: 800 clamp(25px, 2.5vw, 36px)/1.3 var(--font-head); color: var(--navy-800); text-wrap: balance; }
.cs-title a { transition: color .25s; }
.cs-title a:hover { color: var(--blue-600); }
.cs-sum { color: var(--text-2); font-size: 16.5px; line-height: 1.85; max-width: 60ch; }
.cs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; }
.cs-facts div { padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -20px rgba(10, 26, 74, .5); }
.cs-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cs-facts dt svg { width: 14px; height: 14px; color: var(--blue-500); }
.cs-facts dd { margin: 4px 0 0; font: 700 14.5px/1.45 var(--font-head); color: var(--navy-800); }
.cs-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; width: 100%; }
.cs-feat li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.cs-feat svg { flex: none; width: 20px; height: 20px; padding: 3px; margin-top: 2px; border-radius: 7px; color: #fff; background: var(--grad-brand); }
.cs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cs-svcs { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-svcs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font: 600 13px/1.4 var(--font-head); color: var(--navy-800); background: rgba(47, 111, 232, .08); transition: background .25s, color .25s; }
.cs-svcs a:hover { background: var(--navy-800); color: #fff; }
.cs-svcs svg { width: 15px; height: 15px; color: var(--blue-500); }
.cs-svcs a:hover svg { color: var(--sky-300); }
.cs-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-tech li { padding: 5px 11px; border-radius: 999px; font: 600 12px/1.4 var(--font-mono); color: #1f56d6; background: #fff; box-shadow: inset 0 0 0 1px rgba(47, 111, 232, .2); }
.cs-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cs-btns .btn { min-height: 50px; }

/* ---------- "your project next" card ---------- */
.cs-next { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px); border-radius: 30px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, rgba(255, 255, 255, .85), rgba(234, 242, 255, .85)); border: 2px dashed rgba(47, 111, 232, .32);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .45s; }
.cs-next::before { content: ""; position: absolute; z-index: -1; inset: -40% auto -40% -10%; width: 45%; background: radial-gradient(closest-side, rgba(92, 217, 247, .22), transparent); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.cs-next:hover { transform: translateY(-4px); border-color: var(--blue-500); box-shadow: 0 34px 60px -40px rgba(31, 86, 214, .55); }
.cs-next:hover::before { transform: translateX(-40%); }
.cs-next-ic { position: relative; width: 66px; height: 66px; display: grid; place-items: center; color: #fff; }
.cs-next-ic i { position: absolute; inset: 0; background: var(--grad-brand); clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.cs-next-ic::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(47, 111, 232, .4); animation: csSpin 14s linear infinite; }
.cs-next-ic svg { position: relative; width: 28px; height: 28px; }
@keyframes csSpin { to { transform: rotate(360deg); } }
.cs-next-t { display: grid; gap: 4px; }
.cs-next-t small { font: 700 12.5px/1.4 var(--font-head); color: var(--blue-600); letter-spacing: .02em; }
.cs-next-t b { font: 800 clamp(19px, 1.9vw, 25px)/1.35 var(--font-head); color: var(--navy-800); }
.cs-next-t > span { color: var(--text-2); font-size: 15px; line-height: 1.75; max-width: 62ch; }
.cs-next-btn { white-space: nowrap; }

/* ---------- technologies marquee ---------- */
.stack-sec { overflow: hidden; background: var(--surface); border-top: 1px solid var(--line); }
.stack-sec .section-head { margin-bottom: 0; }
.stk { direction: ltr; display: grid; gap: 14px; margin-top: clamp(30px, 4vw, 50px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.stk-row { display: flex; width: max-content; direction: ltr; }
.stk-track { display: flex; gap: 14px; padding-inline-end: 14px; animation: stkMove 46s linear infinite; }
.stk-row.rev .stk-track { animation-direction: reverse; animation-duration: 52s; }
.stk:hover .stk-track { animation-play-state: paused; }
@keyframes stkMove { to { transform: translateX(-100%); } }
.stk li { display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px 11px 12px; border-radius: 18px; white-space: nowrap;
  font: 600 15px/1 var(--font-mono); color: var(--navy-800);
  background: linear-gradient(160deg, #fff, #f4f8ff); box-shadow: 0 16px 30px -26px rgba(10, 26, 74, .55), inset 0 0 0 1px var(--line); }
.stk-m { display: grid; place-items: center; min-width: 36px; height: 36px; padding-inline: 6px; border-radius: 11px; font: 800 13px/1 var(--font-mono); letter-spacing: -.02em;
  color: var(--tc, var(--blue-600)); background: color-mix(in srgb, var(--tc, #2f6fe8) 12%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc, #2f6fe8) 22%, transparent); }

/* ---------- project page: status dot ---------- */
.pd-live { display: inline-flex; align-items: center; gap: 7px; color: #15803d; }
.pd-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: csPulse 2s ease-out infinite; }

/* ---------- contact cards: show the real value + a hint ---------- */
.c-card small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cs { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "info"; border-radius: 30px; }
  .cs-stage { min-height: 0; }
}
@media (max-width: 640px) {
  .cs { border-radius: 26px; }
  .cs-stage { padding: 58px 12px 34px; }
  .cs-float { font-size: 11.5px; padding: 7px 12px; }
  .cs-float.f1 { top: 14px; inset-inline-end: 14px; }
  .cs-float.f2 { bottom: 12px; inset-inline-start: 14px; }
  .cs-info { gap: 15px; padding: 22px 18px 24px; }
  .cs-num { font-size: 36px; }
  .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-facts div:first-child { grid-column: 1 / -1; }
  .cs-feat { grid-template-columns: minmax(0, 1fr); }
  .cs-btns { width: 100%; }
  .cs-btns .btn { flex: 1 1 100%; justify-content: center; }
  .cs-next { grid-template-columns: auto minmax(0, 1fr); border-radius: 24px; padding: 20px 18px; }
  .cs-next-ic { width: 52px; height: 52px; }
  .cs-next-ic svg { width: 22px; height: 22px; }
  .cs-next-btn { grid-column: 1 / -1; justify-content: center; }
  .stk li { font-size: 13.5px; padding: 9px 16px 9px 10px; }
  .stk-m { min-width: 32px; height: 32px; font-size: 12px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .stk-track { animation: none; }
  .stk-row { width: auto; flex-wrap: wrap; justify-content: center; }
  .stk-track { flex-wrap: wrap; justify-content: center; padding: 0; }
  .stk-track[aria-hidden] { display: none; }
  .stk { -webkit-mask-image: none; mask-image: none; padding-inline: 20px; }
  .cs-live, .pd-live i, .cs-next-ic::after { animation: none; }
}

/* ---------- section rhythm fixes ---------- */
.work-sec { padding-bottom: clamp(60px, 7.5vw, 104px); }
.stack-sec { background: var(--bg); }
.stack-sec + .has-sdiv { background: var(--surface); }

/* contact hero chat: messages are revealed by animation — show them statically when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .cb-body .m { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ==========================================================================
   Loader & page transition — v16 "brand curtain"
   A navy curtain slides up over the page on navigation and lifts away on the
   next page. First visit: the full logo assembles on the same curtain.
   No counters / percentages; an indeterminate ring or line only.
   (Overrides the older v15 circle-wipe rules in style.css.)
   ========================================================================== */
.preloader, .pt {
  background: radial-gradient(80% 70% at 50% 42%, #12286b 0%, #071338 55%, #040c26 100%) !important;
  clip-path: none !important; will-change: transform;
}
.preloader::after, .pt::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #5cd9f7 25%, #4f97f3 75%, transparent); box-shadow: 0 0 18px rgba(92, 217, 247, .85); }
.pt::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #5cd9f7 25%, #4f97f3 75%, transparent); box-shadow: 0 0 18px rgba(92, 217, 247, .85); }

/* states — the base state has no transition so the curtain never sweeps back across the page */
.pt { visibility: hidden; transform: translate3d(0, 100%, 0); transition: none !important; }
.pt.out { visibility: visible; pointer-events: auto; transform: none; transition: transform .5s cubic-bezier(.76, 0, .24, 1) !important; }
html.pt-cover .pt { visibility: visible; transform: none; transition: none !important; }
.pt.in { visibility: visible; transform: translate3d(0, -100%, 0); transition: transform .7s cubic-bezier(.76, 0, .24, 1) !important; }
.preloader { transform: none; transition: transform .85s cubic-bezier(.76, 0, .24, 1) !important; }
.preloader.done { transform: translate3d(0, -100%, 0); }

/* stage */
.ld { gap: clamp(26px, 4vh, 40px) !important; }
.ld-box, .ld-meta, .ld-c, .ld-scan, .ld-pct, .ld-shine { display: none !important; }
.ld-grid { background-image: radial-gradient(rgba(92, 217, 247, .2) 1.2px, transparent 1.3px) !important; }
.ld-glow { opacity: .55 !important; }
.ld-glow.g1 { background: radial-gradient(closest-side, rgba(47, 111, 232, .55), transparent) !important; }
.ld-glow.g2 { background: radial-gradient(closest-side, rgba(92, 217, 247, .3), transparent) !important; }
/* content lags behind the curtain for a subtle parallax */
.pt .ld, .preloader .ld { transition: transform .7s cubic-bezier(.76, 0, .24, 1), opacity .45s ease; }
.pt.in .ld, .preloader.done .ld { transform: translate3d(0, 22vh, 0); opacity: 0; }
.pt.out .ld-mark { animation: ldRise .55s cubic-bezier(.22, 1, .36, 1) .18s both; }
@keyframes ldRise { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }

.ld-logo { width: clamp(220px, 28vw, 400px) !important; filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .35)) !important; }
.ld-line { position: relative; width: clamp(120px, 11vw, 170px); height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .12);
  opacity: 0; animation: ldFade .4s ease .7s forwards; }
.ld-line i { position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; border-radius: inherit; background: linear-gradient(90deg, transparent, #5cd9f7, transparent); animation: ldLine 1.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ldLine { to { left: 100%; } }

.ld-mark { position: relative; width: clamp(112px, 10vw, 140px); aspect-ratio: 1; display: grid; place-items: center; }
.ld-mark svg.blogo { width: 62%; height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .4)); }
.ld-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: ldSpin 1.1s linear infinite; }
.ld-ring circle { fill: none; stroke-width: 2; }
.ld-ring .t { stroke: rgba(255, 255, 255, .1); }
.ld-ring .a { stroke: #5cd9f7; stroke-linecap: round; stroke-dasharray: 70 219; filter: drop-shadow(0 0 4px rgba(92, 217, 247, .85)); }
@keyframes ldSpin { to { transform: rotate(360deg); } }

/* keep the transition stage idle while hidden (cheap) */
html:not(.pt-cover) .pt:not(.out):not(.in) .ld * { animation-play-state: paused !important; }
html.pt-cover .pt .ld *, .pt.out .ld *, .pt.in .ld * { animation-play-state: running !important; }
.preloader.done { clip-path: none !important; }
/* first-visit logo: assemble in ~1s, then hold */
.preloader svg.blogo.ldl .pi { animation: ldPi .55s cubic-bezier(.22, 1, .36, 1) both !important; animation-delay: calc(.08s + var(--i) * 28ms) !important; }
.preloader svg.blogo.ldl .pw { animation: ldPw .5s cubic-bezier(.22, 1, .36, 1) both !important; animation-delay: calc(.3s + (var(--i) - 14) * 28ms) !important; }

/* toast: fully hidden while idle (it used to sit just below the screen, visible in over-scroll bounce) */
.toast { visibility: hidden; transition: transform .5s var(--ease-out), visibility 0s .5s; }
.toast.show { visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }

/* =====================================================================
   v17 — home services explorer: one deliberate layout per screen size
   ≥1181      list | card | scene · actions under the card · features bar
   901–1180   3×3 service picker · card | scene · actions · features bar
   ≤900       3×3 labelled picker · scene + card panel · actions · features
   ===================================================================== */
.svx-item .sh { display: none; }

/* ---------- desktop & laptop ---------- */
@media (min-width: 1181px) {
  .svx-sec .svx { grid-template-columns: clamp(280px, 23vw, 318px) minmax(0, 1fr) minmax(0, 1.18fr) !important;
    grid-template-rows: auto auto 1fr auto !important;
    grid-template-areas: "head head head" "list card stage" "list btns stage" "feats feats feats" !important; }
  .svx-sec .svx-stage.sx { grid-area: stage !important; align-self: center !important; }
  .svx-sec .svx-feats { grid-area: feats !important; margin: 14px 0 0 !important; padding: 14px 20px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; justify-content: stretch !important; }
  .svx-sec .svx-feats li { justify-content: center !important; }
  .svx-sec .svx-feats li span { font-size: 15px; }
}
@media (min-width: 1181px) and (max-width: 1300px) {
  .svx-sec .svx-item .tx { font-size: 14px; }
  .svx-sec .svx-card { padding: 28px 26px 24px !important; }
}

/* ---------- small laptop & tablet landscape ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .svx-sec .svx { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important; grid-template-rows: auto !important;
    grid-template-areas: "head head" "list list" "card stage" "btns stage" "feats feats" !important;
    column-gap: clamp(20px, 2.4vw, 32px) !important; row-gap: 18px !important; }
  .svx-sec .svx-list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; padding: 8px !important; margin: 0 0 6px !important; }
  .svx-sec .svx-item { min-height: 50px !important; padding: 6px 10px !important; overflow: hidden; }
  .svx-sec .svx-item .tx { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
  .svx-sec .svx-card { min-height: 360px !important; padding: 28px 26px 24px !important; align-self: stretch !important; }
  .svx-sec .svx-card h3 { font-size: clamp(24px, 2.6vw, 30px) !important; }
  .svx-sec .svx-btns { align-self: start !important; }
  .svx-sec .svx-stage.sx { grid-area: stage !important; grid-row: auto !important; align-self: center !important; width: 100% !important; aspect-ratio: 1 / .86 !important; }
  .svx-sec .svx-feats { grid-area: feats !important; margin: 10px 0 0 !important; padding: 12px 16px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; justify-content: stretch !important; }
  .svx-sec .svx-feats li { justify-content: center !important; }
  .svx-sec .svx-feats li span { font-size: 14px; }
}

/* ---------- tablet portrait & phone ---------- */
@media (max-width: 900px) {
  .svx-sec .svx-list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important;
    width: 100% !important; max-width: 600px !important; justify-self: center !important; margin: 0 0 20px !important; padding: 0 !important; }
  .svx-sec .svx-item { width: auto !important; height: auto !important; min-height: 54px !important; padding: 8px 12px !important;
    display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important; text-align: start; }
  .svx-sec .svx-item .ic { width: 32px !important; height: 32px !important; flex: none; border-radius: 10px; background: #eef6ff !important; }
  .svx-sec .svx-item .ic svg { width: 19px; height: 19px; }
  .svx-sec .svx-item .sh { display: block !important; font: 600 14px/1.3 var(--font-head); color: #021b39; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color .3s; }
  .svx-sec .svx-item.active { transform: none !important; }
  .svx-sec .svx-item.active .ic { background: rgba(255,255,255,.16) !important; }
  .svx-sec .svx-item.active .sh { color: #fff; }
  .svx-sec .svx .svx-stage.sx, .svx-sec .svx-card, .svx-sec .svx-btns { max-width: 600px !important; }
}
@media (max-width: 600px) {
  .svx-sec .svx-list { gap: 8px !important; }
  .svx-sec .svx-item { flex-direction: column !important; justify-content: center !important; gap: 6px !important; min-height: 80px !important; padding: 10px 4px !important; text-align: center; }
  .svx-sec .svx-item .sh { font-size: 12.5px; white-space: normal; line-height: 1.35; overflow: visible; }
  .svx-sec .svx-feats li span { font-size: 13px; }
}
@media (max-width: 360px) {
  .svx-sec .svx-list { gap: 6px !important; }
  .svx-sec .svx-item { min-height: 76px !important; }
  .svx-sec .svx-item .sh { font-size: 12px; }
}
@media (max-width: 600px) {
  .svx-sec .svx-feats li span { font-size: 12.5px !important; line-height: 1.45; }
  .svx-sec .svx-feats li span br { display: inline !important; }
}
@media (max-width: 600px) { .svx-sec .svx-feats li { padding-inline: 2px !important; min-width: 0; } .svx-sec .svx-feats { column-gap: 0 !important; } }
@media (min-width: 901px) and (max-width: 1180px) {
  .svx-sec .svx-stage.sx > .sx-world, .svx-sec .svx-stage.sx > .sx-floor, .svx-sec .svx-stage.sx > .sx-links { scale: .9; transform-origin: 50% 46%; }
}

/* v18 footer socials: icons centred in their tiles (a later footer rule had set links to display:block) */
.footer .socials { display: flex; flex-wrap: wrap; gap: 12px; }
.footer .socials a { display: grid !important; place-items: center; flex: none; width: 50px; height: 50px; padding: 0 !important; line-height: 0; }
.footer .socials a svg { display: block; width: 22px; height: 22px; margin: 0; }
.footer .socials a[data-tiktok] svg { width: 20px; height: 20px; }

/* =====================================================================
   v18 — project case study page
   hero · figures strip · story (challenge / solution) + project sheet ·
   site tour (desktop tabs + three phones) · what visitors get
   ===================================================================== */
.wchip.live { color: #0f8a4b; background: #ecfdf3; border-color: #b7ebcd; font-weight: 600; }
.wchip.live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: csLive 2s infinite; }
@keyframes csLive { 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.pd-hero .row-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-hero .row-btns .btn-ghost svg { width: 18px; height: 18px; }

/* figures */
.cs2-stats-sec { position: relative; z-index: 4; margin-top: clamp(-70px, -5vw, -40px); }
.cs2-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 28px;
  box-shadow: 0 40px 70px -50px rgba(10,26,74,.55), 0 0 0 1px rgba(47,111,232,.1); overflow: hidden; }
.cs2-stats li { display: grid; gap: 6px; align-content: center; justify-items: center; text-align: center; padding: clamp(20px, 2.4vw, 30px) 16px; position: relative; }
.cs2-stats li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: linear-gradient(transparent, #d6e2f7, transparent); }
.cs2-stats b { font: 800 clamp(30px, 3.2vw, 44px)/1 var(--font-head); background: linear-gradient(120deg, #12286b, #2f6fe8 60%, #4f97f3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs2-stats span { font-size: 14.5px; color: var(--text-2, #3d4e78); line-height: 1.5; }

/* story + sheet */
.cs2-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.cs2-main { display: grid; gap: 18px; }
.cs2-main .section-head { margin-bottom: 6px; }
.cs2-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); padding: clamp(22px, 2.6vw, 34px); border-radius: 26px; background: #fff;
  box-shadow: 0 30px 60px -48px rgba(10,26,74,.5), 0 0 0 1px rgba(47,111,232,.09); }
.cs2-n { font: 800 clamp(38px, 4vw, 56px)/.9 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px #9db8ea; }
.cs2-step small { display: inline-block; font: 700 13px var(--font-head); color: var(--blue-500); letter-spacing: .02em; margin-bottom: 6px; }
.cs2-step h3 { font: 700 clamp(20px, 1.8vw, 24px)/1.4 var(--font-head); color: var(--navy-800); margin: 0 0 10px; }
.cs2-step p { margin: 0; font-size: 16.5px; line-height: 1.95; color: var(--text-2, #3d4e78); }
.cs2-step.so { background: radial-gradient(120% 140% at 0% 0%, #1f56d6 0%, #12286b 45%, #071338 100%); box-shadow: 0 40px 70px -46px rgba(7,19,56,.8); }
.cs2-step.so .cs2-n { -webkit-text-stroke-color: rgba(169,236,251,.55); }
.cs2-step.so small { color: #5cd9f7; } .cs2-step.so h3 { color: #fff; } .cs2-step.so p { color: rgba(226,236,255,.86); }
.cs2-sheet { position: sticky; top: calc(var(--header-h, 80px) + 24px); padding: clamp(22px, 2.4vw, 30px); border-radius: 26px; background: #fff;
  box-shadow: 0 30px 60px -44px rgba(10,26,74,.5), 0 0 0 1px rgba(47,111,232,.1); display: grid; gap: 14px; }
.cs2-sheet h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 19px var(--font-head); color: var(--navy-800); }
.cs2-sheet h3 svg { width: 20px; height: 20px; color: var(--blue-500); }
.cs2-sheet dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.cs2-sheet dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cs2-sheet dt { color: var(--muted); font-size: 14px; flex: none; }
.cs2-sheet dd { margin: 0; font: 600 14.5px/1.55 var(--font-head); color: var(--navy-800); text-align: end; }
.cs2-sheet h4 { margin: 6px 0 0; font: 700 14px var(--font-head); color: var(--muted); }
.cs2-scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cs2-scope li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; color: var(--navy-800); line-height: 1.5; }
.cs2-scope svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #fff; background: linear-gradient(135deg, #2f6fe8, #5cd9f7); border-radius: 6px; padding: 3px; }

/* site tour */
.cs2-gal .section-head { margin-bottom: clamp(22px, 3vw, 36px); }
.cg-desk { display: grid; justify-items: center; gap: 22px; }
.cg-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 14px 30px -24px rgba(10,26,74,.5), 0 0 0 1px rgba(47,111,232,.1); }
.cg-tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 600 14.5px var(--font-head); color: var(--text-2, #3d4e78); cursor: pointer; transition: background .3s, color .3s; }
.cg-tab:hover { color: var(--navy-800); background: #f1f6ff; }
.cg-tab.on { background: linear-gradient(120deg, #12286b, #1f56d6); color: #fff; box-shadow: 0 10px 20px -12px rgba(18,40,107,.8); }
.cg-tab:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.cg-view { width: 100%; transition: opacity .2s, transform .2s; }
.cg-view.out { opacity: 0; transform: translateY(6px); }
.cg-view .dv-lap { width: min(920px, 88%); margin-inline: auto; }
.cg-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: clamp(14px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.cg-ph { margin: 0; display: grid; justify-items: center; gap: 12px; }
.cg-ph .dv-ph { width: 100% !important; border-width: clamp(5px, .8vw, 9px); border-radius: clamp(22px, 3vw, 36px); }
.cg-ph figcaption { font: 600 14px var(--font-head); color: var(--navy-800); text-align: center; }

/* what visitors get */
.cs2-hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cs2-card { padding: 26px; border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -40px rgba(10,26,74,.45), 0 0 0 1px rgba(47,111,232,.09); transition: transform .35s var(--ease-out), box-shadow .35s; }
.cs2-card:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -40px rgba(10,26,74,.55), 0 0 0 1px rgba(47,111,232,.18); }
.cs2-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(140deg, #1f56d6, #4f97f3 70%, #5cd9f7); box-shadow: 0 12px 22px -12px rgba(31,86,214,.8); margin-bottom: 16px; }
.cs2-ic svg { width: 23px; height: 23px; }
.cs2-card h3 { margin: 0 0 8px; font: 700 18px var(--font-head); color: var(--navy-800); }
.cs2-card p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--text-2, #3d4e78); }

@media (max-width: 1080px) {
  .cs2-grid { grid-template-columns: 1fr; }
  .cs2-sheet { position: static; }
  .cs2-hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cs2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs2-stats li:nth-child(3)::before { display: none; }
  .cs2-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cs2-step { grid-template-columns: 1fr; gap: 6px; }
  .cs2-hl-grid { grid-template-columns: 1fr; }
  .cs2-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .cs2-card .cs2-ic { grid-row: span 2; margin: 0; }
  .cg-tabs { border-radius: 20px; }
  .cg-tab { padding: 9px 14px; font-size: 13.5px; }
  .cg-phones { gap: 10px; }
  .cg-ph figcaption { font-size: 12px; }
  .pd-hero .row-btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* v18 crawlable fallback content (shown only until the interactive version renders, or without JS) */
section.seo-pre { padding: calc(var(--header-h, 84px) + 36px) 0 64px; color: var(--navy-800); }
.seo-pre h1 { font: 800 clamp(30px, 4vw, 46px)/1.3 var(--font-head); margin: 18px 0 12px; }
.seo-pre h2 { font: 700 clamp(20px, 2vw, 26px)/1.4 var(--font-head); margin: 28px 0 10px; }
.seo-pre h3 { font: 700 17px/1.5 var(--font-head); margin: 18px 0 6px; }
.seo-pre p, .seo-pre li { font-size: 16px; line-height: 1.9; color: var(--text-2, #3d4e78); }
.seo-pre ul, .seo-pre ol { padding-inline-start: 22px; display: grid; gap: 4px; }
.seo-pre img { display: inline-block; width: min(320px, 46%); height: auto; margin: 8px; border-radius: 12px; }
.seo-pre a { color: var(--blue-600); }
article.seo-pre { padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cs-list > article.seo-pre h3 { font-size: 22px; margin-top: 0; }
.cg-cap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: clamp(40px, 5vw, 64px) 0 0; font: 700 15px var(--font-head); color: var(--muted); }
.cg-cap svg { width: 18px; height: 18px; color: var(--blue-500); }
.cg-cap + .cg-phones { margin-top: 18px; }
@media (max-width: 760px) {
  .cs-facts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
  .cs-facts div:first-child { grid-column: auto !important; }
  .cs-facts div { padding: 10px 10px; }
  .cs-facts dd { font-size: 13px; }
}
/* v19 project sheet: two balanced columns on tablets instead of one stretched card */
@media (min-width: 761px) and (max-width: 1080px) {
  .cs2-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 44px); align-items: start; }
  .cs2-sheet > h3 { grid-column: 1; grid-row: 1; }
  .cs2-sheet > dl { grid-column: 1; grid-row: 2 / span 3; }
  .cs2-sheet > h4 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .cs2-sheet > .cs2-scope { grid-column: 2; grid-row: 2; }
  .cs2-sheet > .url-box2 { grid-column: 2; grid-row: 3; }
}
@media (max-width: 600px) {
  .cs-next { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; }
  .cs-next-t > span { max-width: 36ch; }
  .cs-next-btn { width: 100%; }
}
.work-sec + .cta-wrap-pad { padding-top: clamp(16px, 3vw, 40px); }
/* phones: project facts as one tidy list (label ← value) instead of three cramped tiles */
@media (max-width: 600px) {
  .cs-facts { grid-template-columns: 1fr !important; gap: 0; padding: 2px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -20px rgba(10, 26, 74, .5); }
  .cs-facts div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); }
  .cs-facts div:last-child { border-bottom: 0; }
  .cs-facts dd { margin: 0; font-size: 14.5px; text-align: end; }
}
.cs2-step p { max-width: 75ch; }
/* very small phones (≤350px): stack the explorer buttons so their labels never get cut */
@media (max-width: 350px) {
  .svx-sec .svx-btns { grid-template-columns: 1fr !important; }
}
/* tablets in the stacked hero layout (601–900px): the code terminal sat on top of the logo mark — show the mark alone, as on phones */
@media (max-width: 900px) { .hero-terminal { display: none !important; } }

/* v20 device pair: laptop + phone side by side on one baseline — no overlap, no tilt */
.fw-dev:not(.mini):not(.two-ph) { display: flex; flex-direction: row; align-items: flex-end; justify-content: center; gap: 2.6cqw; aspect-ratio: auto; padding: 3cqw 2cqw 3.6cqw; isolation: isolate; }
.fw-dev:not(.mini):not(.two-ph) .fw-lap { position: relative; inset: auto; left: auto; right: auto; top: auto; flex: none; width: 66cqw; margin-inline: 4cqw; transform: none; filter: drop-shadow(0 2.4cqw 2.6cqw rgba(10, 26, 74, .26)); }
.fw-dev:not(.mini):not(.two-ph) .fw-ph { position: relative; inset: auto; left: auto; right: auto; bottom: auto; flex: none; width: 15.5cqw; transform: none; box-shadow: 0 2.4cqw 2.6cqw -1cqw rgba(10, 26, 74, .45); }
.fw-dev:not(.mini):not(.two-ph) .fw-ped { display: none; }
.fw-dev:not(.mini):not(.two-ph)::after { content: ""; position: absolute; z-index: -1; left: 5%; right: 5%; bottom: 2.2cqw; height: 3cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 26, 74, .22), transparent); }
.cs-stage .fw-dev:not(.mini):not(.two-ph)::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); }

/* phones: a real status bar, so the camera island never covers the website's own header */
.fw-ph, .dv-ph { container-type: inline-size; background: #0b1220 !important; }
.fw-ph > :not(.nt), .dv-ph > img { position: absolute !important; left: 0; right: 0; bottom: 0; top: 10.5cqw; width: 100% !important; height: calc(100% - 10.5cqw) !important; }
.fw-ph .nt, .dv-ph .nt { top: 2.4cqw !important; height: 6cqw !important; width: 30% !important; left: 50% !important; margin-left: -15% !important; border-radius: 99px !important; background: #000 !important; }
.fw-ph::before, .dv-ph::before { content: "9:41"; position: absolute; z-index: 3; top: 2.4cqw; left: 8cqw; font: 600 4.4cqw/6cqw system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff; direction: ltr; letter-spacing: -.01em; }
.fw-ph::after, .dv-ph::after { content: ""; position: absolute; z-index: 3; top: 3.6cqw; right: 7.5cqw; width: 15cqw; height: 3.6cqw;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 12'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='8' width='3' height='4' rx='.8'/%3E%3Crect x='4.5' y='6' width='3' height='6' rx='.8'/%3E%3Crect x='9' y='3.5' width='3' height='8.5' rx='.8'/%3E%3Crect x='13.5' y='1' width='3' height='11' rx='.8'/%3E%3Crect x='24' y='1' width='21' height='10' rx='3' fill='none' stroke='%23fff' stroke-opacity='.55' stroke-width='1.2'/%3E%3Crect x='26' y='3' width='15' height='6' rx='1.6'/%3E%3Crect x='46.4' y='4' width='1.8' height='4' rx='.8' fill-opacity='.55'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.gal-th .th-prev .dv-ph::before, .gal-th .th-prev .dv-ph::after { display: none; }
@media (min-width: 761px) { .cs-stage { padding-inline: clamp(12px, 1.6vw, 24px); } .cs-dev { max-width: 680px; } }
