/* ---------- Base / Reset ---------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { height: 100%; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; color:#23262F; background:#fff; }
canvas { display:block; }

/* ---------- Unity container ---------- */
#unity-container { width:100%; height:100%; }
#unity-canvas { width:100%; height:100%; }

/* ---------- Loader Overlay ---------- */
#loading-cover{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: #fff;
  z-index: 10;
}

/* Page frame */
.loader-page{
  width: min(1400px, 94vw);
  height: min(92vh, 940px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(8px, 2vw, 16px);
  padding: clamp(16px, 3vw, 28px);
  margin: 0 auto;
}

/* Header */
.topbar{ display:flex; align-items:center; height: 48px; }
.logo-word{ font-weight:800; font-size:32px; letter-spacing:.2px; display:inline-flex; align-items:baseline; }
.logo-word .logo-mark{ color:#1673ff; margin-right:2px; }

/* Hero split */
.hero{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 5vw, 48px);
  align-items:center;
}

/* Left side with hex bg */
.hero-left{ position:relative; min-height: 320px; }
.hex-bg-img{
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 500px;
  object-fit: contain;      /* or 'cover' if you want it to fill */
  pointer-events: none;
  opacity: 0.28;            /* adjust strength to taste */
  z-index: 0;
}
#rotatingTitle { transition: opacity .25s ease; }
#rotatingTitle.fade-out { opacity: 0; }


/* .hex-bg{
  position:absolute; inset:0;
  mask-image: radial-gradient(1000px 500px at 20% 50%, #000 65%, transparent 70%);
  pointer-events:none;
} */

/* Title + caret */
.title{
  font-size: clamp(64px, 10vw, 140px);
  line-height:.9; margin:0; font-weight:800; letter-spacing:-2px; color:#2c2f36; position: relative; z-index: 1; 
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;                 /* space between icon and word */
  text-decoration:none;
  color:inherit;
}

.brand-logo{
  height:28px;              /* tweak to match your logo */
  width:auto;
  display:block;
}

.caret{ display:inline-block; margin-left:18px; font-weight:500; color:#2c2f36; animation:blink 1.1s steps(1) infinite; transform: translateY(6%); }
@keyframes blink{ 50%{ opacity:0; } }

/* Right image */
.hero-right{ display:flex; justify-content:center; }
.hero-art{ width:min(640px, 92%); height:auto; filter: drop-shadow(0 10px 30px rgba(20,35,90,.08)); }

/* Footer: progress + status */
.loader-footer{ display:grid; place-items:center; gap:14px; margin-top:12px; }
.progress{ width:min(720px, 92%); }
.progress__track{
  height:36px; background:#fff; border-radius:999px;
  box-shadow: inset 0 0 0 2px rgba(22,115,255,.2);
  overflow:hidden;
}
.progress__fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, #1673ff 0%, #3a8bff 100%);
  border-radius:999px;
  box-shadow: 0 2px 10px rgba(22,115,255,.35) inset;
  transition: width 300ms ease;
}

.pager{ display:flex; gap:12px; }
.pager .dot{ width:10px; height:10px; border-radius:50%; background:#d7dbe5; transition: transform .2s ease, background .2s ease; }
.pager .dot.is-active{ background:#1673ff; transform:scale(1.2); }

.status{ margin:0; font-size:16px; color:#8C94A6; text-align:center; }

/* Fullscreen button from Unity (kept) */
#unity-fullscreen-button{
  position: absolute; right:10px; bottom:10px; width:38px; height:38px;
  background: url('fullscreen-button.png') no-repeat center; background-size: contain;
}

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; gap:20px; }
  .hero-left{ min-height:220px; }
  .title{ font-size: clamp(56px, 12vw, 110px); }
  .caret{ margin-left:12px; }
  .hero-right{ order:2; }
}
