/* ==========================================================================
   Cosmosphere Tech: public site
   --------------------------------------------------------------------------
   Concept: orbit. The ringed planet from the logo becomes the system the
   site is built on: the hero shows a business at the centre with its tools
   in orbit, capabilities sit in a bento grid with small live interfaces,
   and the process is a track you travel along while scrolling.

   Tokens first (light, then dark for system preference and the toggle),
   then base, layout, components and pages. No framework.
   ========================================================================== */

/* --- fonts (self-hosted) ------------------------------------------------ */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.b3495042e1a3.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext-wght-normal.12ffd1b0e2fb.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.bd0693c1a36d.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.1579fb36b9a1.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist has no Vietnamese letters, so Vietnamese pages switch to Inter and JetBrains Mono (both OFL).
   The browser only downloads these on pages that use them. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-vietnamese-wght-normal.9df17551da76.woff2") format('woff2-variations');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309,
                 U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.ad4eb06671be.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.8e433c0592f7.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese-wght-normal.ddf99e6e35c6.woff2") format('woff2-variations');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309,
                 U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.e36841ed93d5.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.b058178d7f30.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* The logo wordmark only (subset to its letters) */
@font-face {
  font-family: 'Frizon';
  font-display: block;
  src: url("../fonts/frizon-logo.79014b23f32a.woff2") format('woff2');
}

/* --- tokens: light ------------------------------------------------------ */
:root {
  color-scheme: light;

  --bg:           #f6f6fa;
  --bg-2:         #eeeef6;
  --surface:      #ffffff;
  --surface-2:    #f4f4f9;
  --surface-3:    #ebebf3;
  --glass:        rgba(255, 255, 255, .72);

  --line:         rgba(17, 17, 46, .09);
  --line-strong:  rgba(17, 17, 46, .16);

  --text:         #0d0d1a;
  --text-2:       #4a4a60;   /* body copy: 8.4:1 on --bg */
  --text-3:       #6c6c82;   /* meta only: 4.9:1 on --bg */

  --brand:        #3f3eed;   /* the logo's indigo */
  --brand-ink:    #3433d4;
  --brand-wash:   rgba(63, 62, 237, .08);
  --brand-glow:   rgba(63, 62, 237, .22);
  --violet:       #8b5cf6;
  --flare:        #ef5f3a;
  --ok:           #138a43;
  --danger:       #c8322a;

  --aurora:       linear-gradient(100deg, #3f3eed 0%, #8b5cf6 52%, #ef5f3a 100%);
  --star:         rgba(30, 30, 80, .16);

  --shadow-sm:    0 1px 2px rgba(16, 16, 40, .05);
  --shadow:       0 1px 2px rgba(16, 16, 40, .04), 0 12px 32px -16px rgba(16, 16, 40, .18);
  --shadow-lg:    0 2px 4px rgba(16, 16, 40, .04), 0 32px 64px -28px rgba(16, 16, 40, .28);

  --font:         'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:         'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --container:    1200px;
  --gutter:       clamp(16px, 4vw, 32px);
  --header-h:     68px;
  --ease:         cubic-bezier(.2, .7, .2, 1);
}

/* Vietnamese pages: fonts with the full Vietnamese alphabet */
:root:lang(vi) {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --- tokens: dark (system preference, unless the visitor chose light) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg:           #07070e;
    --bg-2:         #0b0b16;
    --surface:      #10101c;
    --surface-2:    #161624;
    --surface-3:    #1d1d2e;
    --glass:        rgba(16, 16, 28, .66);

    --line:         rgba(255, 255, 255, .07);
    --line-strong:  rgba(255, 255, 255, .14);

    --text:         #efeff7;
    --text-2:       #a9a9bf;
    --text-3:       #85859c;

    --brand:        #5857ff;
    --brand-ink:    #a09fff;
    --brand-wash:   rgba(88, 87, 255, .14);
    --brand-glow:   rgba(88, 87, 255, .38);
    --violet:       #a78bfa;
    --flare:        #ff7b54;
    --ok:           #3ccf7c;
    --danger:       #ff6b62;

    --aurora:       linear-gradient(100deg, #5857ff 0%, #a78bfa 52%, #ff7b54 100%);
    --star:         rgba(255, 255, 255, .55);

    --shadow-sm:    0 1px 0 rgba(255, 255, 255, .03) inset;
    --shadow:       0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .7);
    --shadow-lg:    0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -32px rgba(0, 0, 0, .8);
  }
}
/* --- tokens: dark (chosen with the toggle) ------------------------------ */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:           #07070e;
  --bg-2:         #0b0b16;
  --surface:      #10101c;
  --surface-2:    #161624;
  --surface-3:    #1d1d2e;
  --glass:        rgba(16, 16, 28, .66);

  --line:         rgba(255, 255, 255, .07);
  --line-strong:  rgba(255, 255, 255, .14);

  --text:         #efeff7;
  --text-2:       #a9a9bf;
  --text-3:       #85859c;

  --brand:        #5857ff;
  --brand-ink:    #a09fff;
  --brand-wash:   rgba(88, 87, 255, .14);
  --brand-glow:   rgba(88, 87, 255, .38);
  --violet:       #a78bfa;
  --flare:        #ff7b54;
  --ok:           #3ccf7c;
  --danger:       #ff6b62;

  --aurora:       linear-gradient(100deg, #5857ff 0%, #a78bfa 52%, #ff7b54 100%);
  --star:         rgba(255, 255, 255, .55);

  --shadow-sm:    0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow:       0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .7);
  --shadow-lg:    0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -32px rgba(0, 0, 0, .8);
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }
.prose a:not(.btn), .lead a:not(.btn), .case-meta a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button { font: inherit; color: inherit; }

::selection { background: var(--brand-glow); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.icon { flex: none; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 8vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__head > div { max-width: 720px; }
.section__head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
@media (max-width: 720px) {
  .section__head { grid-template-columns: 1fr; align-items: start; }
}
.section__head--center > div { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--plain::before { display: none; }

.display {
  font-size: clamp(2.5rem, 1.5rem + 3.9vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
}
.h3 {
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.muted { color: var(--text-3); }
.lead {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
}
.section__head .lead { margin-top: 18px; }

.gradient-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   BUTTONS, LINKS, CHIPS
   ========================================================================== */
.btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease),
              box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--go { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 8px 24px -10px var(--brand-glow);
}
.btn--primary:hover {
  background: color-mix(in oklab, var(--brand) 88%, white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 12px 32px -10px var(--brand-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--text-3); }
.btn--sm { --btn-h: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.link-arrow .icon { transition: transform .25s var(--ease); color: var(--brand-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
}
a.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip--brand { background: var(--brand-wash); border-color: transparent; color: var(--brand-ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; color: var(--text); flex: none; }
.logo svg { height: 26px; width: auto; }
.logo .lg-ink { fill: currentColor; }
.logo .lg-cut { fill: var(--bg); }
.logo .lg-badge { fill: var(--brand); }
.logo .lg-badge-text { fill: #fff; }
.logo text { font-family: 'Frizon', var(--font); font-size: 35.14px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  list-style: none;
}
.site-header__inner > nav { margin-inline: auto; }
.nav a {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-3); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }

/* Show the icon of the theme you'd switch to */
.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

/* Language switcher: a compact segmented pill in the header, full names in the mobile menu */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.lang a {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text-3);
  transition: color .2s, background-color .2s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-3); }

.menu-toggle { display: none; }
.menu-toggle .icon--close { display: none; }
.site-header.is-open .menu-toggle .icon--close { display: block; }
.site-header.is-open .menu-toggle .icon--menu { display: none; }

.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-header.is-open + .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu ul { list-style: none; display: grid; }
  .mobile-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.6rem;
    letter-spacing: -0.03em;
  }
  .mobile-menu li a .icon { color: var(--text-3); }
  .mobile-menu .btn { margin-top: auto; }
  .header-actions .lang { display: none; }
  .lang--menu { align-self: flex-start; }
  .lang--menu a { height: 38px; padding: 0 16px; font-size: 15px; font-weight: 500; letter-spacing: 0; }
}
body.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(16px, 2vw, 32px);
  overflow: hidden;
  isolation: isolate;
}

/* Starfield + a single still glow: depth without animation cost */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 72%, var(--star) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 41% 33%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 57% 88%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 66% 12%, var(--star) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 79% 54%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 26%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 6% 61%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 48% 6%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 82%, var(--star) 50%, transparent 52%);
  background-size: 520px 520px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  right: -22%;
  top: -28%;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
  opacity: .9;
}
.hero__bg::before {
  content: '';
  position: absolute;
  width: min(700px, 90vw);
  aspect-ratio: 1;
  right: 2%;
  top: 34%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--flare) 22%, transparent), transparent 70%);
  opacity: .5;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
}
.status-pill b { font-weight: 500; color: var(--text); }
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(.5); opacity: .9; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* Interface pieces inside the headline: each one links to the service */
.hero__title { font-size: clamp(2.3rem, 1.25rem + 3vw, 3.7rem); line-height: 1.1; }
.hero__title .nowrap { display: inline-block; white-space: nowrap; }
.hero__title .hchip {
  display: inline-flex;
  align-items: center;
  gap: .2em;
  padding: .04em .36em .07em .26em;
  margin-inline: .02em;
  border-radius: .3em;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .64em;
  line-height: 1.25;
  letter-spacing: -0.03em;
  vertical-align: .12em;
  white-space: nowrap;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.hero__title .hchip .icon {
  width: .78em;
  height: .78em;
  color: var(--brand-ink);
  stroke-width: 1.9;
}
.hero__title .hchip:hover { border-color: var(--brand); background: var(--brand-wash); }

.hero__lead { margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* --- orbit visual ------------------------------------------------------- */
.orbit {
  --tilt: -14deg;
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  margin-inline: auto;
  user-select: none;
}
.orbit__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.orbit__svg--back { z-index: 0; }
.orbit__svg--beams { z-index: 1; }  /* behind the globe: signals enter at its edge */
.orbit__svg--front { z-index: 4; }
.orbit__ring { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit__ring--dash { stroke-dasharray: 2 6; }
.orbit__svg--front .orbit__ring { stroke: color-mix(in oklab, var(--text-3) 55%, transparent); }

/* Beams draw from source to target (pathLength="1" in the markup) */
.orbit__beam {
  fill: none;
  stroke: var(--brand-ink);
  stroke-width: .32;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: drop-shadow(0 0 1.2px var(--brand-glow));
  transition: opacity .4s var(--ease);
}
.orbit__beam.is-on { opacity: 1; animation: beam-draw .65s var(--ease) forwards; }
@keyframes beam-draw { to { stroke-dashoffset: 0; } }

.orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 40%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), transparent 28%),
    radial-gradient(circle at 40% 36%, #8c8bff, #3f3eed 46%, #1a1970 78%, #0d0c3a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    -14px -18px 40px rgba(0, 0, 0, .35) inset,
    0 0 90px var(--brand-glow);
}
.orbit__core span {
  font-family: var(--mono);
  font-size: clamp(9.5px, 1.6vw, 12px);
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.orbit__core.is-hit { animation: core-hit .7s var(--ease); }
/* Once the globe has loaded it draws its own sphere and atmosphere */
.orbit__core.is-globe { background: none; box-shadow: none; }
.orbit__core.is-globe > span { display: none; }
.orbit__globe {
  position: absolute;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  cursor: grab;
  touch-action: pan-y;
}
.orbit__globe.is-dragging { cursor: grabbing; }
@keyframes core-hit {
  40% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, -14px -18px 40px rgba(0, 0, 0, .35) inset,
                    0 0 130px var(--brand-glow), 0 0 0 10px var(--brand-wash); }
}

.orbit__node {
  --x: 50%;
  --y: 50%;
  --s: 1;
  --o: 1;
  --z: 5;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: clamp(10.5px, 1.5vw, 12.5px);
  color: var(--text);
  white-space: nowrap;
  opacity: var(--o);
  transform: translate(-50%, -50%) scale(var(--s));
  will-change: left, top, transform;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.orbit__node::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-ink);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.orbit__node:hover,
.orbit__node.is-active {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--surface) 80%, var(--brand) 20%);
  box-shadow: 0 0 0 4px var(--brand-wash), 0 0 28px var(--brand-glow);
}

.orbit__log {
  position: absolute;
  left: -2%;
  bottom: -3%;
  z-index: 6;
  width: min(340px, 82%);
  padding: 12px 14px 10px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.orbit__log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.orbit__log-head span { display: inline-flex; align-items: center; gap: 8px; }
.orbit__log-head .pulse-dot { margin-left: 0; width: 6px; height: 6px; }
.orbit__lines { list-style: none; display: grid; gap: 3px; min-height: calc(3 * 1.6em + 6px); }
.orbit__line {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.6;
}
.orbit__line > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.orbit__line .ok { color: var(--ok); }
.orbit__line.is-new { animation: line-in .45s var(--ease); }
.orbit__line:not(:last-child) { opacity: .62; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* --- trust strip -------------------------------------------------------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust p { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.trust ul { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; }
.trust li {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-3);
  transition: color .2s;
}
.trust li:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  /* Under the orbit rather than over it, so no node is hidden */
  .hero__visual { padding-bottom: 128px; }
  .orbit__log { left: 0; right: 0; bottom: auto; top: calc(100% - 8px); width: 100%; }
  .status-pill .status-pill__extra { display: none; }
}

/* ==========================================================================
   BENTO (capabilities)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 280px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* Light follows the pointer, so the grid answers where you are */
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), var(--brand-wash), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; }

.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-wash);
  color: var(--brand-ink);
}
.tile__group { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tile__go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: transform .35s var(--ease), color .25s, border-color .25s, background-color .25s;
}
.tile:hover .tile__go { transform: rotate(45deg); color: #fff; border-color: var(--brand); background: var(--brand); }
.tile h3 { font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.2; }
.tile__text { color: var(--text-2); font-size: .97rem; max-width: 46ch; }
.tile__visual { margin-top: auto; padding-top: 8px; }

.tile--xl { grid-column: span 4; grid-row: span 2; }
.tile--tall { grid-column: span 2; grid-row: span 2; }
.tile--w3 { grid-column: span 3; }
.tile--w2 { grid-column: span 2; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--xl { grid-column: span 2; grid-row: auto; }
  .tile--tall, .tile--w3, .tile--w2 { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--xl, .tile--tall, .tile--w3, .tile--w2 { grid-column: auto; }
  .tile { min-height: 0; }
}

/* --- micro visuals (small, real-looking interfaces) --------------------- */
.mv {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 14px;
  font-size: 13px;
}
.mv__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* Reveal sequences only start once the tile is on screen */
.js .tile [data-seq] { opacity: 0; transform: translateY(6px); }
.js .tile.is-visible [data-seq] {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}

/* AI: retrieval pipeline + a cited answer */
.mv-pipe { display: grid; gap: 14px; }
.mv-pipe__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.mv-pipe__track::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.mv-pipe__track::after {
  content: '';
  position: absolute;
  top: calc(50% - 3px);
  left: 8%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-ink);
  box-shadow: 0 0 12px 2px var(--brand-glow);
  opacity: 0;
}
.tile.is-visible .mv-pipe__track::after { animation: travel 3.6s var(--ease) infinite .6s; }
@keyframes travel {
  0% { left: 8%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}
.mv-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}
.mv-step .icon { color: var(--brand-ink); }
@media (max-width: 640px) {
  .mv-pipe__track { gap: 4px; }
  .mv-step { padding: 8px 2px; font-size: 9.5px; letter-spacing: -0.02em; }
}
.mv-answer { display: grid; gap: 10px; }
.mv-answer__q { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); }
.mv-answer__q b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-3); }
.mv-answer__a {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  line-height: 1.55;
}
.cite {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin-left: 2px;
  border-radius: 5px;
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  vertical-align: 1px;
}
.mv-answer__src { display: flex; flex-wrap: wrap; gap: 6px; }

/* Agents: a conversation where the agent takes action */
.mv-chat { display: grid; gap: 8px; align-content: end; }
.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  line-height: 1.45;
}
.msg--user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--brand);
  color: #fff;
}
.msg--agent {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tool {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}
.tool .ok { color: var(--ok); }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; justify-self: start; }
.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* Scalable apps: a monitoring panel */
.mv-mon__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mv-mon__stats div { display: grid; gap: 2px; }
.mv-mon__stats strong { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.mv-spark { width: 100%; height: 74px; }
.mv-spark__line {
  fill: none;
  stroke: var(--brand-ink);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.mv-spark__area { fill: url(#spark-fill); opacity: 0; }
.tile.is-visible .mv-spark__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.tile.is-visible .mv-spark__area { opacity: 1; transition: opacity 1s var(--ease) .8s; }

/* Analytics: KPI and bars */
.mv-kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mv-kpi strong { font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.delta {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--ok);
  background: color-mix(in oklab, var(--ok) 14%, transparent);
}
.mv-bars { display: flex; align-items: flex-end; gap: 6px; height: 76px; }
.mv-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: color-mix(in oklab, var(--brand) 26%, var(--surface-3));
  transform-origin: bottom;
  transform: scaleY(.05);
}
.mv-bars i:last-child { background: var(--aurora); }
.tile.is-visible .mv-bars i {
  transform: none;
  transition: transform .8s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}

/* Interface design: type and tokens */
.mv-ui { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; }
.mv-ui__type { font-size: 48px; line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.mv-ui__meta { display: grid; gap: 8px; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); }
.mv-ui__row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
}
.fake-input {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

/* API integrations: sync status */
.mv-sync { list-style: none; display: grid; gap: 8px; }
.mv-sync li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.mv-sync li span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 18%, transparent); }

/* Payments: subscription + card */
.mv-pay { display: grid; gap: 10px; }
.mv-pay__plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mv-pay__plan strong { font-size: 14px; }
.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ok);
  background: color-mix(in oklab, var(--ok) 14%, transparent);
}
.mv-card {
  position: relative;
  height: 66px;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--aurora);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
}
.mv-card::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, .14);
}
.mv-card i { width: 22px; height: 16px; border-radius: 4px; background: rgba(255, 255, 255, .55); }

/* E-commerce: product */
.mv-shop { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.mv-shop__thumb {
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6), transparent 30%),
    radial-gradient(circle at 50% 55%, var(--violet), var(--brand) 55%, #15145a);
  box-shadow: var(--shadow);
}
.mv-shop__info { display: grid; gap: 4px; }
.mv-shop__info strong { font-size: 14px; }
.mv-shop__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.mv-shop__price { font-family: var(--mono); font-size: 13px; color: var(--text); }
.stars { color: var(--flare); letter-spacing: 1px; font-size: 11px; }

/* Branding: mark and palette */
.mv-brand { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.mv-brand__mark { width: 74px; height: 74px; }
.mv-brand__palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mv-brand__palette i { height: 34px; border-radius: 8px; border: 1px solid var(--line); }
.mv-brand__type { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* ==========================================================================
   WORK
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.project-card {
  --accent: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 60%),
    var(--surface-2);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.035); }
.project-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.project-card__body { display: grid; gap: 10px; padding: 22px 24px 24px; }
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.project-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.project-card__title .icon {
  color: var(--text-3);
  transition: transform .35s var(--ease), color .25s;
}
.project-card:hover .project-card__title .icon { transform: translate(3px, -3px); color: var(--accent); }
.project-card__summary { color: var(--text-2); }
.project-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.metrics { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 6px; }
.metric { display: grid; }
.metric strong {
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--text);
}
.metric span { font-size: 13px; color: var(--text-3); }

.project-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.project-card--wide .project-card__media { margin: 10px 0 10px 10px; aspect-ratio: auto; min-height: 360px; }
.project-card--wide .project-card__body { align-content: center; padding: clamp(24px, 4vw, 48px); gap: 14px; }
.project-card--wide .project-card__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }

@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-template-columns: 1fr; }
  .project-card--wide .project-card__media { margin: 10px 10px 0; aspect-ratio: 16 / 10; min-height: 0; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-current="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 64px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--text-2);
}
.empty .icon { color: var(--text-3); }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process__track {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding-top: 48px;
}
/* The track fills as the section scrolls past: where you are in the journey */
.process__track::before,
.process__track::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  height: 2px;
  border-radius: 2px;
}
.process__track::before { right: 0; background: var(--line); }
.process__track::after {
  width: calc(var(--progress) * 100%);
  background: var(--aurora);
  box-shadow: 0 0 16px var(--brand-glow);
}
.process__step { position: relative; display: grid; align-content: start; gap: 12px; }
.process__step::before {
  content: '';
  position: absolute;
  top: -44px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg-2);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.process__step.is-reached::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-wash);
}
.process__num { font-family: var(--mono); font-size: 12.5px; color: var(--brand-ink); }
.process__step h3 { font-size: 1.35rem; letter-spacing: -0.025em; }
.process__step p { color: var(--text-2); font-size: .97rem; }

@media (max-width: 900px) {
  .process__track { grid-template-columns: 1fr; gap: 36px; padding-top: 0; padding-left: 40px; }
  .process__track::before, .process__track::after { top: 0; left: 9px; width: 2px; right: auto; }
  .process__track::before { bottom: 0; height: auto; }
  .process__track::after { height: calc(var(--progress) * 100%); width: 2px; }
  .process__step::before { top: 2px; left: -40px; }
}

/* ==========================================================================
   PRINCIPLES
   ========================================================================== */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.principle { display: grid; align-content: start; gap: 10px; padding: clamp(22px, 2.6vw, 32px); }
.principle + .principle { border-left: 1px solid var(--line); }
.principle__icon { color: var(--brand-ink); margin-bottom: 8px; }
.principle h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.principle p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 900px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { border-left: 0; }
  .principle:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quotes { columns: 3 300px; column-gap: 16px; }
.quote {
  break-inside: avoid;
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.quote .icon--quote { color: var(--brand-ink); }
.quote h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.quote blockquote { margin: 0; color: var(--text-2); }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.quote figcaption strong { display: block; font-size: 14.5px; font-weight: 600; }
.quote figcaption span { font-size: 13px; color: var(--text-3); }
.quote--first { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box; border-color: transparent; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.faq__intro .lead { margin-top: 18px; }
.faq__intro .link-arrow { margin-top: 24px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  color: var(--text-3);
  transition: transform .3s var(--ease), color .2s;
}
.faq__item[open] summary .icon { transform: rotate(45deg); color: var(--brand-ink); }
.faq__item summary:hover .icon { color: var(--text); }
.faq__item p { padding: 0 48px 24px 0; color: var(--text-2); }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}

/* ==========================================================================
   CALL TO ACTION
   ========================================================================== */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 6vw, 80px);
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 100% 0%, var(--brand-wash), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, color-mix(in oklab, var(--flare) 12%, transparent), transparent 70%);
}
.cta .lead { margin-top: 16px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta__art { justify-self: end; width: min(320px, 100%); color: var(--line-strong); }
.cta__art .planet { fill: url(#cta-planet); }
@media (max-width: 800px) {
  .cta { grid-template-columns: 1fr; }
  .cta__art { display: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 0;
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p { margin-top: 18px; max-width: 34ch; color: var(--text-2); font-size: .95rem; }
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-3);
}
.footer-bottom a:hover { color: var(--text); }
/* An oversized wordmark that sits on the horizon of the page */
.footer-word {
  margin-top: 24px;
  font-family: 'Frizon', var(--font);
  font-size: clamp(2.5rem, 10.4vw, 10.5rem);
  line-height: .8;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(to bottom, var(--line-strong), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  overflow: hidden;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-head {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(32px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}
.page-head .hero__bg { -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.page-head .hero__bg::after { top: -70%; right: -30%; opacity: .7; }
.page-head .hero__bg::before { display: none; }
.page-head .lead { margin-top: 20px; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
  list-style: none;
}
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }

/* --- services index ----------------------------------------------------- */
.service-group + .service-group { margin-top: clamp(48px, 6vw, 80px); }
.service-group__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.service-group__label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.service-rows { list-style: none; display: grid; gap: 12px; }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.service-row .tile__icon { width: 48px; height: 48px; }
.service-row h3 { font-size: 1.3rem; letter-spacing: -0.025em; }
.service-row h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.service-row__tag { margin-top: 4px; color: var(--text-2); font-size: .95rem; }
.service-row__list { list-style: none; display: grid; gap: 4px; color: var(--text-2); font-size: .92rem; }
.service-row__list li { display: flex; gap: 8px; align-items: baseline; }
.service-row__list li::before { content: ''; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--brand-ink); transform: translateY(-2px); }
.service-row__end { display: grid; justify-items: end; gap: 10px; }
.service-row:hover .tile__go { transform: rotate(45deg); color: #fff; border-color: var(--brand); background: var(--brand); }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .service-row__list { display: none; }
}

/* --- service detail ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.prose { color: var(--text-2); font-size: 1.08rem; line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.panel h2 { font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 16px; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checklist .icon { color: var(--brand-ink); margin-top: 3px; }
.panel .chips { margin-top: 10px; }
.panel + .panel { margin-top: 16px; }
.service-icon-xl {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--brand-wash);
  color: var(--brand-ink);
}
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pager a {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .3s var(--ease);
}
.pager a:hover { border-color: var(--line-strong); }
.pager span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pager strong { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 600; }
.pager a:last-child { text-align: right; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* --- case study --------------------------------------------------------- */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(32px, 4vw, 48px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}
.case-meta > div { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); }
.case-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.case-meta dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.case-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); }
@media (max-width: 760px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.case-cover {
  --accent: var(--brand);
  position: relative;
  margin: 0;
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: 0 40px 120px -60px var(--accent), var(--shadow-lg);
}
.case-cover img { width: 100%; }

.metrics--band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 28px clamp(20px, 3vw, 32px);
  margin-top: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.metrics--band .metric strong { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); }

.story { display: grid; gap: clamp(40px, 5vw, 64px); }
.story__part { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.2fr); gap: 32px; }
.story__part h2 {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
@media (max-width: 760px) {
  .story__part { grid-template-columns: 1fr; gap: 12px; }
  .story__part h2 { position: static; }
}

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--text-3); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

/* --- contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.steps { list-style: none; display: grid; gap: 22px; margin-top: 36px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand-ink);
}
.steps strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.steps p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.field legend { margin-bottom: 10px; padding: 0; }
.field .hint { font-weight: 400; color: var(--text-3); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); background: var(--surface); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.55; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13.5px; color: var(--danger); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Checkbox and radio pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pill span .icon { display: none; }
.pill:hover span { border-color: var(--text-3); color: var(--text); }
.pill input:checked + span { border-color: var(--brand); background: var(--brand-wash); color: var(--text); }
.pill input:checked + span .icon { display: block; color: var(--brand-ink); }
.pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot p { font-size: 13px; color: var(--text-3); max-width: 40ch; }
.alert {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--danger) 40%, transparent);
  background: color-mix(in oklab, var(--danger) 10%, transparent);
  color: var(--text);
  font-size: 14.5px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sent { display: grid; justify-items: start; gap: 16px; }
.sent__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ok) 14%, transparent);
  color: var(--ok);
}
.sent p { color: var(--text-2); }

/* --- 404 ---------------------------------------------------------------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.lost .display { margin-block: 12px 18px; }
.lost .lead { margin-inline: auto; }
.lost .hero__actions { justify-content: center; }
.lost__planet {
  width: 120px;
  margin: 0 auto 12px;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translateY(-10px) rotate(-6deg); } }

/* ==========================================================================
   SCROLL REVEAL (only when JS is on, so nothing is ever hidden without it)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js .tile [data-seq] { opacity: 1; transform: none; }
}

/* ==========================================================================
   PHONES
   Tighter rhythm and layouts that keep every element inside 320-420px.
   ========================================================================== */
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .section--tight { padding-block: 36px; }
  .page-head { padding-top: 36px; padding-bottom: 8px; }
  .section__head { margin-bottom: 28px; gap: 16px; }
  .trust { margin-top: 32px; padding-top: 20px; gap: 10px 24px; }
  .trust ul { gap: 8px 22px; }
  .trust li { font-size: .98rem; }

  /* Services list: description under the title, full width */
  .service-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 6px 14px;
    padding: 18px;
  }
  .service-row .tile__icon { width: 44px; height: 44px; grid-row: span 2; }
  .service-row h3 { font-size: 1.15rem; }
  .service-row__end { grid-column: 2; justify-items: start; }
  .service-row__end:not(:has(.chip)) { display: none; }
  .service-row .tile__go { display: none; }

  .cta { padding: 28px 22px; }
  .cta__actions .btn { flex: 1 1 auto; }
  .form-card { padding: 20px; }
  .case-meta > div { padding: 12px 14px; }
  .metrics--band { padding: 20px; gap: 16px; }
  .pager a { padding: 16px; }
  .pager strong { font-size: 1rem; }
  .quote { padding: 22px; }
  .faq__item p { padding-right: 0; }
}

@media (max-width: 560px) {
  /* Keep outer-ring labels on screen; the log stays full width below */
  .hero__visual .orbit { width: 84%; }
  .orbit__log { left: -9.5%; right: -9.5%; width: auto; }
}

@media (max-width: 400px) {
  .site-header__inner { gap: 10px; }
  .logo svg { height: 21px; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   LANDING PAGES (blocks from pages/blocks.py)
   ========================================================================== */
.lp-preview {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 8px var(--gutter);
  background: color-mix(in oklab, var(--flare) 18%, var(--bg));
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  text-align: center;
}
.lp-preview a { margin-left: 8px; color: var(--brand-ink); text-decoration: underline; }

.lp-hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.lp-hero__grid.is-single { grid-template-columns: minmax(0, 860px); }
.lp-title { font-size: clamp(2.3rem, 1.3rem + 3vw, 3.9rem); line-height: 1.06; }
.lp-title .gradient-text { display: block; }
.lp-hero .lead { margin-top: 24px; }
@media (max-width: 960px) { .lp-hero__grid { grid-template-columns: 1fr; } }

/* Problem / solution */
.lp-contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-contrast__col { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.lp-contrast__col h3 { font-size: 1.15rem; margin-bottom: 18px; letter-spacing: -0.02em; }
.lp-contrast__col ul { list-style: none; display: grid; gap: 14px; }
.lp-contrast__col li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--text-2); }
.lp-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.is-problem .lp-mark { color: var(--danger); background: color-mix(in oklab, var(--danger) 12%, transparent); }
.is-problem h3 { color: var(--text-2); }
.is-solution { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box; border-color: transparent; }
.is-solution li { color: var(--text); }
.is-solution .lp-mark { color: var(--ok); background: color-mix(in oklab, var(--ok) 14%, transparent); }
@media (max-width: 800px) { .lp-contrast { grid-template-columns: 1fr; } }

/* Steps */
.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: lp; }
.lp-step { position: relative; display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: var(--radius-lg);
           border: 1px solid var(--line); background: var(--surface); }
.lp-step__num { font-family: var(--mono); font-size: 12.5px; color: var(--brand-ink); }
.lp-step h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.lp-step p { color: var(--text-2); font-size: .96rem; }

/* Features */
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-features.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-feature { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: var(--radius-lg);
              border: 1px solid var(--line); background: var(--surface); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.lp-feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.lp-feature h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.lp-feature p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 960px) { .lp-features, .lp-features.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-features, .lp-features.is-two { grid-template-columns: 1fr; } }

/* Showcase */
.lp-showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-showcase .h2 { margin-bottom: 18px; }
.lp-showcase__text { margin-bottom: 20px; }
@media (max-width: 960px) { .lp-showcase { grid-template-columns: 1fr; } }

.lp-stats { justify-items: start; }
.lp-text { max-width: 820px; }
.lp-text .h2 { margin-bottom: 18px; }

/* Live proof: a real client's site beside the facts */
.lp-proof { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-proof .lead { margin-top: 14px; }
.eyebrow--live { display: inline-flex; align-items: center; gap: 8px; }
.lp-proof__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 18px 24px; margin: 26px 0 0; }
.lp-proof__facts div { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
/* The number reads first, above its label (the label stays first in the markup for screen readers) */
.lp-proof__facts dd { order: -1; margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.lp-proof__facts dt { color: var(--text-2); font-size: 14px; line-height: 1.4; }
.lp-proof__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; }
.lp-proof__shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-lg); }
.lp-proof__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); }
.lp-proof__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.lp-proof__bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.lp-proof__shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .lp-proof { grid-template-columns: 1fr; } }

/* Quick contact above the lead form */
.lp-quick { margin-bottom: 22px; }
.lp-quick__label { margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.lp-quick__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-quick__buttons .btn { flex: 1 1 200px; justify-content: center; gap: 8px; }
.lp-quick__zalo { background: #0068ff; color: #fff; border-color: #0068ff; }
.lp-quick__zalo:hover { background: #0057d6; border-color: #0057d6; color: #fff; }
.lp-quick__or { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--text-3); font-size: 13px; }
.lp-quick__or::before, .lp-quick__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Lead */
.lp-lead { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lp-lead .lead { margin-top: 16px; }
@media (max-width: 900px) { .lp-lead { grid-template-columns: 1fr; } }

/* --- mocks ---------------------------------------------------------------- */
.lp-mock { font-size: 13px; color: var(--text); }
.qr-art { width: 100%; height: auto; color: #0d0d1a; }

/* Payment flow: a phone with the QR, then the four steps lighting up in turn */
.lp-pay { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.lp-pay__phone {
  padding: 14px 16px 18px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.lp-pay__bar { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-bottom: 14px; }
.lp-pay__label { text-align: center; font-weight: 600; margin-bottom: 10px; }
.lp-pay__qr { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lp-pay__amount { margin: 14px 0 8px; text-align: center; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.lp-pay__meta { display: grid; gap: 4px; margin: 0; font-size: 11.5px; }
.lp-pay__meta div { display: flex; justify-content: space-between; gap: 8px; }
.lp-pay__meta dt { color: var(--text-3); }
.lp-pay__meta dd { margin: 0; font-family: var(--mono); }
.lp-pay__flow { list-style: none; display: grid; gap: 10px; }
.lp-pay__flow li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: lp-step 8s var(--ease) infinite;
  animation-delay: calc(var(--i) * 1.2s);
}
.lp-pay__flow b { display: block; font-weight: 600; }
.lp-pay__flow small { color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.lp-pay__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-wash); color: var(--brand-ink); }
.lp-pay__flow .is-final .lp-pay__icon { background: color-mix(in oklab, var(--ok) 16%, transparent); color: var(--ok); }
@keyframes lp-step {
  0%, 4% { border-color: var(--line); box-shadow: none; opacity: .55; }
  9%, 55% { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); opacity: 1; }
  75%, 100% { border-color: var(--line); box-shadow: none; opacity: .55; }
}
@media (max-width: 600px) {
  .lp-pay { grid-template-columns: 1fr; }
  .lp-pay__phone { max-width: 240px; margin-inline: auto; }
}

/* Dashboard: transactions with their match state */
.lp-dash { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.lp-dash__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lp-dash__tabs { display: flex; gap: 16px; color: var(--text-3); }
.lp-dash__tabs b { color: var(--text); font-weight: 600; box-shadow: 0 2px 0 var(--brand); }
.lp-dash__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.lp-dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 20%, transparent); }
.lp-dash__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.lp-dash__kpis div { display: grid; gap: 2px; padding: 12px 16px; }
.lp-dash__kpis div + div { border-left: 1px solid var(--line); }
.lp-dash__kpis small { color: var(--text-3); font-size: 11.5px; }
.lp-dash__kpis strong { font-size: 1.05rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-dash__kpis .is-warn { color: #c47f00; }
.lp-dash__rows { list-style: none; }
.lp-dash__rows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.lp-dash__rows li:last-child { border-bottom: 0; }
.lp-dash__rows li.is-new { animation: lp-new 4s var(--ease) infinite; }
@keyframes lp-new { 0%, 60%, 100% { background: transparent; } 10%, 40% { background: var(--brand-wash); } }
.lp-dash__time { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.lp-dash__ref { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-dash__ref small { display: block; font-family: var(--font); font-size: 11.5px; color: var(--text-3); }
.lp-dash__amt { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.lp-chip { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-family: var(--mono); white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.lp-chip.is-ok { background: color-mix(in oklab, var(--ok) 15%, transparent); color: var(--ok); }
.lp-chip.is-warn { background: color-mix(in oklab, #f5a524 20%, transparent); color: #b27100; }
@media (max-width: 560px) {
  .lp-dash__rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-dash__time { display: none; }
  .lp-dash__rows .lp-chip { grid-column: 2; justify-self: end; }
  .lp-dash__amt { justify-self: end; }
  .lp-dash__kpis div { padding: 10px 12px; }
  .lp-dash__kpis strong { font-size: .9rem; }
}

/* A published landing page, featured on its service page */
.lp-feature-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box;
  border: 1px solid transparent;
  color: var(--text);
}
.lp-feature-link small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.lp-feature-link b { font-weight: 600; letter-spacing: -0.01em; }
.lp-feature-link > .icon { color: var(--brand-ink); transition: transform .25s var(--ease); }
.lp-feature-link:hover > .icon { transform: translateX(4px); }

/* Store sync: hub, three stores, wires carrying changes, a bulk job filling up */
.lp-sync { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px 0; align-items: center; }
.lp-sync__hub, .lp-sync__store, .lp-sync__job { border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.lp-sync__hub { padding: 16px; border-radius: var(--radius-lg); }
.lp-sync__title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.lp-sync__title .icon { color: var(--brand-ink); }
.lp-sync__hub ul { list-style: none; display: grid; gap: 8px; }
.lp-sync__hub li { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px;
                   background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.lp-sync__wires { display: grid; gap: 28px; }
.lp-sync__wire { position: relative; height: 2px; background: var(--line-strong); overflow: hidden; }
.lp-sync__wire::after { content: ''; position: absolute; top: -2px; left: -30%; width: 30%; height: 6px; border-radius: 3px;
                        background: var(--aurora); animation: lp-wire 2.4s linear infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes lp-wire { to { left: 100%; } }
.lp-sync__stores { display: grid; gap: 12px; }
.lp-sync__store { padding: 12px 14px; border-radius: 14px; }
.lp-sync__store b { display: block; font-weight: 600; }
.lp-sync__store small { font-family: var(--mono); font-size: 11px; color: var(--ok); }
.lp-sync__job { grid-column: 1 / -1; padding: 12px 14px; border-radius: 14px; }
.lp-sync__job-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.lp-sync__job-head span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.lp-sync__bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.lp-sync__bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--aurora); animation: lp-fill 6s var(--ease) infinite; }
@keyframes lp-fill { 0% { width: 4%; } 80%, 100% { width: 100%; } }
@media (max-width: 560px) {
  .lp-sync { grid-template-columns: 1fr; }
  .lp-sync__wires { grid-auto-flow: column; justify-content: center; gap: 12px; height: 34px; }
  .lp-sync__wire { width: 2px; height: 100%; }
  .lp-sync__wire::after { left: -2px; top: -30%; width: 6px; height: 30%; animation-name: lp-wire-v; }
  @keyframes lp-wire-v { to { top: 100%; } }
}

/* Replenishment forecast */
.lp-forecast__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lp-forecast__head div { display: grid; gap: 2px; }
.lp-forecast__head small { color: var(--text-3); font-size: 11.5px; }
.lp-forecast__head strong { font-weight: 600; }
.lp-forecast__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lp-forecast__table th { padding: 8px 16px; text-align: right; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .05em;
                         text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.lp-forecast__table td { padding: 9px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.lp-forecast__table th:first-child, .lp-forecast__table td:first-child { text-align: left; font-weight: 600; }
.lp-forecast__table th:nth-child(2), .lp-forecast__table td:nth-child(2) { width: 30%; text-align: left; }
.lp-forecast__table td i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: color-mix(in oklab, var(--brand) 55%, var(--surface-3)); }
.lp-forecast__table .is-up { font-weight: 600; color: var(--brand-ink); }
.lp-forecast__table .is-urgent { color: var(--flare); }
.lp-forecast__note { padding: 10px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
@media (max-width: 560px) {
  .lp-forecast__table th, .lp-forecast__table td { padding: 8px 8px; }
  .lp-forecast__table th:nth-child(2), .lp-forecast__table td:nth-child(2) { display: none; }
}

/* ==========================================================================
   CHAT ASSISTANT (web/_chat.html, js/chat.js)
   ========================================================================== */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-size: 15px; }
.chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 600 15px/1 var(--font);
  box-shadow: 0 10px 30px -8px color-mix(in oklab, var(--brand) 70%, transparent);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.chat__launcher:hover { transform: translateY(-2px); }
.chat.is-open .chat__launcher { display: none; }
.chat__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 40px));
  height: min(600px, calc(100dvh - 40px));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.chat__avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; }
.chat__title { font-size: 15px; font-weight: 600; line-height: 1.2; }
.chat__status { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.chat__close { margin-left: auto; }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.chat__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.chat__msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.chat__msg--assistant { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--surface-2);
  color: var(--text); }
.chat__msg--visitor { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--brand); color: #fff; }
.chat__msg--notice { align-self: center; max-width: 100%; padding: 6px 12px; font-size: 13px; text-align: center; color: var(--text-2);
  background: transparent; border: 1px dashed var(--line-strong); }
.chat__typing { padding: 2px 4px; border: 0; background: transparent; }
.chat__suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat__chip {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 500 13.5px/1.3 var(--font);
  text-align: left;
  cursor: pointer;
}
.chat__chip:hover { border-color: var(--brand); color: var(--brand); }
.chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); }
.chat__input {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: 15px/1.4 var(--font);
  resize: none;
}
.chat__input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.chat__send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--brand); color: #fff; cursor: pointer; }
.chat__note { padding: 2px 16px 12px; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }

@media (max-width: 600px) {
  .chat { right: 14px; bottom: 14px; }
  .chat__launcher { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .chat__launcher-label { display: none; }
  /* Full screen on phones */
  .chat.is-open { inset: 0; }
  .chat__panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .chat__form { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  /* 16px or more, or iPhones zoom the page when the field is focused */
  .chat__input { font-size: 16px; }
  body.chat-open { overflow: hidden; }
}
@media print { .chat { display: none; } }
