:root{
  --bg:#070913;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.10);
  --text:#f3f4ff;
  --muted:rgba(243,244,255,.75);
  --line:rgba(255,255,255,.12);
  --glow: 0 0 24px rgba(120,170,255,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Arial,sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 30% 10%, rgba(120,170,255,.18), transparent 55%),
              radial-gradient(900px 500px at 70% 30%, rgba(255,210,120,.12), transparent 60%),
              var(--bg);
}
a{color:inherit; text-decoration:none}
strong{font-weight:800}
.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background:rgba(0,0,0,.35);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand{display:flex; gap:12px; align-items:center}
.brand__logo{
  width:40px; height:40px; display:grid; place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  box-shadow:var(--glow);
}
.brand__name{font-weight:900; letter-spacing:.3px}
.brand__tag{font-size:12px; color:var(--muted)}
.topnav{display:flex; gap:14px; align-items:center}
.topnav a{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  color:var(--muted);
}
.topnav a:hover{border-color:var(--line); color:var(--text); background:var(--panel)}
.btn{border:1px solid var(--line); background:var(--panel2); color:var(--text)}
.btn--glow{box-shadow:var(--glow)}
h1{margin:0 0 10px; font-size:42px; letter-spacing:.2px}
p{margin:0 0 18px; color:var(--muted); line-height:1.5}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:18px;
}
.card{
  grid-column: span 6;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--panel);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.card:hover{transform: translateY(-2px); background:var(--panel2); border-color:rgba(255,255,255,.18)}
.card h2{margin:0 0 6px; font-size:18px}
.card p{margin:0; font-size:13px}
.card--wide{grid-column: span 12}
.footer{
  display:flex; flex-wrap:wrap;
  gap:10px; align-items:center;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
.footer .sep{opacity:.6}
@media (max-width: 820px){
  h1{font-size:34px}
  .card{grid-column: span 12}
}

/* === Background video (Lookout loop) === */
/* --- VIDEO: blurred backdrop layer (no ugly side bars) --- */
/* --- HOME VIDEO LAYERING (make blur actually visible) --- */
/* Put both videos behind the content box */
/* Foreground video shows whole frame (may letterbox) */
.home #bgVideo{ object-fit: cover; }

/* Background blur fills the screen so bars feel cinematic */
/* Ensure your UI sits ABOVE videos */
/* --- SCRUBBING UX --- */
/* allow vertical scroll, still capture horizontal drag */
/* make sure the background video never steals pointer events */
/* ensure background video is truly background */
/* help touch + drag */
/* allow vertical scroll; we still get pointer events */

/* --- SCRUB FIX: make sure drag events reach our listeners --- */
/* video never captures mouse/touch */
/* allow pointermove on touch */

/* --- SCRUB LAYER: captures drag on top of the hero --- */
/* Make sure overlay stays clickable ABOVE scrub layer */
/* Video stays behind everything */
/* === Swipe/Scrub video control === */
/* We will listen on the whole page, but this makes it feel right */
body.home{ cursor: grab; }
body.home.scrubbing{ cursor: grabbing; }
@media (hover:none){
  body.home{ cursor: default; } /* phones don't need cursor */
}

/* --- VIDEO SCRUB LAYER (captures drag/swipe) --- */
/* keep UI above scrub layer */

/* --- VIDEO SCRUB LAYER (canonical) --- */
/* Frame-based background (image sequence) */
#bgFrame{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: contain;
  object-position: center; /* no stretch; allow side bars */
  z-index:0;
  pointer-events:none;
}

.hero{
  background: #000; position: relative; overflow: hidden; min-height: 100vh; }

.bgvideo{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none; /* video never intercepts drag/click */
}

.scrub-layer{
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: auto;
  touch-action: pan-y; /* allow vertical scroll; we handle horizontal */
  cursor: grab;
}

body.scrubbing .scrub-layer{ cursor: grabbing; }

.hero__overlay{ position: relative; z-index: 3; }

/* --- Dragon Ball hotspots (tap the balls) --- */
.db-hotspots{
  position:absolute; inset:0;
  z-index: 2; /* above scrub layer */
  pointer-events:none; /* only the individual hotspots capture */
}

.db-hotspot{
  position:absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: clamp(44px, 5.2vw, 74px);
  height: clamp(44px, 5.2vw, 74px);
  border-radius: 999px;
  pointer-events:auto;
  display:block;
  /* invisible button area */
  background: transparent;
  outline: none;
}

.db-hotspot__label{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 100%;         /* sit above the circle */
  margin-bottom: 2px;   /* "resting" on the ball */
  font-weight: 800;
  font-size: clamp(12px, 1.4vw, 16px);
  color: rgba(243,244,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
  white-space: nowrap;
  color: #1e5bd8 !important;
}

.db-hotspot:focus-visible{
  box-shadow: 0 0 0 3px rgba(120,170,255,.55);
}
@media (hover:hover){
  .db-hotspot:hover{
    box-shadow: 0 0 0 2px rgba(255,255,255,.25);
  }
}

/* Force hotspot labels style */
.db-hotspot__label{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  color: #ffd24a !important; /* gold */
  text-shadow: 0 2px 10px rgba(0,0,0,.90), 0 0 10px rgba(255,210,74,.35) !important;
}


/* ===== MOBILE + GLOBAL FULL-BLEED FIX (forces cover + prevents img rules breaking it) ===== */
html, body { height: 100%; margin: 0; }

.hero{
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100svh;   /* better on mobile address-bar */
}

#bgFrame.bgvideo, video.bgvideo{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;        /* crop sides to fill */
  object-position: center !important;
  max-width: none !important;          /* defeat img{max-width:100%} */
  max-height: none !important;
  display: block !important;
}

/* your overlay layer must also cover the full hero */
#scrubLayer{
  position: absolute !important;
  inset: 0 !important;
}

/* Optional: prevent accidental vertical scroll space on the home hero */
body.home { overflow-x: hidden; }


/* ===== HERO FULL-BLEED (DESKTOP + MOBILE) ===== */
.hero{
  position: relative;
  height: 100svh;          /* better than 100vh on mobile */
  min-height: 100vh;
  overflow: hidden;
}

.bgvideo, #bgFrame, #bgVideo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* <-- crop sides on tall screens */
  object-position: 50% 50%;
}

/* Make sure overlays sit above the background */
.scrub-layer,
.hotspot-layer,
.hero__overlay{
  position: relative;
  z-index: 2;
}


/* ===== LABEL TEXT ONLY (NO BOX) ===== */
.db-label{
  font-size: clamp(14px, 2.2vmin, 22px);
  font-weight: 800;
  color: #d4af37;          /* gold */
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.75);
  white-space: nowrap;
}

/* ===== FULL-BLEED VIDEO (CROP SIDES, KEEP HOTSPOTS) ===== */
.hero{
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.bgvideo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
