/* =====================================================================
   Triple i website prototype: design system + page styles
   Layout: 12-col editorial grid (max 1360), asymmetric 5/7 + 4/8 splits,
   left-aligned section heads with a mono "rail" label. Motifs: receipt
   tear edge, the logo's three interlocking loops, family colour coding.
   ===================================================================== */
:root {
  /* ground + ink (thermal-paper grey-white, blue-biased ink) */
  --bg: #F1F2EE;
  --bg-2: #E6E8E2;
  --surface: #FFFFFF;
  --surface-2: #F7F8F5;
  --ink: #0C0F14;
  --ink-2: #353B45;
  --muted: #5E6570;
  --line: #D4D7CF;
  --line-2: #BEC2B9;
  /* brand (exact values from the vector logo) */
  --red: #DE5235;
  --amber: #D48538;
  --blue: #2790B1;
  --cyan: #2FC0D0;
  --green: #88B341;
  --lime: #A2B657;
  /* text-safe brand tones on the light ground */
  --red-ink: #B33A1F;
  --blue-ink: #1B6E8A;
  --green-ink: #4C7019;
  /* always-dark band */
  --night: #0A0E14;
  --night-2: #111722;
  --night-3: #1A2230;
  --night-line: #253042;
  --night-fg: #EEF0EA;
  --night-muted: #9AA3B0;
  /* semantic */
  --ok: #3F8F3A;
  --warn: #C98A12;
  --bad: #C8402A;
  --focus: #2790B1;
  /* type */
  --f-display: "Saira", "Hind Siliguri", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", "Hind Siliguri", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-bn: "Hind Siliguri", "Instrument Sans", sans-serif;
  --t-xs: 12px; --t-sm: 14px; --t-base: 16px; --t-md: 18px;
  --t-lg: clamp(19px, 1.5vw, 22px);
  --t-xl: clamp(24px, 2.3vw, 32px);
  --t-2xl: clamp(32px, 3.9vw, 54px);
  --t-3xl: clamp(40px, 6vw, 88px);
  --t-hero: clamp(46px, 7.4vw, 118px);
  /* shape + motion */
  --r-sm: 4px; --r: 8px; --r-lg: 14px;
  --ease: cubic-bezier(.2,.7,.1,1);
  --ease-in-out: cubic-bezier(.7,0,.2,1);
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --header-h: 72px;
  --shadow: 0 1px 0 rgba(12,15,20,.04), 0 12px 32px -12px rgba(12,15,20,.18);
  --shadow-lg: 0 2px 0 rgba(12,15,20,.04), 0 40px 80px -30px rgba(12,15,20,.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E12; --bg-2: #11151B; --surface: #151A21; --surface-2: #1A2029;
    --ink: #EDEFEA; --ink-2: #C4C9D0; --muted: #949CA7; --line: #252C36; --line-2: #343C48;
    --red-ink: #F07D62; --blue-ink: #5CC2E2; --green-ink: #AACF6C;
    --night: #05070A; --night-2: #0D1118; --night-3: #151B25; --night-line: #222B39;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 0 rgba(0,0,0,.3), 0 40px 80px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E12; --bg-2: #11151B; --surface: #151A21; --surface-2: #1A2029;
  --ink: #EDEFEA; --ink-2: #C4C9D0; --muted: #949CA7; --line: #252C36; --line-2: #343C48;
  --red-ink: #F07D62; --blue-ink: #5CC2E2; --green-ink: #AACF6C;
  --night: #05070A; --night-2: #0D1118; --night-3: #151B25; --night-line: #222B39;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 0 rgba(0,0,0,.3), 0 40px 80px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-base); line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; font-variation-settings: "wdth" 108; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.bn { font-family: var(--f-bn); }
.mono { font-family: var(--f-mono); font-variation-settings: "wdth" 90; letter-spacing: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 10vw, 148px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }

/* rail label: true-information eyebrow (section topic + count where real) */
.rail { display: block; font-family: var(--f-mono); line-height: 1.6; font-size: 11.5px; font-variation-settings: "wdth" 88; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rail::before { content: ""; display: inline-block; vertical-align: middle; width: 18px; height: 2px; margin: -2px 10px 0 0; background: currentColor; }
.rail[data-c="red"]::before { background: var(--red); }
.rail[data-c="blue"]::before { background: var(--blue); }
.rail[data-c="green"]::before { background: var(--green); }
.rail b { color: var(--ink); font-weight: 500; }

.shead { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 20px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.shead .rail { grid-column: 1 / -1; }
.shead h2 { grid-column: 1 / span 8; font-size: var(--t-2xl); }
.shead p { grid-column: 9 / span 4; color: var(--ink-2); font-size: var(--t-md); max-width: 44ch; }
@media (max-width: 900px) { .shead h2, .shead p { grid-column: 1 / -1; } }

.lead { font-size: var(--t-lg); line-height: 1.45; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg); --b-arrow: var(--red);
  position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 50px;
  padding: 0 8px 0 22px; border-radius: var(--r-sm); background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 15px; letter-spacing: .005em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--b-arrow); transform: scaleX(0); transform-origin: right center; transition: transform .55s var(--ease); z-index: -1; }
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover { color: var(--ink); }
.btn .arr { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 3px; background: var(--b-arrow); color: var(--ink); transition: background .35s, transform .5s var(--ease); flex: none; }
.btn:hover .arr { background: var(--ink); color: var(--b-arrow); }
.btn .arr svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover .arr svg { transform: translateX(3px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost .arr { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover .arr { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn--ghost::before { background: var(--bg-2); }
.btn--light { --b-bg: var(--night-fg); --b-fg: var(--night); }
.btn--sm { min-height: 40px; padding: 0 6px 0 16px; font-size: 14px; gap: 10px; }
.btn--sm .arr { width: 28px; height: 28px; }
.btn--plain { padding: 0 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 14px; }
.link-arrow svg { width: 14px; height: 14px; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 3px; font-size: 13px; font-weight: 500; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
button.chip { cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
button.chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.code { display: inline-grid; place-items: center; min-width: 44px; height: 24px; padding: 0 7px; border-radius: 3px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; font-variation-settings: "wdth" 85; background: var(--fam, var(--ink)); color: #fff; }
.code[data-f="commerce"] { --fam: var(--red); }
.code[data-f="ops"] { --fam: var(--blue); }
.code[data-f="inst"] { --fam: var(--green); color: var(--ink); }
.code[data-f="ai"] { --fam: var(--ink); }
:root[data-theme="dark"] .code[data-f="ai"] { color: var(--bg); }
.draft { display: inline-block; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 3px; background: repeating-linear-gradient(-45deg, rgba(212,133,56,.18) 0 6px, transparent 6px 12px); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(212,133,56,.55); vertical-align: middle; }

/* ---------- header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 92%, transparent); transition: box-shadow .3s, background .3s, transform .45s var(--ease); }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line); background: var(--bg); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr-logo { display: flex; align-items: center; height: 40px; flex: none; color: var(--ink); }
.hdr-logo .ti-lockup { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: clamp(8px, 3vw, 40px); }
.nav > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 3px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--bg-2); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-left: 2px; }
.nav-link svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 3px; color: var(--ink-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.lang { display: inline-flex; height: 32px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; font-size: 12.5px; font-weight: 600; }
.lang button { padding: 0 10px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.burger { display: none; }

/* mega menu */
.mega { position: absolute; left: 50%; top: calc(100% - 6px); width: min(1120px, calc(100vw - 48px)); transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 28px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) minmax(0, 1.15fr); gap: 28px; }
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.mega h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-variation-settings: "wdth" 88; display: flex; align-items: center; gap: 8px; }
.mega h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mega-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px; margin-inline: -10px; border-radius: var(--r-sm); transition: background .2s; }
.mega-item:hover { background: var(--bg); }
.mega-item .code { grid-row: span 2; align-self: start; margin-top: 2px; }
.mega-item strong { font-size: 14.5px; font-weight: 600; }
.mega-item > span:not(.code) { font-size: 13px; color: var(--muted); line-height: 1.35; }
.mega-feature { border-radius: var(--r); background: var(--night); color: var(--night-fg); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.mega-feature .ti-mark { width: 120px; position: absolute; right: -24px; bottom: -18px; opacity: .9; }
.mega-feature p { color: var(--night-muted); font-size: 14px; max-width: 30ch; }
.mega-feature strong { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.05; font-variation-settings: "wdth" 108; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.drop { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; padding: 10px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .25s; }
.drop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; }
.drop a:hover { background: var(--bg); }
.drop a span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--gutter); display: flex; flex-direction: column; gap: 24px; overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease-in-out), visibility 0s .6s; }
.mnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; }
.mnav-top .ti-lockup { height: 30px; width: auto; color: var(--ink); }
.mnav-links a { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: 40px; font-weight: 600; line-height: 1.15; padding-block: 6px; border-bottom: 1px solid var(--line); font-variation-settings: "wdth" 108; }
.mnav-links a small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-weight: 400; }
.mnav-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mnav-prods a { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 8px 0; }

@media (max-width: 1080px) {
  .nav, .hdr-tools .lang, .hdr-tools .btn { display: none; }
  .burger { display: grid; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 48px; align-items: center; }
.hero-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-title { font-size: var(--t-hero); line-height: .9; letter-spacing: -0.035em; font-weight: 650; font-variation-settings: "wdth" 112; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .ln > span { display: inline-block; }
.hero-title em { font-style: normal; position: relative; white-space: nowrap; }
.hero-title .t-run { color: var(--red); }
.hero-title .t-build { color: var(--blue); }
:root[data-theme="dark"] .hero-title .t-build { color: var(--cyan); }
.hero-sub { font-size: var(--t-lg); color: var(--ink-2); max-width: 54ch; line-height: 1.45; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 600; font-family: var(--f-display); font-size: 20px; margin-right: 6px; font-variation-settings: "wdth" 105; }
.hero-stage { grid-column: 8 / span 5; position: relative; min-width: 0; }
@media (max-width: 1000px) { .hero-copy, .hero-stage { grid-column: 1 / -1; } .hero-stage { max-width: 560px; } }

/* POS terminal + receipt (hero signature) */
.counter { position: relative; padding-bottom: 250px; }
.term { position: relative; z-index: 2; background: var(--night); color: var(--night-fg); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-lg); }
.term-tabs { display: flex; gap: 4px; padding: 4px; background: var(--night-2); border-radius: var(--r); margin-bottom: 12px; }
.term-tabs button { flex: 1; height: 34px; border-radius: 5px; font-size: 12.5px; font-weight: 600; color: var(--night-muted); transition: color .25s, background .25s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.term-tabs button[aria-selected="true"] { background: var(--night-3); color: var(--night-fg); box-shadow: inset 0 0 0 1px var(--night-line); }
.term-tabs button i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .9; }
.term-screen { background: var(--night-2); border-radius: var(--r); padding: 14px 14px 12px; min-height: 286px; display: flex; flex-direction: column; }
.term-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 10.5px; color: var(--night-muted); font-variation-settings: "wdth" 85; padding-bottom: 10px; border-bottom: 1px dashed var(--night-line); }
.term-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.term-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.term-store { font-family: var(--f-display); font-size: 17px; font-weight: 600; margin: 10px 0 8px; font-variation-settings: "wdth" 104; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.term-store small { font-family: var(--f-mono); font-size: 10px; font-weight: 400; color: var(--night-muted); font-variation-settings: "wdth" 85; }
.term-lines { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-height: 150px; }
.term-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 7px 8px; border-radius: 4px; animation: lineIn .45s var(--ease) both; }
.term-line.is-new { background: rgba(47,192,208,.12); }
.term-line .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-line .nm small { display: block; font-family: var(--f-mono); font-size: 9.5px; color: var(--night-muted); font-variation-settings: "wdth" 85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-line .q { font-family: var(--f-mono); font-size: 11px; color: var(--night-muted); font-variation-settings: "wdth" 85; }
.term-line .a { font-family: var(--f-mono); font-size: 12px; font-variation-settings: "wdth" 88; font-variant-numeric: tabular-nums; }
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); } }
.term-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--night-line); margin-top: 8px; }
.term-total small { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--night-muted); font-variation-settings: "wdth" 85; }
.term-total strong { white-space: nowrap; font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; font-variation-settings: "wdth" 104; }
.term-pay { display: flex; gap: 6px; }
.term-pay span { height: 30px; padding: 0 10px; border-radius: 4px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--night-3); color: var(--night-muted); transition: background .3s, color .3s; }
.term-pay span.is-on { background: var(--c, var(--red)); color: #fff; }
.term-scan { position: absolute; left: 14px; right: 14px; top: 140px; height: 2px; background: var(--red); box-shadow: 0 0 18px 4px rgba(222,82,53,.55); opacity: 0; pointer-events: none; }
.term-slot { position: relative; z-index: 3; height: 12px; margin: -6px 26px 0; border-radius: 0 0 6px 6px; background: #000; }
.receipt-wrap { position: absolute; z-index: 1; left: 48px; right: 48px; top: calc(100% - 262px); height: 290px; overflow: hidden; pointer-events: none; }
.receipt { --paper: #FBFBF7; position: relative; background: var(--paper); color: #1A1C1F; font-family: var(--f-mono); font-size: 10.5px; font-variation-settings: "wdth" 82; line-height: 1.55; padding: 16px 18px 22px; transform: translateY(-100%); box-shadow: 0 18px 30px -18px rgba(0,0,0,.35); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--paper) 6px) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 6px) 0 0 / 12px 10px repeat-x; }
.receipt .rc-c { text-align: center; }
.receipt .rc-h { font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.receipt .rc-hr { border-top: 1px dashed #9a9a92; margin: 6px 0; }
.receipt .rc-row { display: flex; justify-content: space-between; gap: 10px; }
.receipt .rc-row span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.receipt .rc-tot { font-weight: 600; font-size: 12px; }
.receipt .rc-bn { font-family: var(--f-bn); font-size: 12px; }
.receipt .rc-bar { height: 26px; margin-top: 8px; background: repeating-linear-gradient(90deg, #1A1C1F 0 2px, transparent 2px 3px, #1A1C1F 3px 4px, transparent 4px 7px, #1A1C1F 7px 10px, transparent 10px 11px); }
.counter-note { position: absolute; z-index: 4; left: -18px; bottom: 26px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line); font-size: 12.5px; max-width: 220px; }
.counter-note b { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; font-variation-settings: "wdth" 88; }
.counter-note .sync { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.counter-note .sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(63,143,58,.18); }
@media (max-width: 1000px) { .counter-note { left: auto; right: 0; } }
@media (max-width: 600px) { .counter-note { display: none; } .term-store { flex-direction: column; align-items: flex-start; gap: 2px; } .counter { padding-bottom: 230px; } }
@media (max-width: 520px) { .term-tabs button { font-size: 11.5px; gap: 4px; } .term-tabs button i { display: none; } .receipt-wrap { left: 24px; right: 24px; } .term-line .q { display: none; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--bg); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: mq 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.has-motion .marquee-track { animation: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; white-space: nowrap; font-variation-settings: "wdth" 106; letter-spacing: -.01em; }
.marquee-item .bn { font-family: var(--f-bn); font-weight: 500; color: var(--muted); font-size: .78em; }
.marquee-item .sep { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.door { position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 460px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; transition: transform .6s var(--ease); }
.door--prod { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.door--svc { background: var(--night); color: var(--night-fg); }
.door .rail { color: inherit; opacity: .75; }
.door h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; max-width: 13ch; }
.door p { max-width: 42ch; font-size: var(--t-md); opacity: .85; }
.door-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.door--svc .chip { background: var(--night-2); color: var(--night-fg); box-shadow: inset 0 0 0 1px var(--night-line); }
.door-go { position: absolute; top: clamp(24px, 3vw, 44px); right: clamp(24px, 3vw, 44px); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px currentColor; transition: background .4s, color .4s, transform .6s var(--ease); }
.door-go svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .5s var(--ease); }
.door:hover .door-go { background: var(--red); color: var(--ink); box-shadow: none; }
.door--svc:hover .door-go { background: var(--cyan); }
.door:hover .door-go svg { transform: rotate(0); }
.door-art { position: absolute; right: -70px; bottom: -90px; width: 44%; z-index: -1; opacity: .95; transition: transform 1s var(--ease); }
.door--prod .door-list { max-width: 64%; }
.door p { position: relative; }
.door:hover .door-art { transform: translate(-10px, -10px) rotate(-4deg); }
.door-stack { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-variation-settings: "wdth" 85; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door { min-height: 380px; } }

/* ---------- suite map ("ten products, one knot") ---------- */
.suite { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 40px; align-items: center; }
.suite-list { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.suite-fam h3 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-variation-settings: "wdth" 88; }
.suite-fam h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.suite-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .3s; }
.suite-item:hover, .suite-item.is-hot { padding-left: 14px; background: var(--surface); }
.suite-item strong { font-size: 17px; font-weight: 600; }
.suite-item > span:not(.code) span { font-size: 13.5px; color: var(--muted); display: block; line-height: 1.35; }
.suite-item svg { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.suite-item:hover svg { opacity: 1; transform: none; }
.suite-map { grid-column: 6 / span 7; position: relative; aspect-ratio: 1 / .94; max-width: 100%; }
.suite-map svg { width: 100%; height: 100%; overflow: visible; }
.knot-ring { fill: none; stroke-width: 2; transition: stroke-width .4s, opacity .4s; }
.knot-band { fill: none; stroke-width: 34; opacity: .1; transition: opacity .4s; }
.knot-node circle { transition: r .35s var(--ease), fill .3s; }
.knot-node text { font-family: var(--f-body); font-size: 13px; font-weight: 600; fill: var(--ink); }
.knot-node text.k-code { font-family: var(--f-mono); font-size: 9px; font-weight: 500; fill: var(--muted); letter-spacing: .06em; }
.knot-node { cursor: pointer; }
.knot-node:hover circle.k-dot, .knot-node.is-hot circle.k-dot { r: 11; }
.suite-map.has-hot .knot-node:not(.is-hot) { opacity: .35; }
.suite-map.has-hot .knot-band:not(.is-hot) { opacity: .04; }
.suite-map.has-hot .knot-band.is-hot { opacity: .2; }
.knot-node { transition: opacity .35s; }
@keyframes knotPulse { from { r: 50; stroke-opacity: .35; } to { r: 86; stroke-opacity: 0; } }
.knot-pulse { stroke-width: 2; animation: knotPulse 2.6s var(--ease) infinite; }
@media (max-width: 640px) { .knot-node:not(.knot-core) text { font-size: 21px; } .knot-node:not(.knot-core) text.k-code { display: none; } }
.knot-core text { font-family: var(--f-display); font-weight: 600; fill: var(--ink); font-variation-settings: "wdth" 108; }
@media (max-width: 1000px) { .suite-list, .suite-map { grid-column: 1 / -1; } .suite-map { order: -1; max-width: 620px; justify-self: center; width: 100%; } }

/* ---------- follow one sale (stacked by default, pinned story when .is-pinned) ---------- */
.flow { background: var(--bg-2); padding-block: clamp(72px, 10vw, 140px); }
.flow-pin { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 18px; }
.flow-steps, .flow-stage { display: contents; }
.flow-title { grid-column: 1 / -1; order: 0; }
.flow-step { grid-column: 1 / -1; padding: 6px 0 6px 22px; border-left: 2px solid var(--c, var(--red)); }
.flow-step .t { font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-variation-settings: "wdth" 88; display: flex; gap: 10px; align-items: center; }
.flow-step h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 8px 0 6px; }
.flow-step p { color: var(--ink-2); max-width: 46ch; font-size: 15px; }
.flow-card { grid-column: 1 / -1; position: relative; margin-bottom: 36px; }
.flow-amount, .flow-progress { display: none; }
.flow.is-pinned { padding-block: 0; }
.flow.is-pinned .flow-pin { min-height: 100vh; align-items: center; padding-block: 90px 60px; row-gap: 0; }
.flow.is-pinned .flow-steps { display: block; grid-column: 1 / span 5; position: relative; min-width: 0; }
.flow.is-pinned .flow-stage { display: block; grid-column: 7 / span 6; position: relative; height: min(540px, 70vh); min-width: 0; }
.flow.is-pinned .flow-step { padding: 12px 0 12px 22px; border-left-color: var(--line-2); opacity: .4; transition: opacity .5s, border-color .5s; }
.flow.is-pinned .flow-step.is-on { opacity: 1; border-left-color: var(--c, var(--red)); }
.flow.is-pinned .flow-step h3 { font-size: clamp(20px, 1.8vw, 26px); margin: 6px 0 0; }
.flow.is-pinned .flow-step p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .4s, margin .4s; }
.flow.is-pinned .flow-step.is-on p { max-height: 140px; opacity: 1; margin-top: 8px; }
.flow.is-pinned .flow-card { position: absolute; inset: 0; margin: auto; height: fit-content; max-height: 100%; opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.flow.is-pinned .flow-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.flow.is-pinned .flow-card.is-past { opacity: 0; transform: translateY(-40px) scale(.97); }
.flow.is-pinned .flow-amount { display: flex; position: absolute; z-index: 5; top: -46px; right: 0; background: var(--ink); color: var(--bg); font-family: var(--f-mono); font-size: 11.5px; padding: 8px 12px; border-radius: var(--r-sm); font-variation-settings: "wdth" 88; gap: 10px; align-items: center; }
.flow-amount i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
.flow.is-pinned .flow-progress { display: block; position: absolute; left: 0; bottom: -34px; right: 0; height: 2px; background: var(--line-2); }
.flow-progress span { display: block; height: 100%; width: 0; background: var(--ink); }
.flow-card .app { max-width: 100%; }

/* ---------- app mock frame (shared by product UIs) ---------- */
.app { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); font-size: 13px; }
.app-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-bar .ttl { font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.app-bar .meta { margin-left: auto; font-family: var(--f-mono); font-size: 10px; color: var(--muted); font-variation-settings: "wdth" 85; }
.app-body { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.pos-ui { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 14px; }
@media (max-width: 640px) { .pos-ui { grid-template-columns: 1fr; } .app-body { grid-template-columns: 1fr; } .app-side { display: none; } .app-bar .meta { display: none; } .app-main { padding: 12px; } .kpi strong { font-size: 17px; } }
.app-side { background: var(--night); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.app-side .ti-mark { width: 26px; margin-bottom: 8px; }
.app-side i { width: 28px; height: 28px; border-radius: 6px; background: var(--night-2); display: block; }
.app-side i.on { background: var(--c, var(--red)); }
.app-main { padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.app-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-h h5 { margin: 0; font-family: var(--f-display); font-size: 18px; font-weight: 600; font-variation-settings: "wdth" 104; }
.app-h .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 3px; font-size: 11px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: rgba(63,143,58,.14); color: var(--ok); }
.pill--warn { background: rgba(201,138,18,.16); color: #9A6A08; }
.pill--bad { background: rgba(200,64,42,.13); color: var(--bad); }
.pill--blue { background: rgba(39,144,177,.14); color: var(--blue-ink); }
:root[data-theme="dark"] .pill--warn { color: #E5B048; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--warn { color: #E5B048; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.kpi { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; min-width: 0; }
.kpi small { display: block; font-size: 10.5px; color: var(--muted); font-family: var(--f-mono); font-variation-settings: "wdth" 85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { font-family: var(--f-display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 104; }
.kpi em { font-style: normal; font-size: 11px; color: var(--ok); margin-left: 4px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 10.5px; color: var(--muted); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); font-variation-settings: "wdth" 85; white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.m { font-family: var(--f-mono); font-size: 11px; font-variation-settings: "wdth" 85; }
.tbl tr.is-new td { animation: rowFlash 1.6s var(--ease); }
@keyframes rowFlash { 0% { background: rgba(47,192,208,.25); } 100% { background: transparent; } }
.bar-mini { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar-mini span { display: block; height: 100%; background: var(--c, var(--blue)); border-radius: 3px; }
.spark { width: 100%; height: 64px; }

/* ---------- POS family ---------- */
.posfam { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.posc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 420px; overflow: hidden; transition: transform .6s var(--ease), box-shadow .4s; }
.posc:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.posc .num { font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-variation-settings: "wdth" 85; display: flex; justify-content: space-between; }
.posc h3 { font-size: 26px; font-weight: 600; }
.posc p { font-size: 14.5px; color: var(--ink-2); }
.posc ul { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.posc li { display: flex; gap: 8px; align-items: baseline; }
.posc li::before { content: ""; width: 6px; height: 6px; flex: none; transform: translateY(-1px); border-radius: 1px; background: var(--c); }
.posc .posc-vis { margin-top: auto; height: 120px; border-radius: var(--r); background: var(--bg); position: relative; overflow: hidden; }
.posc .posc-go { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 1100px) { .posfam { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posfam { grid-template-columns: 1fr; } .posc { min-height: 0; } }

/* tiny visual vignettes inside POS cards */
.vg-scale { position: absolute; inset: 14px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--f-mono); font-variation-settings: "wdth" 85; }
.vg-scale .rd { font-size: 30px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.vg-scale .rd small { font-size: 12px; color: var(--muted); }
.vg-scale .ln { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.vg-exp { position: absolute; inset: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.vg-exp div { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.vg-exp .bar-mini { grid-column: 1 / -1; }
.vg-tables { position: absolute; inset: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vg-tables span { border-radius: 6px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; font-variation-settings: "wdth" 85; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.vg-tables span.busy { background: var(--red); color: #fff; box-shadow: none; }
.vg-tables span.bill { background: var(--amber); color: var(--ink); box-shadow: none; }
.vg-tiles { position: absolute; inset: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.vg-tiles .floor { aspect-ratio: 1; height: 96px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.vg-tiles .floor i { background: var(--line-2); border-radius: 1px; }
.vg-tiles .floor i.on { background: var(--c); }
.vg-tiles .calc { font-family: var(--f-mono); font-size: 11px; line-height: 1.7; font-variation-settings: "wdth" 85; }
.vg-tiles .calc b { font-size: 18px; font-weight: 500; display: block; }

/* ---------- LLM ask demo ---------- */
.ask { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 40px; align-items: start; }
.ask-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ask-copy h2 { font-size: var(--t-2xl); }
.ask-copy h2 .bn { font-weight: 600; color: var(--green-ink); font-size: .9em; }
.ask-qs { display: flex; flex-direction: column; gap: 8px; }
.ask-q { text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .4s var(--ease); }
.ask-q:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateX(4px); }
.ask-q[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--green); }
.ask-q span { display: flex; flex-direction: column; gap: 2px; }
.ask-q .bn { font-size: 16px; font-weight: 500; }
.ask-q small { font-size: 12.5px; color: var(--muted); }
.ask-q svg { width: 16px; height: 16px; flex: none; }
.chat { grid-column: 7 / span 6; min-width: 0; background: var(--night); color: var(--night-fg); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; min-height: 470px; }
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--night-line); font-size: 13px; }
.chat-top .ti-mark { width: 26px; }
.chat-top small { margin-left: auto; font-family: var(--f-mono); font-size: 10px; color: var(--night-muted); font-variation-settings: "wdth" 85; display: flex; align-items: center; gap: 6px; }
.chat-top small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; animation: lineIn .5s var(--ease) both; }
.msg--me { align-self: flex-end; background: var(--night-3); border-bottom-right-radius: 3px; font-family: var(--f-bn); font-size: 16px; }
.msg--ai { align-self: flex-start; background: transparent; box-shadow: inset 0 0 0 1px var(--night-line); border-bottom-left-radius: 3px; display: flex; flex-direction: column; gap: 10px; }
.msg--ai .bn { font-family: var(--f-bn); font-size: 15.5px; }
.msg--ai .src { font-family: var(--f-mono); font-size: 10px; color: var(--night-muted); font-variation-settings: "wdth" 85; display: flex; flex-wrap: wrap; gap: 6px; }
.msg--ai .src span { padding: 2px 6px; border-radius: 3px; background: var(--night-2); }
.msg-bars { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.msg-bars div { display: grid; grid-template-columns: minmax(96px, 150px) 1fr 76px; gap: 10px; align-items: center; }
.msg-bars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-bars i { height: 8px; border-radius: 2px; background: var(--green); display: block; transform-origin: left; animation: growX .9s var(--ease) both; }
.msg-bars b { font-family: var(--f-mono); font-weight: 400; font-size: 11px; text-align: right; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
@keyframes growX { from { transform: scaleX(0); } }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--night-muted); animation: typ 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 50% { transform: translateY(-4px); opacity: .4; } }
.chat-input { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.chat-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--night-fg); font-family: var(--f-bn); font-size: 15px; height: 38px; }
.chat-input input::placeholder { color: var(--night-muted); }
.chat-input button { height: 38px; padding: 0 14px; border-radius: 7px; background: var(--green); color: var(--ink); font-weight: 600; font-size: 13.5px; }
@media (max-width: 1000px) { .ask-copy, .chat { grid-column: 1 / -1; } }
@media (max-width: 520px) { .msg-bars div { grid-template-columns: 90px 1fr 58px; } }

/* ---------- dark band ---------- */
.band { background: var(--night); color: var(--night-fg); position: relative; }
.band .rail { color: var(--night-muted); }
.band .rail b { color: var(--night-fg); }
.band .lead, .band .shead p { color: var(--night-muted); }
.band .btn { --b-bg: var(--night-fg); --b-fg: var(--night); }
.band .btn--ghost { --b-bg: transparent; --b-fg: var(--night-fg); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.band .btn--ghost .arr { color: var(--night-fg); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.band .btn--ghost::before { background: var(--night-3); }
.band .btn--ghost:hover { color: var(--night-fg); }
.tear-top, .tear-bot { position: absolute; left: 0; right: 0; height: 14px; z-index: 2; pointer-events: none; }
.tear-top { top: -13px; background: linear-gradient(135deg, var(--night) 7px, transparent 7px) 0 0 / 14px 14px repeat-x, linear-gradient(-135deg, var(--night) 7px, transparent 7px) 0 0 / 14px 14px repeat-x; transform: scaleY(-1); }
.tear-bot { bottom: -13px; background: linear-gradient(135deg, var(--night) 7px, transparent 7px) 0 0 / 14px 14px repeat-x, linear-gradient(-135deg, var(--night) 7px, transparent 7px) 0 0 / 14px 14px repeat-x; }

/* services list (interactive rows) */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 32px; }
.svc-list { grid-column: 1 / span 7; border-top: 1px solid var(--night-line); }
.svc-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--night-line); cursor: pointer; position: relative; }
.svc-row h3 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; transition: transform .5s var(--ease), color .3s; color: var(--night-muted); }
.svc-row:hover h3, .svc-row.is-on h3 { transform: translateX(14px); color: var(--night-fg); }
.svc-row .tag { font-family: var(--f-mono); font-size: 10.5px; color: var(--night-muted); font-variation-settings: "wdth" 85; }
.svc-row::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cyan); transform: scale(0); transition: transform .4s var(--ease); }
.svc-row.is-on::before { transform: scale(1); }
.svc-detail { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.svc-detail .big { font-family: var(--f-display); font-size: 120px; line-height: .8; font-weight: 300; color: var(--night-3); font-variation-settings: "wdth" 100; }
.svc-detail p { color: var(--night-muted); font-size: var(--t-md); }
.svc-detail .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-detail .chip { background: var(--night-2); color: var(--night-fg); box-shadow: inset 0 0 0 1px var(--night-line); }
@media (max-width: 1000px) { .svc-list, .svc-detail { grid-column: 1 / -1; } .svc-detail { position: static; } .svc-detail .big { font-size: 72px; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--night-line); margin-top: clamp(56px, 7vw, 100px); }
.stat { padding: 28px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-family: var(--f-display); font-size: clamp(48px, 6vw, 92px); font-weight: 600; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 104; }
.stat > span { color: var(--night-muted); font-size: 14px; max-width: 22ch; }
.stats--light { border-color: var(--line); }
.stats--light .stat > span { color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

.process { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: clamp(56px, 7vw, 100px); counter-reset: step; }
.proc { position: relative; padding: 26px 22px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--night-line); }
.proc::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: var(--p, 0%); background: var(--cyan); transition: width 1.2s var(--ease); }
.proc .n { font-family: var(--f-mono); font-size: 11px; color: var(--cyan); font-variation-settings: "wdth" 85; }
.proc h4 { font-size: 22px; font-weight: 600; }
.proc p { font-size: 14.5px; color: var(--night-muted); }
.proc .dur { margin-top: 6px; font-family: var(--f-mono); font-size: 10.5px; color: var(--night-fg); font-variation-settings: "wdth" 85; }
.process--light .proc { border-color: var(--line); }
.process--light .proc::before { background: var(--blue); }
.process--light .proc .n { color: var(--blue-ink); }
.process--light .proc p { color: var(--ink-2); }
.process--light .proc .dur { color: var(--ink); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- work gallery ---------- */
.work-h { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter) var(--gutter-r); scrollbar-width: thin; padding-bottom: 12px; }
.work-h .case { scroll-snap-align: start; }
[data-work-h].is-pinned { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 90px 48px; }
[data-work-h].is-pinned .shead { margin-bottom: 36px; }
[data-work-h].is-pinned .work-h { overflow: visible; scroll-snap-type: none; }
.work-track { display: flex; gap: 16px; width: max-content; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.case { position: relative; width: clamp(290px, 30vw, 430px); flex: none; display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.case-art { aspect-ratio: 4 / 3.1; border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--night); }
.case-art svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.case:hover .case-art svg { transform: scale(1.05); }
.case-art .metric { position: absolute; left: 16px; bottom: 16px; background: var(--surface); color: var(--ink); border-radius: var(--r-sm); padding: 8px 12px; display: flex; flex-direction: column; }
.case-art .metric b { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1; font-variation-settings: "wdth" 104; }
.case-art .metric small { font-size: 11.5px; color: var(--muted); }
.case-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-variation-settings: "wdth" 85; text-transform: uppercase; letter-spacing: .04em; }
.case h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; }
.case p { font-size: 14.5px; color: var(--ink-2); max-width: 46ch; }
.case-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.case-stack span { font-size: 11.5px; padding: 2px 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px 18px; }
.work-grid .case { width: auto; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }


/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 32px; align-items: start; }
.quote-main { grid-column: 1 / span 9; position: relative; display: grid; }
.quote-main > .quote { grid-area: 1 / 1; }
.quote { margin: 0; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .6s, transform .8s var(--ease); }
.quote.is-on { opacity: 1; pointer-events: auto; transform: none; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; font-variation-settings: "wdth" 104; }
.quote blockquote::before { content: "\201C"; color: var(--red); }
.quote blockquote::after { content: "\201D"; color: var(--red); }
.quote figcaption { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; background: var(--c, var(--blue)); color: #fff; flex: none; }
.quote figcaption strong { display: block; }
.quote figcaption span { font-size: 13.5px; color: var(--muted); }
.quote-nav { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 6px; }
.quote-nav button { text-align: left; padding: 10px 0 10px 16px; border-left: 2px solid var(--line); font-size: 14px; color: var(--muted); transition: color .3s, border-color .3s; }
.quote-nav button[aria-selected="true"] { color: var(--ink); border-color: var(--red); }
@media (max-width: 900px) { .quote-main, .quote-nav { grid-column: 1 / -1; } .quote-nav { flex-direction: row; overflow-x: auto; } .quote-nav button { border-left: 0; border-top: 2px solid var(--line); padding: 10px 10px 0 0; white-space: nowrap; } }

/* ---------- CTA band ---------- */
.cta { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 36px; align-items: end; }
.cta h2 { grid-column: 1 / span 7; font-size: var(--t-3xl); line-height: .92; font-weight: 650; letter-spacing: -.035em; font-variation-settings: "wdth" 112; }
.cta-box { grid-column: 8 / span 5; background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cta-box label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-variation-settings: "wdth" 88; }
.cta-box .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cta-box .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.cta-box .row small { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .cta h2, .cta-box { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.ftr { background: var(--night); color: var(--night-fg); padding-top: clamp(64px, 8vw, 110px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); position: relative; overflow: hidden; }
.ftr-top { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 40px; }
.ftr-brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.ftr-brand .ti-lockup { width: 200px; height: auto; color: var(--night-fg); }
.ftr-brand p { color: var(--night-muted); max-width: 34ch; font-size: 14.5px; }
.ftr-col { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ftr-col h4 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--night-muted); margin-bottom: 4px; font-variation-settings: "wdth" 88; }
.ftr-col a { color: var(--night-fg); opacity: .82; transition: opacity .2s; }
.ftr-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ftr-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.office { padding: 20px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--night-line); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.office h5 { margin: 0; font-family: var(--f-display); font-size: 20px; font-weight: 600; font-variation-settings: "wdth" 106; }
.office .clock { font-family: var(--f-mono); font-size: 20px; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 90; text-align: right; }
.office .clock small { display: block; font-size: 10px; color: var(--night-muted); }
.office address { font-style: normal; color: var(--night-muted); grid-column: 1 / -1; line-height: 1.5; }
.office .contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; user-select: all; }
.ftr-big { margin-top: clamp(48px, 6vw, 90px); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ftr-big .ti-lockup { width: min(100%, 980px); height: auto; color: var(--night-fg); opacity: .96; }
.ftr-base { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--night-muted); }
.ftr-base nav { display: flex; gap: 18px; }
@media (max-width: 1000px) { .ftr-brand { grid-column: 1 / -1; } .ftr-col { grid-column: span 4; } }
@media (max-width: 640px) { .ftr-col { grid-column: span 6; } .ftr-offices { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.phero { padding-top: clamp(36px, 6vw, 84px); padding-bottom: clamp(40px, 6vw, 84px); }
.phero-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 28px; align-items: end; }
.phero .crumbs { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-variation-settings: "wdth" 88; text-transform: uppercase; letter-spacing: .06em; }
.phero .crumbs a:hover { color: var(--ink); }
.phero h1 { grid-column: 1 / span 9; font-size: var(--t-3xl); line-height: .92; font-weight: 650; letter-spacing: -.035em; font-variation-settings: "wdth" 112; }
.phero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.phero h1 .ln > span { display: inline-block; }
.phero .lead { grid-column: 1 / span 7; }
.phero .aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 900px) { .phero h1, .phero .lead, .phero .aside { grid-column: 1 / -1; } }

/* ---------- products page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-block: 18px; border-block: 1px solid var(--line); position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 10; background: var(--bg); }
.filters .lbl { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 8px; font-variation-settings: "wdth" 88; }
.filters .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 330px; overflow: hidden; transition: transform .55s var(--ease), box-shadow .3s, opacity .4s; }
.pcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.pcard.is-out { display: none; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; }
.pcard-top .fam { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-variation-settings: "wdth" 85; }
.pcard h3 { font-size: 26px; font-weight: 600; }
.pcard h3 small { display: block; font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 6px; font-variation-settings: "wdth" 100; line-height: 1.35; }
.pcard ul { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.pcard li { display: flex; gap: 8px; }
.pcard li::before { content: "+"; font-family: var(--f-mono); color: var(--fam-c, var(--muted)); }
.pcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pcard-foot .go { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ink); }
.pcard-foot svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.pcard:hover .pcard-foot svg { transform: translateX(4px); }
.pcard .stretch { position: absolute; inset: 0; z-index: 1; }
.pcard--wide { grid-column: span 2; background: var(--night); color: var(--night-fg); box-shadow: none; }
.pcard--wide ul, .pcard--wide h3 small, .pcard--wide .pcard-top .fam, .pcard--wide .pcard-foot { color: var(--night-muted); }
.pcard--wide .pcard-foot { border-color: var(--night-line); }
.pcard--wide .pcard-foot .go { color: var(--night-fg); }
.pcard--wide .code[data-f="ai"] { background: var(--night-fg); color: var(--night); }
.pcard--soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); box-shadow: none; border: 1.5px dashed var(--line-2); }
@media (max-width: 1000px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .catalog { grid-template-columns: 1fr; } .pcard--wide { grid-column: auto; } }

.bundles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.bundle { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.bundle h3 { font-size: 22px; font-weight: 600; }
.bundle p { font-size: 14px; color: var(--ink-2); }
.bundle .eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.bundle .who { margin-top: auto; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .bundles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bundles { grid-template-columns: 1fr; } }

.integr { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.integr div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 108px; transition: background .3s; }
.integr div:hover { background: var(--surface); }
.integr strong { font-family: var(--f-display); font-size: 19px; font-weight: 600; font-variation-settings: "wdth" 104; }
.integr span { font-size: 12.5px; color: var(--muted); }
.integr small { margin-top: auto; font-family: var(--f-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-variation-settings: "wdth" 85; }
@media (max-width: 1000px) { .integr { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 560px) { .integr { grid-template-columns: 1fr 1fr; } }

.why { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.why > div { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.why > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.why > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.why h3 { font-size: 22px; font-weight: 600; }
.why p { color: var(--ink-2); font-size: 15px; }
.why .ico { width: 40px; height: 40px; color: var(--c, var(--red)); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why > div, .why > div + div { padding-left: 0; border-left: 0; } }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.tl { padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; position: relative; }
.tl .d { font-family: var(--f-mono); font-size: 11px; color: var(--red-ink); font-variation-settings: "wdth" 85; }
.tl h4 { font-size: 18px; font-weight: 600; }
.tl p { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 1000px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; font-variation-settings: "wdth" 104; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; position: relative; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 0 24px; max-width: 70ch; color: var(--ink-2); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 28px; }
.faq-grid > div:first-child { grid-column: 1 / span 4; }
.faq-grid .faq { grid-column: 6 / span 7; }
@media (max-width: 900px) { .faq-grid > div:first-child, .faq-grid .faq { grid-column: 1 / -1; } }

/* ---------- product detail ---------- */
.pd-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 90px); }
.pd-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 40px; align-items: center; }
.pd-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pd-copy h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: .92; font-weight: 650; letter-spacing: -.035em; font-variation-settings: "wdth" 112; }
.pd-copy h1 small { display: block; font-size: .42em; letter-spacing: -.01em; font-weight: 500; margin-bottom: 10px; color: var(--muted); }
.pd-copy .bn-line { font-family: var(--f-bn); font-size: 18px; color: var(--muted); }
.pd-vis { grid-column: 6 / span 7; min-width: 0; position: relative; }
@media (max-width: 1000px) { .pd-copy, .pd-vis { grid-column: 1 / -1; } }
.variant-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.fg { padding: 28px 28px 32px 0; display: flex; flex-direction: column; gap: 14px; }
.fg + .fg { padding-left: 28px; border-left: 1px solid var(--line); }
.fg h3 { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.fg h3 i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.fg ul { display: flex; flex-direction: column; gap: 12px; }
.fg li { display: flex; flex-direction: column; gap: 2px; }
.fg li strong { font-weight: 600; font-size: 15px; }
.fg li span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .feat-groups { grid-template-columns: 1fr; } .fg + .fg { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.plan { padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; }
.plan--pick { background: var(--night); color: var(--night-fg); box-shadow: none; }
.plan h3 { font-size: 24px; font-weight: 600; }
.plan .price { font-family: var(--f-display); font-size: 34px; font-weight: 600; font-variation-settings: "wdth" 104; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price small { font-family: var(--f-body); font-size: 13px; font-weight: 400; color: var(--muted); }
.plan--pick .price small, .plan--pick p, .plan--pick li { color: var(--night-muted); }
.plan p { font-size: 14px; color: var(--ink-2); }
.plan ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 16px; height: 16px; flex: none; color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan--pick .btn { --b-bg: var(--night-fg); --b-fg: var(--night); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.connects { display: flex; flex-wrap: wrap; gap: 10px; }
.connect { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .4s var(--ease); }
.connect:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.connect strong { font-size: 15px; }
.connect > span:not(.code) span { display: block; font-size: 12.5px; color: var(--muted); }

/* interactive widgets on product pages */
.widget { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 24px; }
.widget-copy { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.widget-copy h3 { font-size: clamp(26px, 2.6vw, 36px); }
.widget-copy p { color: var(--ink-2); }
.widget-ui { grid-column: 6 / span 7; min-width: 0; }
@media (max-width: 900px) { .widget-copy, .widget-ui { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { height: 46px; padding: 0 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; min-width: 0; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(39,144,177,.2); background: var(--surface); }
.range { width: 100%; accent-color: var(--red); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 6px; }
.calc-out div { background: var(--bg); border-radius: var(--r-sm); padding: 12px; }
.calc-out small { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-variation-settings: "wdth" 85; }
.calc-out strong { font-family: var(--f-display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 104; }
.calc-out .hl { background: var(--red); color: var(--ink); }
.calc-out .hl small { color: rgba(12,15,20,.7); }
.floorplan { margin-top: 14px; display: grid; gap: 2px; background: var(--line); padding: 2px; border-radius: var(--r-sm); max-height: 220px; overflow: hidden; }
.floorplan i { aspect-ratio: 1; background: var(--surface-2); transition: background .3s; }
.floorplan i.on { background: color-mix(in srgb, var(--red) 70%, var(--surface)); }
.floorplan i.cut { background: color-mix(in srgb, var(--amber) 55%, var(--surface)); }
@media (max-width: 520px) { .calc-grid { grid-template-columns: 1fr; } .calc-out strong { font-size: 22px; } }

/* ---------- services page ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.model { padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.model h3 { font-size: 26px; }
.model p { color: var(--ink-2); font-size: 15px; }
.model dl { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; padding-top: 14px; border-top: 1px solid var(--line); }
.model dt { color: var(--muted); }
.model dd { margin: 0; font-weight: 500; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }
.svc-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-card { padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 290px; position: relative; overflow: hidden; transition: background .35s; }
.svc-card:hover { background: var(--surface); }
.svc-card .ico { width: 44px; height: 44px; color: var(--ink); }
.svc-card .ico .acc { color: var(--c, var(--red)); }
.svc-card h3 { font-size: 22px; font-weight: 600; }
.svc-card p { font-size: 14.5px; color: var(--ink-2); }
.svc-card .stack { margin-top: auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); font-variation-settings: "wdth" 85; line-height: 1.6; }
@media (max-width: 1100px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-cards { grid-template-columns: 1fr; } .svc-card { min-height: 0; } }
.report { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 32px; align-items: center; }
.report-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 18px; }
.report-copy h2 { font-size: var(--t-2xl); }
.report-copy ul { display: flex; flex-direction: column; gap: 10px; }
.report-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--night-muted); }
.report-copy li b { color: var(--night-fg); font-weight: 600; }
.report-copy li svg { width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }
.report .app { grid-column: 7 / span 6; }
@media (max-width: 1000px) { .report-copy, .report .app { grid-column: 1 / -1; } }
.rag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.rag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.gantt { display: flex; flex-direction: column; gap: 6px; }
.gantt-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; font-size: 12px; }
.gantt-row .tr { height: 14px; position: relative; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 12)); border-radius: 2px; }
.gantt-row .tr span { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; background: var(--c, var(--blue)); transform-origin: left; }
.gantt-row .tr span.done::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px); }
.stack-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.stack-col { padding: 22px 18px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.stack-col h4 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; font-variation-settings: "wdth" 88; }
.stack-col span { font-size: 15px; font-weight: 500; }
@media (max-width: 1000px) { .stack-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- about ---------- */
.three-i { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; }
.ii { padding: 0 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.ii + .ii { padding-left: 24px; border-left: 1px solid var(--line); }
.ii .glyph { font-family: var(--f-display); font-size: clamp(120px, 16vw, 240px); line-height: .78; font-weight: 700; letter-spacing: -.05em; position: relative; width: fit-content; font-variation-settings: "wdth" 100; }
.ii .glyph::after { content: ""; position: absolute; left: 50%; top: -.03em; width: .26em; height: .26em; border-radius: 50%; transform: translate(-50%, var(--dy, 0px)); background: var(--c); }
.ii .glyph span { color: var(--ink); }
.ii h3 { font-size: clamp(26px, 2.6vw, 36px); }
.ii p { color: var(--ink-2); max-width: 36ch; }
@media (max-width: 800px) { .three-i { grid-template-columns: 1fr; row-gap: 40px; } .ii + .ii { padding-left: 0; border-left: 0; } }
.story { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 28px; }
.story h2 { grid-column: 1 / span 5; font-size: var(--t-2xl); }
.story .cols { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 18px; font-size: var(--t-md); color: var(--ink-2); max-width: 62ch; }
@media (max-width: 900px) { .story h2, .story .cols { grid-column: 1 / -1; } }
.leader { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 28px; align-items: center; }
.leader-photo { grid-column: 1 / span 5; aspect-ratio: 4/5; border-radius: var(--r-lg); background: var(--night-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.leader-photo .mono-big { font-family: var(--f-display); font-size: clamp(90px, 12vw, 180px); font-weight: 700; color: var(--night-3); letter-spacing: -.04em; font-variation-settings: "wdth" 112; }
.leader-photo .ti-mark { position: absolute; width: 38%; right: -6%; bottom: -5%; opacity: .95; }
.leader-photo .note { position: absolute; left: 16px; top: 16px; }
.leader-copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 18px; }
.leader-copy h3 { font-size: var(--t-2xl); }
.leader-copy .role { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-variation-settings: "wdth" 88; }
.leader-copy p { color: var(--ink-2); font-size: var(--t-md); max-width: 56ch; }
.leader-copy .chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .leader-photo, .leader-copy { grid-column: 1 / -1; } .leader-photo { max-width: 440px; } }
.overlap { margin-top: 18px; }
.overlap-bar { position: relative; height: 54px; border-radius: var(--r-sm); background: var(--night-2); overflow: hidden; }
.overlap-bar .day { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.overlap-bar .dk { background: rgba(47,192,208,.35); top: 6px; bottom: 30px; }
.overlap-bar .au { background: rgba(212,133,56,.45); top: 30px; bottom: 6px; }
.overlap-bar .ov { background: rgba(162,182,87,.25); top: 0; bottom: 0; box-shadow: inset 0 0 0 1.5px var(--lime); }
.overlap-bar .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); }
.overlap-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--night-muted); margin-top: 6px; font-variation-settings: "wdth" 85; }
.overlap-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--night-muted); margin-top: 10px; }
.overlap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.overlap-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

/* ---------- careers ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.perk { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.perk h3 { font-size: 20px; font-weight: 600; }
.perk p { font-size: 14px; color: var(--ink-2); }
.perk .ico { width: 34px; height: 34px; color: var(--c, var(--red)); }
@media (max-width: 1000px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .45s var(--ease), background .3s; }
.job:hover { padding-left: 16px; padding-right: 16px; background: var(--surface); }
.job h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
.job .dept { font-size: 13px; color: var(--muted); margin-top: 4px; }
.job .cell small { display: block; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; font-variation-settings: "wdth" 85; }
.job .cell span { font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.job .stretch { position: absolute; inset: 0; }
.job .go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .3s, color .3s, box-shadow .3s; }
.job:hover .go { background: var(--ink); color: var(--bg); box-shadow: none; }
.job .go svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .job { grid-template-columns: 1fr 1fr; } .job > div:first-child { grid-column: 1 / -1; } .job .go { display: none; } }
.jd { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 36px; }
.jd-main { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.jd-main h2 { font-size: 24px; margin-bottom: 12px; }
.jd-main ul { display: flex; flex-direction: column; gap: 10px; }
.jd-main li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); }
.jd-main li::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--red); margin-top: 8px; }
.jd-side { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.jd-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.jd-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.jd-card dt { color: var(--muted); }
.jd-card dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.drop-zone { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: border-color .2s, background .2s; cursor: pointer; }
.drop-zone.is-over { border-color: var(--red); background: rgba(222,82,53,.06); }
.drop-zone svg { width: 28px; height: 28px; color: var(--muted); }
.drop-zone strong { font-size: 14px; }
.drop-zone small { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .jd-main, .jd-side { grid-column: 1 / -1; } .jd-side { position: static; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 40px; align-items: start; }
.contact-form { grid-column: 1 / span 7; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.intent { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; padding: 5px; background: var(--bg); border-radius: var(--r); }
.intent button { min-height: 54px; border-radius: 6px; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; padding: 6px; text-align: center; }
.intent button small { font-weight: 400; font-size: 11px; }
.intent button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 6px 16px -8px rgba(12,15,20,.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.contact-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cinfo { padding: 22px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; }
.cinfo small { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-variation-settings: "wdth" 88; }
.cinfo strong { font-size: 18px; font-weight: 600; user-select: all; }
.cinfo address { font-style: normal; color: var(--ink-2); font-size: 14.5px; }
.cinfo .copy { align-self: flex-start; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--blue-ink); }
.success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0; }
.success .ti-mark { width: 80px; }
.success h3 { font-size: 32px; }
@media (max-width: 1000px) { .contact-form, .contact-side { grid-column: 1 / -1; } }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } .intent { grid-template-columns: 1fr 1fr; } }

/* ---------- drawer (case study) ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 80; background: rgba(5,7,10,.5); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.drawer-bg.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--bg); transform: translateX(100%); transition: transform .65s var(--ease-in-out); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 20px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) 28px; display: flex; flex-direction: column; gap: 26px; }
.drawer.is-open { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer h2 { font-size: clamp(32px, 4vw, 52px); }
.drawer .case-art { aspect-ratio: 16/9; }
.drawer dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 0; }
.drawer dl div { padding: 14px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.drawer dt { font-family: var(--f-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-variation-settings: "wdth" 85; }
.drawer dd { margin: 4px 0 0; font-weight: 600; }
.drawer section h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; font-variation-settings: "wdth" 88; }
.drawer section p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 560px) { .drawer dl { grid-template-columns: 1fr; } }

/* ---------- page transition + toast + loader ---------- */
.pt { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; grid-template-rows: 1fr 1fr 1fr; }
.pt i { display: block; transform: scaleX(0); transform-origin: left center; }
.pt i:nth-child(1) { background: var(--red); }
.pt i:nth-child(2) { background: var(--blue); }
.pt i:nth-child(3) { background: var(--green); }
.pt-mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.pt-mark .ti-mark { width: 84px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.pt-mark .ti-mark path { fill: #fff; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r); font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .45s var(--ease), visibility 0s .3s; max-width: calc(100vw - 32px); display: flex; gap: 10px; align-items: center; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .6s .1s, visibility 0s .8s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader .ti-mark { width: 92px; }
.loader .ti-mark path { transform-box: fill-box; transform-origin: center; animation: lmIn .7s var(--ease) both; }
.loader .ti-mark .lm-0 { animation-delay: 0s; } .loader .ti-mark .lm-1 { animation-delay: .08s; } .loader .ti-mark .lm-2 { animation-delay: .16s; }
@keyframes lmIn { from { opacity: 0; transform: scale(.6); } }

/* scroll-progress hairline under header */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--red) 0 33.3%, var(--blue) 33.3% 66.6%, var(--green) 66.6%); }

/* utilities */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.split-word { display: inline-block; }
[data-split] .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .ln > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
