/* =========================================================================
   BYTEARIS TECHNOLOGIES — public site UI (single design system)
   Modelled on the structure of openclaw.ai: pure-black page, one framed column with hairline rails,
   joined square cells, mono uppercase section labels, a character-art hero, terminal panels.
   Typography: Inter only. Palette: #000000 base, neutral greys for surfaces/text, BYTEARIS primary accent #ffa138 (orange) as the only accent.
   All classes are bt-* so nothing can collide with the portal.
   1 tokens/base · 2 controls · 3 nav · 4 frame & sections · 5 hero · 6 home components · 7 inner pages
   8 article/contact/prose · 9 footer · 10 agent terminal · 11 motion/responsive
   ========================================================================= */

/* ---- 1. Tokens & base ------------------------------------------------ */
:root {
  --bt-bg: #171717;
  --bt-cell: #1c1c1c;
  --bt-cell-2: #222222;
  --bt-surface: #1c1c1c;
  --bt-surface-hover: var(--bt-cell-2);
  --bt-field: #1c1c1c;
  --bt-btn-bg: #1c1c1c;
  --bt-btn-fg: #fafafa;
  --bt-btn-ghost-bg: #171717;
  --bt-card-shadow: none;
  --bt-agent-panel: rgba(28, 28, 28, 0.88);
  --bt-white: #fafafa;
  --bt-text: #a3a3a3;
  --bt-muted: #737373;
  --bt-line: #3a3a3a;
  --bt-line-2: #3a3a3a;
  --bt-line-inner: #3a3a3a;
  --bt-border-w: var(--bt-rail-w);
  --bt-border-color: var(--bt-line);
  --bt-nav-bar-bg: rgba(23, 23, 23, 0.78);
  --bt-nav-bar-bg-scrolled: rgba(23, 23, 23, 0.92);
  --bt-nav-menu-bg: var(--bt-cell); --bt-nav-bar-bg-open: var(--bt-nav-menu-bg); --bt-nav-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --bt-menu-shadow-dark: 0 16px 40px rgba(0, 0, 0, 0.38);
  --bt-nav-menu-shadow: 0 28px 40px -24px rgba(0, 0, 0, 0.55);
  --bt-accent: #ffa138; --bt-accent-ink: #1a0c00; --bt-accent-dim: rgba(255, 161, 56, 0.12); --bt-accent-line: rgba(255, 161, 56, 0.55);
  --bt-danger: #ff7b7b; --bt-ok: #4fd6a3;
  --bt-f-body: var(--font-body), "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bt-f-mono: var(--bt-f-body);
  --bt-f-mono-real: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bt-frame: 1180px; --bt-nav-inner-max: var(--bt-frame); --bt-pad: clamp(20px, 4vw, 48px); --bt-nav-h: 68px; --bt-top: clamp(52px, 6.4vw, 92px);
  --bt-rail-w: 1px;
  /* spacing scale: section rhythm, head gap, card padding, grid gap; heading scale for section-level h2 */
  --bt-sec-y: clamp(36px, 5vw, 56px); --bt-head-gap: clamp(20px, 2.6vw, 28px); --bt-card-pad: clamp(18px, 2vw, 24px); --bt-gap: 12px;
  --bt-h2: clamp(28px, 3.6vw, 44px); --bt-radius: 4px; --bt-btn-h: 46px; --bt-btn-px: 22px;
  --bt-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--bt-nav-h) + 16px); background: var(--bt-bg); overflow-x: clip; overflow-y: auto; }
*, *::before, *::after { box-sizing: border-box; }
html body { margin: 0; min-height: 100vh; padding-top: var(--bt-nav-h); background: var(--bt-bg); color: var(--bt-text); font-family: var(--bt-f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow: visible; position: relative; z-index: 1; }
body.bt-lock { overflow: hidden; }
html:has(body.bt-lock) { overflow: hidden; }
body ::selection { background: var(--bt-accent); color: #000; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea, summary { font: inherit; color: inherit; }
p { margin: 0 0 14px; color: var(--bt-text); }
h1, h2, h3, h4 { margin: 0 0 12px; color: var(--bt-white); font-family: var(--bt-f-body); font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.6vw, 68px); line-height: 1.05; }
h2 { font-size: var(--bt-h2); line-height: 1.12; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; }
em { font-style: normal; font-weight: inherit; color: var(--bt-accent); }
:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 3px; }
.bt-skip { position: fixed; left: 12px; top: -64px; z-index: 300; padding: 10px 14px; background: var(--bt-accent); color: #000; font-family: var(--bt-f-mono); font-size: 13px; }
.bt-skip:focus { top: 10px; }
.bt-wrap { width: 100%; max-width: var(--bt-frame); margin: 0 auto; padding-inline: var(--bt-pad); box-sizing: border-box; }
.bt-lead { font-size: clamp(16px, 1.45vw, 18px); line-height: 1.7; max-width: 62ch; }
code, .bt-code { font-family: var(--bt-f-mono); font-size: 0.9em; padding: 1px 6px; border: 1px solid var(--bt-line); background: var(--bt-cell); color: var(--bt-white); }

/* ---- 2. Controls ----------------------------------------------------- */
/* Button system: one primary (filled brand orange), one secondary (outlined), one size scale. Radius/height/type come from tokens. */
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--bt-btn-h); padding: 0 var(--bt-btn-px); border: var(--bt-border-w) solid var(--bt-line-2); border-radius: var(--bt-radius); background: transparent; color: var(--bt-white); font-family: var(--bt-f-body); font-size: 14px; font-weight: 600; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; cursor: pointer; transition: background 0.22s var(--bt-ease), border-color 0.22s var(--bt-ease), color 0.22s var(--bt-ease), transform 0.22s var(--bt-ease), box-shadow 0.22s var(--bt-ease); }
.bt-btn:not(.bt-btn--primary):hover { border-color: var(--bt-accent-line); color: var(--bt-white); background: var(--bt-accent-dim); }
.bt-btn--primary { background: var(--bt-accent); border-color: var(--bt-accent); color: var(--bt-accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px -10px var(--bt-accent); }
.bt-btn--primary:hover { background: #ffb865; border-color: #ffb865; color: var(--bt-accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 12px 26px -10px var(--bt-accent); transform: translateY(-1px); }
.bt-btn:active { transform: translateY(0) scale(0.985); }
.bt-btn--ghost { background: transparent; }
.bt-btn--sm { --bt-btn-h: 38px; --bt-btn-px: 16px; font-size: 13px; }
.bt-btn--pill { font-weight: 600; letter-spacing: 0.01em; }
.bt-btn--bt-white { background: var(--bt-white); border-color: var(--bt-white); color: #000; } .bt-btn--bt-white:hover { background: #fff; color: #000; border-color: #fff; }
.bt-btn[disabled] { opacity: 0.6; cursor: progress; }
.bt-btn b { font-weight: 500; transition: transform 0.22s var(--bt-ease); } .bt-btn:hover b { transform: translate(2px, -2px); }
.bt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.bt-action-cluster { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bt-pill { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--bt-accent-line); border-radius: 2px; font-family: var(--bt-f-mono); font-size: 11.5px; font-weight: 600;  color: var(--bt-accent); }
.bt-pill--plain { border-color: var(--bt-line-2); color: var(--bt-text); }

/* ---- 3. Navigation --------------------------------------------------- */
.bt-mark { display: block; flex: none; width: var(--bt-mark-w, 38px); aspect-ratio: 64 / 62; shape-rendering: crispEdges; }
.bt-mark--nav { --bt-mark-w: 38px; }
.bt-mark--footer { --bt-mark-w: 48px; }
.bt-mark--hero { width: 100%; height: auto; max-height: 100%; }
.bt-mark--hero-measure { opacity: 0; pointer-events: none; }
.bt-mark__cursor { animation: bt-mark-cursor 0.95s ease-in-out infinite; }
@keyframes bt-mark-cursor {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0.18; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-mark__cursor { animation: none !important; opacity: 1 !important; }
}
.bt-brand-logo { display: block; flex: none; width: auto; height: 30px; max-width: min(172px, 46vw); object-fit: contain; object-position: left center; }
.bt-brand-logo--footer { height: 34px; max-width: 196px; }
.bt-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; transition: opacity 0.2s; }
.bt-brand:hover { opacity: 0.92; }
.bt-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; box-sizing: border-box; width: 100%; padding: 0; margin: 0; background: transparent; border: 0; height: auto; pointer-events: none; }
.bt-nav__bar { box-sizing: border-box; width: 100%; background: var(--bt-nav-bar-bg); backdrop-filter: blur(14px) saturate(1.08); -webkit-backdrop-filter: blur(14px) saturate(1.08); box-shadow: var(--bt-nav-shadow); transition: background 0.25s var(--bt-ease); pointer-events: auto; }
.bt-nav.is-scrolled .bt-nav__bar { background: var(--bt-nav-bar-bg-scrolled); }
.bt-nav.is-menu-open .bt-nav__bar { background: var(--bt-nav-bar-bg-open); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; } /* bar + panel read as one surface; the panel carries the shadow */
.bt-nav__shell { position: relative; box-sizing: border-box; width: 100%; max-width: var(--bt-nav-inner-max); height: var(--bt-nav-h); margin: 0 auto; padding-inline: var(--bt-pad); }
.bt-nav__inner { box-sizing: border-box; width: 100%; height: 100%; display: flex; align-items: stretch; gap: clamp(8px, 1.5vw, 16px); min-width: 0; }
.bt-nav__inner > .bt-brand { align-self: center; }
.bt-nav__inner > .bt-brand { flex: none; margin: 0; padding: 0; border-right: 0; }
.bt-nav__end { display: flex; align-items: stretch; justify-content: flex-end; gap: clamp(6px, 1vw, 12px); flex: 1; min-width: 0; margin-left: auto; }
.bt-nav__links { display: flex; align-items: stretch; justify-content: flex-end; gap: 0; flex: none; min-width: 0; }
.bt-nav__links > a, .bt-nav__drop > button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; border: 0; border-radius: 0; background: none; font-family: var(--bt-f-body); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--bt-text); cursor: pointer; white-space: nowrap; transition: color 0.2s var(--bt-ease); }
.bt-nav__links > a::after, .bt-nav__drop > button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--bt-accent); transform: scaleX(0); transform-origin: left; opacity: 0.55; transition: transform 0.25s var(--bt-ease), opacity 0.2s; }
.bt-nav__links > a:hover, .bt-nav__drop > button:hover, .bt-nav__drop.is-open > button { color: var(--bt-white); } .bt-nav__links > a:hover::after, .bt-nav__drop > button:hover::after, .bt-nav__drop.is-open > button::after { transform: scaleX(1); }
.bt-nav__links a[aria-current="page"], .bt-nav__drop.is-current > button { color: var(--bt-white); } .bt-nav__links a[aria-current="page"]::after, .bt-nav__drop.is-current > button::after { transform: scaleX(1); opacity: 1; }
.bt-nav__drop > button svg { width: 9px; height: 9px; opacity: 0.7; transition: transform 0.25s var(--bt-ease); } .bt-nav__drop.is-open > button svg { transform: rotate(180deg); opacity: 1; }
.bt-nav__chevron { width: 9px; height: 9px; flex: none; opacity: 0.7; transition: transform 0.25s var(--bt-ease), opacity 0.2s; }
.bt-nav__chevron.is-open { transform: rotate(180deg); opacity: 1; }
.bt-nav__drop { position: relative; display: flex; align-items: stretch; } /* full bar height: no dead zone between trigger and panel */
.bt-nav__drop::after { content: ""; position: fixed; left: 0; right: 0; top: calc(var(--bt-nav-h) - 1px); height: 12px; display: none; } .bt-nav__drop.is-open::after { display: block; } /* hover bridge if the panel ever sits below the bar */
.bt-nav__actions { display: flex; align-items: center; gap: 4px; flex: none; margin-left: 12px; }
.bt-nav__cta-cluster { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.bt-nav__mobile-cta { display: flex; align-items: center; gap: 10px; margin-top: 18px; width: 100%; }
.bt-nav__mobile-cta .bt-btn { flex: 1; margin-top: 0; }

.bt-nav__cta { flex: none; height: 36px; padding: 0 18px; font-size: 13px; font-weight: 600; box-shadow: none; }
.bt-nav__cta:hover { transform: none; }
.bt-nav__menu { position: fixed; top: var(--bt-nav-h); left: 0; right: 0; z-index: 99; width: 100%; padding: 0; border: 0; background: var(--bt-nav-menu-bg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.22s var(--bt-ease), transform 0.22s var(--bt-ease), visibility 0s linear 0.22s; box-shadow: var(--bt-nav-menu-shadow); pointer-events: none; }
.bt-nav__drop.is-open .bt-nav__menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.bt-nav__menu-inner { box-sizing: border-box; width: 100%; max-width: var(--bt-nav-inner-max); margin: 0 auto; padding-inline: var(--bt-pad); }
.bt-nav__menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 2px; transition: background 0.15s; } .bt-nav__menu a:hover, .bt-nav__menu a:focus-visible { background: rgba(255, 255, 255, 0.05); } .bt-nav__menu strong { font-size: 14px; font-weight: 600; color: var(--bt-white); } .bt-nav__menu span { font-size: 13px; line-height: 1.45; color: var(--bt-muted); }
.bt-nav__toggle { display: none; width: 38px; height: 38px; margin-left: auto; flex: none; align-items: center; justify-content: center; border: 0; border-radius: 2px; background: transparent; color: var(--bt-white); cursor: pointer; transition: border-color 0.2s, background 0.2s; } .bt-nav__toggle:hover { background: rgba(255, 255, 255, 0.06); }
.bt-nav__toggle:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 2px; }
.bt-nav__mobile { display: none; }
.bt-nav__backdrop { display: none; }

/* ---- 4. Frame & sections --------------------------------------------- */
.bt-frame { position: relative; z-index: 1; width: 100%; max-width: var(--bt-frame); margin: 0 auto; border-inline: 0; background: var(--bt-bg); box-sizing: border-box; }
.bt-s { position: relative; padding: var(--bt-sec-y) var(--bt-pad); border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bt-s__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--bt-head-gap); }
.bt-s__head h2 { margin: 0; font-size: var(--bt-h2); } .bt-s__head p { margin: 10px 0 0; max-width: 60ch; font-size: 16.5px; }
.bt-s::before, .bt-s::after,
.bt-psec::before, .bt-psec::after,
.bt-band::before, .bt-band::after,
.bt-cta.bt-wrap::before, .bt-cta.bt-wrap::after,
.bt-faq::before, .bt-faq::after,
.bt-wrap.bt-stats::before, .bt-wrap.bt-stats::after,
.bd-article__foot::before, .bd-article__foot::after {
  content: ""; position: absolute; top: -5px; width: 9px; height: 9px; background: var(--bt-bg); border: var(--bt-border-w) solid var(--bt-border-color); z-index: 2; pointer-events: none;
}
.bt-s::before, .bt-psec::before, .bt-band::before, .bt-cta.bt-wrap::before, .bt-faq::before, .bt-wrap.bt-stats::before, .bd-article__foot::before { left: -5px; }
.bt-s::after, .bt-psec::after, .bt-band::after, .bt-cta.bt-wrap::after, .bt-faq::after, .bt-wrap.bt-stats::after, .bd-article__foot::after { right: -5px; }
.bt-hero.bt-s::before, .bt-hero.bt-s::after { display: none; }
.bt-s__more { flex: none; font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-text); transition: color 0.2s; } .bt-s__more:hover { color: var(--bt-accent); }
.bt-s__title { margin: 0 0 24px; font-size: clamp(24px, 3vw, 34px); }
.bt-s__intro { max-width: 70ch; margin-bottom: 28px; }
.bt-grid { display: grid; gap: 1px; background: var(--bt-line-inner); border: var(--bt-border-w) solid var(--bt-border-color); }
.bt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bt-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bt-cell { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--bt-card-pad); background: var(--bt-surface); box-shadow: var(--bt-card-shadow); transition: background 0.25s, box-shadow 0.25s; }
a.bt-cell:hover, a.bt-cell:focus-visible { background: var(--bt-surface-hover); box-shadow: var(--bt-card-shadow), inset 0 0 0 1px var(--bt-accent-line); z-index: 1; }
.bt-cell--link { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 24px; font-family: var(--bt-f-mono); font-size: 13px; color: var(--bt-text); } a.bt-cell--link:hover { color: var(--bt-accent); }
.bt-cell h3 { margin: 0; } .bt-cell p { margin: 0; font-size: 15px; line-height: 1.65; }
.bt-cell__icon { width: 22px; height: 22px; margin-bottom: 8px; color: var(--bt-accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bt-cell__label { font-family: var(--bt-f-mono); font-size: 12.5px; font-weight: 600;  color: var(--bt-accent); }
.bt-cell__meta { margin-top: auto; font-family: var(--bt-f-mono); font-size: 12px; color: var(--bt-muted); }

/* ---- 5. Hero: copy and a simulated agent terminal on the left, the logo it "builds" on the right ------------ */
.bt-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); grid-template-rows: auto auto; column-gap: clamp(24px, 4vw, 64px); row-gap: 28px; align-items: start; padding: clamp(68px, 9vw, 132px) var(--bt-pad) clamp(100px, 11vw, 160px); border-top: 0; background: var(--bt-bg); text-align: left; }
.bt-hero > * { position: relative; z-index: 1; }
.bt-hero > canvas.bt-hero__field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.bt-hero__copy { grid-column: 1; grid-row: 1; max-width: 560px; }
.bt-hero h1 { max-width: 14ch; margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 56px); animation: bt-rise 0.9s 0.2s var(--bt-ease) both; }
.bt-hero .bt-lead { margin: 0; font-size: clamp(16px, 1.35vw, 18px); animation: bt-rise 0.9s 0.35s var(--bt-ease) both; }
.bt-hero .bt-actions { justify-content: flex-start; margin-top: 24px; animation: bt-rise 0.9s 0.5s var(--bt-ease) both; }
.bt-hart { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; justify-content: center; }
.bt-hart__mark { width: clamp(240px, 32vw, 400px); aspect-ratio: 64 / 62; display: flex; align-items: center; justify-content: center; }
.bt-agent { grid-column: 1; grid-row: 2; max-width: 560px; border: var(--bt-border-w) solid var(--bt-border-color); background: var(--bt-agent-panel); backdrop-filter: blur(4px); box-shadow: var(--bt-card-shadow); font-family: var(--bt-f-mono-real); animation: bt-rise 0.9s 0.65s var(--bt-ease) both; }
.bt-agent__bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); font-size: 12px; color: var(--bt-text); }
.bt-agent__name { display: inline-flex; align-items: center; gap: 8px; color: var(--bt-white); font-weight: 600; }
.bt-agent__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bt-accent); box-shadow: 0 0 8px rgba(255, 161, 56, 0.55); }
.bt-agent__dot--collapse, .bt-agent__dot--rest { background: #8a8a8a; box-shadow: none; }
.bt-agent__status { margin-left: auto; color: var(--bt-accent); letter-spacing: 0.04em; }
.bt-agent__depth { display: inline-flex; align-items: center; gap: 4px; color: var(--bt-muted); } .bt-agent__depth b { width: 10px; height: 5px; background: rgba(255, 255, 255, 0.14); transition: background 0.3s; } .bt-agent__depth b.is-on { background: var(--bt-accent); }
.bt-agent__body { height: 212px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: #d4d4d4; white-space: pre-wrap; overflow: hidden; }
.bt-agent__message { margin: 0 0 10px; min-height: 2.5em; font-size: 14px; line-height: 1.5; color: var(--bt-white); white-space: normal; animation: bt-agent-msg 0.42s var(--bt-ease) both; }
.bt-agent__message.is-static { animation: none; }
@keyframes bt-agent-msg { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.bt-agent__prompt { height: 1.6em; color: var(--bt-white); display: flex; align-items: center; }
.bt-agent__flag { height: 1.6em; margin-top: 2px; color: var(--bt-accent); font-weight: 600; letter-spacing: 0.02em; }
.bt-agent__stack { margin: 12px 0 0; padding: 12px 0 0; border-top: var(--bt-border-w) solid var(--bt-line-inner); }
.bt-agent__stack li { height: 1.6em; color: rgba(255, 255, 255, 0.22); transition: color 0.4s var(--bt-ease); } .bt-agent__stack li.is-on { color: #cfcfcf; }
.bt-agent__caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; background: var(--bt-accent); animation: bt-caret 1.1s steps(1) infinite; }
.bt-agent__foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: var(--bt-border-w) solid var(--bt-line-inner); font-size: 11.5px; color: var(--bt-muted); }
@keyframes bt-caret { 50% { opacity: 0; } } @keyframes bt-line-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .bt-hero { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 22px; }
  .bt-hero__copy { grid-column: 1; grid-row: 1; max-width: none; }
  .bt-hart { grid-column: 1; grid-row: 2; }
  .bt-agent { grid-column: 1; grid-row: 3; max-width: none; }
  .bt-hart__mark { width: min(260px, 72vw); }
}

/* ---- 6. Home components ---------------------------------------------- */
.bt-term { background: var(--bt-surface); box-shadow: var(--bt-card-shadow); border: var(--bt-border-w) solid var(--bt-border-color); overflow: hidden; text-align: left; }
.bt-term__bar { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); font-family: var(--bt-f-mono); font-size: 12px; color: var(--bt-muted); } .bt-term__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); } .bt-term__bar span { margin-left: 8px; }
.bt-term__body { padding: 18px 22px; font-family: var(--bt-f-mono); font-size: 13.5px; line-height: 1.8; color: var(--bt-white); min-height: 200px; }
.bt-term__line { white-space: pre-wrap; word-break: break-word; opacity: 0; animation: bt-line-in 0.35s var(--bt-ease) forwards; }
.bt-term__line:nth-child(1) { animation-delay: 0.05s; } .bt-term__line:nth-child(2) { animation-delay: 0.18s; } .bt-term__line:nth-child(3) { animation-delay: 0.3s; } .bt-term__line:nth-child(4) { animation-delay: 0.42s; } .bt-term__line:nth-child(5) { animation-delay: 0.54s; } .bt-term__line:nth-child(6) { animation-delay: 0.66s; } .bt-term__line:nth-child(7) { animation-delay: 0.78s; }
.t-p { color: var(--bt-accent); font-weight: 600; } .t-c { color: var(--bt-muted); } .t-ok span { color: var(--bt-ok); }
.t-caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: var(--bt-accent); animation: bt-blink 1s steps(1) infinite; }

.bt-svc-panel { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; background: var(--bt-surface); border: var(--bt-border-w) solid var(--bt-border-color); box-shadow: var(--bt-card-shadow); text-align: left; min-width: 0; }
.bt-svc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); }
.bt-svc-panel__eyebrow { font-family: var(--bt-f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bt-accent); }
.bt-svc-panel__status { font-family: var(--bt-f-mono); font-size: 11px; color: var(--bt-muted); }
.bt-svc-panel__score { display: flex; align-items: center; gap: 16px; }
.bt-svc-panel__score strong { display: block; font-size: 15px; margin-bottom: 4px; }
.bt-svc-panel__score p { margin: 0; font-size: 13px; color: var(--bt-muted); }
.bt-svc-panel__ring { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--bt-f-mono); font-size: 15px; font-weight: 600; color: var(--bt-white); }
.bt-svc-panel__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bt-svc-panel__ring-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 3; }
.bt-svc-panel__ring-fill { fill: none; stroke: var(--bt-accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: calc(113 - (113 * var(--bt-ring, 70) / 100)); transition: stroke-dashoffset 1.1s var(--bt-ease); }
.bt-svc-panel__metrics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-svc-panel__metrics li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--bt-muted); }
.bt-svc-panel__pill { font-family: var(--bt-f-mono); font-size: 11px; padding: 3px 8px; border: var(--bt-border-w) solid var(--bt-line-inner); color: var(--bt-text); background: var(--bt-cell); }
.bt-svc-panel__pill--ok { border-color: rgba(74, 222, 128, 0.35); color: #86efac; }
.bt-svc-panel__pill--warn { border-color: rgba(255, 161, 56, 0.45); color: #ffc078; }
.bt-svc-panel__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-svc-panel__issue { font-size: 13px; line-height: 1.45; padding-left: 14px; position: relative; color: var(--bt-muted); }
.bt-svc-panel__issue::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.bt-svc-panel__issue--warn::before { background: var(--bt-accent); }
.bt-svc-panel__cta { width: 100%; justify-content: center; margin-top: 4px; }
.bt-svc-panel__board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bt-svc-panel__col { display: flex; flex-direction: column; gap: 6px; }
.bt-svc-panel__col > span { font-family: var(--bt-f-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bt-muted); }
.bt-svc-panel__card { padding: 8px 10px; font-size: 12px; background: var(--bt-cell); border: var(--bt-border-w) solid var(--bt-line-inner); }
.bt-svc-panel__card--hot { border-color: rgba(255, 161, 56, 0.5); }
.bt-svc-panel__card--muted { color: var(--bt-muted); font-family: var(--bt-f-mono); font-size: 11px; }
.bt-svc-panel__chart { display: flex; align-items: flex-end; gap: 8px; height: 72px; padding: 10px 12px; background: var(--bt-cell); border: var(--bt-border-w) solid var(--bt-line-inner); }
.bt-svc-panel__chart > span { flex: 1; align-self: flex-end; font-family: var(--bt-f-mono); font-size: 10px; color: var(--bt-muted); text-align: center; }
.bt-svc-panel__bar { flex: 1; height: var(--h, 50%); min-height: 12px; background: rgba(255, 255, 255, 0.12); border-radius: 2px 2px 0 0; animation: bt-bar-grow 0.9s var(--bt-ease) backwards; }
.bt-svc-panel__bar--hot { background: rgba(255, 161, 56, 0.55); }
@keyframes bt-bar-grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }
.bt-svc-panel__chat { display: flex; flex-direction: column; gap: 8px; }
.bt-svc-panel__bubble { font-size: 12.5px; line-height: 1.45; padding: 10px 12px; background: var(--bt-cell); border: var(--bt-border-w) solid var(--bt-line-inner); max-width: 95%; }
.bt-svc-panel__bubble--user { align-self: flex-end; color: var(--bt-text); }
.bt-svc-panel__bubble--handoff { border-color: rgba(255, 161, 56, 0.45); background: rgba(255, 161, 56, 0.08); }
.bt-svc-panel__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bt-cell); border: var(--bt-border-w) solid var(--bt-line-inner); font-size: 12px; }
.bt-svc-panel__node { padding: 6px 10px; border: var(--bt-border-w) solid var(--bt-line-inner); font-family: var(--bt-f-mono); font-size: 11px; }
.bt-svc-panel__node--hot { border-color: rgba(255, 161, 56, 0.5); color: #ffc078; }
.bt-svc-panel__flow-arrow { color: var(--bt-muted); font-family: var(--bt-f-mono); }
.bt-svc-panel__funnel { display: flex; flex-direction: column; gap: 6px; }
.bt-svc-panel__funnel div { width: var(--w, 100%); padding: 8px 10px; font-size: 12px; background: var(--bt-cell); border: var(--bt-border-w) solid var(--bt-line-inner); }
.bt-svc-panel__funnel--hot { border-color: rgba(255, 161, 56, 0.45); }
.bt-svc-panel__hub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11px; font-family: var(--bt-f-mono); }
.bt-svc-panel__hub-core { grid-column: 1 / -1; text-align: center; padding: 10px; border: var(--bt-border-w) solid rgba(255, 161, 56, 0.45); color: #ffc078; }
.bt-svc-panel__hub span:not(.bt-svc-panel__hub-core) { padding: 8px; text-align: center; background: var(--bt-cell); border: var(--bt-border-w) solid var(--bt-line-inner); color: var(--bt-muted); }

.bt-post { display: flex; flex-direction: column; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); transition: background 0.25s, box-shadow 0.25s; } .bt-post:hover { background: var(--bt-surface-hover); box-shadow: var(--bt-card-shadow), inset 0 0 0 1px var(--bt-accent-line); z-index: 1; }
.bt-post__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px; }
.bt-post__meta { display: flex; align-items: center; gap: 12px; font-family: var(--bt-f-mono); font-size: 12px; color: var(--bt-accent); }
.bt-post h2, .bt-post h3 { margin: 0; font-size: 19px; line-height: 1.3; } .bt-post p { margin: 0; font-size: 14.5px; } .bt-post__more { margin-top: auto; padding-top: 6px; font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-text); } .bt-post:hover .bt-post__more { color: var(--bt-accent); }
.bt-svc h3 { margin-top: 2px; }

.bt-works { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bt-gap); }
.bt-tech { display: flex; flex-direction: column; }
.bt-tech__tabs { display: flex; flex-wrap: wrap; gap: 1px; padding: 12px 12px 0; background: var(--bt-line-inner); border-bottom: var(--bt-border-w) solid var(--bt-line-inner); }
.bt-tech__tab { padding: 8px 14px; border: 0; border-radius: 2px 2px 0 0; background: var(--bt-cell); font-family: var(--bt-f-body); font-size: 13.5px; font-weight: 500; color: var(--bt-muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.bt-tech__tab:hover { color: var(--bt-text); background: var(--bt-cell-2); }
.bt-tech__tab[aria-selected="true"] { background: var(--bt-surface); color: var(--bt-white); box-shadow: inset 0 0 0 1px var(--bt-line-inner); }
.bt-tech__panel { padding: 0; background: var(--bt-surface); }
.bt-tech__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 1px; background: var(--bt-line-inner); }
.bt-tech__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 96px; padding: 16px 10px; background: var(--bt-surface); color: var(--bt-muted); text-align: center; transition: background 0.22s, color 0.22s; }
.bt-tech__item:hover { background: var(--bt-cell-2); color: var(--bt-white); }
.bt-tech__icon { flex: none; opacity: 0.92; }
.bt-tech__mono { display: grid; place-items: center; width: 28px; height: 28px; border: var(--bt-border-w) solid var(--bt-line-inner); border-radius: 2px; font-family: var(--bt-f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--bt-text); }
.bt-tech__name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.bt-tech__strip { padding: var(--bt-gap); border-top: var(--bt-border-w) solid var(--bt-line-inner); }
.bt-tech__note { margin: 0; padding: 12px 16px 14px; border-top: var(--bt-border-w) solid var(--bt-line-inner); font-family: var(--bt-f-mono); font-size: 11.5px; line-height: 1.45; color: var(--bt-muted); }
.bt-marquee { position: relative; overflow: hidden; border: var(--bt-border-w) solid var(--bt-border-color); background: var(--bt-surface); }
/* edge fades are overlays inside the frame (a mask on the frame itself would clip its border) */
.bt-marquee::before, .bt-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 1; pointer-events: none; }
.bt-marquee::before { left: 0; background: linear-gradient(90deg, var(--bt-surface), transparent); } .bt-marquee::after { right: 0; background: linear-gradient(270deg, var(--bt-surface), transparent); }
.bt-marquee__track { display: flex; width: max-content; max-width: none; will-change: transform; } /* max-width:none overrides the global div cap that froze the loop */
/* width follows the label: default 150px, grows for longer names, identical in every repeat so the loop stays seamless */
.bt-marquee__item { flex: none; white-space: nowrap; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 150px; height: 104px; padding-inline: 22px; border-right: var(--bt-border-w) solid var(--bt-line-inner); color: var(--bt-muted); font-size: 14px; font-weight: 600; text-align: center; transition: color 0.25s, background 0.25s; } .bt-marquee__item:hover { color: var(--bt-white); background: var(--bt-cell-2); }
.bt-marquee__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bt-ruler { height: 32px; border-block: var(--bt-border-w) solid var(--bt-line-inner); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 12px) center / 100% 8px no-repeat; }
/* One frame, every line drawn once: the frame owns the outer border; bands own only their inner edges; rails own only the edge facing the rows. */
.bt-works__frame { --bt-rail: 32px; --bt-edge: var(--bt-border-w) solid var(--bt-line-inner); position: relative; padding-inline: var(--bt-rail); border: var(--bt-edge); background: var(--bt-surface); }
.bt-works__frame > .bt-ruler { position: relative; z-index: 1; background-color: var(--bt-surface); max-width: none; margin-inline: calc(var(--bt-rail) * -1); border-block: 0; }
.bt-works__frame > .bt-ruler:first-child { border-bottom: var(--bt-edge); }
.bt-works__frame > .bt-ruler:nth-child(3) { border-block: var(--bt-edge); }
.bt-works__frame > .bt-ruler:last-child { border-top: var(--bt-edge); }
.bt-works__frame::before, .bt-works__frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--bt-rail); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 12px) center / 8px 100% no-repeat; pointer-events: none; }
.bt-works__frame::before { left: 0; border-right: var(--bt-edge); } .bt-works__frame::after { right: 0; border-left: var(--bt-edge); }
.bt-works__frame .bt-marquee { border: 0; background: none; }
.bt-works__frame .bt-marquee::before { background: linear-gradient(90deg, var(--bt-surface), transparent); }


.bt-carousel { position: relative; }
.bt-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border: var(--bt-border-w) solid var(--bt-border-color); outline-offset: 4px; } .bt-carousel__track::-webkit-scrollbar { display: none; }
.bt-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1px; background: var(--bt-line-inner); min-height: 300px; }
.bt-slide > div { padding: clamp(22px, 3.5vw, 40px); background: var(--bt-surface); box-shadow: var(--bt-card-shadow); display: flex; flex-direction: column; justify-content: center; }
.bt-slide h3 { font-size: clamp(24px, 2.8vw, 34px); margin: 10px 0 10px; } .bt-slide p { font-size: 16px; max-width: 42ch; margin: 0; }
.bt-slide__apply { gap: 10px; } .bt-slide__apply > span { margin-bottom: 4px; font-family: var(--bt-f-mono); font-size: 12px;  color: var(--bt-muted); }
.bt-slide__apply a { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; margin: 0; border: 0; border-top: var(--bt-border-w) solid var(--bt-line-inner); font-family: var(--bt-f-mono); font-size: 13.5px; color: var(--bt-white); transition: color 0.2s, background 0.2s; } .bt-slide__apply a:hover { color: var(--bt-accent); background: var(--bt-accent-dim); }
.bt-carousel__bar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 12px 0 0; }
.bt-carousel__dots { display: flex; gap: 2px; } .bt-dot { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; } .bt-dot::before { content: ""; width: 18px; height: 2px; background: rgba(255, 255, 255, 0.25); transition: background 0.3s, width 0.3s var(--bt-ease); } .bt-dot[aria-current="true"]::before { width: 28px; background: var(--bt-accent); }
.bt-carousel__count { font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-muted); }
.bt-carousel__btns { display: flex; } .bt-arrow { width: 40px; height: 40px; border: var(--bt-border-w) solid var(--bt-border-color); background: var(--bt-btn-bg); color: var(--bt-btn-fg); font-family: var(--bt-f-mono); cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; } .bt-arrow + .bt-arrow { border-left: 0; } .bt-arrow:hover:not([disabled]) { border-color: var(--bt-accent); color: var(--bt-accent); background: var(--bt-surface-hover); } .bt-arrow[disabled] { opacity: 0.35; cursor: default; }

/* FAQ / questionnaires panel: horizontal dividers between items only */
.bt-faq { --bt-faq-dur: 0.38s; position: relative; display: grid; gap: 0; border: 0; }
.bt-faq::before, .bt-faq::after { content: none; display: none; }
.bt-faq__item {
  border-top: var(--bt-border-w) solid var(--bt-line-inner);
  border-bottom: 0;
  background: var(--bt-surface);
  box-shadow: var(--bt-card-shadow);
  transition: background var(--bt-faq-dur) var(--bt-ease);
}
.bt-faq__item.is-open { background: var(--bt-surface); box-shadow: var(--bt-card-shadow), inset 0 0 0 1px var(--bt-accent-line); }
.bt-faq__item--edge-start { border-top: 0; }
.bt-faq__item--edge-end { border-bottom: 0; }
.bt-faq__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 18px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--bt-white);
  text-align: left;
  transition: color 0.2s;
}
.bt-faq__trigger:hover { color: var(--bt-accent); }
.bt-faq__trigger:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: -2px; }
.bt-faq__icon {
  flex: none;
  font-family: var(--bt-f-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--bt-accent);
  transform: rotate(0deg);
  transition: transform var(--bt-faq-dur) var(--bt-ease);
}
.bt-faq__item.is-open .bt-faq__icon { transform: rotate(45deg); }
.bt-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--bt-faq-dur) var(--bt-ease);
}
.bt-faq__item.is-open .bt-faq__panel { grid-template-rows: 1fr; }
.bt-faq__panel-inner { overflow: hidden; min-height: 0; }
.bt-faq__answer {
  margin: 0;
  padding: 0 24px 20px;
  max-width: 68ch;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--bt-faq-dur) var(--bt-ease), transform var(--bt-faq-dur) var(--bt-ease);
}
.bt-faq__item.is-open .bt-faq__answer { opacity: 1; transform: none; }
.bt-cta { text-align: center; }
.bt-cta.bt-wrap { position: relative; padding: var(--bt-sec-y) var(--bt-pad); border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bt-cta h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(30px, 4.6vw, 56px); } .bt-cta p { max-width: 50ch; margin-inline: auto; font-size: 17px; } .bt-cta .bt-actions { justify-content: center; }
.bt-cta__box { text-align: center; }

/* ---- 7. Inner pages -------------------------------------------------- */
.bt-page { display: block; }
.bt-phero { padding: var(--bt-top) var(--bt-pad) clamp(32px, 4.6vw, 56px); }
.bt-phero h1 { margin-bottom: 18px; }
.bt-phero h1 { max-width: 20ch; font-size: clamp(32px, 4.6vw, 58px); } .bt-phero--wide h1 { max-width: 24ch; }
.bt-phero > p, .bt-phero__grid > div > p { max-width: 60ch; font-size: 17.5px; }
.bt-phero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.bt-psec { position: relative; padding: var(--bt-sec-y) var(--bt-pad); border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bt-wrap.bt-psec, .bt-wrap.bt-phero, .bt-wrap.bt-cta, .bt-wrap.bt-article { max-width: none; margin: 0; }
.bt-head { max-width: 70ch; margin-bottom: 28px; } .bt-head > p { font-size: 17px; margin-bottom: 0; }
.bt-cols3, .bt-cols4, .bt-stats, .bt-rows, .bt-posts { display: grid; gap: 1px; background: var(--bt-line-inner); border: var(--bt-border-w) solid var(--bt-border-color); }
.bt-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bt-cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bt-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bt-cols3 > .bt-card, .bt-cols4 > .bt-step { padding: 24px; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); }
.bt-num { display: block; margin-bottom: 10px; font-family: var(--bt-f-mono); font-size: 12.5px; font-weight: 600; color: var(--bt-accent); }
.bt-card h3 { font-size: 19px; } .bt-step strong { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--bt-white); } .bt-card p, .bt-step p { margin: 0; font-size: 15px; }
.bt-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } .bt-stat { padding: 22px 24px; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); }
.bt-stat strong { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.04em; color: var(--bt-white); line-height: 1.1; } .bt-stat strong span { color: var(--bt-accent); } .bt-stat p { margin: 6px 0 0; font-size: 14px; color: var(--bt-muted); }
.bt-rows { grid-template-columns: 1fr; }
.bt-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); transition: background 0.25s, box-shadow 0.25s; } .bt-row:hover { background: var(--bt-surface-hover); box-shadow: var(--bt-card-shadow), inset 0 0 0 1px var(--bt-accent-line); z-index: 1; }
.bt-row > b { font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-accent); } .bt-row h3 { margin-bottom: 4px; font-size: 21px; } .bt-row p { margin: 0; max-width: 70ch; font-size: 15px; }
.bt-row small { font-family: var(--bt-f-mono); font-size: 11.5px;  color: var(--bt-muted); white-space: nowrap; }
.bt-detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.bt-detail__nav { position: sticky; top: 76px; display: grid; border: var(--bt-border-w) solid var(--bt-border-color); }
.bt-detail__nav a { padding: 10px 14px; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-text); transition: color 0.2s, background 0.2s; } .bt-detail__nav a:last-child { border-bottom: 0; } .bt-detail__nav a:hover { color: var(--bt-white); background: var(--bt-cell-2); } .bt-detail__nav a.active { color: var(--bt-accent); background: var(--bt-accent-dim); }
.bt-detail__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--bt-line-inner); border: var(--bt-border-w) solid var(--bt-border-color); align-content: start; }
.bt-detail__body > h2, .bt-detail__body > p, .bt-detail__body > .bt-actions { grid-column: 1 / -1; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); margin: 0; padding-inline: 24px; } .bt-detail__body > h2 { padding-top: 24px; padding-right: 25%; font-size: var(--bt-h2); } .bt-detail__body > p { padding-bottom: 20px; padding-right: 15%; font-size: 17px; max-width: none; } .bt-detail__body > .bt-actions { padding-block: 20px 24px; }
.bt-block { padding: 24px; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); } .bt-block:nth-of-type(1) { grid-row: span 2; }
.bt-block h3 { font-family: var(--bt-f-mono); font-size: 12.5px; font-weight: 600;  color: var(--bt-accent); }
.bt-block p { font-size: 15.5px; margin: 0; } .bt-block ul { display: grid; gap: 10px; } .bt-block li { position: relative; padding-left: 20px; color: #d4d4d4; font-size: 15.5px; } .bt-block li::before { content: ">"; position: absolute; left: 0; font-family: var(--bt-f-mono); color: var(--bt-accent); }
.bt-band { position: relative; padding: var(--bt-sec-y) var(--bt-pad); border-top: var(--bt-border-w) solid var(--bt-border-color); } .bt-wrap.bt-band { max-width: none; margin: 0; }
.bt-band__copy { max-width: 760px; margin-inline: auto; text-align: center; } .bt-band__copy h2 { font-size: var(--bt-h2); } .bt-band__copy p { margin-inline: auto; max-width: 52ch; }

/* ---- 8. Article, prose, contact -------------------------------------- */
.bt-article { padding: var(--bt-top) var(--bt-pad) clamp(48px, 7vw, 96px); }
.bt-article--read { padding-top: clamp(40px, 6vw, 72px); }
.bd-article { width: 100%; max-width: 42rem; margin-inline: auto; }
.bd-article__head { margin-bottom: clamp(28px, 4vw, 40px); padding-bottom: clamp(24px, 3.5vw, 36px); border-bottom: var(--bt-border-w) solid var(--bt-border-color); }
.bd-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-muted); }
.bd-article__meta .bt-pill { margin: 0; }
.bd-article__meta time { color: var(--bt-text); }
.bd-article__meta span.bd-article__sep { color: var(--bt-line); user-select: none; }
.bt-article--read h1 { max-width: none; margin-bottom: 16px; font-size: clamp(32px, 4.8vw, 50px); line-height: 1.08; letter-spacing: -0.04em; }
.bt-article--read .bt-intro { max-width: none; margin: 0 0 14px; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.7; color: #c9c9c9; }
.bd-article__byline { margin: 0; font-size: 14.5px; color: var(--bt-muted); }
.bd-article__body { padding-top: clamp(8px, 1.5vw, 16px); }
.bd-article__faq { margin-top: clamp(36px, 5vw, 48px); padding-top: clamp(28px, 4vw, 36px); border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bd-article__faq h2 { margin: 0 0 20px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.03em; }
.bd-faq { margin: 0; display: grid; gap: 22px; }
.bd-faq__item dt { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.bd-faq__item dd { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--bt-muted); }
.bd-article__foot { position: relative; margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(24px, 3vw, 32px); border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bd-head { margin-bottom: 40px; }
.bt-article .bt-meta { display: flex; gap: 16px; margin-bottom: 16px; font-family: var(--bt-f-mono); font-size: 12.5px;  color: var(--bt-accent); } .bd-time { color: var(--bt-muted); }
.bt-article h1 { max-width: 22ch; font-size: clamp(30px, 4.4vw, 54px); } .bt-article .bt-intro { max-width: 62ch; margin: 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; color: #d4d4d4; }
.bd-focus { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; font-size: 14.5px; color: #d4d4d4; } .bd-focus span { font-family: var(--bt-f-mono); font-size: 12px;  color: var(--bt-accent); }
.bd-layout:has(.bd-toc) { display: grid; grid-template-columns: 220px minmax(0, 70ch); gap: clamp(24px, 5vw, 72px); align-items: start; }
.bd-toc { position: sticky; top: 76px; } .bd-toc__label { margin: 0 0 12px; font-family: var(--bt-f-mono); font-size: 12px;  color: var(--bt-muted); }
.bd-toc ol { counter-reset: bd; border-left: 1px solid var(--bt-line); } .bd-toc li { counter-increment: bd; }
.bd-toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 0 7px 12px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.4; color: var(--bt-muted); transition: color 0.2s, border-color 0.2s; } .bd-toc a::before { content: counter(bd, decimal-leading-zero); padding-top: 2px; font-family: var(--bt-f-mono); font-size: 11.5px; }
.bd-toc a:hover { color: var(--bt-white); } .bd-toc a.is-current { color: var(--bt-accent); border-left-color: var(--bt-accent); }
.bd-body h2, .bt-prose h2 { margin-top: 2.75rem; margin-bottom: 0.85rem; scroll-margin-top: calc(var(--bt-nav-h) + 12px); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.bd-body h3, .bt-prose h3 { margin-top: 2rem; margin-bottom: 0.65rem; font-size: 1.25rem; line-height: 1.3; }
.bd-body h2:first-child, .bt-prose h2:first-child { margin-top: 0; }
.bd-body p, .bd-body li, .bt-prose p { font-size: 17.5px; line-height: 1.82; margin-bottom: 1.25rem; }
.bd-body ul, .bd-body ol { margin: 0 0 1.35rem 1.35rem; padding: 0; list-style: disc; }
.bd-body ol { list-style: decimal; }
.bd-body li { margin-bottom: 0.45rem; }
.bd-body li::marker { color: var(--bt-accent); }
.bd-body blockquote { margin: 1.75rem 0; padding: 0.15rem 0 0.15rem 1.15rem; border-left: 2px solid var(--bt-border-color); color: #d4d4d4; font-size: 1.05em; line-height: 1.75; }
.bd-body a, .bt-prose a { color: var(--bt-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 161, 56, 0.45); }
.bd-body a:hover, .bt-prose a:hover { text-decoration-color: var(--bt-accent); }
.bd-body strong { color: #e5e5e5; font-weight: 600; }
.bd-body img { margin: 1.75rem 0; border: var(--bt-border-w) solid var(--bt-border-color); }
.bd-body hr { margin: 2.5rem 0; border: 0; border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bd-body pre, .bd-body code { font-family: var(--bt-f-mono-real); }
.bd-body pre { overflow-x: auto; padding: 16px 18px; border: var(--bt-border-w) solid var(--bt-border-color); background: var(--bt-cell); font-size: 14px; line-height: 1.6; }
.bd-body :not(pre) > code { font-size: 0.9em; padding: 1px 6px; border: var(--bt-border-w) solid var(--bt-border-color); background: var(--bt-cell); color: var(--bt-white); }
.bt-prose { max-width: 42rem; margin-inline: auto; }
.bt-callout { margin: 32px 0; padding: 20px 24px; border: var(--bt-border-w) solid var(--bt-border-color); border-left: 2px solid var(--bt-accent); background: var(--bt-surface); box-shadow: var(--bt-card-shadow); font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--bt-white); }
.bt-contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.bt-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: var(--bt-border-w) solid var(--bt-border-color); background: var(--bt-surface); box-shadow: var(--bt-card-shadow); }
.bt-form label { display: grid; gap: 6px; font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-muted); }
.bt-form input, .bt-form select, .bt-form textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: var(--bt-border-w) solid var(--bt-border-color); border-radius: 0; background: var(--bt-field); color: var(--bt-white); font-family: var(--bt-f-body); font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.bt-form textarea { min-height: 140px; resize: vertical; } .bt-form ::placeholder { color: #525252; } .bt-form input:hover, .bt-form select:hover, .bt-form textarea:hover { border-color: rgba(255, 255, 255, 0.18); }
.bt-form input:focus, .bt-form select:focus, .bt-form textarea:focus { outline: none; border-color: var(--bt-accent); box-shadow: 0 0 0 3px var(--bt-accent-dim); }
.bt-form select option { background: var(--bt-surface); color: var(--bt-white); }
.bt-field--error input, .bt-field--error select, .bt-field--error textarea { border-color: var(--bt-danger); }
.bt-field-error { font-family: var(--bt-f-body); font-size: 13.5px; color: var(--bt-danger); } .bt-field-error::before { content: "✕ "; }
.bt-form .bt-btn { justify-self: start; } .bt-form-msg { min-height: 1.5em; margin: 0; font-size: 14.5px; color: var(--bt-ok); } .bt-form-msg--error { color: var(--bt-danger); }
.bt-contact__side { display: grid; gap: 16px; } .bt-info { display: grid; border: var(--bt-border-w) solid var(--bt-border-color); } .bt-info__row { display: grid; gap: 2px; padding: 14px 18px; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); } .bt-info__row:last-child { border-bottom: 0; }
.bt-info__row small { font-family: var(--bt-f-mono); font-size: 11px; color: var(--bt-muted); } .bt-info__row a { color: var(--bt-accent); word-break: break-word; } .bt-info__row span { color: #d4d4d4; }
.bt-minifaq { display: grid; gap: 1px; background: var(--bt-line-inner); border: var(--bt-border-w) solid var(--bt-border-color); } .bt-minifaq__item { padding: 16px 20px; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); } .bt-minifaq__item h3 { font-size: 16px; margin-bottom: 4px; } .bt-minifaq__item p { margin: 0; font-size: 14.5px; }
.bt-404 { padding: clamp(72px, 12vw, 140px) var(--bt-pad); text-align: center; } .bt-404 h1 { margin-inline: auto; }

/* ---- 9. Footer ------------------------------------------------------- */
.bt-footer { position: relative; border-top: var(--bt-border-w) solid var(--bt-border-color); border-bottom: 0; background: var(--bt-bg); }
.bt-footer::before, .bt-footer::after { content: ""; position: absolute; top: -5px; width: 9px; height: 9px; background: var(--bt-bg); border: var(--bt-border-w) solid var(--bt-border-color); z-index: 2; pointer-events: none; }
.bt-footer::before { left: -5px; }
.bt-footer::after { right: -5px; }
.bt-footer__legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px var(--bt-pad); border-top: var(--bt-border-w) solid var(--bt-border-color); font-size: 14px; color: var(--bt-muted); }
.bt-footer__join-legal { position: absolute; top: -5px; width: 9px; height: 9px; background: var(--bt-bg); border: var(--bt-border-w) solid var(--bt-border-color); z-index: 2; pointer-events: none; }
.bt-footer__join-legal--l { left: -5px; }
.bt-footer__join-legal--r { right: -5px; }
.bt-footer__main { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
.bt-footer__brand { display: flex; flex-direction: column; gap: 14px; padding: 40px var(--bt-pad); } .bt-footer__brand p { max-width: 34ch; margin: 0; font-size: 15px; }
.bt-footer__brand .bt-brand-logo--footer { height: 34px; }
.bt-footer__contact { margin-top: auto; display: grid; gap: 2px; font-family: var(--bt-f-mono); font-size: 12.5px; color: var(--bt-muted); } .bt-footer__contact a { color: var(--bt-white); } .bt-footer__contact a:hover { color: var(--bt-accent); }
.bt-footer__col { position: relative; padding: 40px var(--bt-pad); border-left: 0; }
/* Vertical dividers: inset to h4 top (padding-top) with equal bottom inset */
.bt-footer__col::before { content: ""; position: absolute; left: 0; top: 40px; bottom: 40px; border-left: var(--bt-border-w) solid var(--bt-line-inner); pointer-events: none; }
.bt-footer h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600;  color: var(--bt-muted); }
.bt-footer li a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--bt-white); transition: color 0.2s, transform 0.3s var(--bt-ease); } .bt-footer li a:hover { color: var(--bt-accent); transform: translateX(4px); }
.bt-footer__legal p { margin: 0; color: inherit; } .bt-footer__legal a { color: var(--bt-text); transition: color 0.2s; } .bt-footer__legal a:hover { color: var(--bt-accent); }


/* ---- 11. Motion & responsive ----------------------------------------- */
@keyframes bt-blink { 50% { opacity: 0.25; } } @keyframes bt-line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } @keyframes bt-shimmer { to { background-position: -200% 0; } }
@keyframes bt-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } } @keyframes bt-fade { from { opacity: 0; } } @keyframes bt-mark-in { from { opacity: 0; } }
@keyframes bt-marquee { to { transform: translateX(-50%); } }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--bt-ease), transform 0.7s var(--bt-ease); } .js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal > .bt-cell, .js .reveal > .bt-post, .js .reveal > .bt-step, .js .reveal > .bt-card, .js .reveal > .bt-row { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--bt-ease), transform 0.6s var(--bt-ease), background 0.25s, box-shadow 0.25s; }
.js .reveal.is-visible > .bt-cell, .js .reveal.is-visible > .bt-post, .js .reveal.is-visible > .bt-step, .js .reveal.is-visible > .bt-card, .js .reveal.is-visible > .bt-row { opacity: 1; transform: none; }
.reveal > :nth-child(2) { transition-delay: 0.06s !important; } .reveal > :nth-child(3) { transition-delay: 0.12s !important; } .reveal > :nth-child(4) { transition-delay: 0.18s !important; } .reveal > :nth-child(5) { transition-delay: 0.24s !important; } .reveal > :nth-child(6) { transition-delay: 0.3s !important; } .reveal > :nth-child(7) { transition-delay: 0.36s !important; } .reveal > :nth-child(8) { transition-delay: 0.42s !important; }
@media (max-width: 1000px) {
  .bt-grid--4, .bt-grid--5, .bt-cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-grid--3, .bt-cols3, .bt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-nav__end, .bt-nav__links, .bt-nav__actions { display: none; } .bt-nav__toggle { display: inline-flex; }
  .bt-nav__drop .bt-nav__menu { display: none !important; visibility: hidden !important; pointer-events: none !important; }
  .bt-nav__backdrop { display: block; position: fixed; inset: var(--bt-nav-h) 0 0; z-index: 98; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.42); cursor: pointer; }
  .bt-nav__mobile { display: none; position: fixed; top: var(--bt-nav-h); right: 0; bottom: 0; left: auto; width: min(100%, 400px); z-index: 99; flex-direction: column; padding: 0; overflow: hidden; background: var(--bt-bg); border-left: var(--bt-border-w) solid var(--bt-border-color); visibility: hidden; opacity: 0; transform: translateX(8px); transition: opacity 0.22s var(--bt-ease), transform 0.22s var(--bt-ease), visibility 0.22s; pointer-events: none; box-shadow: var(--bt-nav-menu-shadow); }
  .bt-nav__mobile.is-open { display: flex; visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .bt-nav__mobile-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--bt-pad) 16px; -webkit-overflow-scrolling: touch; }
  .bt-nav__mobile-list { list-style: none; margin: 0; padding: 0; }
  .bt-nav__mobile-item { border-bottom: var(--bt-border-w) solid var(--bt-line-inner); }
  .bt-nav__mobile-trigger, .bt-nav__mobile-link { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 2px; border: 0; background: none; font-family: var(--bt-f-body); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--bt-white); text-decoration: none; text-align: left; white-space: nowrap; cursor: pointer; transition: color 0.2s; }
  .bt-nav__mobile-link { justify-content: flex-start; }
  .bt-nav__mobile-trigger:hover, .bt-nav__mobile-link:hover { color: var(--bt-accent); }
  .bt-nav__mobile-trigger:focus-visible, .bt-nav__mobile-link:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 2px; }
  .bt-nav__mobile-trigger span.is-current, .bt-nav__mobile-link[aria-current="page"] { color: var(--bt-accent); }
  .bt-nav__mobile-sub { padding: 4px 0 14px 12px; margin: 0 0 4px 4px; border-left: var(--bt-border-w) solid var(--bt-line-inner); }
  .bt-nav__mobile-sub[hidden] { display: none !important; }
  .bt-nav__mobile-group { margin-bottom: 14px; }
  .bt-nav__mobile-group:last-of-type { margin-bottom: 10px; }
  .bt-nav__mobile-group h4 { margin: 0 0 6px; font-family: var(--bt-f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bt-accent); }
  .bt-nav__mobile-sublist { list-style: none; margin: 0; padding: 0; }
  .bt-nav__mobile-sub a { display: block; padding: 10px 8px; border-radius: 2px; text-decoration: none; transition: background 0.15s; }
  .bt-nav__mobile-sub a:hover, .bt-nav__mobile-sub a:focus-visible { background: rgba(255, 255, 255, 0.05); outline: none; }
  .bt-nav__mobile-sub a strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--bt-white); white-space: normal; }
  .bt-nav__mobile-sub a span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--bt-muted); white-space: normal; }
  .bt-nav__mobile-all { display: inline-flex !important; align-items: center; min-height: 44px; padding: 8px 10px !important; font-family: var(--bt-f-mono); font-size: 12.5px !important; font-weight: 600; color: var(--bt-accent) !important; }
  .bt-nav__mobile-cta { flex: none; padding: 14px var(--bt-pad) max(20px, env(safe-area-inset-bottom)); border-top: var(--bt-border-w) solid var(--bt-line-inner); background: var(--bt-surface); }
  .bt-nav__mobile-cta .bt-btn { width: 100%; margin: 0; min-height: 44px; }
}
@media (max-width: 820px) {
  .bt-phero__grid, .bt-contact, .bt-detail, .bt-slide { grid-template-columns: 1fr; } .bt-slide { min-height: 0; }
  .bt-detail__nav { position: static; grid-template-columns: repeat(2, 1fr); } .bt-detail__body { grid-template-columns: 1fr; } .bt-block:nth-of-type(1) { grid-row: auto; }
  .bd-layout:has(.bd-toc) { grid-template-columns: 1fr; gap: 24px; } .bd-toc { position: static; }
  .bt-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-footer__brand { grid-column: 1 / -1; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); } .bt-footer__col:nth-of-type(2) { border-left: 0; } .bt-footer__col:nth-of-type(2)::before { display: none; } .bt-footer__col { border-top: 0; }
   
  .bt-row { grid-template-columns: 32px minmax(0, 1fr); } .bt-row small { grid-column: 2; }
}
@media (max-width: 600px) {
  :root { --bt-nav-h: 56px; }
  .bt-nav__inner { gap: 6px; } .bt-brand-logo { height: 26px; max-width: min(148px, 52vw); } .bt-nav__actions { border-left: 0; padding-left: 0; }
  .bt-grid--2, .bt-grid--3, .bt-grid--4, .bt-grid--5, .bt-cols3, .bt-cols4, .bt-posts { grid-template-columns: 1fr; }
  .bt-hero .bt-actions .bt-btn, .bt-cta .bt-btn, .bt-form .bt-btn { width: 100%; }
  .bt-term__body { font-size: 12.5px; padding: 16px; }
  .bt-marquee__item { min-width: 128px; height: 108px; padding-inline: 16px; } .bt-works__frame { --bt-rail: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal > * { opacity: 1 !important; transform: none !important; } .bt-carousel__track { scroll-behavior: auto; } .bt-term__line { opacity: 1; } .bt-marquee__track { animation: none; transform: none !important; width: auto; flex-wrap: wrap; justify-content: center; } .bt-marquee__dup { display: none; } .bt-marquee__item { border-bottom: var(--bt-border-w) solid var(--bt-line-inner); } .bt-marquee::before, .bt-marquee::after { display: none; }
}

.bt-phero h1 em, .bt-article h1 em { font-size: 1.04em; }
@media (max-width: 820px) { .bt-detail__body > h2, .bt-detail__body > p { padding-right: 24px; } }

/* Signature motifs: corner handles on framed panels, node-and-rule section labels */
/* Service groups (Cloudflare-style categories) */

/* Capability tabs (segmented pills) */
.bt-seg { display: inline-flex; padding: 4px; gap: 2px; border: var(--bt-border-w) solid var(--bt-border-color); border-radius: 2px; background: var(--bt-surface); box-shadow: var(--bt-card-shadow); margin: 0 auto 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .bt-seg::-webkit-scrollbar { display: none; }
.bt-caps { display: flex; flex-direction: column; align-items: center; }
.bt-seg__btn { padding: 9px 18px; border: 0; border-radius: 2px; background: none; font-size: 14.5px; font-weight: 500; color: var(--bt-text); white-space: nowrap; cursor: pointer; transition: background 0.25s, color 0.25s; }
.bt-seg__btn:hover { color: var(--bt-white); } .bt-seg__btn[aria-selected="true"] { background: var(--bt-accent); color: var(--bt-accent-ink); font-weight: 600; }
.bt-caps__panel { width: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1px; background: var(--bt-line-inner); border: var(--bt-border-w) solid var(--bt-border-color); animation: bt-fade 0.5s var(--bt-ease) both; }
.bt-caps__copy, .bt-caps__art { background: var(--bt-surface); box-shadow: var(--bt-card-shadow); padding: clamp(22px, 3.5vw, 40px); }
.bt-caps__copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; } .bt-caps__copy h3 { margin: 4px 0 0; font-size: clamp(24px, 2.8vw, 34px); } .bt-caps__copy p { margin: 0; }
.bt-caps__copy ul { display: grid; gap: 8px; margin: 4px 0 8px; } .bt-caps__copy li { position: relative; padding-left: 20px; color: #d4d4d4; font-size: 15px; } .bt-caps__copy li::before { content: ">"; position: absolute; left: 0; font-family: var(--bt-f-mono); color: var(--bt-accent); }
.bt-caps__art { display: grid; place-items: center; background: var(--bt-surface); }
.bt-dg { width: 100%; max-width: 520px; } .bt-dg svg { width: 100%; height: auto; display: block; }
.bt-dg__t { font-family: var(--bt-f-mono); font-size: 11px; fill: #fafafa; }
.bt-dg__kicker { font-family: var(--bt-f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; fill: rgba(255, 255, 255, 0.45); }
.bt-dg__surface { fill: var(--bt-cell); stroke: var(--bt-border-color); stroke-width: 1; }
.bt-dg__surface--hot { stroke: #ffa138; }
.bt-dg__chrome { stroke: var(--bt-border-color); fill: rgba(255, 255, 255, 0.05); }
.bt-dg__field { fill: rgba(255, 255, 255, 0.06); }
.bt-dg__field--strong { fill: rgba(255, 255, 255, 0.12); }
.bt-dg__packet { fill: var(--bt-accent); }
.bt-draw {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.bt-draw--link {
  stroke: rgba(255, 161, 56, 0.88);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bt-dg--in-view .bt-draw {
  animation: bt-draw-line 0.82s var(--bt-ease) forwards;
}
@keyframes bt-draw-line {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.bt-pop { opacity: 0; }
.bt-dg--in-view .bt-pop { animation: bt-node-fade 0.52s var(--bt-ease) forwards; }
@keyframes bt-node-fade { from { opacity: 0; } to { opacity: 1; } }

/* Compare */

/* Mega menu */
.bt-mega { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 20px 0 8px; }
.bt-mega__col { padding: 8px 16px 16px 0; border-right: var(--bt-border-w) solid var(--bt-line); }
.bt-mega__col:last-child { border-right: 0; padding-right: 0; }
.bt-mega__col h4 { margin: 0 14px 10px; font-family: var(--bt-f-body); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bt-muted); }
.bt-nav__menu .bt-mega__col a { padding: 10px 14px; }
.bt-mega__foot { display: flex; align-items: center; gap: 16px; padding: 14px 0 18px; margin-top: 4px; border-top: var(--bt-border-w) solid var(--bt-line); background: transparent; }
.bt-nav__menu .bt-mega__foot a { padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--bt-white); border-radius: 2px; }
.bt-nav__menu .bt-mega__foot a:hover { background: rgba(255, 161, 56, 0.12); color: var(--bt-accent); }


@media (max-width: 1000px) { .bt-caps__panel { grid-template-columns: 1fr; } .bt-s__head, .bt-home .bt-s__head { flex-direction: column; align-items: flex-start; gap: 10px; } }
@media (max-width: 600px) { .bt-hero .bt-actions .bt-btn { width: 100%; } .bt-agent__body { font-size: 11.5px; height: 186px; } .bt-agent__bar { gap: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .bt-draw { stroke-dashoffset: 0; animation: none !important; }
  .bt-pop { opacity: 1 !important; animation: none !important; }
}

/* Inner-page fixes: listing cards, stat strip */
.bt-posts .bt-post { padding: 22px 24px; gap: 10px; } .bt-posts .bt-post h2 { font-size: 20px; line-height: 1.3; } .bt-posts .bt-post p { font-size: 14.5px; }
.bt-wrap.bt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; max-width: none; margin: 0; padding: clamp(20px, 3vw, 32px) var(--bt-pad); background: var(--bt-line-inner); border: 0; border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bt-stat { border: 0; margin: 0; }

/* ---- Blog (database-backed listing, article, pagination) ---- */
.bt-posts .bt-post--card { height: 100%; }
.bt-posts .bt-post__cover { aspect-ratio: 16 / 8; overflow: hidden; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); } .bt-posts .bt-post__cover img { width: 100%; height: 100%; object-fit: cover; }
.bt-posts .bt-post__body { gap: 12px; padding: 24px; } .bt-posts .bt-post h2 { font-size: 21px; line-height: 1.3; } .bt-posts .bt-post p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bt-post__meta time { color: var(--bt-muted); }
.bt-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: var(--bt-border-w) solid var(--bt-border-color); }
.bt-pager__info { margin: 0; font-size: 14px; color: var(--bt-muted); }
.bt-pager__list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bt-pager__list a, .bt-pager__list span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: var(--bt-border-w) solid var(--bt-border-color); font-size: 14px; color: var(--bt-white); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.bt-pager__list a:hover { border-color: var(--bt-accent); color: var(--bt-accent); } .bt-pager__list a.is-current { background: var(--bt-accent); border-color: var(--bt-accent); color: var(--bt-accent-ink); font-weight: 600; }
.bt-pager__list .is-disabled { opacity: 0.4; } .bt-pager__list .bt-pager__gap { border: 0; min-width: 24px; padding: 0; color: var(--bt-muted); }
.bt-empty { max-width: 620px; padding: clamp(32px, 6vw, 72px) 0; } .bt-empty h2 { font-size: var(--bt-h2); }
.bd-hero-image { margin: clamp(28px, 4vw, 40px) 0 0; border: var(--bt-border-w) solid var(--bt-border-color); overflow: hidden; } .bd-hero-image img { width: 100%; height: auto; display: block; }
.bt-article .bd-head { max-width: 860px; }
.bt-article--read .bt-actions { margin-top: 0; }
@media (max-width: 600px) { .bt-pager { flex-direction: column; align-items: flex-start; } .bt-pager__list a, .bt-pager__list span { min-width: 44px; height: 44px; } }

/* ---- 12. Public-site refinements ------------------------------------- */
/* Blog reading page: one container, no nested boxes, full-width measure with comfortable line length. */
.bd-article { max-width: 60rem; } /* head, body and footer share one column */
.bd-article__head { padding-bottom: 0; border-bottom: 0; }
.bd-article__foot { border-top: 0; padding-top: 0; } .bd-article__foot::before, .bd-article__foot::after { display: none; }
.bd-body blockquote { border-left-color: var(--bt-accent); }
.bd-body img, .bd-hero-image { border: 0; }
.bd-body pre { border: 0; }
.bd-body :not(pre) > code { border: 0; }
/* The saved article HTML ends with its own buttons + CTA; the page template already renders both. */
.bd-body > .bt-actions, .bd-body > .bt-cta { display: none; }
/* Links inside article copy must not recolour buttons (accent text on accent fill was unreadable). */
.bd-body a.bt-btn, .bt-prose a.bt-btn { text-decoration: none; }
.bd-body a.bt-btn--primary, .bt-prose a.bt-btn--primary { color: var(--bt-accent-ink); }
.bd-body a.bt-btn:not(.bt-btn--primary), .bt-prose a.bt-btn:not(.bt-btn--primary) { color: var(--bt-btn-fg); }
.bd-body a.bt-btn:not(.bt-btn--primary):hover, .bt-prose a.bt-btn:not(.bt-btn--primary):hover { color: var(--bt-accent); }


/* ---- 13. Homepage polish (scoped to .bt-home; tokens only) ------------ */
.bt-home { counter-reset: bt-sec; }
/* section heads: numbered mono eyebrow, tighter title, calmer intro */
.bt-home .bt-s__head { counter-increment: bt-sec; }
.bt-home .bt-s__head h2 { max-width: 28ch; line-height: 1.08; }
.bt-home .bt-caps { align-items: flex-start; }
.bt-home .bt-s__head p { margin-top: 14px; color: var(--bt-text); line-height: 1.65; }

/* hero: stronger primary action, same illustration and layout */
.bt-hero .bt-actions { margin-top: 28px; }


/* capabilities: clearer tab bar, roomier panel */
.bt-caps__copy { gap: 14px; } .bt-caps__copy h3 { line-height: 1.15; }
.bt-caps__copy .bt-btn { margin-top: 6px; }

/* solutions slider: arrows and counter read as one control */
.bt-slide h3 { line-height: 1.12; }
.bt-slide__apply a { transition: background 0.2s, color 0.2s, padding 0.25s var(--bt-ease); } .bt-slide__apply a:hover { padding-left: 20px; }

/* articles: cards react as one unit */
.bt-home .bt-post { position: relative; overflow: hidden; }
.bt-home .bt-post::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bt-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--bt-ease); } .bt-home .bt-post:hover::before { transform: scaleX(1); }
.bt-home .bt-post h3 { transition: color 0.2s; } .bt-home .bt-post:hover h3 { color: var(--bt-accent); }
.bt-home .bt-post__more { transition: color 0.2s, transform 0.25s var(--bt-ease); } .bt-home .bt-post:hover .bt-post__more { transform: translateX(4px); }
.bt-home .bt-post p { line-height: 1.6; }

/* FAQ: more air in each row */
.bt-faq__trigger { padding-block: 20px; }

/* closing CTA: soft brand glow behind the message, larger actions */
.bt-cta__box { position: relative; isolation: isolate; }
.bt-cta__box::before { content: ""; position: absolute; inset: -40px 10% auto; height: 220px; z-index: -1; background: radial-gradient(ellipse at 50% 40%, var(--bt-accent-dim), transparent 70%); pointer-events: none; }
@media (max-width: 600px) { .bt-home .bt-s__head > div::before { margin-bottom: 10px; } .bt-home .bt-s__head h2 { max-width: none; } }

/* "Works with the tools" heading: title left, description + actions right */
.bt-tools__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.bt-home .bt-tools__head h2 { max-width: 16ch; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -0.045em; }
.bt-home .bt-s__head > .bt-tools__copy::before { display: none; }
.bt-tools__copy p { margin: 0; max-width: 46ch; font-size: 16.5px; line-height: 1.65; }
.bt-tools__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 900px) { .bt-tools__head { grid-template-columns: 1fr; align-items: start; gap: 20px; } .bt-home .bt-tools__head h2 { max-width: none; } }
@media (max-width: 600px) { .bt-tools__actions .bt-btn { flex: 1 1 100%; } }

/* ---- 14. Homepage type system & controls ----------------------------- */
/* Eyebrow -> title -> intro: the same three-step hierarchy in every section */
.bt-home .bt-s__head > div::before { content: "0" counter(bt-sec); display: block; width: fit-content; margin-bottom: 16px; padding-right: 40px; background: linear-gradient(var(--bt-accent-line), var(--bt-accent-line)) right center / 28px 1px no-repeat; font-family: var(--bt-f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--bt-accent); }
.bt-home .bt-s__head h2, .bt-home .bt-tools__head h2 { font-size: var(--bt-h2); font-weight: 700; line-height: 1.06; letter-spacing: -0.042em; text-wrap: balance; }
.bt-home .bt-tools__head h2 { font-size: clamp(32px, 4.2vw, 52px); }
.bt-home .bt-s__head p, .bt-tools__copy p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--bt-text); max-width: 56ch; }
.bt-tools__copy p { margin-top: 0; }
.bt-home h3, .bt-home .bt-slide h3, .bt-home .bt-caps__copy h3 { font-weight: 700; letter-spacing: -0.03em; }
.bt-home .bt-slide h3, .bt-home .bt-caps__copy h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; }
.bt-home .bt-post h3 { font-size: 20px; line-height: 1.28; }
.bt-home .bt-post__meta { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.bt-hero h1 { font-weight: 700; letter-spacing: -0.048em; line-height: 1.02; }
.bt-hero .bt-lead, .bt-cta p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.bt-cta h2 { font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; }
.bt-faq__trigger { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }

/* Section header link = small secondary button */
.bt-home .bt-s__more { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: var(--bt-border-w) solid var(--bt-line-2); border-radius: var(--bt-radius); font-family: var(--bt-f-body); font-size: 13px; font-weight: 600; color: var(--bt-white); transition: background 0.22s var(--bt-ease), border-color 0.22s var(--bt-ease), transform 0.22s var(--bt-ease); }
.bt-home .bt-s__more:hover { border-color: var(--bt-accent-line); background: var(--bt-accent-dim); color: var(--bt-white); transform: translateY(-1px); }

/* Controls: tabs and slider arrows share the button radius and motion */
.bt-seg { border-radius: var(--bt-radius); } .bt-home .bt-seg { margin-inline: 0; } .bt-seg__btn { border-radius: calc(var(--bt-radius) - 1px); padding: 10px 20px; transition: background 0.22s var(--bt-ease), color 0.22s var(--bt-ease); }
.bt-arrow { width: 44px; height: 44px; font-size: 15px; transition: border-color 0.22s var(--bt-ease), color 0.22s var(--bt-ease), background 0.22s var(--bt-ease); }
.bt-arrow:first-child { border-radius: var(--bt-radius) 0 0 var(--bt-radius); } .bt-arrow:last-child { border-radius: 0 var(--bt-radius) var(--bt-radius) 0; }
@media (max-width: 600px) { .bt-home .bt-s__more { align-self: flex-start; } }

/* ---- 15. Services showcase ------------------------------------------- */
#services .bt-s__head h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.05em; max-width: 18ch; }
#services .bt-s__head p { font-size: 18px; margin-top: 18px; }
.bt-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, 1fr); column-gap: clamp(14px, 2vw, 22px); row-gap: clamp(12px, 1.4vw, 16px); }
.bt-svc__col { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: inherit; }
.bt-svc__label { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 4px; padding-bottom: 14px; border-bottom: var(--bt-border-w) solid var(--bt-line-inner); font-family: var(--bt-f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bt-white); }
.bt-svc__label span { color: var(--bt-muted); letter-spacing: 0.08em; }
.bt-svc__card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(18px, 2vw, 24px); border-radius: 10px; background: var(--bt-surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 10px 28px -20px rgba(0, 0, 0, 0.9); overflow: hidden; transition: transform 0.35s var(--bt-ease), box-shadow 0.35s var(--bt-ease), background 0.35s var(--bt-ease); }
.bt-svc__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, var(--bt-accent-dim), transparent 60%); opacity: 0; transition: opacity 0.35s var(--bt-ease); }
.bt-svc__card:hover, .bt-svc__card:focus-visible { transform: translateY(-4px); background: var(--bt-cell-2); box-shadow: inset 0 0 0 1px var(--bt-accent-line), 0 22px 40px -22px rgba(0, 0, 0, 0.95); outline: none; }
.bt-svc__card:hover::before, .bt-svc__card:focus-visible::before { opacity: 1; }
.bt-svc__top { display: flex; align-items: center; justify-content: space-between; }
.bt-svc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--bt-accent-dim); color: var(--bt-accent); transition: background 0.35s var(--bt-ease), color 0.35s var(--bt-ease), transform 0.35s var(--bt-ease); }
.bt-svc__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bt-svc__card:hover .bt-svc__icon, .bt-svc__card:focus-visible .bt-svc__icon { background: var(--bt-accent); color: var(--bt-accent-ink); transform: rotate(-4deg) scale(1.04); }
.bt-svc__num, .bt-svc__arrow { font-family: var(--bt-f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--bt-muted); transition: opacity 0.25s, transform 0.3s var(--bt-ease), color 0.25s; }
.bt-svc__arrow { position: absolute; top: clamp(18px, 2vw, 24px); right: clamp(18px, 2vw, 24px); display: grid; place-items: center; width: 32px; height: 32px; font-size: 16px; color: var(--bt-accent); opacity: 0; transform: translate(-6px, 6px); }
.bt-svc__card:hover .bt-svc__num, .bt-svc__card:focus-visible .bt-svc__num { opacity: 0; }
.bt-svc__card:hover .bt-svc__arrow, .bt-svc__card:focus-visible .bt-svc__arrow { opacity: 1; transform: none; }
.bt-svc__body { display: grid; gap: 8px; }
.bt-svc__body strong { font-size: 18px; font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; color: var(--bt-white); }
.bt-svc__body small { font-size: 14.5px; line-height: 1.55; color: var(--bt-text); }
@media (max-width: 1000px) {
  .bt-svc { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 28px; }
  .bt-svc__col { grid-row: auto; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); row-gap: 14px; column-gap: 14px; }
  .bt-svc__label { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .bt-svc__col { grid-template-columns: 1fr; } .bt-svc__card { gap: 20px; } #services .bt-s__head h2 { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .bt-svc__card, .bt-svc__icon, .bt-svc__arrow { transition: none; } .bt-svc__card:hover { transform: none; } }
