/* Baxia AI - base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.theme-dark { background: var(--ink); color: var(--text-inv); }
.mono { font-family: var(--f-mono); font-feature-settings: 'zero' 1; }
.tnum { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--text-inv); padding: 12px 18px; border-radius: var(--radius); transition: top .3s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* Editorial label: mono text led by a hairline */
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.theme-dark .eyebrow { color: var(--text-inv-3); }

.lede { font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); max-width: 42ch; }
.theme-dark .lede { color: var(--text-inv-2); }

/* Section head: title left, supporting copy right */
.shead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.shead__title { font-size: var(--fs-2xl); margin-top: 20px; max-width: 15ch; }
.shead__aside { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 900px) { .shead { grid-template-columns: 1fr; gap: 24px; } }

/* Motion pre-states: only applied when GSAP is available and motion is allowed */
.js-motion [data-split] { visibility: hidden; }
.js-motion [data-reveal] { visibility: hidden; }
.split-line { will-change: transform; }

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