:root {
  --bg: #000;
  --glow: #151515;
  --text: #d6d6d6;
  --muted: #6b6b6b;
  --rule: #ffffff;
  --logo-w: min(560px, 78vw);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: radial-gradient(ellipse 70% 55% at 50% 44%, var(--glow) 0%, var(--bg) 70%) var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  text-align: center;
}

.logo {
  position: relative;
  width: var(--logo-w);
  margin: 0;
  line-height: 0;
  animation: rise 1.6s var(--ease) .15s both;
}

/* logo sits slightly below full white so the sweep has headroom */
.logo img { width: 100%; height: auto; display: block; filter: brightness(.84); }

/* light sweep clipped to the logo's own shape */
.sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-mask: url(/assets/hbp-logo.png) center / contain no-repeat;
          mask: url(/assets/hbp-logo.png) center / contain no-repeat;
  animation: sweep 7s var(--ease) 1.8s infinite;
}

.rule {
  width: min(220px, 40vw);
  height: 1px;
  margin: clamp(28px, 6vh, 56px) 0 clamp(18px, 3vh, 26px);
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  opacity: .35;
  animation: draw 1.2s var(--ease) 1.1s both;
}

.status {
  margin: 0;
  padding-left: .55em; /* balance trailing letter-spacing */
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500;
  letter-spacing: .55em;
  text-transform: uppercase;
  animation: fade 1.2s var(--ease) 1.5s both;
}

.foot {
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* "from" keyframes + fill both: if animations never run, everything stays visible */
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sweep {
  0%   { background-position: 130% 0; }
  35%, 100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .rule, .status { animation: none; }
  .sheen { display: none; }
}
