/* Antoni Seba portfolio. Liquid glass UI recreated from the v3 promo film. */
:root {
  --ink: #0b1230;
  --ink-2: #1c2550;
  --ink-3: #3c4670;
  --accent: #3a44d6;
  --grad: linear-gradient(100deg, #2b3bff, #b02bff 55%, #ff3d8b);
  --green: linear-gradient(135deg, #10b96a, #0fa3a0);
  --page: #e4e9ff;
  --r-xl: 44px;
  --r-lg: 32px;
  --r-md: 22px;
  --shadow: 0 30px 70px rgba(12, 20, 70, .22), 0 8px 22px rgba(12, 20, 70, .14);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--page); line-height: 1.5; font-size: 17px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 700; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid #6a5cff; outline-offset: 3px; }

/* ---------- page background: pastel mesh with drifting blobs ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(900px 700px at 8% 6%, #ffc3dd, transparent 70%), radial-gradient(1000px 800px at 95% 12%, #b3cbff, transparent 70%),
              radial-gradient(1000px 800px at 55% 105%, #b2f2e6, transparent 70%), radial-gradient(700px 600px at 0% 100%, #ffe3b0, transparent 70%), #e9edff; }
.bgfx i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .55; filter: blur(10px); will-change: transform; }
.bgfx i:nth-child(1) { left: -20vmax; top: 10vh; background: radial-gradient(closest-side, #ff7ab8, transparent); animation: drift1 28s ease-in-out infinite alternate; }
.bgfx i:nth-child(2) { right: -25vmax; top: 30vh; background: radial-gradient(closest-side, #6f9bff, transparent); animation: drift2 34s ease-in-out infinite alternate; }
.bgfx i:nth-child(3) { left: 20vw; bottom: -30vmax; background: radial-gradient(closest-side, #4fe6c8, transparent); animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(30vw, 30vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-35vw, 20vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(15vw, -45vh) scale(1.15); } }

/* ---------- liquid glass ---------- */
.glass { position: relative; border-radius: var(--r-xl); isolation: isolate;
  background: linear-gradient(140deg, rgba(255,255,255,.84), rgba(255,255,255,.62) 48%, rgba(255,255,255,.76));
  -webkit-backdrop-filter: blur(26px) saturate(1.9) brightness(1.08); backdrop-filter: blur(26px) saturate(1.9) brightness(1.08);
  box-shadow: var(--shadow), inset 0 2px 0 rgba(255,255,255,.95), inset 0 -2px 0 rgba(255,255,255,.35), inset 0 0 0 1.5px rgba(255,255,255,.6), inset 0 0 46px rgba(255,255,255,.22); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(118deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 72%, rgba(255,255,255,.38) 100%); }
.glass.clear { background: linear-gradient(140deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(14px) saturate(2) brightness(1.15); backdrop-filter: blur(14px) saturate(2) brightness(1.15); }
.pill { border-radius: 999px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kick { font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 16px 36px rgba(90,50,255,.42), inset 0 2px 0 rgba(255,255,255,.45); }
.btn-primary::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0)); animation: shine 4.5s ease-in-out 1.5s infinite; }
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.btn-glass { color: var(--ink); background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: 0 12px 28px rgba(12,20,70,.16), inset 0 2px 0 #fff, inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 22px 46px rgba(90,50,255,.5), inset 0 2px 0 rgba(255,255,255,.45); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; left: 50%; top: 14px; transform: translateX(-50%); width: min(var(--max), calc(100% - 2 * 16px));
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 10px; border-radius: 999px; }
.nav .me { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.nav .me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(12,20,70,.25); }
.nav nav { margin: 0 auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 15px; color: var(--ink-2); transition: background .2s; }
.nav ul a:hover { background: rgba(255,255,255,.75); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 720px); overflow: hidden; display: flex; align-items: center; padding: 110px var(--gutter) 56px; background: #1a1f45; }
.plate { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; }
.tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .26;
  background: radial-gradient(60% 70% at 0% 0%, #ff4fa0, transparent 70%), radial-gradient(60% 70% at 100% 10%, #3f8cff, transparent 70%), radial-gradient(60% 60% at 40% 100%, #1fe0c0, transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, rgba(228,233,255,.55)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.hero-card { padding: clamp(24px, 3.4vw, 48px); border-radius: clamp(36px, 5vw, 64px); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 16px rgba(12,20,70,.12), inset 0 1px 0 #fff; white-space: nowrap; }
.badge .stars svg { width: 16px; height: 16px; }
.badge .stars { gap: 2px; }
.badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.badge .ok { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-top: 20px; font-weight: 900; font-size: clamp(36px, 4.3vw, 62px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.hero .views { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.hero .views .num { font-size: clamp(60px, 7.4vw, 108px); }
.hero .views .lab { font-weight: 800; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; padding-bottom: .55em; letter-spacing: -.01em; }
.hero .lede { margin-top: 14px; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-side { display: grid; gap: 16px; justify-items: start; }
.hero-side .chip { padding: 20px 26px; border-radius: 34px; min-width: 240px; }
.chip .num { font-size: 54px; }
.chip .lab { font-weight: 700; font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.hero-side .chip:nth-child(2) { margin-left: 44px; }
.hero-side .chip:nth-child(3) { margin-left: 12px; }
.sweep { position: absolute; z-index: 3; top: -30%; left: -40%; width: 26%; height: 160%; border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.28), rgba(255,255,255,.04) 40%, rgba(255,255,255,.22));
  -webkit-backdrop-filter: blur(2px) saturate(1.7) brightness(1.2); backdrop-filter: blur(2px) saturate(1.7) brightness(1.2);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), inset 0 0 60px rgba(255,255,255,.3); transform: rotate(14deg);
  animation: sweep 2.2s cubic-bezier(.6,0,.3,1) .5s 1 both; }
@keyframes sweep { 0% { left: -40%; opacity: 1; } 99% { opacity: 1; } 100% { left: 120%; opacity: 0; } }

/* ---------- numbers: rolling counter ---------- */
.num { font-weight: 900; letter-spacing: -.045em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-start; }
.rc { display: inline-block; height: 1em; overflow: hidden; }
.rs { display: block; transition: transform 1.6s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.rs b { display: block; height: 1em; line-height: 1em; font-weight: inherit; }
.num.grad.built { background: none; color: var(--ink); }

/* ---------- sections ---------- */
main > section { position: relative; padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.wrap { max-width: var(--max); margin: 0 auto; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 860px; }
.sec-head .kpill { justify-self: start; padding: 10px 18px; }
.sec-head h2 { font-weight: 900; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.sec-head p { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 60ch; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- AI video ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.panel { padding: clamp(24px, 3vw, 40px); }
.stat-panel { grid-column: span 7; }
.reels-panel { grid-column: span 5; display: flex; flex-direction: column; }
.factory { grid-column: span 5; }
.brands { grid-column: span 7; }
.three { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; align-items: center; }
.panel h3 { font-weight: 900; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.03em; margin-top: 10px; }
.panel p { color: var(--ink-2); margin-top: 10px; }
.big { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.big .num { font-size: clamp(70px, 8vw, 120px); }
.big .lab { font-weight: 800; font-size: 20px; padding-bottom: .5em; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.mini { padding: 16px 18px; border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: 0 8px 20px rgba(12,20,70,.1), inset 0 1px 0 #fff; }
.mini .num { font-size: clamp(34px, 3.4vw, 46px); }
.mini .lab { font-weight: 700; font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.3; }
.up { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 16px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; }
.shot { margin-top: 14px; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 30px rgba(12,20,70,.22), 0 0 0 2px rgba(255,255,255,.9); background: #fff; }
.shot img { width: 100%; height: auto; }
.cap { margin-top: 10px; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; flex: 1; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #0b1020; box-shadow: 0 14px 30px rgba(12,20,70,.3), 0 0 0 3px #fff; }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.factory .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media { position: relative; margin-top: 18px; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; background: #20264d; box-shadow: 0 14px 30px rgba(12,20,70,.26), 0 0 0 3px #fff; }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .over { position: absolute; left: 14px; bottom: 14px; padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.cubes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cube { aspect-ratio: 360 / 380; border-radius: 26px; overflow: hidden; position: relative; background: #0b1020; box-shadow: 0 14px 30px rgba(12,20,70,.3), 0 0 0 3px #fff; }
.cube video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { padding: 7px 13px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; color: var(--ink-2); box-shadow: 0 4px 12px rgba(12,20,70,.1), inset 0 1px 0 #fff; white-space: nowrap; }

/* ---------- case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.case { padding: 14px 14px 26px; border-radius: 40px; display: flex; flex-direction: column; }
.case .frame { border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #12162f; box-shadow: 0 10px 24px rgba(12,20,70,.22), 0 0 0 2px rgba(255,255,255,.9); }
.case .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.case:hover .frame img { transform: scale(1.04); }
.case .body { padding: 18px 14px 0; display: flex; flex-direction: column; flex: 1; }
.case .cat { display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 999px; color: #fff; background: var(--grad); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.case h3 { font-weight: 900; font-size: clamp(22px, 2vw, 28px); line-height: 1.12; letter-spacing: -.03em; margin-top: 12px; }
.case p { color: var(--ink-2); margin-top: 10px; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.metric { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 16px; background: #fff; box-shadow: 0 4px 12px rgba(12,20,70,.1); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.metric b { white-space: nowrap; font-weight: 900; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 800; font-size: 15px; color: var(--accent); text-decoration: none; align-self: flex-start; }
.link:hover { text-decoration: underline; }
.link svg { width: 14px; height: 14px; }
.case .foot { margin-top: auto; }

/* ---------- work grid ---------- */
.filters { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; margin-bottom: 26px; max-width: 100%; }
.filters button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: 999px; color: var(--ink-2); cursor: pointer; transition: color .3s; }
.filters button[aria-pressed="true"] { color: #fff; }
.filters button span { font-weight: 650; opacity: .7; margin-left: 4px; font-size: 13px; }
.filters .sel { position: absolute; z-index: 0; top: 0; left: 0; height: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 10px 24px rgba(80,50,255,.4), inset 0 2px 0 rgba(255,255,255,.4);
  transition: transform .5s cubic-bezier(.3,1.3,.5,1), width .5s cubic-bezier(.3,1.3,.5,1); }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 10px 10px 20px; border-radius: 32px; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.card[hidden] { display: none; }
.card .frame { border-radius: 24px; overflow: hidden; aspect-ratio: 2 / 1; background: #dfe4ff; box-shadow: 0 8px 20px rgba(12,20,70,.16), 0 0 0 2px rgba(255,255,255,.9); }
.card .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.card:hover .frame img { transform: scale(1.05); }
.card .ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(80% 120% at 0% 0%, #ffb3d4, transparent 60%), radial-gradient(80% 120% at 100% 0%, #a9c6ff, transparent 60%), radial-gradient(90% 100% at 50% 100%, #a5f1e3, transparent 60%), #eef1ff; }
.card .ph b { font-weight: 900; font-size: 30px; letter-spacing: -.04em; }
.card .body { padding: 14px 10px 0; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-weight: 900; font-size: 20px; letter-spacing: -.025em; line-height: 1.15; }
.card p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.card .tags { margin-top: 12px; gap: 6px; }
.card .tag { font-size: 12px; padding: 5px 11px; }
.card .link { margin-top: 12px; font-size: 14px; }
.card .foot { margin-top: auto; }
.more-wrap { display: none; justify-content: center; margin-top: 22px; }
.more-wrap .btn { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.work-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); }

/* ---------- reviews ---------- */
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 28px; border-radius: 999px; margin-bottom: 22px; }
.rv-head .num { font-size: 56px; }
.rv-head .t { font-weight: 900; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.02em; }
.rv-head .badges { margin-left: auto; }
.stars { display: inline-flex; gap: 4px; }
.stars svg { width: 22px; height: 22px; }
.rv-head .stars svg { width: 30px; height: 30px; }
.reviews { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.rv { margin: 0; padding: 26px 28px; border-radius: 36px; display: flex; flex-direction: column; }
.rv blockquote { margin: 14px 0 0; font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -.01em; }
.rv .who { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 14px; color: var(--ink-3); }
.rv:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.rv:nth-child(1) blockquote { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.32; }
.rv:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.rv:nth-child(3) { grid-column: span 2; }
.rv:nth-child(4) { grid-column: span 2; }
.rv:nth-child(5) { grid-column: span 2; }
.mk { background: linear-gradient(#ffe066, #ffd23c) no-repeat 0 88% / 0% 42%; transition: background-size 1.2s cubic-bezier(.2,.8,.2,1) .4s; }
.in .mk, .no-js .mk { background-size: 100% 42%; }

/* ---------- stack ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 10px; border-radius: 48px; }
.steps .sel { position: absolute; top: 10px; left: 10px; bottom: 10px; border-radius: 38px; background: var(--grad); box-shadow: 0 14px 34px rgba(80,50,255,.45), inset 0 2px 0 rgba(255,255,255,.45);
  transition: transform .7s cubic-bezier(.3,1.25,.5,1); }
.step { position: relative; z-index: 1; padding: 20px 18px; border-radius: 38px; transition: color .4s; }
.step .n { font-weight: 800; font-size: 13px; letter-spacing: .2em; opacity: .7; }
.step h3 { font-weight: 900; font-size: 20px; letter-spacing: -.02em; margin-top: 4px; }
.step p { font-size: 14px; margin-top: 6px; color: var(--ink-2); line-height: 1.4; transition: color .4s; }
.step.on { color: #fff; }
.step.on p { color: rgba(255,255,255,.9); }
.stack-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 20px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tools .tag { font-size: 15px; padding: 10px 18px; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.qa div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; background: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(12,20,70,.1); }
.qa i { width: 32px; height: 32px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.qa svg { width: 18px; height: 18px; }

/* ---------- final CTA ---------- */
.final { position: relative; margin-top: clamp(80px, 10vw, 140px); padding: clamp(80px, 10vw, 140px) var(--gutter) 40px; overflow: hidden; background: #1a1f45; }
.final .cta { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 70px); text-align: center; border-radius: clamp(40px, 6vw, 90px); }
.final .pre { font-weight: 800; font-size: clamp(16px, 1.6vw, 22px); color: #2a2fc0; }
.final h2 { font-weight: 900; font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.045em; margin-top: 12px; text-wrap: balance; }
.final .sub { font-weight: 650; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); margin: 18px auto 0; max-width: 52ch; }
.final .ctas { justify-content: center; }
.fchips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 22px auto 0; max-width: 1080px; }
.fchips .glass { padding: 14px 24px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.fchips b { font-weight: 900; font-size: 22px; letter-spacing: -.03em; margin-right: 6px; }
footer { position: relative; z-index: 2; max-width: 1080px; margin: 40px auto 0; padding: 18px 26px; border-radius: 999px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
footer a { font-weight: 800; color: var(--accent); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav ul a { padding: 10px 10px; font-size: 14px; }
  .stat-panel, .reels-panel, .factory, .brands { grid-column: span 12; }
  .reels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps .sel { display: none; }
  .step.on { background: var(--grad); }
}
@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: stretch; gap: 10px; }
  .hero-side .chip { min-width: 0; padding: 16px 16px; border-radius: 26px; margin: 0 !important; }
  .hero-side .chip .num { font-size: 34px; }
  .hero-side .chip .lab { font-size: 13px; }
  .three { grid-template-columns: minmax(0, 1fr); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .stack-grid { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .rv:nth-child(1) { grid-column: span 2; }
  .rv-head { border-radius: 40px; }
  .rv-head .badges { margin-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { top: 10px; padding: 6px 6px 6px 8px; }
  .nav .me img { width: 34px; height: 34px; }
  .nav .me span { font-size: 15px; }
  .nav .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .hero { padding-top: 92px; padding-bottom: 40px; min-height: auto; }
  .hero-card { border-radius: 34px; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero-side .chip { padding: 14px 12px; }
  .hero-side .chip .num { font-size: 26px; }
  .hero-side .chip .lab { font-size: 12px; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cubes { gap: 8px; }
  .cube, .phone { border-radius: 18px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .has-js .work.collapsed .card:nth-child(n+9) { display: none; }
  .has-js .work.collapsed + .more-wrap { display: flex; }
  .badge { padding: 6px 10px; font-size: 12px; gap: 6px; }
  .badges { gap: 6px; }
  .hero-card { padding: 22px 20px 24px; }
  .badge .stars svg { width: 13px; height: 13px; }
  .filters { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: 30px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { padding: 10px 14px; flex: none; }
  .steps { grid-template-columns: minmax(0, 1fr); border-radius: 34px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .rv:nth-child(1) { grid-column: span 1; }
  .rv-head { padding: 18px 20px; }
  .rv-head .num { font-size: 44px; }
  .minis { gap: 8px; }
  .mini { padding: 14px; border-radius: 20px; }
  .panel { border-radius: 34px; }
  .case { border-radius: 32px; }
  .case .frame { border-radius: 22px; }
  footer { border-radius: 30px; }
  .fchips .glass { padding: 12px 18px; font-size: 14px; }
  .fchips b { font-size: 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .sweep { display: none; }
  .mk { background-size: 100% 42%; }
}

/* ---------- performance (2026-11-26): the page lagged whole machines ----------
   Cause: ~80 backdrop-filter panels sat on top of a fixed background whose three
   60vmax blurred blobs animated every frame, so the browser re-blurred every panel
   on every frame. Now the background is static, the blob layers are gone, and real
   backdrop blur is kept only on the small fixed nav. Panels use a solid frosted fill. */
.bgfx i { display: none; }
.glass, .glass.clear, .btn-glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
.glass { background: linear-gradient(140deg, rgba(255,255,255,.93), rgba(255,255,255,.80) 48%, rgba(255,255,255,.88)); }
.glass.clear { background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,.30)); }
.btn-glass { background: rgba(255,255,255,.9); }
.nav.glass { -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6); }
.hero .glass { background: linear-gradient(140deg, rgba(255,255,255,.9), rgba(255,255,255,.76) 48%, rgba(255,255,255,.86)); }
.sweep { -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-primary::after { animation-iteration-count: 2; }
#video, #cases, #work, #reviews, #stack { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
