/* BoxSpatial — design system
   Static, dependency-free. System font stack (SF Pro on Apple devices). */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .1);
  --indigo: #474ab5;
  --coral: #e97d7f;
  --blue: #4b4fc4;
  --blue-hover: #5c60d6;
  --link: #4347b8;
  --accent: var(--indigo);
  --grad-brand: linear-gradient(90deg, #2997ff 0%, #a972ff 52%, #ff6b9d 100%);
  --grad-ai: linear-gradient(90deg, #8286f8 0%, #ee8284 100%);
  --grad-geo: linear-gradient(90deg, #19c8a6 0%, #2997ff 100%);
  --grad-warm: linear-gradient(90deg, #ff9f0a 0%, #ff5e5b 100%);
  --radius: 28px;
  --radius-sm: 18px;
  --nav-h: 60px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
}

.dark {
  --bg: #000000;
  --bg-alt: #0b0b0d;
  --card: #161617;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --line: rgba(255, 255, 255, .14);
  --link: #a3a6ff;
  --accent: #f08a8c;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 64px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(75, 79, 196, .6); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(75, 79, 196, .25); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 900px; }
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.head { max-width: 860px; margin: 0 auto clamp(44px, 6vw, 80px); text-align: center; }
.head--left { margin-left: 0; text-align: left; }

/* ---------- Type ---------- */
.display { font-size: clamp(44px, 8.4vw, 108px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 4.8vw, 60px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; }
.h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; font-weight: 600; letter-spacing: -.022em; }
.h4 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.lead { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.38; color: var(--ink-2); font-weight: 400; letter-spacing: -.015em; }
.head .lead, .hero .lead { margin-top: 20px; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }
/* Accent text takes one of the two logo colours: indigo on light, coral on dark */
.grad { color: var(--accent); }
.grad-ai { color: #a3a6ff; }
.grad-geo { color: #0f9f86; }
.dark .grad-geo { color: #2fd4b5; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 980px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; transform: scale(1.02); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--link); color: #fff; box-shadow: inset 0 0 0 1.5px var(--link); }
.dark .btn--ghost:hover { color: #000; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: #e8e8ed; }
.arrow { font-size: clamp(17px, 1.6vw, 21px); display: inline-flex; align-items: center; gap: 4px; }
.arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-.04em); transition: transform .2s var(--ease); }
.arrow:hover::after { transform: translate(4px, -.04em); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 34px; }
.center .actions, .head .actions { justify-content: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 980px;
  font-size: 14px; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line);
}
.section--alt .chip, .tile .chip, .case .chip { background: transparent; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .78); color: #1d1d1f;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .1); }
.nav--dark { background: rgba(10, 10, 12, .72); color: #f5f5f7; }
.nav--dark.scrolled { border-bottom-color: rgba(255, 255, 255, .12); }
.nav__inner { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { height: 40px; width: auto; }
.nav--dark .logo__box { fill: #9a9dff; }
.nav--dark .logo__spatial { fill: #f08a8c; }
.footer .brand .logo { height: 56px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { color: inherit; font-size: 13.5px; opacity: .82; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle {
    display: block; position: relative; width: 44px; height: 44px; margin-left: auto; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
  .nav__toggle span:first-child { top: 18px; }
  .nav__toggle span:last-child { top: 25px; }
  .nav.open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    margin: 0; padding: 28px 32px; flex-direction: column; gap: 0;
    background: #fff; color: #1d1d1f; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav--dark .nav__links { background: #000; color: #f5f5f7; }
  .nav.open { background: #fff; }
  .nav--dark.open { background: #000; }
  .nav.open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a {
    font-size: 30px; font-weight: 600; letter-spacing: -.025em; padding: 11px 0; opacity: 1;
    transform: translateY(-8px); transition: transform .4s var(--ease);
  }
  .nav.open .nav__links a { transform: none; }
  body.locked { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(64px, 8vw, 110px); text-align: center; overflow: hidden; }
.hero .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero--home { min-height: max(100vh, 780px); min-height: max(100svh, 780px); padding-bottom: clamp(240px, 36vh, 440px); }
.hero--home .wrap { position: relative; z-index: 2; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 140px; z-index: 2; background: linear-gradient(to bottom, transparent, #000); pointer-events: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 26px; border-radius: 980px;
  font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48, 209, 88, .18); }

.hero--page > * { position: relative; }
.hero--page > .hero__px { position: absolute; top: var(--nav-h); right: 0; width: min(44vw, 520px); pointer-events: none; }
.hero--page > .hero__px--l { right: auto; left: 0; top: auto; bottom: 0; width: min(30vw, 340px); transform: scale(-1, -1); opacity: .7; }
.hero__px svg { width: 100%; height: auto; }

/* ---------- Statement (scroll-lit text) ---------- */
.statement { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.14; font-weight: 600; letter-spacing: -.03em; max-width: 1040px; margin: 0 auto; }
.statement .w { opacity: .16; transition: opacity .35s linear; }
.statement .w.on { opacity: 1; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 460px; overflow: hidden;
  border-radius: var(--radius); background: var(--card); color: var(--ink);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.tile:hover { text-decoration: none; transform: scale(1.012); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .28); }
.tile__text { padding: 36px 36px 0; max-width: 560px; position: relative; z-index: 2; }
.tile__text h3 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.tile__text p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.tile__art { margin-top: auto; padding: 24px 0 0; position: relative; }
.tile__art svg { width: 100%; height: auto; }
.tile__art--pad { padding: 28px 36px 76px; }
.tile__plus {
  position: absolute; right: 22px; bottom: 22px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--card);
  font-size: 24px; font-weight: 300; line-height: 1; padding-bottom: 3px;
  transition: transform .4s var(--ease);
}
a.tile:hover .tile__plus { transform: rotate(90deg); }
.tile.dark { --card: #101012; background: #101012; }
.tile--ai { background: radial-gradient(120% 90% at 85% 100%, #23245e 0%, #0d0d22 45%, #060608 100%); }
.tile--geo { background: radial-gradient(120% 90% at 20% 100%, #053a3a 0%, #06161c 50%, #050608 100%); }

/* mock UIs inside tiles */
.mock { border-radius: 16px; background: #0e0e11; color: #e8e8ed; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3f; }
.code { margin: 0; padding: 18px 20px 22px; font: 13.5px/1.75 var(--mono); white-space: pre; overflow: hidden; letter-spacing: 0; }
.code .k { color: #ff7ab2; } .code .f { color: #6bdfff; } .code .s { color: #ffa14f; } .code .c { color: #6c7986; } .code .n { color: #d0a8ff; }
.status { display: grid; gap: 10px; }
.status li {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px;
  background: var(--bg-alt); font-size: 15px; font-weight: 500;
}
.status li span { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 13.5px; }
.status li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48, 209, 88, .16); flex: none; }
.status li.warn::before { background: #ff9f0a; box-shadow: 0 0 0 4px rgba(255, 159, 10, .16); }

.roadmap { display: grid; gap: 10px; }
.roadmap li { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-3); }
.roadmap li span { position: relative; height: 36px; border-radius: 10px; background: rgba(0, 0, 0, .05); overflow: hidden; }
.roadmap li span::after {
  content: attr(data-t); position: absolute; left: var(--x); width: var(--w); top: 0; bottom: 0; padding: 0 12px;
  display: flex; align-items: center; border-radius: 10px; background: var(--c, var(--indigo)); color: #fff;
  font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden;
}

/* ---------- Spotlight (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
.checks { display: grid; gap: 22px; margin-top: 36px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.checks li::before {
  content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--ink) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dark .checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks b { display: block; font-weight: 600; font-size: 19px; letter-spacing: -.015em; }
.checks span { color: var(--ink-2); }

.board { border-radius: var(--radius); padding: 30px; background: var(--bg-alt); box-shadow: 0 50px 100px -60px rgba(71, 74, 181, .55); }
.board__head { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
.board .status li { background: #fff; padding: 16px 18px; font-size: 16px; }

/* chat mock */
.chat { border-radius: var(--radius); padding: 26px; background: linear-gradient(180deg, #17171a, #0d0d10); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 60px 120px -50px rgba(124, 140, 255, .45); position: relative; }
.chat::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(124, 140, 255, .8), transparent 35%, transparent 65%, rgba(255, 122, 156, .7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.chat__head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #a1a1a6; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat__head i { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-ai); }
.bubble { max-width: 86%; padding: 13px 17px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; margin-bottom: 14px; }
.bubble--me { margin-left: auto; background: #5356d6; color: #fff; border-bottom-right-radius: 6px; }
.bubble--ai { background: #26262b; color: #f5f5f7; border-bottom-left-radius: 6px; }
.bubble--ai ul { margin: 10px 0 2px; display: grid; gap: 7px; }
.bubble--ai li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; background: rgba(255, 255, 255, .06); border-radius: 10px; font-size: 14px; }
.bubble--ai li em { font-style: normal; color: #ff9f0a; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.srcs span { font-size: 12px; padding: 4px 10px; border-radius: 980px; background: rgba(255, 255, 255, .07); color: #a1a1a6; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8e8e93; animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* map mock */
.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 60px 120px -60px rgba(0, 60, 80, .55); background: #071018; }
.map svg { width: 100%; height: auto; }
.map__panel {
  position: absolute; left: 20px; top: 20px; width: min(230px, 55%); padding: 16px; border-radius: 18px; color: #f5f5f7; font-size: 13.5px;
  background: rgba(22, 24, 30, .66); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14);
}
.map__panel b { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #a1a1a6; margin-bottom: 10px; }
.map__panel li { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.map__panel li i { width: 10px; height: 10px; border-radius: 3px; }
.map__panel li u { margin-left: auto; width: 26px; height: 15px; border-radius: 10px; background: #30d158; position: relative; text-decoration: none; }
.map__panel li u::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.map__panel li.off u { background: #48484d; } .map__panel li.off u::after { right: auto; left: 2px; }
.map__coord { position: absolute; right: 18px; bottom: 16px; font: 12px var(--mono); color: rgba(255, 255, 255, .7); letter-spacing: 0; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border-radius: var(--radius); background: var(--card); padding: 34px; }
.section:not(.section--alt):not(.dark) .card { background: var(--bg-alt); }
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card p { margin-top: 10px; color: var(--ink-2); }
.card .num { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 44px; display: block; font-variant-numeric: tabular-nums; }
.icon { width: 44px; height: 44px; margin-bottom: 26px; color: var(--blue); }
.icon svg { width: 100%; height: 100%; }
.dark .icon { color: #a3a6ff; }

/* case cards (home preview) */
.pcase { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); color: var(--ink); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pcase:hover { text-decoration: none; transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.pcase__top { padding: 30px 32px; min-height: 230px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.pcase__top small { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.pcase__top strong { font-size: clamp(60px, 6.5vw, 88px); font-weight: 600; letter-spacing: -.05em; line-height: .95; display: block; }
.pcase__top span { font-size: 16px; opacity: .92; display: block; margin-top: 8px; }
.pcase__body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.pcase__body h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.pcase__body p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.pcase__body .arrow { margin-top: auto; padding-top: 22px; font-size: 16px; color: var(--link); }
.g-violet { background: linear-gradient(135deg, #34379a 0%, #5a5ed6 55%, #e97d7f 120%); }
.g-teal { background: linear-gradient(135deg, #006b6b 0%, #12b89a 60%, #7be0a8 115%); }
.g-blue { background: linear-gradient(135deg, #003d99 0%, #0a84ff 60%, #64d2ff 115%); }
.g-orange { background: linear-gradient(135deg, #b83a00 0%, #ff7a1a 60%, #ffc24b 115%); }
.g-ink { background: linear-gradient(135deg, #17171a 0%, #33333a 60%, #55555e 115%); }
.g-plum { background: linear-gradient(135deg, #1d1840 0%, #5b3f9e 60%, #e97d7f 125%); }
.g-rose { background: linear-gradient(135deg, #8a1048 0%, #e8336d 60%, #ff9a7a 115%); }

/* ---------- Case studies (full) ---------- */
.case { border-radius: var(--radius); background: var(--card); overflow: hidden; margin-bottom: 28px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.case__top { padding: clamp(30px, 4.5vw, 56px); color: #fff; }
.case__top small { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.case__top h2 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; margin-top: 14px; max-width: 880px; }
.case__top p { margin-top: 16px; max-width: 720px; font-size: clamp(17px, 1.5vw, 20px); opacity: .92; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(30px, 4vw, 52px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .28); }
.metrics strong { display: block; font-size: clamp(38px, 5vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.metrics span { display: block; margin-top: 8px; font-size: 15px; opacity: .9; max-width: 240px; }
.case__body { padding: clamp(30px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 48px); }
.case__body h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 12px; }
.case__body p, .case__body li { color: var(--ink); font-size: 16.5px; line-height: 1.5; }
.case__body li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.case__body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.case__foot { padding: 0 clamp(30px, 4.5vw, 56px) clamp(30px, 4.5vw, 48px); }

/* ---------- Practice sections (services) ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.subnav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 15px 0 13px; font-size: 13.5px; color: #1d1d1f; opacity: .7; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { opacity: 1; text-decoration: none; }
.subnav a.on { opacity: 1; border-bottom-color: #1d1d1f; }
.practice { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.practice__intro { position: sticky; top: calc(var(--nav-h) + 84px); }
.practice__intro .lead { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); }
.practice__art { margin-top: 36px; border-radius: var(--radius); overflow: hidden; }
.practice__art.boxed { background: var(--card); padding: 26px; }
.section:not(.section--alt):not(.dark) .practice__art.boxed { background: var(--bg-alt); }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer { border-radius: 22px; padding: 26px; background: var(--card); }
.section:not(.section--alt):not(.dark) .offer { background: var(--bg-alt); }
.offer h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.offer p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.offers__foot { grid-column: 1 / -1; margin-top: 14px; }
.offers__foot .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { border-radius: var(--radius); padding: 30px; background: var(--card); counter-increment: s; }
.section:not(.section--alt):not(.dark) .step { background: var(--bg-alt); }
.step::before { content: "0" counter(s); display: block; font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 56px; }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* ---------- Industries marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 14px; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee .chip { min-height: 48px; padding: 0 22px; font-size: 17px; background: var(--card); border-color: transparent; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(83, 86, 214, .55), rgba(233, 125, 127, .14) 55%, transparent); pointer-events: none; }
.cta > * { position: relative; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 30px; font-weight: 300; line-height: 1; color: var(--ink-2); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 720px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1px solid #d2d2d7; background: #fff; color: #1d1d1f;
  font-size: 17px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background: #fff no-repeat right 16px center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); padding-right: 40px; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(75, 79, 196, .16); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 6px; }
.form__status { font-size: 15px; }
.form__status.ok { color: #1a8d3a; } .form__status.err { color: #d70015; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.info { display: grid; gap: 16px; }
.info .card { padding: 28px; }
.info .card small { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; }
.info .card a, .info .card strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.info .card a:hover { color: var(--link); text-decoration: none; }
.info .card p { font-size: 15px; margin-top: 6px; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }

/* ---------- Footer ---------- */
.footer { background: #f5f5f7; color: #6e6e73; font-size: 13.5px; padding: 56px 0 28px; }
.footer a { color: #424245; }
.footer a:hover { color: #1d1d1f; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.footer__grid .brand { color: #1d1d1f; margin-bottom: 14px; }
.footer__grid p { max-width: 320px; }
.footer h2 { font-size: 13px; font-weight: 600; color: #1d1d1f; margin-bottom: 12px; letter-spacing: 0; }
.footer li { margin-bottom: 9px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; font-size: 12.5px; }
.footer__base nav { display: flex; gap: 22px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.sig { stroke-dasharray: 10 160; animation: sig 3.2s linear infinite; }
@keyframes sig { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.float { animation: float 7s ease-in-out infinite; }
.float:nth-of-type(2) { animation-delay: -2.3s; } .float:nth-of-type(3) { animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 3; }
  .bento > .tile:nth-child(1), .bento > .tile:nth-child(2) { grid-column: span 6; }
  .bento > .tile:last-child:nth-child(odd) { grid-column: span 6; }
  .steps, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .practice { grid-template-columns: 1fr; }
  .practice__intro { position: static; }
  .practice__art { max-width: 620px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .split, .contact { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .case__body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap, .nav__inner, .subnav__inner { padding-left: 20px; padding-right: 20px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento > .tile, .bento > .tile:nth-child(n) { grid-column: 1 / -1; min-height: 0; }
  .tile__text { padding: 28px 26px 0; }
  .tile__art--pad { padding: 24px 26px 72px; }
  .tile__art:not(.tile__art--pad) { padding-bottom: 20px; }
  .grid-3, .grid-2, .grid-4, .steps, .offers, .form { grid-template-columns: 1fr; }
  .step::before { margin-bottom: 28px; }
  .card .num { margin-bottom: 24px; }
  .metrics { grid-template-columns: 1fr; gap: 22px; }
  .card, .offer { padding: 26px; }
  .chat { padding: 18px; }
  .map__panel { transform: scale(.82); transform-origin: top left; left: 12px; top: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .faq details p { padding-right: 0; }
  .actions .btn { width: 100%; }
  .hero .actions .btn, .cta .actions .btn { width: auto; }
  .hero--page > .hero__px { width: 70vw; opacity: .55; }
  .hero--page > .hero__px--l { display: none; }
}
