/* =========================================================
   MPy Solutions · Design System (shared)
   ========================================================= */
:root {
  /* Brand */
  --brand-orange:   #EE7C37;
  --brand-orange-2: #D96524;
  --brand-indigo:   #484FC8;
  --brand-indigo-2: #353CB4;

  /* Surfaces (light) */
  --bg:        #FAFAF7;
  --bg-2:      #F2F1EC;
  --surface:   #FFFFFF;
  --surface-2: #F6F5F1;
  --line:      rgba(15, 16, 32, 0.08);
  --line-2:    rgba(15, 16, 32, 0.14);

  /* Ink (light) */
  --ink:       #0F1020;
  --ink-2:     #2A2B3D;
  --ink-3:     #5A5C70;
  --ink-4:     #8A8C9E;

  /* Status */
  --success:   #1F8A5B;

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(15,16,32,.04), 0 0 0 1px rgba(15,16,32,.04);
  --shadow-md:   0 8px 30px -12px rgba(15,16,32,.12), 0 2px 6px rgba(15,16,32,.04);
  --shadow-lg:   0 24px 60px -24px rgba(15,16,32,.22), 0 4px 12px rgba(15,16,32,.06);
  --shadow-glow: 0 0 0 1px rgba(72,79,200,.18), 0 18px 50px -16px rgba(72,79,200,.35);

  /* Fluid type */
  --fs-display: clamp(2.5rem, 1.6rem + 4.6vw, 5.25rem);
  --fs-h1:      clamp(2rem,   1.4rem + 2.6vw, 3.25rem);
  --fs-h2:      clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-h3:      clamp(1.25rem,1.1rem  + 0.6vw, 1.5rem);
  --fs-lead:    clamp(1.05rem,0.95rem + 0.4vw, 1.25rem);
  --fs-body:    clamp(0.95rem,0.9rem  + 0.15vw,1.05rem);
  --fs-sm:      0.875rem;
  --fs-xs:      0.78rem;

  --easing: cubic-bezier(.2,.7,.2,1);
  --container: 1240px;
}
:root[data-theme="dark"] {
  --bg:        #0B0D1A;
  --bg-2:      #11132A;
  --surface:   #14172E;
  --surface-2: #1A1D38;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --ink:       #F5F6FB;
  --ink-2:     #D7D9EA;
  --ink-3:     #9DA0BD;
  --ink-4:     #6D7095;
  --shadow-xs:   0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-md:   0 8px 30px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg:   0 24px 60px -24px rgba(0,0,0,.7), 0 4px 12px rgba(0,0,0,.3);
}

/* =========================================================
   RESET + BASE
   ========================================================= */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

h1,h2,h3,h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h1);  letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h2);  }
h4 { font-size: var(--fs-h3);  }
p  { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: clamp(20px, 4vw, 40px);
  margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand__mark {
  width: 32px; height: 32px;
  background: url("/images/mpysolutions_logo.png") center/contain no-repeat;
  flex-shrink: 0;
}
.brand b { color: var(--brand-orange); font-weight: 700; }
.brand i { font-style: normal; color: var(--brand-indigo); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-pill);
  transition: color .25s var(--easing), background .25s var(--easing);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  width: 18px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-indigo));
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items:center; justify-content:center;
  color: var(--ink-2);
  transition: background .2s var(--easing), color .2s var(--easing);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  transition: transform .25s var(--easing), background .25s var(--easing), box-shadow .25s var(--easing);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(180deg, #1A1B30 0%, #0F1020 100%); }
:root[data-theme="dark"] .btn--primary { background: linear-gradient(180deg, #FFFFFF 0%, #E6E7F4 100%); color: #0F1020; }
.btn--accent {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-2) 100%);
  color: white;
  box-shadow: 0 8px 24px -10px rgba(238,124,55,.6), inset 0 0 0 1px rgba(255,255,255,.18);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }

/* =========================================================
   SHARED PRIMITIVES
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--s-5);
  letter-spacing: 0.01em;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }

section { padding-block: clamp(72px, 9vw, 140px); }
.section-head { max-width: 760px; margin: 0 auto var(--s-8); text-align: center; }
.section-head .eyebrow { margin-inline: auto; display: inline-flex; }
.section-head h2 { margin-top: var(--s-3); }
.section-head p { color: var(--ink-3); font-size: var(--fs-lead); margin-top: var(--s-4); }

.tech-chip {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}

/* =========================================================
   PAGE HERO  (used by inner pages)
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 72px);
  isolation: isolate;
}
.page-hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  opacity: .55;
}
.page-hero__mesh {
  position: absolute; inset: -20% -10% auto -10%; z-index: -1;
  height: 90%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(238,124,55,.22) 0%, transparent 60%),
    radial-gradient(45% 55% at 80% 25%, rgba(72,79,200,.24)  0%, transparent 60%);
  filter: blur(20px) saturate(110%);
}
.page-hero__inner {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
.page-hero p  { margin-top: var(--s-5); font-size: var(--fs-lead); color: var(--ink-3); max-width: 60ch; margin-inline: auto; }
.page-hero .eyebrow { margin-inline: auto; display: inline-flex; }

/* Breadcrumb */
.crumb {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: var(--fs-sm); color: var(--ink-4);
  margin-bottom: var(--s-4);
}
.crumb a:hover { color: var(--ink); }
.crumb svg { opacity: .5; }

/* =========================================================
   CARDS (generic — reused by services, values, etc.)
   ========================================================= */
.card {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--easing), box-shadow .35s var(--easing), border-color .35s var(--easing);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand-indigo) 14%, var(--surface));
  color: var(--brand-indigo);
  margin-bottom: var(--s-5);
}
.card[data-tone="orange"] .card__icon {
  background: color-mix(in oklab, var(--brand-orange) 14%, var(--surface));
  color: var(--brand-orange);
}


/* Centered lone card (e.g. 7th in a 3-col services grid) */
.card--centered { grid-column: 1 / -1; justify-self: center; max-width: 380px; width: 100%; }
.card h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.card p  { color: var(--ink-3); font-size: 0.96rem; }
.card__benefit {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--ink-2);
}
.card__benefit svg { color: var(--success); flex-shrink: 0; }
.card__next {
  margin-top: var(--s-5);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--brand-indigo);
  transition: gap .2s var(--easing);
}
.card:hover .card__next { gap: 10px; }

/* Service card with hover gradient border */
.service::before {
  content:""; position:absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, color-mix(in oklab, var(--brand-orange) 60%, transparent) 70%, color-mix(in oklab, var(--brand-indigo) 60%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--easing);
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service__features {
  list-style: none; padding: 0; margin: var(--s-4) 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.service__features li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: var(--fs-sm); color: var(--ink-3);
}
.service__features svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* =========================================================
   MID-PAGE CTA BANNER  (reused on every page)
   ========================================================= */
.cta-banner {
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(238,124,55,.35) 0%, transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(255,255,255,.08) 0%, transparent 60%),
    linear-gradient(135deg, #0F1020 0%, #1F2148 60%, #2A2D7A 100%);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::after {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 30%, transparent 70%);
  pointer-events: none;
}
.cta-banner__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .cta-banner__grid { grid-template-columns: 1fr; } }
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,.7); margin-top: var(--s-4); font-size: var(--fs-lead); max-width: 50ch; }
.cta-banner__actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .cta-banner__actions { justify-content: flex-start; } }
.cta-banner .btn--ghost { color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.cta-banner .btn--ghost:hover { background: rgba(255,255,255,.08); }
.cta-banner .eyebrow { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); color: rgba(255,255,255,.9); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: var(--s-9) var(--s-6);
  margin-top: var(--s-9);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-7);
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { color: var(--ink-3); margin-top: var(--s-4); max-width: 38ch; font-size: 0.94rem; }
.footer__socials { display: flex; gap: 8px; margin-top: var(--s-5); }
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-4); margin-bottom: var(--s-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink-3); font-size: 0.94rem; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-sm); color: var(--ink-4); gap: 16px; flex-wrap: wrap;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--easing), transform .7s var(--easing);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}

::selection { background: color-mix(in oklab, var(--brand-indigo) 25%, transparent); color: var(--ink); }

/* Back-to-top floating button with scroll-progress ring */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.85);
  pointer-events: none;
  transition: opacity .3s var(--easing), transform .3s var(--easing), color .2s var(--easing), box-shadow .2s var(--easing);
  border: 1px solid var(--line);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover {
  transform: translateY(-3px) scale(1.06);
  color: var(--brand-orange);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-orange);
}
.btt-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.btt-track { stroke: var(--line-2); }
.btt-fill  { stroke: var(--brand-orange); transition: stroke-dashoffset .1s linear; }
.btt-arrow { position: relative; z-index: 1; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .2s; }
  .back-to-top:hover { transform: none; }
  .btt-fill { transition: none; }
}

/* Mobile nav toggle */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__actions .btn--sm { display: none; }
}
.mobile-menu {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-3) var(--s-5);
}
.mobile-menu .container { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.mobile-menu a:hover, .mobile-menu a.is-active {
  background: var(--surface-2); color: var(--ink);
}

/* =========================================================
   HOMEPAGE-SPECIFIC
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px);
  isolation: isolate;
}
.hero__mesh {
  position: absolute; inset: -10% -10% auto -10%;
  height: 80%; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(238,124,55,.28) 0%, transparent 60%),
    radial-gradient(45% 55% at 82% 20%, rgba(72,79,200,.30)  0%, transparent 60%),
    radial-gradient(30% 50% at 50% 80%, rgba(72,79,200,.12)  0%, transparent 60%);
  filter: blur(20px) saturate(110%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  opacity: .55;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 .accent-o { color: var(--brand-orange); }
.hero h1 .accent-i { color: var(--brand-indigo); }
.hero h1 .underline { position: relative; display: inline-block; }
.hero h1 .underline::after {
  content:""; position:absolute; left:0; right:0; bottom:0.04em; height: 0.18em;
  background: linear-gradient(90deg, rgba(238,124,55,.35), rgba(72,79,200,.35));
  border-radius: 4px; z-index:-1;
}
.hero__lead { margin-top: var(--s-5); max-width: 56ch; font-size: var(--fs-lead); color: var(--ink-3); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-6); }
.hero__trust { margin-top: var(--s-7); display: flex; flex-wrap: nowrap; gap: 28px 36px; align-items: center; overflow-x: auto; }
.hero__trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-item b {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.75rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.hero__trust-item span { font-size: var(--fs-xs); color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }
.hero__trust-divider { width:1px; height: 34px; background: var(--line); }

.hero__visual { position: relative; }
.hero__logo-bg {
  position: absolute; inset: -40px -40px auto auto;
  width: 380px; height: 380px;
  background: url("/images/mpysolutions_logo.png") center/contain no-repeat;
  opacity: 0.06; z-index: 0; pointer-events: none;
}
.code-card {
  position: relative; z-index:1;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
  border: 1px solid var(--line);
  transform: rotate(-1deg);
  transition: transform .6s var(--easing);
}
.code-card:hover { transform: rotate(0deg) translateY(-4px); }
.code-card__chrome { display: flex; gap: 6px; margin-bottom: 14px; align-items: center; }
.code-card__chrome > span:not(.code-card__tab) { width:10px; height:10px; border-radius:50%; background:#FF5F57; }
.code-card__chrome > span:not(.code-card__tab):nth-child(2) { background:#FEBC2E; }
.code-card__chrome > span:not(.code-card__tab):nth-child(3) { background:#28C840; }
.code-card__tab {
  display:inline-block; margin-left:8px; padding:2px 10px;
  background: var(--surface-2); border-radius: 6px;
  font-size: 11px; color: var(--ink-3);
}
.code-line { white-space: pre; }
.tok-kw { color: var(--brand-indigo); }
.tok-fn { color: var(--brand-orange); }
.tok-str { color: var(--success); }
.tok-com { color: var(--ink-4); font-style: italic; }

.float-card {
  position: absolute; z-index:2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.float-card--a { top: -22px; right: -10px; animation-delay: 0s; }
.float-card--b { bottom: -22px; left: -20px; animation-delay: 1.4s; }
.float-card__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand-indigo) 12%, var(--surface));
  color: var(--brand-indigo);
}
.float-card--a .float-card__icon { background: color-mix(in oklab, var(--brand-orange) 14%, var(--surface)); color: var(--brand-orange); }
.float-card__title { font-weight: 600; color: var(--ink); line-height:1.2; }
.float-card__sub { color: var(--ink-4); font-size: var(--fs-xs); }

/* Logo strip */
.logo-strip {
  padding: 28px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.logo-strip__inner {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px);
  flex-wrap: wrap;
  color: var(--ink-4);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.logo-strip__label { font-weight: 500; color: var(--ink-3); }
.logo-strip__items { display:flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; align-items: center; }
.logo-strip .tech-chip { text-transform: none; letter-spacing: 0; }

/* Grids */
.why-grid, .services-grid, .case-grid, .testimonials-grid, .values-grid {
  display: grid; gap: var(--s-5);
}
.why-grid       { grid-template-columns: repeat(3, 1fr); }
.services-grid  { grid-template-columns: repeat(3, 1fr); }
.case-grid      { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonials-grid--single {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin-inline: auto;
}
.testimonials-grid--single .tm {
  text-align: center;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
}
.testimonials-grid--single .tm__stars { justify-content: center; }
.testimonials-grid--single .tm__quote {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.45;
}
.testimonials-grid--single .tm__person { border-top: 0; padding-top: 0; justify-content: center; }
.values-grid    { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) {
  .why-grid, .case-grid, .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid, .values-grid { grid-template-columns: 1fr; }
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); position: relative; }
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }
.process__step { position: relative; }
.process__num {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(180deg, var(--brand-orange) 0%, var(--brand-indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: var(--s-4); letter-spacing: -0.04em;
}
.process__step h3 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.process__step p { color: var(--ink-3); font-size: 0.93rem; }

/* Case cards */
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--easing), box-shadow .35s var(--easing), border-color .35s var(--easing);
  display: flex;
  flex-direction: column;
}
.case:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(15,16,32,.18), 0 8px 16px -8px rgba(15,16,32,.08);
  border-color: var(--line-2);
}
.case__media {
  aspect-ratio: 16/10;
  position: relative;
  background: linear-gradient(135deg, var(--surface-2) 0%, color-mix(in oklab, var(--brand-indigo) 10%, var(--surface-2)) 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.case__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(15,16,32,.18));
  pointer-events: none;
}
.case__media-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 14px);
  display: grid; place-items: center;
  color: var(--ink-4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  text-align: center; padding: 12px;
}
.case__media-link {
  display: block; height: 100%;
  position: relative;
}
.case__media-link .case__media {
  height: 100%;
}
.case__media--image {
  background: var(--surface-2);
}
.case__media--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .6s var(--easing);
}
.case:hover .case__media--image img { transform: scale(1.03); }

/* Mobile-app card: dark backdrop + reposition crop so the headline area shows */
.case__media--phone { background: #0B0D1A; }
.case__media--phone img { object-position: center 30%; }
.case__chip {
  position: absolute; top: 14px; left: 14px;
  background: rgba(15,16,32,.84); color: white;
  font-size: 0.72rem; padding: 5px 11px;
  border-radius: var(--r-pill); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.case__body { padding: clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 28px) clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.case__industry { font-size: var(--fs-xs); color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.case__body h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 0; }
.case__body p  { color: var(--ink-3); font-size: 0.95rem; line-height: 1.55; }
.case__result {
  margin-top: 4px;
  padding: 10px 14px;
  background: color-mix(in oklab, var(--success) 8%, var(--surface));
  border-left: 2px solid var(--success);
  border-radius: 6px;
  font-size: var(--fs-sm); color: var(--ink-2);
}
.case__result b { color: var(--success); font-weight: 600; margin-right: 4px; }
.case__tech {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: auto;
  padding-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--ink-3);
}
.case__tech span { position: relative; }
.case__tech span + span::before { content: "·"; position: absolute; left: -10px; color: var(--ink-4); }
.case__cta {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: var(--fs-sm);
  color: var(--ink);
  transition: color .2s var(--easing);
}
.case__cta svg { transition: transform .25s var(--easing); }
.case:hover .case__cta { color: var(--brand-indigo); }
.case:hover .case__cta svg { transform: translateX(6px); }

/* Testimonials */
.tm {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.tm__stars { display: inline-flex; gap: 2px; color: var(--brand-orange); }
.tm__quote {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.15rem; line-height: 1.4;
  color: var(--ink); letter-spacing: -0.01em;
  text-wrap: pretty;
}
.tm__person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.tm__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-indigo));
  color: white; font-weight: 600;
  display: grid; place-items: center; font-size: 0.95rem;
  font-family: 'Sora', 'Inter', sans-serif;
}
.tm__person b { display:block; color: var(--ink); font-weight: 600; font-size: 0.94rem; }
.tm__person span { font-size: var(--fs-xs); color: var(--ink-4); }

/* Final CTA */
.final-cta { text-align: center; position: relative; isolation: isolate; }
.final-cta::before {
  content:""; position:absolute; inset:auto 0 -10% 0; height: 80%;
  background: radial-gradient(60% 80% at 50% 50%, rgba(72,79,200,.18) 0%, transparent 60%);
  z-index: -1;
}
.final-cta h2 { max-width: 22ch; margin-inline: auto; }
.final-cta p { color: var(--ink-3); margin-top: var(--s-4); font-size: var(--fs-lead); max-width: 56ch; margin-inline: auto; }
.final-cta__actions { display: inline-flex; gap: 12px; margin-top: var(--s-6); flex-wrap: wrap; justify-content: center; }
.final-cta__guarantees { margin-top: var(--s-7); display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: var(--ink-3); font-size: var(--fs-sm); }
.final-cta__guarantees span { display:inline-flex; align-items: center; gap: 6px; }
.final-cta__guarantees svg { color: var(--success); }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .about-mission { grid-template-columns: 1fr; } }
.about-stats {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid; gap: var(--s-6);
  position: relative;
  overflow: hidden;
}
.about-stats::before {
  content:""; position: absolute; inset: auto -30% -50% auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(72,79,200,.22) 0%, transparent 70%);
}
.about-stats__row { display: flex; align-items: center; gap: var(--s-6); position: relative; }
.about-stats__row + .about-stats__row { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.about-stats__num {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  flex-shrink: 0;
  padding-right: 0.06em;
}
.about-stats__label b { color: var(--ink); font-weight: 600; display:block; }
.about-stats__label span { color: var(--ink-4); font-size: var(--fs-sm); }

.about-mission__body h2 { margin-bottom: var(--s-5); }
.about-mission__body p { color: var(--ink-3); font-size: var(--fs-lead); }
.about-mission__body p + p { margin-top: var(--s-4); }

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .approach { grid-template-columns: 1fr; } }
.approach__steps {
  display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 100px;
}
.approach__step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--easing), transform .3s var(--easing);
}
.approach__step:hover { border-color: var(--brand-indigo); transform: translateX(4px); }
.approach__step b {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--ink-4); font-size: 0.95rem;
  font-weight: 600; min-width: 24px;
}
.approach__step span { font-weight: 500; color: var(--ink); }
.approach__list { display: flex; flex-direction: column; gap: var(--s-5); }
.approach__item {
  display: flex; gap: 14px;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.approach__item:last-child { border-bottom: 0; }
.approach__item-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--success) 14%, var(--surface));
  color: var(--success);
}
.approach__item b { color: var(--ink); display: block; margin-bottom: 2px; }
.approach__item p { color: var(--ink-3); font-size: 0.95rem; margin: 0; }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  transition: border-color .25s var(--easing);
}
.faq[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A5C70' stroke-width='2.5' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
  background-position: center; background-repeat: no-repeat;
  transition: transform .3s var(--easing), background-color .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: var(--s-4); color: var(--ink-3); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info__item {
  display: flex; gap: 14px;
  padding: var(--s-4) 0;
}
.contact-info__item + .contact-info__item { border-top: 1px solid var(--line); }
.contact-info__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand-indigo) 12%, var(--surface));
  color: var(--brand-indigo);
  flex-shrink: 0;
}
.contact-info__item b { color: var(--ink); display:block; font-weight: 600; margin-bottom: 2px; }
.contact-info__item a { color: var(--ink-3); font-size: 0.95rem; }
.contact-info__item a:hover { color: var(--brand-indigo); }
.contact-info__wa {
  margin-top: var(--s-5);
  display: flex; gap: 14px; align-items: center;
  padding: var(--s-4) var(--s-5);
  background: color-mix(in oklab, #25D366 12%, var(--surface));
  border: 1px solid color-mix(in oklab, #25D366 24%, transparent);
  border-radius: var(--r-md);
  transition: transform .25s var(--easing), box-shadow .25s var(--easing);
}
.contact-info__wa:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-info__wa-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #25D366; color: white;
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-info__wa b { color: var(--ink); display:block; }
.contact-info__wa span { color: var(--ink-3); font-size: 0.9rem; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.contact-card h3 { font-family: 'Sora', 'Inter', sans-serif; font-size: 1.4rem; margin-bottom: var(--s-2); }
.contact-card > p { color: var(--ink-3); margin-bottom: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-indigo) 20%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.contact-trust {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px dashed var(--line);
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-sm); color: var(--ink-3);
}
.contact-trust span { display: inline-flex; align-items: center; gap: 6px; }
.contact-trust svg { color: var(--success); }

/* =========================================================
   CASE STUDIES PAGE
   ========================================================= */
.case-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: var(--s-7);
}
.case-filter {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500; color: var(--ink-3);
  transition: all .2s var(--easing);
}
.case-filter:hover { color: var(--ink); border-color: var(--line-2); }
.case-filter.is-active {
  background: var(--ink); color: white; border-color: var(--ink);
}
:root[data-theme="dark"] .case-filter.is-active { background: var(--ink); color: var(--bg); }

.case-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .case-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid--three { grid-template-columns: 1fr; } }

/* =========================================================
   CASE STUDY DETAIL PAGE
   ========================================================= */
.case-detail-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 64px) clamp(32px, 4vw, 56px);
  isolation: isolate;
}
.case-detail-hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  opacity: .55;
}
.case-detail-hero__mesh {
  position: absolute; inset: -20% -10% auto -10%; z-index: -1;
  height: 90%;
  background:
    radial-gradient(45% 55% at 20% 30%, rgba(238,124,55,.22) 0%, transparent 60%),
    radial-gradient(50% 55% at 80% 25%, rgba(72,79,200,.22) 0%, transparent 60%);
  filter: blur(20px);
}
.case-detail-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--s-5);
}
.case-detail-meta span {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-3);
}
.case-detail-meta span.is-category {
  background: var(--ink); color: white;
  box-shadow: none;
}
:root[data-theme="dark"] .case-detail-meta span.is-category { background: var(--surface); color: var(--ink); }

.case-detail-hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.case-detail-hero__lead {
  margin-top: var(--s-5);
  font-size: var(--fs-lead);
  color: var(--ink-3);
  max-width: 60ch;
}
.case-detail-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: var(--s-6);
}

.case-detail-stats {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 760px) { .case-detail-stats { grid-template-columns: repeat(2, 1fr); } }
.case-detail-stats__cell {
  padding: var(--s-5) var(--s-6);
  border-right: 1px solid var(--line);
}
.case-detail-stats__cell:last-child { border-right: 0; }
@media (max-width: 760px) {
  .case-detail-stats__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-detail-stats__cell:nth-last-child(-n+2) { border-bottom: 0; }
  .case-detail-stats__cell:nth-child(odd) { border-right: 1px solid var(--line); }
}
.case-detail-stats__num {
  font-family: 'Sora', sans-serif;
  font-size: 1.85rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-detail-stats__label {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* Browser frame for screenshots */
.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.shot__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.shot__chrome-dots { display: flex; gap: 6px; margin-right: 12px; }
.shot__chrome-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot__chrome-dots span:nth-child(1) { background: #FF5F57; }
.shot__chrome-dots span:nth-child(2) { background: #FEBC2E; }
.shot__chrome-dots span:nth-child(3) { background: #28C840; }
.shot__chrome-url {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-4);
  text-align: center;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  max-width: 360px; margin-inline: auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot__fullscreen {
  width: 28px; height: 28px;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  background: transparent;
  transition: background .2s var(--easing), color .2s var(--easing);
  cursor: pointer;
}
.shot__fullscreen:hover { background: var(--bg); color: var(--ink); }

/* Tabbed shot */
.shot__tabs {
  display: flex; gap: 2px;
  flex-shrink: 0;
}
.shot__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-4);
  background: transparent;
  border-radius: 8px 8px 0 0;
  position: relative;
  border: 1px solid transparent;
  border-bottom: 0;
  transition: background .2s var(--easing), color .2s var(--easing);
  cursor: pointer;
  white-space: nowrap;
  min-width: 130px;
  justify-content: center;
}
.shot__tab::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4);
  flex-shrink: 0;
}
.shot__tab:hover { color: var(--ink-2); background: color-mix(in oklab, var(--bg) 60%, var(--surface-2)); }
.shot__tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.shot__tab[aria-selected="true"]::before { background: var(--brand-orange); }
.shot__tab[data-tab="b"][aria-selected="true"]::before { background: var(--brand-indigo); }
.shot__tab[aria-selected="true"]::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--bg);
}
.shot--tabbed .shot__chrome {
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 8px;
  align-items: center;
}
.shot--tabbed .shot__tabs {
  align-self: flex-end;
  margin-bottom: -9px;
}
.shot--tabbed .shot__chrome-url { font-size: 0.78rem; }
.shot__pane[hidden] { display: none; }

@media (max-width: 600px) {
  .shot__tab { min-width: 0; padding: 7px 12px; font-size: 0.76rem; }
  .shot--tabbed .shot__chrome-url { display: none; }
}

/* Fullscreen lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 9, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  padding: clamp(24px, 4vw, 56px);
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  animation: lb-in .25s var(--easing);
}
.lightbox.is-open { display: flex; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__inner {
  position: relative;
  max-width: calc(100vw - 48px);
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: auto;
  animation: lb-pop .35s var(--easing);
}
@keyframes lb-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__close {
  display: none;
  position: fixed;
  top: 20px; right: 20px;
  z-index: 200;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #ef4444;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--easing), transform .2s var(--easing);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox__close:hover { background: rgba(255,255,255,.22); transform: scale(1.1); }
.lightbox__nav {
  display: none;
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 200;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--easing), transform .2s var(--easing);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox__nav:disabled { opacity: .3; pointer-events: none; }
.lightbox__nav:hover:not(:disabled) { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
body.lb-locked .lightbox__nav { display: inline-flex; }
.lightbox__img {
  width: 100%;
  height: auto;
  display: block;
}
body.lb-locked { overflow: hidden; }
body.lb-locked .lightbox__close { display: inline-flex; }
.shot__img {
  width: 100%; height: auto; display: block;
}
.shot__body {
  position: relative;
  background: var(--bg);
}
.shot--scroll .shot__body {
  max-height: 640px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--ink) 25%, transparent) transparent;
}
@supports (overflow-y: overlay) {
  .shot--scroll .shot__body { overflow-y: overlay; }
}
.shot--scroll .shot__body::-webkit-scrollbar { width: 6px; background: transparent; }
.shot--scroll .shot__body::-webkit-scrollbar-track { background: transparent; }
.shot--scroll .shot__body::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--ink) 25%, transparent);
  border-radius: 999px;
}
.shot--scroll .shot__body::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklab, var(--ink) 45%, transparent);
}
.shot--scroll .shot__body::after { display: none; }
.shot__fade {
  position: sticky;
  display: block;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  margin-top: -56px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--shot-fade-color, var(--bg)) 92%);
}
.shot--dark, .shot__pane.is-dark   { --shot-fade-color: #0B0D1A; }
.shot--light, .shot__pane.is-light { --shot-fade-color: #FAFAF7; }

/* =========================================================
   PHONE FRAME  (mobile-app case studies)
   ========================================================= */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0B0D1A;
  padding: 10px;
  box-shadow:
    0 0 0 2px #2A2C40,
    0 0 0 6px #14172E,
    0 30px 60px -25px rgba(0,0,0,.5),
    0 12px 30px -12px rgba(0,0,0,.35);
  margin-inline: auto;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0B0D1A;
}
.phone__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 95px; height: 28px;
  background: #000;
  border-radius: 99px;
  z-index: 2;
  pointer-events: none;
}
.phone__img {
  width: 100%;
  height: auto;
  display: block;
  position: relative; z-index: 1;
}
.phone--scroll .phone__screen {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@supports (overflow-y: overlay) {
  .phone--scroll .phone__screen { overflow-y: overlay; }
}
.phone--scroll .phone__screen::-webkit-scrollbar { width: 0; height: 0; display: none; }
.phone__fade {
  position: sticky;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  margin-top: -56px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, #0B0D1A 92%);
  z-index: 1;
}
.phone__label {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}

.phones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 24px);
  align-items: center;
  margin-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.phones-grid .phone {
  transition: transform .5s var(--easing);
  transform-style: preserve-3d;
}
.phones-grid .phone:nth-child(1) {
  transform: rotateY(22deg) scale(0.92);
  transform-origin: right center;
  z-index: 1;
}
.phones-grid .phone:nth-child(2) {
  transform: scale(1.05);
  z-index: 3;
  box-shadow:
    0 0 0 2px #2A2C40,
    0 0 0 6px #14172E,
    0 40px 80px -20px rgba(0,0,0,.65),
    0 18px 36px -12px rgba(0,0,0,.45);
}
.phones-grid .phone:nth-child(3) {
  transform: rotateY(-22deg) scale(0.92);
  transform-origin: left center;
  z-index: 2;
}
.phones-grid .phone:hover {
  transform: rotateY(0) scale(1.07);
  z-index: 4;
}
@media (max-width: 880px) {
  .phones-grid { grid-template-columns: 1fr; gap: 80px; perspective: none; }
  .phones-grid .phone:nth-child(1),
  .phones-grid .phone:nth-child(2),
  .phones-grid .phone:nth-child(3) { transform: none; }
  .phones-grid .phone:hover { transform: none; }
}

/* Overview section */
.case-overview {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .case-overview { grid-template-columns: 1fr; } }
.case-overview__title { position: sticky; top: 96px; }
.case-overview__title h2 { letter-spacing: -0.028em; }
.case-overview__title p { margin-top: var(--s-4); color: var(--ink-3); }
.case-overview__blocks { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .case-overview__blocks { grid-template-columns: 1fr; } }
.case-overview__block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.case-overview__block h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.case-overview__block p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
.case-overview__block.is-solution {
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand-indigo) 6%, var(--surface)) 0%, var(--surface) 60%);
  border-color: color-mix(in oklab, var(--brand-indigo) 20%, var(--line));
}

/* Feature list (case study version) */
.case-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (max-width: 760px) { .case-features { grid-template-columns: 1fr; } }
.case-features__item {
  display: flex; gap: 12px;
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: flex-start;
}
.case-features__item-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--success) 14%, var(--surface));
  color: var(--success);
}
.case-features__item p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

/* Tech stack big chips */
.case-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) { .case-tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .case-tech-grid { grid-template-columns: 1fr; } }
.case-tech-item {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
}
.case-tech-item b {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 600; color: var(--ink);
  font-size: 1.05rem;
}
.case-tech-item span {
  display: block; margin-top: 4px;
  color: var(--ink-4); font-size: var(--fs-xs);
}

/* Result big banner */
.case-result-big {
  position: relative; isolation: isolate;
  padding: clamp(40px, 5vw, 64px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(50% 100% at 0% 50%, color-mix(in oklab, var(--success) 14%, transparent) 0%, transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in oklab, var(--success) 25%, var(--line));
  overflow: hidden;
}
.case-result-big__label {
  font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--success); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: var(--s-3);
}
.case-result-big h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  letter-spacing: -0.025em; max-width: 26ch;
}

/* Two-shot grid */
.shots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 880px) { .shots-grid { grid-template-columns: 1fr; } }

/* Next case study */
.case-next {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s var(--easing), box-shadow .3s var(--easing);
}
.case-next:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.case-next__label {
  font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-4); margin-bottom: 6px;
}
.case-next__title { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.case-next__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: white;
  transition: transform .3s var(--easing);
}
:root[data-theme="dark"] .case-next__arrow { background: var(--surface-2); color: var(--ink); }
.case-next:hover .case-next__arrow { transform: translateX(4px); }
