/* ==========================================================================
   Shaheer Shaikh — Portfolio styles (v2)
   All colors & fonts come from tokens.css
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--brand); color: var(--white); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--surface { background: var(--surface); }
.section--flush-top { padding-top: 1rem; }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 3rem; } }
.section-head h2 { font-size: var(--fs-3xl); max-width: 18ch; margin-top: 1rem; }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 52ch; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); color: var(--brand);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--brand-soft); }
.kicker--light { color: var(--white); }
.kicker--light::before { box-shadow: 0 0 0 4px rgba(255,255,255,.18); }

/* Blueprint grid background */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--brand-soft) 1px, transparent 1px), linear-gradient(90deg, var(--brand-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--white); --btn-fill: var(--black);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: .85rem 1.7rem;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm);
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bg); border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .25s var(--ease), box-shadow var(--dur);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; border-radius: 50%;
  background: var(--btn-fill); transform: translate(-50%, 0) scale(0); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translate(-50%, -62%) scale(1); }
.btn:hover { border-color: var(--btn-fill); box-shadow: 0 12px 30px -12px rgba(0,72,169,.55); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translate(3px, -3px) rotate(0deg); }
.btn--dark { --btn-bg: var(--black); --btn-fill: var(--brand); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--black); --btn-fill: var(--black); border-color: var(--black); }
.btn--outline:hover { color: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--brand); --btn-fill: var(--black); }
.btn--light:hover { color: var(--white); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-fill: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { color: var(--brand); }
.btn--sm { min-height: 44px; padding: .6rem 1.25rem; }
.btn--block { width: 100%; }

.link-line { position: relative; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-heading); font-weight: 600; color: var(--brand); }
.link-line svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link-line:hover svg { transform: translateX(4px); }
.link-line::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.04em; line-height: 1; }
.mark { width: 40px; height: 40px; flex: none; }
.mark__bg { fill: var(--brand); transition: fill .4s; }
.mark__path { fill: none; stroke: var(--white); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 70; stroke-dashoffset: 0; }
.mark__start { fill: var(--brand); stroke: var(--white); stroke-width: 2.4; }
.mark__end { fill: var(--white); }
.logo:hover .mark__path { animation: draw 1.1s var(--ease); }
.logo:hover .mark__end { animation: nodePop .5s .8s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 70; } to { stroke-dashoffset: 0; } }
@keyframes nodePop { from { transform: scale(0); transform-origin: 11.9px 27.9px; } }
.logo__word { display: grid; gap: 3px; }
.logo__word b { font-weight: 700; }
.logo__word b i { font-style: normal; color: var(--brand); }
.logo__word small { font-family: var(--font-body); font-weight: 500; font-size: .66rem; letter-spacing: .02em; color: var(--text-muted); }
.footer .logo__word small { color: rgba(255,255,255,.55); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--white); display: grid; place-items: center;
  transition: clip-path .9s var(--ease) .1s; clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__in { display: grid; justify-items: center; gap: 1.2rem; }
.loader .mark { width: 78px; height: 78px; }
.loader .mark__path { animation: draw 1.2s var(--ease) both; }
.loader__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; overflow: hidden; }
.loader__name span { display: inline-block; animation: rise .8s .2s var(--ease) both; transform: translateY(110%); }
.loader__bar { width: 160px; height: 3px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; animation: load 1.1s var(--ease) both; }
@keyframes load { from { transform: scaleX(0); } }
.loader.skip { display: none; }

/* ---------- Scroll progress + cursor ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); margin: -5px 0 0 -5px; opacity: 0; transform: translate3d(-100px,-100px,0);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s;
  display: grid; place-items: center; color: var(--white); font: 600 11px/1 var(--font-heading);
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(0,72,169,.16); }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--brand); }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header (floating pill) ---------- */
.header-placeholder { display: block; height: 92px; }
.header { position: sticky; top: 0; z-index: 100; padding-top: 14px; transition: padding .4s var(--ease); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; padding: 0 .6rem 0 1rem;
  background: rgba(255,255,255,.78); border: 1px solid transparent; border-radius: var(--r-pill);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.header.is-scrolled { padding-top: 10px; }
.header.is-scrolled .header__inner { border-color: var(--line); box-shadow: 0 10px 40px -18px rgba(0,38,92,.28); background: rgba(255,255,255,.9); }
.header.is-hidden { transform: translateY(-120%); }
.header { transition: transform .45s var(--ease), padding .4s var(--ease); }

.nav { display: none; }
.nav ul { display: flex; gap: .2rem; position: relative; }
.nav a { position: relative; z-index: 1; display: block; padding: .55rem .95rem; border-radius: var(--r-pill); font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--black); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); }
.nav__pill { position: absolute; z-index: 0; top: 0; height: 100%; border-radius: var(--r-pill); background: var(--brand-soft); opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
.header__cta { display: none; }

.burger { width: 48px; height: 48px; border-radius: 50%; background: var(--black); display: grid; place-items: center; position: relative; z-index: 120; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease), background .2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger { background: var(--white); }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); background: var(--black); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); background: var(--black); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--brand); color: var(--white);
  padding: 120px var(--gutter) 2rem; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 48px) 47px); transition: clip-path .75s var(--ease); visibility: hidden; overflow: auto;
}
.mobile-menu::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 48px) 47px); visibility: visible; }
.mobile-menu a.mm-link {
  position: relative; display: flex; align-items: baseline; gap: .8rem; font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.2;
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease);
}
.mobile-menu a.mm-link small { font-size: .8rem; font-weight: 500; opacity: .55; letter-spacing: 0; }
.menu-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
.mobile-menu a.mm-link[aria-current="page"] { color: rgba(255,255,255,.55); }
.mobile-menu__foot { position: relative; display: grid; gap: .3rem; font-size: var(--fs-sm); opacity: .9; margin-top: 2rem; }
.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .nav { display: block; } .header__cta { display: inline-flex; } .burger, .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); overflow: clip; }
.hero__glow {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), rgba(0,72,169,.10), transparent 60%);
  transition: background .2s;
}
.blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob--1 { width: 460px; height: 460px; right: -120px; top: -80px; background: #cfe0f8; animation: float1 14s ease-in-out infinite; }
.blob--2 { width: 340px; height: 340px; left: -140px; bottom: 0; background: #e3ecfa; animation: float2 18s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-60px, 50px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(70px, -40px) scale(.95); } }

.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }

.status { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .7rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; background: var(--white); box-shadow: var(--shadow-sm); }
.status__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; flex: none; }
.status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #16a34a; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.055em; line-height: .9; margin: 1.4rem 0 1.4rem; }
.hero__title .row { display: block; white-space: nowrap; }
.hero__title .ch { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; animation: chIn .9s var(--ease) forwards; }
.hero__title .row--outline .ch { color: transparent; -webkit-text-stroke: 2px var(--black); }
.hero__title .row--outline:hover .ch { color: var(--brand); -webkit-text-stroke-color: var(--brand); transition: color .4s, -webkit-text-stroke-color .4s; }
.hero__title .hand { display: inline-block; font-size: .42em; vertical-align: .9em; margin-left: .15em; animation: wave 2.4s 1.4s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes chIn { to { transform: none; opacity: 1; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }

.rotator { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-xl); letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em; margin-bottom: 1.1rem; }
.rotator__word { position: relative; color: var(--brand); display: inline-block; min-width: 1ch; }
.rotator__word::after { content: ""; display: inline-block; width: 3px; height: .95em; margin-left: 3px; background: var(--brand); vertical-align: -.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 48ch; }
.hero__lead strong { color: var(--black); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.trust__faces { display: flex; }
.trust__faces span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-left: -10px;
  background: var(--brand-soft); color: var(--brand); border: 3px solid var(--white); font: 700 .85rem var(--font-heading);
}
.trust__faces span:first-child { margin-left: 0; }
.trust__faces span:nth-child(2) { background: var(--black); color: var(--white); }
.trust__faces span:nth-child(3) { background: var(--brand); color: var(--white); }
.trust b { font-family: var(--font-heading); display: flex; align-items: center; gap: .4rem; }
.trust b .stars { display: inline-flex; color: #f5a623; gap: 1px; }
.trust b .stars svg { width: 15px; height: 15px; }
.trust small { display: block; color: var(--text-muted); font-size: var(--fs-sm); }

.fade-in { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; }
.fade-in.d1 { animation-delay: .45s; } .fade-in.d2 { animation-delay: .6s; } .fade-in.d3 { animation-delay: .75s; } .fade-in.d4 { animation-delay: .9s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Hero visual: lead machine + orbit */
.visual { position: relative; padding: clamp(1rem, 4vw, 2.5rem) 0; }
.orbit { position: absolute; z-index: -1; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.orbit__ring { position: absolute; inset: 0; border: 1.5px dashed var(--brand-line); border-radius: 50%; animation: spin 50s linear infinite; }
.orbit__ring--2 { inset: 14%; border-style: solid; border-color: var(--brand-soft); animation-duration: 36s; animation-direction: reverse; }
.orbit__ring span {
  position: absolute; width: 48px; height: 48px; margin: -24px; border-radius: 14px; background: var(--white);
  display: grid; place-items: center; box-shadow: var(--shadow-md); border: 1px solid var(--line);
  animation: spin 50s linear infinite reverse;
}
.orbit__ring--2 span { animation-duration: 36s; animation-direction: normal; }
.orbit__ring span img { width: 26px; height: 26px; object-fit: contain; }
.orbit__ring span:nth-child(1) { left: 50%; top: 0; }
.orbit__ring span:nth-child(2) { left: 100%; top: 50%; }
.orbit__ring span:nth-child(3) { left: 50%; top: 100%; }
.orbit__ring span:nth-child(4) { left: 0; top: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1023px) { .orbit { width: 100%; } }

.machine { position: relative; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-lg); max-width: 520px; margin-inline: auto; }
.machine__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; gap: 1rem; }
.machine__title { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); }
.machine__live { font-size: var(--fs-xs); color: var(--brand); font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
.machine__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: blink 1.2s infinite; }
.flow { position: relative; display: grid; gap: .45rem; }
.flow::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.flow__bar { position: absolute; left: 21px; top: 22px; width: 2px; height: 0; background: var(--brand); transition: height .6s var(--ease); }
.flow__dot { position: absolute; left: 16px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(0,72,169,.18); transition: transform .6s var(--ease); z-index: 2; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .85rem; padding: .5rem .7rem .5rem 0; border-radius: var(--r-md); transition: background .4s; }
.step__icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--text-muted); border: 1px solid var(--line); transition: all .45s var(--ease); }
.step__icon svg { width: 20px; height: 20px; }
.step__name { font-family: var(--font-heading); font-weight: 600; font-size: .95rem; line-height: 1.25; display: block; }
.step__meta { font-size: var(--fs-xs); color: var(--text-muted); }
.step__time { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.step.is-active { background: var(--brand-soft); }
.step.is-active .step__icon, .step.is-done .step__icon { background: var(--brand); color: var(--white); border-color: var(--brand); }
.step.is-active .step__icon { transform: scale(1.08); }
.step.is-done .step__time, .step.is-active .step__time { opacity: 1; }
.machine__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1rem; }
.mstat { border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem .9rem; background: var(--white); }
.mstat b { display: block; font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.mstat span { font-size: var(--fs-xs); color: var(--text-muted); }

.chip-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem; padding: .7rem .95rem; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: var(--fs-xs); line-height: 1.3;
  animation: bob 5s ease-in-out infinite;
}
.chip-float b { display: block; font-family: var(--font-heading); font-size: .85rem; }
.chip-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--white); flex: none; }
.chip-float .ic svg { width: 18px; height: 18px; }
.chip-float--toast { left: -2rem; bottom: 6.6rem; background: var(--black); color: var(--white); border-color: var(--black); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); animation: none; width: min(300px, 86%); }
.chip-float--toast.show { opacity: 1; transform: none; }
.chip-float--toast .ic { border-radius: 50%; font: 700 .9rem var(--font-heading); }
.chip-float--speed { right: -1.5rem; top: -.4rem; animation-delay: -2s; }
.gauge { width: 42px; height: 42px; flex: none; }
.gauge circle { fill: none; stroke-width: 4; }
.gauge .g-bg { stroke: var(--brand-soft); }
.gauge .g-fg { stroke: #16a34a; stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1.6s var(--ease); }
.gauge.is-on .g-fg { stroke-dashoffset: 2.3; }
.gauge text { font: 700 12px var(--font-heading); fill: #16a34a; }
@keyframes bob { 50% { transform: translateY(-9px); } }
@media (max-width: 1100px) { .chip-float--toast { left: .5rem; } .chip-float--speed { right: .5rem; } }

.scroll-cue { display: none; }
@media (min-width: 1024px) {
  .scroll-cue { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.5rem; font-size: var(--fs-xs); color: var(--text-muted); }
  .scroll-cue i { width: 22px; height: 34px; border: 1.5px solid var(--text-muted); border-radius: 12px; position: relative; }
  .scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); animation: cue 1.6s var(--ease) infinite; }
}
@keyframes cue { to { transform: translateY(12px); opacity: 0; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--white); padding: 1.5rem 1.25rem; position: relative; overflow: hidden; transition: background .4s; }
.stat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.stat:hover::after { transform: scaleX(1); }
.stat:hover { background: var(--brand-soft); }
.stat b { display: block; font-family: var(--font-heading); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat b sup { font-size: .5em; color: var(--brand); vertical-align: super; margin-left: 2px; }
.stat > span { color: var(--text-muted); font-size: var(--fs-sm); display: block; margin-top: .45rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { padding: 1.9rem 1.6rem; } }

/* ---------- Marquees & crossing bars ---------- */
.marquee { overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; animation: scroll 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes scroll { to { transform: translateX(-50%); } }

.xbars { position: relative; height: clamp(190px, 22vw, 290px); margin-block: clamp(1rem, 3vw, 2.5rem); overflow: hidden; }
.xbar { position: absolute; left: -5%; width: 110%; top: 50%; padding: 1.15rem 0; color: var(--white); background: var(--brand); }
.xbar--a { transform: translateY(-50%) rotate(-5deg); z-index: 1; }
.xbar--b { transform: translateY(-50%) rotate(5deg); z-index: 2; box-shadow: 0 18px 40px -18px rgba(0,30,80,.55); background: var(--brand); border-block: 2px solid rgba(255,255,255,.18); }
.xbar--b .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.xbar__item { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.15rem, .9rem + 1vw, 1.75rem); letter-spacing: -0.02em; }
.xbar__item svg { width: 22px; height: 22px; opacity: .75; }
.xbar--b .xbar__item:nth-child(odd) { color: transparent; -webkit-text-stroke: 1.2px var(--white); }

.words { padding-block: .5rem; }
.words__item { font-family: var(--font-heading); font-weight: 800; font-size: clamp(3rem, 2rem + 6vw, 7rem); letter-spacing: -0.05em; padding-right: 2.5rem; line-height: 1.05; color: transparent; -webkit-text-stroke: 1.5px var(--brand-line); transition: color .4s, -webkit-text-stroke-color .4s; }
.words__item:hover { color: var(--brand); -webkit-text-stroke-color: var(--brand); }

/* ---------- Statement (scroll-highlight words) ---------- */
.statement { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.7rem, 1rem + 2.6vw, 3.2rem); line-height: 1.22; letter-spacing: -0.035em; max-width: 26ch; }
.statement em { font-style: normal; }
.statement .w { color: #c9d0db; transition: color .35s; }
.statement .w.on { color: var(--black); }
.statement .w.on.hl { color: var(--brand); }
.statement-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .statement-wrap { grid-template-columns: 240px 1fr; } }
.statement-side { display: grid; gap: 1rem; align-content: start; }
.statement-side .avatar-lg { width: 120px; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--brand-soft); transform: rotate(-4deg); box-shadow: var(--shadow-md); transition: transform .6s var(--ease); }
.statement-side .avatar-lg:hover { transform: rotate(3deg) scale(1.05); }
.statement-side .avatar-lg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Services: sticky stacking cards ---------- */
.stack { display: grid; gap: 1.5rem; }
.stack-card {
  position: sticky; top: calc(100px + var(--i, 0) * 18px);
  display: grid; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 32px);
  box-shadow: 0 -12px 40px -24px rgba(0,38,92,.25); transform-origin: top center;
  transition: border-color .4s;
}
.stack-card:hover { border-color: var(--brand-line); }
@media (min-width: 900px) { .stack-card { grid-template-columns: 1fr 1.05fr; min-height: 420px; } }
.stack-card__media { position: relative; overflow: hidden; min-height: 240px; background: var(--surface); }
.stack-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stack-card:hover .stack-card__media img { transform: scale(1.06); }
.stack-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,26,64,.45)); }
.stack-card__num { position: absolute; z-index: 2; left: 1.3rem; bottom: 1.1rem; font: 800 3.4rem/1 var(--font-heading); letter-spacing: -.05em; color: var(--white); }
.stack-card__body { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }
.stack-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: transform .5s var(--ease), background .4s, color .4s; }
.stack-card__icon svg { width: 26px; height: 26px; }
.stack-card:hover .stack-card__icon { background: var(--brand); color: var(--white); transform: rotate(-8deg); }
.stack-card h3 { font-size: var(--fs-2xl); }
.stack-card p { color: var(--text-muted); font-size: var(--fs-lg); }
.stack-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.stack-card .actions { margin-top: auto; padding-top: .5rem; }

/* ---------- Work cards & slider ---------- */
.work { display: block; position: relative; }
.work__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.work:hover .work__frame { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.work__bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; background: var(--white); border-bottom: 1px solid var(--line); }
.work__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .3s; }
.work:hover .work__bar i:nth-child(1) { background: #ff5f57; }
.work:hover .work__bar i:nth-child(2) { background: #febc2e; }
.work:hover .work__bar i:nth-child(3) { background: #28c840; }
.work__url { margin-left: .6rem; flex: 1; font-size: var(--fs-xs); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .15rem .7rem; border-radius: var(--r-pill); background: var(--surface); }
.work__shot { --h: 320px; position: relative; height: var(--h); overflow: hidden; background: var(--surface); }
.work__shot img { opacity: 0; color: transparent; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 8s cubic-bezier(.45,.05,.55,.95); will-change: transform; }
.work:hover .work__shot img, .work:focus-visible .work__shot img { transform: translateY(calc(-100% + var(--h))); transition-duration: var(--dur-scroll, 8s); }
.work__shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, rgba(0,0,0,.18)); opacity: 0; transition: opacity .4s; }
.work:hover .work__shot::after { opacity: 1; }
.work__pill { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: var(--r-pill); background: var(--brand); color: var(--white); font: 600 var(--fs-xs) var(--font-heading); transform: translateY(14px); opacity: 0; transition: all .45s var(--ease); }
.work:hover .work__pill, .work:focus-visible .work__pill { transform: none; opacity: 1; }
.work__hint { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .8rem; border-radius: var(--r-pill); background: rgba(255,255,255,.92); font-size: var(--fs-xs); font-weight: 600; transition: opacity .3s; }
.work:hover .work__hint { opacity: 0; }
.work__info { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem .25rem 0; }
.work__info h3 { font-size: 1.25rem; transition: color .3s; }
.work:hover .work__info h3 { color: var(--brand); }
.work__info p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .25rem; }
.work__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.tag { font-size: var(--fs-xs); font-weight: 500; padding: .25rem .65rem; border-radius: var(--r-pill); background: var(--surface); color: var(--text-muted); border: 1px solid var(--line); }
.tag--brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.platform { flex: none; align-self: start; font-size: var(--fs-xs); font-weight: 600; color: var(--brand); padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--brand-soft); }
.shot-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .6rem; color: var(--text-muted); font-size: var(--fs-xs); text-align: center; padding: 1rem; }
.shot-loading::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 1s linear infinite; }
.work__shot img.ready { opacity: 1; transition: opacity .5s, transform 8s cubic-bezier(.45,.05,.55,.95); }
.work__shot img.ready + .shot-loading { display: none; }
.device img { color: transparent; }

.work-grid { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.work.is-hidden { display: none; }
.work.pop { animation: pop .55s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 400px); gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: .5rem var(--gutter) 1.5rem 0; margin-right: calc(50% - 50vw); scrollbar-width: none;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider__track.dragging .work { pointer-events: none; }
.slider__track > * { scroll-snap-align: start; }

.slider__ui { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.slider__progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.slider__progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s var(--ease); }
.slider__count { font: 600 var(--fs-sm) var(--font-heading); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; }
.slider__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--black); transition: all .35s var(--ease); flex: none; }
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn--prev svg { transform: rotate(180deg); }
.slider__btn:hover { background: var(--brand); border-color: var(--brand); color: var(--white); transform: scale(1.06); }
.slider__toggle { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); padding: .4rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line); }

/* Filters */
.filters { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; padding: .55rem 1.05rem; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; background: var(--white); transition: all .3s var(--ease); }
.chip:hover { border-color: var(--black); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.chip small { opacity: .55; margin-left: .3rem; }
.chips--platform .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); }
.result-count { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Skills (bento with spotlight) ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.skill {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 1rem; justify-content: space-between;
  min-height: 170px; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), color .45s;
}
.skill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--brand);
  clip-path: circle(0% at var(--x) var(--y)); transition: clip-path .65s var(--ease);
}
.skill::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(220px circle at var(--x) var(--y), rgba(0,72,169,.12), transparent 70%); opacity: 0; transition: opacity .3s; }
.skill:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow-md); color: var(--white); }
.skill:hover::before { clip-path: circle(150% at var(--x) var(--y)); }
.skill:hover::after { opacity: 1; }
.skill__logo { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), background .4s; }
.skill__logo img { width: 30px; height: 30px; object-fit: contain; }
.skill:hover .skill__logo { background: var(--white); transform: rotate(-12deg) scale(1.08); }
.skill h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.skill p { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .25rem; transition: color .4s; }
.skill:hover p { color: rgba(255,255,255,.82); }
.skill__arrow { position: absolute; right: 1.2rem; top: 1.2rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); opacity: 0; transform: scale(.6) rotate(-45deg); transition: all .45s var(--ease); }
.skill:hover .skill__arrow { opacity: 1; transform: none; border-color: rgba(255,255,255,.5); }
@media (min-width: 760px) {
  .skill--wide { grid-column: span 2; }
}

/* ---------- Experience timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.25rem; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__fill { position: absolute; left: 10px; top: 8px; width: 2px; height: calc(var(--p, 0) * (100% - 16px)); background: var(--brand); transition: height .15s linear; }
.job {
  position: relative; display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
  transition: border-color .4s, box-shadow .5s var(--ease), transform .5s var(--ease);
}
.job::before { content: ""; position: absolute; left: -31px; top: 1.9rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--brand-line); transition: all .4s; }
.job.is-current::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.job:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateX(6px); }
.job:hover::before { border-color: var(--brand); }
@media (min-width: 900px) { .job { grid-template-columns: 210px 1fr 1.3fr; align-items: start; gap: 2rem; padding: 1.75rem 2rem; } }
.job__date { font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.job__date b { display: block; color: var(--brand); font-family: var(--font-heading); font-weight: 600; }
.job__now { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; padding: .2rem .65rem; border-radius: var(--r-pill); background: #e8f7ee; color: #146c35; font-size: var(--fs-xs); font-weight: 600; }
.job__co { display: flex; gap: 1rem; align-items: center; }
.job__logo { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 15px; border: 1px solid var(--line); background: var(--white); padding: 7px; transition: transform .5s var(--ease); overflow: hidden; }
.job__logo--dark { background: var(--black); border-color: var(--black); }
.job__logo img { width: 100%; height: 100%; object-fit: contain; }
.job:hover .job__logo { transform: rotate(-6deg) scale(1.06); }
.job__co h3 { font-size: 1.3rem; }
.job__co a:hover h3 { color: var(--brand); }
.job__co span { font-size: var(--fs-sm); color: var(--text-muted); }
.job__desc { color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 1.25rem; }
.quote { flex: none; width: min(400px, 82vw); margin-right: 1.25rem; white-space: normal; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.quote:hover { border-color: var(--brand); transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 2px; color: #f5a623; }
.stars svg { width: 17px; height: 17px; }
.quote p { font-size: 1.02rem; line-height: 1.6; }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); }
.quote__who .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); font: 700 1rem var(--font-heading); }
.quote__who b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); }
.quote__who span { font-size: var(--fs-xs); color: var(--text-muted); }
.quotes .marquee__track { animation-duration: 60s; align-items: stretch; }

/* ---------- Blog cards ---------- */
.posts { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; gap: 1rem; }
.post__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post__media::after { content: ""; position: absolute; inset: 0; background: var(--brand); mix-blend-mode: multiply; opacity: 0; transition: opacity .5s; }
.post:hover .post__media img { transform: scale(1.07); }
.post:hover .post__media::after { opacity: .35; }
.post__cat { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--white); font-size: var(--fs-xs); font-weight: 600; color: var(--brand); }
.post__meta { display: flex; gap: 1rem; font-size: var(--fs-xs); color: var(--text-muted); }
.post h3 { font-size: 1.3rem; line-height: 1.25; transition: color .3s; }
.post:hover h3 { color: var(--brand); }
.post p { color: var(--text-muted); font-size: var(--fs-sm); }
.post__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .3rem; }
.post__foot span { font: 600 var(--fs-sm) var(--font-heading); }
.circle-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--black); transition: all .45s var(--ease); }
.circle-arrow svg { width: 17px; height: 17px; transition: transform .45s var(--ease); }
.post:hover .circle-arrow { background: var(--brand); border-color: var(--brand); color: var(--white); }
.post:hover .circle-arrow svg { transform: rotate(45deg); }
@media (min-width: 960px) {
  .post--featured { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; grid-column: 1 / -1; }
  .post--featured h3 { font-size: var(--fs-2xl); }
  .post--featured p { font-size: var(--fs-base); }
}

/* ---------- Blue band ---------- */
.band { position: relative; overflow: hidden; background: var(--brand); color: var(--white); border-radius: clamp(var(--r-lg), 3vw, 40px); }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); }
.band > * { position: relative; }
.process { display: grid; gap: 1px; background: rgba(255,255,255,.18); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.pstep { background: var(--brand); padding: 2rem 1.6rem; transition: background .4s; }
.pstep:hover { background: var(--brand-dark); }
.pstep__n { font: 800 3.2rem/1 var(--font-heading); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.6); transition: color .4s; }
.pstep:hover .pstep__n { color: var(--white); }
.pstep h3 { font-size: 1.35rem; margin: 1.2rem 0 .5rem; }
.pstep p { opacity: .82; font-size: var(--fs-sm); }

/* ---------- Launch section ---------- */
.launch { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .launch { grid-template-columns: 1fr 1fr; } }
.launch h2 { font-size: var(--fs-3xl); margin-top: 1rem; }
.launch p { color: var(--text-muted); font-size: var(--fs-lg); margin: 1.2rem 0 2rem; max-width: 46ch; }
.devices { position: relative; min-height: 420px; }
.device { position: absolute; background: var(--white); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform .8s var(--ease); }
.device__bar { display: flex; gap: 5px; align-items: center; padding: .55rem .75rem; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--text-muted); }
.device__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.device__bar span { margin-left: .4rem; }
.device .shot-wrap { height: calc(100% - 32px); overflow: hidden; background: var(--surface); }
.device img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 6s ease-in-out; }
.devices:hover .device img { transform: translateY(calc(-100% + 260px)); }
.device--a { width: 78%; height: 310px; left: 0; top: 0; transform: rotate(-3deg); }
.device--b { width: 62%; height: 280px; right: 0; bottom: 0; transform: rotate(3deg); }
.devices:hover .device--a { transform: rotate(0) translate(-8px, -8px); }
.devices:hover .device--b { transform: rotate(0) translate(8px, 8px); }
.floating { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-md); font: 600 var(--fs-xs) var(--font-heading); border: 1px solid var(--line); animation: bob 4s ease-in-out infinite; }
.floating img { width: 18px; height: 18px; object-fit: contain; }
.floating svg { width: 16px; height: 16px; }
.floating--1 { left: 6%; bottom: 18%; } .floating--2 { right: 4%; top: 6%; animation-delay: -1.2s; }
.floating--3 { left: 42%; top: 46%; background: var(--black); color: var(--white); border-color: var(--black); animation-delay: -2.4s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; isolation: isolate; overflow: hidden; }
.page-hero h1 { font-size: var(--fs-3xl); max-width: 18ch; margin: 1.1rem 0 1.4rem; }
.page-hero h1 .line { display: block; overflow: hidden; padding-bottom: .05em; }
.page-hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.page-hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.page-hero p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 58ch; }
.page-hero__bg { display: none; }
@media (min-width: 760px) { .page-hero__bg { display: block; position: absolute; right: -4%; top: 52%; transform: translateY(-50%); z-index: -1; font: 800 clamp(8rem, 22vw, 22rem)/1 var(--font-heading); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--brand-line); white-space: nowrap; pointer-events: none; opacity: .7; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); color: var(--text-muted); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Pricing ---------- */
.tabs { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); margin-bottom: 2rem; max-width: 100%; }
.tabs__glider { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: var(--r-pill); background: var(--black); transition: transform .5s var(--ease), width .5s var(--ease); }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem clamp(.8rem, 2.5vw, 1.8rem); border-radius: var(--r-pill); font: 600 var(--fs-sm) var(--font-heading); transition: color .4s; }
.tab img { width: 20px; height: 20px; object-fit: contain; }
.tab[aria-selected="true"] { color: var(--white); }
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plans[hidden] { display: none; }
.plans.show .plan { animation: pop .6s var(--ease) both; }
.plans.show .plan:nth-child(3) { animation-delay: .08s; } .plans.show .plan:nth-child(4) { animation-delay: .16s; }
.plans__intro { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--fs-lg); margin-bottom: .5rem; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.plan--hot { background: var(--brand); color: var(--white); border-color: var(--brand); }
.plan--hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.plan--hot:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan__hot { position: absolute; top: 1.5rem; right: 1.5rem; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--white); color: var(--brand); font-size: var(--fs-xs); font-weight: 700; }
.plan h3 { font-size: 1.5rem; }
.plan__desc { color: var(--text-muted); font-size: var(--fs-sm); margin: .5rem 0 1.4rem; min-height: 3em; }
.plan--hot .plan__desc, .plan--hot .plan__note, .plan--hot .plan__scope { color: rgba(255,255,255,.82); }
.plan__price { display: flex; align-items: baseline; gap: .5rem; }
.plan__price b { font: 700 3.4rem/1 var(--font-heading); letter-spacing: -0.05em; }
.plan__price span { font-size: var(--fs-sm); color: var(--text-muted); }
.plan--hot .plan__price span { color: rgba(255,255,255,.75); }
.plan__scope { font: 600 var(--fs-sm) var(--font-heading); margin: .9rem 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.plan--hot .plan__scope { border-color: rgba(255,255,255,.25); }
.checks { display: grid; gap: .7rem; margin: 1.8rem 0 2rem; }
@media (min-width: 560px) { .checks--2 { grid-template-columns: 1fr 1fr; } }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.plan .checks { margin: 0 0 1.75rem; gap: .65rem; font-size: var(--fs-sm); }
.plan--hot .checks li svg { color: var(--white); }
.plan__note { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.2rem; margin-top: auto; }
.plan__note svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: .85fr 1.15fr; gap: 5rem; } .faq-wrap > :first-child { position: sticky; top: 120px; } }
.faq-wrap h2 { font-size: var(--fs-3xl); margin: 1rem 0 1.2rem; }
.faq-wrap > div > p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 44ch; }
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); transition: border-color .3s, box-shadow .3s; }
.faq details:hover { border-color: var(--brand-line); }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; font-family: var(--font-heading); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); transition: background .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] summary i { background: var(--brand); color: var(--white); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }
.faq details[open] p { animation: fadeUp .45s var(--ease); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 980px) { .about-grid { grid-template-columns: 1.3fr .9fr; gap: 5rem; align-items: start; } }
.about-text p { font-size: var(--fs-lg); color: var(--text-muted); }
.about-text p + p { margin-top: 1.2rem; }
.about-text p.big { font: 500 var(--fs-xl)/1.4 var(--font-heading); color: var(--black); letter-spacing: -0.02em; }
.profile { position: relative; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); padding: .8rem; box-shadow: var(--shadow-md); transition: transform .2s ease-out; }
@media (min-width: 980px) { .profile { position: sticky; top: 110px; } }
.profile__img { position: relative; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--brand-soft); }
.profile__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.profile:hover .profile__img img { transform: scale(1.04); }
.profile__badge { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: var(--r-pill); background: rgba(255,255,255,.94); font-size: var(--fs-xs); font-weight: 600; }
.profile__body { padding: 1.3rem .7rem .6rem; }
.profile__body h3 { font-size: 1.45rem; }
.profile__body > span { color: var(--brand); font-weight: 600; font-size: var(--fs-sm); }
.profile__list { display: grid; gap: .55rem; margin: 1.1rem 0 1.3rem; font-size: var(--fs-sm); }
.profile__list li { display: flex; gap: .6rem; align-items: center; color: var(--text-muted); }
.profile__list svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.profile__actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.socials { display: flex; gap: .5rem; }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: all .4s var(--ease); }
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--brand); border-color: var(--brand); color: var(--white); transform: translateY(-3px) rotate(-8deg); }
.hobbies { display: flex; flex-wrap: wrap; gap: .7rem; }
.hobby { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.35rem; border-radius: var(--r-pill); border: 1px solid var(--line); font: 600 1rem var(--font-heading); background: var(--white); transition: all .4s var(--ease); }
.hobby svg { width: 20px; height: 20px; color: var(--brand); transition: color .3s; }
.hobby:hover { background: var(--black); color: var(--white); border-color: var(--black); transform: rotate(-3deg) translateY(-3px); }
.hobby:hover svg { color: var(--white); }
.seg { display: inline-flex; gap: .4rem; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-pill); margin-bottom: 2rem; background: var(--surface); }
.seg button { padding: .6rem 1.2rem; border-radius: var(--r-pill); font: 600 var(--fs-sm) var(--font-heading); transition: all .35s var(--ease); }
.seg button[aria-selected="true"] { background: var(--black); color: var(--white); }
.seg-panel[hidden] { display: none; }
.cards-2 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.info-card { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.info-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem; transition: all .4s var(--ease); }
.info-card:hover .ic { background: var(--brand); color: var(--white); transform: rotate(-8deg); }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.info-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.info-card small { display: block; color: var(--brand); font-weight: 600; margin-bottom: .4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; } }
.contact-list { display: grid; gap: .8rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
a.contact-item:hover { border-color: var(--brand); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact-item .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--brand); color: var(--white); flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.contact-item b { font: 600 .98rem var(--font-heading); overflow-wrap: anywhere; }
.avail { margin-top: 1.5rem; padding: 1.4rem; border-radius: var(--r-md); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.avail b { display: flex; align-items: center; gap: .7rem; font-family: var(--font-heading); }
.avail p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .4rem; }
.form { padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form h2 { font-size: var(--fs-2xl); margin-bottom: .5rem; }
.form > p { color: var(--text-muted); margin-bottom: 1.8rem; }
.form__row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { position: relative; margin-bottom: 1rem; }
.field input, .field textarea { width: 100%; padding: 1.45rem 1rem .6rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--white); outline: none; transition: border-color .3s, box-shadow .3s; font-size: 1rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; left: 1rem; top: 1.05rem; color: var(--text-muted); pointer-events: none; transition: all .25s var(--ease); font-size: 1rem; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,72,169,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: .45rem; font-size: .75rem; color: var(--brand); font-weight: 600; }
.field-label { display: block; font: 600 var(--fs-sm) var(--font-heading); margin: .4rem 0 .7rem; }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label { cursor: pointer; padding: .55rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-size: var(--fs-sm); font-weight: 500; transition: all .3s var(--ease); }
.pick label:hover { border-color: var(--black); }
.pick input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pick input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.form__note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 1rem; }
.form__msg { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); display: none; }
.form__msg.ok { display: block; background: #e8f7ee; color: #146c35; }
.form__msg.err { display: block; background: #fdecec; color: #a3201c; }

/* ---------- Article ---------- */
.article-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.article-hero h1 { font-size: var(--fs-3xl); max-width: 20ch; margin: 1.2rem 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; color: var(--text-muted); font-size: var(--fs-sm); }
.article-meta .author { display: flex; align-items: center; gap: .6rem; color: var(--black); font-weight: 600; }
.article-meta .author img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.article-cover { margin-top: 2.5rem; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--surface); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; gap: 3rem; }
@media (min-width: 1060px) { .article-layout { grid-template-columns: 1fr 300px; gap: 5rem; } }
.prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.8rem; line-height: 1.2; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose li { color: #262b33; }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: .6rem; list-style: none; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.8rem; }
.prose ul li::before { content: ""; position: absolute; left: .3rem; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--brand); color: var(--white); font-size: .75rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.prose strong { color: var(--black); }
.prose blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--r-md) var(--r-md) 0; font: 500 1.2rem/1.5 var(--font-heading); }
.aside-card { position: sticky; top: 110px; display: grid; gap: 1rem; }
.aside-box { padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.aside-box h4 { font-size: 1.05rem; margin-bottom: .7rem; }
.aside-box p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1rem; }
.aside-box--blue { background: var(--brand); color: var(--white); border-color: var(--brand); }
.aside-box--blue p { color: rgba(255,255,255,.85); }
.share { display: flex; gap: .5rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--black); color: var(--white); padding: clamp(4rem, 8vw, 6.5rem) 0 2rem; }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 20% 0%, #000 10%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 10%, transparent 60%); }
.footer > * { position: relative; }
.footer__big { font: 800 clamp(3rem, 1rem + 9vw, 9rem)/.95 var(--font-heading); letter-spacing: -0.05em; display: block; transition: color .4s; }
.footer__big:hover { color: var(--brand); }
.footer__big small { display: block; font: 500 var(--fs-lg) var(--font-body); letter-spacing: 0; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.footer__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.footer__grid { display: grid; gap: 2.5rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.14); }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.55); margin-bottom: 1rem; letter-spacing: 0; }
.footer p { color: rgba(255,255,255,.7); max-width: 36ch; }
.footer ul { display: grid; gap: .55rem; }
.footer ul a { color: rgba(255,255,255,.85); transition: color .3s, padding .3s var(--ease); }
.footer ul a:hover { color: var(--white); padding-left: 6px; }
.footer .social { border-color: rgba(255,255,255,.2); }
.footer .socials { margin-top: 1.5rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; font-size: var(--fs-sm); color: rgba(255,255,255,.5); }
.footer .mark__bg { fill: var(--brand); }

/* ---------- Floating buttons: WhatsApp + chatbot ---------- */
.wa-float { position: fixed; right: 22px; bottom: 96px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 26px; height: 26px; }

.bot { position: fixed; right: 18px; bottom: 18px; z-index: 150; font-size: var(--fs-sm); }
.bot__launch { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; box-shadow: 0 16px 34px -10px rgba(0,72,169,.7); transition: transform .4s var(--ease), background .3s; }
.bot__launch:hover { transform: scale(1.07); }
.bot__launch-ic svg { width: 26px; height: 26px; }
.bot__launch-x { position: absolute; font-size: 1.2rem; opacity: 0; transform: rotate(-90deg); transition: all .35s var(--ease); }
.bot__launch-ic { transition: all .35s var(--ease); }
.bot.is-open .bot__launch { background: var(--black); }
.bot.is-open .bot__launch-ic { opacity: 0; transform: rotate(90deg) scale(.5); }
.bot.is-open .bot__launch-x { opacity: 1; transform: none; }
.bot__ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ping 2.2s var(--ease) infinite; }
.bot.is-open .bot__ping { display: none; }
.bot__hint { position: absolute; right: 74px; bottom: 12px; width: max-content; max-width: 240px; padding: .7rem 1rem; border-radius: 16px 16px 4px 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: var(--fs-xs); font-weight: 500; opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .45s var(--ease); }
.bot__hint.show { opacity: 1; transform: none; }
.bot__panel {
  position: absolute; right: 0; bottom: 78px; width: min(380px, calc(100vw - 36px)); height: min(580px, calc(100dvh - 120px));
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,26,64,.4); transform-origin: bottom right; animation: botIn .45s var(--ease);
}
.bot__panel[hidden] { display: none; }
@keyframes botIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.bot__head { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: center; padding: 1rem 1.1rem; background: var(--brand); color: var(--white); position: relative; }
.bot__head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.bot__avatar { width: 42px; height: 42px; border-radius: 13px; background: var(--white); padding: 0; overflow: hidden; }
.bot__avatar .mark { width: 42px; height: 42px; }
.bot__head b { font-family: var(--font-heading); display: block; font-size: .98rem; }
.bot__head small { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); opacity: .85; }
.bot__head small i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.bot__lang { grid-column: 1 / -1; display: flex; gap: .3rem; margin-top: .6rem; position: relative; }
.bot__lang button { padding: .3rem .75rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: rgba(255,255,255,.14); transition: background .3s, color .3s; }
.bot__lang button[aria-pressed="true"] { background: var(--white); color: var(--brand); }
.bot__log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--surface); scroll-behavior: smooth; }
.msg { max-width: 86%; padding: .75rem .95rem; border-radius: 18px; line-height: 1.5; display: grid; gap: .15rem; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--brand); color: var(--white); border-bottom-right-radius: 6px; }
.msg__links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.msg__links a { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: var(--fs-xs); transition: background .3s, color .3s; }
.msg__links a:hover { background: var(--brand); color: var(--white); }
.msg__links a svg { width: 13px; height: 13px; }
.msg__wa { display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; justify-self: start; padding: .45rem .85rem; border-radius: var(--r-pill); background: #25d366; color: var(--white); font-weight: 600; font-size: var(--fs-xs); }
.msg__wa svg { width: 15px; height: 15px; }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: typing 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.bot__chips { display: flex; gap: .4rem; padding: .6rem 1rem; overflow-x: auto; border-top: 1px solid var(--line); background: var(--white); scrollbar-width: none; }
.bot__chips::-webkit-scrollbar { display: none; }
.bot__chips button { flex: none; padding: .45rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--brand-line); color: var(--brand); font-size: var(--fs-xs); font-weight: 600; transition: all .3s; }
.bot__chips button:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }
.bot__form { display: flex; gap: .5rem; padding: .7rem .8rem .8rem; background: var(--white); }
.bot__form input { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); outline: none; transition: border-color .3s; font-size: 16px; }
.bot__form input:focus { border-color: var(--brand); }
.bot__form button { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s; }
.bot__form button:hover { transform: scale(1.06); background: var(--black); }
.bot__form button svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .bot__panel { position: fixed; right: 10px; left: 10px; width: auto; bottom: 88px; height: calc(100dvh - 110px); } .bot__hint { display: none; } }

/* ---------- Scroll reveal (uses `translate`/`scale` so it never blocks hover transforms) ---------- */
[data-reveal] { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), color .45s, background .4s; }
[data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }
[data-reveal="scale"] { translate: 0 0; scale: .94; }
[data-reveal="left"] { translate: -34px 0; }
.no-js [data-reveal] { opacity: 1; translate: none; scale: 1; }

/* Image shimmer */
.img-load { background: linear-gradient(100deg, var(--surface) 30%, #eaeef4 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .fade-in, .hero__title .ch, .page-hero h1 .line > span { opacity: 1 !important; transform: none !important; translate: none !important; scale: 1 !important; }
  .marquee__track, .orbit__ring, .orbit__ring span { animation: none !important; }
  .loader { display: none; }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 1023px) {
  .visual { padding-top: 3.2rem; }
  .chip-float--speed { top: 0; right: .25rem; }
  .chip-float--toast { bottom: 5.8rem; }
}
@media (max-width: 700px) {
  .xbars { height: 230px; }
  .xbar--a { transform: translateY(-50%) rotate(-9deg); }
  .xbar--b { transform: translateY(-50%) rotate(9deg); }
  .xbar { padding: .85rem 0; }
  .stack-card__media { min-height: 180px; }
  .stack-card { top: calc(84px + var(--i, 0) * 12px); }
  .stack-card p { font-size: var(--fs-base); }
}

/* Touch screens: screenshots auto-scroll while the card is on screen */
@keyframes autoscroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + var(--h))); } }
@media (hover: none) {
  .work.in-view .work__shot img.ready { animation: autoscroll var(--dur-scroll, 10s) ease-in-out infinite alternate; }
}

/* ==========================================================================
   Hero: live website builder
   ========================================================================== */
.builder {
  position: relative; max-width: 560px; margin-inline: auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.builder__bar { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.builder__dots { display: flex; gap: 6px; }
.builder__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.builder__dots i:nth-child(2) { background: #febc2e; } .builder__dots i:nth-child(3) { background: #28c840; }
.builder__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; }
.builder__url svg { width: 13px; height: 13px; color: #16a34a; }
.b-url::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; background: var(--brand); vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
.builder__plat { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font: 600 var(--fs-xs) var(--font-heading); white-space: nowrap; transition: opacity .3s; }
.builder__plat img { width: 16px; height: 16px; object-fit: contain; }
.builder__plat.swap { opacity: 0; }

.builder__body { display: grid; grid-template-columns: 112px 1fr; min-height: 360px; }
.builder__steps { position: relative; list-style: none; margin: 0; padding: 1rem .9rem; border-right: 1px solid var(--line); display: grid; align-content: start; gap: .55rem; font: 600 var(--fs-xs) var(--font-heading); color: var(--text-muted); counter-reset: s; }
.builder__steps li { display: flex; align-items: center; gap: .5rem; transition: color .3s; }
.builder__steps li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all .35s var(--ease); flex: none; }
.builder__steps li.on { color: var(--black); }
.builder__steps li.on i { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.builder__steps li.done { color: var(--black); }
.builder__steps li.done i { background: var(--brand); border-color: var(--brand); }
.builder__steps li.done i::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.builder__meter { margin-top: .6rem; height: 4px; border-radius: 4px; background: var(--brand-soft); overflow: hidden; }
.builder__meter b { display: block; height: 100%; width: 0; background: var(--brand); transition: width .6s var(--ease); }

.builder__canvas { position: relative; padding: .9rem; display: grid; gap: .7rem; align-content: start; background:
  linear-gradient(var(--surface) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, var(--surface) 1px, transparent 1px) 0 0 / 18px 18px; }
.bl { border-radius: 12px; background: var(--white); border: 1px dashed transparent; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .55s var(--ease), transform .55s var(--ease), border-color .4s; }
.bl.in { opacity: 1; transform: none; }
.bl.edit { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,72,169,.08); }
.bl--nav { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; box-shadow: var(--shadow-sm); }
.b-logo { font: 800 .78rem var(--font-heading); letter-spacing: -.02em; color: var(--brand); }
.b-links { display: flex; gap: 6px; margin-left: auto; }
.b-links i { width: 22px; height: 5px; border-radius: 4px; background: var(--line); }
.b-btn { padding: .28rem .6rem; border-radius: var(--r-pill); background: var(--black); color: var(--white); font: 600 .62rem var(--font-heading); white-space: nowrap; }
.bl--hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: .7rem; padding: .8rem; align-items: center; box-shadow: var(--shadow-sm); }
.b-copy { display: grid; gap: .45rem; justify-items: start; }
.b-h { font: 800 clamp(.95rem, .6rem + 1.1vw, 1.25rem)/1.1 var(--font-heading); letter-spacing: -.03em; min-height: 2.2em; }
.b-line { display: block; height: 6px; width: 92%; border-radius: 4px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease) .2s; }
.b-line--s { width: 64%; transition-delay: .35s; }
.bl.in .b-line { transform: scaleX(1); }
.b-cta { margin-top: .2rem; padding: .35rem .75rem; border-radius: var(--r-pill); background: var(--brand); color: var(--white); font: 600 .66rem var(--font-heading); transform: scale(0); transition: transform .45s var(--ease) .5s; }
.bl.in .b-cta { transform: scale(1); }
.b-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--brand-soft); }
.b-img img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .25s; }
.bl.in .b-img img { clip-path: inset(0 0 0 0); }
.bl--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; background: transparent; }
.b-card { background: var(--white); border-radius: 10px; padding: .4rem; box-shadow: var(--shadow-sm); display: grid; gap: .25rem; opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); }
.bl--cards.in .b-card { opacity: 1; transform: none; }
.bl--cards.in .b-card:nth-child(2) { transition-delay: .12s; } .bl--cards.in .b-card:nth-child(3) { transition-delay: .24s; }
.b-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 7px; background: var(--brand-soft); }
.b-card b { font: 700 .66rem var(--font-heading); line-height: 1.2; }
.b-card small { font-size: .6rem; color: var(--text-muted); line-height: 1.2; }
.b-card.slot img { display: none; }
.b-card.slot { border: 1.5px solid var(--brand-line); padding: .55rem; }
.b-card.slot b { color: var(--brand); font-size: .74rem; }

.builder__done {
  position: absolute; left: 50%; bottom: 1rem; z-index: 4; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; border-radius: 16px; background: var(--black); color: var(--white); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px) scale(.9); opacity: 0; transition: all .5s var(--ease); white-space: nowrap; font-size: var(--fs-xs);
}
.builder__done.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.builder__done .ic { width: 32px; height: 32px; border-radius: 50%; background: #16a34a; display: grid; place-items: center; }
.builder__done .ic svg { width: 18px; height: 18px; }
.builder__done b { display: block; font: 600 .88rem var(--font-heading); }
.builder__done small { color: rgba(255,255,255,.7); }
.builder__cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; transform: translate(70%, 260px); transition: transform .9s cubic-bezier(.65,0,.35,1); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.builder__cursor svg { width: 22px; height: 22px; }
.builder__cursor.click svg { animation: clickPulse .35s ease; }
@keyframes clickPulse { 50% { transform: scale(.82); } }

.chip-float--client { left: -2.2rem; bottom: 2.4rem; animation-delay: -1s; }
@media (max-width: 1100px) { .chip-float--client { left: .3rem; bottom: -1.2rem; } }
@media (max-width: 520px) {
  .builder__body { grid-template-columns: 1fr; min-height: 0; }
  .builder__steps { grid-auto-flow: column; grid-auto-columns: max-content; gap: .8rem; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: .7rem .9rem; }
  .builder__meter { display: none; }
  .builder__plat .b-plat { display: none; }
  .chip-float--client { display: none; }
}

/* ==========================================================================
   Services: zig-zag clickable rows
   ========================================================================== */
.svc-rows { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.svc-row {
  position: relative; display: grid; gap: 1.5rem; align-items: center; padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line); border-radius: clamp(22px, 3vw, 32px); background: var(--white);
  transition: border-color .4s, box-shadow .6s var(--ease), transform .6s var(--ease), background .4s;
}
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
  .svc-row:nth-child(even) .svc-row__media { order: 2; }
}
.svc-row:hover { border-color: var(--brand-line); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.svc-row__media { position: relative; padding: 0 1.6rem 1.6rem 0; }
.svc-row:nth-child(even) .svc-row__media { padding: 0 0 1.6rem 1.6rem; }
.svc-row__main { aspect-ratio: 16 / 11; border-radius: clamp(16px, 2vw, 24px); overflow: hidden; background: var(--surface); }
.svc-row__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-row:hover .svc-row__main img { transform: scale(1.07); }
.svc-row__inset {
  position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  border: 5px solid var(--white); box-shadow: var(--shadow-md); background: var(--surface); transition: transform .8s var(--ease);
}
.svc-row:nth-child(even) .svc-row__inset { right: auto; left: 0; }
.svc-row__inset img { width: 100%; height: 100%; object-fit: cover; }
.svc-row:hover .svc-row__inset { transform: rotate(-4deg) translateY(-8px) scale(1.04); }
.svc-row:nth-child(even):hover .svc-row__inset { transform: rotate(4deg) translateY(-8px) scale(1.04); }
.svc-row__num {
  position: absolute; left: 1rem; top: 1rem; z-index: 2; min-width: 52px; height: 52px; padding: 0 .8rem; border-radius: 16px;
  display: grid; place-items: center; background: var(--brand); color: var(--white); font: 800 1.15rem var(--font-heading); letter-spacing: -.03em;
}
.svc-row:nth-child(even) .svc-row__num { left: auto; right: 1rem; }
.svc-row__body { display: flex; flex-direction: column; gap: 1rem; padding: .5rem clamp(.5rem, 2vw, 1.5rem) 1rem; }
.svc-row__plat { align-self: flex-start; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font: 600 var(--fs-xs) var(--font-heading); }
.svc-row h3 { font-size: var(--fs-2xl); transition: color .3s; }
.svc-row:hover h3 { color: var(--brand); }
.svc-row p { color: var(--text-muted); font-size: var(--fs-lg); }
.svc-row .checks { margin: .2rem 0 .4rem; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.svc-row__go { display: inline-flex; align-items: center; gap: .9rem; margin-top: .4rem; font: 600 var(--fs-base) var(--font-heading); }
.svc-row:hover .circle-arrow { background: var(--brand); border-color: var(--brand); color: var(--white); }
.svc-row:hover .circle-arrow svg { transform: rotate(45deg); }

/* ==========================================================================
   Service detail pages
   ========================================================================== */
.svc-hero { position: relative; isolation: isolate; color: var(--white); padding: clamp(5rem, 10vw, 8rem) 0 0; margin-top: -92px; padding-top: calc(92px + clamp(3.5rem, 8vw, 6rem)); overflow: hidden; }
.svc-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.svc-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0,22,56,.92) 0%, rgba(0,58,140,.78) 48%, rgba(0,72,169,.35) 100%); }
.svc-hero__shade::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.svc-hero h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); letter-spacing: -0.045em; margin: 1rem 0 1.2rem; max-width: 14ch; }
.svc-hero p { font-size: var(--fs-lg); max-width: 46ch; opacity: .9; }
.svc-hero .actions { margin-top: 2rem; }
.crumbs--light { color: rgba(255,255,255,.75); }
.crumbs--light a:hover { color: var(--white); }
.svc-hero__cards { display: grid; gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2rem; }
@media (min-width: 760px) { .svc-hero__cards { grid-template-columns: repeat(3, 1fr); } }
.glass { padding: 1.4rem 1.5rem; border-radius: var(--r-lg); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .4s, transform .5s var(--ease); }
.glass:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }
.glass b { display: block; font: 700 1.2rem var(--font-heading); margin-bottom: .3rem; }
.glass span { font-size: var(--fs-sm); opacity: .85; }
.page--overlay .header__inner { background: rgba(255,255,255,.9); }

.svc-intro { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .svc-intro { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.svc-intro h2 { font-size: var(--fs-3xl); margin: 1rem 0 1.2rem; }
.lead { font-size: var(--fs-lg); color: var(--text-muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .55rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; transition: all .3s var(--ease); }
.pill:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.collage { position: relative; padding: 0 0 3rem 3rem; }
.collage__a { aspect-ratio: 4 / 4.4; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.collage__a img, .collage__b img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage:hover .collage__a img { transform: scale(1.05); }
.collage__b { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow-lg); transform: rotate(-4deg); transition: transform .7s var(--ease); background: var(--surface); }
.collage:hover .collage__b { transform: rotate(0) translateY(-6px); }
.collage__chip { position: absolute; right: -.5rem; top: 1.5rem; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-lg); font-size: var(--fs-xs); animation: bob 5s ease-in-out infinite; }
.collage__chip b { display: block; font: 700 .9rem var(--font-heading); }
.collage__chip .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: var(--white); }
.collage__chip .ic svg { width: 18px; height: 18px; }

.feat-grid { display: grid; gap: 1rem; }
@media (min-width: 680px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { position: relative; overflow: hidden; isolation: isolate; padding: 1.75rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .7rem; transition: transform .5s var(--ease), box-shadow .5s, border-color .4s, color .4s; }
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); transform: translateY(101%); transition: transform .55s var(--ease); }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand); color: var(--white); }
.feat:hover::before { transform: none; }
.feat__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: all .4s; }
.feat__ic svg { width: 24px; height: 24px; }
.feat:hover .feat__ic { background: var(--white); transform: rotate(-8deg); }
.feat h3 { font-size: 1.2rem; }
.feat p { color: var(--text-muted); font-size: var(--fs-sm); transition: color .4s; }
.feat:hover p { color: rgba(255,255,255,.85); }
.feat--cta { background: var(--black); color: var(--white); border-color: var(--black); }
.feat--cta p { color: rgba(255,255,255,.75); }
.feat--cta .circle-arrow { margin-top: auto; border-color: var(--white); }
.feat--cta:hover .circle-arrow svg { transform: rotate(45deg); }

.img-band { position: relative; height: clamp(320px, 45vw, 560px); overflow: hidden; display: grid; align-items: end; color: var(--white); isolation: isolate; }
.img-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.img-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0,22,56,.85)); }
.img-band blockquote { margin: 0 auto; padding-bottom: clamp(2rem, 5vw, 4rem); }
.img-band p { font: 600 clamp(1.5rem, 1rem + 2vw, 2.6rem)/1.2 var(--font-heading); letter-spacing: -.03em; max-width: 26ch; }
.img-band cite { display: block; margin-top: 1rem; font-style: normal; opacity: .8; }

.mini-svcs { display: grid; gap: 1rem; }
@media (min-width: 640px) { .mini-svcs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .mini-svcs { grid-template-columns: repeat(5, 1fr); } }
.mini-svc { display: grid; gap: .8rem; padding: .7rem .7rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.mini-svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.mini-svc__img { aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--surface); }
.mini-svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mini-svc:hover .mini-svc__img img { transform: scale(1.08); }
.mini-svc b { font: 700 1.02rem/1.25 var(--font-heading); padding: 0 .3rem; }
.mini-svc .circle-arrow { width: 36px; height: 36px; margin: 0 .3rem; }
.mini-svc:hover .circle-arrow { background: var(--brand); border-color: var(--brand); color: var(--white); }
.mini-svc:hover .circle-arrow svg { transform: rotate(45deg); }

/* ==========================================================================
   Contact wizard
   ========================================================================== */
.wizard { position: relative; overflow: hidden; }
.wiz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wiz-head p { color: var(--text-muted); margin-top: .3rem; }
.wiz-count { flex: none; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font: 600 var(--fs-xs) var(--font-heading); }
.wiz-progress { height: 5px; border-radius: 5px; background: var(--brand-soft); margin: 1.4rem 0 .8rem; overflow: hidden; }
.wiz-progress i { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: inherit; transition: width .6s var(--ease); }
.wiz-labels { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font: 600 var(--fs-xs) var(--font-heading); color: var(--text-muted); }
.wiz-labels li { transition: color .3s; }
.wiz-labels li.on { color: var(--brand); }
.wiz-labels li.done { color: var(--black); }
.wiz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz-step.is-active { animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.wiz-q { font: 700 var(--fs-xl) var(--font-heading); letter-spacing: -.03em; margin-bottom: 1.2rem; padding: 0; }
.svc-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 640px) { .svc-pick { grid-template-columns: repeat(3, 1fr); } }
.svc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.svc-pick label { position: relative; cursor: pointer; display: grid; gap: .55rem; padding: .5rem .5rem .8rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); transition: all .35s var(--ease); }
.svc-pick label:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.svc-pick__img { aspect-ratio: 3 / 2; border-radius: 11px; overflow: hidden; background: var(--surface); }
.svc-pick__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-pick label:hover .svc-pick__img img { transform: scale(1.08); }
.svc-pick__img--plain { display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.svc-pick__img--plain svg { width: 30px; height: 30px; }
.svc-pick b { font: 600 .88rem/1.25 var(--font-heading); padding: 0 .3rem; }
.svc-pick__tick { position: absolute; right: .9rem; top: .9rem; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2px solid var(--white); box-shadow: var(--shadow-sm); transform: scale(0); transition: transform .35s var(--ease); }
.svc-pick__tick::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.svc-pick input:checked + label { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.svc-pick input:checked + label .svc-pick__tick { transform: scale(1); background: var(--brand); }
.svc-pick input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.wiz-nav { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.wiz-nav [hidden] { display: none; }
.btn--wa { --btn-bg: #25d366; --btn-fill: var(--black); border-color: #25d366; }
.wiz-review { display: grid; gap: 0; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.wiz-review div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.wiz-review div:nth-child(odd) { background: var(--surface); }
.wiz-review dt { font: 600 var(--fs-xs) var(--font-heading); color: var(--text-muted); }
.wiz-review dd { margin: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; white-space: pre-line; }
.wiz-review .wiz-edit { margin: .8rem 1rem; font-size: var(--fs-sm); }
.field.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wiz-done { text-align: center; padding: 2rem 0 1rem; animation: stepIn .5s var(--ease); }
.wiz-done__ic { width: 76px; height: 76px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: var(--white); box-shadow: 0 0 0 10px #e8f7ee; animation: nodePop .6s var(--ease); }
.wiz-done__ic svg { width: 36px; height: 36px; }
.wiz-done h3 { font-size: var(--fs-xl); }
.wiz-done p { color: var(--text-muted); margin: .6rem auto 1.5rem; max-width: 40ch; }

/* ---------- Floating buttons side by side: chatbot + WhatsApp (far right) ---------- */
.wa-float { right: 18px; bottom: 18px; width: 58px; height: 58px; }
.bot { right: 88px; bottom: 16px; }
.bot__panel { position: fixed; right: 18px; bottom: 90px; }
.bot__hint { right: 72px; bottom: 14px; }
@media (max-width: 520px) { .bot { right: 84px; } .bot__panel { left: 10px; right: 10px; bottom: 88px; } }

/* refinements */
.chip-float--client { left: -3rem; bottom: -1.6rem; }
@media (max-width: 1100px) { .chip-float--client { left: .3rem; bottom: -1.6rem; } }
.svc-pick label:last-of-type { grid-column: 1 / -1; grid-template-columns: 46px 1fr; align-items: center; padding: .55rem .9rem .55rem .55rem; }
.svc-pick label:last-of-type .svc-pick__img { aspect-ratio: 1; border-radius: 12px; }
.svc-pick label:last-of-type .svc-pick__img svg { width: 22px; height: 22px; }
.svc-pick label:last-of-type .svc-pick__tick { top: 50%; margin-top: -12px; }
@media (min-width: 900px) {
  .svc-row { align-items: stretch; }
  .svc-row__media { display: flex; }
  .svc-row__main { flex: 1; aspect-ratio: auto; min-height: 340px; }
  .svc-row__body { justify-content: center; }
}

/* ==========================================================================
   v3 fixes
   ========================================================================== */
.svc-row > * { min-width: 0; }
.svc-row__main { min-width: 0; }
main > section:last-child { padding-bottom: var(--section); }
/* custom cursor: only the "View" bubble over projects, no dot */
.cursor.is-on:not(.is-view) { opacity: 0; }
/* WhatsApp bottom-left, chatbot bottom-right */
.wa-float { left: 18px; right: auto; bottom: 18px; }
.bot { right: 18px; bottom: 18px; }
.bot__panel { right: 18px; bottom: 92px; }
.bot__hint { right: 74px; bottom: 14px; }
@media (max-width: 520px) { .bot { right: 14px; bottom: 14px; } .wa-float { left: 14px; bottom: 14px; } .bot__panel { left: 10px; right: 10px; bottom: 86px; } }

/* ---------- Services mega menu ---------- */
.has-mega { position: static; }
.nav ul { position: relative; }
.has-mega > a { display: inline-flex !important; align-items: center; gap: .3rem; }
.has-mega > a svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.has-mega.open > a svg { transform: rotate(180deg); }
.mega {
  position: absolute; left: 50%; top: calc(100% + 18px); width: min(860px, 92vw); transform: translate(-50%, 10px);
  display: grid; grid-template-columns: 1fr 230px; gap: 1rem; padding: 1rem; border-radius: 22px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 80px -24px rgba(0,26,64,.35);
  opacity: 0; visibility: hidden; transition: opacity .3s, transform .35s var(--ease), visibility .3s; z-index: 5;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-mega.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.mega__item { display: flex; align-items: center; gap: .85rem; padding: .55rem; border-radius: 14px; transition: background .3s; }
.mega__item:hover { background: var(--brand-soft); }
.mega__img { width: 64px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface); }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega__item:hover .mega__img img { transform: scale(1.1); }
.mega__item b { display: block; font: 600 .92rem var(--font-heading); color: var(--black); }
.mega__item small { font-size: var(--fs-xs); color: var(--text-muted); }
.mega__item:hover b { color: var(--brand); }
.mega__side { border-radius: 16px; padding: 1.2rem; background: var(--brand); color: var(--white); display: flex; flex-direction: column; gap: .7rem; }
.mega__side b { font: 700 1.05rem var(--font-heading); }
.mega__side p { font-size: var(--fs-xs); opacity: .85; }
.mega__side .btn { margin-top: auto; white-space: normal; text-align: center; }
.mega__all { display: inline-flex; align-items: center; gap: .3rem; font: 600 var(--fs-xs) var(--font-heading); color: var(--white); opacity: .9; }
.mega__all svg { width: 14px; height: 14px; }
.nav .mega a { padding: .55rem; color: inherit; }
.nav .mega a::after { display: none; }

.mm-toggle { display: inline-flex; align-items: center; gap: .4rem; margin: .1rem 0 .4rem; padding: .4rem .9rem; border-radius: var(--r-pill); background: rgba(255,255,255,.14); color: var(--white); font: 600 var(--fs-sm) var(--font-heading); opacity: 0; transition: opacity .5s, background .3s; }
.menu-open .mm-toggle { opacity: 1; }
.mm-toggle svg { width: 16px; height: 16px; transition: transform .3s; }
.mm-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-sub { display: grid; gap: .2rem; padding: .3rem 0 .8rem 1rem; border-left: 2px solid rgba(255,255,255,.3); margin-bottom: .4rem; }
.mm-sub[hidden] { display: none; }
.mm-sub a { font: 600 1.05rem var(--font-heading); padding: .3rem 0; opacity: .92; }

/* ---------- Currency selector ---------- */
.cur-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 2rem; font-size: var(--fs-sm); color: var(--text-muted); }
.cur-select { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .5rem .35rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); }
.cur-select span { font: 600 var(--fs-xs) var(--font-heading); color: var(--black); }
.cur-select select { border: 0; background: var(--surface); padding: .35rem .6rem; border-radius: var(--r-pill); font: 600 var(--fs-xs) var(--font-heading); cursor: pointer; }
.footer .cur-select { background: transparent; border-color: rgba(255,255,255,.2); }
.footer .cur-select span { color: var(--white); }
.footer .cur-select select { background: rgba(255,255,255,.1); color: var(--white); }
.footer .cur-select option { color: var(--black); }

@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr .8fr 1fr; } }
.footer__bottom { align-items: center; }

/* ==========================================================================
   Home: professional sections
   ========================================================================== */
/* Trusted by */
.trusted { padding: clamp(1.5rem, 3vw, 2.5rem) 0 .5rem; }
.trusted__in p { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 1.2rem; }
.trusted__in b { color: var(--black); font-weight: 600; }
.trusted__row { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.trusted__row .marquee__track { animation-duration: 55s; }
.client { display: inline-flex; align-items: center; gap: .6rem; margin-right: 2.8rem; font: 700 1.05rem var(--font-heading); letter-spacing: -.02em; color: #8a93a3; filter: grayscale(1); opacity: .85; transition: color .3s, filter .3s, opacity .3s; }
.client img { width: 22px; height: 22px; border-radius: 5px; }
.client:hover { color: var(--black); filter: none; opacity: 1; }

/* Why work with me */
.why { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .why { grid-template-columns: .95fr 1.05fr; gap: 4rem; align-items: start; } .why__intro { position: sticky; top: 120px; } }
.why__intro h2 { font-size: var(--fs-3xl); margin: 1rem 0 1.1rem; max-width: 16ch; }
.why__intro > p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 44ch; }
.why__img { position: relative; margin-top: 2rem; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--surface); }
.why__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.why__img:hover img { transform: scale(1.05); }
.why__badge { position: absolute; left: 1rem; bottom: 1rem; padding: .8rem 1rem; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-md); font-size: var(--fs-xs); color: var(--text-muted); }
.why__badge b { display: block; font: 700 1.2rem var(--font-heading); color: var(--brand); letter-spacing: -.02em; }
.why__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
.why-card { padding: 1.6rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.why-card__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem; transition: all .45s var(--ease); }
.why-card__ic svg { width: 24px; height: 24px; }
.why-card:hover .why-card__ic { background: var(--brand); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.why-card h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.why-card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* Case studies */
.cases { display: grid; gap: 1.5rem; }
.case { display: grid; gap: 1.5rem; padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid var(--line); border-radius: clamp(22px, 3vw, 32px); background: var(--white); transition: box-shadow .5s, border-color .4s; }
.case:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
@media (min-width: 960px) { .case { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: stretch; } .case:nth-child(even) .case__shot { order: 2; } }
.case > * { min-width: 0; }
.case__shot { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 360px; }
.case__frame { position: relative; flex: 1; overflow: hidden; height: auto !important; }
.case__frame img { position: absolute; left: 0; top: 0; }
.case__shot:hover .case__frame img.ready { transform: translateY(calc(-100% + 380px)); transition: transform 9s cubic-bezier(.45,.05,.55,.95); }
.case__body { display: flex; flex-direction: column; gap: 1rem; padding: .5rem clamp(.3rem, 2vw, 1.2rem) .8rem; justify-content: center; }
.case__tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.case h3 { font-size: var(--fs-2xl); }
.case__dl { display: grid; gap: .9rem; margin: 0; }
.case__dl div { padding-left: 1rem; border-left: 3px solid var(--brand-line); }
.case__dl dt { font: 600 var(--fs-xs) var(--font-heading); color: var(--brand); margin-bottom: .15rem; }
.case__dl dd { margin: 0; color: var(--text-muted); }
.case__quote { margin: .4rem 0; padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--brand-soft); }
.case__quote p { font: 500 1.05rem/1.5 var(--font-heading); letter-spacing: -.01em; margin: .5rem 0; }
.case__quote cite { font-style: normal; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .industries { grid-template-columns: repeat(4, 1fr); } }
.ind { position: relative; isolation: isolate; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: var(--white); display: flex; align-items: flex-end; background: var(--brand-dark); }
.ind img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ind::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,22,56,.05) 30%, rgba(0,22,56,.85)); transition: background .5s; }
.ind:hover img { transform: scale(1.08); }
.ind:hover::after { background: linear-gradient(180deg, rgba(0,72,169,.25) 0%, rgba(0,40,100,.9)); }
.ind__body { padding: 1.2rem; display: grid; gap: .2rem; }
.ind__body b { font: 700 clamp(1rem, .9rem + .5vw, 1.25rem)/1.2 var(--font-heading); letter-spacing: -.02em; }
.ind__body small { font-size: var(--fs-xs); opacity: .85; }
.ind__arrow { position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); transform: scale(.7) rotate(-45deg); opacity: 0; transition: all .45s var(--ease); }
.ind__arrow svg { width: 18px; height: 18px; }
.ind:hover .ind__arrow { opacity: 1; transform: none; background: var(--white); color: var(--brand); }

/* Integrations */
.integ { margin-top: 2.5rem; padding: 1.4rem 0 .4rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.integ__label { font: 600 var(--fs-sm) var(--font-heading); color: var(--text-muted); }
.integ .marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.integ__item { display: inline-flex; align-items: center; gap: .6rem; margin-right: 1rem; padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font: 600 var(--fs-sm) var(--font-heading); transition: border-color .3s, transform .3s var(--ease); }
.integ__item:hover { border-color: var(--brand); transform: translateY(-2px); }
.integ__item img { width: 22px; height: 22px; object-fit: contain; }

/* Pricing teaser */
.tease { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .tease { grid-template-columns: repeat(3, 1fr); } }
.tease__card { display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.tease__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.tease__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.tease__top b { font: 700 1.2rem var(--font-heading); }
.tease__logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.tease__logo img { width: 26px; height: 26px; object-fit: contain; }
.tease__from { font-size: var(--fs-xs); color: var(--text-muted); }
.tease__price { font: 700 clamp(2.2rem, 1.6rem + 2vw, 3rem)/1 var(--font-heading); letter-spacing: -.045em; color: var(--brand); }
.tease__card p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .3rem; }
.tease__card .checks { margin: 1rem 0 1.2rem; font-size: var(--fs-sm); gap: .5rem; }
.tease__go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font: 600 var(--fs-sm) var(--font-heading); }
.tease__card:hover .circle-arrow { background: var(--brand); border-color: var(--brand); color: var(--white); }
.tease__card:hover .circle-arrow svg { transform: rotate(45deg); }
.includes { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.3rem 1.5rem; border-radius: var(--r-lg); background: var(--black); color: var(--white); }
.includes b { font: 700 1rem var(--font-heading); margin-right: .5rem; }
.includes ul { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.includes li { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); color: rgba(255,255,255,.88); }
.includes li svg { width: 18px; height: 18px; color: #4ade80; }

/* ---------- Related services (3) ---------- */
@media (min-width: 900px) { .mini-svcs--3 { grid-template-columns: repeat(3, 1fr); } }
.mini-svcs--3 .mini-svc { padding: .8rem .8rem 1.3rem; gap: .6rem; }
.mini-svcs--3 .mini-svc b { font-size: 1.25rem; margin-top: .4rem; }
.mini-svc small { color: var(--text-muted); font-size: var(--fs-sm); padding: 0 .3rem; }
.mini-svc__go { display: flex; align-items: center; justify-content: space-between; padding: .6rem .3rem 0; font: 600 var(--fs-sm) var(--font-heading); }
.mini-svc__go .circle-arrow { margin: 0; }

/* ---------- Form custom fields ---------- */
.custom-field { margin-top: 1rem; animation: stepIn .4s var(--ease); }
.custom-field[hidden] { display: none; }
.wiz-step .pick + .custom-field { margin-top: -.4rem; margin-bottom: 1.4rem; }

/* ---------- Portfolio page ---------- */
.pf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .pf-stats { grid-template-columns: repeat(4, 1fr); } }
.pf-stats div { background: var(--white); padding: 1.4rem 1.5rem; transition: background .4s; }
.pf-stats div:hover { background: var(--brand-soft); }
.pf-stats b { display: block; font: 700 var(--fs-2xl)/1 var(--font-heading); letter-spacing: -.04em; color: var(--brand); }
.pf-stats span { font-size: var(--fs-sm); color: var(--text-muted); }
.spot-tabs { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: 5px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.spot-tabs button { padding: .55rem 1rem; border-radius: var(--r-pill); font: 600 var(--fs-xs) var(--font-heading); transition: all .35s var(--ease); }
.spot-tabs button[aria-selected="true"] { background: var(--black); color: var(--white); }
.spot .case[hidden] { display: none; }
.pf-bar {
  position: sticky; top: 92px; z-index: 20; display: grid; gap: .8rem; padding: .8rem; border-radius: 22px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .pf-bar { grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; } }
.pf-search { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white); transition: border-color .3s, box-shadow .3s; }
.pf-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,72,169,.12); }
.pf-search svg { width: 18px; height: 18px; color: var(--text-muted); }
.pf-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .75rem 0; background: transparent; font-size: 16px; }
.pf-bar .chips { padding-bottom: 0; }
.pf-view { display: inline-flex; gap: .3rem; padding: 4px; border-radius: var(--r-pill); background: var(--surface); justify-self: start; }
.pf-view button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); transition: all .3s; }
.pf-view button svg { width: 18px; height: 18px; }
.pf-view button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.pf-empty { text-align: center; padding: 3rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--r-lg); display: grid; gap: .6rem; justify-items: center; }
.pf-empty[hidden] { display: none; }
.pf-empty b { font: 700 1.2rem var(--font-heading); }
.pf-empty p { color: var(--text-muted); }
/* list view */
.work-grid.is-list { grid-template-columns: 1fr; gap: 1rem; }
.work-grid.is-list .work { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .4s, box-shadow .4s; }
.work-grid.is-list .work:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
@media (min-width: 760px) { .work-grid.is-list .work { grid-template-columns: 320px 1fr; align-items: center; } }
.work-grid.is-list .work__shot { --h: 210px; }
.work-grid.is-list .work__info { padding: .2rem 1rem; }
.work-grid.is-list .work__info h3 { font-size: 1.4rem; }
.work-grid.is-list .work:hover .work__frame { transform: none; box-shadow: none; }
/* closing CTA */
.pf-cta { display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem); }
@media (min-width: 960px) { .pf-cta { grid-template-columns: 1.3fr 1fr; align-items: end; } .pf-cta .actions { justify-content: flex-end; } }
.pf-cta h2 { font-size: var(--fs-3xl); margin: 1rem 0 .8rem; }
.pf-cta p { opacity: .85; font-size: var(--fs-lg); max-width: 44ch; }
/* mega menu: beat the generic .nav a rule */
.nav .mega .mega__item { display: flex; align-items: center; gap: .85rem; padding: .55rem; border-radius: 14px; color: inherit; }
.nav .mega .mega__img { display: block; }
.nav .mega .btn { display: inline-flex; padding: .6rem 1.1rem; color: var(--brand); border-radius: var(--r-pill); }
.nav .mega .btn:hover { color: var(--white); }
.nav .mega .mega__all { display: inline-flex; padding: 0; color: var(--white); border-radius: 0; }
.nav .mega .btn { font: 600 var(--fs-xs) var(--font-heading); }
.nav .mega .mega__all { font: 600 var(--fs-xs) var(--font-heading); }
/* keep the close button above the open mobile menu */
.menu-open .header { z-index: 130; }
.menu-open .bot, .menu-open .wa-float { display: none; }

/* Hero: real photo */
.trust__me { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--brand), #6aa2ef); }
.trust__me img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--white); background: var(--brand-soft); }
.trust__me i { position: absolute; right: 1px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #16a34a; border: 2.5px solid var(--white); }
.trust b { font-family: var(--font-heading); }
.trust small .stars { display: inline-flex; vertical-align: -2px; margin-right: .2rem; }
.trust small .stars svg { width: 13px; height: 13px; }
.hero__actions .btn svg { width: 18px; height: 18px; }

/* mega menu without side box */
.mega { width: min(720px, 92vw); grid-template-columns: 1fr; }
.nav .mega .mega__all { display: inline-flex; justify-self: start; margin: .2rem .55rem .2rem; padding: .55rem 1rem; border-radius: var(--r-pill); background: var(--brand); color: var(--white); font: 600 var(--fs-xs) var(--font-heading); gap: .4rem; }
.nav .mega .mega__all:hover { background: var(--black); }

/* ---------- Platforms & tools ---------- */
.platforms { position: relative; padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); background: var(--white); overflow: hidden; }
.platforms::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--brand-line) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 20%, transparent 75%); opacity: .7; }
.platforms > * { position: relative; }
.platforms__head { display: grid; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 960px) { .platforms__head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.platforms__head h2 { font-size: var(--fs-3xl); margin-top: 1rem; max-width: 18ch; }
.platforms__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.platforms__nums div { background: var(--white); padding: 1.1rem 1.2rem; }
.platforms__nums b { display: block; font: 700 var(--fs-xl)/1 var(--font-heading); color: var(--brand); letter-spacing: -.03em; }
.platforms__nums span { font-size: var(--fs-xs); color: var(--text-muted); }
.platforms__rows { display: grid; gap: 1rem; }
.platforms__row { position: relative; }
.platforms__label { position: absolute; z-index: 2; left: max(var(--gutter), calc((100vw - var(--container)) / 2)); top: 50%; transform: translateY(-50%); padding: .55rem 1rem; border-radius: var(--r-pill); background: var(--black); color: var(--white); font: 600 var(--fs-xs) var(--font-heading); box-shadow: 0 0 0 10px var(--white); }
.platforms__row .marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: .4rem 0; }
.platforms__row .marquee__track { animation-duration: 48s; }
.platforms__row:nth-child(2) .marquee__track { animation-duration: 40s; }
.plat { display: inline-flex; align-items: center; gap: .8rem; margin-right: 1rem; padding: .7rem 1.2rem .7rem .7rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.plat:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.plat__logo { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--surface); }
.plat__logo img { width: 28px; height: 28px; object-fit: contain; }
.plat b { display: block; font: 700 1rem var(--font-heading); letter-spacing: -.01em; }
.plat small { font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 700px) { .platforms__label { left: var(--gutter); top: -.6rem; transform: none; box-shadow: none; } .platforms__row { padding-top: 1.4rem; } .platforms__nums { grid-template-columns: repeat(3, 1fr); } }

/* Previews: never crop the sides — always show the full width of the site */
.work__shot img, .case__frame img, .device img { width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: top center; }
.work__shot { background: linear-gradient(180deg, var(--surface), var(--white)); }

/* ---------- Industries: live site cards ---------- */
.industries { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .industries { grid-template-columns: repeat(4, 1fr); } }
.ind.work { display: flex; flex-direction: column; aspect-ratio: auto; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); color: var(--black); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.ind.work::after { display: none; }
.ind.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.ind__shot { --h: 220px; height: var(--h); position: relative; overflow: hidden; }
.ind__body { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.1rem; border-top: 1px solid var(--line); }
.ind__body b { display: block; font: 700 1.05rem/1.2 var(--font-heading); }
.ind__body small { font-size: var(--fs-xs); color: var(--text-muted); }
.ind.work:hover .circle-arrow { background: var(--brand); border-color: var(--brand); color: var(--white); }
.ind.work:hover .circle-arrow svg { transform: rotate(45deg); }
.ind.work .circle-arrow { flex: none; }

/* ==========================================================================
   v5: clearer sections, header Hire me, education, pricing
   ========================================================================== */
.section--surface { border-block: 1px solid var(--line); }
.section--surface + .section--surface { border-top: 0; }
.platforms { background: var(--surface); border-block: 1px solid var(--line); }
.platforms__label { box-shadow: 0 0 0 10px var(--surface); }
.platforms__nums div { background: var(--white); }
.xbars { margin-block: 0; }

/* header: Hire me + Start a project */
.header__actions { display: none; align-items: center; gap: .5rem; }
@media (min-width: 1024px) { .header__actions { display: flex; } }
.header__hire { min-height: 44px; }
.header__hire svg { width: 17px; height: 17px; }
.header__hire:hover svg { transform: translateY(2px); }
@media (min-width: 1024px) and (max-width: 1180px) { .nav a { padding: .55rem .65rem; } .header__cta { display: none; } }

/* bigger About photo on home */
.statement-side .avatar-lg { position: relative; width: min(260px, 70vw); aspect-ratio: 4 / 4.6; border-radius: 30px; }
.avatar-lg__tag { position: absolute; left: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: var(--r-pill); background: rgba(255,255,255,.95); font: 600 var(--fs-xs) var(--font-heading); }
@media (min-width: 980px) { .statement-wrap { grid-template-columns: 280px 1fr; align-items: center; gap: 4rem; } }

/* education */
.edu { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu__card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .4s, transform .5s var(--ease), box-shadow .5s; }
.edu__card:hover { border-color: var(--brand); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.edu__ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--white); }
.edu__ic svg { width: 28px; height: 28px; }
.edu__years { font: 600 var(--fs-xs) var(--font-heading); color: var(--brand); }
.edu__card h3 { font-size: 1.35rem; margin: .3rem 0 .2rem; }
.edu__org { font-weight: 600; margin-bottom: .6rem; }
.edu__card p:not(.edu__org) { color: var(--text-muted); font-size: var(--fs-sm); }
.edu__card .job__now { position: absolute; right: 1.2rem; top: 1.2rem; margin: 0; }

/* home pricing teaser */
.tease { align-items: stretch; }
.tease__card { position: relative; padding: 2rem 1.75rem; border-radius: 26px; }
.tease__top { align-items: flex-start; }
.tease__top b { display: block; }
.tease__top small { display: block; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; margin-top: .15rem; }
.tease__unit { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .2rem; }
.tease__card .checks { padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.tease__card--hot { background: var(--brand); color: var(--white); border-color: var(--brand); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .tease__card--hot { transform: translateY(-14px); } .tease__card--hot:hover { transform: translateY(-20px); } }
.tease__card--hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 30px 30px; }
.tease__card--hot .tease__price { color: var(--white); }
.tease__card--hot .tease__top small, .tease__card--hot .tease__from, .tease__card--hot .tease__unit { color: rgba(255,255,255,.78); }
.tease__card--hot .tease__logo { background: var(--white); border-color: var(--white); }
.tease__card--hot .checks li svg { color: var(--white); }
.tease__card--hot .checks { border-color: rgba(255,255,255,.25); }
.tease__card--hot .circle-arrow { border-color: var(--white); }
.tease__card--hot:hover .circle-arrow { background: var(--white); color: var(--brand); border-color: var(--white); }
.tease__badge { position: absolute; right: 1.4rem; top: 1.4rem; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--white); color: var(--brand); font: 700 var(--fs-xs) var(--font-heading); }
.tease-foot { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 1000px) { .tease-foot { grid-template-columns: 1fr auto; } }
.tease-foot .includes { margin: 0; }
.tease-custom { display: flex; align-items: center; gap: 1.2rem; justify-content: space-between; padding: 1.2rem 1.4rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.tease-custom:hover { border-color: var(--brand); transform: translateY(-3px); }
.tease-custom b { display: block; font: 700 1rem var(--font-heading); }
.tease-custom small { color: var(--text-muted); font-size: var(--fs-xs); }
.tease-custom:hover .circle-arrow { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* pricing comparison table */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 1.05rem var(--font-heading); background: var(--surface); }
.compare thead th img { display: inline-block; width: 24px; height: 24px; object-fit: contain; vertical-align: -6px; margin-right: .5rem; }
.compare tbody th { font: 600 var(--fs-sm) var(--font-heading); color: var(--text-muted); width: 22%; }
.compare td svg { width: 22px; height: 22px; color: #16a34a; }
.compare td b { font: 700 1.2rem var(--font-heading); color: var(--brand); }
.compare .is-hot { background: var(--brand-soft); }
.compare thead .is-hot { background: var(--brand); color: var(--white); }
.compare tbody tr:hover td:not(.is-hot), .compare tbody tr:hover th { background: #f7f9fc; }

/* industry tiles: keep screenshots in flow (override old tile rules) */
.ind.work { align-items: stretch; isolation: auto; }
.ind.work img { position: static; z-index: auto; height: auto; inset: auto; }
.ind.work:hover img { transform: none; }
.ind.work:hover .work__shot img.ready { transform: translateY(calc(-100% + var(--h))); }
.tease__badge { top: -14px; right: auto; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow-md); border: 1px solid var(--brand-line); white-space: nowrap; }
.tease__card--hot { overflow: visible; }

/* ==========================================================================
   v6
   ========================================================================== */
/* ---------- Branded scrollbar ---------- */
html { scrollbar-color: var(--brand) var(--surface); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand), var(--brand-dark)); border-radius: 20px; border: 3px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--black); }
.chips::-webkit-scrollbar, .slider__track::-webkit-scrollbar, .bot__chips::-webkit-scrollbar { display: none; }

/* ---------- Simple text dropdown ---------- */
.has-mega { position: relative; }
.dropdown {
  position: absolute; left: 50%; top: calc(100% + 14px); min-width: 270px; transform: translate(-50%, 8px);
  padding: .6rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0,26,64,.3); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; z-index: 5;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__list { display: grid; gap: 2px; margin-bottom: .5rem; }
.nav .dropdown__list a { display: flex; align-items: center; justify-content: space-between; padding: .65rem .85rem; border-radius: 11px; color: var(--black); font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; }
.nav .dropdown__list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-line); margin-right: .7rem; flex: none; transition: background .2s; }
.nav .dropdown__list a { justify-content: flex-start; }
.nav .dropdown__list a:hover { background: var(--brand-soft); color: var(--brand); }
.nav .dropdown__list a:hover::before { background: var(--brand); }
.nav .dropdown__list a::after { display: none; }
.nav .dropdown .dropdown__btn { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1rem; border-radius: 12px; background: var(--brand); color: var(--white); font: 600 var(--fs-sm) var(--font-heading); }
.nav .dropdown .dropdown__btn:hover { background: var(--black); }
.nav .dropdown .dropdown__btn svg { width: 15px; height: 15px; }

/* ---------- Both bars identical ---------- */
.xbar--b { background: var(--brand); box-shadow: 0 18px 40px -18px rgba(0,30,80,.55); border-block: 0; }
.xbar--a { box-shadow: 0 18px 40px -18px rgba(0,30,80,.55); }
.xbar--b .xbar__item:nth-child(odd) { color: var(--white); -webkit-text-stroke: 0; }

/* ---------- Previews: full width, never cropped ---------- */
.work__shot { height: auto; aspect-ratio: 4 / 3; }
.work__shot img { position: relative; display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.work:hover .work__shot img.ready, .work:focus-visible .work__shot img.ready { transform: translateY(calc(-100% + var(--h, 300px))); }
.work-grid.is-list .work__shot { --h: auto; aspect-ratio: 4 / 3; }
.work__badges { position: absolute; left: .8rem; right: .8rem; top: .8rem; z-index: 2; display: flex; justify-content: space-between; gap: .5rem; pointer-events: none; }
.work__badges span { padding: .35rem .75rem; border-radius: var(--r-pill); font: 700 11px/1 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.work__badges span:first-child { background: var(--white); color: var(--black); }
.work--demo .work__badges span:last-child { background: var(--brand); }
.ind__shot { --h: auto; height: auto; aspect-ratio: 4 / 3; }
.case__frame { aspect-ratio: 4 / 3; flex: none; }
.case__shot { min-height: 0; }
.case__frame img { position: relative; }
.case__shot:hover .case__frame img.ready { transform: translateY(calc(-100% + var(--h, 300px))); }

/* ---------- Phone previews ---------- */
.phones-sec { overflow: hidden; }
.phones { padding: 1rem 0 2rem; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.phones .marquee__track { gap: 0; animation-duration: 70s; align-items: flex-start; }
.phone { flex: none; width: 230px; margin-right: 2rem; display: grid; gap: .9rem; justify-items: center; transition: transform .5s var(--ease); }
.phone:hover { transform: translateY(-10px); }
.phone__body { position: relative; width: 230px; padding: 10px; border-radius: 38px; background: #0d0d0d; box-shadow: 0 30px 60px -24px rgba(0,26,64,.55), inset 0 0 0 2px #2a2a2a; }
.phone__notch { position: absolute; left: 50%; top: 16px; z-index: 3; width: 76px; height: 20px; margin-left: -38px; border-radius: 20px; background: #0d0d0d; }
.phone__screen { position: relative; display: block; aspect-ratio: 390 / 844; border-radius: 29px; overflow: hidden; background: var(--surface); }
.phone__screen img { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .5s, transform 6s cubic-bezier(.45,.05,.55,.95); }
.phone__screen img.ready { opacity: 1; }
.phone:hover .phone__screen img.ready { transform: translateY(calc(-100% + var(--h, 456px))); }
.phone__screen img.ready + .shot-loading { display: none; }
.phone__cap { text-align: center; }
.phone__cap b { display: block; font: 700 1rem var(--font-heading); }
.phone__cap small { font-size: var(--fs-xs); color: var(--text-muted); }
.phones-sec .phones:hover .marquee__track { animation-play-state: paused; }

/* ---------- Custom development pricing ---------- */
.custom-quote { display: grid; gap: 2.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
@media (min-width: 960px) { .custom-quote { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.custom-quote h2 { font-size: var(--fs-3xl); margin: 1rem 0 1rem; }
.custom-quote > div > p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 50ch; }
.custom-quote .checks { margin: 1.5rem 0 1.8rem; }
.custom-quote__steps { display: grid; gap: .7rem; counter-reset: s; }
.custom-quote__steps div { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, color .3s; }
.custom-quote__steps div:hover { transform: translateX(6px); background: var(--brand); color: var(--white); }
.custom-quote__steps b { font: 800 1.4rem var(--font-heading); color: var(--brand); letter-spacing: -.03em; }
.custom-quote__steps div:hover b { color: var(--white); }
.custom-quote__steps span { font-weight: 600; }
.pricing-custom { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; border-radius: var(--r-lg); background: var(--black); color: var(--white); }
.pricing-custom b { display: block; font: 700 1.15rem var(--font-heading); }
.pricing-custom p { color: rgba(255,255,255,.75); font-size: var(--fs-sm); margin-top: .2rem; }
.nav .dropdown .dropdown__list { display: grid; grid-template-columns: 1fr; gap: 2px; position: static; }
.nav .dropdown .dropdown__list li { display: block; }
.dropdown { width: max-content; min-width: 280px; }

/* ==========================================================================
   v7 — live demo previews, project pages, code tools
   ========================================================================== */
/* Live previews (scaled iframe of a demo) */
.work__shot iframe, .phone__screen iframe, .pp-frame iframe.mini {
  position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none;
  background: var(--white); opacity: 0; transition: opacity .5s;
}
.work__shot iframe.ready, .phone__screen iframe.ready { opacity: 1; }
.work__shot iframe.ready ~ .shot-loading, .phone__screen iframe.ready ~ .shot-loading { display: none; }
.work__shot--live { background: var(--white); }
.work--demo .work__badges span:last-child { background: var(--brand); }

/* ---------- Project pages ---------- */
.pp-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.pp-hero__in { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 980px) { .pp-hero__in { grid-template-columns: 1.4fr .9fr; gap: 4rem; } }
.pp-hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin: 1rem 0 1.2rem; font-size: clamp(3rem, 1.4rem + 6vw, 7rem); }
.pp-lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 52ch; margin-bottom: 1.8rem; }
.pp-facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.pp-facts div { background: var(--white); padding: 1rem 1.2rem; }
.pp-facts small { display: block; font: 600 var(--fs-xs) var(--font-heading); color: var(--text-muted); margin-bottom: .3rem; }
.pp-facts b { font-family: var(--font-heading); font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.pp-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.pp-demo { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.pp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1rem; }
.pp-dev { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.pp-dev button { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: var(--r-pill); font: 600 var(--fs-sm) var(--font-heading); color: var(--text-muted); transition: all .3s var(--ease); }
.pp-dev button svg { width: 17px; height: 17px; }
.pp-dev button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.pp-hint { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-muted); font-size: var(--fs-sm); margin-right: auto; }
.pp-hint svg { width: 16px; height: 16px; color: var(--brand); }
.pp-tools { display: flex; gap: .4rem; }
.pp-ic { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--white); transition: all .3s var(--ease); }
.pp-ic:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pp-ic svg { width: 18px; height: 18px; }
.pp-stage { position: relative; padding: clamp(1rem, 3vw, 2.2rem); border-radius: clamp(22px, 3vw, 34px); background: linear-gradient(140deg, var(--brand-soft), var(--surface) 60%); border: 1px solid var(--line); }
.pp-frame { margin-inline: auto; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: width .6s var(--ease), border-radius .6s var(--ease); width: 100%; }
.pp-frame__bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--white); }
.pp-frame__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.pp-frame__bar > i:nth-child(2) { background: #febc2e; } .pp-frame__bar > i:nth-child(3) { background: #28c840; }
.pp-url { margin: 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .9rem; border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-xs); color: var(--text-muted); }
.pp-url svg { width: 12px; height: 12px; color: #16a34a; }
.pp-iframe { display: block; width: 100%; height: min(82vh, 860px); border: 0; background: var(--white); }
.pp-stage[data-dev="tablet"] .pp-frame { width: min(100%, 834px); }
.pp-stage[data-dev="tablet"] .pp-iframe { height: min(86vh, 1000px); }
.pp-stage[data-dev="mobile"] .pp-frame { width: min(100%, 400px); border-radius: 40px; border: 10px solid #0d0d0d; box-shadow: 0 40px 80px -30px rgba(0,26,64,.55); }
.pp-stage[data-dev="mobile"] .pp-frame__bar { display: none; }
.pp-stage[data-dev="mobile"] .pp-iframe { height: min(78vh, 780px); }
.pp-feats { display: grid; gap: 1rem; }
@media (min-width: 680px) { .pp-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .pp-feats { grid-template-columns: repeat(3, 1fr); } }
.pp-feat { position: relative; padding: 1.75rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.pp-feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.pp-feat__n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font: 800 15px var(--font-heading); margin-bottom: 1rem; transition: all .4s var(--ease); }
.pp-feat:hover .pp-feat__n { background: var(--brand); color: var(--white); transform: rotate(-8deg); }
.pp-feat h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.pp-feat p { color: var(--text-muted); font-size: var(--fs-sm); }
.pp-info { display: grid; gap: 1.5rem; }
@media (min-width: 980px) { .pp-info { grid-template-columns: 1.4fr 1fr; } }
.pp-note, .pp-side { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.pp-note h2 { font-size: var(--fs-2xl); margin: 1rem 0; }
.pp-note p { color: var(--text-muted); font-size: var(--fs-lg); margin-bottom: 1.6rem; }
.pp-side h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.pp-side .checks { margin: 0; }
.pp-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.pp-nav__a { display: grid; gap: .2rem; padding: 1.3rem 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.pp-nav__a:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pp-nav__a small { color: var(--text-muted); font: 600 var(--fs-xs) var(--font-heading); }
.pp-nav__a b { font: 700 1.2rem var(--font-heading); }
.pp-nav__a--r { text-align: right; }
.pp-nav__all { display: grid; place-items: center; width: 64px; border-radius: var(--r-lg); background: var(--black); color: var(--white); transition: background .3s; }
.pp-nav__all:hover { background: var(--brand); }
.pp-nav__all svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .pp-nav { grid-template-columns: 1fr 1fr; } .pp-nav__all { display: none; } .pp-hint { display: none; } }
/* platforms: label sits in its own column, never over the logos */
.platforms__row { display: grid; grid-template-columns: 178px 1fr; align-items: center; gap: 1.1rem; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.platforms__label { position: static; transform: none; box-shadow: none; justify-self: stretch; text-align: center; white-space: nowrap; padding: .6rem .9rem; font-size: .8rem; line-height: 1.2; }
.platforms__row:nth-child(2) .platforms__label { background: var(--brand); }
@media (max-width: 700px) { .platforms__row { grid-template-columns: 1fr; gap: .4rem; padding-top: 0; } .platforms__label { top: auto; } }

/* v8 — previews & small fixes */
@media (max-width: 700px) { .footer__bottom { padding-bottom: 84px; } }
@media (min-width: 960px) { .case__frame { flex: 1 1 0; aspect-ratio: auto; min-height: 320px; } }
.work__shot img, .phone__screen img, .case__frame img, .device img { backface-visibility: hidden; }
/* Phones: the filter bar scrolls away instead of covering a third of the screen */
@media (max-width: 760px) {
  .pf-bar { position: relative; top: auto; }
  .pf-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pf-bar .chips::-webkit-scrollbar { display: none; }
  .pf-bar .chip { flex: none; }
}
