/* MasterByte home — support operations center */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #0d1014;
  --bg-alt: #11151b;
  --panel: #141920;
  --line: #232a33;
  --line-strong: #2f3843;
  --text: #e7eaee;
  --text-2: #9aa4b0;
  --ok: #3fb950;
  --warn: #d4a72c;
  --bad: #f0524f;
  --action: #ffffff;
  --accent: #4ea8ff;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --head-h: 68px;
  --radius: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); scrollbar-color: var(--line-strong) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--text);
}
@media (min-width: 1280px) { body { font-size: 1.0625rem; } }
::selection { background: var(--text); color: var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 2px; }
.mono { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--action); color: var(--bg); padding: .75rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.2rem; border-radius: var(--radius);
  font: 600 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-solid { background: var(--action); color: var(--bg); }
.btn-solid:hover { background: #d5dae0; }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn:disabled { opacity: .55; cursor: progress; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-word b { font-weight: inherit; color: var(--accent); transition: color .3s var(--ease); }
.brand:hover .brand-word b { color: #fff; }
.brand-mark { flex: none; width: 46px; height: 46px; overflow: visible; transition: transform .6s var(--ease); animation: mb-glow 3.2s ease-in-out infinite; }
/* a band of light crosses the mark now and then */
.mb-shine { transform: skewX(-18deg); animation: mb-shine 4s var(--ease) 2.2s infinite; }
/* an arc of light orbits the mark on hover */
.mb-ring {
  fill: none; stroke: var(--accent); stroke-width: 34; stroke-linecap: round; stroke-dasharray: 16 84;
  transform-box: fill-box; transform-origin: center; opacity: .35;
  transition: opacity .35s var(--ease); animation: mb-spin 2.4s linear infinite;
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand:hover .mb-shine { animation: mb-shine-now .9s var(--ease); }
.brand:hover .mb-ring { opacity: 1; animation-duration: 1.2s; }
.is-loaded .masthead .brand-mark { animation: mark-in 1s var(--ease) .25s backwards, mb-glow 3.2s ease-in-out 1.25s infinite; }
@keyframes mb-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(78, 168, 255, 0)); } 50% { filter: drop-shadow(0 0 9px rgba(78, 168, 255, .55)); } }
@keyframes mb-shine { 0%, 78% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(1900px) skewX(-18deg); } }
@keyframes mb-shine-now { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(1900px) skewX(-18deg); } }
@keyframes mb-spin { to { transform: rotate(360deg); } }
@keyframes mark-in { from { transform: rotate(-200deg) scale(.4); opacity: 0; } }
.menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.menu a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; padding-block: .6rem; transition: color .2s; }
.menu a:not(.btn):hover, .menu a.is-active { color: var(--text); }
.menu .btn { min-height: 40px; padding-inline: 1rem; font-size: .9rem; }
.menu a { display: inline-flex; align-items: center; gap: .45rem; }
.menu a svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .3s var(--ease), color .2s, opacity .2s; }
.menu a:hover svg, .menu a.is-active svg { opacity: 1; color: var(--accent); transform: translateY(-1px) scale(1.1); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--text); margin-inline: auto; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero: photos of the services rotate behind the copy */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(calc(100svh - var(--head-h)), 760px); display: flex; align-items: center; padding-block: clamp(3rem, 7vw, 5rem); }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 56%; z-index: -1; overflow: hidden; }
/* fade the photo into the page so the copy always sits on solid ground */
.hero-media::after { z-index: 1; /* above the active slide (also z 1, earlier in the tree) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(13, 16, 20, .7) 18%, rgba(13, 16, 20, 0) 50%),
    linear-gradient(0deg, rgba(13, 16, 20, .85) 0%, rgba(13, 16, 20, 0) 35%);
}
.slide { position: absolute; inset: 0; margin: 0; clip-path: inset(0 0 0 100%); transition: clip-path 0s 1.1s; }
/* the outgoing photo stays whole underneath until the wipe has covered it */
.slide.is-active { z-index: 1; clip-path: inset(0); transition: clip-path 1.1s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.slide.is-active img { animation: drift 7s linear forwards; }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, -1%); } }
/* Slide caption: counter, service name and arrows; one thin timer line along the photo's base */
.slide-ui {
  position: absolute; z-index: 3; left: 14%; right: var(--gutter); bottom: 2.5rem;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 1.5rem; align-items: end;
}
.slide-count { grid-column: 1; font: 500 .8rem/1 var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .6); margin-bottom: .6rem; }
.slide-now { color: #fff; }
.slide-name { grid-column: 1; grid-row: 2; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.slide-name.is-swapping { animation: name-in .7s var(--ease); }
@keyframes name-in { from { opacity: 0; transform: translateY(12px); } }
.slide-arrows { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .5rem; }
.slide-arrows button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; position: relative;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(13, 16, 20, .45);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.slide-arrows button::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translate(-65%, -50%) rotate(45deg);
}
.slide-prev::before { transform: translate(-35%, -50%) rotate(-135deg) !important; }
.slide-arrows button:hover { background: #fff; border-color: #fff; transform: scale(1.06); }
.slide-arrows button:hover::before { border-color: var(--bg); }
.slide-timer { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.slide-timer span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.slide-timer span.is-running { animation: fill var(--slide-ms, 6500ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.hero-copy { max-width: min(32rem, 42%); }
.hero h1 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 800; }
.lede { margin-top: 1.25rem; color: #c3cad3; font-size: 1.1rem; }

.ticket { margin-top: 2rem; }
.ticket label { display: block; font-weight: 600; margin-bottom: .5rem; }
.ticket-row { display: flex; gap: .5rem; }
.ticket input {
  flex: 1; min-width: 0; min-height: 46px; padding: .7rem .9rem;
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s;
}
.ticket input:hover { border-color: #46505c; }
.ticket input:focus { outline: none; border-color: var(--text); }
.ticket input[aria-invalid="true"] { border-color: var(--bad); }
::placeholder { color: #7d8794; opacity: 1; }
.hint { margin-top: .55rem; font-size: .88rem; color: var(--text-2); }
.error { margin-top: .55rem; font-size: .9rem; color: #ff8a87; }

/* Blocks */
.block { padding-block: clamp(4rem, 8vw, 6.5rem); }
.block-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.block-head h2, .faq-grid h2, .contact-copy h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.block-head p { color: var(--text-2); max-width: 36rem; }

/* Lead service */
.lead-service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.lead-copy { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.lead-copy h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.lead-copy p { color: var(--text-2); }
.lead-copy .btn { margin-top: .5rem; }
.sla { margin: 0; display: grid; align-content: start; }
.sla div { display: grid; gap: .3rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.sla div:first-child { border-top: 0; padding-top: 0; }
.sla dt { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.sla dd { margin: 0; }

/* Other services as rows in one panel, each with its photo */
.services { list-style: none; margin: clamp(1.5rem, 3vw, 2rem) 0 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.services li {
  display: grid; grid-template-columns: 96px 13rem minmax(0, 1fr) 13.5rem; gap: 1.5rem; align-items: center;
  padding: 1rem 1.25rem;
  transition: background-color .2s;
}
.services li + li { border-top: 1px solid var(--line); }
.services img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; }
.services li:hover { background: rgba(255, 255, 255, .025); }
.services h3 { font-size: 1.15rem; }
.services p { color: var(--text-2); }
.go { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; white-space: nowrap; justify-self: end; }
.go::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.go:hover::after { transform: translateX(3px) rotate(45deg); }

/* Pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 1px; background: var(--line-strong); }
.pipeline li { position: relative; display: grid; gap: .5rem; padding-top: 2rem; align-content: start; }
.pipeline li::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--text-2); box-shadow: inset 0 0 0 3px var(--bg-alt);
  transition: transform .35s var(--ease);
}
.pipeline h3 { font-size: 1.2rem; transition: color .25s var(--ease); }
.pipeline p { color: var(--text-2); max-width: 30ch; }
.pipeline li:hover h3 { color: var(--accent); }
.pipeline li:hover::before { transform: scale(1.35); }
.pipeline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.pipeline-cta p { color: var(--text-2); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq summary:hover { color: #fff; }
.faq details p { padding-bottom: 1.25rem; color: var(--text-2); max-width: 62ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); }
.contact-copy { display: grid; gap: 1rem; align-content: start; }
.contact-copy > p { color: var(--text-2); }
.channels { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; max-width: 30rem; }
.channel {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: .85rem 1.1rem .85rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.channel::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.channel-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: transform .4s var(--ease); }
.channel-text { display: grid; gap: .15rem; min-width: 0; }
.channel-text strong { font-weight: 600; overflow-wrap: anywhere; }
.channel-text span { font-size: .9rem; color: var(--text-2); }
.channel:hover { border-color: var(--line-strong); background-color: #171d25; }
.channel:hover::after { transform: translateX(4px) rotate(45deg); opacity: 1; }
.channel:hover .channel-icon { transform: rotate(-10deg) scale(1.08); }
/* WhatsApp is the main way in: the one white row, with a ring that calls now and then */
.channel-wa { background: var(--action); border-color: var(--action); color: var(--bg); }
.channel-wa:hover { background: #d5dae0; border-color: #d5dae0; }
.channel-wa .channel-text span { color: #3b4450; }
.channel-wa .channel-icon { position: relative; background: var(--bg); border-color: var(--bg); color: #fff; }
.channel-wa .channel-icon::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--bg); animation: ring 3.5s var(--ease) infinite; }

.mail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.mail input, .mail textarea {
  width: 100%; min-height: 46px; padding: .7rem .85rem;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s;
}
.mail textarea { resize: vertical; }
.mail input:focus, .mail textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78, 168, 255, .18); }
.mail input, .mail textarea { transition: border-color .2s, box-shadow .25s var(--ease); }
.field label { transition: color .2s; }
.field:focus-within label { color: var(--accent); }
.mail .btn:disabled::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mail [aria-invalid="true"] { border-color: var(--bad); }
.mail-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.status-msg { font-size: .92rem; color: var(--text-2); }
.status-msg[data-state="ok"] { color: var(--ok); }
.status-msg[data-state="error"] { color: #ff8a87; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--text-2); font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot-row nav { display: flex; gap: 1.5rem; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--text); }

/* Floating WhatsApp: hidden while the hero ticket is on screen */
.wa {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 60;
  display: inline-flex; align-items: center; gap: .65rem; min-height: 56px; padding: .35rem 1.2rem .35rem .35rem;
  background: var(--action); color: var(--bg); border-radius: 999px; text-decoration: none; font-weight: 700; line-height: 1.15;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(37, 211, 102, .25);
  transition: transform .4s var(--ease), opacity .4s var(--ease), box-shadow .3s var(--ease);
}
.wa:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .55), 0 0 0 1px rgba(37, 211, 102, .6); }
/* the WhatsApp green lives only in the round icon, so the pill stays on brand */
.wa-icon {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.wa-icon svg { width: 26px; height: 26px; animation: wa-wiggle 5s var(--ease) 1.5s infinite; transform-origin: 50% 60%; }
/* "online" dot */
.wa-icon::after { content: ""; position: absolute; right: 1px; top: 1px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #25d366, 0 0 0 2px var(--action); }
.wa-text { display: grid; }
.wa-text small { font-size: .74rem; font-weight: 500; color: #3b4450; }
.wa:hover .wa-icon svg { animation: wa-wiggle .7s var(--ease); }
@keyframes wa-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-14deg) scale(1.08); } 94% { transform: rotate(12deg) scale(1.08); } 97% { transform: rotate(-6deg); } }
.wa.is-hidden { transform: translateY(calc(100% + 2rem)); opacity: 0; pointer-events: none; }

/* Brands: confirmed manufacturers in an endless strip */
.brands { padding-block: clamp(3.5rem, 7vw, 5.5rem); border-top: 1px solid var(--line); overflow: hidden; }
.brands-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.brands-head h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.brands-head p { color: var(--text-2); max-width: 36rem; }
.marquee {
  display: flex; overflow: hidden; padding-block: .6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: .4rem; }
/* JS moves the strips and slows them on hover instead of freezing them */
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; will-change: transform; }
/* logo tiles: quiet white marks; on hover a white light blooms, a blue sheen sweeps and the brand's colors come back.
   The tile itself never moves, so the pointer can't slip off it and flicker. */
.marquee-track li {
  position: relative; isolation: isolate; overflow: hidden;
  flex: none; display: grid; place-items: center; width: clamp(150px, 16vw, 200px); height: 92px; margin-right: 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .25s var(--ease);
}
.marquee-track li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  opacity: 0; transform: scale(.8); border-radius: inherit;
  transition: opacity .2s var(--ease), transform .4s var(--ease);
}
.marquee-track li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(78, 168, 255, .35) 50%, transparent 70%);
  transform: translateX(-110%);
}
.marquee-track img {
  max-width: 62%; max-height: 38px; width: auto; height: auto;
  filter: brightness(0) invert(1); opacity: .55;
  transition: filter .2s var(--ease), opacity .2s var(--ease), transform .4s var(--ease);
}
.marquee-track li:hover { border-color: #fff; }
.marquee-track li:hover::before { opacity: 1; transform: none; }
.marquee-track li:hover::after { transform: translateX(110%); transition: transform .7s var(--ease); }
.marquee-track li:hover img { filter: none; opacity: 1; transform: scale(1.1); }

/* Hero network: nodes behind the copy */
.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

/* Entrance: the headline and the ticket rise in once on load */
.hero .line { display: block; }
/* headline words rise out of a mask one by one (JS wraps them) */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: .1em .14em; margin-block: -.1em -.14em; }
.w > span { display: inline-block; animation: word-up .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); transform-origin: left bottom; }
@keyframes word-up { from { transform: translateY(110%) rotate(5deg); } }
.js .hero .lede, .js .hero .ticket { animation: rise 1s var(--ease) both; }
.js .hero .lede { animation-delay: .55s; }
.js .hero .ticket { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
/* everything in the hero waits for the loader */
.js:not(.is-loaded) .hero-copy * { animation-play-state: paused; }

/* the promise itself shimmers in the accent */
.hl {
  font-style: normal; color: transparent;
  background: linear-gradient(90deg, var(--accent) 0%, #b9dcff 25%, var(--accent) 50%, #b9dcff 75%, var(--accent) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* a scan line sweeps the photo */
.scan {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(78, 168, 255, .1) 85%, rgba(78, 168, 255, .55) 99%, transparent);
  animation: scan 5.5s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }


/* Loader: logo and a running bar, then the curtain lifts (the inline head script adds .is-loaded) */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 1.4rem;
  background: var(--bg); clip-path: inset(0);
  transition: clip-path .8s var(--ease) .1s, visibility 0s 1s;
}
.is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
.loader-mark { display: flex; align-items: center; gap: .8rem; font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; animation: rise .7s var(--ease) both; }
.loader-mark .brand-mark { width: 56px; height: 56px; border-radius: 50%; animation: ping-blue 1.6s ease-out infinite; }
.loader-mark b { font-weight: inherit; color: var(--accent); }
.loader-bar { width: 180px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; width: 40%; height: 100%; background: var(--accent); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes ping-blue { from { box-shadow: 0 0 0 0 rgba(78, 168, 255, .6); } to { box-shadow: 0 0 0 16px rgba(78, 168, 255, 0); } }

/* Scroll reveals; content is visible without JS */
.js [data-reveal], .js [data-reveal-group] > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }

/* Pipeline: the line draws itself and each step lights up in turn */
.js .pipeline::before { transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; background: linear-gradient(90deg, var(--accent), var(--line-strong)); }
.js .pipeline.is-in::before { transform: none; }
.js .pipeline li::before { transition: border-color .5s var(--ease) calc(var(--d, 0ms) * 4), background-color .5s var(--ease) calc(var(--d, 0ms) * 4), transform .35s var(--ease); }
.js .pipeline.is-in li::before { border-color: var(--accent); background-color: var(--accent); }
.js .pipeline.is-in li:last-child::before { border-color: var(--ok); background-color: var(--ok); }
/* a signal keeps running the pipeline once it is drawn */
.js .pipeline.is-in::after {
  content: ""; position: absolute; top: 4px; left: 0; width: 110px; height: 5px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(78, 168, 255, .85) 70%, #fff);
  animation: signal 3.4s cubic-bezier(.65, 0, .35, 1) 1.9s infinite backwards;
}
@keyframes signal { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 110px); opacity: 0; } }

/* Services: the photo leans in on hover */
.services img { transition: transform .5s var(--ease), filter .5s var(--ease); filter: saturate(.85); }
.services li { overflow: hidden; }
.services li:hover img { transform: scale(1.08); filter: saturate(1.1); }
.services li:hover h3 { color: #fff; }
.services li:hover .go { color: var(--accent); }

/* Buttons lift */
.btn-solid { transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7); }
.btn-solid:active { transform: none; box-shadow: none; }

/* Panels: a soft light follows the pointer */
[data-spot] { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .055), transparent 60%); }

/* Lead service: a light runs around its border */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.lead-service, .mail { position: relative; }
.lead-service::before, .mail::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 72%, var(--accent) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: orbit 7s linear infinite;
}
@keyframes orbit { to { --ang: 360deg; } }

/* FAQ answers slide open where the browser supports it */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Floating WhatsApp: an occasional ring */
.wa::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; pointer-events: none;
  animation: ring 4s var(--ease) infinite;
}
@keyframes ring { 0%, 70% { opacity: 0; transform: scale(1); } 75% { opacity: .6; } 100% { opacity: 0; transform: scale(1.35); } }

/* Client area (cliente.html): ticket portal sign-in */
.client { position: relative; overflow: hidden; isolation: isolate; }
.client::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(78, 168, 255, .12), transparent); pointer-events: none; }
.client-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.client-copy { display: grid; gap: 1rem; align-content: start; }
.client-copy h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.client-copy .lede { margin-top: 0; }
.client-feats { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.client-feats li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start; }
.client-feats strong { display: block; color: var(--text); }
.client-feats li > span:last-child { color: var(--text-2); }
.client-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--panel); color: var(--accent); transition: transform .4s var(--ease); }
.client-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.client-feats li:hover .client-ico { transform: rotate(-8deg) scale(1.08); }
.client-shop { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; padding: 1rem 1.15rem; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--text-2); text-decoration: none; transition: border-color .2s, color .2s; }
.client-shop svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.client-shop strong { color: var(--text); }
.client-shop:hover { border-color: var(--accent); color: var(--text); }
.client-login { grid-template-columns: minmax(0, 1fr); }
.client-login h2 { font-size: 1.5rem; }
.client-forgot { font-size: .92rem; color: var(--text-2); }
.client-forgot:hover { color: var(--text); }
.client-note { font-size: .9rem; color: var(--text-2); padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .client-grid { grid-template-columns: minmax(0, 1fr); } }

/* Cookie consent and legal footer line (consent.js, every public page) */
.consent {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 90; width: min(460px, calc(100% - 2 * var(--gutter)));
  display: grid; gap: .8rem; padding: 1.25rem; border-radius: 16px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
}
.consent h2 { font-size: 1.1rem; }
.consent p { font-size: .9rem; color: var(--text-2); }
.consent a { color: var(--accent); }
.consent-prefs { margin: 0; padding: 0; border: 0; display: grid; gap: .6rem; }
.consent-prefs label { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .88rem; color: var(--text-2); }
.consent-prefs strong { display: block; color: var(--text); }
.consent-prefs input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-actions .btn { flex: 1 1 auto; min-height: 42px; font-size: .88rem; padding-inline: .9rem; }
.legal-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-2); }
.legal-strip nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.legal-strip a, .legal-strip .link-btn { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: .2em; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.legal-strip a:hover, .legal-strip .link-btn:hover { color: var(--text); }
/* keyboard users always see where they are */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* consent checkboxes in forms */
.legal-check, .consent-line { display: flex; gap: .55rem; align-items: flex-start; font-size: .86rem; color: var(--text-2); font-weight: 400; }
.legal-check input, .consent-line input { width: 18px; height: 18px; min-height: 0; flex: none; margin-top: .1rem; accent-color: var(--accent); }
.legal-check a, .consent-line a { color: var(--accent); }

/* Hero photo drifts slower than the page */
.hero-media { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* Responsive */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .menu {
    position: fixed; inset: var(--head-h) 0 auto 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
  }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { font-size: 1.1rem; color: var(--text); padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 1rem; min-height: 46px; }
  .block-head, .lead-service, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .block-head, .brands-head { gap: .75rem; }
  .brands-head { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: 1fr; row-gap: 1.75rem; padding-left: 2.25rem; }
  .pipeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .js .pipeline::before { transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--accent), var(--line-strong)); }
  .js .pipeline.is-in::before { transform: none; }
  .pipeline li { padding-top: 0; }
  .pipeline li::before { left: calc(-2.25rem - 1px); top: 4px; }
  .js .pipeline.is-in::after { display: none; }
  .services li { grid-template-columns: 80px 11rem minmax(0, 1fr) auto; }
  .services img { width: 80px; height: 56px; }
  /* photos become a band above the copy */
  .hero { display: block; min-height: 0; padding-top: 0; }
  .hero-copy { max-width: 36rem; }
  .hero-media { transform: none; position: relative; width: 100%; height: clamp(220px, 52vw, 420px); margin-bottom: 1.75rem; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(13, 16, 20, 0) 45%); }
  .slide-ui { left: var(--gutter); bottom: 1.25rem; }
  .pipeline::before { display: none; }
}

@media (max-width: 640px) {
  :root { --head-h: 60px; }
  .hero h1 { font-size: 2.15rem; }
  .ticket-row { flex-direction: column; }
  /* phones: bars only, with the active name above the strip */
  .slide-name { font-size: 1rem; }
  .slide-count { margin-bottom: .4rem; }
  .slide-arrows button { width: 40px; height: 40px; }
  .marquee-track li { width: 132px; height: 76px; }
  .services li { grid-template-columns: 72px minmax(0, 1fr); gap: .3rem 1rem; padding-block: 1.1rem; }
  .services img { width: 72px; height: 54px; grid-row: span 3; }
  .go { justify-self: start; }
  .pipeline { grid-template-columns: 1fr; }
  .mail { grid-template-columns: 1fr; }
  .wa-text { display: none; }
  .wa { width: 58px; min-height: 58px; padding: 0; justify-content: center; background: #25d366; }
  .wa-icon { box-shadow: none; }
  .wa-icon::after { box-shadow: inset 0 0 0 3px #25d366, 0 0 0 2px #25d366; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  /* photos still rotate, as a plain fade with no zoom or wipe */
  .slide, .slide.is-active { clip-path: none; opacity: 0; transition: opacity 1.2s !important; }
  .slide.is-active { opacity: 1; }
  .scan { display: none; }
  .slide-timer { display: none; }
  .js [data-reveal], .js [data-reveal-group] > * { transform: none; transition-duration: .8s !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; flex: 1; justify-content: center; row-gap: 1rem; }
  .marquee + .marquee { margin-top: 0; }
  .marquee-track[aria-hidden] { display: none; }
  .net { display: none; }
}
