/* ============================================================
   BVS Website — deck-accurate brand tokens + site styles
   Source of truth: BVS Master Deck. Electric blue, italic-black
   Helvetica "BVS." wordmark, warm paper, mono // eyebrows.
   ============================================================ */
:root {
  --bvs-blue:#0017DB; --bvs-blue-deep:#000ea0; --bvs-ink:#0a0a0a;
  --bvs-paper:#f5f3ee; --bvs-paper-dim:#ebe9e2; --bvs-white:#ffffff;
  --bvs-green:#4ade5b; --bvs-green-deep:#16a34a; --bvs-red:#ef2b2b; --bvs-yellow:#fff35a;
  --bvs-line:rgba(10,10,10,0.10);
  --bvs-sans:"Helvetica Neue",Helvetica,Arial,"Liberation Sans",sans-serif;
  --bvs-mono:"Helvetica Neue",Helvetica,Arial,"Liberation Sans",sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --dot:radial-gradient(circle, rgba(10,10,10,0.035) 1.2px, transparent 1.2px);
  --dot-dark:radial-gradient(circle, rgba(255,255,255,0.06) 1.3px, transparent 1.3px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bvs-paper); color: var(--bvs-ink);
  font-family: var(--bvs-sans); overflow-x: hidden;
}
#root { min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--bvs-blue); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bvs-paper-dim); }
::-webkit-scrollbar-thumb { background: rgba(0,23,219,0.30); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,23,219,0.55); }

/* layout */
.wrap { max-width: 1400px; margin: 0 auto; padding-left: 8vw; padding-right: 8vw; }
@media (max-width: 760px) { .wrap { padding-left: 24px; padding-right: 24px; } }

.dotgrid { background-image: var(--dot); background-size: 44px 44px; }
.dotgrid-d { background-image: var(--dot-dark); background-size: 44px 44px; }

/* ---- depth: layered deep-blue background with glow + grain ---- */
.depth {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(115% 80% at 50% -12%, rgba(58,86,255,0.55) 0%, rgba(10,14,90,0) 58%),
    radial-gradient(70% 60% at 88% 8%, rgba(0,120,255,0.30) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(80% 75% at 8% 96%, rgba(0,30,200,0.42) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #050726 0%, #070a30 46%, #04061c 100%);
  color: #fff;
}
.depth::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.depth::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("noise.svg");
  mix-blend-mode: overlay;
}
/* soft floating glow orbs for extra depth */
.depth-orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none; opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
  .depth-orb { animation: orbDrift 16s var(--ease) infinite alternate; }
  @keyframes orbDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-26px,0); } }
}

/* animated aurora — slow drifting gradient field for background motion */
.depth-aurora {
  position: absolute; inset: -25% -15%; z-index: -1; pointer-events: none; opacity: 0.85;
  background:
    radial-gradient(38% 46% at 22% 32%, rgba(0,60,255,0.42) 0%, rgba(0,0,0,0) 62%),
    radial-gradient(34% 42% at 80% 22%, rgba(56,128,255,0.38) 0%, rgba(0,0,0,0) 62%),
    radial-gradient(44% 52% at 62% 82%, rgba(0,22,170,0.45) 0%, rgba(0,0,0,0) 64%);
  filter: blur(34px);
}
@media (prefers-reduced-motion: no-preference) {
  .depth-aurora { animation: auroraDrift 22s ease-in-out infinite alternate; }
  @keyframes auroraDrift {
    0%   { transform: translate3d(-3%,-2%,0) scale(1.04) rotate(0deg); }
    50%  { transform: translate3d(3%,2%,0)  scale(1.12) rotate(4deg); }
    100% { transform: translate3d(5%,-3%,0) scale(1.06) rotate(-3deg); }
  }
}

/* ---- typography primitives ---- */
.eyebrow { font-family: var(--bvs-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bvs-blue); }
.eyebrow.on-blue { color: rgba(255,255,255,0.65); }
.microtag { font-family: var(--bvs-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(10,10,10,0.42); }
.h-disp { margin: 0; font-style: normal; font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; color: var(--bvs-ink); }
.h-disp em, .h-disp .it { font-style: italic; font-weight: 700; }
.mono { font-family: var(--bvs-mono); }

/* ---- scroll reveal: visible by default, .pre hides below-fold ---- */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.pre { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---- animated link underline ---- */
.ul-link { position: relative; width: fit-content; }
.ul-link::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .26s var(--ease); }
.ul-link:hover::after { transform: scaleX(1); }

/* ---- marquee ---- */
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; font-family: var(--bvs-sans); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; padding: 14px 24px; border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--bvs-blue); color: #fff; box-shadow: 0 10px 26px -14px rgba(0,23,219,0.5); }
.btn-blue:hover { background: var(--bvs-blue-deep); box-shadow: 0 14px 32px -14px rgba(0,23,219,0.6); }
.btn-ink { background: var(--bvs-ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-white { background: #fff; color: var(--bvs-blue); }
.btn-white:hover { background: var(--bvs-paper); }
.btn-ghost-w { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }
.btn-ghost-w:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,0.08); }
.btn-ghost-b { background: transparent; color: var(--bvs-blue); box-shadow: inset 0 0 0 1.5px var(--bvs-blue); }
.btn-ghost-b:hover { background: var(--bvs-blue); color: #fff; }
.btn .arr { transition: transform .22s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---- chips ---- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--bvs-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.chip-blue { background: rgba(0,23,219,0.08); color: var(--bvs-blue); }
.chip-ink { background: rgba(10,10,10,0.06); color: rgba(10,10,10,0.7); }
.chip-green { background: rgba(22,163,74,0.12); color: var(--bvs-green-deep); }
.chip-onblue { background: rgba(255,255,255,0.12); color: #fff; }
.chip-outline { background: transparent; color: var(--bvs-blue); box-shadow: inset 0 0 0 1px rgba(0,23,219,0.3); }

/* ---- page enter ---- */
.page-enter { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- float drift ---- */
.floaty { animation: floaty 7s var(--ease) infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } }

/* ---- ghost wordmark (retired — kept tiny for safety) ---- */
.ghost { display: none !important; }

/* ---- card ---- */
.card { background: #fff; border: 1px solid rgba(10,10,10,0.07); border-radius: 18px; box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 18px 40px -28px rgba(10,10,10,0.16); }

/* split panel hover */
.split-panel { transition: flex .42s var(--ease), background .2s var(--ease); }

/* sticky col */
@media (min-width: 1000px) { .sticky-col { position: sticky; top: 108px; } }

/* ---- depth parallax + tilt ---- */
.depth-aurora, .depth-orb { transform: translate3d(0, var(--py, 0px), 0); }
.depth .floaty { transition: transform .3s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .depth .floaty { transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0); }
}
.card, .agent-card, .svc6-cell, .loc-chip { transform-style: preserve-3d; }

/* hairline */
.hair { border-top: 1px solid var(--bvs-line); }
.hair-w { border-top: 1px solid rgba(255,255,255,0.18); }

/* globe city labels (overlay tracking cobe rotation) */
.globe-label {
  position: absolute; top: 0; left: 0; pointer-events: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--bvs-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; padding: 3px 8px; border-radius: 999px;
  background: rgba(7,9,40,0.66); border: 1px solid rgba(74,222,91,0.45);
  backdrop-filter: blur(2px); will-change: transform, opacity;
}
.globe-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bvs-green); flex: none; }

/* ---- needs-engine floating motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .ne-float { transform-box: fill-box; transform-origin: center; animation: neFloat 5.5s ease-in-out infinite; }
  .ne-float.f1 { animation-delay: 0s; } .ne-float.f2 { animation-delay: -1.3s; }
  .ne-float.f3 { animation-delay: -2.6s; } .ne-float.f4 { animation-delay: -0.7s; }
  @keyframes neFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  .ne-core-float { transform-box: fill-box; transform-origin: center; animation: neCoreFloat 6.5s ease-in-out infinite; }
  @keyframes neCoreFloat { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
}

.loc-chip:hover { background: rgba(255,255,255,0.08); border-color: rgba(74,222,91,0.4); }
.loc-chip { min-height: 64px; justify-content: space-between; }
img { max-width: 100%; }

/* ---- solutions hero network graphic ---- */
.hero-node { transform-box: fill-box; transform-origin: center; animation: heroPulse 3.4s var(--ease) infinite; }
.hero-node.n1 { animation-delay: .2s; } .hero-node.n2 { animation-delay: .6s; }
.hero-node.n3 { animation-delay: 1s; } .hero-node.n4 { animation-delay: 1.4s; }
.hero-node.n5 { animation-delay: 1.8s; } .hero-node.n6 { animation-delay: 2.2s; }
@keyframes heroPulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.22); opacity: 1; } }
.hero-core { transform-box: fill-box; transform-origin: center; animation: coreBeat 3.6s var(--ease) infinite; }
@keyframes coreBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---- rotating globe (where we work) ---- */
.globe-rot { transform-box: fill-box; transform-origin: center; animation: globeSpin 22s linear infinite; }
@keyframes globeSpin { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }
.pin-ping { transform-box: fill-box; transform-origin: center; animation: pinPing 2.6s var(--ease) infinite; }
.pin-ping.p2 { animation-delay: .6s; } .pin-ping.p3 { animation-delay: 1.2s; } .pin-ping.p4 { animation-delay: 1.8s; }
@keyframes pinPing { 0% { transform: scale(.4); opacity: .9; } 70%,100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-node, .hero-core, .globe-rot, .pin-ping { animation: none; } }

/* ---- hero agent console ---- */
.ac-row { opacity: 0; animation: acIn 9s var(--ease) infinite; }
@keyframes acIn { 0%,2%{opacity:0;transform:translateY(10px);} 8%{opacity:1;transform:none;} 90%{opacity:1;transform:none;} 97%,100%{opacity:0;transform:translateY(-4px);} }
.ac-typing span { display:inline-block; width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,0.6); margin:0 1.5px; animation: acDot 1.2s ease-in-out infinite; }
.ac-typing span:nth-child(2){ animation-delay:.18s; } .ac-typing span:nth-child(3){ animation-delay:.36s; }
@keyframes acDot { 0%,100%{ transform:translateY(0); opacity:.4; } 50%{ transform:translateY(-4px); opacity:1; } }
.ac-live { animation: acLive 1.8s ease-in-out infinite; }
@keyframes acLive { 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
@media (prefers-reduced-motion: reduce) { .ac-row{ opacity:1 !important; animation:none; } .ac-typing span,.ac-live{ animation:none; } }

/* ---- media process journey ---- */
.jrny-line { position: relative; overflow: hidden; }
.jrny-pulse { position: absolute; left: 0; right: 0; height: 90px; background: linear-gradient(180deg, transparent, var(--bvs-green), transparent); animation: jrnyTravel 4.5s linear infinite; }
@keyframes jrnyTravel { 0%{ transform: translateY(-90px); } 100%{ transform: translateY(var(--jrny-h, 600px)); } }
.jrny-node { animation: jrnyNode 3s ease-in-out infinite; }
.jrny-node.j1{animation-delay:0s} .jrny-node.j2{animation-delay:.5s} .jrny-node.j3{animation-delay:1s} .jrny-node.j4{animation-delay:1.5s} .jrny-node.j5{animation-delay:2s}
@keyframes jrnyNode { 0%,100%{ box-shadow: 0 0 0 6px rgba(0,23,219,1), 0 0 0 7px rgba(255,255,255,0.18); } 50%{ box-shadow: 0 0 0 6px rgba(0,23,219,1), 0 0 0 8px rgba(74,222,91,0.6), 0 0 18px 8px rgba(74,222,91,0.25); } }
@media (prefers-reduced-motion: reduce) { .jrny-pulse, .jrny-node { animation: none; } }

/* ---- legal pages (privacy / terms) ---- */
.legal-hero { padding: clamp(116px,15vw,184px) clamp(22px,6vw,80px) clamp(64px,10vw,116px); background: radial-gradient(82% 72% at 50% -8%, rgba(92,122,255,0.42), rgba(92,122,255,0) 62%); overflow: hidden; }
.legal-hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.05) 1px,transparent 1px); background-size: 70px 70px; -webkit-mask-image: linear-gradient(180deg,#000 0%,transparent 82%); mask-image: linear-gradient(180deg,#000 0%,transparent 82%); }
.legal-hero-ghost { position: absolute; top: clamp(40px,8vw,96px); right: clamp(12px,5vw,72px); font-size: clamp(60px,13vw,150px); line-height: 0.8; color: rgba(255,255,255,0.12); font-weight: 700; pointer-events: none; user-select: none; letter-spacing: -0.05em; }
.legal-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.06em; padding: 9px 15px; border-radius: 2px; }
.legal-pill-solid { color: var(--bvs-blue); background: #fff; font-weight: 700; }
.legal-pill-ghost { color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); }
.legal-sec { display: flex; flex-wrap: wrap; gap: clamp(18px,3vw,44px); padding: clamp(34px,5vw,54px) 0; border-bottom: 1px solid rgba(255,255,255,0.12); scroll-margin-top: 88px; }
.legal-sec-num { flex: 0 0 auto; width: 60px; display: flex; flex-direction: column; gap: 13px; }
.legal-plain { display: flex; gap: 13px; margin: 0 0 26px; padding: 16px 18px; background: rgba(74,222,91,0.08); border: 1px solid rgba(74,222,91,0.24); border-left: 2px solid var(--bvs-green); border-radius: 0 5px 5px 0; }
.legal-plain-mark { flex: none; width: 9px; height: 9px; background: var(--bvs-green); transform: rotate(45deg); margin-top: 5px; box-shadow: 0 0 12px rgba(74,222,91,0.45); }
.legal-contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 1px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.13); border-radius: 7px; overflow: hidden; }
.legal-contact { display: block; padding: 22px 24px; background: rgba(255,255,255,0.05); text-decoration: none; transition: background .25s var(--ease); }
.legal-contact:hover { background: rgba(157,176,255,0.16); }
.foot-legal { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot-legal .ul-link { cursor: pointer; }

/* ---- our work: reel, split by orientation ----
   Landscape and vertical live in separate groups so each grid holds a single
   aspect ratio. Both run 3 columns, which keeps the tile width consistent
   between the two groups and tiles the 6 vertical clips into exactly 2 rows. */
.reel-land { grid-template-columns: repeat(3, 1fr); }
.reel-port { grid-template-columns: repeat(3, 1fr); }
/* scrim so the white tag stays legible on light posters */
.reel-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.62) 100%); pointer-events: none; z-index: 1; }
@media (max-width: 900px) {
  .reel-land { grid-template-columns: repeat(2, 1fr); }
  .reel-port { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reel-land { grid-template-columns: 1fr; }
  .reel-port { grid-template-columns: repeat(2, 1fr); }
}

/* buffering spinner on a reel tile (shown while the clip downloads) */
.reel-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: reelSpin .7s linear infinite; }
@keyframes reelSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reel-spin { animation-duration: 2s; } }

/* ---- hero + globe responsive ---- */
.sol-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.globe-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .sol-hero { grid-template-columns: 1fr; gap: 40px; }
  .globe-grid { grid-template-columns: 1fr; gap: 36px; }
  .sol-hero .hero-art { order: -1; max-width: 460px; }
}
