/* =============================================================
   M3 Garage — styles.css
   Arquetipo: "Atelier automotriz" — editorial oscuro, lujo técnico.
   Marca: naranja #E88820 · rojo #C84028 · azul #0060A0 · marino #183050
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0a0c11;
  --bg-2: #10141c;
  --bg-3: #161b26;
  --navy: #183050;
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, .72);
  --ink-3: rgba(244, 241, 234, .48);
  --line: rgba(244, 241, 234, .12);
  --line-2: rgba(244, 241, 234, .2);

  --orange: #e88820;
  --red: #c84028;
  --blue: #0060a0;
  --blue-bright: #2b8fd6;
  --wa: #25d366;

  --sans: "Montserrat", "Gotham", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1320px;
  --radius: 14px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--bg); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: normal; font-weight: 300; color: var(--ink-2); }
.kicker, .section-label {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2);
}
.kicker::before {
  content: ""; width: 34px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange) 0 33%, var(--red) 33% 66%, var(--blue) 66%);
}
.section-label .mono { color: var(--orange); letter-spacing: .05em; }
.section-label-light { color: rgba(244, 241, 234, .85); }
.section-title { font-size: clamp(2rem, 4.6vw, 3.9rem); max-width: 18ch; margin-top: 1.1rem; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head-split { display: grid; gap: 1.5rem; align-items: end; }
.section-intro { color: var(--ink-2); max-width: 42ch; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: .35rem;
  transition: gap .4s var(--ease-out), border-color .4s var(--ease-out), color .3s;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow:hover { gap: .9rem; border-color: var(--orange); color: var(--orange); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .45s var(--ease-out), background-color .35s, color .35s, border-color .35s, box-shadow .45s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn .ico-wa { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg:not(.ico-wa) { transform: translateX(4px); }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-solid { background: var(--orange); color: #14100a; box-shadow: 0 10px 30px -12px rgba(232, 136, 32, .7); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--red), var(--orange));
  transform: translateX(-101%); transition: transform .55s var(--ease-out);
}
.btn-solid:hover { color: #fff; box-shadow: 0 16px 40px -14px rgba(200, 64, 40, .8); }
.btn-solid:hover::before { transform: translateX(0); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(10, 12, 17, .35); }
@supports (backdrop-filter: blur(10px)) { .btn-ghost { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.btn-ghost:hover { border-color: var(--wa); color: var(--wa); }

.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ----- Splash ----- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: clip-path 1s var(--ease-out), opacity .6s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-logo { width: min(260px, 52vw); animation: splashIn 1s var(--ease-out) both; }
.splash-stripes { position: absolute; inset: 0; overflow: hidden; }
.splash-stripes span {
  position: absolute; top: -20%; height: 140%; width: 9vw; min-width: 60px;
  transform: skewX(-28deg) translateY(100%);
  animation: stripeUp .9s var(--ease-out) forwards;
}
.splash-stripes span:nth-child(1) { left: 30%; background: var(--orange); animation-delay: .05s; }
.splash-stripes span:nth-child(2) { left: 42%; background: var(--red); animation-delay: .12s; }
.splash-stripes span:nth-child(3) { left: 54%; background: var(--blue); animation-delay: .19s; }
.splash-stripes { opacity: .14; }
@keyframes stripeUp { to { transform: skewX(-28deg) translateY(0); } }
@keyframes splashIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ----- Nav ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .5s var(--ease-out), border-color .5s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 12, 17, .92); border-color: var(--line); }
@supports (backdrop-filter: blur(16px)) {
  .nav.is-scrolled { background: rgba(10, 12, 17, .7); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 2rem;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: none; gap: 2rem; margin-left: auto; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--ink-2); position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; padding: .7rem 1.2rem; font-size: .85rem; }
.nav-toggle { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile {
  display: grid; gap: .3rem; padding: 1rem var(--gutter) 1.8rem;
  background: rgba(10, 12, 17, .97); border-bottom: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) { padding: .8rem 0; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 1rem; }

/* ----- Floating WhatsApp ----- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
  display: flex; align-items: center; gap: .6rem;
  height: 60px; padding: 0 18px; border-radius: 999px;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .6), 0 4px 12px rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-float-label { font-weight: 700; font-size: .92rem; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease-out); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float:hover .wa-float-label { max-width: 120px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: waPulse 2.8s var(--ease-soft) infinite; pointer-events: none;
}
@keyframes waPulse { 0% { opacity: .8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.35); } }

/* =============================================================
   6. Sections
   ============================================================= */

/* ----- Hero ----- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 2rem;
  isolation: isolate; overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%;
  animation: heroZoom 18s var(--ease-soft) both;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,12,17,.75) 0%, rgba(10,12,17,.15) 28%, rgba(10,12,17,.35) 55%, rgba(10,12,17,.96) 100%),
    linear-gradient(90deg, rgba(10,12,17,.92) 0%, rgba(10,12,17,.55) 45%, rgba(10,12,17,0) 75%);
}
.hero-stripes { position: absolute; right: -4vw; bottom: 0; z-index: -1; height: 100%; width: 34vw; pointer-events: none; opacity: .9; }
.hero-stripes span {
  position: absolute; bottom: -10%; width: 3.2vw; min-width: 18px; height: 70%;
  transform: skewX(-32deg); transform-origin: bottom; border-radius: 4px;
  animation: stripeGrow 1.4s var(--ease-out) both;
}
.hero-stripes span:nth-child(1) { right: 40%; background: var(--orange); animation-delay: .9s; height: 48%; }
.hero-stripes span:nth-child(2) { right: 26%; background: var(--red); animation-delay: 1s; height: 62%; }
.hero-stripes span:nth-child(3) { right: 12%; background: var(--blue); animation-delay: 1.1s; height: 76%; }
@keyframes stripeGrow { from { transform: skewX(-32deg) scaleY(0); } to { transform: skewX(-32deg) scaleY(1); } }

.hero-content { position: relative; }
.hero-title {
  font-size: clamp(2.9rem, 8.4vw, 7.4rem); font-weight: 900; line-height: .94; letter-spacing: -0.04em;
  margin-top: 1.4rem; max-width: 12ch;
}
.hero-title em { font-weight: 300; font-style: italic; color: var(--orange); letter-spacing: -0.03em; }
.hero-lead { margin-top: 1.6rem; max-width: 48ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-2); }
.hero-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-meta {
  margin-top: clamp(2.5rem, 7vh, 5rem);
  display: grid; gap: .7rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-2); font-weight: 500;
}
.hero-meta li { display: flex; align-items: center; gap: .7rem; }
.hero-meta .mono { color: var(--orange); font-size: .75rem; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 2.2rem;
  width: 26px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 20px; display: none;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: scrollDot 2s var(--ease-soft) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ----- Marquee ----- */
.marquee {
  overflow: clip; border-block: 1px solid var(--line);
  background: var(--bg-2); padding-block: 1.3rem;
}
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(1.1rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.marquee i { width: 22px; height: 6px; transform: skewX(-30deg); border-radius: 2px; flex: none; background: var(--orange); }
.marquee i:nth-of-type(3n+2) { background: var(--red); }
.marquee i:nth-of-type(3n) { background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ----- Manifesto ----- */
.manifesto { padding-block: clamp(5rem, 12vw, 10rem); }
.manifesto-text {
  margin-top: 1.6rem; font-size: clamp(1.7rem, 3.8vw, 3.3rem); font-weight: 600; line-height: 1.14;
  letter-spacing: -0.025em; max-width: 26ch;
}
.hl-orange { color: var(--orange); }
.hl-blue { color: var(--blue-bright); }
.manifesto-grid { margin-top: clamp(3rem, 7vw, 5.5rem); display: grid; gap: 2.5rem; align-items: center; }
.manifesto-fig { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.manifesto-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.manifesto-fig:hover img { transform: scale(1.04); }
.manifesto-fig::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 6px;
  background: linear-gradient(90deg, var(--orange) 0 33%, var(--red) 33% 66%, var(--blue) 66%);
}
.manifesto-copy { display: grid; gap: 1.2rem; color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }
.manifesto-copy .link-arrow { justify-self: start; margin-top: .6rem; }

/* ----- Services ----- */
.services { padding-block: clamp(4rem, 10vw, 8rem); background: var(--bg-2); border-top: 1px solid var(--line); }
.services-grid { display: grid; gap: 1.25rem; }
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .5s var(--ease-out), transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  transform-style: preserve-3d; will-change: transform;
}
.service-card:hover { border-color: rgba(232, 136, 32, .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(22, 27, 38, .9)); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: saturate(.85); }
.service-card:hover .service-img img { transform: scale(1.07); filter: saturate(1.05); }
.service-body { padding: 1.5rem 1.5rem 1.8rem; display: grid; gap: .55rem; }
.service-num { font-size: .75rem; color: var(--orange); }
.service-body h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.service-body p { color: var(--ink-2); font-size: .95rem; }

/* ----- Results / compare ----- */
.results { padding-block: clamp(5rem, 11vw, 9rem); }
.compare {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; max-height: 78vh; width: 100%;
  background: var(--bg-3); user-select: none; touch-action: pan-y;
  --pos: 50%;
}
.compare-pane { position: absolute; inset: 0; }
.compare-pane img { width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-tag {
  position: absolute; top: 1.1rem; left: 1.1rem;
  padding: .45rem .85rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(10, 12, 17, .75); border: 1px solid var(--line-2);
}
.compare-tag-after { left: auto; right: 1.1rem; background: var(--orange); color: #14100a; border-color: transparent; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--ink); pointer-events: none; box-shadow: 0 0 20px rgba(0, 0, 0, .5);
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  display: grid; place-items: center;
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border-block: 6px solid transparent;
}
.compare-handle span::before { left: 13px; border-right: 8px solid var(--bg); }
.compare-handle span::after { right: 13px; border-left: 8px solid var(--bg); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-range:focus-visible + .compare-handle, .compare:focus-within .compare-handle span { outline: 2px solid var(--orange); outline-offset: 3px; }
.results-row { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.result-fig { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.result-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.result-fig:hover img { transform: scale(1.04); }
.result-fig figcaption {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(10, 12, 17, .8); border: 1px solid var(--line-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue-bright); }

/* ----- Film ----- */
.film { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; isolation: isolate; overflow: clip; }
.film-media { position: absolute; inset: 0; z-index: -1; background: #000 url("assets/img/video-poster.webp") center / cover no-repeat; }
.film-media video { width: 100%; height: 100%; object-fit: cover; }
.film-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,17,.85) 0%, rgba(10,12,17,.2) 35%, rgba(10,12,17,.4) 60%, rgba(10,12,17,.95) 100%);
}
.film-content { padding-block: clamp(4rem, 10vw, 7rem); }
.film-title { margin-top: 1.2rem; font-size: clamp(2.3rem, 6vw, 5.2rem); font-weight: 900; letter-spacing: -0.035em; line-height: .98; }
.film-title em { color: var(--orange); font-style: italic; }
.film-lead { margin-top: 1.4rem; max-width: 44ch; color: rgba(244, 241, 234, .82); font-size: 1.05rem; }
.film-toggle {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: .7rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  transition: color .3s;
}
.film-toggle:hover { color: var(--ink); }
.film-toggle-icon { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.film-toggle-icon::before, .film-toggle-icon::after { content: ""; position: absolute; top: 12px; width: 3px; height: 12px; background: currentColor; border-radius: 1px; }
.film-toggle-icon::before { left: 14px; }
.film-toggle-icon::after { left: 19px; }
.film-toggle.is-paused .film-toggle-icon::before { left: 15px; width: 0; height: 0; top: 11px; background: none; border-left: 11px solid currentColor; border-block: 7px solid transparent; }
.film-toggle.is-paused .film-toggle-icon::after { display: none; }

/* ----- Process ----- */
.process { padding-block: clamp(5rem, 11vw, 9rem); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: none; }
.step {
  position: relative; display: grid; gap: .6rem; padding: 2rem 0 2.2rem;
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--blue));
  transition: width 1.2s var(--ease-out);
}
.step.is-revealed::before { width: 100%; }
.step-num { font-family: var(--mono); font-size: .8rem; color: var(--orange); }
.step h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 700; }
.step p { color: var(--ink-2); max-width: 40ch; }
.step .link-arrow { justify-self: start; margin-top: .5rem; }
.process-gallery { margin-top: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pg { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.pg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pg:hover img { transform: scale(1.05); }

/* ----- Gallery ----- */
.gallery { padding-block: clamp(4rem, 9vw, 7rem); background: var(--bg-2); border-top: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: grayscale(.35) contrast(1.05); }
.gallery-grid figure:hover img { transform: scale(1.06); filter: none; }

/* ----- CTA band ----- */
.cta-band {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--navy); padding-block: clamp(4.5rem, 10vw, 8rem);
}
.cta-band-stripes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-band-stripes span { position: absolute; top: -20%; height: 140%; width: 7vw; min-width: 40px; transform: skewX(-30deg); opacity: .95; }
.cta-band-stripes span:nth-child(1) { right: 22%; background: var(--orange); }
.cta-band-stripes span:nth-child(2) { right: 13%; background: var(--red); }
.cta-band-stripes span:nth-child(3) { right: 4%; background: var(--blue); }
.cta-band-inner { display: grid; gap: 2rem; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 900; max-width: 20ch; }
.cta-band h2 em { color: rgba(255, 255, 255, .78); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ----- Contact ----- */
.contact { padding-block: clamp(5rem, 11vw, 9rem); }
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-lead { margin-top: 1.3rem; color: var(--ink-2); max-width: 44ch; font-size: 1.05rem; }
.contact-cards { margin-top: 2.2rem; display: grid; gap: .8rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .4s var(--ease-out), transform .45s var(--ease-out), background-color .4s;
}
a.contact-card:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateX(4px); }
.contact-card strong { display: block; font-size: .98rem; font-weight: 700; }
.contact-card small { display: block; color: var(--ink-3); font-size: .85rem; word-break: break-word; }
.cc-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.cc-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-icon svg.fill { fill: #fff; stroke: none; width: 24px; height: 24px; }
.cc-orange { background: var(--orange); }
.cc-green { background: var(--wa); }
.cc-blue { background: var(--blue); }
.cc-red { background: var(--red); }

.form {
  position: relative; display: grid; gap: 1.1rem;
  padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.form::before {
  content: ""; position: absolute; left: clamp(1.5rem, 3.5vw, 2.6rem); top: 0; width: 90px; height: 4px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--orange) 0 33%, var(--red) 33% 66%, var(--blue) 66%);
}
.form-head h3 { font-size: 1.5rem; font-weight: 800; }
.form-head p { color: var(--ink-3); font-size: .9rem; margin-top: .2rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; gap: 1.1rem; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(10, 12, 17, .6); border: 1px solid var(--line-2); border-radius: 10px;
  padding: .85rem 1rem; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 136, 32, .15); background: rgba(10, 12, 17, .85); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.check.is-invalid span { color: #ff8a73; }
.form-status { min-height: 1.4em; font-size: .92rem; font-weight: 600; }
.form-status.is-ok { color: var(--wa); }
.form-status.is-error { color: #ff8a73; }
.form.is-sending [data-submit] { opacity: .7; pointer-events: none; }
.form.is-sent .field, .form.is-sent .field-row, .form.is-sent .check, .form.is-sent [data-submit] { display: none; }
.form-success { display: grid; gap: .8rem; text-align: left; }
.form-success h3 { font-size: 1.6rem; font-weight: 800; }
.form-success p { color: var(--ink-2); }

/* ----- Footer ----- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vw, 5rem); background: var(--bg); }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 3rem; }
.footer-logo { width: 150px; }
.footer-tag { color: var(--ink-3); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; font-size: .92rem; font-weight: 500; }
.footer-links a { color: var(--ink-2); transition: color .3s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem 6.5rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-3);
}
.footer-bottom a:hover { color: var(--ink); }

/* =============================================================
   7. Effects — reveals
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-revealed { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.2s; }
.js .hero .reveal:nth-child(2) { transition-delay: .1s; }
.js .hero .reveal:nth-child(3) { transition-delay: .2s; }
.js .hero .reveal:nth-child(4) { transition-delay: .3s; }
.js .services-grid .reveal:nth-child(3n+2), .js .gallery-grid .reveal:nth-child(even), .js .process-gallery .reveal:nth-child(even) { transition-delay: .1s; }
.js .services-grid .reveal:nth-child(3n) { transition-delay: .2s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-meta { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .results-row { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid figure:nth-child(even) { margin-top: 3rem; }
  .process-gallery { grid-template-columns: repeat(4, 1fr); }
  .process-gallery .pg:nth-child(even) { margin-top: 3.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .hero-scroll { display: block; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid .service-card:nth-child(3n+2) { translate: 0 2.5rem; }
  .services-grid { padding-bottom: 2.5rem; }
  .manifesto-grid { grid-template-columns: 1.25fr 1fr; gap: 5rem; }
  .section-head-split { grid-template-columns: 1.4fr 1fr; }
  .section-head-split > :last-child { justify-self: end; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
  .contact-info { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .cta-band-inner { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .cta-band-actions { justify-content: flex-end; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; }
}
@media (min-width: 1280px) {
  .hero { padding-bottom: 2.5rem; }
}
@media (max-width: 539px) {
  .hero-stripes { width: 60vw; opacity: .55; }
  .cta-band-stripes { opacity: .35; }
  .hero-ctas .btn { width: 100%; }
  .cta-band-actions .btn { width: 100%; }
  .nav-logo img { height: 40px; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .wa-float::after { animation: none; display: none; }
  .hero-scroll span { animation: none; }
}
