/* ==========================================================================
   Maderk Labs — paleta tomada del logo
   ========================================================================== */
:root {
  --blue: #1768db;
  --blue-deep: #1257d6;
  --cyan: #23d7e8;
  --navy: #0f1e3a;
  --navy-2: #16294d;
  --ink: #0b1529;
  --paper: #eaeef7;
  --white: #ffffff;
  --muted: #5b6a86;
  --line: rgba(15, 30, 58, 0.14);
  --grad: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 40%, var(--cyan) 100%);

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: clamp(14px, 1.6vw, 24px);
  --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(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: var(--cyan); color: var(--navy); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--navy);
  transition: transform 1s var(--ease) 0.15s;
}
.loader__k { width: 72px; overflow: visible; }
.loader__k path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 0.9s var(--ease) forwards; }
.loader__k .s2 { animation-delay: 0.18s; }
.loader__k .s3 { animation-delay: 0.32s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
body.is-loaded .loader { transform: translateY(-100%); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s, opacity 0.3s;
  mix-blend-mode: normal;
}
.cursor__label {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--white); opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s, transform 0.35s var(--ease);
  white-space: nowrap;
}
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--grad); }
.cursor.is-big .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.header.is-scrolled {
  background: rgba(234, 238, 247, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header.is-hidden { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.brand__k { width: 30px; height: 33px; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__name em { font-style: normal; font-weight: 500; text-transform: none; margin-left: 6px; letter-spacing: 0; }

.header__nav { display: flex; gap: 32px; font-family: var(--font-display); font-weight: 500; }
.header__nav a { position: relative; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600;
  border: 1.5px solid var(--navy);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s;
}
.pill--solid { background: var(--navy); color: var(--white); }
.pill--solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.pill--solid:hover::before { transform: translateY(0); }
.pill--solid:hover { border-color: transparent; }
.pill--lg { height: 56px; padding: 0 32px; font-size: 17px; }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  height: 44px; padding: 0 8px 0 18px; border-radius: 999px;
  border: 1.5px solid var(--navy);
  font-family: var(--font-display); font-weight: 600;
}
.menu-btn__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); display: grid; place-content: center; gap: 4px; }
.menu-btn__icon i { display: block; width: 12px; height: 1.5px; background: var(--white); transition: transform 0.4s var(--ease); }
body.menu-open .menu-btn { border-color: var(--white); color: var(--white); }
body.menu-open .menu-btn__icon { background: var(--white); }
body.menu-open .menu-btn__icon i { background: var(--navy); }
body.menu-open .menu-btn__icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .menu-btn__icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
body.menu-open .brand { color: var(--white); }
body.menu-open .header { background: transparent; backdrop-filter: none; }
body.menu-open .header .pill { opacity: 0; pointer-events: none; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__list { display: flex; flex-direction: column; }
.menu__list a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 11vw, 96px); line-height: 1.02; letter-spacing: -0.04em;
  display: flex; align-items: flex-start; gap: 14px;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), color 0.3s;
}
.menu__list a sup { font-size: 13px; letter-spacing: 0; margin-top: 0.8em; color: var(--cyan); font-weight: 500; }
.menu__list a:hover { color: var(--cyan); }
body.menu-open .menu__list a { opacity: 1; transform: none; }
body.menu-open .menu__list a:nth-child(1) { transition-delay: 0.15s; }
body.menu-open .menu__list a:nth-child(2) { transition-delay: 0.2s; }
body.menu-open .menu__list a:nth-child(3) { transition-delay: 0.25s; }
body.menu-open .menu__list a:nth-child(4) { transition-delay: 0.3s; }
body.menu-open .menu__list a:nth-child(5) { transition-delay: 0.35s; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: rgba(255,255,255,0.7); }
.menu__social { display: flex; gap: 20px; }

/* ---------- Generic sections ---------- */
section { padding: clamp(80px, 12vw, 160px) var(--gutter); }

.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 7.4vw, 120px); line-height: 0.95; letter-spacing: -0.045em;
}
.section-sub { margin: 0; max-width: 420px; justify-self: end; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; z-index: -1; right: -10vw; top: -10vw;
  width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(35,215,232,0.55), rgba(23,104,219,0.35) 45%, transparent 70%);
  filter: blur(40px);
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-6vw, 8vw) scale(1.1); } }

.hero__eyebrow {
  margin: 0 0 24px; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--blue);
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--grad); }

.hero__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(54px, 11.2vw, 196px); line-height: 0.9; letter-spacing: -0.055em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
body.is-loaded .hero__title .line > span { transform: none; }
body.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: 0.55s; }
body.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.65s; }
body.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 0.75s; }
.hero__title em { padding-right: 0.05em; }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__intro { margin: 0; max-width: 520px; font-size: clamp(17px, 1.4vw, 21px); color: var(--navy-2); }
.hero__scroll {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px;
}
.hero__scroll svg {
  width: 52px; height: 52px; padding: 14px; border-radius: 50%; border: 1.5px solid var(--navy);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Reel ---------- */
.reel { padding-top: 0; }
.reel__frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 8; min-height: 320px;
  background: var(--navy);
  transform: scale(0.92); transition: transform 0.1s linear;
}
.reel__art { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(30px); mix-blend-mode: screen; }
.orb--a { width: 55%; aspect-ratio: 1; left: -10%; top: -20%; background: var(--blue-deep); animation: drift 12s ease-in-out infinite alternate; }
.orb--b { width: 45%; aspect-ratio: 1; right: -5%; bottom: -30%; background: var(--cyan); opacity: 0.8; animation: drift 15s ease-in-out infinite alternate-reverse; }
.orb--c { width: 30%; aspect-ratio: 1; left: 40%; top: 20%; background: var(--blue); opacity: 0.7; animation: drift 10s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(12%, 10%) scale(1.15); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.reel__caption {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: clamp(16px, 2.4vw, 32px);
  color: var(--white); font-family: var(--font-display); font-weight: 500; font-size: 14px;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--paper); }
.marquee__track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.03em; white-space: nowrap;
}
.marquee__track b { color: var(--cyan); font-size: 0.6em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.case--wide { grid-column: span 2; }
.case__link { display: block; }
.case__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.2;
  display: grid; place-items: center;
}
.case--wide .case__media { aspect-ratio: 16 / 7.5; }
.case__media > * { transition: transform 1.1s var(--ease); }
.case__link:hover .browser, .case__link:hover .phone { transform: translateY(3%) scale(1.03); }
.case__media--kankay { background: linear-gradient(140deg, #1a1a1a, var(--navy) 70%); }
.case__media--fantini { background: linear-gradient(150deg, var(--blue), var(--navy) 85%); }
.case__media--mika { background: linear-gradient(150deg, var(--cyan), var(--blue) 75%); }

.case__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; flex-wrap: wrap; }
.case__meta h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -0.02em; }
.case__meta p { margin: 0; color: var(--muted); font-size: 15px; }
.case__sub { font-weight: 400; color: var(--muted); }
.case__links { display: flex; gap: 16px; }
.case__meta .case__links a { font-weight: 600; color: var(--blue); transition: color 0.3s; }
.case__meta .case__links a:hover { color: var(--navy); }
.case__desc { margin: 6px 0 0; max-width: 560px; color: var(--navy-2); font-size: 15px; }

/* marcos con capturas reales */
.browser {
  width: 82%; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(8%);
}
.case--wide .browser { width: 74%; transform: translateY(12%); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f3f8; border-bottom: 1px solid #e3e7ef; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6e3; flex-shrink: 0; }
.browser__bar span {
  margin-left: 10px; padding: 3px 12px; border-radius: 99px; background: #fff;
  font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img, .phone img { width: 100%; height: auto; display: block; }
.phone {
  width: 38%; aspect-ratio: 9 / 18.5; border-radius: 30px; overflow: hidden;
  border: 6px solid #0b1529; background: #0b1529;
  box-shadow: 0 40px 70px rgba(15, 30, 58, 0.4);
  transform: translateY(10%);
}

/* ---------- Statement ---------- */
.statement { padding-block: clamp(60px, 10vw, 140px); }
.statement__text {
  margin: 0; max-width: 1400px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 72px); line-height: 1.08; letter-spacing: -0.035em;
}
.statement__text .w { color: rgba(15,30,58,0.14); transition: color 0.4s; }
.statement__text .w.on { color: var(--navy); }

/* ---------- Services ---------- */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.svc__item { border-bottom: 1px solid var(--navy); position: relative; }
.svc__head {
  width: 100%; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(20px, 2.6vw, 36px) 0; text-align: left;
  position: relative; isolation: isolate;
}
.svc__head::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--navy); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.svc__head:hover::before, .svc__item.is-open .svc__head::before { transform: scaleY(1); }
.svc__head:hover, .svc__item.is-open .svc__head { color: var(--white); }
.svc__head { transition: color 0.4s, padding 0.5s var(--ease); }
.svc__head:hover { padding-left: 16px; }
.svc__num { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--blue); }
.svc__head:hover .svc__num, .svc__item.is-open .svc__num { color: var(--cyan); }
.svc__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4.4vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.svc__plus { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; flex-shrink: 0; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: currentColor; transition: transform 0.4s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.svc__item.is-open .svc__plus::after { transform: rotate(0); }

.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); background: var(--navy); color: rgba(255,255,255,0.82); margin-inline: calc(var(--gutter) * -1); }
.svc__body > div { overflow: hidden; padding-inline: calc(var(--gutter) + 96px) var(--gutter); }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body p { margin: 0 0 20px; max-width: 640px; font-size: clamp(16px, 1.3vw, 19px); }
.svc__body .tags { padding-bottom: 36px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); font-size: 14px; }

/* ---------- Salesforce ---------- */
.sf { background: var(--navy); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; }
.sf + .approach { border-radius: 0; padding-top: 0; }
.sf + .approach .section-head { padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(255,255,255,0.12); }
.clouds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px; border-radius: var(--radius); overflow: hidden; }
.cloud {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(22px, 2vw, 30px); min-height: 170px; background: var(--navy-2);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.cloud::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity 0.5s; }
.cloud:hover::before { opacity: 1; }
.cloud h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.02em; }
.cloud h3::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); margin-bottom: 18px; transition: background 0.4s; }
.cloud:hover h3::before { background: var(--white); }
.cloud p { margin: 0; font-size: 15px; color: rgba(255,255,255,0.7); transition: color 0.4s; }
.cloud:hover p { color: var(--white); }
.sf__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(32px, 4vw, 56px); color: rgba(255,255,255,0.7); }
.sf__foot p { margin: 0; }
.sf__case { flex-basis: 100%; order: -1; font-size: clamp(17px, 1.4vw, 20px); color: var(--white); }
.sf__case a { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.pill--light { border-color: var(--white); color: var(--white); }
.pill--light:hover { background: var(--white); color: var(--navy); }
.case__tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--navy-2); }
.case__tags li:first-child { background: var(--grad); border-color: transparent; color: var(--white); font-weight: 600; }

/* ---------- Approach ---------- */
.approach { background: var(--navy); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; }
.section-head--light .section-sub { color: rgba(255,255,255,0.65); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.step {
  padding: clamp(24px, 2.6vw, 40px); min-height: 320px;
  background: var(--navy-2); display: flex; flex-direction: column;
  position: relative; overflow: hidden; isolation: isolate;
}
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity 0.5s; }
.step:hover::before { opacity: 1; }
.step__n { font-family: var(--font-display); font-weight: 500; color: var(--cyan); transition: color 0.4s; }
.step:hover .step__n { color: var(--white); }
.step h3 { margin: auto 0 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -0.035em; }
.step p { margin: 0; color: rgba(255,255,255,0.75); }

/* ---------- About ---------- */
.about { background: var(--navy); color: var(--white); padding-top: 0; }
.about__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(255,255,255,0.12); }
.about__text { align-self: end; font-size: clamp(17px, 1.35vw, 20px); color: rgba(255,255,255,0.78); }
.about__text p { margin: 0 0 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(64px, 8vw, 120px); }
.stat { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }
.stat__n, .stat__s { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 6vw, 96px); letter-spacing: -0.05em; line-height: 1; }
.stat__s { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 10px 0 0; color: rgba(255,255,255,0.65); }

/* ---------- CTA ---------- */
.cta { background: var(--paper); }
.cta__eyebrow { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); color: var(--muted); }
.cta__big {
  display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 32px);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 15vw, 260px); line-height: 0.9; letter-spacing: -0.06em;
  position: relative;
}
.cta__big span { background: linear-gradient(90deg, var(--navy) 50%, var(--blue) 50%, var(--cyan)); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 0.9s var(--ease); }
.cta__big:hover span { background-position: -100% 0; }
.cta__big svg { width: 0.55em; height: 0.55em; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease); }
.cta__big:hover svg { transform: rotate(45deg); }

.form { margin-top: clamp(48px, 6vw, 96px); max-width: 980px; display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 19px; color: var(--navy);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line);
  padding: 10px 0; border-radius: 0; outline: none; resize: vertical;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1E3A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 18px; padding-right: 28px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); }
.form .pill { align-self: flex-start; }
.form__ok { margin: 0; color: var(--blue); font-weight: 600; }
.form__ok.is-error { color: #c62f3b; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .pill:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); font-weight: 500; }
.footer__col a { width: max-content; transition: color 0.3s; }
.footer__col a:hover { color: var(--cyan); }
.footer__top-btn { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.footer__top-btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.footer__top-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__word {
  margin-top: clamp(64px, 8vw, 120px);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 14.5vw, 260px); line-height: 0.82; letter-spacing: -0.06em;
  white-space: nowrap; text-align: center;
}
.footer__word .grad { margin-left: 0.04em; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; color: rgba(255,255,255,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .menu-btn { display: inline-flex; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:first-child { border-radius: var(--radius) 0 0 0; }
  .step:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .step:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .step:last-child { border-radius: 0 0 var(--radius) 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 720px) {
  .header .pill { display: none; }
  .brand__name { font-size: 17px; }
  .section-head, .about__grid { grid-template-columns: 1fr; }
  .section-sub { justify-self: start; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .reel__frame { aspect-ratio: 4 / 5; transform: none !important; }
  .reel__caption span:nth-child(3) { display: none; }
  .work__grid { grid-template-columns: 1fr; }
  .case--wide { grid-column: auto; }
  .case--wide .case__media, .case__media { aspect-ratio: 4 / 3.4; }
  .browser, .case--wide .browser { width: 88%; }
  .phone { width: 46%; }
  .svc__head { grid-template-columns: 40px 1fr auto; }
  .svc__head:hover { padding-left: 0; }
  .svc__plus { width: 36px; height: 36px; }
  .svc__body > div { padding-inline: var(--gutter); }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:nth-child(2), .step:nth-child(3), .step:last-child { border-radius: 0; min-height: 220px; }
  .step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top-btn { grid-column: 2; grid-row: 1; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
