/* ============ Quantum Global — design system ============
   Brand: the Q mark, Jost (display) + Hanken Grotesk (text), paper #FAFAF9,
   ink #121212 and one accent, Quantum blue #2D3FE0. Layout rhythm, spacing and
   motion timings follow the Porsche Design System's fluid scale. */

:root {
  color-scheme: light;
  --canvas: #FAFAF9;
  --surface: #F1F0EE;
  --primary: #121212;
  --contrast-high: #3A3A3A;
  --contrast-medium: #6E6E6E;
  --contrast-low: #8E8E8C;
  --contrast-lower: #C9C8C5;
  --line: #E5E4E1;
  --frosted: rgba(18, 18, 18, 0.06);
  --backdrop: rgba(18, 18, 18, 0.45);
  --accent: #2D3FE0;
  --accent-hover: #2232C4;
  --accent-ink: #ffffff;
  --accent-text: #2D3FE0;
  --success: #16803C;
  --error: #C0392B;
  --focus: #2D3FE0;
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --footer-bg: #121212;

  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem);
  --fs-lg: clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem);
  --fs-xl: clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem);
  --fs-2xl: clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem);
  --fs-3xl: clamp(1.9rem, 2.6vw + 1.32rem, 4.6rem);
  --fs-4xl: clamp(2.2rem, 4vw + 1.31rem, 6.4rem);

  --sp-xs: clamp(4px, 0.25vw + 3px, 8px);
  --sp-sm: clamp(8px, 0.5vw + 6px, 16px);
  --sp-md: clamp(16px, 1.25vw + 12px, 36px);
  --sp-lg: clamp(32px, 2.75vw + 23px, 76px);
  --sp-xl: clamp(48px, 3vw + 38px, 96px);
  --sp-2xl: clamp(80px, 7.5vw + 56px, 200px);
  --gutter: clamp(16px, 5vw, 96px);

  --r-sm: 6px;
  --r-lg: 10px;
  --r-xl: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --d-sm: 0.25s;
  --d-md: 0.45s;
  --d-lg: 0.7s;
  --d-xl: 1.2s;
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0F0F0F;
    --surface: #1A1A1A;
    --primary: #FAFAF9;
    --contrast-high: #D4D3D0;
    --contrast-medium: #9C9B98;
    --contrast-low: #7C7B78;
    --contrast-lower: #3A3A38;
    --line: #262626;
    --frosted: rgba(250, 250, 249, 0.08);
    --backdrop: rgba(0, 0, 0, 0.6);
    --accent: #3B4CF0;
    --accent-hover: #5262FF;
    --accent-text: #8C97FF;
    --success: #3CCB7F;
    --error: #FF7A6B;
    --focus: #8C97FF;
    --footer-bg: #080808;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0F0F0F;
  --surface: #1A1A1A;
  --primary: #FAFAF9;
  --contrast-high: #D4D3D0;
  --contrast-medium: #9C9B98;
  --contrast-low: #7C7B78;
  --contrast-lower: #3A3A38;
  --line: #262626;
  --frosted: rgba(250, 250, 249, 0.08);
  --backdrop: rgba(0, 0, 0, 0.6);
  --accent: #3B4CF0;
  --accent-hover: #5262FF;
  --accent-text: #8C97FF;
  --success: #3CCB7F;
  --error: #FF7A6B;
  --focus: #8C97FF;
  --footer-bg: #080808;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: var(--fs-sm);
  line-height: 1.6;
  background: var(--canvas);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--d-md) var(--ease), color var(--d-md) var(--ease);
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--accent); color: #fff; }
.sprite { position: absolute; }
.icon { width: 24px; height: 24px; flex: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); line-height: 1.04; }
h3 { font-size: var(--fs-md); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }

.container { padding-inline: var(--gutter); max-width: 1920px; margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 600; padding: 12px 16px; background: var(--primary); color: var(--canvas); border-radius: var(--r-sm); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 13px 26px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.5; white-space: nowrap;
  transition: background-color var(--d-sm) var(--ease), color var(--d-sm) var(--ease), border-color var(--d-sm) var(--ease), transform var(--d-md) var(--ease);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-frosted { background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.btn-frosted:hover { background: rgba(255, 255, 255, 0.28); }

.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 999px;
  transition: background-color var(--d-sm) var(--ease), border-color var(--d-sm) var(--ease), opacity var(--d-sm);
}
.icon-btn:hover { background: var(--frosted); }
.icon-btn-frosted { color: #fff; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.icon-btn-frosted:hover { background: rgba(255, 255, 255, 0.28); }
.icon-btn-outline { border: 1px solid var(--contrast-lower); }
.icon-btn-outline:hover { border-color: var(--primary); background: transparent; }
.icon-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #fff;
  transition: background-color var(--d-md) var(--ease), color var(--d-md) var(--ease), box-shadow var(--d-md) var(--ease), transform var(--d-md) var(--ease);
}
.header.solid { background: color-mix(in srgb, var(--canvas) 88%, transparent); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); color: var(--primary); box-shadow: 0 1px 0 var(--line); }
.header.hide { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--sp-md); padding-inline: var(--gutter); max-width: 1920px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { height: 26px; width: auto; transition: transform var(--d-md) var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-wm { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; font-size: 0.95rem; }
.nav-links a { position: relative; padding: 6px 0; opacity: 0.85; transition: opacity var(--d-sm); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--d-md) var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-right { display: flex; align-items: center; gap: 6px; }
.nav-links + .header-right { margin-left: clamp(8px, 1.5vw, 24px); }
.header-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; transition: background-color var(--d-sm) var(--ease); }
.header-btn:hover { background: var(--frosted); }
.header:not(.solid) .header-btn:hover { background: rgba(255, 255, 255, 0.14); }
.header-cta { min-height: 44px; padding: 8px 20px; margin-left: 6px; }
.menu-btn { display: none; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
/* ---------- Flyouts (menu + project) ---------- */
.flyout { position: fixed; inset: 0; z-index: 200; }
.flyout-backdrop { position: absolute; inset: 0; background: var(--backdrop); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity var(--d-lg) var(--ease); }
.flyout-panel {
  position: absolute; top: 0; bottom: 0; width: min(520px, 100%); background: var(--canvas); color: var(--primary);
  overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--sp-lg) var(--sp-lg);
  transition: transform var(--d-lg) var(--ease);
}
.flyout-panel:focus { outline: none; }
.flyout-panel-wide { width: min(760px, 100%); padding: 0 0 var(--sp-lg); }
.flyout-left .flyout-panel { left: 0; transform: translateX(-100%); }
.flyout-right .flyout-panel { right: 0; transform: translateX(100%); }
.flyout.open .flyout-backdrop { opacity: 1; }
.flyout.open .flyout-panel { transform: none; }
.flyout-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 12px; background: var(--canvas); margin-inline: calc(var(--sp-lg) * -1); }
.flyout-panel-wide .flyout-head { margin: 0; padding: 0; height: 0; background: none; }
.flyout-panel-wide .flyout-head .icon-btn { position: absolute; top: 12px; right: 12px; background: var(--canvas); }

.menu-nav { display: flex; flex-direction: column; margin-top: var(--sp-md); }
.menu-nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; margin-inline: -12px;
  font-size: var(--fs-xl); border-radius: var(--r-lg); transition: background-color var(--d-sm) var(--ease);
}
.menu-nav a:hover { background: var(--frosted); }
.menu-nav .icon { color: var(--contrast-medium); }
.menu-foot { margin-top: var(--sp-xl); padding-top: var(--sp-md); border-top: 1px solid var(--line); }
.menu-foot-label { font-size: var(--fs-xs); color: var(--contrast-medium); margin-bottom: 4px; }
.menu-foot a { font-size: var(--fs-md); }

/* ---------- Hero carousel ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px; overflow: hidden; background: #000; color: #fff; }
.hero-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity var(--d-xl) var(--ease), visibility 0s linear var(--d-xl); }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--d-xl) var(--ease), visibility 0s; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.slide.is-active .slide-img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%);
}
.slide-content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--sp-xl) + 64px); z-index: 2; max-width: 820px; }
.slide-content > * { opacity: 0; transform: translateY(16px); transition: opacity var(--d-lg) var(--ease), transform var(--d-lg) var(--ease); }
.slide.is-active .slide-content > * { opacity: 1; transform: none; }
.slide.is-active .slide-content > :nth-child(2) { transition-delay: 0.1s; }
.slide.is-active .slide-content > :nth-child(3) { transition-delay: 0.2s; }
.slide.is-active .slide-content > :nth-child(4) { transition-delay: 0.3s; }
.slide-kicker { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); margin-bottom: var(--sp-sm); }
.slide-title { font-size: var(--fs-4xl); line-height: 1; font-weight: 400; letter-spacing: -0.03em; }
.slide-text { font-size: var(--fs-md); color: rgba(255, 255, 255, 0.86); max-width: 38rem; margin-top: var(--sp-md); }
.slide-actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-lg); }

.hero-controls { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--sp-lg); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); }
.hero-dots { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.hero-dot { flex: 1; height: 32px; position: relative; }
.hero-dot::before, .hero-dot span { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.hero-dot::before { background: rgba(255, 255, 255, 0.35); }
.hero-dot span { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.done span { transform: scaleX(1); }
.hero-dot.current span { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.hero.paused .hero-dot.current span { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-buttons { display: flex; gap: 8px; }
.icon-play { display: none; }
.hero.paused .icon-play { display: block; }
.hero.paused .icon-pause { display: none; }

/* ---------- Extra button / icon variants ---------- */
.icon-sm { width: 18px; height: 18px; }
.btn-secondary { border: 1px solid var(--contrast-lower); color: var(--primary); background: transparent; }
.btn-secondary:hover { border-color: var(--primary); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: border-color var(--d-sm) var(--ease); white-space: nowrap; }
.text-link:hover { border-bottom-color: currentColor; }
.text-link .icon { width: 20px; height: 20px; transition: transform var(--d-md) var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.menu-foot .btn { margin-bottom: var(--sp-md); }
.menu-nav a[aria-current="page"] { background: var(--frosted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.eyebrow { font-size: var(--fs-xs); color: var(--contrast-medium); margin-bottom: var(--sp-sm); }
.fineprint { margin-top: var(--sp-lg); color: var(--contrast-medium); font-size: var(--fs-xs); }

/* Sub-page hero: one static photo slide */
.hero-page { height: 72vh; height: 72svh; min-height: 480px; max-height: 780px; }
.hero-page .slide-content { bottom: var(--sp-xl); }
.hero-page .slide-title { font-size: var(--fs-4xl); max-width: 16ch; }
.hero-page .slide-text a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.6); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-2xl); }
.section-head { margin-bottom: var(--sp-lg); max-width: 56rem; }
.section-head p { font-size: var(--fs-md); color: var(--contrast-high); margin-top: var(--sp-sm); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-md); }
.section-head-row > div { max-width: 56rem; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--d-xl) var(--ease), transform var(--d-xl) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.intro { padding-bottom: var(--sp-xl); }
.intro-text { font-family: var(--display); font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: -0.015em; max-width: 26em; }

/* ---------- Technical data ---------- */
.specs-section { background: var(--surface); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.spec { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding-top: var(--sp-md); border-top: 1px solid var(--contrast-lower); }
.spec dd { font-family: var(--display); font-size: var(--fs-4xl); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spec .unit { font-size: var(--fs-lg); margin-left: 6px; }
.spec dt { color: var(--contrast-high); }

/* ---------- Service tiles (2 large + 3) ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-sm); }
.tile { grid-column: span 2; position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; color: #fff; background: #111; isolation: isolate; }
.tile-voice, .tile-vision { grid-column: span 3; aspect-ratio: 3 / 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-xl) var(--ease); z-index: -2; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 70%); }
.tile:hover img { transform: scale(1.04); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-md); }
.tile-num { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.75); }
.tile h3 { font-size: var(--fs-xl); line-height: 1.15; margin-top: 4px; }
.tile p:last-child { margin-top: 6px; color: rgba(255, 255, 255, 0.85); max-width: 28em; }

/* ---------- Showcase demos ---------- */
.demos { background: var(--surface); overflow: hidden; }
.showcase { display: grid; grid-template-columns: minmax(260px, 0.8fr) 2.2fr; gap: var(--sp-lg); align-items: stretch; }
.sc-list { display: flex; flex-direction: column; gap: 4px; }
.sc-item { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-align: left; padding: 20px 20px 22px; border-radius: var(--r-xl); color: var(--contrast-medium); transition: background-color var(--d-md) var(--ease), color var(--d-md) var(--ease); }
.sc-item:hover { color: var(--primary); }
.sc-item[aria-selected="true"] { background: var(--canvas); color: var(--primary); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(18, 18, 18, 0.35); }
.sc-num { grid-row: span 2; font-family: var(--display); font-size: var(--fs-sm); color: var(--accent-text); padding-top: 2px; }
.sc-title { font-family: var(--display); font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.01em; }
.sc-desc { grid-column: 2; font-size: var(--fs-xs); margin-top: 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--d-lg) var(--ease), opacity var(--d-md) var(--ease); }
.sc-item[aria-selected="true"] .sc-desc { max-height: 4em; opacity: 1; color: var(--contrast-high); }
.sc-bar { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity var(--d-md); }
.sc-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.sc-item[aria-selected="true"] .sc-bar { opacity: 1; }
.showcase.manual .sc-bar { opacity: 0 !important; }

/* Stage with a slowly orbiting blue edge */
@property --edge { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.stage-wrap { position: relative; border-radius: 22px; padding: 1px; min-width: 0;
  background: conic-gradient(from var(--edge), var(--line) 0deg, var(--line) 200deg, var(--accent) 270deg, var(--line) 330deg);
  animation: edge 9s linear infinite; }
.stage-wrap::before { content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px; background: radial-gradient(60% 60% at 60% 60%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); filter: blur(40px); }
@keyframes edge { to { --edge: 360deg; } }
.stage { border-radius: 21px; background: var(--canvas); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 50px 100px -50px rgba(18, 18, 18, 0.45); }
.stage-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.stage-title { color: var(--contrast-high); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-tag { padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--contrast-medium); }
.stage-body { position: relative; flex: 1; min-height: 540px; display: grid; }
.demo { padding: clamp(16px, 2.2vw, 32px); display: flex; animation: demo-in 0.6s var(--ease); min-width: 0; }
@keyframes demo-in { from { opacity: 0; transform: translateY(10px); } }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; margin-right: 8px; animation: blink 1.2s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0.25; } }
.pop { animation: pop 0.5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* Chat */
.chat2 { flex: 1; display: flex; flex-direction: column; min-width: 0; max-width: 720px; margin-inline: auto; width: 100%; }
.chat-log { flex: 1; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 12px; scroll-behavior: smooth; scrollbar-width: thin; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; }
.msg-bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bot-row { display: flex; gap: 10px; align-items: flex-end; align-self: flex-start; max-width: 88%; }
.bot-avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--primary); color: var(--canvas); display: grid; place-items: center; }
.bot-avatar svg { width: 15px; height: auto; }
.bot-row .msg { max-width: none; }
.tool { align-self: flex-start; margin-left: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--contrast-high); background: var(--canvas); }
.tool-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.tool.done .tool-spin { animation: none; border: 0; background: var(--success); position: relative; }
.tool.done .tool-spin::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--surface); border-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--contrast-medium); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.slots { margin-left: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.slot { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--contrast-lower); background: var(--canvas); font-variant-numeric: tabular-nums; transition: all var(--d-sm) var(--ease); }
.slot small { display: block; font-size: 11px; color: var(--contrast-medium); }
.slot.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--canvas)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.confirm { margin-left: 40px; align-self: flex-start; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--canvas); min-width: 260px; }
.confirm-ic { grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); display: grid; place-items: center; font-weight: 700; }
.confirm b { font-family: var(--display); font-weight: 500; font-size: var(--fs-md); }
.confirm span { color: var(--contrast-medium); font-size: var(--fs-xs); }
.chat-suggest { display: flex; gap: 8px; flex-wrap: wrap; min-height: 44px; padding: 8px 0 12px; }
.chat-suggest button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--contrast-lower); font-size: var(--fs-xs); background: var(--canvas); transition: border-color var(--d-sm), color var(--d-sm); }
.chat-suggest button:hover { border-color: var(--accent); color: var(--accent-text); }
.chat-input { position: relative; display: flex; align-items: center; gap: 2px; padding: 12px 12px 12px 18px; border-radius: 999px; border: 1px solid var(--contrast-lower); background: var(--canvas); min-height: 54px; }
.chat-input-text:empty + .chat-caret { display: none; }
.chat-input-text:not(:empty) ~ .chat-placeholder { display: none; }
.chat-placeholder { color: var(--contrast-low); }
.chat-caret { width: 2px; height: 1.2em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.chat-send { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.chat-send .icon { width: 18px; height: 18px; }

/* Vision: camera wall with real detections */
.cams { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 196px; grid-template-rows: auto auto auto; gap: 12px; min-width: 0; align-content: start; }
.feed { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #0B0D12; grid-row: 1; }
.feed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.feed-img.is-on { opacity: 1; } /* no zoom: boxes must stay pixel-aligned with the detections */
.feed::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 22%, transparent 70%, rgba(0, 0, 0, 0.5)); }
.feed-scan { position: absolute; left: 0; right: 0; top: -25%; height: 25%; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(110, 123, 255, 0.28) 85%, rgba(255, 255, 255, 0.9)); mix-blend-mode: screen; }
.feed.scanning .feed-scan { opacity: 1; animation: feed-scan 0.9s var(--ease-io) forwards; }
@keyframes feed-scan { to { top: 100%; } }
.feed-boxes { position: absolute; inset: 0; z-index: 3; }
.fbox { position: absolute; --c: #6E7BFF; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 2px, linear-gradient(var(--c), var(--c)) top left / 2px 14px,
    linear-gradient(var(--c), var(--c)) top right / 14px 2px, linear-gradient(var(--c), var(--c)) top right / 2px 14px,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 2px, linear-gradient(var(--c), var(--c)) bottom left / 2px 14px,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 2px, linear-gradient(var(--c), var(--c)) bottom right / 2px 14px,
    color-mix(in srgb, var(--c) 8%, transparent);
  background-repeat: no-repeat; opacity: 0; transform: scale(1.12); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.fbox.show { opacity: 1; transform: none; }
.fbox span { position: absolute; left: -1px; bottom: 100%; margin-bottom: 3px; padding: 2px 7px; border-radius: 3px; background: var(--c); color: #fff; font: 600 11px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: nowrap; }
.fbox.inside span { bottom: auto; top: 4px; left: 4px; margin: 0; }
.fbox.inside-b span { bottom: 4px; left: 4px; margin: 0; }
.fbox.right span { left: auto; right: -1px; }
.fbox.inside.right span { right: 4px; }
.fbox.k-vehicle { --c: #F5A524; }
.fbox.k-vehicle span, .fbox.k-ppe span { color: #121212; }
.fbox.k-ppe { --c: #3CCB7F; }
.fbox.k-scene { --c: #A0A6B8; }
.fbox.k-scene span { color: #121212; }
.feed-hud { position: absolute; left: 12px; top: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.5); color: #fff; font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.05em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.feed-hud .rec-dot { margin-right: 0; }
.feed-sep { width: 1px; height: 10px; background: rgba(255, 255, 255, 0.3); }
.feed-count { position: absolute; right: 12px; top: 12px; z-index: 4; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.5); color: #fff; font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.feed-count:empty { display: none; }
.feed-event { position: absolute; left: 12px; top: 48px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #2D3FE0; color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.feed-event::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.feed-event.show { opacity: 1; transform: none; }
.feed-event.amber { background: #F5A524; color: #121212; }
.feed-event.green { background: #16803C; }
.cam-thumbs { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-auto-rows: min-content; gap: 8px; align-content: start; }
.cam-thumb { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #0B0D12; opacity: 0.6; transition: opacity var(--d-md) var(--ease), box-shadow var(--d-md) var(--ease); }
.cam-thumb:hover { opacity: 0.9; }
.cam-thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.cam-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%); }
.cam-thumb-boxes { position: absolute; inset: 0; z-index: 1; }
.cam-thumb-boxes i { position: absolute; border: 1px solid #6E7BFF; border-radius: 2px; }
.cam-thumb-label { position: absolute; left: 7px; bottom: 6px; z-index: 2; color: #fff; font: 500 9.5px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; text-align: left; }
.cam-thumb-label .rec-dot { width: 6px; height: 6px; margin-right: 5px; }
.cam-thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: rgba(255, 255, 255, 0.15); opacity: 0; }
.cam-thumb.is-on .cam-thumb-bar { opacity: 1; }
.cam-thumb-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.feed-dets { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.feed-dets span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; animation: pop 0.4s var(--ease) both; }
.feed-dets b { font-weight: 600; font-variant-numeric: tabular-nums; }
.feed-dets i { width: 8px; height: 8px; border-radius: 2px; background: #6E7BFF; }
.feed-dets .k-vehicle i { background: #F5A524; }
.feed-dets .k-ppe i { background: #3CCB7F; }
.feed-dets .k-scene i { background: #A0A6B8; }
.feed-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--contrast-medium); }

/* Document */
.docx { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); min-width: 0; }
.inv { position: relative; overflow: hidden; padding: 24px; border-radius: 14px; background: #fff; color: #121212; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.5); transform: rotate(-0.6deg); font-size: 13px; align-self: start; }
.inv-beam { position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(180deg, transparent, rgba(45, 63, 224, 0.18) 80%, rgba(45, 63, 224, 0.7)); opacity: 0; pointer-events: none; }
.inv.scanning .inv-beam { opacity: 1; animation: scan 2.6s linear 1 forwards; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #E5E4E1; }
.inv-vendor { font-family: var(--display); font-size: 18px; font-weight: 500; }
.inv-sub, .inv-meta p:last-child { color: #6E6E6E; font-size: 12px; }
.inv-sub span, .inv-meta span { white-space: nowrap; }
.inv-meta { flex: none; }
.inv-meta { text-align: right; }
.inv-type { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: #2D3FE0; }
.inv-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.inv-table th { text-align: left; font-weight: 500; color: #6E6E6E; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 0; border-bottom: 1px solid #E5E4E1; }
.inv-table td { padding: 8px 0; border-bottom: 1px solid #F1F0EE; }
.inv-table th:not(:first-child), .inv-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.inv-totals p { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.inv-total { font-weight: 700; border-top: 1px solid #121212; margin-top: 6px; padding-top: 8px !important; }
.inv [data-k] { border-radius: 4px; transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease); }
.inv [data-k].hit { background: rgba(45, 63, 224, 0.12); box-shadow: 0 0 0 3px rgba(45, 63, 224, 0.12); }
.inv table[data-k].hit { background: rgba(45, 63, 224, 0.05); box-shadow: 0 0 0 2px rgba(45, 63, 224, 0.6); }
.doc-out2 { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.doc-code { flex: 1; min-height: 300px; max-height: 340px; overflow: auto; margin: 0; padding: 18px; border-radius: 14px; background: #121212; color: #E5E4E1; font: 12.5px/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.doc-code .k { color: #9AA4FF; }
.doc-code .s { color: #8FE3B0; }
.doc-code .n { color: #F5C26B; }
.doc-code .p { color: #6E6E6E; }
.doc-code .line { display: block; padding-left: 2ch; text-indent: -2ch; animation: line-in 0.3s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } }
.doc-checks { list-style: none; display: grid; gap: 6px; }
.doc-checks li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); }
.doc-checks li::before { content: "✓"; width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--success); }
.doc-checks li.final { margin-top: 4px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); font-weight: 600; }
.doc-checks li.final::before { background: var(--accent); }

/* Voice */
.call { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 820px; margin-inline: auto; width: 100%; }
.call-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); }
.call-who { font-weight: 600; }
.call-lang { padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--contrast-high); transition: background-color var(--d-md), color var(--d-md); }
.call-lang.known { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); }
.call-time { margin-left: auto; font-variant-numeric: tabular-nums; font-family: var(--display); font-size: var(--fs-md); }
.call-wave { width: 100%; height: 88px; border-radius: 14px; background: var(--surface); }
.call-log { flex: 1; height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; scrollbar-width: thin; }
.turn { max-width: 78%; }
.turn-who { font-size: 11px; color: var(--contrast-medium); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.turn-text { padding: 10px 14px; border-radius: 16px; background: var(--surface); font-size: 1.02rem; line-height: 1.5; }
.turn-tr { font-size: var(--fs-xs); color: var(--contrast-medium); margin-top: 4px; padding-left: 14px; opacity: 0; transition: opacity 0.5s var(--ease); }
.turn-tr.show { opacity: 1; }
.turn.agent { align-self: flex-end; text-align: right; }
.turn.agent .turn-text { background: var(--accent); color: #fff; text-align: left; }
.turn.agent .turn-tr { padding-left: 0; padding-right: 14px; }
.call-outcome { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.call-outcome div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.call-outcome span { display: block; font-size: 11px; color: var(--contrast-medium); text-transform: uppercase; letter-spacing: 0.06em; }
.call-outcome b { font-weight: 600; font-size: var(--fs-xs); }

.tabs { display: flex; gap: var(--sp-md); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--sp-md); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 0; white-space: nowrap; color: var(--contrast-high); transition: color var(--d-sm) var(--ease); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform var(--d-md) var(--ease); }
.tab:hover, .tab[aria-selected="true"] { color: var(--primary); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

/* ---------- Project cards ---------- */
.cards { display: grid; gap: var(--sp-lg) var(--sp-sm); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-xl) var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-meta { margin-top: var(--sp-md); font-size: var(--fs-xs); color: var(--contrast-medium); }
.card-title { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; font-size: var(--fs-lg); line-height: 1.15; margin-top: 4px; }
.card-text { margin-top: var(--sp-xs); color: var(--contrast-high); }
.card-status { margin-top: var(--sp-sm); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); }
.pill { padding: 4px 10px; border-radius: var(--r-sm); background: var(--surface); }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--contrast-high); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--contrast-low); }
.status-live::before { background: var(--success); }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }
.partner { background: var(--surface); border-radius: var(--r-xl); padding: var(--sp-lg) var(--sp-md) var(--sp-md); display: flex; flex-direction: column; min-height: 300px; }
.partner-program { font-size: var(--fs-xs); color: var(--contrast-medium); }
.partner-name { font-size: var(--fs-3xl); line-height: 1; margin-top: auto; padding-top: var(--sp-lg); font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
.partner-tier { font-size: var(--fs-md); margin-top: 8px; }
.partner-text { margin-top: var(--sp-sm); color: var(--contrast-high); }
.specs-section .partner, .demos .partner { background: var(--canvas); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: var(--sp-lg) var(--sp-md); }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step { padding-top: var(--sp-md); border-top: 1px solid var(--contrast-lower); }
.step-num { display: block; font-size: var(--fs-xs); color: var(--contrast-medium); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--fs-lg); margin-top: var(--sp-md); }
.step p { margin-top: var(--sp-xs); color: var(--contrast-high); }

/* ---------- News card ---------- */
.news { padding-top: 0; }
.news-card { display: grid; grid-template-columns: 1fr 1.3fr; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.news-media { min-height: 320px; position: relative; overflow: hidden; }
.news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-xl) var(--ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-body { padding: var(--sp-lg); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-sm); }
.news-meta { font-size: var(--fs-xs); color: var(--contrast-medium); }
.news-body h2 { font-size: var(--fs-2xl); line-height: 1.15; }
.news-text { color: var(--contrast-high); }
.news-card .text-link { align-self: flex-start; margin-top: var(--sp-xs); }
.media-contact { margin-top: var(--sp-xl); padding-top: var(--sp-md); border-top: 1px solid var(--contrast-lower); }
.media-contact h2 { font-size: var(--fs-lg); }
.media-contact p { margin-top: 6px; color: var(--contrast-high); }
.media-contact a { color: var(--primary); border-bottom: 1px solid var(--contrast-lower); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface); }
.cta-band-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-lg); flex-wrap: wrap; }
.cta-band h2 { font-size: var(--fs-3xl); max-width: 18em; }
.cta-band-actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

/* ---------- Service rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; scroll-margin-top: var(--header-h); }
.row-flip .row-media { order: 2; }
.row-media { position: relative; min-height: 560px; overflow: hidden; }
.row-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-body { padding: var(--sp-2xl) var(--gutter); align-self: center; max-width: 780px; }
.row-text { font-size: var(--fs-md); color: var(--contrast-high); margin-top: var(--sp-md); }
.row-sub { font-size: var(--fs-sm); font-weight: 600; margin-top: var(--sp-lg); }
.use-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-sm); }
.use-list li { padding: 8px 14px; border-radius: var(--r-sm); background: var(--surface); }
.row-flip { background: var(--surface); }
.row-flip .use-list li { background: var(--canvas); }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-xl); }
.story-text p { font-size: var(--fs-md); color: var(--contrast-high); }
.story-text p + p { margin-top: var(--sp-md); }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); }
.person { display: flex; gap: var(--sp-md); align-items: flex-start; padding: var(--sp-md); border-radius: var(--r-xl); background: var(--canvas); }
.person-mono { width: 88px; height: 88px; flex: none; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--primary); color: var(--canvas); font-family: var(--display); font-size: var(--fs-lg); font-weight: 500; letter-spacing: 0.02em; }
.person h3 { font-size: var(--fs-lg); }
.person-role { color: var(--contrast-medium); margin-top: 2px; }
.person-text { color: var(--contrast-high); margin-top: var(--sp-sm); }

/* ---------- Press release article ---------- */
.article-page { padding: calc(var(--header-h) + var(--sp-lg)) 0 0; }
.breadcrumb { display: flex; gap: 8px; font-size: var(--fs-xs); color: var(--contrast-medium); }
.breadcrumb a { color: var(--primary); border-bottom: 1px solid var(--contrast-lower); }
.article-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--sp-xl); padding: var(--sp-lg) 0 var(--sp-2xl); }
.article-meta { font-size: var(--fs-xs); color: var(--contrast-medium); }
.article h1 { font-size: var(--fs-3xl); line-height: 1.1; margin-top: var(--sp-sm); }
.article-lede { font-size: var(--fs-lg); line-height: 1.35; color: var(--contrast-high); margin-top: var(--sp-md); }
.article-body { margin-top: var(--sp-lg); max-width: 44rem; }
.article-body p { margin-top: var(--sp-sm); }
.article-body h2 { font-size: var(--fs-md); font-weight: 600; margin-top: var(--sp-lg); }
.article-body a { border-bottom: 1px solid var(--contrast-lower); }
.quote { margin: var(--sp-lg) 0; padding-left: var(--sp-md); border-left: 2px solid var(--primary); }
.quote p { font-size: var(--fs-lg); line-height: 1.35; margin: 0; }
.quote footer { margin-top: var(--sp-sm); color: var(--contrast-medium); font-size: var(--fs-xs); }
.ends { text-align: center; color: var(--contrast-medium); margin: var(--sp-lg) 0 !important; letter-spacing: 0.2em; text-transform: uppercase; font-size: var(--fs-xs); }
.article-aside { align-self: start; position: sticky; top: calc(var(--header-h) + var(--sp-md)); display: grid; gap: var(--sp-sm); }
.aside-block { padding: var(--sp-md); border-radius: var(--r-xl); background: var(--surface); }
.aside-label { font-size: var(--fs-xs); color: var(--contrast-medium); margin-bottom: 6px; }
.aside-value { font-size: var(--fs-lg); }
.aside-sub { color: var(--contrast-high); margin-top: 2px; }
.aside-dl { display: grid; gap: 10px; }
.aside-dl div { display: flex; justify-content: space-between; gap: 12px; }
.aside-dl dt { color: var(--contrast-medium); }
.aside-block a:not(.btn) { border-bottom: 1px solid var(--contrast-lower); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Careers ---------- */
.roles { border-top: 1px solid var(--contrast-lower); }
.role { border-bottom: 1px solid var(--contrast-lower); }
.role summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--sp-md); padding: var(--sp-md) 0; }
.role summary::-webkit-details-marker { display: none; }
.role-title { font-family: var(--display); font-size: var(--fs-xl); letter-spacing: -0.01em; }
.role-meta { color: var(--contrast-medium); }
.role-icon { transition: transform var(--d-md) var(--ease); }
.role[open] .role-icon { transform: rotate(45deg); }
.role summary:hover .role-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.role-body { padding: 0 0 var(--sp-lg); max-width: 64rem; }
.role-desc { font-size: var(--fs-md); color: var(--contrast-high); }
.role-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); margin: var(--sp-md) 0 var(--sp-lg); }
.role-cols h3 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 8px; }
.role-cols ul { padding-left: 1.1em; color: var(--contrast-high); display: grid; gap: 6px; }

/* ---------- Contact / forms ---------- */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-xl); align-items: start; }
.contact-intro > p { font-size: var(--fs-md); color: var(--contrast-high); margin-top: var(--sp-md); max-width: 30rem; }
.contact-alt { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.contact-details { display: grid; gap: var(--sp-md); }
.contact-details dt { font-size: var(--fs-xs); color: var(--contrast-medium); }
.contact-details dd { font-size: var(--fs-lg); margin-top: 4px; }
.contact-details a { border-bottom: 1px solid var(--contrast-lower); transition: border-color var(--d-sm); }
.contact-details a:hover { border-color: var(--primary); }
.contact-details .text-link { border-bottom-color: var(--contrast-lower); }

.form { display: grid; gap: var(--sp-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.field { display: grid; gap: 6px; border: 0; min-width: 0; }
.field em { font-style: normal; color: var(--contrast-medium); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 13px 16px; background: var(--canvas); color: var(--primary);
  border: 2px solid var(--contrast-lower); border-radius: var(--r-sm); outline: none; resize: vertical; font: inherit;
  transition: border-color var(--d-sm) var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--contrast-low); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.form-foot { display: flex; align-items: center; gap: var(--sp-md); flex-wrap: wrap; }
.form-note { color: var(--contrast-high); }
.form-note.ok { color: var(--success); }
.form-note.err { color: var(--error); }
.form-note a { border-bottom: 1px solid currentColor; }

/* ---------- Footer (always dark, as on most automotive sites) ---------- */
.footer { background: var(--footer-bg); color: #fbfcff; padding: var(--sp-xl) 0 var(--sp-md); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md); flex-wrap: wrap; padding-bottom: var(--sp-lg); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-tag { color: rgba(251, 252, 255, 0.67); max-width: 28rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); padding-block: var(--sp-lg); }
.footer-cols h2 { font-family: var(--font); letter-spacing: 0; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-sm); line-height: 1.4; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a, .footer-cols span { color: rgba(251, 252, 255, 0.67); transition: color var(--d-sm); }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--sp-sm); flex-wrap: wrap; padding-top: var(--sp-md); border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--fs-xs); color: rgba(251, 252, 255, 0.56); }

/* ============ Brand motion ============ */

/* Page transition: a blue wipe carrying the Q */
.wipe { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--accent); color: #fff; transform: translateY(100%); pointer-events: none; }
.wipe-q { width: clamp(72px, 9vw, 120px); height: auto; opacity: 0; transform: scale(0.8) rotate(-12deg); transition: opacity 0.35s var(--ease), transform 0.6s var(--ease); }
.wipe.cover { transform: none; transition: transform 0.55s var(--ease-io); pointer-events: auto; }
.wipe.cover .wipe-q { opacity: 1; transform: none; transition-delay: 0.15s; }
html.wipe-in .wipe { transform: none; pointer-events: auto; }
html.wipe-in .wipe .wipe-q { opacity: 1; transform: none; transition: none; }
.wipe.leave { transform: translateY(-100%) !important; transition: transform 0.65s var(--ease-io); }
.wipe.leave .wipe-q { opacity: 0; transform: scale(1.1); transition: opacity 0.3s, transform 0.6s var(--ease); }

/* First-visit intro: the Q draws, then we zoom through its counter */
.qintro { position: fixed; inset: 0; z-index: 550; display: none; pointer-events: none; }
html.intro-on .qintro { display: block; pointer-events: auto; }
html.intro-on:not(.intro-ready) body > *:not(.qintro) { visibility: hidden; }
html.intro-on:not(.intro-ready) body { background: var(--canvas); }
.qintro svg { display: block; width: 100%; height: 100%; }
.qintro-skip { position: absolute; right: var(--gutter); bottom: var(--sp-lg); font-size: var(--fs-xs); color: var(--contrast-medium); padding: 8px 12px; }

/* Word-by-word rise for headings */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.split-in .split-w > span { transform: none; }

/* Image unmasking */
.js .card.reveal .card-media, .js .tile.reveal, .js .news-card.reveal .news-media { clip-path: inset(14% 0 0 0 round var(--r-xl)); transition: clip-path 1.3s var(--ease); }
.js .card.reveal.in .card-media, .js .tile.reveal.in, .js .news-card.reveal.in .news-media { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.js .row-media.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
.js .row-media.reveal.in img { clip-path: inset(0 0 0 0); }
.js .reveal .card-media img, .js .tile.reveal img, .js .row-media.reveal img, .js .news-card.reveal .news-media img { transform: scale(1.14); }
.js .reveal.in .card-media img, .js .tile.reveal.in img, .js .row-media.reveal.in img, .js .news-card.reveal.in .news-media img { transform: scale(1); transition: transform 1.6s var(--ease); }
.js .card.reveal.in:hover .card-media img, .js .tile.reveal.in:hover img, .js .news-card.reveal.in:hover .news-media img { transform: scale(1.05); }

/* Hero parallax hooks (values set from JS) */
.hero .hero-slides, .hero-page .slide-img { will-change: transform; }
.hero-page .slide-img { transition: none; transform: scale(1.06); }
.hero .slide-content { will-change: opacity, transform; }

/* Services marquee, speed follows scroll velocity */
.marquee { overflow: hidden; padding: var(--sp-lg) 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 7.5rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; padding: 0 clamp(20px, 2.5vw, 44px); }
.marquee-q { width: clamp(28px, 3.6vw, 60px); height: auto; color: var(--accent); flex: none; }
.marquee-group:nth-child(even) .marquee-item { color: transparent; -webkit-text-stroke: 1px var(--primary); }

/* Pinned "How we work": the Q draws itself as you scroll */
.pin { background: var(--canvas); }
.pin-track { position: relative; height: 320vh; }
.pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--sp-xl); }
.pin-visual { position: relative; display: grid; place-items: center; }
.pin-q { width: min(100%, 520px); height: auto; overflow: visible; }
.pin-q-line { fill: none; stroke: var(--primary); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); }
.pin-q-fill { fill: var(--accent); opacity: var(--fill, 0); }
.pin-num { position: absolute; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -0.04em; color: var(--primary); transition: color var(--d-md); }
.pin-copy h2 { margin-bottom: var(--sp-sm); }
.pin-lede { font-size: var(--fs-md); color: var(--contrast-high); }
.pin-steps { list-style: none; margin-top: var(--sp-lg); display: grid; gap: 0; }
.pin-step { padding: var(--sp-md) 0; border-top: 1px solid var(--contrast-lower); opacity: 0.32; transition: opacity var(--d-md) var(--ease); }
.pin-step:last-child { border-bottom: 1px solid var(--contrast-lower); }
.pin-step.is-active { opacity: 1; }
.pin-step-k { display: block; font-size: var(--fs-xs); color: var(--accent-text); letter-spacing: 0.04em; }
.pin-step h3 { font-size: var(--fs-xl); font-weight: 400; margin-top: 4px; }
.pin-step p { color: var(--contrast-high); margin-top: 4px; max-width: 34rem; }

/* Footer giant mark */
.brand-footer { color: #fff; }
.footer-giant { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 32px); padding: var(--sp-xl) var(--gutter) 0; max-width: 1920px; margin-inline: auto; color: rgba(250, 250, 249, 0.07); overflow: hidden; }
.footer-q { width: clamp(90px, 16vw, 300px); height: auto; flex: none; transform: translateY(18%); }
.footer-giant span { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 12.5vw, 15rem); line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap; transform: translateY(14%); }

/* Accent touches */
.tab::after { background: var(--accent); }
.text-link:hover { color: var(--accent-text); }
.status-live::before { background: var(--success); }
.msg-user { background: var(--accent); color: #fff; }
.person-mono { background: var(--accent); color: #fff; }
.quote { border-left-color: var(--accent); }
.checks input:checked + span { background: var(--accent); border-color: var(--accent); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.hero-dot span { background: #fff; }
.pill { background: var(--surface); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .showcase { grid-template-columns: 1fr; gap: var(--sp-md); }
  .sc-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .sc-list::-webkit-scrollbar { display: none; }
  .sc-item { flex: none; padding: 12px 18px 16px; }
  .sc-desc { display: none; }
  .sc-num { grid-row: auto; }
  .sc-title { font-size: var(--fs-md); }
  .sc-bar { left: 18px; right: 18px; bottom: 6px; }
  .stage-body { min-height: 0; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .header-right { margin-left: auto; }
  .pin-track { height: auto; }
  .pin-stage { position: static; height: auto; grid-template-columns: 1fr; padding-block: var(--sp-2xl); }
  .pin-visual { max-width: 320px; }
  .pin-step { opacity: 1; }
  .pin-q-line { stroke-dashoffset: 0; }
  .pin-q-fill { opacity: 1; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .specs, .steps-4 { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-lg); }
  .partner-grid { grid-template-columns: 1fr; }
  .partner { min-height: 0; }
  .row, .contact-grid, .story, .news-card, .article-grid { grid-template-columns: 1fr; }
  .row-flip .row-media { order: 0; }
  .row-media { min-height: 0; aspect-ratio: 16 / 10; }
  .row-body { padding: var(--sp-xl) var(--gutter); }
  .article-aside { position: static; }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile-voice, .tile-vision { grid-column: span 1; aspect-ratio: 4 / 5; }
  .tile-voice { grid-column: span 2; aspect-ratio: 16 / 10; }
  .steps-3 { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .role summary { grid-template-columns: 1fr auto; }
  .role-meta { grid-column: 1; grid-row: 2; margin-top: -8px; }
  .role-icon { grid-row: 1 / span 2; grid-column: 2; }
  .role-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .slide-content { bottom: calc(var(--sp-lg) + 64px); }
  .hero-page .slide-content { bottom: var(--sp-lg); }
  #heroPrev, #heroNext { display: none; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .cams { grid-template-columns: 1fr; }
  .cam-thumbs { grid-column: 1; grid-row: auto; grid-template-columns: repeat(4, 1fr); }
  .cam-thumb-label { font-size: 0; left: 5px; bottom: 4px; }
  .cam-thumb-label .rec-dot { margin: 0; }
  .feed-dets { grid-column: 1; }
  .fbox span { font-size: 9.5px; padding: 1px 5px; }
  #feedClock, .feed-hud .feed-sep, .feed-count { display: none; }
  .feed-hud { max-width: calc(100% - 24px); overflow: hidden; white-space: nowrap; }
  .feed-event { top: 42px; font-size: 11.5px; padding: 6px 11px; }
  .docx { grid-template-columns: 1fr; }
  .inv { transform: none; }
  .doc-code { min-height: 0; max-height: 280px; }
  .call-outcome { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 92%; }
  .turn { max-width: 92%; }
  .slots, .confirm, .tool { margin-left: 0; }
  .bot-avatar { display: none; }
  .chat-sub { display: none; }
}
@media (max-width: 560px) {
  .header-cta { display: none; } /* booking stays in the menu */
  .cards-3, .cards-4, .specs, .steps-4, .tiles { grid-template-columns: 1fr; }
  .tile, .tile-voice, .tile-vision { grid-column: span 1; aspect-ratio: 4 / 3; }
  .slide-actions .btn, .cta-band-actions .btn { flex: 1 1 100%; }
  .cta-band-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .split-w > span { transform: none !important; }
  .js .reveal .card-media, .js .tile.reveal, .js .row-media.reveal img, .js .news-card.reveal .news-media { clip-path: none !important; }
  .js .reveal img { transform: none !important; }
  .wipe, .qintro { display: none !important; }
  .pin-track { height: auto; }
  .pin-stage { position: static; height: auto; }
  .pin-step { opacity: 1; }
  .pin-q-line { stroke-dashoffset: 0; }
  .pin-q-fill { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .slide-img, .slide.is-active .slide-img { transform: none; }
}
