/* ==========================================================================
   Components. Every rule reads semantic tokens, so each component works on
   the default light ground and on .theme-paper / .theme-dark / .theme-brand.
   ========================================================================== */

/* ---- Navigation (glass, follows the color mode) --------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav.is-scrolled, .nav-open .nav { background: var(--nav-glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: var(--nav-h); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav .logo-on-dark, [data-theme="dark"] .nav .logo-on-light { display: none; }
[data-theme="dark"] .nav .logo-on-dark { display: block; }

/* Color mode switch: shows the icon of the current choice (light, dark or system) */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: transparent; color: var(--fg); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.theme-toggle:hover { background: var(--tint-2); }
.theme-toggle svg { width: 18px; height: 18px; display: none; }
[data-theme-pref="light"] .theme-toggle .i-light,
[data-theme-pref="dark"] .theme-toggle .i-dark,
[data-theme-pref="system"] .theme-toggle .i-system { display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: block; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--fg-muted); padding: 8px 14px; border-radius: var(--r-pill); transition: color var(--dur-fast), background var(--dur-fast); }
.nav-links a:hover { color: var(--fg); background: var(--tint); }
.nav-links a.is-active { color: var(--fg); background: var(--tint-2); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-links .nav-cta { display: none; }
.nav-toggle { display: none; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-pill); width: 44px; height: 44px; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.6px; background: var(--fg); position: relative; transition: transform var(--dur) var(--ease-out), background var(--dur); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav-links { position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-3) var(--gutter) var(--sp-6); background: var(--nav-menu); border-bottom: 1px solid var(--border); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  /* the bar's Book a demo button is hidden on small screens, so the menu carries it */
  .nav-links .nav-cta { display: block; margin-top: var(--sp-5); }
  .nav-links .nav-cta a { display: flex; justify-content: center; width: 100%; padding: 16px 24px; font-size: 17px; border: 0; border-radius: var(--r-pill); color: var(--bb-black); background: var(--bb-gradient); }
  /* While the menu is open the bar goes solid: a blurred (backdrop-filter) bar can let the
     page show through the menu sheet that hangs below it */
  .nav-open .nav { background: var(--nav-menu); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links a { font-size: 20px; font-weight: 600; color: var(--fg); padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-links a:hover, .nav-links a.is-active { background: none; color: var(--accent-text); }
  .nav-actions .btn { display: none; }
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15.5px/1 var(--font-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  padding: 16px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--bb-gradient); color: var(--bb-black); box-shadow: 0 8px 22px rgba(242,144,63,.3); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(242,144,63,.4); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-out); }
.theme-brand .btn-primary { background: var(--bb-black); color: #fff; box-shadow: 0 10px 30px rgba(29,29,27,.22); }
.btn-dark { background: var(--bb-black); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn-secondary { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }
.btn-link { padding: 4px 0; border: 0; background: none; color: var(--accent-text); font-weight: 600; border-radius: 0; overflow: visible; }
.btn-link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.btn-link:hover::before { transform: scaleX(1); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 19px 32px; font-size: 16.5px; }
.stack > .btn, .stack-sm > .btn, .card > .btn, .stack > .btn-link { justify-self: start; }

.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: background var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast); }
.icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.icon-btn svg { width: 18px; height: 18px; }

.play { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; cursor: pointer; color: var(--fg); font: 600 15.5px var(--font-body); padding: 0; text-align: left; }
.play-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease-out), background var(--dur); }
.play:hover .play-ring { transform: scale(1.08); background: var(--bb-yellow); }
.play-ring svg { width: 17px; height: 17px; fill: var(--fg); margin-left: 3px; }
.play small { display: block; font-weight: 500; color: var(--fg-muted); font-size: 13px; }
/* Hero film button: solid black ring, white triangle */
.hero .play-ring { background: var(--bb-black); border-color: var(--bb-black); }
.hero .play-ring svg { fill: #fff; }
.hero .play:hover .play-ring { background: var(--bb-yellow); border-color: var(--bb-yellow); }
.hero .play:hover .play-ring svg { fill: var(--bb-black); }
[data-theme="dark"] .hero .play-ring { border-color: rgba(255,255,255,.28); }

/* ---- Section head --------------------------------------------------------- */
.section-head { display: grid; gap: var(--sp-4); max-width: 880px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { margin-top: var(--sp-1); }
.section-head.center .lede { margin-inline: auto; }
.section-head > .btn, .section-head > .btn-link { justify-self: start; margin-top: var(--sp-2); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp-5); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(24px, 3vw, 40px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1200px, 130vw); aspect-ratio: 1.7; transform: translate(-50%, -30%); background: radial-gradient(closest-side, rgba(252,190,39,.32), rgba(242,144,63,.12) 50%, transparent 75%); z-index: -1; pointer-events: none; }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: var(--sp-5); max-width: 1000px; margin-inline: auto; }
.hero-copy .lede { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-5) var(--sp-6); margin-top: var(--sp-2); }

/* ---- Helmet showcase (looping video card) -------------------------------- */
.showcase { position: relative; padding-block: clamp(24px, 4vw, 56px) clamp(64px, 9vw, 140px); }
.showcase-stage { position: relative; aspect-ratio: 16 / 9; max-height: calc(100svh - var(--nav-h) - 48px); width: 100%; margin-inline: auto; border-radius: var(--r-xl); overflow: hidden; background: #393936; border: 1px solid rgba(242,144,63,.35); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 20px 90px -10px rgba(242,144,63,.45), var(--shadow-2); }
.showcase-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-label { position: absolute; left: clamp(16px, 2vw, 24px); bottom: clamp(16px, 2vw, 26px); z-index: 2; font: 600 12.5px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.showcase-toggle { position: absolute; right: clamp(14px, 2vw, 22px); bottom: clamp(14px, 2vw, 22px); z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); background: rgba(20,20,19,.55); backdrop-filter: blur(8px); color: #fff; cursor: pointer; transition: transform var(--dur) var(--ease-out), background var(--dur); }
.showcase-toggle:hover { transform: scale(1.08); background: rgba(20,20,19,.8); }
.showcase-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.showcase-toggle .i-play, .showcase-stage.is-paused .showcase-toggle .i-pause { display: none; }
.showcase-stage.is-paused .showcase-toggle .i-play { display: block; margin-left: 2px; }
@media (max-width: 900px) { .showcase-stage { border-radius: var(--r-lg); } .showcase-label { font-size: 11px; } }

/* ---- Hotspot figure ------------------------------------------------------- */
.hotspots { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: #222; }
.hotspots > img { width: 100%; height: 100%; object-fit: cover; }
.spots { list-style: none; }
.hotspots::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,17,.55), transparent 40%, transparent 60%, rgba(18,18,17,.55)); pointer-events: none; }
.spot { position: absolute; z-index: 2; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 12px; transform: translate(-11px, -11px); }
.spot.left { flex-direction: row-reverse; transform: translate(calc(-100% + 11px), -11px); }
/* .rise: the card grows upward from the dot, for dots near the bottom edge */
.spot.rise { align-items: flex-end; transform: translate(-11px, calc(-100% + 11px)); }
.spot-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--bb-yellow); box-shadow: 0 0 0 4px rgba(252,190,39,.3); flex: none; }
.spot-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--bb-yellow); animation: ping 2.2s var(--ease-out) infinite; }
.spot-card { background: rgba(18,18,17,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 16px; max-width: 240px; color: #F6F5F2; }
.spot-card strong { display: block; font-size: 14.5px; }
.spot-card span { font-size: 13px; color: var(--ink-300); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
/* Tablets and phones: titles only, on one line, so the cards stay small and never collide */
@media (max-width: 1000px) {
  .spot-card { padding: 9px 12px; white-space: nowrap; }
  .spot-card span { display: none; }
}
@media (max-width: 760px) {
  .hotspots { aspect-ratio: 4 / 5; }
  .hotspots > img { object-position: 50% 30%; }
  /* The portrait crop moves the cameras, so dots use --mx (x in the cropped frame);
     cards stack above/below/left of their dot so none run off the edge. */
  .spot { left: var(--mx, var(--x)); }
  .spot.m-up { flex-direction: column-reverse; align-items: center; gap: 8px; transform: translate(-50%, calc(-100% + 11px)); }
  .spot.m-down { flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, -11px); }
  .spot.m-left { flex-direction: row-reverse; align-items: center; transform: translate(calc(-100% + 11px), -11px); }
}

/* ---- Helmet scrub (sticky frame sequence) --------------------------------- */
.scrub { position: relative; height: 340vh; }
.scrub-sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.scrub-stage { position: relative; aspect-ratio: 16 / 10; max-height: calc(100svh - var(--nav-h) - 48px); width: 100%; border-radius: var(--r-xl); overflow: hidden; background: #393936; box-shadow: var(--shadow-2); justify-self: end; }
.scrub-stage canvas, .scrub-stage .scrub-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-stage canvas { z-index: 1; }
.scrub-meter { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.scrub-meter span { display: block; height: 100%; width: 100%; background: var(--bb-gradient); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scrub-copy { display: grid; gap: var(--sp-5); align-content: center; }
.scrub-points { list-style: none; display: grid; gap: 4px; counter-reset: pt; }
.scrub-points li { position: relative; display: grid; gap: 4px; padding: 14px 0 14px 22px; border-left: 2px solid var(--border); transition: opacity var(--dur) var(--ease-out), border-color var(--dur); }
.scrub-points li::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--bb-gradient); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-slow) var(--ease-out); }
.scrub-points b { font: 700 var(--fs-heading)/1.25 var(--font-display); letter-spacing: -.01em; }
.scrub-points span { font-size: var(--fs-small); color: var(--fg-muted); max-width: 38ch; }
.scrub.is-live .scrub-points li { opacity: .45; }
.scrub.is-live .scrub-points li.is-on { opacity: 1; }
.scrub.is-live .scrub-points li.is-on::before { transform: scaleY(1); }
@media (max-width: 900px) {
  .scrub { height: 300vh; }
  .scrub-sticky { grid-template-columns: minmax(0,1fr); align-content: start; gap: var(--sp-4); padding-top: var(--sp-4); }
  .scrub-stage { order: -1; aspect-ratio: 16 / 10; border-radius: var(--r-lg); justify-self: stretch; }
  .scrub-copy { gap: var(--sp-3); }
  .scrub-copy .display-l { font-size: 26px; }
  .scrub-points li { padding: 8px 0 8px 16px; }
  .scrub-points span { font-size: 13.5px; }
}
@media (max-width: 900px) and (max-height: 700px) { .scrub-points span { display: none; } }

/* ---- Marquee -------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding-block: 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; display: flex; width: max-content; gap: 48px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 48px; font: 700 clamp(20px, 2.3vw, 28px) var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee-item::after { content: ""; width: 26px; height: 18px; background: url("../assets/brand/bb-mark.svg") center/contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Field gallery -------------------------------------------------------- */
.rail-wrap { position: relative; }
.rail { display: flex; gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 8px var(--gutter) 24px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }
.frame { position: relative; flex: 0 0 auto; width: clamp(240px, 25vw, 340px); aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; background: var(--paper-100); color: #fff; isolation: isolate; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,18,17,0) 50%, rgba(18,18,17,.82)); }
.frame:hover img { transform: scale(1.05); }
.frame figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 2px; }
.frame figcaption b { font: 700 18px var(--font-display); letter-spacing: -.01em; }
.frame figcaption span { font-size: 13.5px; color: #DCD9D2; }
.frame .n { position: absolute; top: 16px; left: 18px; font: 700 12px var(--font-body); letter-spacing: .14em; color: #fff; background: rgba(18,18,17,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 10px; border-radius: var(--r-pill); }
.rail-nav { display: flex; gap: 10px; }

/* ---- Statement (scroll-lit) ----------------------------------------------- */
.statement { font: 800 clamp(30px, 4.8vw, 68px)/1.08 var(--font-display); letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; }
/* Full-screen statement band: the words light up across a whole screen of scroll */
.statement-band { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }
.statement-band .statement { font-size: clamp(36px, 6vw, 96px); max-width: 18ch; }
@media (max-width: 760px) { .statement-band { min-height: 70svh; } }
.statement .w { opacity: .14; transition: opacity 280ms linear; }
.statement .w.on { opacity: 1; }
.statement .w.hl.on { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---- Comparison ----------------------------------------------------------- */
.compare { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: var(--sp-5); align-items: stretch; }
.compare-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-raised); display: grid; grid-template-rows: auto 1fr; }
.compare-card figure { aspect-ratio: 16 / 10; overflow: hidden; }
.compare-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter var(--dur-slow); }
.compare-card:hover img { transform: scale(1.04); }
.compare-card.old img { filter: grayscale(1) contrast(.95); }
.compare-body { padding: clamp(22px, 3vw, 36px); display: grid; gap: var(--sp-4); align-content: start; }
.compare-card.new { box-shadow: 0 0 0 1.5px var(--bb-orange), 0 24px 50px rgba(242,144,63,.16); }
.vs { align-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--font-display); background: var(--bg); border: 1px solid var(--border); color: var(--fg-muted); }
.xlist, .checklist { list-style: none; display: grid; gap: 12px; font-size: var(--fs-small); }
.xlist li, .checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.xlist li { color: var(--fg-muted); }
.xlist li::before { content: "×"; font-weight: 700; color: var(--fg-faint); font-size: 18px; line-height: 1.2; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.7 2.7L14.2 7.4' fill='none' stroke='%231D1D1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat, var(--bb-gradient); }
@media (max-width: 900px) { .compare { grid-template-columns: minmax(0,1fr); } .vs { justify-self: center; } }

/* ---- Bento ---------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); grid-auto-rows: minmax(240px, auto); gap: var(--sp-4); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-raised); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: var(--sp-2); isolation: isolate; text-align: left; }
.tile > .label { align-self: flex-start; }
.tile.photo { color: #F6F5F2; --fg-muted: #DCD9D2; --accent-text: var(--bb-yellow); }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.tile.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,18,17,0) 25%, rgba(18,18,17,.86)); }
.tile:hover img { transform: scale(1.05); }
.tile.brand { background: var(--bb-gradient); color: var(--bb-black); --fg-muted: rgba(29,29,27,.8); --accent-text: var(--bb-black); }
.tile .word { font: 800 clamp(34px, 3.6vw, 52px)/1 var(--font-display); letter-spacing: -.04em; }
.tile p:not(.label) { color: var(--fg-muted); font-size: var(--fs-small); max-width: 44ch; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .row-2 { grid-row: span 2; }
.tick-list { list-style: none; display: grid; gap: 8px; margin-top: var(--sp-2); }
.tick-list li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); color: var(--bb-black); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.tick-list li::before { content: "✓"; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--bb-gradient); font-size: 13px; flex: none; }
.mini-count { display: grid; gap: 6px; margin-block: var(--sp-2); font-size: 14px; font-weight: 600; }
.mini-count div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.55); }
.mini-count .mono { font-weight: 500; }
.mini-count dd { margin: 0; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); } .span-2, .span-3, .span-4 { grid-column: span 2; } .row-2 { grid-row: auto; } .tile.photo { min-height: 340px; } }
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0,1fr); } .span-2, .span-3, .span-4 { grid-column: auto; } }

/* ---- Cards, panels -------------------------------------------------------- */
.card { position: relative; background: var(--bg-raised); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: var(--sp-4); align-content: start; }
.card p:not(.label) { color: var(--fg-muted); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }

/* ---- Chips, pills, badges ------------------------------------------------- */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-2); }
.chip { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; }
.chip.accent { background: var(--bb-gradient-soft); border-color: rgba(242,144,63,.5); grid-column: 1 / -1; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-body); padding: 7px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.pill-ok { background: var(--ok-tint); color: var(--ok); }
.pill-warn { background: var(--warn-tint); color: var(--warn); }
.badge { display: inline-flex; justify-self: start; align-self: start; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--fg-muted); background: var(--bg); }
.badge.solid { background: var(--bb-gradient); color: var(--bb-black); border-color: transparent; }

/* ---- Data table ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.data-table th { text-align: left; font: 600 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); padding: 10px 0; border-bottom: 1px solid var(--border-strong); }
.data-table td { padding: 12px 0; border-bottom: 1px solid var(--border); }
.data-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table th.num { text-align: right; font-family: var(--font-body); }
.data-table td + td, .data-table th + th { padding-left: var(--sp-4); }

/* ---- Devices -------------------------------------------------------------- */
.tablet { background: #252522; border: 1px solid #3a3936; border-radius: 26px; padding: 12px; box-shadow: var(--shadow-device); }
.tablet-screen { background: #fff; border-radius: 14px; padding: 16px; display: grid; gap: 10px; color: var(--ink-900);
  --fg: var(--ink-900); --fg-muted: var(--ink-600); --border: rgba(29,29,27,.12); --border-strong: var(--ink-900); --bg-sunken: var(--paper-50);
  --ok: var(--signal-ok); --warn: var(--signal-warn); --ok-tint: rgba(30,122,76,.1); --warn-tint: rgba(148,82,10,.1); }
.ts-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ts-title { font: 700 16px var(--font-display); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.ts-title img { width: 18px; height: auto; }
.ts-meta { font: 400 11px var(--font-mono); color: var(--ink-600); }
.ts-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ts-stat { border-radius: 10px; padding: 8px 4px; text-align: center; font: 600 11px var(--font-body); }
.ts-stat b { display: block; font: 800 22px/1.1 var(--font-display); }
.ts-stat.ok { background: rgba(30,122,76,.1); color: var(--signal-ok); }
.ts-stat.warn { background: rgba(148,82,10,.1); color: var(--signal-warn); }
.ts-stat.mute { background: var(--paper-50); color: var(--ink-600); }
.ts-flag { border: 1px solid rgba(29,29,27,.12); border-left: 3px solid var(--signal-warn); border-radius: 10px; padding: 9px 11px; font-size: 13px; font-weight: 500; }
.ts-flag.sent { border-left-color: var(--bb-orange); }
.ts-flag.done { border-left-color: var(--signal-ok); }
.ts-flag small { display: block; font: 400 11px var(--font-mono); color: var(--ink-600); margin-top: 2px; }
.ts-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ts-btns span { text-align: center; font-weight: 700; font-size: 13px; padding: 11px 6px; border-radius: 12px; }
.ts-btns .o { border: 1.5px solid var(--ink-900); }
.ts-btns .f { background: var(--bb-gradient); }

.phone { position: relative; width: 100%; max-width: 260px; aspect-ratio: 9 / 19.3; border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #3a3936, #121211 60%); box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255,255,255,.08); flex: none; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); border-radius: 12px; background: #0b0b0a; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; background: var(--bb-yellow); }

/* ---- App band ------------------------------------------------------------- */
.app-band { overflow: hidden; }
.app-band::before { content: ""; position: absolute; inset: 0; background: var(--bb-gradient); z-index: 0; }
.app-band::after { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 65%); z-index: 0; pointer-events: none; }
.app-band > * { position: relative; z-index: 1; }
.app-phones { list-style: none; display: flex; justify-content: center; gap: clamp(12px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px var(--gutter) 40px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.app-phones::-webkit-scrollbar { display: none; }
.app-item { scroll-snap-align: center; display: grid; gap: var(--sp-3); justify-items: center; text-align: center; flex: 0 0 auto; width: clamp(190px, 18vw, 240px); }
.app-item:nth-child(even) { margin-top: 44px; }
.app-item h3 { font: 700 16px var(--font-display); }
.app-item p { font-size: 13.5px; color: var(--fg-muted); max-width: 24ch; }
@media (max-width: 1100px) { .app-phones { justify-content: flex-start; } }
@media (max-width: 760px) { .app-item:nth-child(even) { margin-top: 0; } }
.chat { display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.chat p { padding: 12px 18px; border-radius: 18px; max-width: 34ch; }
.chat .me { justify-self: end; background: var(--bb-black); color: #fff; border-bottom-right-radius: 4px; }
.chat .bot { justify-self: start; background: #fff; border-bottom-left-radius: 4px; }

/* ---- Film ----------------------------------------------------------------- */
.film { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-2); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-cover { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.4)); color: #fff; transition: opacity var(--dur-slow) var(--ease-out); }
.film-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.4s var(--ease-out); }
.film-cover:hover img { transform: scale(1.03); }
.film-cover .play-ring { width: clamp(72px, 9vw, 100px); height: clamp(72px, 9vw, 100px); background: var(--bb-gradient); border: 0; }
.film-cover .play-ring svg { width: 30%; height: 30%; fill: var(--bb-black); }
.film-cover:hover .play-ring { transform: scale(1.08); background: var(--bb-gradient); }
.film-cover .meta { position: absolute; left: clamp(18px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); font: 600 13px var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.film.is-playing .film-cover { opacity: 0; pointer-events: none; }

dialog.lightbox { width: min(1200px, 94vw); max-width: none; padding: 0; border: 0; border-radius: var(--r-lg); background: #000; overflow: hidden; box-shadow: var(--shadow-2); }
dialog.lightbox::backdrop { background: rgba(18,18,17,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.lightbox[open] { animation: zoom-in 500ms var(--ease-out); }
dialog.lightbox video { width: 100%; aspect-ratio: 16 / 9; display: block; }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---- Tabs ----------------------------------------------------------------- */
/* One row always; on narrow screens the row scrolls sideways instead of wrapping */
.tablist { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--bg-raised); border: 1px solid var(--border); }
.tablist::-webkit-scrollbar { display: none; }
/* When the tab row is wider than the screen: arrows to step through tabs, and a fade on
   whichever edge still has tabs hidden behind it. main.js sets is-overflowing / at-start / at-end. */
.tabs-row { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.tabs-row .tablist { flex: 0 1 auto; min-width: 0; }
.tabs-arrow { display: none; flex: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; border: 1px solid var(--border); background: var(--bg); color: var(--fg); cursor: pointer; transition: background var(--dur-fast), opacity var(--dur-fast); }
.tabs-arrow:hover { background: var(--tint-2); }
.tabs-arrow:disabled { opacity: .3; cursor: default; }
.tabs-arrow svg { width: 16px; height: 16px; }
.tabs-row.is-overflowing .tabs-arrow { display: grid; }
.tabs-row.is-overflowing .tablist { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.tabs-row.is-overflowing.at-start .tablist { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.tabs-row.is-overflowing.at-end .tablist { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.tab { flex: none; white-space: nowrap; font: 600 14.5px var(--font-body); padding: 11px 20px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--fg-muted); cursor: pointer; transition: background var(--dur) var(--ease-out), color var(--dur); }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--bb-gradient); color: var(--bb-black); }
.tabpanel { margin-top: var(--sp-6); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.tabpanel:not([hidden]) { animation: panel-in var(--dur-slow) var(--ease-out); }
.tabpanel .tp-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-sunken); }
.tabpanel .tp-media img { width: 100%; height: 100%; object-fit: cover; }

/* Scroll-driven tabs: the block pins while the page scrolls through one step per tab.
   Desktop only (a pinned block taller than the screen would be cut off); main.js uses the same query. */
@media (min-width: 900px) and (min-height: 700px) {
  .scroll-tabs { height: calc(100svh - var(--nav-h) + var(--n) * 45vh); }
  .scroll-tabs-pin { position: sticky; top: var(--nav-h); min-height: calc(100svh - var(--nav-h)); align-content: center; }
}
@media (max-width: 860px) { .tabpanel { grid-template-columns: minmax(0,1fr); } .tablist { border-radius: var(--r-lg); } }

/* ---- Accordion ------------------------------------------------------------ */
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { cursor: pointer; list-style: none; padding: 24px 56px 24px 0; font-weight: 600; font-size: 17.5px; position: relative; transition: color var(--dur-fast); }
.accordion summary:hover { color: var(--accent-text); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--border);
  background: linear-gradient(currentColor,currentColor) center/12px 1.5px no-repeat, linear-gradient(currentColor,currentColor) center/1.5px 12px no-repeat; transition: transform var(--dur) var(--ease-out); }
.accordion details[open] summary::after { transform: rotate(135deg); }
.accordion .answer { padding-bottom: 26px; color: var(--fg-muted); max-width: 68ch; }

/* ---- Spec grid ------------------------------------------------------------ */
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.spec { padding: var(--sp-5) var(--sp-5) var(--sp-6); background: var(--bg-raised); display: grid; gap: 6px; align-content: start; }
.spec .label::before { display: none; }
.spec b { font-weight: 700; font-size: 16px; }
.spec small { color: var(--fg-muted); font-size: 13.5px; }
@media (max-width: 960px) { .spec-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .spec-grid { grid-template-columns: minmax(0,1fr); } }

/* ---- Pilot steps ---------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-4); list-style: none; }
.timeline li { background: rgba(255,255,255,.6); border-radius: var(--r-lg); padding: var(--sp-6); display: grid; gap: var(--sp-3); align-content: start; }
.timeline .when { font: 800 12px var(--font-body); letter-spacing: .16em; }
.timeline p { font-size: var(--fs-small); color: var(--fg-muted); }
@media (max-width: 860px) { .timeline { grid-template-columns: minmax(0,1fr); } }

/* ---- Story (How it works, sticky scrollytelling) -------------------------- */
.story { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(32px, 6vw, 96px); }
.story-steps { list-style: none; display: grid; }
.story-step { min-height: 78vh; display: grid; align-content: center; gap: var(--sp-4); padding-block: var(--sp-7); opacity: .28; transition: opacity var(--dur-slow) var(--ease-out); }
.story-step.is-active { opacity: 1; }
.story-step p { color: var(--fg-muted); max-width: 46ch; }
.story-step .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--font-display); background: var(--bb-gradient); color: var(--bb-black); }
.story-stage { position: sticky; top: calc(var(--nav-h) + 5vh); height: 78vh; min-height: 480px; border-radius: var(--r-xl); background: radial-gradient(120% 90% at 40% 30%, #2a2926, #121211 70%); overflow: hidden; align-self: start; box-shadow: var(--shadow-2); }
.story-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(20px, 3vw, 44px); opacity: 0; transform: scale(.97); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.story-layer.is-active { opacity: 1; transform: none; }
.story-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-layer > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.story-progress { position: absolute; left: 24px; top: 22px; display: flex; gap: 6px; z-index: 2; }
.story-progress span { width: 32px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.story-progress span::after { content: ""; position: absolute; inset: 0; background: var(--bb-gradient); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.story-progress span.is-on::after { transform: scaleX(1); }
.story-label { position: absolute; right: 24px; top: 16px; z-index: 2; font: 600 11.5px var(--font-body); letter-spacing: .14em; color: var(--ink-300); }
/* Phones and tablets: the visual and the current step's text pin together, and scrolling
   steps through 1 to 4 (main.js maps scroll progress to the step). The steps sit on top of
   each other and crossfade, so text never slides under the visual. */
@media (max-width: 960px) {
  /* .story-track is the tall scroll runway; .story (visual + text) pins inside it as one block,
     so both arrive and leave together */
  .story-track { height: calc(100svh - var(--nav-h) + 3 * 65svh); }
  .story { display: flex; flex-direction: column; position: sticky; top: calc(var(--nav-h) + 8px); --stage-h: clamp(220px, 44svh, 420px); }
  /* the visual comes first on small screens (it follows the steps in the markup) */
  .story-stage { order: -1; flex: none; align-self: stretch; width: 100%; position: relative; top: auto; height: var(--stage-h); min-height: 0; }
  .story-steps { flex: none; margin-top: 20px; display: grid; }
  .story-step { grid-area: 1 / 1; min-height: 0; padding-block: 0; align-content: start; gap: var(--sp-3);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur); }
  .story-step.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .story-step .num { width: 34px; height: 34px; font-size: 13px; }
  .story-step .display-m { font-size: clamp(22px, 6vw, 30px); }
  .story-step p { font-size: 15px; line-height: 1.55; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .story { --stage-h: clamp(200px, 38svh, 300px); }
  .story-step p { font-size: 14.5px; }
  .story-layer > .tablet-screen, .story-layer > .tablet,
  .story-layer.is-active > .tablet-screen, .story-layer.is-active > .tablet { transform: scale(.66) !important; }
}

/* ---- Forms ---------------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); background: var(--bg-raised); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-1); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--fg-muted); }
.input { font: 400 16px var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; width: 100%; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.input:hover { border-color: var(--ink-400); }
.input:focus { outline: none; border-color: var(--bb-orange); box-shadow: 0 0 0 4px rgba(242,144,63,.2); }
textarea.input { min-height: 110px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--fg-muted); }
.form-note.is-done { color: var(--accent-text); font-weight: 600; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0,1fr); } }
.contact-list { list-style: none; display: grid; gap: var(--sp-4); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bb-gradient); color: var(--bb-black); }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--fg-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.contact-list a, .contact-addr { text-decoration: none; font-weight: 600; }
#contact address { font-style: normal; }
.contact-list a:hover { color: var(--accent-text); }

/* ---- Simple page head (thanks, 404, style guide) -------------------------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(252,190,39,.28), transparent 70%); z-index: -1; }
.page-head .hero-title { font-size: clamp(40px, 6vw, 84px); max-width: 16ch; }

/* ---- Page hero (dark photo header for inner pages) ------------------------ */
/* Starts below the fixed nav, so the light nav never sits on the dark photo. */
.page-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--nav-h); padding-block: clamp(64px, 10vw, 140px) clamp(56px, 8vw, 112px); background: var(--ink-950); color: var(--fg); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,18,17,.92) 0%, rgba(18,18,17,.72) 45%, rgba(18,18,17,.35) 100%), linear-gradient(0deg, rgba(18,18,17,1) 0%, rgba(18,18,17,0) 40%); }
.page-hero .hero-title { font-size: clamp(42px, 6.4vw, 92px); max-width: 14ch; }

/* ---- Savings estimator (pilot page) --------------------------------------- */
.range-field { display: grid; gap: 12px; }
.range-field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14.5px; }
.range-field output { font: 600 15px var(--font-mono); color: var(--accent-text); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #F2903F, #FCBE27) 0/var(--fill, 50%) 100% no-repeat, var(--bg-sunken); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--bb-black); box-shadow: var(--shadow-1); transition: transform var(--dur-fast); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--bb-black); }
.roi { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: var(--sp-5); }
.roi-out { background: var(--ink-950); color: #F6F5F2; --fg-muted: var(--ink-300); --accent-text: var(--bb-yellow); --border: rgba(255,255,255,.1); }
.roi-out .big { font: 800 clamp(56px, 7vw, 96px)/1 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .roi { grid-template-columns: minmax(0,1fr); } }

/* ---- Call to action band -------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 88px); background: var(--bb-gradient); color: var(--bb-black); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-6); isolation: isolate;
  --fg: var(--bb-black); --fg-muted: rgba(29,29,27,.82); --accent-text: var(--bb-black); --border-strong: var(--bb-black); --grad-text: linear-gradient(var(--bb-black), var(--bb-black)); }
.cta::before { content: ""; position: absolute; right: -6%; bottom: -40%; width: 46%; aspect-ratio: 1; background: url("../assets/brand/bb-mark.svg") center/contain no-repeat; opacity: .16; filter: brightness(0); z-index: -1; transform: rotate(-8deg); }
.cta .display-l { max-width: 15ch; }
.cta .btn-primary { background: var(--bb-black); color: #fff; box-shadow: 0 10px 30px rgba(29,29,27,.25); }
.cta .btn-secondary:hover { background: var(--bb-black); color: #fff; }

/* ---- Phone type: lift small print to a comfortable reading size ----------- */
@media (max-width: 600px) {
  .spec small, .app-item p, .field label, .form-note, .ts-flag, .spot-card strong { font-size: 14.5px; }
  .contact-list small { font-size: 12.5px; }
  .accordion summary { font-size: 16.5px; padding-block: 20px; }
  .tab { font-size: 14px; padding: 10px 16px; }
}
@media (max-width: 380px) {
  :root { --fs-hero: 38px; --fs-display-l: 29px; }
}

/* ---- Footer (dark) -------------------------------------------------------- */
.footer { padding-block: var(--sp-9) var(--sp-6); background: var(--ink-950); color: #F6F5F2; --fg-muted: var(--ink-300); --border: rgba(255,255,255,.08); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(2, minmax(0,1fr)); gap: var(--sp-7); }
.footer .brand img { height: 40px; }
.footer-base small { font-size: inherit; }
.footer h2 { font: 600 var(--fs-label) var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); margin-bottom: var(--sp-4); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: #F6F5F2; font-size: var(--fs-small); transition: color var(--dur-fast); }
.footer a:hover { color: var(--bb-yellow); }
.footer address { font-style: normal; font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.7; }
.footer .slogan { font-size: clamp(28px, 3vw, 40px); color: #F6F5F2; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: var(--fs-caption); color: var(--ink-400); }
.footer :focus-visible { outline-color: var(--bb-yellow); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: minmax(0,1fr); } }

/* ---- Style guide helpers -------------------------------------------------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--sp-3); }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--paper-0); }
.swatch i { display: block; height: 96px; }
.swatch div { padding: 10px 12px; display: grid; gap: 2px; font-size: 13px; color: var(--ink-900); }
.swatch code { font: 400 11.5px var(--font-mono); color: var(--ink-600); }
.sg-row { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: var(--sp-5); padding-block: var(--sp-4); border-bottom: 1px solid var(--border); align-items: baseline; }
.sg-row code { font: 400 12px var(--font-mono); color: var(--fg-muted); }
.sg-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: var(--sp-8); }
.sg-nav { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 4px; align-self: start; font-size: var(--fs-small); }
.sg-nav a { text-decoration: none; color: var(--fg-muted); padding: 6px 12px; border-radius: 8px; }
.sg-nav a:hover { color: var(--fg); background: var(--bg-raised); }
.sg-block { padding-block: var(--sp-8); border-top: 1px solid var(--border); display: grid; gap: var(--sp-5); }
.sg-block:first-child { border-top: 0; padding-top: 0; }
.space-bar { height: 14px; background: var(--bb-gradient); border-radius: 3px; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.do-dont > div { border-radius: var(--r-md); padding: var(--sp-5); background: var(--bg-raised); border-top: 4px solid var(--ok); display: grid; gap: var(--sp-2); }
.do-dont > div.dont { border-top-color: var(--crit); }
.logo-tile { border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; place-items: center; min-height: 200px; }
.logo-tile img { max-height: 90px; width: auto; }
pre.code { background: var(--ink-950); color: #F6F5F2; padding: var(--sp-5); border-radius: var(--r-md); overflow-x: auto; font: 400 13px/1.6 var(--font-mono); }
@media (max-width: 860px) { .sg-layout { grid-template-columns: minmax(0,1fr); } .sg-nav { display: none; } .sg-row { grid-template-columns: minmax(0,1fr); gap: 6px; } .do-dont { grid-template-columns: minmax(0,1fr); } }

/* ---- Small utilities used by the style guide ------------------------------ */
.breadcrumb { font: 600 var(--fs-label) var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
.breadcrumb a { text-decoration: none; } .breadcrumb a:hover { color: var(--fg); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bb-gradient); color: var(--bb-black); }
.card-icon svg { width: 26px; height: 26px; }
.feature-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .story-layer { padding: 10px; }
  .story-layer > .tablet-screen, .story-layer > .tablet { transform: scale(.84); }
  .story-layer.is-active > .tablet-screen, .story-layer.is-active > .tablet { transform: scale(.84); }
}
