/* ==========================================================================
   NEXT VISION — design system + landing page
   Palette: ink (near black) → cobalt → sky → white
   Type: Geist (UI/display), Geist Mono (labels), Instrument Serif (accents)
   ========================================================================== */

:root {
  --ink: #05060a;
  --ink-2: #0b0d14;
  --ink-3: #141824;
  --paper: #ffffff;
  --mist: #f4f6fb;
  --mist-2: #eaeff8;
  --sky-50: #f0f6ff;
  --sky-100: #dcebff;
  --sky-200: #bcd8ff;
  --sky-300: #8fc3ff;
  --blue-400: #5b7cff;
  --blue-500: #3d5cff;
  --blue-600: #2b4bff;
  --blue-700: #1e36d9;
  --blue-900: #0b1366;
  --mint: #4ade80;

  --text: #0a0b10;
  --muted: #5b6172;
  --faint: #8a90a0;
  --line: rgba(10, 11, 16, 0.08);
  --line-2: rgba(10, 11, 16, 0.14);

  --text-d: #f5f7ff;
  --muted-d: rgba(226, 232, 255, 0.64);
  --faint-d: rgba(226, 232, 255, 0.42);
  --line-d: rgba(255, 255, 255, 0.1);

  --grad-cobalt: linear-gradient(135deg, #05060a 0%, #0b1366 38%, #2b4bff 72%, #8fc3ff 100%);
  --grad-btn: linear-gradient(180deg, #6b8aff 0%, #3d5cff 55%, #2b4bff 100%);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue-500); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px;
  background: #fff; color: var(--ink); border-radius: 10px; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(88px, 12vw, 168px) 0; }
.section--tight { padding: clamp(64px, 8vw, 112px) 0; }
.dark { background: var(--ink); color: var(--text-d); }
.mist { background: var(--mist); }

/* Raised section: rounded top that "rises" over the previous section */
.raise {
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: calc(var(--r-xl) * -1);
  z-index: 2;
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.dark .eyebrow { color: var(--muted-d); }
.eyebrow .idx { color: var(--blue-500); }
.dark .eyebrow .idx { color: var(--sky-300); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(61, 92, 255, .14);
}

.display {
  font-weight: 500;
  font-size: clamp(44px, 8.4vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.h2 {
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h3 {
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.h2 .serif, .display .serif { font-size: 1.06em; }
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 560px;
}
.dark .lede { color: var(--muted-d); }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-d); }
.mono { font-family: var(--mono); }
.grad-text {
  background: linear-gradient(100deg, #fff 0%, #cfe2ff 40%, #8fc3ff 70%, #5b7cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--split {
  grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .section-head--split .lede { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .5s var(--ease), background .3s var(--ease), box-shadow .4s var(--ease), color .3s;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); transition-duration: .12s; }

/* Split pill: label + round arrow badge that slides on hover */
.btn-split { padding: 0 6px 0 24px; gap: 16px; }
.btn-split .badge {
  width: calc(var(--h) - 12px); height: calc(var(--h) - 12px);
  border-radius: 50%; display: grid; place-items: center;
  overflow: hidden; position: relative; flex: none;
  transition: transform .5s var(--ease);
}
.btn-split .badge svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn-split .badge svg + svg { position: absolute; transform: translate(-150%, 150%); }
@media (hover: hover) {
  .btn-split:hover .badge svg:first-child { transform: translate(150%, -150%); }
  .btn-split:hover .badge svg + svg { transform: translate(0, 0); }
}

.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.15),
    0 1px 2px rgba(11, 19, 102, .3),
    0 10px 30px -8px rgba(43, 75, 255, .65);
}
.btn-primary .badge { background: #fff; color: var(--blue-600); }
@media (hover: hover) {
  .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 2px rgba(11,19,102,.3), 0 16px 40px -8px rgba(43,75,255,.8); }
}

.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -10px rgba(0,0,0,.35); }
.btn-light .badge { background: var(--ink); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(5,6,10,.6); }
.btn-dark .badge { background: #fff; color: var(--ink); }

.btn-ghost {
  color: var(--text-d);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-ghost .badge { background: rgba(255,255,255,.12); color: #fff; }
@media (hover: hover) { .btn-ghost:hover { background: rgba(255,255,255,.12); } }

.btn-outline { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; }
@media (hover: hover) { .btn-outline:hover { box-shadow: inset 0 0 0 1px var(--text); } }

.btn-sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-sm.btn-split { padding: 0 5px 0 18px; gap: 12px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .icon-btn:hover { background: var(--ink); color: #fff; box-shadow: none; } }
.dark .icon-btn { box-shadow: inset 0 0 0 1px var(--line-d); }
@media (hover: hover) { .dark .icon-btn:hover { background: #fff; color: var(--ink); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-top: var(--safe-t);
  transition: transform .6s var(--ease), color .4s;
  color: var(--text-d);
}
.header.is-hidden { transform: translateY(-110%); }
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
}
.header-bg {
  position: absolute; inset: 0;
  background: rgba(5, 6, 10, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line-d);
  opacity: 0; transition: opacity .4s var(--ease), background .4s;
}
.header.is-scrolled .header-bg { opacity: 1; }
.header[data-theme='light'] { color: var(--text); }
.header[data-theme='light'] .header-bg { background: rgba(255,255,255,.72); border-bottom-color: var(--line); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 18px; }
.logo-mark { width: 40px; height: 38px; object-fit: contain; flex: none; }
.logo-wordmark { display: block; width: clamp(144px, 44vw, 208px); height: auto; flex: none; filter: brightness(0) invert(1); }
.header[data-theme='light'] .logo-wordmark { filter: none; }
.logo small { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .12em; opacity: .55; margin-left: 2px; text-transform: uppercase; }

.nav { display: none; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px;
  opacity: .78; transition: opacity .25s, background .25s;
}
.nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.header[data-theme='light'] .nav a:hover { background: rgba(10,11,16,.05); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header .btn-call { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .header .btn-call { display: inline-flex; }
}

.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-d);
}
.header[data-theme='light'] .menu-btn { box-shadow: inset 0 0 0 1px var(--line-2); }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease); }
.menu-btn span + span { margin-top: 5px; width: 11px; margin-left: 5px; }
.menu-btn .lines { display: grid; }
@media (min-width: 960px) { .menu-btn { display: none; } }
.header .btn-head { display: none; }
@media (min-width: 560px) { .header .btn-head { display: inline-flex; } }

/* Mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink); color: var(--text-d);
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 14px) var(--gutter) calc(var(--safe-b) + 24px);
  clip-path: inset(0 0 100% 0 round 0 0 32px 32px);
  transition: clip-path .3s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden;
}
.mnav.is-open { clip-path: inset(0 0 0 0 round 0); visibility: visible; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; height: 58px; flex-shrink: 0; }
.mnav-links { margin-top: 24px; display: grid; gap: 0; flex-shrink: 0; }
.mnav-links a {
  display: flex; align-items: center; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line-d);
  font-size: clamp(28px, 7.5vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.mnav-links a small { font-family: var(--mono); font-size: 12px; color: var(--faint-d); letter-spacing: .1em; }
.mnav.is-open .mnav-links a { opacity: 1; transform: none; }
.mnav.is-open .mnav-links a:nth-child(2) { transition-delay: .05s; }
.mnav.is-open .mnav-links a:nth-child(3) { transition-delay: .1s; }
.mnav.is-open .mnav-links a:nth-child(4) { transition-delay: .15s; }
.mnav.is-open .mnav-links a:nth-child(5) { transition-delay: .2s; }
.mnav-foot { margin-top: 24px; display: grid; gap: 10px; flex-shrink: 0; }
.mnav-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; color: var(--muted-d); font-size: 13px; margin-top: 8px; }

/* Hero styles live in hero.css */

/* Tools strip: brand marks with names, drifting slowly under the hero */
.tools { background: var(--ink); color: rgba(226,232,255,.74); border-top: 1px solid var(--line-d); transition: background .4s var(--ease), color .4s; }
.tools[data-theme='light'] { background: var(--mist); color: rgba(10,11,16,.62); border-top-color: var(--line); }
.tools-inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.tools-lbl { padding-top: 18px; font-size: 12.5px; text-align: center; opacity: .7; }
.tools-rail {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tools-track { display: flex; flex: none; gap: 40px; margin: 0; padding: 14px 20px 20px; list-style: none; animation: tools-drift 52s linear infinite; }
.tools-track li { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.tools-track svg { width: 19px; height: 19px; flex: none; }
@keyframes tools-drift { to { transform: translateX(-100%); } }
@media (hover: hover) { .tools-rail:hover .tools-track { animation-play-state: paused; } }
@media (min-width: 900px) {
  .tools-inner { grid-template-columns: auto minmax(0, 1fr); }
  .tools-lbl { padding: 0 28px 0 0; text-align: left; font-size: 13.5px; }
  .tools-track { gap: 52px; padding: 24px 26px; }
  .tools-track li { font-size: 16px; }
  .tools-track svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-rail { overflow-x: auto; scrollbar-width: none; }
  .tools-track { animation: none; }
  .tools-track[aria-hidden] { display: none; }
}

/* ---------- Reveal animations ---------- */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.is-in { opacity: 1; transform: none; filter: none; }
.mask-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.is-in .mask-line > span, .mask-line.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; filter: none; }
  .mask-line > span { transform: none; }
}

/* ---------- ABOUT / STATEMENT ---------- */
.statement {
  font-size: clamp(28px, 4.1vw, 54px);
  line-height: 1.12; letter-spacing: -0.035em; font-weight: 500;
  max-width: 1120px;
  text-wrap: pretty;
}
.statement .w { color: rgba(10,11,16,.16); transition: color .35s; }
.statement .w.on { color: var(--text); }
.statement .w.alt.on { color: var(--muted); }
.statement .inline-mark {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 1.05em; height: 1.05em; border-radius: .26em; margin: 0 .08em;
  background: var(--grad-btn); box-shadow: 0 6px 18px -6px rgba(43,75,255,.7), inset 0 1px 0 rgba(255,255,255,.4);
  transform: translateY(-.06em) rotate(-6deg);
}
.statement .inline-mark svg { width: 64%; height: 64%; }
.about-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); align-items: flex-start; }
.about-top .meta { text-align: right; font-size: 13.5px; color: var(--muted); max-width: 260px; }

.bento { display: grid; gap: 14px; margin-top: clamp(48px, 7vw, 88px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: 1.05fr 1fr 1fr; } }
.card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(22px, 2.4vw, 30px);
}
.card-photo { padding: 0; min-height: 420px; background: var(--sky-100); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.4s var(--ease); }
@media (hover: hover) { .card-photo:hover img { transform: scale(1.04); } }
.glass {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 18px 40px -18px rgba(11,19,102,.35);
}
.card-photo .glass { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 20px; padding: 18px 20px; }
.big-num { font-family: var(--serif); font-style: italic; font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.card .small { font-size: 14px; color: var(--muted); line-height: 1.45; }

.card-score { display: flex; flex-direction: column; min-height: 420px; }
.score-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.ring { width: 96px; height: 96px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: rgba(10,11,16,.07); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.8s var(--ease); }
.is-in .ring .bar { stroke-dashoffset: calc(264 - 264 * var(--p, .82)); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 500; letter-spacing: -0.04em; }
.opps { margin-top: auto; display: grid; gap: 8px; }
.opp {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px -8px rgba(10,11,16,.15);
  font-size: 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms + 500ms);
}
.is-in .opp { opacity: 1; transform: none; }
.opp .tag { font-family: var(--mono); font-size: 11px; color: var(--blue-600); background: var(--sky-50); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.opp .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--sky-50); color: var(--blue-600); flex: none; }
.opp .ico svg { width: 14px; height: 14px; }
.opp .l { display: flex; align-items: center; gap: 10px; }

.card-dark { background: var(--ink); color: var(--text-d); box-shadow: none; display: flex; flex-direction: column; min-height: 420px; }
.card-dark .small { color: var(--muted-d); }
.card-dark::before {
  content: ''; position: absolute; inset: auto -20% -50% -20%; height: 90%;
  background: radial-gradient(closest-side, rgba(61,92,255,.55), rgba(61,92,255,0));
  filter: blur(10px); pointer-events: none;
}
.card-dark > * { position: relative; }
.timeline-mini { margin-top: auto; display: grid; gap: 0; }
.tm { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-d); font-size: 14px; }
.tm b { font-family: var(--mono); font-weight: 400; color: var(--sky-300); font-size: 12.5px; padding-top: 2px; }

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  display: flex; flex-direction: column; gap: 22px;
  border-radius: var(--r-lg); padding: 10px 10px 26px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(11,19,102,.25);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
@media (hover: hover) { .svc:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 40px 70px -36px rgba(11,19,102,.35); } }
.svc-ui {
  position: relative; height: 290px; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(61,92,255,.28), transparent 60%),
    linear-gradient(180deg, var(--sky-50), #fff);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.svc-ui::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
  opacity: .7;
}
.svc-body { padding: 0 16px; display: grid; gap: 10px; }
.svc-body .num { font-family: var(--mono); font-size: 12px; color: var(--blue-600); letter-spacing: .1em; }
.svc-body p { color: var(--muted); font-size: 15px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; margin-top: auto; }
.svc-tags span { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); }

/* micro UI: opportunity checklist */
.ui-panel {
  position: relative; width: min(84%, 300px);
  background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px var(--line), 0 24px 48px -20px rgba(11,19,102,.35);
}
.ui-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.ui-head .pill { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--blue-600); background: var(--sky-50); padding: 4px 8px; border-radius: 999px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.check-row .cb {
  width: 18px; height: 18px; border-radius: 6px; flex: none; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .35s, box-shadow .35s;
}
.check-row .cb svg { width: 11px; height: 11px; color: #fff; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .4s var(--ease) .1s; }
.check-row.done .cb { background: var(--blue-500); box-shadow: none; }
.check-row.done .cb svg { stroke-dashoffset: 0; }
.check-row .t { flex: 1; }
.check-row .h { font-family: var(--mono); font-size: 11px; color: var(--faint); transition: color .3s; }
.check-row.done .h { color: var(--blue-600); }

/* micro UI: choosing a practical workflow */
.svc-ui.svc-ui--advice { min-height: 310px; }
.tool-review { position: relative; width: min(88%, 310px); padding: 14px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px var(--line-2); }
.tool-review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.tool-review-head b { display: block; font-size: 14px; margin-top: 3px; }
.tool-review-head small { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.tool-replay { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; color: var(--blue-600); background: var(--sky-50); cursor: pointer; transition: transform 160ms var(--ease); }
.tool-replay:active { transform: scale(.96); }
.tool-replay svg, .tool-icon svg { width: 15px; height: 15px; }
.tool-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); overflow: hidden; }
.tool-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--sky-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.tool-option b { display: block; font-size: 12px; font-weight: 500; }
.tool-option small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.tool-tick { display: grid; place-items: center; width: 18px; height: 18px; margin-left: auto; flex: none; border-radius: 50%; background: var(--blue-600); color: var(--paper); }
.tool-tick svg, .tool-result svg { width: 11px; height: 11px; }
.tool-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue-500); transform-origin: left; }
.tool-result { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 9px 4px 0; color: var(--blue-600); font-size: 10px; font-weight: 500; }
.tool-review.is-playing .tool-progress { animation: tool-fill 900ms cubic-bezier(.23,1,.32,1) both; }
.tool-review.is-playing .tool-tick { animation: tool-confirm 260ms cubic-bezier(.23,1,.32,1) both; }
.tool-review.is-playing .tool-option:nth-child(2) .tool-progress { animation-delay: .4s; }
.tool-review.is-playing .tool-option:nth-child(3) .tool-progress { animation-delay: 1.7s; }
.tool-review.is-playing .tool-option:nth-child(4) .tool-progress { animation-delay: 3s; }
.tool-review.is-playing .tool-option:nth-child(2) .tool-tick { animation-delay: 1.1s; }
.tool-review.is-playing .tool-option:nth-child(3) .tool-tick { animation-delay: 2.4s; }
.tool-review.is-playing .tool-option:nth-child(4) .tool-tick { animation-delay: 3.7s; }
.tool-review.is-playing .tool-result { animation: tool-confirm 300ms cubic-bezier(.23,1,.32,1) 4.2s both; }
@keyframes tool-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tool-confirm { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tool-review .tool-progress, .tool-review .tool-tick, .tool-review .tool-result { animation: none !important; transform: none; opacity: 1; } .tool-replay { display: none; } }

/* micro UI: workflow */
.flow-ui { position: relative; width: 100%; height: 100%; }
.flow-ui svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-ui .wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow-ui .pulse { fill: none; stroke: var(--blue-500); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 22 400; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(61,92,255,.7)); }
.node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 8px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 24px -14px rgba(11,19,102,.4);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: box-shadow .4s, transform .4s var(--spring);
}
.node .ni { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--sky-50); color: var(--blue-600); }
.node .ni svg { width: 13px; height: 13px; }
.node.hot { box-shadow: 0 0 0 1.5px var(--blue-500), 0 0 0 6px rgba(61,92,255,.12), 0 12px 24px -14px rgba(11,19,102,.4); transform: translate(-50%, -50%) scale(1.05); }
.node.ai .ni { background: var(--grad-btn); color: #fff; }

/* Service rows */
.svc-rows { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.svc-row .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.svc-row h3 { font-size: clamp(24px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; transition: transform .6s var(--ease), color .3s; }
.svc-row .sub { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.svc-row .tags { display: none; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--muted); max-width: 440px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 80px 1.2fr 1fr auto; gap: 24px; }
  .svc-row .tags { display: flex; }
}
@media (hover: hover) {
  .svc-row:hover h3 { transform: translateX(8px); color: var(--blue-600); }
  .svc-row:hover .icon-btn { background: var(--blue-600); color: #fff; box-shadow: none; transform: rotate(45deg); }
}

/* ---------- PROCESS (dark) ---------- */
.process { overflow: hidden; }
.process::before {
  content: ''; position: absolute; left: 50%; top: -10%; width: 1200px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(43,75,255,.22), transparent 70%);
  pointer-events: none;
}
.steps { position: relative; display: grid; gap: 0; grid-template-columns: 1fr; }
.steps-line { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 44px; }
  .steps-line { display: block; position: absolute; left: 8px; right: 0; top: 7px; height: 1px; background: var(--line-d); }
  .steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue-500), var(--sky-300)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(91,124,255,.8); }
}
.step { position: relative; padding: 0 0 40px 40px; }
.step::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 0; width: 1px; background: var(--line-d); }
.step:last-child::before { display: none; }
.step .dot {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); background: var(--ink);
  transition: background .5s, box-shadow .5s;
}
.step.on .dot { background: var(--blue-500); box-shadow: 0 0 0 5px rgba(61,92,255,.2), 0 0 24px rgba(91,124,255,.9); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--faint-d); }
.step h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.04em; margin: 10px 0 12px; color: rgba(255,255,255,.4); transition: color .6s; }
.step.on h3 { color: #fff; }
.step p { color: var(--faint-d); font-size: 15.5px; max-width: 34ch; transition: color .6s; }
.step.on p { color: var(--muted-d); }
.step .when { display: inline-flex; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-d); color: var(--muted-d); }
.step.on .when { color: var(--sky-300); box-shadow: inset 0 0 0 1px rgba(143,195,255,.35); }
@media (max-width: 899px) {
  .step .n { display: block; line-height: 15px; }
}
@media (min-width: 900px) {
  .step { padding: 0; }
  .step::before { display: none; }
  .step .dot { top: -44px; }
}

/* VSL */
.vsl { margin-top: clamp(72px, 10vw, 140px); display: grid; gap: 28px; }
@media (min-width: 1000px) { .vsl { grid-template-columns: .8fr 1.6fr; align-items: end; gap: 48px; } }
.vsl-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: #0b0d14; box-shadow: 0 0 0 1px var(--line-d), 0 40px 120px -40px rgba(43,75,255,.6);
}
.vsl-frame img, .vsl-frame iframe, .vsl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vsl-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,6,10,.7)); pointer-events: none; }
.vsl-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  transition: transform .5s var(--spring), background .3s;
}
.vsl-play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.25); animation: ripple 2.4s var(--ease) infinite; }
@keyframes ripple { 0% { transform: scale(.85); opacity: 1 } 100% { transform: scale(1.5); opacity: 0 } }
.vsl-play svg { width: 26px; height: 26px; margin-left: 4px; }
@media (hover: hover) { .vsl-frame:hover .vsl-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,.22); } }
.vsl-meta { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.vsl-meta .soon { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- USE CASES ---------- */
.tabs {
  position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--mist); box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; width: max-content; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none; scroll-snap-align: center;
  height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--muted); transition: color .35s;
}
.tab[aria-selected='true'] { color: #fff; }
.tabs .ind {
  position: absolute; z-index: 0; top: 5px; height: 42px; border-radius: 999px; background: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(5,6,10,.6);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.cases { margin-top: 28px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case {
  border-radius: var(--r-lg); padding: 24px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 210px;
  animation: caseIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes caseIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px) } to { opacity: 1; transform: none; filter: none } }
.case .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--blue-600); }
.case .ico svg { width: 20px; height: 20px; }
.case h4 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.case p { font-size: 14.5px; color: var(--muted); }
.cases-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---------- FOUNDER ---------- */
.founder { background: linear-gradient(180deg, var(--paper) 0%, var(--sky-50) 40%, var(--sky-100) 100%); overflow: hidden; }
.founder-grid { display: grid; gap: clamp(36px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .founder-grid { grid-template-columns: .9fr 1.1fr; } }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(11,19,102,.45), inset 0 0 0 1px rgba(255,255,255,.6);
  background: var(--sky-100);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait .tagline {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 18px; padding: 14px 16px;
}
.portrait .tagline b { font-weight: 500; font-size: 15px; display: block; }
.portrait .tagline small { color: var(--muted); font-size: 13px; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #15803d; background: rgba(74,222,128,.16); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.avail i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.founder h2 .serif { color: var(--blue-600); }
.bio { display: grid; gap: 16px; margin-top: 26px; font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--muted); max-width: 58ch; }
.bio strong { color: var(--text); font-weight: 500; }
.chrono { margin-top: 34px; border-top: 1px solid var(--line-2); }
.chrono li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.chrono li b { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--blue-600); letter-spacing: .04em; padding-top: 2px; }
.chrono li span { color: var(--text); }
.chrono li em { display: block; font-style: normal; color: var(--muted); font-size: 14px; margin-top: 2px; }
.nda { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.nda svg { width: 16px; height: 16px; color: var(--blue-600); }

/* ---------- BOOK ---------- */
.book-grid { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1040px) { .book-grid { grid-template-columns: .85fr 1.15fr; } }
.expect { margin-top: 30px; display: grid; gap: 12px; }
.expect li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; }
.expect li .ck { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--sky-50); color: var(--blue-600); }
.expect li .ck svg { width: 12px; height: 12px; }
.expect li span { color: var(--muted); }
.expect li b { color: var(--text); font-weight: 500; display: block; }
.alt-contact { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq-side { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 960px) { .faq-side { position: sticky; top: 110px; align-self: start; min-height: 440px; } .faq-side .still { margin-top: auto; } }
.still h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.still p { color: var(--muted); font-size: 15px; margin: 8px 0 18px; max-width: 34ch; }
.faq-list { display: grid; gap: 10px; }
.qa { border-radius: 20px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s; }
.qa[open], .qa.is-open { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -28px rgba(11,19,102,.3); }
.qa .qa-q {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 10px;
  padding: 22px 22px; font-size: clamp(16.5px, 1.6vw, 20px); font-weight: 500; letter-spacing: -0.02em;
}

.qa .qa-q .n { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--faint); }
.qa .qa-q .pm { position: relative; width: 18px; height: 18px; justify-self: end; }
.qa .qa-q .pm::before, .qa .qa-q .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease); }
.qa .qa-q .pm::after { transform: rotate(90deg); }
.qa.is-open summary .pm::after { transform: rotate(0); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa.is-open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 22px 24px 76px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
@media (max-width: 600px) {
  .qa .qa-q { grid-template-columns: 34px 1fr 22px; padding: 18px 16px; }
  .qa .ans p { padding: 0 16px 20px 60px; }
}

/* ---------- FINAL CTA + FOOTER ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-cobalt); color: #fff;
  padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
  text-align: center;
}
.final .grid-bg {
  position: absolute; inset: -20% -10% 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(58deg) translateY(10%);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 70%); mask-image: linear-gradient(180deg, transparent 10%, #000 70%);
}
.final h2 { max-width: 14ch; margin: 22px auto 0; }
.final .lede { margin: 22px auto 0; color: rgba(255,255,255,.8); text-align: center; }
.final .ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.final .eyebrow { color: rgba(255,255,255,.75); }
.final .eyebrow .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }

.footer { background: var(--ink); color: var(--text-d); padding: clamp(64px, 8vw, 100px) 0 calc(28px + var(--safe-b)); overflow: hidden; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h5 { margin: 0 0 16px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint-d); }
.foot-grid ul { display: grid; gap: 10px; }
.foot-grid a { color: var(--muted-d); transition: color .2s; }
.foot-grid a:hover { color: #fff; }
.foot-grid .blurb { color: var(--muted-d); max-width: 34ch; margin-top: 16px; font-size: 15px; }
.wordmark {
  margin-top: clamp(56px, 8vw, 100px);
  font-size: clamp(52px, 15.2vw, 228px); font-weight: 600; letter-spacing: -0.06em; line-height: .8;
  white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(143,195,255,.55) 45%, rgba(61,92,255,.08) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-user-select: none; user-select: none;
  padding-bottom: .05em;
}
.foot-bottom { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint-d); border-top: 1px solid var(--line-d); padding-top: 22px; }

/* ---------- Mobile CTA dock ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; z-index: 55;
  bottom: calc(12px + var(--safe-b));
  display: flex; gap: 8px; padding: 8px;
  border-radius: 24px;
  background: rgba(10, 12, 20, .72);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 40px -12px rgba(5,6,10,.55);
  transform: translateY(calc(100% + 24px + var(--safe-b)));
  transition: transform .7s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { --h: 50px; flex: 1; }
.dock .btn-split { justify-content: space-between; }
.dock .icon-btn { width: 50px; height: 50px; flex: none; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); border-radius: 17px; }
@media (min-width: 960px) {
  .dock { left: auto; right: 24px; bottom: 24px; width: 360px; }
}
.qa .qa-q { width: 100%; text-align: left; color: inherit; border-radius: 20px; }

/* ---------- Fixes after visual QA ---------- */
.header[data-theme='light'] .btn-ghost { color: var(--text); background: rgba(10,11,16,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (min-width: 960px) { .dock { display: none; } }
.wordmark { overflow: hidden; }

/* Mobile sections: natural heading wraps and less empty space. */
@media (max-width: 759px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .h2 { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.12; text-wrap: initial; }
  .section-head { gap: 16px; margin-bottom: 28px; }
  .svc-ui { height: 240px; }
}
@media (max-width: 759px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-grid > * { min-width: 0; }
  .mask-line > span { max-width: 100%; }
}
@media (max-width: 359px) {
  .ui-panel { width: 94%; padding: 12px; }
  .ui-head { font-size: 12px; }
  .ui-head .pill { display: none; }
  .check-row { font-size: 11.5px; gap: 6px; }
}

/* Keep the tools row unobstructed and services readable on first paint. */
#services.raise { margin-top: 0; }
#services .rv { opacity: 1; transform: none; filter: none; transition: none; }
#services .mask-line > span { transform: none; transition: none; }
@media (max-width: 759px) {
  #services.section { padding-top: 40px; }
}


/* The examples and introduction share one compact transition. */
#cases.section { padding-top: clamp(56px, 6vw, 88px); padding-bottom: 40px; }
#about.section { padding-top: 40px; padding-bottom: clamp(56px, 6vw, 88px); }
#about .rv { opacity: 1; transform: none; filter: none; transition: none; }
#about .mask-line > span { transform: none; transition: none; }
@media (max-width: 759px) {
  #cases.section { padding-top: 48px; padding-bottom: 28px; }
  #about.section { padding-top: 28px; padding-bottom: 56px; }
}
