/* ALLAI public site design system (2026 redesign).
   Near-black surfaces, charcoal panels, one blue (#2563FF), DM Sans + JetBrains Mono.
   Dark is the default; html[data-theme="light"] is a deliberate light theme, not an inversion.
   Class names are new (no overlap with the old style.css or static/pub/public-theme.css).
   CSP-safe: external stylesheet only. */

/* ---------- tokens ---------- */
:root {
  --bg: #06080d; --bg-2: #0a0d14; --surface: #0f131b; --surface-2: #161b25; --surface-3: #1e2430;
  --text: #f4f6fb; --mute: #a3acc0; --faint: #717a90;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .17);
  --blue: #2563ff; --blue-press: #1d4ed8; --blue-hi: #7da2ff; --blue-soft: rgba(37, 99, 255, .14);
  --glow: rgba(37, 99, 255, .38);
  --sans: 'DM Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1320px; --pad: clamp(18px, 4vw, 44px); --nav-h: 58px;
  --ease: cubic-bezier(.22, .61, .36, 1); --ease-io: cubic-bezier(.4, 0, .2, 1);
  --r: 8px; --r-lg: 18px; --r-xl: 28px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f4f5f8; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #eceef4; --surface-3: #e1e5ee;
  --text: #0a0e1a; --mute: #4a5368; --faint: #707a92;
  --line: rgba(10, 14, 26, .1); --line-2: rgba(10, 14, 26, .2);
  --blue-hi: #1d4ed8; --blue-soft: rgba(37, 99, 255, .1); --glow: rgba(37, 99, 255, .22);
  color-scheme: light;
}
/* inverse "sheet" sections: light inside the dark theme, near-black inside the light theme */
.tone-alt {
  --bg: #f4f5f8; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #eceef4; --surface-3: #e1e5ee;
  --text: #0a0e1a; --mute: #4a5368; --faint: #707a92;
  --line: rgba(10, 14, 26, .1); --line-2: rgba(10, 14, 26, .2);
  --blue-hi: #1d4ed8; --blue-soft: rgba(37, 99, 255, .1); --glow: rgba(37, 99, 255, .22);
}
html[data-theme="light"] .tone-alt {
  --bg: #080a10; --bg-2: #0a0d14; --surface: #10141c; --surface-2: #161b25; --surface-3: #1e2430;
  --text: #f4f6fb; --mute: #a3acc0; --faint: #717a90;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .17);
  --blue-hi: #7da2ff; --blue-soft: rgba(37, 99, 255, .14); --glow: rgba(37, 99, 255, .38);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 28px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .35s; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.h1 { font: 600 clamp(2.5rem, 4.4vw + .4rem, 4.5rem)/1.02 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.h2 { font: 600 clamp(2rem, 3.1vw + .5rem, 3.4rem)/1.06 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.h3 { font: 600 clamp(1.5rem, 1.6vw + .7rem, 2.1rem)/1.12 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.h4 { font: 600 1.125rem/1.3 var(--sans); letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); line-height: 1.5; color: var(--mute); text-wrap: pretty; }
.muted { color: var(--mute); }
.fine { font-size: .875rem; color: var(--faint); }
.eyebrow, .tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mute);
  font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.tag--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
code { font: .9em var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--surface-2); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font: 600 1rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .3s; }
.btn:hover { background: var(--blue-press); border-color: var(--blue-press); box-shadow: 0 10px 30px -10px var(--glow); }
.btn:active { transform: scale(.98); }
.btn .arr { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .arr, .tlink:hover .arr { transform: translateX(4px); }
.btn--line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--line:hover { background: var(--surface-2); border-color: var(--blue-hi); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--play::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-hi); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.tlink:hover { border-color: currentColor; }
.tlink .arr { width: 15px; height: 15px; transition: transform .3s var(--ease); }

/* ---------- navigation: slim dark glass bar in both themes (the logo is white) ---------- */
.nv { position: fixed; left: 0; right: 0; top: 0; z-index: 110; padding: 10px var(--pad) 0; pointer-events: none; transition: transform .45s var(--ease); }
.nv.is-hidden { transform: translateY(-140%); }
.nv__in { pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--pad)); height: var(--nav-h); margin: 0 auto; padding: 0 10px 0 16px; display: flex; align-items: center; gap: 18px;
  border-radius: 14px; background: rgba(9, 11, 17, .72); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9); color: #f4f6fb; }
html[data-theme="light"] .nv__in { background: rgba(11, 14, 22, .9); }
.nv__logo { flex: none; display: block; width: 64px; height: 44px; overflow: hidden; border-radius: 6px; }
.nv__logo img { width: 64px; height: 64px; margin-top: -10px; object-fit: contain; }
.nv__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nv__links a { padding: 9px 12px; border-radius: 8px; color: #c3cbdc; font-size: .9375rem; text-decoration: none; transition: color .2s, background .2s; }
.nv__links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nv__links a[aria-current="page"] { color: #fff; }
.nv__end { display: flex; align-items: center; gap: 8px; }
.nv__login { padding: 9px 12px; color: #c3cbdc; font-size: .9375rem; text-decoration: none; border-radius: 8px; }
.nv__login:hover { color: #fff; }
.theme-toggle { display: inline-grid; place-items: center; flex: none; position: relative; width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #dfe5f2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.theme-toggle svg { grid-area: 1 / 1; display: block; transition: transform .35s var(--ease), opacity .25s; }
.theme-toggle:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; }
html[data-theme="dark"] .theme-toggle__sun, html[data-theme="light"] .theme-toggle__moon, html:not([data-theme]) .theme-toggle__sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
.nv__burger { display: none; width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; cursor: pointer; }
.nv__burger i, .nv__burger i::before { display: block; width: 16px; height: 1.5px; margin: 0 auto; background: currentColor; transition: transform .3s var(--ease); }
.nv__burger i::before { content: ""; transform: translateY(5px); }
.nv__burger i { transform: translateY(-2.5px); }
.nv__burger[aria-expanded="true"] i { transform: rotate(45deg); }
.nv__burger[aria-expanded="true"] i::before { transform: rotate(-90deg); }
.drawer { position: fixed; inset: 0; z-index: 105; padding: calc(var(--nav-h) + 34px) var(--pad) 28px; background: rgba(6, 8, 13, .97); color: #f4f6fb; display: flex; flex-direction: column; gap: 22px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; overflow-y: auto; }
.drawer.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 600 1.5rem/1.2 var(--sans); letter-spacing: -.02em; text-decoration: none; }
.drawer nav a .arr { width: 18px; height: 18px; color: #7da2ff; }
.drawer__alt { display: flex; flex-direction: column; gap: 12px; }
.drawer__alt a:not(.btn) { color: #c3cbdc; text-decoration: none; padding: 6px 2px; }
@media (max-width: 940px) {
  .nv__links, .nv__login { display: none; }
  .nv__end { margin-left: auto; }
  .nv__burger { display: block; }
}
@media (max-width: 420px) { .nv__end .btn { display: none; } }

/* ---------- reveal system ---------- */
.i0 { --i: 0; } .i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; } .i6 { --i: 6; }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); }
.split.is-in .w > span { transform: none; }
html.no-js .rv, html.no-js .split .w > span { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 34px) 0 34px; min-height: 100svh; display: flex; align-items: center; overflow: clip; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 55% at 72% 46%, rgba(37, 99, 255, .16), transparent 70%), radial-gradient(40% 40% at 12% 0, rgba(37, 99, 255, .1), transparent 70%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 50%, #000 0, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 50%, #000 0, transparent 75%); opacity: .7; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(350px, .66fr) 1.6fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.hero__sub { font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); line-height: 1.45; color: var(--mute); }
.hero__sub b { color: var(--text); font-weight: 500; }
.hero__stage { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__req { display: none; }
.hero .ws { width: 110%; }
.hero__ctl { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding-left: 17.5%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 20px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); font: 500 .875rem/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); border-color: var(--blue-hi); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip__bar { width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .35; overflow: hidden; }
.chip.is-live .chip__bar { opacity: 1; background: var(--line-2); }
.chip.is-live .chip__bar::after { content: ""; display: block; height: 100%; background: var(--blue-hi); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .4s linear; }
.chip[aria-pressed="true"] .chip__bar::after { background: #fff; }
.hero__assemble { position: absolute; inset: 0; z-index: 8; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3%; padding: 9% 7% 7%; background: radial-gradient(80% 80% at 50% 30%, #121a33, #080a10 75%); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.hero__assemble.is-on { opacity: 1; visibility: visible; transition: opacity .5s; }
.hero__assemble figure { position: relative; margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(125, 162, 255, .45); box-shadow: 0 14px 30px -14px #000, 0 0 30px -12px rgba(37, 99, 255, .9);
  opacity: 0; transform: translateY(26%) scale(.8) rotate(var(--rot, 0deg)); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.hero__assemble.is-on figure { opacity: 1; transform: none; }
.hero__assemble img { width: 100%; height: 100%; object-fit: cover; }
.hero__assemble figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14% 6% 4%; background: linear-gradient(transparent, rgba(6, 8, 13, .92)); color: #fff; font: 600 clamp(.6rem, 1vw, .8rem)/1.2 var(--sans); }
.hero__assemble p { position: absolute; left: 0; right: 0; top: 3%; text-align: center; color: #c9d8ff; font: 500 clamp(.55rem, .9vw, .75rem)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
/* page-load choreography */
html.js .hero .mon__screen::before { content: ""; position: absolute; inset: 0; z-index: 9; background: #05060a; transform-origin: 50% 50%; transition: transform .7s var(--ease-io) .25s, opacity .5s .6s; pointer-events: none; }
html.js.is-ready .hero .mon__screen::before { transform: scaleY(0); opacity: 0; }
html.js .hero .mon--main { opacity: 0; transform: translateY(26px) scale(.965); transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
html.js .hero .mon--l { opacity: 0; transform: translateX(30%) rotateY(64deg) scale(.9); transition: opacity .8s var(--ease) .25s, transform 1.2s var(--ease) .25s; }
html.js .hero .mon--r { opacity: 0; transform: translateX(-30%) rotateY(-64deg) scale(.9); transition: opacity .8s var(--ease) .35s, transform 1.2s var(--ease) .35s; }
html.js.is-ready .hero .mon--main { opacity: 1; transform: none; }
html.js.is-ready .hero .mon--l { opacity: 1; transform: rotateY(26deg); }
html.js.is-ready .hero .mon--r { opacity: 1; transform: rotateY(-26deg); }
html.js .hero .ws__glow { opacity: 0; transition: opacity 1.4s .5s; }
html.js.is-ready .hero .ws__glow { opacity: .9; }
html.js .nv { opacity: 0; transition: opacity .6s .15s, transform .45s var(--ease); }
html.js.is-ready .nv { opacity: 1; }

/* ---------- section scaffolding ---------- */
.sec { position: relative; padding: clamp(72px, 9vw, 136px) 0; }
.sec--tight { padding: clamp(56px, 6vw, 96px) 0; }
.sec__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head--c { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.tone-alt { background: var(--bg); color: var(--text); border-radius: var(--r-xl); margin: 0 clamp(0px, 1.2vw, 16px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- scroll story ---------- */
.story { position: relative; }
.story__head { padding: clamp(64px, 8vw, 120px) 0 0; }
.story__track { position: relative; height: 470vh; }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-top: var(--nav-h); }
.story__grid { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(190px, .4fr) minmax(0, 1.5fr) minmax(190px, .4fr); gap: clamp(16px, 2.4vw, 40px); align-items: center; height: 100%; }
.story__grid::before, .story__grid::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--line) 20%, var(--line) 80%, transparent); }
.story__grid::before { left: calc(var(--pad) + (100% - 2 * var(--pad)) * .182); }
.story__grid::after { right: calc(var(--pad) + (100% - 2 * var(--pad)) * .182); }
.story__col { position: relative; height: 62%; }
.story__t, .story__d { position: absolute; left: 0; right: 0; top: 50%; display: flex; flex-direction: column; gap: 14px; opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 46px)); transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .5s; }
.story__t.is-on, .story__d.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .6s var(--ease) .1s, transform .8s var(--ease) .1s; }
.story__t.is-past, .story__d.is-past { transform: translateY(calc(-50% - 46px)); }
.story__d { color: var(--mute); font-size: .9875rem; }
.story__d ul { display: flex; flex-wrap: wrap; gap: 6px; }
.story__d li { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); font: 500 .6875rem/1.2 var(--mono); letter-spacing: .04em; color: var(--mute); }
.story__mid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.story__ws { width: 100%; transform: scale(var(--s, .8)); transform-origin: 50% 46%; transition: transform .9s var(--ease); will-change: transform; }
.story__req { position: relative; z-index: 4; width: min(100%, 560px); min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 20px 44px -26px #000, 0 0 40px -18px var(--glow); font-size: .9375rem; transition: transform .8s var(--ease), opacity .5s; }
.story__req span { flex: 1; min-width: 0; }
.story__req span:empty::before { content: "Tell it the job\2026"; color: var(--faint); }
.story__req i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: #fff; }
.story__req i svg { width: 14px; height: 14px; }
.story__files { position: absolute; left: 0; right: 0; top: 64px; z-index: 5; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.story__files span { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font: 500 .75rem/1 var(--mono); color: var(--mute); opacity: 0; transform: translateY(-18px); transition: opacity .45s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.story__files.is-on span { opacity: 1; transform: none; }
.story__files.is-in span { opacity: 0; transform: translateY(90px) scale(.6); }
.story__rail { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
.story__rail i { width: 44px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.story__rail i::after { content: ""; display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.story__pick { position: absolute; left: 50%; top: calc(var(--nav-h) + 18px); transform: translateX(-50%); z-index: 6; }
.story__flat { display: none; }
/* unpinned variant: phones, short viewports, reduced motion */
.story.is-flat .story__track { display: none; }
.story.is-flat .story__flat { display: grid; gap: 28px; padding: 36px 0 0; }
.sflat { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sflat__t { display: flex; flex-direction: column; gap: 10px; }
.sflat p { color: var(--mute); }

/* ---------- task gallery ---------- */
.gal__tabs { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gal__tabs::-webkit-scrollbar { display: none; }
.gal__grid { display: grid; grid-template-columns: minmax(250px, .46fr) minmax(0, 1.5fr); gap: clamp(18px, 2.4vw, 36px); align-items: start; }
.gal__list { display: flex; flex-direction: column; gap: 6px; }
.task { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.task:hover { border-color: var(--line-2); transform: translateX(3px); }
.task[aria-selected="true"] { border-color: var(--blue); background: var(--blue-soft); }
.task__n { grid-row: span 2; font: 500 .75rem/1 var(--mono); color: var(--faint); }
.task[aria-selected="true"] .task__n { color: var(--blue-hi); }
.task b { font-weight: 600; font-size: .9875rem; letter-spacing: -.01em; }
.task span { font-size: .8125rem; color: var(--mute); }
.gal__view { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gal__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gal__info div { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-height: 104px; }
.gal__info dt { margin-bottom: 6px; font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.gal__info dd { font-size: .9375rem; line-height: 1.45; }
.gal__status { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: .9rem; color: var(--mute); }
.gal__status b { color: var(--text); font-weight: 600; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: minmax(240px, .5fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 72px); padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.svc__copy { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; display: flex; flex-direction: column; gap: 16px; }
.svc__media { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.svc__panel { position: relative; padding: clamp(14px, 2.4vw, 34px) clamp(14px, 2.4vw, 34px) clamp(10px, 1.4vw, 18px); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); overflow: hidden; }
.svc__label { position: absolute; z-index: 5; padding: 5px 9px; border-radius: 6px; background: rgba(8, 10, 15, .82); border: 1px solid rgba(125, 162, 255, .5); color: #dbe5ff; font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.svc__label.is-on { opacity: 1; transform: none; }
.svc__label--a { left: 16px; top: 16px; } .svc__label--b { right: 16px; bottom: 54px; }
.svc__ctl { margin-top: 12px; }
.svc__ctl .pl__btn { width: 34px; height: 34px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(18px, 3vw, 44px); }
.feat { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.feat svg { grid-row: span 2; width: 18px; height: 18px; margin-top: 3px; color: var(--blue-hi); }
.feat b { font-weight: 600; }
.feat span { font-size: .9375rem; color: var(--mute); }

/* ---------- business memory ---------- */
.mem { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.mem__copy { display: flex; flex-direction: column; gap: 18px; }
.mem__big { font: 500 clamp(1.25rem, 1.2vw + .9rem, 1.7rem)/1.3 var(--sans); letter-spacing: -.02em; }
.mem__viz { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.memviz { position: relative; margin-top: 10px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: center; }
.memviz__col { display: flex; flex-direction: column; gap: 10px; }
.memviz__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; color: var(--mute); transition: border-color .4s, box-shadow .4s; }
.memviz__item b { color: var(--text); font-weight: 600; font-size: .9rem; }
.memviz__item.is-hot { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.memviz__wire { width: clamp(46px, 7vw, 96px); height: 190px; overflow: visible; }
.memviz__wire path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.memviz__wire .pulse { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 14 200; stroke-dashoffset: 14; opacity: 0; }
.memviz.is-run .memviz__wire .pulse { animation: wire 2.6s var(--ease-io) infinite; opacity: 1; }
.memviz.is-run .memviz__wire .pulse:nth-of-type(2) { animation-delay: .5s; } .memviz.is-run .memviz__wire .pulse:nth-of-type(3) { animation-delay: 1s; }
@keyframes wire { 0% { stroke-dashoffset: 14; } 100% { stroke-dashoffset: -200; } }

/* ---------- integrations ---------- */
.intg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 24px 40px -30px #000; }
.card__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-hi); }
.card__ico svg { width: 19px; height: 19px; }
.card p { color: var(--mute); font-size: .9375rem; }
.card__st { margin-top: auto; padding-top: 8px; font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-hi); }
.charge { margin-top: 14px; padding: 8px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.charge__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.charge__row:last-child { border-bottom: 0; }
.charge__row span:last-child { color: var(--blue-hi); }

/* ---------- work examples ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.work { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work figcaption { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.work figcaption b { font-weight: 600; }
.work figcaption span { font-size: .875rem; color: var(--mute); }
.work__tag { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(8, 10, 15, .8); border: 1px solid rgba(255, 255, 255, .16); color: #dfe5f2; font: 500 .625rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.runin { margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(200px, .4fr) 1fr; gap: 20px 48px; }
.runin p { font: 500 clamp(1.15rem, 1.4vw + .7rem, 1.75rem)/1.35 var(--sans); letter-spacing: -.02em; }
.runin p i { font-style: normal; color: var(--blue); padding: 0 .2em; }

/* ---------- pricing ---------- */
.price__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.plan-pick { margin: 0 0 16px; color: var(--mute); }
.plan-pick a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.plan:hover { border-color: var(--line-2); transform: translateY(-3px); }
.plan--mid { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--blue), rgba(125, 162, 255, .25) 45%, var(--line-2)) border-box; }
.plan__name { display: flex; align-items: center; gap: 10px; font: 600 1.375rem/1.2 var(--sans); letter-spacing: -.02em; }
.plan__for { color: var(--mute); font-size: .9375rem; min-height: 2.9em; }
.plan__cost { display: flex; align-items: baseline; gap: 8px; }
.plan__p { font: 600 clamp(2.6rem, 3vw + 1rem, 3.4rem)/1 var(--sans); letter-spacing: -.045em; }
.plan__p sup { font-size: .45em; vertical-align: .75em; margin-right: 2px; letter-spacing: 0; }
.plan__per { color: var(--faint); font-size: .9375rem; }
.plan__list { display: flex; flex-direction: column; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; }
.plan__list li { position: relative; padding-left: 24px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; background: no-repeat 50% / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%235b8cff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; }
.audit { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.audit > div { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(240px, .6fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 16px; }
.qa { border-top: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 2px; cursor: pointer; list-style: none; font: 500 clamp(1.05rem, .5vw + .95rem, 1.25rem)/1.3 var(--sans); letter-spacing: -.015em; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--blue-hi); }
.qa summary i { position: relative; flex: none; width: 16px; height: 16px; transition: transform .45s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: currentColor; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { transform: rotate(45deg); }
.qa.is-closing summary i { transform: none; }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 44px 24px 2px; color: var(--mute); max-width: 62ch; }

/* ---------- closing ---------- */
.close { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; overflow: hidden; padding: 0 0 clamp(48px, 6vw, 96px); }
.close__floor { position: absolute; left: -20%; right: -20%; top: -8%; height: 96%; perspective: 900px; pointer-events: none; -webkit-mask-image: linear-gradient(#000 30%, transparent 92%); mask-image: linear-gradient(#000 30%, transparent 92%); }
.close__tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; padding: 0 4%; transform: rotateX(58deg) translateY(-10%); transform-origin: 50% 100%; animation: floor 38s linear infinite; }
.close__tiles img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid rgba(125, 162, 255, .5); box-shadow: 0 0 34px -6px rgba(37, 99, 255, .75); opacity: .9; }
.close.is-paused .close__tiles { animation-play-state: paused; }
@keyframes floor { from { transform: rotateX(58deg) translateY(-34%); } to { transform: rotateX(58deg) translateY(0%); } }
.close__in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.close::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(transparent, var(--bg) 62%); z-index: 1; pointer-events: none; }

/* ---------- footer: dark in both themes ---------- */
.ft { position: relative; background: #05070b; color: #f4f6fb; border-top: 1px solid rgba(255, 255, 255, .08); padding: clamp(48px, 6vw, 80px) 0 28px;
  --text: #f4f6fb; --mute: #a3acc0; --faint: #717a90; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .17); --blue-hi: #7da2ff; }
.ft__grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 40px; }
.ft__brand { display: flex; flex-direction: column; gap: 14px; }
.ft__brand img { width: 120px; height: 120px; margin: -22px 0 -24px -18px; object-fit: contain; }
.ft__brand p { max-width: 30ch; color: var(--mute); }
.ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ft__h { margin-bottom: 14px; font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ft__cols ul { display: flex; flex-direction: column; gap: 10px; }
.ft__cols a { color: #d5dbe9; text-decoration: none; font-size: .9375rem; transition: color .2s; }
.ft__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft__bot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--faint); font-size: .875rem; }
.ft__bot a { color: #d5dbe9; }

/* ---------- guide assistant (static/pub/public-ui.js): hidden until asked for ---------- */
.help { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(12, 15, 22, .92); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8), 0 0 0 0 var(--glow); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.help:hover { transform: translateY(-2px); border-color: var(--blue-hi); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8), 0 0 24px -4px var(--glow); }
.help svg { width: 20px; height: 20px; }
html.guide-on .help { display: none; }
html:not(.guide-on) .mm-dock, html:not(.guide-on) .mm-particles { display: none !important; }

/* ---------- inner pages ---------- */
.phead { padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(40px, 5vw, 72px); }
.phead .wrap { display: flex; flex-direction: column; gap: 20px; }
.phead .lead { max-width: 60ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.step { counter-increment: st; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before { content: "0" counter(st); font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: var(--blue-hi); }
.step p { color: var(--mute); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svcs .card ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.svcs .card li { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); font: 500 .6875rem/1.2 var(--mono); letter-spacing: .04em; color: var(--mute); }
.contact { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-top: 1px solid var(--line); font: 600 clamp(1.3rem, 1.6vw + .8rem, 2rem)/1.2 var(--sans); letter-spacing: -.025em; text-decoration: none; transition: color .2s; }
.contact:hover { color: var(--blue-hi); }
.contact small { font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 14px; color: var(--mute); }
.prose h2 { margin-top: 22px; color: var(--text); font: 600 1.375rem/1.25 var(--sans); letter-spacing: -.02em; }
.prose a { color: var(--blue-hi); }
.prose ul { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); }
.prose h3 { margin-top: 8px; color: var(--text); font: 600 1.0625rem/1.3 var(--sans); }
.prose pre { margin: 0; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: .875rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.prose pre.wide { white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.prose .tbl { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }

/* ---------- local preview stub + scene lab ---------- */
.stub { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.stub__box { max-width: 560px; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.lab__wrap { max-width: 1040px; margin: 0 auto; padding: 28px var(--pad) 80px; display: flex; flex-direction: column; gap: 16px; }
.lab__note { color: var(--mute); font-size: .9375rem; max-width: 80ch; }
.lab__nav { display: flex; flex-wrap: wrap; gap: 6px; }
.lab__nav a { padding: 6px 11px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--mute); font-size: .8125rem; text-decoration: none; }
.lab__nav a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.lab__mon { width: var(--lab-w, 100%); max-width: 100%; margin: 8px auto; }
.lab__meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .9375rem; }
.lab__meta dt { color: var(--faint); font: 500 .6875rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 44px); }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__copy { max-width: 640px; }
  .gal__grid { grid-template-columns: 1fr; }
  .gal__list { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
  .gal__list::-webkit-scrollbar { display: none; }
  .task { flex: none; width: auto; max-width: 250px; scroll-snap-align: start; }
  .task:hover { transform: none; }
  .svc, .mem, .faq { grid-template-columns: 1fr; }
  .svc__copy, .faq__side { position: static; }
  .intg, .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .plan__for { min-height: 0; }
  .ft__grid { grid-template-columns: 1fr; }
  .runin { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero__req { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font-size: .9rem; min-height: 62px; }
  .hero__req b { flex: none; color: var(--blue-hi); font: 500 .6875rem/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .hero .mon--side { display: none; }
  .hero .mon--main { width: 100%; }
  .hero .ws { width: 100%; }
  .hero__ctl { padding-left: 0; }
  .mon__neck, .mon__base { display: none; }
  .ws__desk { display: none; }
  .gal__info, .intg, .works, .feats, .two, .svcs { grid-template-columns: 1fr; }
  .gal__info div { min-height: 0; }
  .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memviz { grid-template-columns: 1fr; gap: 10px; }
  .memviz__wire { display: none; }
  .tone-alt { margin: 0; border-radius: 20px; }
  .close { min-height: 78svh; }
  .close__tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .qa__a p { padding-right: 8px; }
  .price__top { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .split .w > span { transition-duration: .01s !important; transition-delay: 0s !important; }
  .close__tiles { animation: none; transform: rotateX(58deg) translateY(-12%); }
  .memviz.is-run .memviz__wire .pulse { animation: none; opacity: 0; }
  html.js .hero .mon, html.js .hero .mon__screen::before, html.js .nv { transition-duration: .01s !important; transition-delay: 0s !important; }
  .story__ws, .story__t, .story__d { transition-duration: .01s !important; }
}

