/* ==========================================================================
   QuickScript — main stylesheet
   Light, airy, cyan→blue. Display: Inter Tight · Body: Inter · Labels: JetBrains Mono
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #edf3ff;
  --ink: #0b1220;
  --ink-2: #4a5568;
  --ink-3: #8a94a6;
  --c1: #10b4e8;
  --c2: #3e52f3;
  --grad: linear-gradient(135deg, var(--c1), var(--c2));
  --line: rgba(11, 18, 32, 0.08);
  --line-2: rgba(11, 18, 32, 0.14);
  --shadow-lg: 0 24px 60px rgba(20, 40, 80, 0.10);
  --r: 20px;
  --r-lg: 28px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, address { margin: 0; }
address { font-style: normal; }
::selection { background: rgba(62, 82, 243, 0.18); }

/* ---------- Type ---------- */
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
}
.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 620px;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(16, 180, 232, 0.14);
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(84px, 10vw, 140px) 0; }
.section__head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section__head--row .h2 { margin-bottom: 0; max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 15px 24px;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn--primary {
  color: #fff;
  background-image: var(--grad);
  box-shadow: 0 8px 24px rgba(62, 82, 243, 0.22);
}
.btn--primary:hover { box-shadow: 0 16px 36px rgba(62, 82, 243, 0.34); }
.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: #fff; border-color: var(--ink-3); }
.btn--lg { --pad: 19px 30px; font-size: 16px; }
.btn__arrow {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  white-space: nowrap;
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--bg-tint); color: var(--c2);
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li {
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
}
.chips--sm li { padding: 5px 10px; font-size: 11.5px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: #fff;
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0s 0.7s;
}
.loader__mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad);
  animation: loaderPulse 1.1s var(--ease) infinite;
}
@keyframes loaderPulse {
  0% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.7); opacity: 0.4; }
}
.is-ready .loader { opacity: 0; visibility: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px var(--gutter);
  display: flex; justify-content: center;
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}
.nav.is-hidden { transform: translateY(-130%); }
.nav__pill {
  pointer-events: auto;
  width: 100%; max-width: calc(var(--container) + 40px);
  height: 64px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 40px rgba(20, 40, 80, 0.08);
  transition: height 0.4s var(--ease), background-color 0.4s;
}
.nav.is-scrolled .nav__pill { height: 58px; background: rgba(255, 255, 255, 0.88); }
.nav__logo img { height: 26px; width: auto; }
.nav__links { margin-left: auto; display: flex; gap: 2px; }
.nav__links a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color 0.25s, background-color 0.25s;
}
.nav__links a:hover { color: var(--ink); background: rgba(11, 18, 32, 0.05); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--bg-tint); }
.nav__cta { margin-left: 10px; --pad: 12px 20px; font-size: 14px; }
.nav__burger {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease), visibility 0s; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.15;
  color: var(--ink-3);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.3s;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.2s; }
.menu__links a[aria-current="page"], .menu__links a:hover { color: var(--ink); }
.menu__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink-2); font-size: 14px; }

/* ---------- Scroll story ---------- */
.story { position: relative; height: 520vh; background: #fff; }
.story__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #fff;
}
.story__media { position: absolute; inset: 0; }
.story__video, .story__still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.story__still { opacity: 0; transition: opacity 0.8s var(--ease); }
.story__still.is-active { opacity: 1; }
.story__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 30%, rgba(255, 255, 255, 0.35) 52%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, 1) 100%);
}
.story__chapters {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  top: 0; bottom: 0;
  width: min(600px, 46vw);
  display: grid; align-items: center;
  padding-top: 40px;
}
.chapter {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.chapter.is-active { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease) 0.08s, visibility 0s; }
.chapter > * {
  opacity: 0;
  transform: translateY(26px);
  transition: transform 0.85s var(--ease), opacity 0.7s var(--ease);
}
.chapter.is-past > * { transform: translateY(-22px); }
.chapter.is-active > * { opacity: 1; transform: none; }
.chapter.is-active > :nth-child(2) { transition-delay: 0.07s; }
.chapter.is-active > :nth-child(3) { transition-delay: 0.14s; }
.chapter.is-active > :nth-child(4) { transition-delay: 0.22s; }
.chapter__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.35rem, 5.1vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.04em;
  margin: 26px 0 22px;
}
.chapter__text { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.62; color: var(--ink-2); max-width: 520px; }
.chapter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.scrollhint {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.scrollhint__line {
  position: relative; width: 36px; height: 1px; background: var(--line-2); overflow: hidden;
}
.scrollhint__line::after {
  content: ""; position: absolute; inset: 0; background: var(--grad);
  transform: translateX(-100%);
  animation: hintSlide 1.8s var(--ease) infinite;
}
@keyframes hintSlide { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.story__rail {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 22px;
}
.rail__count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-3); }
.rail__count [data-rail-current] { color: var(--ink); font-size: 22px; }
.rail__sep { margin: 0 6px; }
.rail__dots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rail__dots li {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  font-size: 12px; font-weight: 500; color: var(--ink-3);
}
.rail__dots li span { opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.4s var(--ease), color 0.3s; }
.rail__dots li i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-2);
  transition: transform 0.4s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.rail__dots li.is-active span { opacity: 1; transform: none; color: var(--ink); }
.rail__dots li.is-active i { background: var(--c2); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(62, 82, 243, 0.14); }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden; padding: 18px 0;
}
.ticker__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.ticker__track i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Problems ---------- */
.problems__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pcard {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center;
  padding: 34px;
  border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(16, 180, 232, 0.13), rgba(62, 82, 243, 0.05) 45%, transparent 65%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight] > * { position: relative; z-index: 1; }
.pcard__before p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.pcard__after h3 {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem); line-height: 1.2; letter-spacing: -0.02em;
}
.pcard__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-tint);
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
.pcard__arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--c2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pcard:hover .pcard__arrow { transform: translateX(6px); }

/* ---------- Services rows ---------- */
.srows { border-top: 1px solid var(--line); }
.srow { border-bottom: 1px solid var(--line); }
.srow__head {
  width: 100%;
  display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 20px;
  padding: 30px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.srow__num { color: var(--ink-3); }
.srow__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em;
  transition: transform 0.45s var(--ease);
}
.srow:hover .srow__title { transform: translateX(10px); }
.srow.is-open .srow__title { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.srow__icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
}
.srow__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; transition: stroke 0.3s; }
.srow.is-open .srow__icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); }
.srow.is-open .srow__icon svg { stroke: #fff; }
.srow__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.srow.is-open .srow__body { grid-template-rows: 1fr; }
.srow__inner { overflow: hidden; }
.srow__inner > * { margin-left: 84px; }
.srow__inner p { max-width: 640px; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.srow__inner .chips { margin-bottom: 36px; }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work__pin {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 60px 0;
}
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; width: 100%; }
.work__head .h2 { margin-bottom: 0; }
.work__track {
  display: flex; gap: 24px;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
  will-change: transform;
}
.wcard {
  position: relative; overflow: hidden;
  flex: 0 0 auto; width: min(440px, 78vw);
  border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.wcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.wcard__stage {
  position: relative; height: 300px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, var(--tint, #e7f0ff) 0%, #f7f9fc 70%);
}
.wcard--green { --tint: #d6f5e6; }
.wcard--blue { --tint: #dbe8ff; }
.wcard--amber { --tint: #fff0c9; }
.phone {
  position: absolute; bottom: -34px; left: 50%;
  width: 40%; height: auto;
  border-radius: 20px;
  border: 4px solid #0b1220; background: #0b1220;
  box-shadow: 0 26px 50px rgba(20, 40, 80, 0.24);
  transform-origin: bottom center;
  transition: transform 0.6s var(--ease);
}
.phone--c { transform: translateX(-50%) translateY(0); z-index: 2; }
.phone--l { transform: translateX(-118%) translateY(24px) rotate(-8deg); opacity: 0.9; }
.phone--r { transform: translateX(18%) translateY(24px) rotate(8deg); opacity: 0.9; }
.wcard:hover .phone--c { transform: translateX(-50%) translateY(-10px); }
.wcard:hover .phone--l { transform: translateX(-128%) translateY(18px) rotate(-10deg); }
.wcard:hover .phone--r { transform: translateX(28%) translateY(18px) rotate(10deg); }
.wcard__body { padding: 26px 28px 30px; }
.wcard__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -0.025em; margin: 10px 0 10px; }
.wcard__body p:not(.mono) { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.wcard--cta {
  width: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.wcard__cta-text { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; line-height: 1.05; letter-spacing: -0.03em; }
.wcard--cta svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; align-self: flex-end; transition: transform 0.35s var(--ease); }
.wcard--cta:hover svg { transform: translateX(6px); }

/* ---------- Proof ---------- */
.proof { padding-top: clamp(60px, 7vw, 96px); padding-bottom: clamp(60px, 7vw, 96px); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { padding: 6px 0 6px 24px; border-left: 1px solid var(--line-2); }
.stat__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.stat p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; max-width: 240px; }

/* ---------- Process ---------- */
.process { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 44px; border-top: 1px solid var(--line-2); }
.steps__line { position: absolute; left: 0; top: -1px; width: 100%; height: 2px; overflow: visible; }
.steps__line path { fill: none; stroke: var(--c2); stroke-width: 2; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: 0; top: -49px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px #f5f8fc;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.025em; margin: 12px 0 10px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }

/* ---------- CTA ---------- */
.cta__card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  border-radius: 36px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
  border: 1px solid var(--line);
}
.cta__card::after {
  content: ""; position: absolute; z-index: 0;
  width: 760px; height: 760px; left: 50%; bottom: -600px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(62, 82, 243, 0.24), rgba(16, 180, 232, 0.12) 50%, transparent 72%);
  pointer-events: none;
}
.cta__card > * { position: relative; z-index: 1; }
.cta__card .h1 { margin: 22px auto 18px; max-width: 900px; }
.cta__card .lead { margin: 0 auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 320px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { margin-bottom: 8px; }
.footer__col a, .footer__col address { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; transition: color 0.25s; }
.footer__col a:hover { color: var(--ink); }
.footer__bar {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  color: var(--ink-3); font-size: 13px;
}

/* ---------- Inner pages ---------- */
.page-head { padding: calc(var(--nav-offset, 110px) + 40px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; z-index: 0;
  width: 900px; height: 900px; right: -300px; top: -520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 180, 232, 0.16), rgba(62, 82, 243, 0.06) 50%, transparent 72%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .h1 { margin: 22px 0 22px; max-width: 900px; }
.page-head .lead { max-width: 640px; }

/* ---------- Reveal helpers (JS-only) ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js [data-split] .w > span { display: inline-block; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .proof__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work__pin { min-height: 0; padding: clamp(84px, 10vw, 140px) 0; }
  .work__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .work__track {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
    padding-bottom: 12px; will-change: auto;
    scrollbar-width: none;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .wcard { scroll-snap-align: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .story { height: 480vh; }
  .story__wash {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.92) 62%, #fff 100%);
  }
  .story__chapters {
    left: var(--gutter); right: var(--gutter); width: auto;
    align-items: end; padding: 0 0 76px;
  }
  .chapter__title { font-size: clamp(2rem, 9.5vw, 2.8rem); margin: 18px 0 14px; }
  .chapter__text { font-size: 15.5px; }
  .chapter__actions { margin-top: 24px; }
  .story__rail { right: auto; left: var(--gutter); top: auto; bottom: 26px; transform: none; flex-direction: row; align-items: center; gap: 16px; }
  .rail__count { display: none; }
  .rail__dots { flex-direction: row; gap: 10px; }
  .rail__dots li span { display: none; }
  .problems__grid { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
  .pcard__arrow { transform: rotate(90deg); width: 36px; height: 36px; }
  .pcard:hover .pcard__arrow { transform: rotate(90deg) translateX(4px); }
  .srow__head { grid-template-columns: 44px 1fr 40px; padding: 22px 0; }
  .srow__inner > * { margin-left: 0; }
  .srow__icon { width: 40px; height: 40px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step::before { top: 2px; left: -2px; display: none; }
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta__card { border-radius: 28px; }
  .cta__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Service detail (services page) ---------- */
.sdetail {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.sdetail:first-child { border-top: 0; padding-top: 0; }
.sdetail:nth-child(even) .sdetail__media { order: 2; }
.sdetail__media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.sdetail__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.sdetail:hover .sdetail__media img { transform: scale(1.07); }
.sdetail__body .h2 { margin: 16px 0 14px; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.sdetail__body .lead { font-size: 1.02rem; }
.checks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

/* ---------- Project feature (work page) ---------- */
.pfeature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line);
}
.pfeature:first-child { border-top: 0; padding-top: 0; }
.pfeature:nth-child(even) .pfeature__stage { order: 2; }
.pfeature__stage {
  position: relative; overflow: hidden;
  height: clamp(320px, 40vw, 460px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 110%, var(--tint, #e7f0ff) 0%, #f7f9fc 70%);
}
.pfeature__stage .phone { width: 34%; bottom: -50px; }
.pfeature:hover .phone--c { transform: translateX(-50%) translateY(-12px); }
.pfeature:hover .phone--l { transform: translateX(-128%) translateY(18px) rotate(-10deg); }
.pfeature:hover .phone--r { transform: translateX(28%) translateY(18px) rotate(10deg); }
.pfeature__body .h2 { margin: 16px 0 14px; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.pfeature__body .lead { font-size: 1.02rem; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stores .btn { --pad: 12px 18px; font-size: 14px; }

/* ---------- About ---------- */
.about__story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__story .h2 { margin: 0; }
.about__story .lead + .lead { margin-top: 18px; }
.band { position: relative; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard {
  position: relative; overflow: hidden; padding: 32px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vcard__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-tint); display: grid; place-items: center; margin-bottom: 40px; }
.vcard__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--c2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.vcard p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.facts { margin: 0; border-top: 1px solid var(--line-2); }
.fact { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fact dt { align-self: center; }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form h2, .contact__aside h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; }
.form__hint { color: var(--ink-3); font-size: 14px; margin: 6px 0 28px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 15px 16px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-soft);
  font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); font-weight: 400; }
.field input:focus, .field textarea:focus { border-color: var(--c2); background: #fff; box-shadow: 0 0 0 4px rgba(62, 82, 243, 0.12); }
.field textarea { min-height: 160px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: 10px; }
.form__status { margin-top: 14px; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.form__status.is-error { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form__done { display: none; text-align: center; padding: 24px 0; }
.form__done-mark { position: relative; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--grad); box-shadow: 0 12px 30px rgba(62, 82, 243, 0.3); }
.form__done-mark::after { content: ""; position: absolute; left: 23px; top: 17px; width: 14px; height: 24px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.form__done .lead { margin: 12px auto 0; max-width: 420px; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__done { display: block; }
.contact__aside h2 { margin-bottom: 10px; }
.crow { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.crow__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; }
.crow__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--c2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.crow .mono { margin-bottom: 4px; }
.crow a, .crow address { color: var(--ink); font-weight: 500; font-size: 15.5px; line-height: 1.45; transition: color 0.25s; }
.crow a:hover { color: var(--c2); }
.next { margin-top: 40px; }
.next ol { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.next li span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--c2); padding-top: 3px; }

@media (max-width: 960px) {
  .sdetail, .pfeature, .about__story, .contact { grid-template-columns: 1fr; }
  .sdetail:nth-child(even) .sdetail__media, .pfeature:nth-child(even) .pfeature__stage { order: 0; }
  .pfeature__stage { height: clamp(280px, 60vw, 420px); }
  .values { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 6px; }
  .band { aspect-ratio: 16 / 10; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker__track { animation: none; }
  .js [data-reveal] { opacity: 1; }
  .js [data-split] .w > span { transform: none !important; }
  .loader { display: none; }
}
