/* =========================================================
   VP Innovation
   Layout: full-bleed black bands, content on a 1240px wrap.
   The hero puts a live WebGL "innovation core" beside the headline;
   3D moments follow down the page (tilt cards, extruded type,
   a rotating solutions ring, a logo cube).
   Single committed dark look: black + electric blue.
   ========================================================= */
:root {
  /* colour */
  --ink: #03050b;          /* page black */
  --ink-2: #070c18;        /* raised band */
  --ink-3: #0c1428;        /* card surface */
  --line: rgba(110, 175, 255, .16);
  --blue: #0a84ff;         /* brand blue, sampled from the VP Innovation logo */
  --blue-deep: #0050c8;
  --blue-hi: #4fb8ff;
  --ice: #d4ecff;
  --fg: #eef2ff;
  --muted: #8e9ab9;
  --white: #ffffff;
  --ok: #4ade80;
  --err: #ff6b7a;

  /* type */
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --radius: 18px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 22px;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(32px, 5vw, 64px); }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 52ch; }
.grad {
  background: linear-gradient(100deg, var(--ice) 0%, var(--blue-hi) 38%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* scroll-driven reveal: content is visible at rest, animates only where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink);
  pointer-events: none;
  animation: pre-out .8s var(--ease) 1.5s forwards;
}
.pre-inner { display: grid; justify-items: center; gap: 22px; }
.pre-inner img { width: 150px; height: 150px; animation: pre-pulse 1.4s ease-in-out infinite; filter: drop-shadow(0 0 28px rgba(10, 132, 255, .75)); }
.pre-bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.pre-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); transform-origin: 0 50%; animation: pre-fill 1.4s var(--ease) forwards; }
.pre-text { font-family: var(--f-mono); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
@keyframes pre-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pre-pulse { 50% { transform: scale(1.06); } }
@keyframes pre-out { to { opacity: 0; visibility: hidden; transform: translateY(-30px); } }

/* ---------- cursor follower ---------- */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(79, 184, 255, .55); border-radius: 50%;
  pointer-events: none; display: none;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s;
}
html.has-cursor .cursor-ring { display: block; }
.cursor-ring.is-hover { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(10, 132, 255, .12); border-color: var(--blue-hi); }
.cursor-ring.is-hidden { opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 12px 40px -12px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 60px -10px rgba(10, 132, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .02); color: var(--fg); }
.btn-ghost:hover { border-color: var(--blue-hi); background: rgba(10, 132, 255, .08); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.nav.is-scrolled {
  background: rgba(3, 5, 11, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-open { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
/* the menu bar spans the full window: logo hard left, links and button hard right */
.nav .nav-inner {
  max-width: none;
  padding-left: max(clamp(16px, 2.2vw, 36px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 2.2vw, 36px), env(safe-area-inset-right, 0px));
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(10, 132, 255, .45)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.footer-brand .brand img { width: 72px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); background: rgba(110, 175, 255, .09); }
.nav-links .nav-links-cta { display: none; }
.nav-toggle {
  display: none; position: relative;
  width: 46px; height: 46px; margin-left: auto;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(13, 20, 38, .6);
  cursor: pointer;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav.is-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-hi));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  box-shadow: 0 0 12px var(--blue);
}

@media (max-width: 960px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 6px;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px));
    background: rgba(3, 5, 11, .97);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a { font-family: var(--f-display); font-size: clamp(24px, 7vw, 34px); color: var(--fg); padding: 10px 20px; }
  .nav-links .nav-links-cta { display: inline-block; margin-top: 18px; background: var(--blue); color: var(--white); font-size: 18px; padding: 14px 28px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, min(100svh, 1000px));
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  touch-action: pan-y;
}
#core { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: grab; }
.hero.is-drag #core { cursor: grabbing; }
.hero-grid {
  position: absolute; inset: 0; z-index: -3;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 10%, transparent 72%);
  opacity: .45;
}
.hero-glow {
  position: absolute; z-index: -2; pointer-events: none;
  width: 1000px; height: 1000px; max-width: none;
  right: -260px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(10, 132, 255, .30), rgba(0, 80, 200, .12) 35%, transparent 62%);
}
.no-webgl .hero-glow { background: radial-gradient(circle, rgba(79, 184, 255, .55), rgba(10, 132, 255, .3) 22%, transparent 50%); }
/* sizes follow the screen height as well as the width, so the whole block fits short laptop screens */
.hero-inner { position: relative; display: grid; gap: clamp(14px, 2.4svh, 28px); padding-block: clamp(16px, 3svh, 40px) clamp(72px, 10svh, 96px); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(12, 20, 40, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ice);
  animation: fade-up .9s var(--ease) 1.4s both;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 184, 255, .8); } 100% { box-shadow: 0 0 0 12px rgba(79, 184, 255, 0); } }

.hero-title { font-size: clamp(40px, min(7.4vw, 12.5svh), 112px); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(1.5s + var(--d, 0) * .12s); }
@keyframes rise { from { transform: translateY(110%) rotate(3deg); } to { transform: none; } }
.hero-sub { font-size: clamp(16px, min(1.5vw, 2.5svh), 21px); color: var(--muted); max-width: 50ch; animation: fade-up .9s var(--ease) 1.9s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; animation: fade-up .9s var(--ease) 2.05s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--muted); pointer-events: none;
}
.hero-foot a { pointer-events: auto; }
.hint { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; }.hint-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; letter-spacing: 0; font-size: 13px; color: var(--blue-hi); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--blue-hi); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

@media (max-width: 760px) {
  .hero-inner { padding-block: 24px 110px; }
  #core { opacity: .45; }
  .hero-glow { right: -50%; width: 700px; height: 700px; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); padding-block: 24px; }
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 48px; padding-right: 48px;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2.6vw, 34px);
  white-space: nowrap; color: var(--fg);
}
.marquee span::after { content: ""; width: 10px; height: 10px; background: var(--blue); transform: rotate(45deg); box-shadow: 0 0 14px var(--blue); }
.marquee .outline { color: transparent; -webkit-text-stroke: 1px var(--blue-hi); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-copy { display: grid; gap: 20px; color: var(--muted); }
.about-copy .lead { color: var(--ice); }
.about-grid > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 112px); }
.stat { padding-top: 28px; border-top: 1px solid var(--line); position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--blue-hi); box-shadow: 0 0 12px var(--blue); }
.stat-num { font-family: var(--f-display); font-weight: 600; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.stat-num small { font-size: .38em; color: var(--blue-hi); letter-spacing: 0; }
.stat-label { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 24ch; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; align-items: start; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

/* ---------- section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head > * { min-width: 0; }
.section-head .label { margin-bottom: 22px; }
.section-head .lead { max-width: 40ch; }

/* ---------- services: 3D tilt cards ---------- */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards > * { min-width: 0; }
.card {
  position: relative; height: 100%; min-height: 340px;
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-color .3s, box-shadow .4s;
}
.card.is-tilting { transition: transform .1s linear, border-color .3s, box-shadow .4s; }
.card:hover { border-color: rgba(79, 184, 255, .45); box-shadow: 0 30px 70px -30px rgba(10, 132, 255, .55); }
.card.is-flash { animation: card-flash 2s var(--ease); }
@keyframes card-flash {
  0%, 100% { border-color: var(--line); box-shadow: none; }
  20%, 60% { border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(79, 184, 255, .35), 0 30px 80px -24px rgba(10, 132, 255, .9); }
}

/* label that follows the hovered 3D object in the hero */
.core-tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(7, 12, 24, .88); border: 1px solid rgba(79, 184, 255, .45);
  box-shadow: 0 12px 30px -10px rgba(10, 132, 255, .8);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ice);
  opacity: 0; transition: opacity .2s;
}
.core-tip.is-on { opacity: 1; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(10, 132, 255, .24), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(10, 132, 255, .12); border: 1px solid rgba(10, 132, 255, .38);
  color: var(--blue-hi);
  transform: translateZ(54px);
  box-shadow: 0 10px 30px -10px rgba(10, 132, 255, .6);
}
.card h3 { font-size: 22px; transform: translateZ(40px); }
.card p { color: var(--muted); transform: translateZ(22px); }
.tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; transform: translateZ(28px); }
.tags li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ice); background: rgba(3, 5, 11, .5); }

@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; padding: 26px; } }

/* ---------- manifesto: extruded 3D type ---------- */
.manifesto {
  position: relative; overflow: hidden;
  padding-block: clamp(96px, 14vw, 200px);
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0, 80, 200, .38), transparent 70%), var(--ink);
}
.depth-stage { perspective: 1100px; display: grid; place-items: center; }
.depth-word {
  position: relative; margin: 0;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(42px, 11.2vw, 178px); line-height: 1; letter-spacing: -.03em;
  white-space: nowrap; text-align: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, -16deg));
  user-select: none;
}
.depth-front {
  position: relative; display: block;
  background: linear-gradient(180deg, var(--white) 8%, var(--ice) 45%, var(--blue-hi) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateZ(1px);
}
.depth-layer {
  position: absolute; inset: 0; pointer-events: none;
  color: hsl(210 100% calc(52% - var(--i) * 2.6%));
  transform: translateZ(var(--z));
}
.depth-layer.is-last { text-shadow: 0 0 70px rgba(10, 132, 255, .9); }
.manifesto-line { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 34ch; text-align: center; font-family: var(--f-display); font-weight: 500; font-size: clamp(19px, 2.3vw, 30px); line-height: 1.3; color: var(--ice); text-wrap: balance; }

/* ---------- solutions: 3D ring carousel ---------- */
.carousel-stage {
  position: relative; overflow: hidden;
  height: clamp(400px, 46vw, 500px);
  display: grid; place-items: center;
  perspective: 1500px; perspective-origin: 50% 35%;
  touch-action: pan-y; cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.carousel-stage.is-drag { cursor: grabbing; }
.carousel-stage:focus-visible { outline-offset: -4px; }
.carousel-ring { position: relative; width: clamp(240px, 25vw, 310px); height: clamp(320px, 33vw, 390px); transform-style: preserve-3d; }
.c-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 28px;
  border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 70% at 15% 0%, hsl(var(--h) 92% 56% / .5), transparent 62%),
    radial-gradient(90% 60% at 100% 100%, hsl(calc(var(--h) + 14) 90% 42% / .45), transparent 60%),
    var(--ink-3);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  opacity: .5;
  transition: opacity .5s, border-color .5s, box-shadow .5s;
}
.c-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.c-card.is-front { opacity: 1; border-color: rgba(79, 184, 255, .6); box-shadow: 0 40px 90px -30px rgba(10, 132, 255, .75); }
.c-glyph { position: absolute; top: 28px; left: 28px; width: 72px; height: 72px; color: var(--ice); filter: drop-shadow(0 0 16px rgba(79, 184, 255, .6)); }
.c-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-hi); }
.c-card h3 { font-size: 24px; }
.c-card p:last-child { color: var(--ice); opacity: .8; font-size: 15px; line-height: 1.55; }

.carousel-ui { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 24px; padding-inline: 16px; }
.round-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(12, 20, 40, .6);
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.round-btn:hover { border-color: var(--blue-hi); background: rgba(10, 132, 255, .16); transform: scale(1.06); }
.c-count { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 9ch; text-align: center; }
.c-current { color: var(--fg); }

/* ---------- process ---------- */
.steps {
  --fill: 0;
  position: relative; list-style: none; margin: 0; padding: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.steps::before, .steps::after { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--blue), var(--blue-hi)); transform-origin: 0 50%; transform: scaleX(var(--fill)); box-shadow: 0 0 18px var(--blue); }
.step { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step::before {
  content: ""; position: absolute; top: -46px; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 2px solid rgba(110, 175, 255, .35);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.step.is-lit::before { background: var(--blue); border-color: var(--blue-hi); box-shadow: 0 0 0 6px rgba(10, 132, 255, .18), 0 0 26px var(--blue); }
.step-num { color: var(--blue-hi); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); }
.step .step-time { color: var(--ice); opacity: .7; font-size: 11px; margin-top: 4px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; padding: 0 0 0 48px; gap: 44px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--fill)); }
  .step::before { top: 2px; left: -48px; }
}

/* ---------- why + cube ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.why-grid > * { min-width: 0; }
.why-left .lead { margin-top: 24px; }
.cube-scene { --s: 190px; width: var(--s); height: var(--s); perspective: 900px; margin: 72px 0 24px 40px; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cube-spin 16s linear infinite; }
.cube-scene:hover .cube { animation-duration: 4s; }
.face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(79, 184, 255, .5);
  background: linear-gradient(135deg, rgba(10, 132, 255, .22), rgba(7, 12, 24, .9));
  box-shadow: inset 0 0 40px rgba(10, 132, 255, .3);
  font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--ice);
}
.face img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(10, 132, 255, .6)); }
.f1 { transform: translateZ(calc(var(--s) / 2)); }
.f2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cube-spin { from { transform: rotateX(-22deg) rotateY(0deg); } to { transform: rotateX(-22deg) rotateY(360deg); } }

.principles { list-style: none; margin: 0; padding: 0; display: grid; }
.principle { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding-block: 30px; border-top: 1px solid var(--line); transition: background .3s; }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle > div { min-width: 0; }
.p-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--blue-hi); background: rgba(10, 132, 255, .1); border: 1px solid rgba(10, 132, 255, .3); transition: transform .4s var(--ease), background .3s; }
.principle:hover .p-icon { transform: rotate(-8deg) scale(1.08); background: rgba(10, 132, 255, .22); }
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { color: var(--muted); }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .cube-scene { --s: 150px; margin: 56px auto 16px; }
}

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(10, 132, 255, .28), transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(0, 80, 200, .3), transparent 70%);
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-left .lead { margin-top: 24px; }
/* direct contact cards */
.direct { display: grid; gap: 14px; margin-top: 36px; }
.direct-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(7, 12, 24, .72);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.direct-link { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.direct-card.is-wa:hover, .direct-card.is-mail:hover {
  border-color: var(--blue-hi); transform: translateY(-3px);
  box-shadow: 0 22px 50px -24px rgba(10, 132, 255, .9);
}
.direct-card.is-wa { background: linear-gradient(120deg, rgba(10, 132, 255, .2), rgba(7, 12, 24, .72) 70%); border-color: rgba(79, 184, 255, .35); }
.direct-icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue); color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.is-mail .direct-icon { background: var(--ink-3); color: var(--blue-hi); box-shadow: inset 0 0 0 1px var(--line); }
.direct-text { display: grid; gap: 4px; min-width: 0; }
.direct-label { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.direct-value { font-family: var(--f-display); font-size: clamp(14px, 1.45vw, 19px); color: var(--fg); overflow-wrap: anywhere; }
.nav-cta { white-space: nowrap; }
.direct-card.is-mail { flex-wrap: wrap; row-gap: 12px; }
.is-mail .direct-link { flex: 1 1 auto; }
.is-mail .direct-value { white-space: nowrap; overflow-wrap: normal; }
.direct-go { margin-left: auto; font-size: 22px; color: var(--blue-hi); transition: transform .4s var(--ease); }
.direct-card:hover .direct-go { transform: translateX(5px); }
.copy-btn { flex: none; margin-left: auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; transition: border-color .3s, background .3s; }
.copy-btn:hover { border-color: var(--blue-hi); background: rgba(10, 132, 255, .14); }
.promise { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.promise li { display: flex; align-items: center; gap: 12px; color: var(--ice); }
.promise li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 12px rgba(10, 132, 255, .7); }

.form {
  display: grid; gap: 20px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 20, 40, .9), rgba(7, 12, 24, .95));
  box-shadow: 0 40px 100px -40px rgba(10, 132, 255, .5);
}
.form-head { display: grid; gap: 6px; }
.form-title { font-family: var(--f-display); font-size: clamp(18px, 2vw, 22px); color: var(--fg); }
.form-note { font-size: 14px; color: var(--muted); }
.send-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.send-row .btn { padding: 0 18px; white-space: nowrap; }
.btn-wa { background: var(--blue); color: var(--white); box-shadow: 0 12px 40px -12px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-wa:hover { box-shadow: 0 16px 60px -10px rgba(10, 132, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.form-status a { color: var(--blue-hi); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row2 > * { min-width: 0; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ice); padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--ink); color: var(--fg);
  font: inherit; font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(142, 154, 185, .6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 132, 255, .2); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; }
.field-error:empty { display: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-row label {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.chip-row label:hover { border-color: var(--blue-hi); color: var(--fg); }
.chip-row input:checked + label { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 8px 24px -8px rgba(10, 132, 255, .9); }
.chip-row input:focus-visible + label { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.chip-row input:active + label { transform: scale(.96); }

.form-status { padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); }
.form-status.is-ok { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); color: var(--ok); }
.form-status.is-info { border-color: rgba(79, 184, 255, .45); background: rgba(10, 132, 255, .1); color: var(--ice); }
.form-status.is-err { border-color: rgba(255, 107, 122, .45); background: rgba(255, 107, 122, .08); color: var(--err); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2, .send-row { grid-template-columns: 1fr; } }

/* floating WhatsApp button */
.wa-float {
  position: fixed; z-index: 60;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  box-shadow: 0 14px 40px -10px rgba(10, 132, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .3);
  animation: fade-up .8s var(--ease) 2.4s both;
  transition: transform .4s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--blue-hi); animation: wa-ping 2.6s ease-out 3s infinite; pointer-events: none;
}
@keyframes wa-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--fg); font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.wa-float:hover .wa-float-tip, .wa-float:focus-visible .wa-float-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 560px) { .wa-float { width: 54px; height: 54px; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 18px; max-width: 34ch; color: var(--muted); }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 110px); }
.footer-nav div { display: grid; gap: 10px; align-content: start; }
.footer-nav .mono { color: var(--blue-hi); font-size: 11px; margin-bottom: 4px; }
.footer-nav a { color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--fg); }
.footer-word {
  margin: clamp(48px, 8vw, 96px) 0 28px;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 8.6vw, 124px); line-height: .9; letter-spacing: -.03em;
  white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(79, 184, 255, .35);
  background: linear-gradient(90deg, var(--blue), var(--blue-hi)) 0 0 / 0% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.2s var(--ease);
}
.footer-word:hover { background-size: 100% 100%; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.to-top { transition: color .2s; }
.to-top:hover { color: var(--blue-hi); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .preloader { display: none; }
}
