/* =========================================================================
   JSN AI Technologies — site styles
   Palette: deep night navy from the logo + one colour per service line.
   ========================================================================= */

/* Fonts are bundled locally (static/fonts, SIL Open Font License) so the
   site works offline and doesn't depend on a third-party CDN. */
@font-face {
  font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #071330;
  --night-2: #0B1B42;
  --night-line: rgba(173, 196, 255, 0.16);
  --ink: #0A1633;
  --muted: #56627E;
  --paper: #F5F7FB;
  --surface: #FFFFFF;
  --line: #E1E6F0;
  --on-night: #E9EEFA;
  --on-night-muted: #9DACCB;

  --vision: #1E8CF0;
  --voice: #7B5CFF;
  --chat: #FF5A4E;
  --web: #12B886;

  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-card: 18px;
  --r-img: 12px;
  --r-input: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vision); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 72px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(233, 238, 250, .5); }
.btn-violet { background: var(--voice); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent);
  flex: none;
}

.text-link {
  display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--c, var(--vision)) 60%, transparent);
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--c, var(--vision)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--night) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--night-line);
  color: var(--on-night);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-text span { font-size: 13px; color: var(--on-night-muted); letter-spacing: .02em; }

.header-inner { align-items: stretch; }
.brand { align-self: center; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; gap: 26px; align-self: stretch; }
.site-nav > ul > li { display: flex; align-items: center; }
.site-nav > ul > li > a, .menu-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--on-night-muted); padding: 6px 0; transition: color .15s;
  background: none; border: 0; cursor: pointer;
}
.site-nav > ul > li > a:hover, .menu-toggle:hover, .menu-toggle[aria-expanded="true"], .menu-toggle[data-current] { color: #fff; }
.menu-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-toggle { display: none; }

/* Solutions mega menu */
.mega {
  position: fixed; left: 0; right: 0; top: 72px; width: 100vw; z-index: 45;
  background: #0A1A3D;
  border-bottom: 1px solid var(--night-line); box-shadow: 0 40px 80px rgba(2, 8, 24, .45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.has-menu.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.mega-inner { display: block; padding-top: 28px; padding-bottom: 30px; }
.mega-cats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mega-cats ul { grid-template-columns: 1fr 1fr; } }
.mega-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 14px; }
.mega-cats ul { display: grid; gap: 4px; }
.mega-cats a {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  text-decoration: none; color: var(--on-night); transition: background-color .15s, transform .15s;
}
.mega-cats a:hover, .mega-cats a:focus-visible { background: rgba(255, 255, 255, .06); transform: translateX(3px); }
.mega-cats .dot { margin-top: 6px; }
.mega-cats strong { display: block; font-size: 15px; }
.mega-cats small { display: block; font-size: 13px; color: var(--on-night-muted); margin-top: 2px; }
.mega-all { display: inline-block; margin: 12px 14px 0; font-weight: 600; font-size: 14px; color: #fff; text-underline-offset: 4px; }
.mega-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.mega-domain { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7FC0FF; margin-bottom: 8px; }
.mega-cols a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-night-muted); text-decoration: none; padding: 4px 0; transition: color .15s; }
.mega-cols a:hover, .mega-cols a:focus-visible { color: #fff; }
.mega-play { position: relative; width: 16px; height: 16px; border-radius: 50%; background: rgba(30, 140, 240, .22); flex: none; }
.mega-play::after { content: ""; position: absolute; left: 6px; top: 4.5px; border: 3.5px solid transparent; border-left: 5px solid #7FC0FF; border-right: 0; }
.has-menu.open .mega-cats li, .has-menu.open .mega-cols > div { animation: mega-in .35s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes mega-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; align-self: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
  }
  .nav-toggle .bar { display: block; height: 2px; background: var(--on-night); border-radius: 2px; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px; background: var(--night); border-bottom: 1px solid var(--night-line);
    display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 2px; }
  .site-nav > ul > li { display: block; }
  .site-nav > ul > li > a, .menu-toggle { font-size: 17px; padding: 10px 0; width: 100%; justify-content: space-between; }
  .mega {
    position: static; width: auto; display: none; opacity: 1; visibility: visible; transform: none; transition: none;
    background: #0A1A3D; box-shadow: none; border: 0;
  }
  .has-menu.open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 20px; padding: 4px 0 12px; }
  .mega-cats a { padding: 10px 6px; }
  .mega-cv { display: none; }   /* "View all solutions" lists every project on phones */
  .mega-all { margin: 8px 6px 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(30, 140, 240, .22), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: clamp(56px, 9vw, 120px) 0 0;
  margin-top: -1px;
}
.sphere {
  position: absolute; top: 0; right: -6%; width: 62%; height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; }
.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.08; letter-spacing: -.035em;
}
@media (min-width: 861px) {
  .h1-line:last-child { display: block; }
}
.verb {
  color: var(--c); text-decoration: none; position: relative;
  transition: text-shadow .2s;
}
.verb::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em;
  background: currentColor; border-radius: 4px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.verb:hover::after, .verb:focus-visible::after { transform: scaleX(1); }
.verb:focus-visible { outline-offset: 6px; }
.and, .comma { color: var(--on-night); }

.lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--on-night-muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--night-line);
}
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 28px 24px 36px 0; }
.hero-stats > div + div { padding-left: 24px; border-left: 1px solid var(--night-line); }
.hero-stats dd { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; letter-spacing: -.02em; }
.hero-stats dt { font-size: 14px; line-height: 1.45; color: var(--on-night-muted); max-width: 24ch; }

@media (max-width: 860px) {
  .sphere { width: 120%; right: -55%; opacity: .28; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--night-line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2, .why h2, .faq h2, .contact h2, .demo-band h2, .more-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem); line-height: 1.12; letter-spacing: -.03em;
}
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 64ch; }

/* ---------- Service rows ---------- */
.service-rows { border-top: 1px solid var(--line); }
.service-rows li { border-bottom: 1px solid var(--line); }
.service-row {
  position: relative; display: grid; align-items: center; gap: 28px;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) minmax(0, 1.1fr) auto;
  padding: 30px 20px 30px 24px; text-decoration: none;
  transition: background-color .2s;
}
.service-row::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: var(--c); transform: scaleY(.3); opacity: 0; transition: transform .25s ease, opacity .25s;
}
.service-row:hover, .service-row:focus-visible { background: var(--surface); }
.service-row:hover::before, .service-row:focus-visible::before { transform: scaleY(1); opacity: 1; }
.service-name { display: flex; align-items: center; gap: 16px; }
.service-name strong { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.service-summary { color: var(--muted); font-size: 16px; }
.service-list { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.service-list span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: 2px; }
.service-go {
  font-size: 14px; font-weight: 600; color: var(--c); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, transparent);
}
.service-rows.compact .service-row { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto; padding-block: 24px; }

@media (max-width: 980px) {
  .service-row, .service-rows.compact .service-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 8px 26px 20px; }
  .service-go { justify-self: start; margin-top: 4px; }
}

/* ---------- Tabs + solution cards ---------- */
.tab-list {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px;
}
.tab-list [role="tab"] {
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s, color .15s;
}
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-list .count {
  font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent);
}
@media (max-width: 720px) {
  .tab-list { display: flex; flex-direction: column; border-radius: var(--r-card); width: 100%; }
  .tab-list [role="tab"] { justify-content: space-between; border-radius: 12px; text-align: left; }
}
.panel-summary { color: var(--muted); margin-bottom: 24px; }

.solution-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.solution-grid.n3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .solution-grid, .solution-grid.n3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .solution-grid, .solution-grid.n3 { grid-template-columns: 1fr; } }

.solution {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
}
.solution-img { position: relative; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.solution-img img { width: 100%; height: 100%; object-fit: cover; }
.solution-tag {
  position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(7, 19, 48, .78); color: #fff;
  backdrop-filter: blur(6px);
}
.solution-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.solution-body h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.solution-body p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.solution-body .outcome {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 14px;
}
.outcome svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--web); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.custom-callout {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--c) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line));
}
.custom-callout h3 { font-size: 20px; }
.custom-callout p { color: var(--muted); margin-top: 6px; max-width: 60ch; }

/* ---------- Conversational showcase ---------- */
.talk-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .talk-grid { grid-template-columns: 1fr; } }

.call-card {
  background: var(--night); color: var(--on-night); border-radius: 22px; padding: 24px;
  border: 1px solid var(--night-line);
}
.call-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.call-top > div:nth-child(2) { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.call-top strong { font-size: 15px; }
.call-status { font-size: 13px; color: var(--on-night-muted); }
.call-status.live { color: #B9A8FF; }
.call-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--voice) 30%, var(--night));
  display: flex; align-items: center; justify-content: center; gap: 3px; flex: none;
}
.call-avatar span { width: 3px; height: 8px; border-radius: 3px; background: #CBBEFF; }
.call-card.playing .call-avatar span { animation: wave 1s ease-in-out infinite; }
.call-avatar span:nth-child(2) { animation-delay: .1s !important; height: 14px; }
.call-avatar span:nth-child(3) { animation-delay: .2s !important; height: 20px; }
.call-avatar span:nth-child(4) { animation-delay: .3s !important; height: 14px; }
.call-avatar span:nth-child(5) { animation-delay: .4s !important; }
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.4); } }

.call-lines { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.call-lines li { font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 14px; max-width: 88%; }
.call-lines .who { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; opacity: .75; }
.call-lines .agent { background: color-mix(in srgb, var(--voice) 24%, var(--night)); align-self: flex-start; border-top-left-radius: 4px; }
.call-lines .caller { background: rgba(255, 255, 255, .07); align-self: flex-end; border-top-right-radius: 4px; }
.call-card.armed .call-lines li { opacity: 0; transform: translateY(6px); }
.call-card .call-lines li.shown { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.call-foot { margin-top: 18px; font-size: 13px; color: var(--on-night-muted); padding-top: 14px; border-top: 1px solid var(--night-line); }
.call-card.armed .call-foot { visibility: hidden; }

.chat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: color-mix(in srgb, var(--chat) 9%, var(--surface)); border-bottom: 1px solid var(--line); }
.chat-top div { display: flex; flex-direction: column; line-height: 1.3; }
.chat-top strong { font-size: 15px; }
.chat-top div span { font-size: 13px; color: var(--muted); }
.chat-logo { width: 36px; height: 36px; border-radius: 50%; background: var(--chat); color: #fff; font-weight: 700; display: grid; place-items: center; }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { font-size: 15px; line-height: 1.5; padding: 10px 14px; border-radius: 16px; max-width: 84%; }
.bubble.in { background: #EEF1F7; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: color-mix(in srgb, var(--chat) 12%, #fff); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-foot { font-size: 13px; color: var(--muted); padding: 0 20px 18px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
  background: linear-gradient(90deg, var(--vision), var(--voice), var(--chat), var(--web));
  opacity: .35;
}
.process[style] .steps::before { background: var(--c); }
.steps li { position: relative; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); font-family: var(--display); font-weight: 500; font-size: 16px;
  position: relative; z-index: 1;
}
.process[style] .step-n { border-color: var(--c); color: var(--ink); }
.steps h3 { margin-top: 20px; font-size: 18px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) {
  .steps, .steps-5 { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps, .steps-5 { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); }
.why-sub { margin-top: 36px; font-weight: 600; font-size: 15px; color: var(--muted); }
.industries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.industries li { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.why-list > div { padding-left: 18px; border-left: 2px solid var(--line); }
.why-list > div:nth-child(1) { border-color: var(--vision); }
.why-list > div:nth-child(2) { border-color: var(--voice); }
.why-list > div:nth-child(3) { border-color: var(--chat); }
.why-list > div:nth-child(4) { border-color: var(--web); }
.why-list dt { font-weight: 700; font-size: 18px; }
.why-list dd { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Vision & mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
  --c: var(--vision);
  padding: 36px 34px; border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid var(--c);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vm-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10, 22, 51, .08); }
.vm-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, transparent); margin-bottom: 20px;
}
.vm-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vm-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.vm-card p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: 1fr; } .vm-card { padding: 28px 26px; } }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(50% 60% at 10% 0%, rgba(123, 92, 255, .22), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(255, 90, 78, .14), transparent 70%),
    var(--night);
  color: var(--on-night); padding: clamp(72px, 10vw, 120px) 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy > p { margin-top: 20px; color: var(--on-night-muted); font-size: 18px; max-width: 48ch; }
.contact-direct { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.contact-direct li { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--night-line); }
.contact-direct span { width: 64px; font-size: 14px; color: var(--on-night-muted); }
.contact-direct a { text-decoration: none; font-weight: 600; margin-right: 14px; }
.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 36px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .form-foot.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-input); border: 1.5px solid var(--line);
  background: var(--paper); transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--vision); background: #fff; }
.field.invalid input, .field.invalid textarea { border-color: var(--chat); }
.error { font-size: 13px; color: #D63B30; min-height: 0; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: #0B8F67; }
.form-status.bad { color: #D63B30; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Service page ---------- */
.svc-hero {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(55% 80% at 92% 10%, color-mix(in srgb, var(--c) 38%, transparent), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.svc-hero::after { /* dotted field echoing the logo */
  content: ""; position: absolute; right: -40px; top: -40px; width: 520px; height: 520px; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--c) 70%, white) 1.6px, transparent 2px);
  background-size: 22px 22px; opacity: .22;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 65%);
}
.svc-hero-inner { position: relative; z-index: 1; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--on-night-muted); margin-bottom: 36px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.svc-hero h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.06; letter-spacing: -.035em; display: flex; align-items: center; gap: .45em; flex-wrap: wrap;
}
.svc-hero h1 .dot { width: .42em; height: .42em; box-shadow: 0 0 0 .14em color-mix(in srgb, var(--c) 28%, transparent); }
.svc-hero .lede { max-width: 62ch; }
.svc-highlights { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.svc-highlights li { padding: 20px 20px 0 0; font-size: 15px; color: var(--on-night); }
.svc-highlights li::before { content: ""; display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--c); margin-bottom: 12px; }
.svc-highlights a { text-decoration: none; }
.svc-highlights a:hover { text-decoration: underline; }
@media (max-width: 860px) { .svc-highlights { grid-template-columns: 1fr 1fr; gap: 0 16px; } }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.offer-grid li { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.offer-grid li::before { content: ""; position: absolute; left: 28px; top: 0; width: 28px; height: 3px; background: var(--c); border-radius: 0 0 3px 3px; }
.offer-grid h3 { font-size: 18px; font-weight: 700; }
.offer-grid p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.offer-grid.n4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .offer-grid { grid-template-columns: 1fr; } }

.demo-band { background: color-mix(in srgb, var(--c) 7%, var(--paper)); padding: clamp(64px, 9vw, 112px) 0 !important; margin-bottom: clamp(72px, 10vw, 128px); }
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.demo-grid > div > p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 52ch; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }

.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

.more-title { margin-bottom: 28px; }

/* ---------- Enquiries table ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.enq { width: 100%; border-collapse: collapse; font-size: 14px; }
.enq th, .enq td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.enq th { font-weight: 700; background: var(--paper); white-space: nowrap; }
.enq td:last-child { min-width: 280px; }
.empty { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: var(--on-night-muted); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand { color: var(--on-night); }
.footer-brand p { margin-top: 18px; max-width: 42ch; }
.site-footer h3 { font-size: 15px; color: var(--on-night); margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Assistant widget: Jia ---------- */
.buddy {
  position: fixed; left: 0; bottom: 2px; z-index: 70;
  width: 54px; height: 99px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate3d(calc(100vw - 96px), 0, 0);
  -webkit-tap-highlight-color: transparent;
}
.buddy::before { /* soft ambient halo so she reads as a glowing, premium little bot rather than a flat sticker */
  content: ""; position: absolute; left: 50%; top: 64%; width: 210%; height: 150%;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79, 155, 255, .32), rgba(79, 155, 255, 0) 72%);
  opacity: .85; transition: opacity .3s ease;
}
.buddy.dragging::before, .buddy.lifted::before { opacity: 0; }
.buddy:focus-visible { outline: none; }
.buddy:focus-visible .buddy-flip { outline: 3px solid var(--vision); outline-offset: 4px; border-radius: 14px; }
.buddy-flip { display: block; width: 100%; height: 100%; transform: scaleX(var(--dir, -1)); transition: transform .3s ease; }
.buddy-spin { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
.buddy.spin .buddy-spin { animation: j-spin .7s ease-in-out; }
@keyframes j-spin { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.08); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.08); } }
.jia { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .75)) drop-shadow(0 0 6px rgba(160, 200, 255, .25)) drop-shadow(0 6px 10px rgba(7, 19, 48, .22)); }
.jia * { transform-box: view-box; }
.j-glow { transform-box: fill-box; transform-origin: center; animation: j-pulse-glow 2.6s ease-in-out infinite; }
@keyframes j-pulse-glow { 0%, 100% { opacity: .5; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.18); } }
.j-shadow { fill: rgba(7, 19, 48, .22); transform-origin: 108px 296px; }
.j-body { transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.j-thigh { transform-origin: 105px 224px; transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.j-shin { transform-origin: 105px 305px; transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.j-arm { transform-origin: 103px 108px; transition: transform .4s ease; }
.j-fore { transform-origin: 103px 176px; transition: transform .4s ease; }
.j-head { transform-origin: 108px 84px; transition: transform .45s ease; }
.j-hair { transform-origin: 96px 40px; }
.j-eye { transform-box: fill-box; transform-origin: center; animation: j-blink 5s infinite; }
.j-eye + .j-eye { animation-delay: .02s; }
@keyframes j-blink { 0%, 95%, 100% { transform: none; } 97% { transform: scaleY(.1); } }
.j-talk { opacity: 0; transform-box: fill-box; transform-origin: center; }
.j-stool { transform-origin: 105px 294px; opacity: 0; transform: scaleY(.2); transition: opacity .25s ease, transform .4s ease; }
.j-notes { opacity: 0; font: 700 26px/1 var(--body); }
.j-notes text { transform-box: fill-box; }
.j-arm-back .j-fore, .j-arm-front .j-fore { transform: rotate(-6deg); }

/* idle: a gentle breathing sway */
.buddy:not(.walking):not(.sit):not(.dancing):not(.floor):not(.lifted):not(.hips) .j-body { animation: j-breathe 3.6s ease-in-out infinite; }
@keyframes j-breathe { 50% { transform: translateY(-1.2px) rotate(-.4deg); } }

/* walking: a natural stride with knee bend, arm swing, hip sway and hair bounce */
.buddy.walking .j-body { animation: j-bob .55s ease-in-out infinite; }
@keyframes j-bob { 0%, 100% { transform: translateY(0) rotate(.6deg); } 50% { transform: translateY(-3px) rotate(-.6deg); } }
.buddy.walking .j-leg-front .j-thigh { animation: j-thigh 1.1s ease-in-out infinite; }
.buddy.walking .j-leg-back .j-thigh { animation: j-thigh 1.1s ease-in-out -.55s infinite; }
@keyframes j-thigh { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(14deg); } }
.buddy.walking .j-leg-front .j-shin { animation: j-shin 1.1s linear infinite; }
.buddy.walking .j-leg-back .j-shin { animation: j-shin 1.1s linear -.55s infinite; }
@keyframes j-shin { 0%, 45%, 100% { transform: rotate(3deg); } 62% { transform: rotate(32deg); } 80% { transform: rotate(10deg); } }
.buddy.walking .j-arm-front { animation: j-armswing 1.1s ease-in-out -.55s infinite; }
.buddy.walking .j-arm-back { animation: j-armswing 1.1s ease-in-out infinite; }
@keyframes j-armswing { 0%, 100% { transform: rotate(13deg); } 50% { transform: rotate(-15deg); } }
.buddy.walking .j-fore { transform: rotate(-16deg); }
.buddy.walking .j-head { animation: j-headwalk 1.1s ease-in-out infinite; }
@keyframes j-headwalk { 0%, 50%, 100% { transform: rotate(0); } 25%, 75% { transform: rotate(-1.5deg); } }
.buddy.walking .j-hair { animation: j-hairwalk .55s ease-in-out infinite alternate; }
@keyframes j-hairwalk { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
.buddy.walking .j-shadow { animation: j-shadow .55s ease-in-out infinite; }
@keyframes j-shadow { 50% { transform: scaleX(.9); } }

/* waving hello */
.buddy.waving .j-arm-front { transform: rotate(-148deg); }
.buddy.waving .j-arm-front .j-fore { animation: j-wave .42s ease-in-out infinite alternate; }
@keyframes j-wave { from { transform: rotate(-38deg); } to { transform: rotate(12deg); } }
.buddy.waving .j-head { transform: rotate(-7deg); }
.buddy.waving .j-hair { transform: rotate(-4deg); }

/* dancing: bounce, hip sway, alternating arms, step-touch, head bop */
.buddy.dancing .j-body { animation: jd-body .9s ease-in-out infinite; }
@keyframes jd-body { 0%, 100% { transform: translateY(0) rotate(-3deg); } 25% { transform: translateY(-9px) rotate(0); } 50% { transform: translateY(0) rotate(3deg); } 75% { transform: translateY(-9px) rotate(0); } }
.buddy.dancing .j-arm-front { animation: jd-arm-f 1.8s ease-in-out infinite; }
.buddy.dancing .j-arm-back { animation: jd-arm-b 1.8s ease-in-out infinite; }
@keyframes jd-arm-f { 0%, 100% { transform: rotate(-160deg); } 25% { transform: rotate(-95deg); } 50% { transform: rotate(-150deg); } 75% { transform: rotate(-30deg); } }
@keyframes jd-arm-b { 0%, 100% { transform: rotate(-40deg); } 25% { transform: rotate(-150deg); } 50% { transform: rotate(-90deg); } 75% { transform: rotate(-160deg); } }
.buddy.dancing .j-fore { animation: jd-fore .45s ease-in-out infinite alternate; }
@keyframes jd-fore { from { transform: rotate(-35deg); } to { transform: rotate(15deg); } }
.buddy.dancing .j-leg-front .j-thigh { animation: jd-thigh-f .9s ease-in-out infinite; }
.buddy.dancing .j-leg-back .j-thigh { animation: jd-thigh-b .9s ease-in-out infinite; }
@keyframes jd-thigh-f { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(4deg); } }
@keyframes jd-thigh-b { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-12deg); } }
.buddy.dancing .j-leg-front .j-shin { animation: jd-shin .9s ease-in-out infinite; }
.buddy.dancing .j-leg-back .j-shin { animation: jd-shin .9s ease-in-out -.45s infinite; }
@keyframes jd-shin { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(2deg); } }
.buddy.dancing .j-head { animation: jd-head .9s ease-in-out infinite; }
@keyframes jd-head { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(7deg); } }
.buddy.dancing .j-hair { animation: jd-hair .9s ease-in-out infinite; }
@keyframes jd-hair { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(10deg); } }
.buddy.dancing .j-smile { transform-box: fill-box; transform-origin: center; transform: scale(1.12, 1.25); }
.buddy.dancing .j-notes { opacity: 1; }
.buddy.dancing .j-notes text { animation: jd-note 1.5s ease-out infinite; }
.buddy.dancing .j-notes text:nth-child(2) { animation-delay: .5s; fill: #7B5CFF; }
.buddy.dancing .j-notes text:nth-child(3) { animation-delay: 1s; fill: #FF5A4E; }
@keyframes jd-note { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-36px) scale(1.15) rotate(12deg); } }

/* sitting down to chat */
.buddy.sit .j-body { transform: translateY(66px); }
.buddy.sit .j-thigh { transform: rotate(-80deg); }
.buddy.sit .j-shin { transform: rotate(80deg); }
.buddy.sit .j-arm { transform: rotate(-10deg); }
.buddy.sit .j-fore { transform: rotate(-56deg); }
.buddy.sit .j-head { transform: rotate(-4deg); }
.buddy.sit .j-stool { opacity: 1; transform: none; }
.buddy.sit .j-shadow { transform: scaleX(1.5); }

/* talking while she answers */
.buddy.talking .j-smile { opacity: 0; }
.buddy.talking .j-talk { opacity: 1; animation: j-mouth .17s ease-in-out infinite alternate; }
@keyframes j-mouth { from { transform: scaleY(.35); } to { transform: scaleY(1.05); } }
.buddy.talking .j-head { animation: j-nod .55s ease-in-out infinite alternate; }
@keyframes j-nod { from { transform: rotate(-5deg); } to { transform: rotate(-1deg); } }
.buddy.sit.talking .j-arm-front { transform: rotate(-44deg); }
.buddy.sit.talking .j-arm-front .j-fore { animation: j-gesture .6s ease-in-out infinite alternate; }
@keyframes j-gesture { from { transform: rotate(-58deg); } to { transform: rotate(-100deg); } }

/* ---- moods (face) ---- */
.j-brows-angry, .j-eyes-closed, .j-frown, .j-anger, .j-zzz { opacity: 0; }
.j-blush { transition: opacity .3s; }
.buddy.mood-angry .j-brows { opacity: 0; }
.buddy.mood-angry .j-brows-angry { opacity: 1; }
.buddy.mood-angry .j-smile { opacity: 0; }
.buddy.mood-angry .j-frown { opacity: 1; }
.buddy.mood-angry .j-blush ellipse { fill: #E2513F; opacity: .55; }
.buddy.mood-angry .j-anger { opacity: 1; animation: j-anger .5s ease-in-out infinite alternate; }
.j-anger path { transform-box: fill-box; }
@keyframes j-anger { from { transform: scale(.85); } to { transform: scale(1.12); } }
.j-anger { transform-box: fill-box; transform-origin: center; }
.buddy.mood-sleep .j-eye { opacity: 0; animation: none; }
.buddy.mood-sleep .j-eyes-closed { opacity: 1; }
.buddy.mood-sleep .j-zzz { opacity: 1; }
.buddy.mood-sleep .j-zzz text { transform-box: fill-box; animation: j-zzz 2.4s ease-in-out infinite; }
.buddy.mood-sleep .j-zzz text:nth-child(2) { animation-delay: .5s; }
.buddy.mood-sleep .j-zzz text:nth-child(3) { animation-delay: 1s; }
@keyframes j-zzz { 0% { opacity: 0; transform: translate(-4px, 6px) scale(.7); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -10px) scale(1.1); } }
.buddy.mood-surprised .j-smile { opacity: 0; }
.buddy.mood-surprised .j-talk { opacity: 1; transform: scale(.8, 1.25); }
.buddy.mood-surprised .j-brows { transform: translateY(-2px); }

/* ---- picked up with the mouse: legs dangle and kick, arms flail ---- */
.buddy.dragging { cursor: grabbing; z-index: 90; }
.buddy { touch-action: none; user-select: none; -webkit-user-select: none; }
.buddy:not(.dragging) { cursor: grab; }
.buddy.lifted .j-shadow { opacity: 0; }
.buddy.lifted .j-body { animation: jl-body .5s ease-in-out infinite alternate; }
@keyframes jl-body { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.buddy.lifted .j-leg-front .j-thigh { animation: jl-kick .32s ease-in-out infinite alternate; }
.buddy.lifted .j-leg-back .j-thigh { animation: jl-kick .32s ease-in-out -.16s infinite alternate; }
@keyframes jl-kick { from { transform: rotate(-24deg); } to { transform: rotate(16deg); } }
.buddy.lifted .j-shin { animation: jl-shin .32s ease-in-out infinite alternate; }
@keyframes jl-shin { from { transform: rotate(6deg); } to { transform: rotate(38deg); } }
.buddy.lifted .j-arm-front { animation: jl-arm .28s ease-in-out infinite alternate; }
.buddy.lifted .j-arm-back { animation: jl-arm .28s ease-in-out -.14s infinite alternate; }
@keyframes jl-arm { from { transform: rotate(-170deg); } to { transform: rotate(-125deg); } }
.buddy.lifted .j-fore { transform: rotate(-20deg); }
.buddy.lifted .j-hair { transform: rotate(-12deg); }
.buddy.lifted .j-head { transform: rotate(6deg); }
.buddy.land .buddy-spin { animation: j-land .35s ease-out; }
@keyframes j-land { 0% { transform: scale(1.06, .9); } 60% { transform: scale(.97, 1.03); } 100% { transform: none; } }

/* ---- annoyed: hands on hips, chin up ---- */
.buddy.hips .j-arm-front { transform: rotate(34deg); }
.buddy.hips .j-arm-front .j-fore { transform: rotate(-60deg); }
.buddy.hips .j-arm-back { transform: rotate(-32deg); }
.buddy.hips .j-arm-back .j-fore { transform: rotate(56deg); }
.buddy.hips .j-head { transform: rotate(-9deg); }
.buddy.hips .j-body { animation: j-huff .5s ease-in-out 2; }
@keyframes j-huff { 50% { transform: translateY(-3px); } }

/* ---- stomping off to the corner (a quicker, heavier walk) ---- */
.buddy.stomp .j-body { animation-duration: .38s; }
.buddy.stomp .j-thigh, .buddy.stomp .j-shin, .buddy.stomp .j-arm-front, .buddy.stomp .j-arm-back { animation-duration: .76s !important; }
.buddy.stomp .j-leg-back .j-thigh, .buddy.stomp .j-leg-back .j-shin, .buddy.stomp .j-arm-front { animation-delay: -.38s !important; }
.buddy.stomp .j-head { animation: none; transform: rotate(-8deg); }

/* ---- sitting on the floor in a corner, hugging her knees ---- */
.buddy.floor .j-body { transform: translateY(168px); }
.buddy.floor .j-thigh { transform: rotate(-120deg); }
.buddy.floor .j-shin { transform: rotate(176deg); }
.buddy.floor .j-arm { transform: rotate(-44deg); }
.buddy.floor .j-fore { transform: rotate(-4deg); }
.buddy.floor .j-head { transform: rotate(-3deg); }
.buddy.floor.mood-sleep .j-head { transform: rotate(12deg); }
.buddy.floor.mood-sleep .j-body { transform: translateY(170px); animation: j-snore 3s ease-in-out infinite; }
@keyframes j-snore { 50% { transform: translateY(171.5px); } }
.buddy.floor .j-shadow { transform: scaleX(1.7); }
.buddy.floor .buddy-hint { bottom: calc(52% + 4px); }

/* ---- hover hello from any pose ---- */
.buddy.hello .j-arm-front { transform: rotate(-148deg) !important; animation: none !important; }
.buddy.hello .j-arm-front .j-fore { animation: j-wave .42s ease-in-out infinite alternate !important; }

/* speech-bubble hint above her head */
.buddy-hint {
  position: absolute; bottom: calc(100% + 4px); left: 50%; z-index: 1;
  transform: translateX(calc(-50% + var(--shift, 0px))) translateY(6px) scale(.9); transform-origin: 50% 100%;
  padding: 8px 13px; border-radius: 14px; white-space: nowrap; pointer-events: none;
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 10px 26px rgba(7, 19, 48, .2); border: 1px solid var(--line);
  opacity: 0; transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.buddy-hint::after {
  content: ""; position: absolute; top: 100%; left: calc(50% - var(--shift, 0px)); width: 12px; height: 12px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: translate(-50%, -6px) rotate(45deg);
}
.buddy-hint.show { opacity: 1; transform: translateX(calc(-50% + var(--shift, 0px))) translateY(0) scale(1); }
.buddy.sit .buddy-hint { opacity: 0; }
@media (max-width: 600px) { .buddy { width: 42px; height: 77px; } }

/* the chat opens as a speech bubble above her */
.assistant-panel {
  position: fixed; z-index: 75; left: var(--panel-left, auto); right: auto; bottom: 150px;
  width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100vh - 150px));
  background: var(--surface); border-radius: 20px; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(7, 19, 48, .28); border: 1px solid var(--line);
  transform-origin: var(--tail, 50%) 100%; animation: bubble-in .32s cubic-bezier(.2, .8, .2, 1);
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
.assistant-panel::after { /* tail pointing down at Jia */
  content: ""; position: absolute; top: 100%; left: var(--tail, 50%); width: 18px; height: 18px;
  background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: translate(-50%, -9px) rotate(45deg);
}
@media (max-width: 600px) { .assistant-panel { bottom: 120px; height: min(500px, calc(100vh - 150px)); } }
.assistant-panel[hidden] { display: none; }
.assistant-panel header { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(135deg, var(--night), #152a5c); color: var(--on-night); border-radius: 19px 19px 0 0; }
.assistant-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, #EAF4FF, #C7DFFF); overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(79, 155, 255, .5), 0 2px 10px rgba(43, 227, 242, .25); }
.assistant-avatar svg { width: 100%; height: 100%; display: block; }
.assistant-panel header div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.assistant-panel header strong { font-size: 15px; }
.assistant-panel header span { font-size: 12px; color: var(--on-night-muted); }
.assistant-close { border: 0; background: transparent; color: var(--on-night); font-size: 26px; line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.assistant-close:hover { background: rgba(255,255,255,.08); }
.assistant-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { font-size: 15px; line-height: 1.5; padding: 10px 14px; border-radius: 16px; max-width: 86%; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--vision); }
.msg.typing { color: var(--muted); }
.assistant-suggest { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; background: var(--paper); }
.assistant-suggest[hidden] { display: none; }
.assistant-reset {
  border: 0; background: rgba(255, 255, 255, .1); color: var(--on-night); cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.assistant-reset:hover { background: rgba(255, 255, 255, .2); }
.assistant-steps {
  display: flex; gap: 6px; padding: 10px 14px; margin: 0; background: var(--surface); border-bottom: 1px solid var(--line);
  counter-reset: st;
}
.assistant-steps[hidden] { display: none; }
.assistant-steps li {
  flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted);
  counter-increment: st;
}
.assistant-steps li::before {
  content: counter(st); display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; background: var(--paper); border: 1.5px solid var(--line); transition: background-color .25s, border-color .25s, color .25s;
}
.assistant-steps li::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.assistant-steps li:last-child::after { display: none; }
.assistant-steps li.now { color: var(--ink); }
.assistant-steps li.now::before { border-color: var(--vision); color: var(--vision); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vision) 18%, transparent); }
.assistant-steps li.done::before { content: "✓"; background: var(--web); border-color: var(--web); color: #fff; }
.assistant-steps li.done::after { background: var(--web); }
.assistant-note { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--muted); background: var(--paper); border-radius: 0 0 19px 19px; }
.assistant-note[hidden] { display: none; }
.assistant-panel:has(.assistant-note:not([hidden])) .assistant-form { border-radius: 0; padding-bottom: 8px; }
.msg.bot, .msg.user { animation: msg-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.msg.user { transform-origin: 100% 100%; }
.msg.bot { transform-origin: 0 100%; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }

/* admin page */
.admin-title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 40px 0 14px; }
.count-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--vision) 12%, transparent); color: var(--vision); }
.transcript summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.transcript ol { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.transcript li { padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: 13.5px; }
.transcript li.visitor { background: color-mix(in srgb, var(--vision) 9%, var(--surface)); }
.transcript li span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.assistant-suggest button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.assistant-suggest button:hover { border-color: var(--vision); }
.assistant-form { display: flex; gap: 8px; padding: 12px; background: var(--paper); border-radius: 0 0 19px 19px; }
.assistant-form input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.assistant-form input:focus { outline: none; border-color: var(--vision); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Clickable solution cards + detail page ---------- */
.solution { position: relative; transition: transform .18s, box-shadow .18s, border-color .18s; }
.solution:hover, .solution:focus-within { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 22, 51, .12); border-color: var(--cv, #1E8CF0); }
.solution-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.solution-link:focus-visible { outline: 3px solid var(--cv, #1E8CF0); outline-offset: 2px; }
.solution-more { font-size: 14px; font-weight: 600; color: var(--cv, #1E8CF0); }
.solution:hover .solution-more span { display: inline-block; transform: translateX(3px); }

.sol-hero-img { margin-top: 32px; border-radius: var(--r-card); overflow: hidden; max-width: 760px; border: 1px solid var(--night-line); }
.sol-hero-img img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.sol-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .sol-two { grid-template-columns: 1fr; gap: 28px; } }
.sol-two h2 { margin-bottom: 14px; }
.sol-overview { font-size: 18px; color: var(--muted); line-height: 1.65; }
.sol-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sol-list li { position: relative; padding-left: 26px; line-height: 1.5; }
.sol-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #1E8CF0); }
.sol-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.sol-benefits li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); }
.sol-deploy { margin-top: 28px; padding: 18px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.sol-deploy strong { color: var(--ink); }


/* =========================================================================
   Motion & computer-vision flavour
   Everything below respects prefers-reduced-motion (see the end of the file).
   ========================================================================= */

/* ---------- Eyebrow labels (monospace, "decoded" by JS) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--vision);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head .eyebrow { margin-top: 0; font-size: 12.5px; color: var(--vision); max-width: none; }
.eyebrow-light, .svc-hero .eyebrow, .contact .eyebrow { color: #7FC0FF; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .eyebrow::after { content: "_"; margin-left: -6px; animation: caret 1s steps(1) infinite; }
@media (max-width: 560px) { .hero .eyebrow { font-size: 11px; letter-spacing: .1em; min-height: 2.9em; align-items: flex-start; } .hero .eyebrow::before { margin-top: .55em; } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Hero: moving perspective grid + detection lock on the verbs ---------- */
.hero-grid {
  position: absolute; left: -20%; right: -20%; bottom: -2px; height: 62%; pointer-events: none; z-index: 0;
  overflow: hidden; transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  opacity: .42;
}
.hero-grid::before { /* the grid itself slides towards the viewer (transform only, so it stays cheap) */
  content: ""; position: absolute; left: 0; right: 0; top: -72px; bottom: 0;
  background-image:
    linear-gradient(rgba(120, 175, 255, .75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 175, 255, .75) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: grid-move 5s linear infinite;
}
@keyframes grid-move { to { transform: translateY(72px); } }
.svc-hero .hero-grid { height: 75%; opacity: .35; }

.verb .lock {
  --bk: 2px; --bl: .26em;
  position: absolute; inset: .02em -.14em -.04em; pointer-events: none;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--bl) var(--bk),
    linear-gradient(var(--c) 0 0) top left / var(--bk) var(--bl),
    linear-gradient(var(--c) 0 0) top right / var(--bl) var(--bk),
    linear-gradient(var(--c) 0 0) top right / var(--bk) var(--bl),
    linear-gradient(var(--c) 0 0) bottom left / var(--bl) var(--bk),
    linear-gradient(var(--c) 0 0) bottom left / var(--bk) var(--bl),
    linear-gradient(var(--c) 0 0) bottom right / var(--bl) var(--bk),
    linear-gradient(var(--c) 0 0) bottom right / var(--bk) var(--bl);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.25);
  transition: opacity .25s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.verb.locked .lock { opacity: 1; transform: scale(1); }
.verb.locked { text-shadow: 0 0 28px color-mix(in srgb, var(--c) 55%, transparent); }

.play-dot {
  position: relative; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none;
}
.play-dot::after { content: ""; position: absolute; left: 7px; top: 5px; border: 4px solid transparent; border-left: 6px solid #fff; border-right: 0; }

/* ---------- Header state + scroll progress ---------- */
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.scrolled { box-shadow: 0 12px 30px rgba(2, 8, 24, .28); background: color-mix(in srgb, var(--night) 94%, transparent); }
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--vision), var(--voice), var(--chat), var(--web));
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.js .reveal.in .industries li { animation: pop .45s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0s) + .3s) backwards; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }

.js .steps::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.4, 0, .2, 1) .2s; }
.js .steps.in::before { transform: scaleX(1); }
.js .steps.in li { animation: rise .7s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0s) + .15s) backwards; }
.js .steps.in .step-n { animation: ping 1.2s ease-out calc(var(--d, 0s) + .4s) backwards; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, var(--vision)) 45%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* Detection brackets that "lock on" when a card scrolls into view, and on hover */
.lockon { position: relative; }
.lockon::after {
  --lk: var(--cv, var(--vision)); --bl: 22px; --bk: 2px;
  content: ""; position: absolute; inset: 8px; pointer-events: none; z-index: 3; border-radius: 10px;
  background:
    linear-gradient(var(--lk) 0 0) top left / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) top left / var(--bk) var(--bl),
    linear-gradient(var(--lk) 0 0) top right / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) top right / var(--bk) var(--bl),
    linear-gradient(var(--lk) 0 0) bottom left / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) bottom left / var(--bk) var(--bl),
    linear-gradient(var(--lk) 0 0) bottom right / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) bottom right / var(--bk) var(--bl);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.06); transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.js .lockon.in::after { animation: lock 1.3s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0s) + .3s) both; }
.lockon:hover::after, .lockon:focus-within::after { animation: none; opacity: 1; transform: none; }
@keyframes lock {
  0% { opacity: 0; transform: scale(1.1); }
  35% { opacity: 1; transform: scale(1); }
  65% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
.solution.lockon::after { inset: 10px; bottom: auto; aspect-ratio: 16 / 9; height: auto; width: auto; right: 10px; }

/* ---------- Solution cards with demo video ---------- */
.solution-img img, .solution-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solution-img video { opacity: 0; transition: opacity .35s ease; }
.solution.playing .solution-img video { opacity: 1; }
.solution-img img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.solution:hover .solution-img img { transform: scale(1.04); }
.media-live {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 999px;
  background: rgba(7, 19, 48, .8); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.media-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF4D42; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.solution-tag { z-index: 2; }

/* ---------- Video player (reel + solution page) ---------- */
.player { position: relative; margin: 0; }
.hud-frame::before {
  --bl: 28px; --bk: 2px; --lk: color-mix(in srgb, var(--vision) 80%, white);
  content: ""; position: absolute; inset: -10px; pointer-events: none; border-radius: 22px;
  background:
    linear-gradient(var(--lk) 0 0) top left / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) top left / var(--bk) var(--bl),
    linear-gradient(var(--lk) 0 0) top right / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) top right / var(--bk) var(--bl),
    linear-gradient(var(--lk) 0 0) bottom left / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) bottom left / var(--bk) var(--bl),
    linear-gradient(var(--lk) 0 0) bottom right / var(--bl) var(--bk),
    linear-gradient(var(--lk) 0 0) bottom right / var(--bk) var(--bl);
  background-repeat: no-repeat; opacity: .8;
  animation: frame-breathe 3.2s ease-in-out infinite;
}
@keyframes frame-breathe { 50% { transform: scale(1.01); opacity: .45; } }
.player-bar {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px;
  background: var(--night); color: var(--on-night); border-radius: 16px 16px 0 0;
  border: 1px solid var(--night-line); border-bottom: 0; font-size: 13px;
}
.hud-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; color: #FF8A80; }
.hud-live i { width: 8px; height: 8px; border-radius: 50%; background: #FF4D42; box-shadow: 0 0 0 0 rgba(255, 77, 66, .6); animation: rec 1.6s infinite; }
@keyframes rec { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 66, 0); } }
.player-count { font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); }
.player-title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .15s;
}
.player-toggle:hover { background: rgba(255, 255, 255, .2); }
.player-toggle svg { width: 13px; height: 13px; fill: currentColor; }
.player-toggle .i-play, .player.paused .player-toggle .i-pause { display: none; }
.player.paused .player-toggle .i-play { display: block; }
.player-screen {
  position: relative; aspect-ratio: 16 / 9; background: #02081A; overflow: hidden;
  border: 1px solid var(--night-line); border-top: 0; border-radius: 0 0 16px 16px;
}
.player-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.player-screen::after { /* faint scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px);
}
.player-progress { position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .15); }
.player-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--vision); }

.reel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: 28px; align-items: start; }
.reel-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 22px; }
.reel-caption p { flex: 1 1 360px; color: var(--muted); font-size: 16px; }
.reel-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vision); padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--vision) 10%, transparent);
}
.reel-link { font-weight: 600; font-size: 15px; color: var(--ink); text-underline-offset: 4px; }
.reel-caption.swap > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.reel-caption.swap > *:nth-child(2) { animation-delay: .05s; }
.reel-caption.swap > *:nth-child(3) { animation-delay: .1s; }

.reel-list {
  display: flex; flex-direction: column; gap: 6px; max-height: var(--reel-h, 560px); overflow-y: auto;
  padding: 4px 6px 4px 2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.reel-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 8px 10px 8px 8px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
  overflow: hidden; transition: background-color .2s, border-color .2s, transform .2s;
}
.reel-item:hover { background: var(--surface); border-color: var(--line); transform: translateX(2px); }
.reel-item.active { background: var(--surface); border-color: color-mix(in srgb, var(--vision) 45%, var(--line)); box-shadow: 0 8px 22px rgba(10, 22, 51, .08); }
.reel-thumb { position: relative; width: 92px; flex: none; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--night); }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-item.active .reel-thumb::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--vision); border-radius: 8px;
}
.reel-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.reel-meta strong { font-size: 14px; font-weight: 650; }
.reel-meta small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.reel-item-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--vision); }
.reel-item.active .reel-item-bar { transform: scaleX(var(--p, 0)); }
@media (max-width: 980px) {
  .reel { grid-template-columns: 1fr; }
  .reel-list { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .reel-list li { flex: 0 0 auto; scroll-snap-align: start; }
  .reel-item { flex-direction: column; align-items: flex-start; width: 170px; }
  .reel-thumb { width: 100%; }
}

/* ---------- Solution rows: a scan sweeps across on hover ---------- */
.service-row { overflow: hidden; }
.service-row::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 14%, transparent), transparent);
  transform: translateX(-110%);
}
.service-row:hover::after { animation: sweep 1s cubic-bezier(.4, 0, .2, 1); }
@keyframes sweep { to { transform: translateX(240%); } }

/* ---------- Partners wall ---------- */
.partners { background: var(--surface); padding-top: clamp(72px, 10vw, 120px) !important; padding-bottom: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
.partners + .contact { margin-top: 0; }
.partner-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.partner {
  --cv: var(--vision);
  position: relative; display: grid; place-items: center; height: 148px; padding: 28px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.partner img { max-height: 58px; max-width: 82%; width: auto; transition: transform .3s; }
.partner:hover { border-color: color-mix(in srgb, var(--vision) 40%, var(--line)); box-shadow: 0 16px 36px rgba(10, 22, 51, .1); transform: translateY(-3px); }
.partner:hover img { transform: scale(1.08); }
.partner::before { /* scanning beam that sweeps across the wall */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(30, 140, 240, .14), transparent);
  transform: translateX(-110%);
  animation: beam 6s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * 4);
}
@keyframes beam { 0%, 55% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
@media (max-width: 760px) { .partner-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .partner { height: 112px; padding: 18px; } }

/* ---------- Solutions page ---------- */
.sols-hero h1 { display: block; max-width: 18ch; }
.sols-jump { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sols-jump a {
  display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); transition: background-color .2s, border-color .2s, transform .2s;
}
.sols-jump a:hover { background: rgba(255, 255, 255, .09); border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-2px); }
.sols-jump .dot { margin-top: 6px; }
.sols-jump strong { display: block; font-size: 15px; }
.sols-jump small { display: block; font-size: 13px; color: var(--on-night-muted); margin-top: 2px; }
@media (max-width: 980px) { .sols-jump { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sols-jump { grid-template-columns: 1fr; } }
.sols-domain + .sols-domain { margin-top: 64px; }
.sols-domain-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sols-domain-head h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; }
.sols-domain-head p { color: var(--muted); font-size: 15px; }
.sols-cat { padding-top: clamp(72px, 10vw, 112px) !important; }

/* ---------- Solution detail hero ---------- */
.sol-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.sol-hero-grid h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); display: block; }
.sol-player { margin-top: 8px; }
.sol-hero-grid { row-gap: 24px; }
.sol-hero-grid > .sol-player-note { grid-column: 2; margin-top: 0; }
@media (max-width: 900px) { .sol-hero-grid { row-gap: 36px; } .sol-hero-grid > .sol-player-note { grid-column: 1; margin-top: -14px; } }
.sol-player-note { margin-top: 12px; font-size: 13px; color: var(--on-night-muted); }
@media (max-width: 900px) { .sol-hero-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Entrance choreography
   <html> gets .loaded on page load so entrance animations play immediately.
   ========================================================================= */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-back: cubic-bezier(.3, 1.45, .5, 1); }

/* ---- entrance keyframes ---- */
@keyframes e-fade { from { opacity: 0; } }
@keyframes e-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes e-down { from { opacity: 0; transform: translateY(-18px); } }
@keyframes e-left { from { opacity: 0; transform: translateX(-36px); } }
@keyframes e-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes e-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes e-blur { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } }
@keyframes e-zoom { from { opacity: 0; transform: scale(.9) translateY(24px); } }
@keyframes e-char { from { opacity: 0; transform: translateY(.5em) rotateX(-90deg); } }
@keyframes e-word { from { opacity: 0; transform: translateY(.7em) skewY(4deg); filter: blur(4px); } }
@keyframes e-verb { 0% { opacity: 0; transform: translateY(.35em) scale(.55) rotate(-8deg); filter: blur(6px); } 70% { opacity: 1; transform: scale(1.08) rotate(1deg); filter: none; } }
@keyframes e-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes e-flip { from { opacity: 0; transform: perspective(700px) rotateX(-55deg) translateY(20px); } }
@keyframes e-grid { from { opacity: 0; } to { opacity: .42; } }

/* everything below waits for <html class="loaded"> */
.js:not(.loaded) :is(.site-header .brand, .site-nav > ul > li, .site-nav > .btn, .nav-toggle,
  .hero .eyebrow, .hero .lede, .hero-cta > *, .hero-stats > div, .verbs > *, .h1-line, .hero-grid,
  .svc-hero .crumbs, .svc-hero .eyebrow, .svc-hero h1, .svc-hero .lede, .svc-highlights li,
  .sols-jump li, .sol-player, .sol-player-note, .sol-hero-img) { opacity: 0; }

/* header */
.loaded .site-header .brand { animation: e-left .8s var(--ease-out) .05s both; }
.loaded .site-nav > ul > li { animation: e-down .55s var(--ease-out) backwards; }
.loaded .site-nav > ul > li:nth-child(1) { animation-delay: .15s; }
.loaded .site-nav > ul > li:nth-child(2) { animation-delay: .23s; }
.loaded .site-nav > ul > li:nth-child(3) { animation-delay: .31s; }
.loaded .site-nav > .btn { animation: e-pop .6s var(--ease-back) .4s both; }
.loaded .nav-toggle { animation: e-pop .5s var(--ease-back) .2s both; }

/* home hero: each part arrives differently */
.loaded .hero .eyebrow { animation: e-fade .5s ease .2s both; }
.loaded .hero-grid { animation: e-grid 1.6s ease .1s both; }
.hero .h1-line .word { display: inline-block; white-space: nowrap; }
.hero .h1-line .c { display: inline-block; }
.loaded .hero .h1-line .c { animation: e-char .7s var(--ease-out) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.verbs .verb { display: inline-block; }
.loaded .verbs > * { animation: e-verb .75s var(--ease-out) both; animation-delay: calc(.62s + var(--n, 0) * .12s); }
.loaded .verbs > .comma, .loaded .verbs > .and { animation-name: e-fade; }
.loaded .hero .h1-line:last-child { animation: e-wipe 1s cubic-bezier(.6, 0, .2, 1) 1.1s both; }
.loaded .hero .lede { animation: e-blur .9s var(--ease-out) 1.25s both; }
.loaded .hero-cta > * { animation: e-pop .6s var(--ease-back) both; }
.loaded .hero-cta > :nth-child(1) { animation-delay: 1.4s; }
.loaded .hero-cta > :nth-child(2) { animation-delay: 1.5s; }
.loaded .hero-stats > div { animation: e-up .8s var(--ease-out) both; animation-delay: calc(1.55s + var(--d, 0s)); }

/* inner-page heroes */
.loaded .svc-hero .crumbs { animation: e-down .5s var(--ease-out) .1s both; }
.loaded .svc-hero .eyebrow { animation: e-fade .5s ease .2s both; }
.svc-hero h1 .w, .split-w .w { display: inline-block; }
.loaded .svc-hero h1 .w { animation: e-word .8s var(--ease-out) both; animation-delay: calc(.25s + var(--i) * 70ms); }
.loaded .svc-hero h1 .dot { animation: e-pop .5s var(--ease-back) .2s both; }
.loaded .svc-hero .lede { animation: e-blur .9s var(--ease-out) .6s both; }
.loaded .svc-hero .hero-cta > :nth-child(1) { animation-delay: .75s; }
.loaded .svc-hero .hero-cta > :nth-child(2) { animation-delay: .85s; }
.loaded .svc-highlights li { animation: e-up .7s var(--ease-out) both; animation-delay: calc(.9s + var(--d, 0s)); }
.loaded .sols-jump li { animation: e-flip .8s var(--ease-out) both; animation-delay: calc(.85s + var(--d, 0s)); }
.loaded .sol-player { animation: e-right 1s var(--ease-out) .45s both; }
.loaded .sol-player-note { animation: e-fade .6s ease 1.2s both; }
.loaded .sol-hero-img { animation: e-zoom .9s var(--ease-out) .45s both; }

/* ---- scroll reveals: a different entrance per kind of element ---- */
.js .section-head.reveal.in, .js .why-grid > .reveal.in, .js .faq-grid > .reveal.in:first-child { animation: none; }
.reveal.in .split-w .w { animation: e-word .8s var(--ease-out) both; animation-delay: calc(.1s + var(--i) * 60ms); }
.js .section-head.reveal.in > p { animation: e-blur .9s var(--ease-out) .35s both; }
.js .solution.reveal.in { animation: card-in .9s var(--ease-out) var(--d, 0s) backwards; }
@keyframes card-in { from { opacity: 0; transform: perspective(900px) rotateX(18deg) translateY(44px) scale(.95); } }
.js .partner.reveal.in { animation: e-pop .7s var(--ease-back) var(--d, 0s) backwards; }
.js .offer-grid li.reveal.in:nth-child(odd) { animation: e-left .8s var(--ease-out) var(--d, 0s) backwards; }
.js .offer-grid li.reveal.in:nth-child(even) { animation: e-right .8s var(--ease-out) var(--d, 0s) backwards; }
.js .why-list > .reveal.in { animation: e-right .8s var(--ease-out) var(--d, 0s) backwards; }
.js .service-rows li.reveal.in { animation: row-in 1s cubic-bezier(.6, 0, .2, 1) var(--d, 0s) backwards; }
@keyframes row-in { from { clip-path: inset(0 100% 0 0); transform: translateX(-30px); } to { clip-path: inset(0 0 0 0); } }
.js .talk-col.reveal.in:first-child { animation: e-left .9s var(--ease-out) backwards; }
.js .talk-col.reveal.in:last-child { animation: e-right .9s var(--ease-out) var(--d, 0s) backwards; }
.js .contact-copy.reveal.in { animation: e-left .9s var(--ease-out) backwards; }
.js .contact-form.reveal.in { animation: e-zoom .9s var(--ease-out) var(--d, 0s) backwards; }
.js .reel.reveal.in, .js .custom-callout.reveal.in { animation: e-zoom 1s var(--ease-out) backwards; }
.js .sols-domain-head.reveal.in { animation: row-in .9s cubic-bezier(.6, 0, .2, 1) backwards; }
.js .faq-list.reveal.in { animation: e-right .9s var(--ease-out) var(--d, 0s) backwards; }
.js .site-footer .reveal.in { animation: e-up .8s var(--ease-out) var(--d, 0s) backwards; }

/* ---------- Demo sound ---------- */
.player-sound {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 0; cursor: pointer; flex: none; background: rgba(255, 255, 255, .1); color: #fff; font-size: 12.5px; font-weight: 600;
  transition: background-color .15s;
}
.player-sound:hover { background: rgba(255, 255, 255, .2); }
.player-sound svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.player-sound .i-sound, .player.sound-on .player-sound .i-muted { display: none; }
.player.sound-on .player-sound .i-sound { display: block; }
.player.sound-on .player-sound { background: color-mix(in srgb, var(--web) 35%, transparent); }
.sound-hint {
  position: absolute; right: 14px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer;
  background: rgba(7, 19, 48, .82); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px);
  animation: hint-pulse 2.4s ease-in-out infinite;
}
.sound-hint::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 7.5h3l4-3.5v12l-4-3.5H3z' fill='black'/%3E%3Cpath d='M13 7a4 4 0 0 1 0 6M15.5 4.8a7 7 0 0 1 0 10.4' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 7.5h3l4-3.5v12l-4-3.5H3z' fill='black'/%3E%3Cpath d='M13 7a4 4 0 0 1 0 6M15.5 4.8a7 7 0 0 1 0 10.4' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sound-hint:hover { background: rgba(7, 19, 48, .95); }
@keyframes hint-pulse { 50% { box-shadow: 0 0 0 6px rgba(30, 140, 240, .22); } }
.player.sound-on .sound-hint { display: none; }
@media (max-width: 560px) { .player-sound span { display: none; } .player-sound { padding: 0 9px; } }

/* ---------- Reduced motion: show everything, still ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .js .steps::before { transform: none; }
  .hero-grid::before, .partner::before, .hud-frame::before { animation: none !important; }
  .lockon::after { display: none; }
}

/* ---------- Nav options: bold, with a solid background ---------- */
.site-nav > ul { gap: 10px; align-items: center; }
.site-nav > ul > li > a, .menu-toggle {
  font-weight: 700; font-size: 15px; color: #fff; padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); transition: background-color .15s, transform .15s;
}
.site-nav > ul > li > a:hover, .menu-toggle:hover, .menu-toggle[aria-expanded="true"], .menu-toggle[data-current] {
  background: var(--vision); color: #fff; transform: translateY(-1px);
}
@media (max-width: 980px) {
  .site-nav > ul > li > a, .menu-toggle { padding: 12px 18px; font-size: 17px; }
  .site-nav > ul { gap: 8px; }
}

/* ---------- Jia the robot: joint pivots + poses (robot sits 150 units lower inside the figure) ---------- */
.jia .j-head { transform-origin: 108px 100px; }
.jia .j-arm-front { transform-origin: 136px 137px; }
.jia .j-arm-back { transform-origin: 80px 137px; }
.jia .j-arm-front .j-fore { transform-origin: 136px 173px; }
.jia .j-arm-back .j-fore { transform-origin: 80px 173px; }
.jia .j-hair { transform-origin: 108px 100px; }
/* robot has no legs: neutralise the leg-swing poses inherited from the base rules */
.jia .j-thigh, .jia .j-shin { transform: none !important; }
.buddy.sit .j-body { transform: translateY(6px); }
.buddy.floor .j-body, .buddy.floor.mood-sleep .j-body { transform: translateY(50px); animation: none; }
.buddy.floor .j-arm { transform: rotate(-14deg); }
.buddy.floor .j-head { transform: rotate(-4deg); }
.buddy.floor.mood-sleep .j-head { transform: rotate(10deg); }
.buddy.walking .j-body, .buddy.dancing .j-body { animation-name: jr-hover; }
@keyframes jr-hover { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
.buddy.walking .j-body { animation-duration: .9s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
