* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-shell { position: relative; min-height: 100vh; isolation: isolate; }
.site-shell::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url("assets/retro/texture-halftone.png") top right / 760px auto repeat-y;
  opacity: .14;
}
.site-shell::after {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none;
  background: url("assets/retro/texture-confetti.png") center / 960px auto repeat;
  opacity: .035;
}
.site-nav { position: sticky; top: 0; z-index: var(--bf-z-sticky); border-bottom: 1px solid var(--bf-border-strong); background: rgba(10,10,15,.9); backdrop-filter: blur(18px); }
.site-nav__inner { min-height: 72px; max-width: var(--bf-content-max); margin: 0 auto; padding: 10px var(--bf-page-pad); display: flex; align-items: center; gap: 24px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; border: 0; color: var(--bf-fg); }
.brand-lockup:hover { border: 0; color: var(--bf-fg); }
.brand-lockup img { width: 44px; height: 44px; object-fit: contain; }
.brand-lockup span { font-family: var(--bf-font-display); font-size: 24px; line-height: 1; letter-spacing: .04em; }
.site-nav__links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav__links a { color: var(--bf-muted); border: 0; font-size: 14px; font-weight: 700; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--bf-fg); }
.site-nav .bf-btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--bf-border-strong); color: var(--bf-fg); border-radius: var(--bf-radius-sm); min-width: 44px; min-height: 44px; }

.hero { min-height: calc(100svh - 72px); display: grid; align-items: center; padding: 44px 0 56px; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: clamp(32px,6vw,88px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.signal { display: inline-flex; align-items: center; gap: 8px; font-family: var(--bf-font-mono); color: var(--bf-accent-2); text-transform: uppercase; letter-spacing: .11em; font-size: 14px; }
.signal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bf-accent-2); box-shadow: var(--bf-shadow-signal); }
.hero h1 { font-size: clamp(72px,8vw,118px); line-height: .82; max-width: none; margin: 18px 0 20px; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero h1 .chroma { color: var(--bf-fg); text-shadow: -4px 0 0 var(--bf-accent), 4px 0 0 var(--bf-accent-2); }
.hero__lede { max-width: 34ch; color: var(--bf-muted); font-size: clamp(18px,2vw,22px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero__art { position: relative; min-height: 510px; display: grid; place-items: center; }
.hero__art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid var(--bf-accent-2); border-radius: 50%; box-shadow: var(--bf-shadow-cyan-rim); opacity: .55; }
.hero__art img { width: min(620px,100%); position: relative; z-index: 2; filter: drop-shadow(18px 22px 0 rgba(255,43,214,.16)); animation: mascotFloat 5s var(--bf-ease-in-out) infinite alternate; }
.tape-note { position: absolute; z-index: 3; max-width: 200px; padding: 18px; background: var(--bf-cream); color: var(--bf-ink); border: var(--bf-border-width-chunky) solid var(--bf-ink); box-shadow: var(--bf-shadow-tape); transform: rotate(4deg); font-family: var(--bf-font-mono); font-size: 15px; line-height: 1.2; }
.hero__art .tape-note { right: -8px; bottom: 52px; }
@keyframes mascotFloat { to { transform: translateY(-14px) rotate(1deg); } }

.color-strip { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; height: 16px; }
.color-strip span:nth-child(1) { background: var(--bf-accent); }
.color-strip span:nth-child(2) { background: var(--bf-accent-2); }
.color-strip span:nth-child(3) { background: var(--bf-accent-3); }
.color-strip span:nth-child(4) { background: var(--bf-mint); }

.cd-orbit {
  position: fixed; left: 18px; bottom: 18px; z-index: var(--bf-z-elevated);
  display: grid; place-items: center; width: 118px; min-height: 150px; padding: 10px;
  border: 1px solid var(--bf-border-strong); border-radius: var(--bf-radius-pill);
  background: rgba(10,10,15,.78); backdrop-filter: blur(16px); color: var(--bf-fg); cursor: pointer;
}
.cd-orbit:hover { border-color: var(--bf-accent-2); }
.cd-orbit:active { transform: translateY(1px); }
.cd-orbit img { width: 96px; height: 96px; object-fit: contain; animation: bfDiscSpin 13s linear infinite, bfDiscShimmer 3.8s ease-in-out infinite alternate; }
.cd-orbit span { margin-top: 4px; font-family: var(--bf-font-mono); font-size: 11px; letter-spacing: .08em; color: var(--bf-accent-2); }
.cd-orbit[aria-pressed="true"] img { animation-play-state: paused; }
@keyframes bfDiscSpin { to { transform: rotate(360deg); } }
@keyframes bfDiscShimmer {
  from { filter: saturate(1) brightness(.92) drop-shadow(0 0 8px rgba(0,212,255,.22)); }
  to { filter: saturate(1.28) brightness(1.12) drop-shadow(0 0 18px rgba(255,43,214,.34)); }
}

.section { padding: clamp(72px,9vw,128px) 0; position: relative; }
.section--surface { background: var(--bf-surface); border-block: 1px solid var(--bf-border); }
.section__head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(52px,7vw,96px); line-height: .9; }
.section__head p { color: var(--bf-muted); max-width: 48ch; font-size: 18px; }

.proof-console { display: grid; grid-template-columns: 190px minmax(0,1fr); border: var(--bf-border-width-chunky) solid var(--bf-border-strong); background: var(--bf-bg); box-shadow: var(--bf-shadow-console); min-height: 680px; overflow: hidden; }
.proof-console__rail { padding: 24px 18px; border-right: 1px solid var(--bf-border-strong); background: var(--bf-surface-2); display: flex; flex-direction: column; gap: 12px; }
.proof-console__rail strong { font-family: var(--bf-font-mono); color: var(--bf-accent-3); font-size: 14px; letter-spacing: .08em; }
.proof-console__rail a { color: var(--bf-muted); border: 0; padding: 9px 10px; font-size: 13px; }
.proof-console__rail a:first-of-type { background: var(--bf-accent-bg); color: var(--bf-fg); border-left: 2px solid var(--bf-accent); }
.proof-console__screen { position: relative; min-width: 0; }
.proof-console iframe { width: 1280px; height: 780px; border: 0; transform: scale(.79); transform-origin: top left; }
.proof-console__badge { position: absolute; right: 18px; top: 16px; z-index: 2; padding: 8px 12px; border: 1px solid var(--bf-accent-2); background: var(--bf-bg); color: var(--bf-accent-2); font-family: var(--bf-font-mono); font-size: 13px; }

.workflow { border-top: 1px solid var(--bf-border-strong); }
.workflow__row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--bf-border); align-items: start; }
.workflow__num { font-family: var(--bf-font-mono); color: var(--bf-accent-2); font-size: 20px; }
.workflow__row h3 { font-size: 36px; }
.workflow__row p { color: var(--bf-muted); max-width: 52ch; }

.collage { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2,minmax(250px,1fr)); gap: 18px; }
.collage__feature { grid-row: span 2; min-height: 640px; }
.collage article { position: relative; overflow: hidden; border: 1px solid var(--bf-border-strong); background: var(--bf-surface); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__caption { position: absolute; inset: auto 18px 18px; padding: 14px 16px; background: rgba(10,10,15,.88); backdrop-filter: blur(12px); border-left: 3px solid var(--bf-accent); }
.collage__caption strong { display: block; font-family: var(--bf-font-display); font-size: 26px; font-weight: 400; }
.collage__caption span { color: var(--bf-muted); font-size: 14px; }

.cta-stage { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; padding: 56px; background: var(--bf-accent-3); color: var(--bf-ink); border: var(--bf-border-width-poster) solid var(--bf-ink); box-shadow: var(--bf-shadow-stage); transform: rotate(-.35deg); }
.cta-stage h2 { color: var(--bf-ink); font-size: clamp(56px,8vw,104px); line-height: .88; }
.cta-stage p { margin: 18px 0 28px; max-width: 46ch; }
.cta-stage img { width: 280px; filter: drop-shadow(8px 10px 0 rgba(13,13,13,.22)); }

.site-footer { border-top: 1px solid var(--bf-border-strong); padding: 40px 0; }
.site-footer__grid { display: flex; gap: 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--bf-muted); border: 0; font-size: 14px; }
.site-footer small { color: var(--bf-text-faint); }

.portal-hero { padding: 84px 0 44px; }
.portal-hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.portal-hero h1 { font-size: clamp(72px,9vw,132px); line-height: .84; margin: 18px 0 24px; }
.portal-hero p { color: var(--bf-muted); max-width: 36ch; font-size: 20px; }
.desk-card { background: var(--bf-cream); color: var(--bf-ink); border: var(--bf-border-width-poster) solid var(--bf-ink); box-shadow: var(--bf-shadow-console); transform: rotate(1deg); }
.desk-card__bar { padding: 12px 16px; background: var(--bf-accent); color: var(--bf-on-accent); border-bottom: 3px solid var(--bf-ink); display: flex; justify-content: space-between; font-family: var(--bf-font-mono); }
.desk-card__body { padding: 28px; }

.openings { border-top: 1px solid var(--bf-border-strong); }
.opening { display: grid; grid-template-columns: 1.1fr .8fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--bf-border); align-items: center; }
.opening h3 { font-size: 34px; }
.opening p { color: var(--bf-muted); }
.opening__meta { font-family: var(--bf-font-mono); color: var(--bf-accent-2); }

.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
.form-card { border: 1px solid var(--bf-border-strong); background: var(--bf-surface); padding: clamp(24px,5vw,48px); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.consent-box { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 18px; background: var(--bf-bg); border: 1px solid var(--bf-border-strong); }
.consent-box input { width: 24px; height: 24px; margin: 8px 0 0 8px; accent-color: var(--bf-accent); }
.trust-note { position: sticky; top: 104px; padding: 24px; background: var(--bf-cream); color: var(--bf-ink); border: var(--bf-border-width-chunky) solid var(--bf-ink); box-shadow: var(--bf-shadow-note); transform: rotate(1.2deg); }
.trust-note img { width: 170px; margin: -70px auto 12px; }
.trust-note h2 { color: var(--bf-ink); font-size: 42px; }
.trust-note ul { padding-left: 20px; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0,68ch); gap: 72px; align-items: start; }
.legal-toc { position: sticky; top: 104px; border-left: 2px solid var(--bf-accent); padding-left: 18px; }
.legal-toc strong { display: block; font-family: var(--bf-font-mono); color: var(--bf-accent-2); margin-bottom: 12px; }
.legal-toc a { display: block; color: var(--bf-muted); border: 0; padding: 5px 0; font-size: 14px; }
.legal-copy h1 { font-size: clamp(58px,6.5vw,86px); line-height: .88; margin-bottom: 20px; }
.legal-copy h2 { font-size: 34px; margin: 48px 0 12px; }
.legal-copy p, .legal-copy li { color: var(--bf-muted); }
.legal-copy ul { padding-left: 22px; }
.legal-stamp { display: inline-block; margin-top: 28px; padding: 12px 16px; border: 2px solid var(--bf-accent-2); color: var(--bf-accent-2); font-family: var(--bf-font-mono); transform: rotate(-2deg); }

@media (max-width: 980px) {
  .site-nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 20px var(--bf-page-pad); background: var(--bf-surface); border-bottom: 1px solid var(--bf-border-strong); flex-direction: column; align-items: stretch; }
  .site-nav__links[data-open="true"] { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero__grid, .portal-hero__grid, .form-layout, .legal-layout { grid-template-columns: 1fr; }
  .hero__art { min-height: 440px; }
  .section__head { grid-template-columns: 1fr; gap: 20px; }
  .proof-console { grid-template-columns: 1fr; min-height: 620px; }
  .proof-console__rail { display: none; }
  .proof-console iframe { transform: scale(.72); }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 460px 280px; }
  .collage__feature { grid-column: 1 / -1; grid-row: auto; min-height: auto; }
  .cta-stage { grid-template-columns: 1fr; }
  .cta-stage img { display: none; }
  .legal-toc { position: static; }
}
@media (max-width: 680px) {
  .site-nav .bf-btn { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(64px,22vw,94px); }
  .hero h1 > span { white-space: normal; }
  .hero__art { min-height: 360px; }
  .hero__art .tape-note { bottom: 16px; }
  .workflow__row { grid-template-columns: 48px 1fr; }
  .workflow__row p { grid-column: 2; }
  .proof-console { min-height: 500px; }
  .proof-console iframe { transform: scale(.54); }
  .collage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .collage article { min-width: 82vw; height: 420px; scroll-snap-align: start; }
  .cta-stage { padding: 34px 24px; box-shadow: var(--bf-shadow-sticker-accent); }
  .site-footer__grid { align-items: flex-start; flex-direction: column; }
  .cd-orbit { left: auto; right: 10px; bottom: 10px; width: 76px; min-height: 76px; padding: 5px; }
  .cd-orbit img { width: 64px; height: 64px; }
  .cd-orbit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .opening { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}
