/* ==========================================================
   NEXT STUDIO DIGITAL — styles.css
   Dark agency aesthetic · logo palette: blue #5271ff · yellow #ffde59 · green #169b78 · Inter
   ========================================================== */
:root {
  --primary: #5271ff;           /* azul del logo (principal) */
  --primary-soft: rgba(82, 113, 255, .16);
  --yellow: #ffde59;            /* amarillo del logo (resaltes) */
  --green: #169b78;             /* verde del logo (WhatsApp / chat) */
  --ink: #171616;               /* negro del logo */
  --cream: #fff9f9;             /* contorno crema del logo */
  --bg: #000000;
  --bg-2: #171616;
  --bg-3: #101010;
  --card: #191919;
  --card-2: #1a1a1a;
  --text: #fff9f9;
  --muted: #757575;
  --muted-2: #c1c1c1;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: all .3s ease-in-out;
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--t); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
.section { padding: 130px 0; position: relative; z-index: 1; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }

/* ---------- Preloader (double safety net) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center;
  animation: preloaderOut .6s ease 4.5s forwards;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader__inner { display: flex; align-items: center; gap: 14px; }
.preloader__logo {
  width: 54px; height: 54px; border-radius: 50%; background: var(--primary);
  display: grid; place-items: center; font-weight: 900; font-size: 26px;
  animation: pulse 1.2s ease-in-out infinite;
}
.preloader__text { font-weight: 800; letter-spacing: .12em; font-size: 20px; overflow: hidden; }
@keyframes pulse { 50% { transform: scale(.86); } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0; transition: opacity .25s; }
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--yellow); }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid var(--primary);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
}
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: var(--primary-soft); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Background grid lines ---------- */
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: flex; justify-content: space-between; max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.grid-lines span { width: 1px; height: 100%; background: var(--line); position: relative; overflow: hidden; }
.grid-lines span::after {
  content: ""; position: absolute; left: 0; top: -20%; width: 1px; height: 18%;
  background: linear-gradient(transparent, var(--primary), transparent);
  animation: lineDrop 7s linear infinite;
}
.grid-lines span:nth-child(2)::after { animation-delay: 1.5s; }
.grid-lines span:nth-child(3)::after { animation-delay: 3.4s; }
.grid-lines span:nth-child(4)::after { animation-delay: .8s; }
.grid-lines span:nth-child(5)::after { animation-delay: 4.6s; }
.grid-lines span:nth-child(6)::after { animation-delay: 2.5s; }
@keyframes lineDrop { to { top: 120%; } }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 28px 0; transition: padding .4s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header.is-sticky { padding: 14px 0; background: rgba(0,0,0,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img {
  height: 72px; width: auto; transition: transform .4s var(--ease), height .4s var(--ease);
  /* contorno crema para que la flecha negra del logo se lea sobre fondo oscuro */
  filter: drop-shadow(1.5px 0 0 var(--cream)) drop-shadow(-1.5px 0 0 var(--cream)) drop-shadow(0 1.5px 0 var(--cream)) drop-shadow(0 -1.5px 0 var(--cream));
}
.logo:hover img { transform: rotate(-3deg) scale(1.04); }
.header.is-sticky .logo img { height: 54px; }
@media (max-width: 767px) { .logo img { height: 56px; } .header.is-sticky .logo img { height: 46px; } }
.footer .logo img { height: 110px; }
.preloader__img { width: 260px; height: auto; filter: drop-shadow(2px 0 0 var(--cream)) drop-shadow(-2px 0 0 var(--cream)) drop-shadow(0 2px 0 var(--cream)) drop-shadow(0 -2px 0 var(--cream)); animation: pulse 1.2s ease-in-out infinite; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 17px; flex: none;
}
.logo__text { font-weight: 800; font-size: 17px; letter-spacing: .04em; }
.header__nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.header__nav a { position: relative; color: var(--muted-2); }
.header__nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--primary); transition: width .3s var(--ease); }
.header__nav a:hover { color: #fff; }
.header__nav a:hover::after { width: 100%; }

.menu-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; position: relative; transition: var(--t);
}
.menu-btn__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted-2); transition: var(--t); }
.menu-btn__bars { position: absolute; display: grid; gap: 6px; opacity: 0; transform: scale(.6); transition: var(--t); }
.menu-btn__bars i { display: block; width: 22px; height: 2px; background: #fff; }
.menu-btn:hover { border-color: var(--primary); background: var(--primary); }
.menu-btn:hover .menu-btn__dot { opacity: 0; transform: scale(0); }
.menu-btn:hover .menu-btn__bars { opacity: 1; transform: scale(1); }

/* ---------- Offcanvas ---------- */
.offcanvas {
  position: fixed; inset: 0; z-index: 200; background: #000;
  clip-path: circle(0 at calc(100% - 60px) 60px);
  transition: clip-path .8s var(--ease), visibility .8s;
  visibility: hidden; display: flex; flex-direction: column;
}
.offcanvas.is-open { clip-path: circle(150% at calc(100% - 60px) 60px); visibility: visible; }
.offcanvas__top { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.offcanvas__close svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 1.5; fill: none; transition: transform .4s var(--ease), stroke .3s; }
.offcanvas__close:hover svg { transform: rotate(90deg); stroke: var(--primary); }
.offcanvas__body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-bottom: 60px; }
.offcanvas__nav { display: grid; gap: 6px; }
.offcanvas__nav a {
  font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; text-transform: uppercase; line-height: 1.2;
  color: var(--muted); display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(30px); transition: color .3s, opacity .5s var(--ease), transform .5s var(--ease);
}
.offcanvas__nav a span { font-size: 14px; color: var(--yellow); font-weight: 600; }
.offcanvas__nav a:hover { color: #fff; transform: translateX(10px); }
.offcanvas.is-open .offcanvas__nav a { opacity: 1; transform: none; }
.offcanvas.is-open .offcanvas__nav a:nth-child(1) { transition-delay: .25s; }
.offcanvas.is-open .offcanvas__nav a:nth-child(2) { transition-delay: .3s; }
.offcanvas.is-open .offcanvas__nav a:nth-child(3) { transition-delay: .35s; }
.offcanvas.is-open .offcanvas__nav a:nth-child(4) { transition-delay: .4s; }
.offcanvas.is-open .offcanvas__nav a:nth-child(5) { transition-delay: .45s; }
.offcanvas.is-open .offcanvas__nav a:nth-child(6) { transition-delay: .5s; }
.offcanvas__aside { text-align: right; }
.offcanvas__big { font-size: clamp(40px, 6vw, 90px); font-weight: 900; line-height: 1; color: #1a1a1a; letter-spacing: -.01em; }
.offcanvas__contact { margin-top: 40px; display: grid; gap: 6px; color: var(--muted-2); }
.offcanvas__contact a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; padding: 170px 0 90px; position: relative; z-index: 1; display: flex; align-items: center; overflow: hidden; }
.hero__inner { position: relative; }
.hero__visual {
  position: absolute; top: -40px; left: 50%; width: min(520px, 48vw); aspect-ratio: 1;
  transform: translateX(-22%); z-index: -1;
}
.hero__visual::before { /* anillo amarillo punteado que gira */
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 2px dashed rgba(255, 222, 89, .55); animation: spin 40s linear infinite;
}
.hero__media {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #5271ff, #169b78);
  box-shadow: 0 0 0 10px rgba(82, 113, 255, .12), 0 40px 120px rgba(82, 113, 255, .35);
}
.hero__media::after { /* oscurece un poco para que el titular se lea */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,0,0,.55), rgba(0,0,0,.15) 70%);
}
.hero__wall {
  position: absolute; inset: -30%; display: flex; gap: 14px; justify-content: center;
  transform: rotate(-14deg);
}
.wall-col { width: 25%; overflow: hidden; }
.wall-track { display: flex; flex-direction: column; gap: 14px; animation: wallUp 38s linear infinite; }
.wall-col:nth-child(2) .wall-track { animation-name: wallDown; animation-duration: 44s; }
.wall-col:nth-child(3) .wall-track { animation-duration: 34s; }
.wall-track img { width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 14px; border: 3px solid rgba(255,255,255,.9); }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes wallDown { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }

/* stickers estilo logo */
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border: 3px solid var(--cream); box-shadow: 0 14px 30px rgba(0,0,0,.35);
  animation: bob 4s ease-in-out infinite;
}
.chip svg { width: 18px; fill: #fff; }
.chip--blue { background: var(--primary); color: #fff; top: 8%; right: -8%; rotate: 8deg; }
.chip--yellow { background: var(--yellow); color: var(--ink); top: -4%; left: 10%; rotate: -7deg; animation-delay: -1.3s; }
.chip--green { background: var(--green); color: #fff; bottom: -2%; right: 6%; rotate: 4deg; border-radius: 14px 14px 14px 2px; animation-delay: -2.6s; }
.hero__star { position: absolute; top: -40px; left: 6%; width: 64px; fill: #3a3a3a; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__title {
  font-size: clamp(42px, 7.6vw, 118px); font-weight: 900; line-height: 1.04; letter-spacing: -.02em;
  text-transform: uppercase; margin-top: 70px;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__word { display: inline-block; }
.hero__line--indent { display: flex; align-items: center; gap: 4vw; padding-left: 6%; }
.hero__arrow { width: clamp(46px, 6vw, 96px); flex: none; stroke: var(--yellow); stroke-width: 2.4; fill: none; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 70px; }
.hero__copy { max-width: 520px; }
.hero__copy p { font-size: 17px; color: #e6e6e6; }
.hero__stats { display: flex; gap: 54px; margin-top: 40px; flex-wrap: wrap; }
.hero__stats strong { display: block; color: var(--yellow); font-size: 24px; font-weight: 700; }
.hero__stats span { color: var(--muted); font-size: 15px; }
.hero__stats strong span { color: inherit; font-size: inherit; }

.badge { position: relative; width: 190px; height: 190px; flex: none; display: grid; place-items: center; transition: transform .3s ease-out; }
/* entrada del sello sólo con CSS (GSAP + transición CSS lo dejaban invisible) */
.js .badge { opacity: 0; transform: scale(.5); }
.js body.is-loaded .badge, .js .badge.is-in-badge { animation: badgeIn .9s var(--ease) 1.4s forwards; }
@keyframes badgeIn { to { opacity: 1; transform: scale(1); } }
.badge { animation: badgeIn .9s var(--ease) 4s forwards; } /* red de seguridad */
.badge__ring { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.badge__ring text { fill: var(--muted-2); font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
.badge__center {
  width: 76px; height: 76px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; transition: transform .4s var(--ease);
}
.badge__center svg { width: 30px; stroke: var(--ink); stroke-width: 2; fill: none; transition: transform .4s var(--ease); }
.badge:hover .badge__center { transform: scale(1.12); }
.badge:hover .badge__center svg { transform: rotate(45deg); }

/* ---------- Common UI ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--yellow);
}
.pill svg { width: 14px; stroke: var(--yellow); stroke-width: 2; fill: none; }
.title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.22; margin: 22px 0 24px; }
.big-title { font-size: clamp(40px, 6.2vw, 92px); font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: -.01em; margin-top: 26px; }
.sec-head { margin-bottom: 70px; }
.sec-head--center { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 38px; border-radius: 100px; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn--outline { border: 1px solid var(--primary); color: var(--primary); }
.btn--outline::before {
  content: ""; position: absolute; inset: 0; background: var(--primary); z-index: -1;
  transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease);
}
.btn--outline:hover { color: #fff; }
.btn--outline:hover::before { transform: none; }

.dots { position: absolute; width: 84px; height: 84px; background-image: radial-gradient(var(--muted-2) 1.4px, transparent 1.6px); background-size: 14px 14px; opacity: .55; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about__media { position: relative; padding: 0 0 50px 50px; }
.about__stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: radial-gradient(circle at 80% 15%, rgba(255,222,89,.35), transparent 45%), linear-gradient(150deg, #5271ff, #2a3cb8 60%, #171616);
  transform-style: preserve-3d; transition: transform .2s ease-out;
}
.about__stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.4px); background-size: 18px 18px;
}
.about__phone {
  position: absolute; width: 38%; aspect-ratio: 9 / 19.5; border-radius: 22px; border: 5px solid #111; background: #111;
  overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .8s var(--ease);
}
.about__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 16px; }
.about__phone--1 { left: 6%; top: 16%; transform: rotate(-12deg); }
.about__phone--2 { left: 31%; top: 9%; z-index: 2; transform: rotate(0deg); width: 40%; }
.about__phone--3 { right: 5%; top: 18%; transform: rotate(11deg); }
.about__stage:hover .about__phone--1 { transform: rotate(-16deg) translateX(-10px); }
.about__stage:hover .about__phone--3 { transform: rotate(15deg) translateX(10px); }
.about__stage:hover .about__phone--2 { transform: translateY(-10px); }
.sticker {
  position: absolute; z-index: 3; padding: 8px 16px; font-weight: 800; font-size: clamp(13px, 1.2vw, 16px);
  text-transform: uppercase; letter-spacing: .04em; border: 3px solid var(--cream); box-shadow: 0 14px 30px rgba(0,0,0,.35);
  animation: bob 4.5s ease-in-out infinite;
}
.sticker--yellow { background: var(--yellow); color: var(--ink); left: 6%; bottom: 14%; rotate: -6deg; }
.sticker--blue { background: var(--ink); color: #fff; right: 6%; bottom: 6%; rotate: 5deg; animation-delay: -1.5s; }
.sticker--chat {
  top: 5%; right: 7%; display: flex; gap: 6px; padding: 14px 16px; background: var(--green);
  border-radius: 16px 16px 16px 2px; animation-delay: -3s;
}
.sticker--chat i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: typing 1s infinite; }
.sticker--chat i:nth-child(2) { animation-delay: .15s; }
.sticker--chat i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: .5; } }
.dots--a { left: 0; bottom: 0; }
.about__arrow { position: absolute; left: -10px; top: 40%; width: 110px; stroke: var(--line-2); stroke-width: 2; fill: none; z-index: -1; }
.about__content > p { color: var(--muted-2); }
.skills { margin: 40px 0 50px; display: grid; gap: 28px; }
.skill__head { display: flex; justify-content: space-between; font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.skill__head span:first-child { flex: 1; }
.skill__bar { height: 6px; border-radius: 10px; background: #2a2a2a; overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--primary); transition: width 1.6s var(--ease); }
.skills.is-in .skill__bar i { width: var(--w); }

/* ---------- Portfolio ---------- */
.portfolio { padding-bottom: 60px; }
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work { display: block; position: relative; }
.work__stage {
  position: relative; aspect-ratio: 16 / 11; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-start; padding: 0 0 0 6%;
  background: var(--stage, #191919);
}
.work[data-tone="1"] { --stage: linear-gradient(135deg, #5271ff, #2a3cb8); }
.work[data-tone="2"] { --stage: linear-gradient(135deg, #ffde59, #f4b400); }
.work[data-tone="3"] { --stage: linear-gradient(135deg, #169b78, #0b5e49); }
.work[data-tone="4"] { --stage: linear-gradient(135deg, #2a2828, #171616); }
.work[data-tone="5"] { --stage: linear-gradient(135deg, #fff9f9, #d9dcff); }
.work[data-tone="6"] { --stage: linear-gradient(135deg, #5271ff, #169b78); }
.work__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.25) 1.2px, transparent 1.4px); background-size: 18px 18px; opacity: .5;
}
.work__browser {
  position: relative; width: 80%; min-width: 0; border-radius: 8px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-2deg);
  transition: transform .8s var(--ease);
}
.work__bar { height: 26px; background: #f1f1f4; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.work__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.work__bar i:nth-child(2) { background: #febc2e; }
.work__bar i:nth-child(3) { background: #28c840; }
.work__bar span { margin-left: 10px; font-size: 11px; color: #777; background: #fff; padding: 0 12px; border-radius: 6px; line-height: 17px; }
.work__browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work__phone {
  position: absolute; right: 5%; bottom: 7%; width: 20%; aspect-ratio: 9 / 19.5;
  border-radius: 18px; border: 4px solid #111; background: #111; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.45); transform: rotate(4deg);
  transition: transform .8s var(--ease);
}
.work__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 13px; }
.work:hover .work__browser { transform: rotate(0deg) scale(1.03); }
.work:hover .work__phone { transform: rotate(0deg) translateY(-6%); }
.work__cap { display: flex; align-items: flex-start; gap: 18px; padding: 24px 4px 0; }
.work__num { font-size: 14px; font-weight: 700; color: var(--yellow); padding-top: 4px; }
.work__txt { flex: 1; }
.work__cat { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.work__txt h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.25; margin: 2px 0 2px; transition: color .3s; }
.work__txt p { color: var(--muted); font-size: 15px; }
.work__go {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); flex: none;
  display: grid; place-items: center; transition: var(--t);
}
.work__go svg { width: 22px; stroke: #fff; stroke-width: 1.8; fill: none; transition: transform .45s var(--ease); }
.work:hover .work__go { background: var(--yellow); border-color: var(--yellow); }
.work:hover .work__go svg { stroke: var(--ink); transform: rotate(45deg); }
.work:hover .work__txt h3 { color: var(--yellow); }

/* CTA card */
.work-all {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  margin-top: 28px; min-height: 260px; border: 1px solid var(--primary); border-radius: 6px; overflow: hidden; padding: 40px;
}
.work-all__text { font-size: clamp(26px, 3.6vw, 52px); font-weight: 900; line-height: 1.1; transition: transform .5s var(--ease); }
.work-all__arrow { position: absolute; right: 40px; bottom: 36px; width: 52px; stroke: var(--yellow); stroke-width: 2.4; fill: none; transition: transform .5s var(--ease); }
.work-all:hover .work-all__arrow { transform: translate(10px, -10px) rotate(45deg); }
.work-all:hover .work-all__text { transform: scale(1.04); }
.dots--b { top: 30px; left: 40px; }
.dots--c { bottom: 30px; left: 30%; }

/* ---------- Services ---------- */
.offer__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 90px; align-items: start; }
.offer__left { position: sticky; top: 130px; }
.offer__left > p { color: var(--muted-2); margin-bottom: 44px; }
.offer__list { display: grid; }
.service { display: block; padding: 34px 0; border-bottom: 1px solid var(--line); }
.service:first-child { padding-top: 0; }
.service__num {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 14px; border: 1px solid var(--line-2);
  border-radius: 100px; color: var(--muted-2); font-size: 13px; transition: var(--t);
}
.service__num svg { width: 12px; stroke: var(--yellow); stroke-width: 2; fill: none; }
.service__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 14px 0 10px; }
.fill-text {
  font-size: clamp(30px, 3.8vw, 54px); font-weight: 700; line-height: 1.15; position: relative;
  color: #3a3a3a;
}
.fill-text::before {
  content: attr(data-text); position: absolute; inset: 0; color: #fff; white-space: nowrap;
  clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0); transition: clip-path .1s linear;
}
.service__arrow { width: 40px; flex: none; stroke: var(--muted); stroke-width: 1.6; fill: none; transition: transform .45s var(--ease), stroke .3s; }
.service p { color: var(--muted); max-width: 560px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.service:hover p, .service.is-open p { max-height: 160px; opacity: 1; }
.service:hover .service__arrow { stroke: var(--primary); transform: rotate(45deg); }
.service:hover .service__num { border-color: var(--primary); color: #fff; }
.service:hover .fill-text::before { clip-path: inset(0 0 0 0); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 30px 0 80px; position: relative; z-index: 1; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 22s linear infinite; }
.marquee__track span {
  font-size: clamp(54px, 8vw, 120px); font-weight: 900; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px #fff; transition: color .4s;
}
.marquee:hover .marquee__track span { color: #fff; }
.marquee__track svg { width: clamp(46px, 6vw, 90px); flex: none; stroke: var(--yellow); stroke-width: 3; fill: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */
.testimonial { padding-top: 0; }
.testimonial__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.testimonial__media { position: relative; }
.t-avatar {
  aspect-ratio: 1; max-width: 360px; border-radius: 4px; display: grid; place-items: center;
  font-size: clamp(70px, 9vw, 140px); font-weight: 900; color: transparent; -webkit-text-stroke: 2px var(--primary);
  background: linear-gradient(145deg, #1a1a1a, #0b0b0b); border: 1px solid var(--line);
  transition: opacity .35s;
}
.testimonial__quote { position: absolute; right: 8%; top: -24px; width: 80px; fill: var(--yellow); }
.t-slider { position: relative; min-height: 290px; }
.t-slide { position: absolute; inset: 0; opacity: 0; transform: translateX(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.t-slide.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.t-slide blockquote { font-size: clamp(19px, 2vw, 26px); font-weight: 500; line-height: 1.55; }
.t-slide figcaption { margin-top: 30px; display: grid; }
.t-slide figcaption b { font-size: 18px; }
.t-slide figcaption span { color: var(--yellow); font-size: 14px; }
.t-nav { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.t-btn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: var(--t); }
.t-btn svg { width: 22px; stroke: #fff; stroke-width: 1.6; fill: none; }
.t-btn:hover { background: var(--primary); border-color: var(--primary); }
.t-count { margin-left: 14px; color: var(--muted); }
.t-count b { color: #fff; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 40px 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); position: relative; overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.step::before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateY(-8px); }
.step:hover::before { transform: scaleX(1); }
.step__n { font-size: 64px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--yellow); display: block; margin-bottom: 26px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Next page CTA ---------- */
.next-page { padding: 140px 0; text-align: center; border-bottom: 1px solid var(--line); }
.next-page__link { display: inline-grid; justify-items: center; gap: 10px; }
.next-page__small { color: var(--yellow); font-weight: 600; letter-spacing: .12em; }
.next-page__big {
  display: inline-flex; align-items: center; gap: 3vw;
  font-size: clamp(56px, 11vw, 180px); font-weight: 900; line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 2px #fff;
  background: linear-gradient(90deg, #fff 50%, transparent 50%) right / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: background-position .8s var(--ease);
}
.next-page__big svg { width: .6em; stroke: var(--yellow); stroke-width: 3; fill: none; transition: transform .6s var(--ease); }
.next-page__link:hover .next-page__big { background-position: left; }
.next-page__link:hover .next-page__big svg { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); position: relative; overflow: hidden; z-index: 1; padding-top: 110px; }
.footer__smoke { position: absolute; inset: 0; pointer-events: none; }
.footer__smoke i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .22; background: #fff; animation: smoke 18s ease-in-out infinite alternate; }
.footer__smoke i:nth-child(1) { width: 520px; height: 160px; top: 10%; left: 25%; transform: rotate(-18deg); }
.footer__smoke i:nth-child(2) { width: 640px; height: 120px; top: 45%; right: -10%; transform: rotate(12deg); animation-delay: -6s; opacity: .14; }
.footer__smoke i:nth-child(3) { width: 300px; height: 300px; bottom: -120px; left: -60px; background: var(--primary); opacity: .18; animation-delay: -12s; }
@keyframes smoke { 50% { translate: 80px -30px; scale: 1.15; } 100% { translate: -60px 20px; scale: .95; } }
.footer__grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr 1.3fr; gap: 50px; padding-bottom: 80px; position: relative; }
.footer h4 { font-size: 20px; font-weight: 700; margin-bottom: 26px; }
.footer__info { list-style: none; margin: 30px 0 34px; display: grid; gap: 14px; color: #e6e6e6; font-size: 15px; }
.footer__info li { display: flex; gap: 12px; align-items: flex-start; }
.footer__info svg { width: 18px; flex: none; margin-top: 4px; stroke: #fff; stroke-width: 1.8; fill: none; }
.footer__info a:hover { color: var(--primary); }
.footer__brand .btn--outline { border-color: var(--line-2); color: #fff; }
.footer__col { display: grid; align-content: start; gap: 12px; font-size: 15px; color: #e6e6e6; }
.footer__col a:hover { color: var(--primary); padding-left: 6px; }
.footer__news p { color: #e6e6e6; font-size: 15px; margin-bottom: 26px; }
.wa-form { display: flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.wa-form input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 16px 18px; color: #fff; font: inherit; font-size: 14px; outline: none; }
.wa-form input::placeholder { color: var(--muted); }
.wa-form button { width: 58px; background: var(--green); display: grid; place-items: center; transition: var(--t); }
.wa-form button:hover { background: #fff; }
.wa-form button svg { width: 20px; stroke: #fff; stroke-width: 2; fill: none; stroke-linejoin: round; }
.wa-form button:hover svg { stroke: var(--green); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; padding-bottom: 30px; border-top: 1px solid var(--line); position: relative; font-size: 14px; color: var(--muted-2); flex-wrap: wrap; }
.footer__bottom b { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.socials svg { width: 16px; stroke: #fff; stroke-width: 1.8; fill: none; }
.socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

/* ---------- WhatsApp float + to-top ---------- */
.wa-float { position: fixed; right: 96px; bottom: 28px; z-index: 90; display: flex; align-items: center; gap: 10px; }
.wa-float__bubble { background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 20px 20px 4px 20px; white-space: nowrap; animation: bob 3s ease-in-out infinite; }
.wa-float__icon { width: 58px; height: 58px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(22, 155, 120, .4); position: relative; }
.wa-float__icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ping 2s ease-out infinite; }
.wa-float__icon svg { width: 30px; fill: #fff; }
.wa-float:hover .wa-float__icon { transform: scale(1.08); }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

.to-top { position: fixed; right: 28px; bottom: 30px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--t); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 138.2; stroke-dashoffset: var(--p, 138.2); }
.to-top__arrow { width: 20px; stroke: #fff; stroke-width: 2; fill: none; }
.to-top:hover { background: var(--primary); }

/* ---------- Reveal (safe) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .header__nav { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .section { padding: 100px 0; }
  .about__grid, .offer__grid, .testimonial__grid { grid-template-columns: 1fr; gap: 60px; }
  .offer__left { position: static; }
  .hero__visual { width: 58vw; left: auto; right: -4vw; transform: none; top: 10px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .badge { align-self: flex-end; width: 150px; height: 150px; margin-top: -40px; }
  .badge__center { width: 60px; height: 60px; }
  .offcanvas__body { grid-template-columns: 1fr; align-content: center; }
  .offcanvas__aside { text-align: left; }
  .t-avatar { max-width: 260px; }
  .service p { max-height: 160px; opacity: 1; }
  .fill-text::before { clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0); }
}
@media (max-width: 767px) {
  .container, .grid-lines { padding: 0 16px; }
  .grid-lines span:nth-child(n+4) { display: none; }
  .hero { padding: 130px 0 70px; min-height: auto; }
  .hero__title { margin-top: 140px; }
  .hero__line--indent { padding-left: 0; gap: 14px; }
  .hero__visual { width: 74vw; right: -12vw; top: -10px; }
  .chip { font-size: 11px; padding: 5px 10px; border-width: 2px; }
  .chip--blue { right: 16%; top: 4%; }
  .chip--green { display: none; }
  .sticker { font-size: 11px; padding: 5px 10px; border-width: 2px; }
  .sticker--yellow { bottom: 18%; }
  .chip--yellow { left: 4%; top: -6%; }
  .about__phone { border-width: 4px; border-radius: 16px; }
  .about__phone img { border-radius: 12px; }
  .hero__star { width: 42px; top: 20px; left: 0; }
  .hero__stats { gap: 26px; }
  .works { grid-template-columns: 1fr; gap: 44px; }
  .work__go { width: 44px; height: 44px; }
  .work-all { min-height: 200px; }
  .work-all__arrow { right: 24px; bottom: 22px; width: 40px; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .menu-btn { width: 52px; height: 52px; }
  .wa-float { right: 86px; bottom: 24px; }
  .wa-float__bubble { display: none; }
  .to-top { right: 20px; bottom: 26px; }
  .marquee { padding-bottom: 50px; }
  .next-page { padding: 100px 0; }
  .fill-text::before { white-space: normal; }
}

/* Only gate truly intrusive effects */
@media (prefers-reduced-motion: reduce) {
  .grid-lines span::after { animation: none; display: none; }
  .footer__smoke i { animation: none; }
}
