/* BBLabs site. Light, like the terminal itself: off-white page, near-black ink, the gold of the bear's coin
   as the one accent, square corners throughout. Only the hero (the film) is dark. */
@font-face { font-family: "Space Grotesk"; font-weight: 300; font-display: swap; src: url("fonts/space-grotesk-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url("fonts/space-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #f5f5f2; --paper: #ffffff; --wash: #ecece8;
  --ink: #0a0101; --soft: rgba(10, 1, 1, .68); --dim: rgba(10, 1, 1, .46);
  --hair: rgba(10, 1, 1, .13);
  --gold: #e7c852; --green: #0e7a4e; --red: #c8321f;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 3.2vw, 48px);
  --max: 1400px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- nav (same bar on every page; white over the film, ink on the light pages) ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; height: 72px; padding: 0 var(--gutter); border-bottom: 1px solid var(--hair); color: var(--ink); }
.nav.on-film { color: #fff; border-bottom-color: rgba(255, 255, 255, .18); }
.logo { display: block; width: 44px; height: 44px; flex: none; transition: transform .3s ease; }
.logo:hover { transform: translateY(-2px); }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.links { display: flex; gap: clamp(24px, 3.6vw, 56px); margin-left: clamp(32px, 14vw, 210px); }
.links a { position: relative; padding: 8px 0; font-size: 16px; opacity: .74; transition: opacity .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.links a:hover, .links a:focus-visible, .links a[aria-current="page"] { opacity: 1; }
.links a:hover::after, .links a:focus-visible::after, .links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- buttons: square; ink on the light pages, white over the film ---------- */
.cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font: 500 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s, transform .1s; }
.cta svg { width: 14px; height: 14px; flex: none; transition: transform .25s ease; }
.cta:hover, .cta:focus-visible { background: transparent; color: var(--ink); }
.cta:hover svg, .cta:focus-visible svg { transform: translateX(4px); }
.cta:active { transform: translateY(1px); }
.nav .cta { margin-left: auto; }
.nav.on-film .cta { background: #fff; color: var(--ink); border-color: #fff; }
.nav.on-film .cta:hover, .nav.on-film .cta:focus-visible { background: transparent; color: #fff; }
.cta.is-big { height: 56px; padding: 0 26px 0 28px; font-size: 15px; }

/* ---------- landing: the hero, the film full screen ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: #0b0c0e; color: #fff; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 14, .66) 0%, rgba(8, 10, 14, .5) 45%, rgba(8, 10, 14, .78) 100%); }
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 27vh, 300px); z-index: 2; }
.hero-copy h1 { margin: 0; font-weight: 400; font-size: clamp(44px, 8.2vw, 128px); line-height: .96; letter-spacing: -.012em; text-transform: uppercase; }
.hero-copy p { margin: clamp(6px, .9vw, 14px) 0 0 .08em; font-weight: 300; font-size: clamp(24px, 4.4vw, 68px); line-height: 1.05; text-transform: uppercase; }

/* ---------- type used below the hero ---------- */
.h2 { margin: 0; font-weight: 400; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.mark { background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%); }
.body { margin: clamp(18px, 2vw, 28px) 0 0; max-width: 44ch; font-weight: 300; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--soft); }
.band { padding: clamp(84px, 10vw, 150px) 0; border-top: 1px solid var(--hair); }
.screen { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: clamp(72px, 8vw, 120px) 0; border-top: 1px solid var(--hair); overflow: hidden; }
.screen > .wrap { width: 100%; }

/* 2. the terminal: words left; right, real modules built in BBLabs, running */
.terminal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.mods { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px; }
.mod { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 18px 40px -22px rgba(10, 1, 1, .35); }
.mod-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--hair); font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.mod-bar i { flex: none; width: 8px; height: 8px; background: var(--gold); }
.mod-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod iframe { display: block; width: 100%; height: clamp(420px, 44vw, 600px); border: 0; background: #f0f0f0; }
.mods-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; color: var(--dim); }

/* 3. your AI: words left; right, a question being asked and answered, on a loop */
.ai { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.demo { background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 18px 40px -22px rgba(10, 1, 1, .35); }
.demo-body { display: flex; flex-direction: column; gap: 14px; min-height: 400px; padding: clamp(18px, 2vw, 28px); }
.ask-box { align-self: stretch; min-height: 62px; padding: 12px 14px; border: 1px solid var(--ink); font-size: 16px; line-height: 1.4; }
.ask-box b { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--ink); animation: blink 1s steps(2) infinite; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font: 400 13px/1.3 var(--mono); color: var(--soft); }
.steps li { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.steps li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.steps li.on { opacity: 1; transform: none; }
.built { margin-top: auto; padding: 14px; border: 1px solid var(--hair); background: var(--bg); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.built.on { opacity: 1; transform: none; }
.built h4 { margin: 0 0 10px; font: 500 13px/1.2 var(--sans); }
.bars { display: grid; gap: 7px; }
.bars div { display: grid; grid-template-columns: 74px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font: 400 11px/1 var(--mono); color: var(--soft); }
.bars u { display: block; height: 12px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1); text-decoration: none; }
.built.on .bars u { transform: scaleX(var(--w)); }
.bars div:nth-child(2) u { transition-delay: .12s; } .bars div:nth-child(3) u { transition-delay: .24s; } .bars div:nth-child(4) u { transition-delay: .36s; }
@keyframes blink { 50% { opacity: 0; } }

/* 4. data providers: their own screen. Many feeds, one screen. */
.feeds { position: absolute; inset: 0; }
.feeds svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feeds .line { fill: none; stroke: rgba(10, 1, 1, .15); stroke-width: 1; vector-effect: non-scaling-stroke; }
.feeds .pulse { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 100; vector-effect: non-scaling-stroke; animation: run var(--d, 5s) linear var(--o, 0s) infinite; }
.feeds .pulse.g { stroke: #c9a22a; }
@keyframes run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -103; } }
.feeds .hub { position: absolute; left: 60%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--gold); border: 2px solid var(--ink); animation: hubbeat 1.6s ease-in-out infinite; }
@keyframes hubbeat { 50% { transform: scale(1.35); } }
.feeds-copy { position: relative; z-index: 1; }
@media (max-width: 760px) { .feeds { opacity: .5; } }
.num { margin: 0; font-weight: 300; font-size: clamp(120px, 22vw, 360px); line-height: .8; letter-spacing: -.055em; }
.num sup { font-size: .4em; vertical-align: top; position: relative; top: .1em; letter-spacing: 0; }
.num + .h2 { margin-top: clamp(18px, 2vw, 30px); }

/* 5. our own AI: its own screen, with the machines it runs on */
.own { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.tag { display: inline-block; margin-bottom: clamp(18px, 2vw, 28px); padding: 7px 10px; background: var(--gold); color: var(--ink); font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.racks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: end; }
.rack { position: relative; padding: 14px 10px 16px; background: #131518; border: 1px solid #2a2d33; box-shadow: 0 30px 50px -24px rgba(10, 1, 1, .55); }
.rack::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.unit { display: flex; align-items: center; gap: 5px; height: clamp(18px, 2.1vw, 26px); margin-top: 6px; padding: 0 8px; background: #1d2025; border: 1px solid #2c3037; }
.unit i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #2fd07f; animation: led var(--d, 1.4s) steps(2, jump-none) var(--o, 0s) infinite; }
.unit i.a { background: var(--gold); }
.unit s { flex: 1; height: 3px; margin-left: 4px; background: linear-gradient(90deg, #3a4048 0 30%, transparent 30% 40%, #3a4048 40% 70%, transparent 70% 78%, #3a4048 78%); text-decoration: none; opacity: .8; }
.unit em { flex: none; width: 18%; height: 3px; background: #2fd07f; transform-origin: left; animation: load var(--d2, 2.6s) ease-in-out var(--o, 0s) infinite alternate; }
@keyframes led { 0% { opacity: 1; } 100% { opacity: .18; } }
@keyframes load { from { transform: scaleX(.15); } to { transform: scaleX(1); } }

/* ---------- partner pages ---------- */
.page-head { padding-top: clamp(150px, 17vw, 240px); padding-bottom: clamp(56px, 7vw, 100px); }
.page-head h1 { margin: 0; max-width: 14ch; font-weight: 400; font-size: clamp(44px, 7.4vw, 116px); line-height: .96; letter-spacing: -.025em; }
.page-head .body { max-width: 48ch; font-size: clamp(18px, 1.6vw, 24px); }
.page-head .cta { margin-top: clamp(28px, 3vw, 44px); }
.shot { margin: 0; border: 1px solid var(--hair); background: #fff; box-shadow: 0 30px 60px -34px rgba(10, 1, 1, .4); }
.shot img { width: 100%; }

/* how an integration works: six things, six cells; something small moves behind each */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 4.4vw, 64px); }
.cell { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(260px, 23vw, 340px); padding: clamp(22px, 2.6vw, 40px); background: var(--paper); border: 1px solid var(--hair); overflow: hidden; }
.cell h3 { position: relative; z-index: 1; margin: 0; font-weight: 400; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.cell p { position: relative; z-index: 1; margin: 12px 0 0; max-width: 40ch; font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--soft); }
.c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.cell.is-gold { background: var(--gold); border-color: var(--gold); }
.cell.is-gold p { color: rgba(10, 1, 1, .78); }
.cell.is-wash { background: var(--wash); }
.fx { position: absolute; inset: 0 0 42% 0; pointer-events: none; }
.fx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 1: packets run down the wires into one node */
.fx .wire { fill: none; stroke: rgba(10, 1, 1, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fx .pkt { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 100; vector-effect: non-scaling-stroke; animation: pk var(--d, 3.4s) linear var(--o, 0s) infinite; }
@keyframes pk { from { stroke-dashoffset: 102; } to { stroke-dashoffset: 0; } }
.fx .node { fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
/* 2: a chart that keeps updating */
.fx .tick { position: absolute; bottom: 0; width: 10px; background: rgba(10, 1, 1, .18); transform-origin: bottom; animation: tk var(--d, 2s) ease-in-out var(--o, 0s) infinite alternate; }
.fx .tick.g { background: var(--ink); }
@keyframes tk { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
/* 3: a quota filling */
.fx .ring { fill: none; stroke: rgba(10, 1, 1, .18); stroke-width: 9; }
.fx .ring.fill { stroke: var(--ink); stroke-dasharray: 251; animation: quota 6s ease-in-out infinite; transform: rotate(-90deg); transform-origin: 50px 50px; }
@keyframes quota { 0% { stroke-dashoffset: 251; } 70%, 100% { stroke-dashoffset: 34; } }
/* 4: users heading out to the provider's plans */
.fx .go { position: absolute; top: var(--y); left: -40px; width: 26px; height: 2px; background: var(--ink); opacity: .55; animation: goout var(--d, 4s) linear var(--o, 0s) infinite; }
.fx .go::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
@keyframes goout { to { transform: translateX(110vw); } }
/* 5: the credit, stamped on small modules */
.fx .chip { position: absolute; padding: 6px 9px; border: 1px solid var(--hair); background: var(--paper); font: 400 10.5px/1 var(--mono); letter-spacing: .06em; color: var(--soft); animation: bob var(--d, 5s) ease-in-out var(--o, 0s) infinite alternate; }
.fx .chip b { font-weight: 400; color: var(--ink); border-bottom: 2px solid var(--gold); }
@keyframes bob { from { transform: translateY(6px); } to { transform: translateY(-8px); } }
/* 6: calls ticking past */
.fx .log { position: absolute; left: clamp(22px, 2.6vw, 40px); right: clamp(22px, 2.6vw, 40px); top: 0; font: 400 10.5px/2.1 var(--mono); color: var(--dim); animation: roll 16s linear infinite; }
.fx .log span { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.fx.clip { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }

.ask { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: end; }
.ask .body { margin-top: 0; }
.ask .cta { margin-top: clamp(22px, 2.4vw, 32px); }

/* brokers: one message, one way in */
.solo { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 80px; }
.solo h1 { margin: 0; max-width: 12ch; font-weight: 400; font-size: clamp(48px, 8.6vw, 136px); line-height: .94; letter-spacing: -.03em; }
.solo .body { max-width: 46ch; font-size: clamp(18px, 1.6vw, 24px); }
.solo .cta { margin-top: clamp(28px, 3vw, 44px); align-self: flex-start; }
.reach { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--hair); font-size: 16px; color: var(--soft); }
.reach a { border-bottom: 1px solid var(--hair); padding-bottom: 2px; overflow-wrap: anywhere; transition: color .2s, border-color .2s; }
.reach a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hair); background: var(--paper); }
.foot-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 64px); padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(44px, 5vw, 72px); }
.foot-brand img { width: 84px; height: 84px; object-fit: contain; }
.foot-brand p { margin: 20px 0 0; font-weight: 300; font-size: clamp(28px, 3.4vw, 52px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.foot-brand p span { color: var(--dim); }
.foot h4 { margin: 0 0 18px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot li a { font-size: 17px; color: var(--soft); overflow-wrap: anywhere; transition: color .2s; }
.foot li a:hover { color: var(--ink); }
.foot li a.gold { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--dim); }

/* ---------- arriving ---------- */
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.nav { animation: fade .9s ease .1s both; }
.hero-copy h1, .page-head h1, .solo h1 { animation: up 1s cubic-bezier(.2, .7, .2, 1) .25s both; }
.hero-copy p, .page-head .body, .solo .body { animation: up 1s cubic-bezier(.2, .7, .2, 1) .45s both; }
.page-head .cta, .solo .cta { animation: up 1s cubic-bezier(.2, .7, .2, 1) .6s both; }
.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .rise { opacity: 1; transform: none; transition: none; }
  .steps li, .built { opacity: 1; transform: none; transition: none; }
  .bars u { transform: scaleX(var(--w)); transition: none; }
}

/* ---------- under 980px: one column ---------- */
@media (max-width: 980px) {
  .terminal, .ai, .own, .ask { grid-template-columns: minmax(0, 1fr); }
  .c7, .c5, .c6 { grid-column: span 12; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { height: 64px; }
  .logo { width: 38px; height: 38px; }
  .nav .cta { height: 38px; padding: 0 14px; font-size: 12px; }
  .links { position: absolute; top: 64px; left: var(--gutter); right: var(--gutter); margin: 0; gap: clamp(18px, 6vw, 36px); padding: 6px 0; }
  .links a { font-size: 14px; }
  .hero-copy { bottom: clamp(72px, 16vh, 150px); }
  .page-head { padding-top: 170px; }
  .mods { grid-template-columns: minmax(0, 1fr); }
  .mod iframe { height: 460px; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}


/* =====================================================================================
   THE FRAME (Frame 1.png): white page, big bold capitals, screenshots thrown together,
   the bear, two pixel AIs, and FERAL in red. Overrides the quieter type above.
   ===================================================================================== */
:root { --red: #e0262b; --bg: #ffffff; }
body { background: #fff; overflow-x: hidden; }
.shout { margin: 0; font-weight: 700; font-size: clamp(34px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -.015em; text-transform: uppercase; }
.page-head h1, .solo h1 { font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.h2 { font-weight: 700; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.04; }
.band, .screen { border-top: 0; }

/* the hero, as in the frame: the film, the name small and low on the left */
.hero-copy { bottom: clamp(36px, 7vh, 80px); }
.hero-copy h1 { font-weight: 700; font-size: clamp(36px, 6vw, 96px); letter-spacing: -.01em; line-height: .95; }
.hero-copy p { font-weight: 400; font-size: clamp(16px, 2vw, 30px); margin-top: 6px; letter-spacing: .02em; color: rgba(255, 255, 255, .8); }

/* 1. professional terminal for free: words left, screenshots thrown on the right, the bear below */
.pro { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 48px); padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(40px, 6vw, 90px); }
.pro-words { position: relative; z-index: 2; padding-top: clamp(0px, 3vw, 50px); }
.pro-bear { width: clamp(150px, 20vw, 300px); margin-top: clamp(40px, 8vw, 130px); animation: bearbob 4.6s ease-in-out infinite; transform-origin: bottom center; }
@keyframes bearbob { 50% { transform: translateY(-3%) rotate(-1.5deg); } }
.pile { position: relative; min-height: clamp(380px, 46vw, 680px); }
.pile figure { position: absolute; margin: 0; background: #fff; border: 1px solid rgba(10, 1, 1, .12); box-shadow: 0 22px 44px -22px rgba(10, 1, 1, .45); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pile img { display: block; width: 100%; height: auto; }
.pile .p1 { left: 18%; top: 4%; width: 58%; z-index: 1; }
.pile .p2 { right: 0; top: 0; width: 30%; z-index: 2; }
.pile .p3 { left: 0; top: 34%; width: 44%; z-index: 3; }
.pile .p4 { right: 2%; top: 46%; width: 46%; z-index: 4; }
.pile:hover .p1 { transform: translate(-8px, -6px) rotate(-1deg); }
.pile:hover .p2 { transform: translate(8px, -8px) rotate(1.5deg); }
.pile:hover .p3 { transform: translate(-10px, 6px) rotate(-1.5deg); }
.pile:hover .p4 { transform: translate(8px, 8px) rotate(1deg); }
.pile figure { animation: drift var(--d, 7s) ease-in-out var(--o, 0s) infinite alternate; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* 2. connect any AI and let it analyse: two pixel AIs around the words, the chart they made */
.connect { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); grid-template-rows: auto auto; align-items: center; padding-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(60px, 8vw, 120px); }
.connect .shout { grid-column: 2; grid-row: 1; text-align: center; }
.connect .px-a { grid-column: 3; grid-row: 1; justify-self: center; width: clamp(140px, 17vw, 250px); }
.connect .px-b { grid-column: 1; grid-row: 2; justify-self: center; width: clamp(150px, 18vw, 260px); }
.connect .made { grid-column: 3; grid-row: 2; margin: 0; }
.connect .made img { width: 100%; height: auto; border: 1px solid rgba(10, 1, 1, .1); }
.connect .note { grid-column: 2; grid-row: 2; align-self: start; justify-self: center; max-width: 34ch; margin: clamp(16px, 2vw, 28px) 0 0; text-align: center; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: rgba(10, 1, 1, .62); }
.px { display: block; height: auto; image-rendering: pixelated; shape-rendering: crispEdges; overflow: visible; }
.px-a { animation: hopper 1.4s steps(2) infinite; }
@keyframes hopper { 50% { transform: translateY(-6px) rotate(-3deg); } }
.px .blink { animation: pxblink 3.6s steps(1) infinite; }
@keyframes pxblink { 0%, 92% { opacity: 1; } 93%, 97% { opacity: 0; } 98%, 100% { opacity: 1; } }
.px .legs-a { animation: pxlegs .5s steps(1) infinite; }
.px .legs-b { animation: pxlegs .5s steps(1) -.25s infinite; }
@keyframes pxlegs { 50% { transform: translateY(6px); } }
.px .typing { animation: pxtype .34s steps(1) infinite; }
.px .typing.two { animation-delay: -.17s; }
@keyframes pxtype { 50% { transform: translateY(5px); } }
.px .scr { animation: pxscr 1.6s steps(1) infinite; }
@keyframes pxscr { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .55; } }
.px .cursor { animation: pxblink 1s steps(1) infinite; }

/* 3. fear analyses: the camera on the left, the line on the right, FERAL in red */
.fear { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 90px); align-items: center; padding-top: clamp(70px, 9vw, 140px); padding-bottom: clamp(90px, 11vw, 170px); }
.fear .shout { font-size: clamp(30px, 4.2vw, 64px); }
.feral { display: block; margin-top: .06em; color: var(--red); font-weight: 700; font-size: clamp(76px, 15vw, 240px); line-height: .9; letter-spacing: -.035em; }
.cam { position: relative; aspect-ratio: 5 / 4; background: #f6e9ae; overflow: hidden; }
.cam .lid { position: absolute; left: 9%; right: 9%; bottom: -4%; height: 78%; background: #17181b; border-radius: 26px 26px 0 0; box-shadow: 0 -18px 40px -22px rgba(10, 1, 1, .5); }
.cam .lid-screen { position: absolute; inset: 14px 14px 0; background: #f5f5f2; border-radius: 12px 12px 0 0; overflow: hidden; }
.cam .lid-screen::before { content: "BBLabs"; position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: 500 clamp(11px, 1.1vw, 15px)/1 var(--sans); color: rgba(10, 1, 1, .55); }
.cam .lid-screen::after { content: ""; position: absolute; left: 8%; right: 8%; top: 42%; height: 14%; border: 1px solid rgba(10, 1, 1, .16); background: #fff; }
.cam .notch { position: absolute; left: 50%; top: 14px; width: 52%; height: 20%; transform: translateX(-50%); background: #17181b; border-radius: 0 0 14px 14px; display: flex; align-items: center; justify-content: center; gap: 9%; }
.cam .eye { position: relative; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #f5f5f2; overflow: hidden; animation: lidblink 5.2s infinite; }
.cam .eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; margin: -22% 0 0 -22%; border-radius: 50%; background: #0a0101; animation: look 6.5s ease-in-out infinite; }
.cam .led { width: 5%; aspect-ratio: 1; border-radius: 50%; background: #2fe07a; box-shadow: 0 0 10px 3px rgba(47, 224, 122, .7); animation: ledon 4.4s steps(1) infinite; }
@keyframes look { 0%, 12% { transform: translate(0, 0); } 20%, 34% { transform: translate(-42%, 8%); } 44%, 58% { transform: translate(46%, -10%); } 68%, 80% { transform: translate(8%, 40%); } 90%, 100% { transform: translate(0, 0); } }
@keyframes lidblink { 0%, 46%, 50%, 92%, 96%, 100% { transform: scaleY(1); } 48%, 94% { transform: scaleY(.08); } }
@keyframes ledon { 0%, 18% { opacity: .12; box-shadow: none; } 19%, 100% { opacity: 1; } }

/* the two full screens keep their animations, on white */
.screen { background: #fff; }
.feeds .line { stroke: rgba(10, 1, 1, .12); }

/* ---------- phones: every width from 320px up ---------- */
@media (max-width: 980px) {
  .pro { grid-template-columns: minmax(0, 1fr); }
  .pro-bear { display: none; }
  .pile { min-height: 0; aspect-ratio: 10 / 9; }
  .connect { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 26px; }
  .connect .shout { grid-column: 1 / -1; grid-row: 1; }
  .connect .note { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .connect .px-b { grid-column: 1; grid-row: 3; }
  .connect .px-a { grid-column: 2; grid-row: 3; }
  .connect .made { grid-column: 1 / -1; grid-row: 4; }
  .fear { grid-template-columns: minmax(0, 1fr); }
  .fear .cam { max-width: 520px; }
}
@media (max-width: 560px) {
  .pile { aspect-ratio: 4 / 5; }
  .pile .p1 { left: 0; top: 0; width: 82%; }
  .pile .p2 { right: 0; top: 18%; width: 46%; }
  .pile .p3 { left: 0; top: 46%; width: 70%; }
  .pile .p4 { right: 0; top: 62%; width: 72%; }
  .cam .lid { border-radius: 16px 16px 0 0; }
  .cam .lid-screen { inset: 9px 9px 0; }
  .cam .notch { top: 9px; }
  .nav .cta { padding: 0 12px; font-size: 11px; letter-spacing: .04em; }
  .links { gap: 16px; }
  .links a { font-size: 13px; }
}
@media (max-width: 360px) {
  .links { gap: 12px; }
  .links a { font-size: 12px; }
  .logo { width: 32px; height: 32px; }
}
@supports (padding: env(safe-area-inset-left)) {
  .nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .foot-base { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

/* ---------- the AI screen, laid out as in Frame 1 (positions measured off the frame) ---------- */
.connect2 { padding: clamp(30px, 4vw, 60px) 0 clamp(60px, 7vw, 110px); overflow: hidden; }
.c2 { position: relative; max-width: var(--max); margin: 0 auto; aspect-ratio: 1440 / 900; }
.c2-plate { position: absolute; left: 66%; top: 3%; width: 30%; aspect-ratio: 1; background: #f1f1ef; transform: rotate(-32deg); }
.c2-orange { position: absolute; left: 63%; top: 0; width: 33%; transform: rotate(-32deg); transform-origin: center; }
.c2-orange .px-a { width: 100%; animation: none; }
.c2-orange { animation: c2hop 1.4s steps(2) infinite; }
@keyframes c2hop { 50% { transform: translateY(-8px); } }
.c2-words { position: absolute; left: 32%; top: 26%; width: 42%; text-align: center; z-index: 2; font-size: clamp(30px, 4.6vw, 70px); line-height: 1.12; }
.c2-blue { position: absolute; left: 7%; top: 50%; width: 25%; }
.c2-blue .px-b { width: 100%; }
.c2-chart { position: absolute; right: 0; top: 40%; width: 24%; margin: 0; }
.c2-chart img { width: 100%; height: auto; }

/* FERAL: the real camera on the left */
.cam-real { position: relative; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; background: #0b0c0e; }
.cam-real video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* data providers: the button under the line */
.dp-btn { margin-top: clamp(26px, 3vw, 44px); }

@media (max-width: 760px) {
  .c2 { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; padding: 0 var(--gutter); }
  .c2 > * { position: static !important; width: auto !important; transform: none; }
  .c2-plate { display: none; }
  .c2-words { grid-column: 1 / -1; grid-row: 1; font-size: clamp(30px, 9vw, 44px); }
  .c2-blue { grid-column: 1; grid-row: 2; align-self: end; }
  .c2-orange { grid-column: 2; grid-row: 2; align-self: center; transform: rotate(-20deg) !important; }
  .c2-chart { grid-column: 1 / -1; grid-row: 3; }
}

/* ---------- the canvas from Frame 1 (1937 px wide; 1vw = 19.37 frame px) ---------- */
.fr { overflow: hidden; background: #fff; }
.fr-in { position: relative; width: 100%; height: 160vw; }
.fr-in > * { position: absolute; margin: 0; }
.fr-t { font: 700 4.93vw/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0; color: #0a0101; z-index: 6; }
.fr-pro { left: 7.07vw; top: 8vw; }
.fr-connect { left: 32.7vw; width: 40vw; top: 70vw; text-align: center; line-height: 1.25; }
.fr-fear { left: 2.7vw; width: 50vw; top: 123.4vw; text-align: center; line-height: 1.17; }
.fr-feral { display: block; margin-top: .05em; color: #e0262b; font-size: 13.5vw; line-height: .9; letter-spacing: -.035em; }
.fr-i { height: auto; box-shadow: 0 1.2vw 2.4vw -1.2vw rgba(10, 1, 1, .35); }
.fr-chart { left: 44.3vw; top: 7.7vw; width: 51.4vw; z-index: 1; }
.fr-surface { left: 79.5vw; top: 4.1vw; width: 20vw; z-index: 2; }
.fr-company { left: 26.5vw; top: 25.7vw; width: 32.5vw; z-index: 3; }
.fr-fin { left: 68.1vw; top: 32.4vw; width: 31.9vw; z-index: 4; }
.fr-bear { left: 7.2vw; top: 44.5vw; width: 21.5vw; height: auto; z-index: 5; transform: rotate(-38deg); animation: frbobr 4.6s ease-in-out infinite; transform-origin: bottom center; }
.fr-orange { left: 66.8vw; top: 54.1vw; width: 27.4vw; height: auto; z-index: 3; animation: frhop 1.4s steps(2) infinite; }
.fr-blue { left: 9.4vw; top: 84.6vw; width: 29.5vw; height: auto; z-index: 5; animation: frbob 3.2s ease-in-out infinite; }
.fr-bars { left: 76.4vw; top: 76.9vw; width: 23.6vw; height: auto; z-index: 4; }
.fr-cam { left: 58vw; top: 122vw; width: 36vw; aspect-ratio: 5 / 4; overflow: hidden; background: #0b0c0e; }
.fr-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes frbob { 50% { transform: translateY(-1.5%) rotate(-1deg); } }
@keyframes frbobr { 0%, 100% { transform: rotate(-38deg); } 50% { transform: translateY(-1.5%) rotate(-39deg); } }
@keyframes frhop { 50% { transform: translateY(-.6vw); } }
.fr .rise { transform: none; }

/* ---------- per device ----------
   PHONE, portrait (up to 600 wide): its own composition, placed by hand on a 390-wide phone and
   scaled with the screen (units are % of the width), so every phone keeps the same picture.
   TABLET, portrait (601-1024): the desktop canvas, slightly larger type.
   PHONE, landscape (under 500 tall): the desktop canvas, compact bar and hero. */
@media (max-width: 600px) and (orientation: portrait), (max-width: 480px) {
  .fr-in { height: 476vw; }
  .fr-t { font-size: 10.4vw; line-height: 1.12; }
  .fr-pro { left: 6vw; top: 9vw; }
  .fr-chart { left: 4vw; top: 48vw; width: 80vw; }
  .fr-surface { left: 58vw; top: 38vw; width: 40vw; }
  .fr-company { left: 2vw; top: 96vw; width: 58vw; }
  .fr-fin { left: 38vw; top: 113vw; width: 60vw; }
  .fr-bear { left: 11vw; top: 162vw; width: 34vw; }
  .fr-orange { left: 52vw; top: 158vw; width: 44vw; }
  .fr-connect { left: 4vw; width: 92vw; top: 214vw; font-size: 9.6vw; line-height: 1.16; }
  .fr-blue { left: 0; top: 260vw; width: 52vw; }
  .fr-bars { left: 52vw; top: 252vw; width: 45vw; }
  .fr-fear { left: 4vw; width: 92vw; top: 330vw; font-size: 8.6vw; line-height: 1.16; }
  .fr-feral { font-size: 27vw; }
  .fr-cam { left: 6vw; top: 398vw; width: 88vw; }
  .fr-i { box-shadow: 0 3vw 6vw -3vw rgba(10, 1, 1, .35); }
  .hero-copy { left: 6vw; right: 6vw; bottom: max(10vh, 64px); }
  .hero-copy h1 { font-size: 13.4vw; line-height: .95; }
  .hero-copy p { font-size: 5.2vw; margin-top: 2vw; }
}
/* the smallest phones (iPhone SE, small Androids): a little more air between the pieces */
@media (max-width: 359px) and (orientation: portrait) {
  .fr-in { height: 486vw; }
  .fr-connect { top: 216vw; }
  .fr-fear { top: 334vw; }
  .fr-cam { top: 404vw; }
}
/* tablets in portrait */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .fr-t { font-size: 5.6vw; }
  .fr-feral { font-size: 14.5vw; }
  .fr-connect { left: 30vw; width: 46vw; }
  .fr-fear { width: 56vw; }
  .hero-copy h1 { font-size: 10vw; }
  .hero-copy p { font-size: 3.6vw; }
}
/* phones held sideways */
@media (orientation: landscape) and (max-height: 500px) {
  .nav { height: 56px; }
  .links { position: static; margin-left: 28px; gap: 20px; padding: 0; }
  .links a { font-size: 13px; }
  .hero { min-height: 100vh; }
  .hero-copy { bottom: 22px; }
  .hero-copy h1 { font-size: 8vw; }
  .hero-copy p { font-size: 3vw; }
  .screen { min-height: 0; }
}
}

@supports not (aspect-ratio: 1) {
  .fr-cam, .cam-real { height: 0; padding-top: 28.8vw; }
  .cam-real { padding-top: 80%; }
  .hero { min-height: 100vh; }
}
@media (max-width: 700px) { @supports not (aspect-ratio: 1) { .fr-cam { padding-top: 80%; } } }
