/* =========================================================
   Krishna Kumar: portfolio
   Warm-dark, premium but friendly.
   ========================================================= */
:root {
  --bg: #0b0909;
  --surface: #151111;
  --surface-2: #1f1716;
  --line: rgba(255, 238, 232, 0.09);
  --text: #f8f1ee;
  --muted: #a99d98;
  --red: #e5252a;
  --red-bright: #ff3341;
  --red-deep: #8f0a12;
  --accent: #ff3341;
  --grad: linear-gradient(120deg, #a50d16 0%, #e01b24 55%, #ff3341 100%);
  --cream: #f8f2ef;
  --cream-2: #efe5e1;
  --ink: #150e0d;
  --ink-muted: #6d5f5b;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }

em {
  font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; /* keeps the italic tail from being clipped */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 99px;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn--big { padding: 17px 26px; font-size: 16px; }
.btn--small { padding: 10px 16px; font-size: 14px; }
.btn--accent { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(240, 50, 42, .75); }
.btn--accent:hover { box-shadow: 0 16px 40px -12px rgba(240, 50, 42, .9); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(255,255,255,.07); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Nav (floating pill) ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav__inner {
  pointer-events: auto; position: relative;
  width: min(1180px, 100% - 28px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 12px; border-radius: 22px;
  border: 1px solid transparent;
  transition: width .6s var(--ease), background .4s, border-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav__inner {
  width: min(980px, 100% - 28px);
  background: rgba(20, 13, 13, .72);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05);
}

/* Logo: clapperboard + wordmark */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  position: relative; overflow: hidden; flex: none;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(224,27,36,.8), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .5s var(--ease);
}
.logo__mark svg { width: 24px; height: 24px; overflow: visible; }
.clap__arm { transform-box: view-box; transform-origin: 3.5px 8.5px; transform: rotate(-14deg); animation: clap 1s var(--ease) 1s both; }
@keyframes clap {
  0% { transform: rotate(-14deg); }
  25% { transform: rotate(-28deg); }
  45% { transform: rotate(0); }
  58% { transform: rotate(-4deg); }
  70% { transform: rotate(0); }
  100% { transform: rotate(-14deg); }
}
.logo__text { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "opsz" 72; }
.logo__text i { /* the red dot after "Krishna": a real circle so it can glow */
  display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%;
  overflow: hidden; color: transparent; vertical-align: baseline; background: var(--accent);
  animation: dotBeat 3.2s ease-in-out infinite;
}
@keyframes dotBeat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 51, 65, 0), 0 0 4px rgba(255, 51, 65, .5); transform: scale(1); }
  14% { box-shadow: 0 0 0 3px rgba(255, 51, 65, .18), 0 0 14px rgba(255, 51, 65, .95); transform: scale(1.18); }
  28% { box-shadow: 0 0 0 1px rgba(255, 51, 65, .08), 0 0 8px rgba(255, 51, 65, .6); transform: scale(1); }
  42% { box-shadow: 0 0 0 2px rgba(255, 51, 65, .14), 0 0 12px rgba(255, 51, 65, .85); transform: scale(1.1); }
  60% { box-shadow: 0 0 0 0 rgba(255, 51, 65, 0), 0 0 4px rgba(255, 51, 65, .5); transform: scale(1); }
}

.nav__links {
  position: relative; display: flex; gap: 2px; padding: 4px;
  border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.nav__links a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 99px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__indicator {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  opacity: 0; transition: left .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav__indicator::after { /* little red dot under the active link */
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent); animation: dotBeat 3.2s ease-in-out infinite;
}
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  pointer-events: auto; width: calc(100% - 28px); margin: 8px auto 0; padding: 10px;
  border-radius: 22px; background: #160e0e; border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  display: grid; gap: 2px; transform-origin: top center; animation: menuIn .35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { padding: 14px 16px; border-radius: 14px; font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; }
.mobile-menu > a:active { background: rgba(255,255,255,.06); }
.mobile-menu__social { display: flex; gap: 8px; padding: 10px 6px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.mobile-menu__social a { flex: 1; display: grid; place-items: center; height: 48px; border-radius: 14px; background: rgba(255,255,255,.05); }
.mobile-menu__social .ico { width: 22px; height: 22px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 60px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, rgba(229,37,42,.28), rgba(160,10,20,.10) 40%, transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.hero__title {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 0 0 24px;
}
.hero__sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 33em; margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phones */
.hero__phones { position: relative; height: 600px; --px: 0; --py: 0; }
.hero__phones::before { /* soft red glow that breathes behind the phones */
  content: ""; position: absolute; left: 50%; top: 48%; width: 80%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(224,27,36,.38), rgba(165,13,22,.12) 45%, transparent 70%);
  filter: blur(10px); animation: breathe 6s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }

.phone {
  --r: 0deg; --s: 1; --dx: 0px; --dy: 0px;
  position: absolute; width: 230px; aspect-ratio: 9 / 19.5; cursor: pointer;
  transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r)) scale(var(--s));
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.phone__tilt { width: 100%; height: 100%; will-change: transform; } /* moved by JS, eased every frame */
.phone__device {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; padding: 8px; background: linear-gradient(160deg, #3a3230, #1c1716 60%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.18);
  animation: float 8s cubic-bezier(.45, 0, .55, 1) infinite;
  transition: box-shadow .8s var(--ease);
  will-change: translate;
}
.phone--1 .phone__device { animation-duration: 9s; animation-delay: -3s; }
.phone--3 .phone__device { animation-duration: 8.5s; animation-delay: -6s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: var(--surface-2); }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.phone__screen::before { /* dims the phones you're not pointing at */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(8,5,5,.5); opacity: 0; transition: opacity .7s var(--ease);
}
.phone__screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.05));
}
.phone__notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 70px; height: 20px; border-radius: 99px; background: #000; z-index: 2; }
.phone__tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 2;
  padding: 8px 12px; border-radius: 14px; font-size: 12px; font-weight: 600;
  background: rgba(11,9,9,.72); border: 1px solid rgba(255,255,255,.12);
  transition: opacity .4s, transform .4s var(--ease);
}
.phone__watch {
  position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 99px;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 30px -8px rgba(224,27,36,.8);
  opacity: 0; transform: scale(.85); transition: opacity .5s var(--ease), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.phone__watch svg { width: 12px; fill: currentColor; }

.phone--1 { left: 0%;  top: 70px; --r: -8deg; z-index: 1; }
.phone--2 { left: 27%; top: 10px; --r: 2deg;  z-index: 3; width: 250px; }
.phone--3 { left: 55%; top: 90px; --r: 9deg;  z-index: 2; }

/* Hovering the group fans the phones out; the hovered one lifts, grows and glows */

/* Placeholder (shown until a real video is added) */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 20px; color: rgba(245,239,230,.7); font-size: 13px; font-weight: 600;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(229,37,42,.35), transparent 60%),
    radial-gradient(100% 80% at 90% 100%, rgba(140,8,18,.30), transparent 60%),
    var(--surface-2);
}
.ph__icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.ph__icon svg { width: 20px; fill: currentColor; margin-left: 3px; }

/* Stats */
.stats {
  list-style: none; margin: 70px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02);
}
.stats { overflow: hidden; }
.stats li { position: relative; padding: 26px 28px; cursor: default; transition: background .6s var(--ease); }
.stats li + li { border-left: 1px solid var(--line); }
.stats li::after { /* red underline that draws in on hover */
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.stats strong {
  display: inline-block; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em;
  /* two layers: red on top (starts 0% wide), cream underneath; hover wipes the red across like a transition */
  background-image: linear-gradient(120deg, #ff3341, #c8101b), linear-gradient(var(--text), var(--text));
  background-size: 0% 100%, 100% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-size .7s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; transition: color .4s; }
@media (hover: hover) and (pointer: fine) {
  .stats li:hover { background: radial-gradient(120% 140% at 0% 100%, rgba(224,27,36,.16), transparent 65%); }
  .stats li:hover strong { background-size: 100% 100%, 100% 100%; transform: translateY(-4px) scale(1.06); }
  .stats li:hover span { color: var(--text); }
  .stats li:hover::after { transform: scaleX(1); }
}

/* ---------- Trust marquee ---------- */
.trust { padding: 30px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.trust__label { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 14px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 500; white-space: nowrap;
}
.marquee__item::before { content: "✦"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--light { background: var(--cream); color: var(--ink); border-radius: var(--r-lg); margin: 0 10px; }
.section--light .lead, .section--light p { color: var(--ink-muted); }

.section__head { max-width: 720px; margin-bottom: 48px; }
.eyebrow { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--grad); border-radius: 2px; }
.section--light .eyebrow { color: var(--red); }
.h2 { font-family: var(--serif); font-weight: 500; font-variation-settings: "SOFT" 100, "opsz" 144; font-size: clamp(36px, 5vw, 60px); line-height: 1.03; letter-spacing: -.03em; margin: 0 0 14px; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0 0 28px; }
.lead { color: var(--muted); margin: 0; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); transition: all .25s var(--ease);
}
.filter:hover { color: var(--text); border-color: rgba(245,239,230,.25); }
.filter[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(240,50,42,.8); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-flow: dense; }
.card {
  opacity: 0; translate: 0 48px; scale: .94;
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface);
  aspect-ratio: 9 / 16; cursor: pointer; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .4s, opacity .9s var(--ease), translate 1s var(--ease), scale 1s var(--ease);
  transition-delay: 0s, 0s, var(--d, 0s), var(--d, 0s), var(--d, 0s);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card--wide { grid-column: span 2; aspect-ratio: auto; }
.card video, .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75)); z-index: 1; pointer-events: none; }
.card__meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.card__title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.card__client { font-size: 13px; color: rgba(245,239,230,.72); }
.card__chip { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(11,9,9,.72); border: 1px solid rgba(255,255,255,.12); }
.card__play {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  transform: scale(.8); opacity: 0; transition: all .3s var(--ease);
}
.card__play svg { width: 14px; fill: currentColor; margin-left: 2px; }
.card:hover .card__play, .card:focus-visible .card__play { transform: scale(1); opacity: 1; }
.card.is-in { opacity: 1; translate: 0 0; scale: 1; }
.card.is-hidden { display: none; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  position: relative; background: #fff; border-radius: var(--r); padding: 28px 24px 30px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 20px 40px -30px rgba(60,20,20,.35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service::before { /* red ring that fades in on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--grad); opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.service__icon { transition: transform .5s var(--ease); }
.service__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(229,37,42,.7); }
.service:nth-child(even) .service__icon { background: var(--ink); color: #ff3341; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.service p { margin: 0; font-size: 15px; }

.process { margin-top: 90px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li {
  position: relative; padding: 26px 22px 24px; border-radius: var(--r); background: var(--cream-2); counter-increment: s;
  transition: transform .5s var(--ease), background .4s, box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font-family: var(--serif); font-size: 18px; margin-bottom: 16px;
  transition: background .4s, transform .5s var(--ease), box-shadow .4s;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -12px; width: 8px; height: 8px; border-top: 2px solid var(--ink-muted); border-right: 2px solid var(--ink-muted); transform: rotate(45deg); opacity: .4;
}
.steps strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 17px; }
.steps p { margin: 0; font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about__media { position: relative; }
.about__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.about__frame video { width: 100%; height: 100%; object-fit: cover; }
.about__frame .ph { font-size: 14px; }
.about__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 0 0 10px rgba(229,37,42,.22);
  transition: transform .3s var(--ease), opacity .3s;
}
.about__play:hover { transform: scale(1.08); }
.about__play svg { width: 26px; fill: currentColor; margin-left: 4px; }
.about__media.is-playing .about__play { opacity: 0; pointer-events: none; }
.sticker {
  position: absolute; z-index: 3; padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
}
.sticker--a { top: 28px; right: -18px; background: var(--grad); color: #fff; transform: rotate(6deg); }
.sticker--b { bottom: 34px; left: -18px; background: var(--cream); color: var(--ink); transform: rotate(-5deg); }
.about__copy p { color: var(--muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks { gap: 8px; }
.ticks li {
  display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: default;
  padding: 10px 14px 10px 10px; margin-left: -10px; border-radius: 16px; width: fit-content;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s, box-shadow .3s;
}
.ticks li::before {
  content: "✓"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(229,37,42,.16); color: #ff3341; font-size: 14px;
  transition: background .3s, color .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
/* pop in one by one when the section scrolls into view */
.about__copy .ticks li { opacity: 0; translate: 0 14px; scale: .9; }
.about__copy.is-in .ticks li { animation: tickIn .7s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.about__copy.is-in .ticks li:nth-child(1) { animation-delay: .45s; }
.about__copy.is-in .ticks li:nth-child(2) { animation-delay: .6s; }
.about__copy.is-in .ticks li:nth-child(3) { animation-delay: .75s; }
@keyframes tickIn { to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.qa { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.qa summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream-2); font-size: 20px; font-weight: 500; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s;
}
.qa[open]:not(.is-closing) summary::after { transform: rotate(135deg); background: var(--grad); color: #fff; }
.qa { transition: box-shadow .4s var(--ease); }
.qa[open]:not(.is-closing) { box-shadow: 0 20px 40px -30px rgba(120,20,20,.35); }
.qa__body { overflow: hidden; }
.qa summary { transition: color .3s; }
@media (hover: hover) { .qa summary:hover { color: var(--red); } .qa summary:hover::after { transform: scale(1.1); } .qa[open]:not(.is-closing) summary:hover::after { transform: rotate(135deg) scale(1.1); } }
.qa p { margin: 0; padding: 0 24px 22px; font-size: 16px; }

/* ---------- CTA / Contact ---------- */
.cta { padding: 120px 0 100px; }
.cta__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 50px; align-items: center;
  padding: 72px 64px; border-radius: var(--r-lg); color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255,51,65,.9), transparent 60%),
    radial-gradient(80% 110% at 0% 100%, #4a050a, transparent 65%),
    linear-gradient(135deg, #8f0a12, #d4141c);
  box-shadow: 0 40px 80px -40px rgba(165,13,22,.7);
}
.cta__panel::before { /* faint film-grain dots for texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(120deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(120deg, #000, transparent 60%);
}
.cta__eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cta__title { font-family: var(--serif); font-weight: 500; font-variation-settings: "SOFT" 100, "opsz" 144; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.035em; margin: 0 0 20px; }
.cta__title em { background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.cta__sub { font-size: 17px; max-width: 30em; margin: 0 0 30px; opacity: .9; }
.cta__note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; opacity: .85; }

.contact-card { position: relative; filter: drop-shadow(0 30px 40px rgba(60, 0, 6, .45)) drop-shadow(0 6px 10px rgba(60, 0, 6, .25)); }

/* ---- Chat-preview contact card ---- */
.chat { border-radius: 26px; overflow: hidden; background: #efe6df; color: var(--ink); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #150e0d; color: #fff; }
.chat__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); flex: none; }
.chat__av svg { width: 22px; height: 22px; }
.chat__head b { display: block; font-size: 16px; line-height: 1.2; }
.chat__head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9ff0b8; }
.chat__head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.chat__body {
  padding: 18px 16px 8px; display: grid; gap: 8px; justify-items: start;
  background-image: radial-gradient(rgba(21,14,13,.06) 1px, transparent 1px); background-size: 16px 16px;
}
.chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: #fff; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.chat__msg time { display: block; text-align: right; font-size: 10.5px; color: #8a7f7a; margin-top: 2px; }
.chat__typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 4px 18px 18px 18px; background: #fff; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9adaa; animation: typingDot 1.2s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 30% { transform: translateY(-4px); background: var(--red); } }
.chat__replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 18px; }
.chat__replies a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; border-radius: 99px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.3);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.chat__ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.chat__ic svg { width: 16px; height: 16px; }
.chat__ic--wa { background: #25d366; }
.chat__ic--mail { background: var(--grad); }
.chat__ic--ig { background: radial-gradient(circle at 30% 110%, #ffdc80, #f56040 25%, #e1306c 50%, #833ab4 80%); }
/* messages arrive one by one as the panel slides in */
.slide-up .chat__msg, .slide-up .chat__typing, .slide-up .chat__replies a { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); transform-origin: left bottom; transition: opacity .5s var(--ease), transform .6s cubic-bezier(.34, 1.4, .64, 1); }
.slide-up.is-in .chat__msg, .slide-up.is-in .chat__typing, .slide-up.is-in .chat__replies a { opacity: 1; transform: none; }
.slide-up.is-in .chat__msg:nth-child(1) { transition-delay: .7s; }
.slide-up.is-in .chat__msg:nth-child(2) { transition-delay: 1.2s; }
.slide-up.is-in .chat__typing { transition-delay: 1.7s; }
.slide-up.is-in .chat__replies a:nth-child(1) { transition-delay: 1.9s; }
.slide-up.is-in .chat__replies a:nth-child(2) { transition-delay: 2s; }
.slide-up.is-in .chat__replies a:nth-child(3) { transition-delay: 2.1s; }
@media (hover: hover) and (pointer: fine) {
  .chat__replies a:hover { transform: translateY(-3px); background: var(--ink); color: #fff; transition-delay: 0s; }
}
.contact-row {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px;
  transition: background .3s;
}
.contact-row + .contact-row { margin-top: 2px; }
.contact-row__icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  transition: transform .45s var(--ease);
}
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row__icon--wa { background: #25d366; }
.contact-row__icon--mail { background: var(--grad); }
.contact-row__icon--ig { background: radial-gradient(circle at 30% 110%, #ffdc80, #f56040 25%, #e1306c 50%, #833ab4 80%); }
.contact-row__text { min-width: 0; flex: 1; }
.contact-row__text small { display: block; font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.3; }
.contact-row__text b { display: block; font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row__arrow {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); font-size: 15px; transition: transform .4s var(--ease), background .3s;
}

/* Contact panel slides up as it scrolls into view (replays each time you come down to it).
   Only transform + opacity are animated, on their own GPU layer, so it stays silky. */
.slide-up {
  opacity: 0; transform: translate3d(0, 64px, 0);
  transition: opacity 1.2s cubic-bezier(.25, .1, .25, 1), transform 1.6s cubic-bezier(.19, 1, .22, 1);
  will-change: transform, opacity; backface-visibility: hidden;
}
.slide-up.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
.slide-up .cta__copy > *, .slide-up .contact-card {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity 1s cubic-bezier(.25, .1, .25, 1), transform 1.4s cubic-bezier(.19, 1, .22, 1);
  will-change: transform, opacity;
}
.slide-up.is-in .cta__copy > *, .slide-up.is-in .contact-card { opacity: 1; transform: translate3d(0, 0, 0); }
.slide-up.is-in .cta__copy > :nth-child(1) { transition-delay: .2s; }
.slide-up.is-in .cta__copy > :nth-child(2) { transition-delay: .3s; }
.slide-up.is-in .cta__copy > :nth-child(3) { transition-delay: .4s; }
.slide-up.is-in .cta__copy > :nth-child(4) { transition-delay: .5s; }
.slide-up.is-in .cta__copy > :nth-child(5) { transition-delay: .6s; }
.slide-up.is-in .contact-card { transition-delay: .45s; }
/* resetting (while it's off-screen) happens instantly so it never visibly snaps back */
.slide-up.is-resetting, .slide-up.is-resetting * { transition: none !important; }

/* ---------- Footer ---------- */
.footer { padding: 0 0 40px; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.footer a:hover { color: var(--text); }
.footer__links { display: inline-flex; align-items: center; gap: 18px; }
.footer__links .ico { width: 20px; height: 20px; display: block; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transform: translateY(120px); transition: transform .5s var(--ease);
}
.fab.is-visible { transform: none; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(8,7,6,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox video { max-height: calc(100vh - 120px); max-width: min(100%, 1100px); border-radius: var(--r); background: #000; box-shadow: var(--shadow); }
.lightbox__caption { font-weight: 600; color: var(--muted); font-size: 15px; text-align: center; }
.lightbox__caption b { color: var(--text); }
.lightbox__close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s, transform .3s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.lightbox__close svg { width: 20px; }

/* ---------- Load-in (hero) ---------- */
.rise { animation: rise 1s var(--ease) both; }
.hero__title.rise { animation-delay: .08s; }
.hero__sub.rise { animation-delay: .16s; }
.hero__cta.rise { animation-delay: .24s; }
.phone { animation: rise 1.1s var(--ease) both; }
.phone--2 { animation-delay: .2s; }
.phone--1 { animation-delay: .32s; }
.phone--3 { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__phones { height: 520px; max-width: 620px; width: 100%; margin: 0 auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .about, .faq { grid-template-columns: 1fr; gap: 50px; }
  .cta__panel { grid-template-columns: minmax(0, 1fr); padding: 56px 40px; }
  .nav__links a { padding: 8px 12px; font-size: 14px; }
  .about__media { max-width: 460px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 116px 0 40px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .hero__phones { height: 430px; }
  .phone { width: 170px; }
  .phone__device { border-radius: 28px; padding: 6px; }
  .phone__screen { border-radius: 23px; }
  .phone--2 { width: 185px; left: calc(50% - 92px); }
  .phone--1 { left: -2%; top: 60px; }
  .phone--3 { left: auto; right: -2%; top: 70px; }
  .phone__notch { width: 54px; height: 16px; }
  .phone__tag { font-size: 11px; padding: 6px 9px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats li { padding: 20px; }
  .section { padding: 84px 0; }
  .section--light { margin: 0 6px; border-radius: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 16px; }
  .card__meta { left: 12px; right: 12px; bottom: 10px; }
  .card__title { font-size: 14px; }
  .card__client { font-size: 12px; }
  .card__play { opacity: 1; transform: scale(.85); }
  .services, .steps { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .sticker--a { right: 8px; }
  .sticker--b { left: 8px; }
  .cta__panel { padding: 44px 20px 20px; gap: 34px; border-radius: 26px; }
  .cta__copy { padding: 0 6px; }
  .chat__msg { font-size: 14.5px; }
  .chat__replies { padding: 8px 12px 14px; }
  .chat__replies a { font-size: 13.5px; padding: 9px 12px 9px 9px; }
  .contact-row { gap: 12px; padding: 10px; }
  .contact-row__icon { width: 42px; height: 42px; }
  .contact-row__text b { font-size: 14.5px; }
  .contact-row__arrow { width: 28px; height: 28px; font-size: 13px; }
  .cta .btn { white-space: normal; width: 100%; justify-content: center; }
}

/* ---------- Hover effects: only on devices with a mouse (stops them 'sticking' after a tap on phones) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .logo:hover .logo__mark { transform: scale(1.06); }
  .logo:hover .clap__arm { animation: clap .7s var(--ease); }
  .hero__phones:hover .phone--1 { --r: -13deg; --dx: -26px; --dy: 10px; }
  .hero__phones:hover .phone--3 { --r: 14deg;  --dx: 26px;  --dy: 10px; }
  .hero__phones:hover .phone:not(:hover) .phone__screen::before { opacity: 1; }
  .phone:hover { --s: 1.07; --dy: -10px; z-index: 5; }
  .phone:hover.phone--1 { --r: -5deg; }
  .phone:hover.phone--3 { --r: 5deg; }
  .phone:hover .phone__device { box-shadow: 0 40px 80px -24px rgba(224,27,36,.55), 0 0 0 1px rgba(255,51,65,.45), inset 0 1px 0 rgba(255,255,255,.2); }
  .phone:hover video { transform: scale(1.05); }
  .phone:hover .phone__watch { opacity: 1; transform: none; }
  .phone:hover .phone__tag { opacity: 0; transform: translateY(6px); }
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .card:hover video { transform: scale(1.04); }
  .service:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 30px 50px -28px rgba(165,13,22,.45); }
  .service:hover::before { opacity: 1; }
  .service:hover .service__icon { transform: rotate(-8deg) scale(1.1); }
  .steps li:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 26px 44px -28px rgba(120,20,20,.4); }
  .steps li:hover::before { background: var(--grad); transform: rotate(-10deg) scale(1.1); box-shadow: 0 10px 20px -8px rgba(224,27,36,.6); }
  .ticks li:hover { transform: translateX(8px) scale(1.04); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
  .ticks li:hover::before { background: var(--grad); color: #fff; transform: scale(1.18) rotate(-12deg); }
  .contact-row:hover { background: rgba(255,255,255,.07); }
  .contact-row:hover .contact-row__icon { transform: rotate(-8deg) scale(1.06); }
  .contact-row:hover .contact-row__arrow { background: #fff; color: var(--ink); transform: rotate(45deg); }
}
.phone:active { --s: .97; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .card, .about__copy .ticks li, .slide-up, .slide-up * { opacity: 1 !important; transform: none !important; translate: none !important; scale: none !important; }
  html { scroll-behavior: auto; }
}
