/* ==========================================================
   QCAT ULTRA
   ORBITAL GLASS NAVIGATION
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root {

  --bg: #020309;

  --ink: #f6f8fb;

  --muted: #8d97aa;

  --muted-2: #667184;

  --cyan: #71f5ff;

  --violet: #9e7cff;

  --pink: #ff75d2;

  --lime: #d4ff8b;

  --glass:
    rgba(9, 15, 25, 0.16);

  --glass-hover:
    rgba(13, 25, 39, 0.34);

  --border:
    rgba(205, 239, 249, 0.14);

  --border-hover:
    rgba(113, 245, 255, 0.72);

  --sans:
    "Space Grotesk",
    system-ui,
    sans-serif;

  --mono:
    "DM Mono",
    monospace;

}


/* ==========================================================
   RESET
========================================================== */

* {
  box-sizing: border-box;
}


html {
  margin: 0;
  padding: 0;

  background:
    var(--bg);

  scroll-behavior:
    smooth;
}


body {

  margin: 0;

  min-width:
    320px;

  background:
    radial-gradient(
      circle at 50% 45%,
      #0a111c 0%,
      #04070e 38%,
      #010208 100%
    );

  color:
    var(--ink);

  font-family:
    var(--sans);

  overflow:
    hidden;

}


body.drawer-open {

  overflow:
    hidden;

}


button,
a {

  font:
    inherit;

}


button {

  border:
    0;

}


button:focus-visible,
a:focus-visible {

  outline:
    2px solid var(--cyan);

  outline-offset:
    4px;

}


/* ==========================================================
   WEBGL
========================================================== */

#webgl {

  position:
    fixed;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  display:
    block;

  z-index:
    0;

  pointer-events:
    none;

}


/* ==========================================================
   ATMOSPHERE
========================================================== */

.atmosphere {

  position:
    fixed;

  width:
    58vw;

  height:
    58vw;

  min-width:
    500px;

  min-height:
    500px;

  border-radius:
    50%;

  pointer-events:
    none;

  filter:
    blur(90px);

  z-index:
    1;

  opacity:
    0.25;

}


.atmosphere-one {

  right:
    -17vw;

  top:
    -18vw;

  background:
    radial-gradient(
      circle,
      rgba(94, 239, 255, 0.2),
      rgba(86, 77, 201, 0.06) 44%,
      transparent 72%
    );

}


.atmosphere-two {

  left:
    -22vw;

  bottom:
    -22vw;

  background:
    radial-gradient(
      circle,
      rgba(162, 73, 255, 0.15),
      rgba(255, 81, 191, 0.045) 45%,
      transparent 73%
    );

}


/* ==========================================================
   NOISE
========================================================== */

.noise {

  position:
    fixed;

  inset:
    0;

  z-index:
    10;

  pointer-events:
    none;

  opacity:
    0.042;

  background-image:
    url(
      "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.6'/%3E%3C/svg%3E"
    );

  mix-blend-mode:
    screen;

}


/* ==========================================================
   VIGNETTE
========================================================== */

.vignette {

  position:
    fixed;

  inset:
    0;

  z-index:
    11;

  pointer-events:
    none;

  background:
    radial-gradient(
      circle at center,
      transparent 16%,
      rgba(0,0,0,0.08) 40%,
      rgba(0,0,0,0.68) 100%
    );

}


/* ==========================================================
   LOADER
========================================================== */

.loader {

  position:
    fixed;

  inset:
    0;

  z-index:
    999;

  display:
    grid;

  place-items:
    center;

  align-content:
    center;

  gap:
    15px;

  background:
    #020309;

  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;

}


.loader.hidden {

  opacity:
    0;

  visibility:
    hidden;

  pointer-events:
    none;

}


.loader-orb {

  position:
    relative;

  width:
    76px;

  height:
    76px;

  border-radius:
    50%;

  border:
    1px solid
    rgba(113,245,255,0.34);

  box-shadow:
    0 0 38px
    rgba(113,245,255,0.17),

    inset 0 0 24px
    rgba(158,124,255,0.13);

  animation:
    loaderPulse 1.8s
    ease-in-out
    infinite;

}


.loader-orb::before {

  content:
    "";

  position:
    absolute;

  inset:
    -12px;

  border-radius:
    50%;

  border:
    1px solid
    rgba(255,117,210,0.12);

  transform:
    rotateX(70deg);

}


.loader-orb-inner {

  position:
    absolute;

  inset:
    17px;

  border-radius:
    50%;

  background:
    radial-gradient(
      circle at 40% 35%,
      #ffffff,
      var(--cyan) 15%,
      var(--violet) 42%,
      transparent 70%
    );

  filter:
    blur(2px);

}


.loader-title {

  font-size:
    2.1rem;

  letter-spacing:
    0.36em;

  padding-left:
    0.36em;

  font-weight:
    600;

}


.loader-subtitle {

  font-family:
    var(--mono);

  color:
    #8f99ab;

  font-size:
    0.62rem;

  letter-spacing:
    0.17em;

}


.loader-progress {

  width:
    200px;

  height:
    1px;

  overflow:
    hidden;

  margin-top:
    8px;

  background:
    rgba(255,255,255,0.1);

}


.loader-progress span {

  display:
    block;

  width:
    48%;

  height:
    100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--cyan),
      var(--pink)
    );

  animation:
    loaderLine 1.15s
    ease-in-out
    infinite;

}


/* ==========================================================
   TOPBAR
========================================================== */

.topbar {

  position:
    fixed;

  top:
    0;

  left:
    0;

  right:
    0;

  z-index:
    60;

  display:
    grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items:
    center;

  padding:
    20px 28px;

  border-bottom:
    1px solid
    rgba(255,255,255,0.07);

  background:
    linear-gradient(
      180deg,
      rgba(2,3,9,0.73),
      rgba(2,3,9,0.08)
    );

  backdrop-filter:
    blur(14px);

}


.brand {

  display:
    inline-flex;

  align-items:
    center;

  gap:
    11px;

  width:
    max-content;

  color:
    #f4f8fb;

  text-decoration:
    none;

}


.brand-mark {

  position:
    relative;

  width:
    28px;

  height:
    28px;

}


.brand-mark span {

  position:
    absolute;

  display:
    block;

  border:
    1px solid
    var(--cyan);

  opacity:
    0.85;

  transform:
    rotate(45deg);

}


.brand-mark span:nth-child(1) {

  width:
    18px;

  height:
    18px;

  left:
    5px;

  top:
    5px;

}


.brand-mark span:nth-child(2) {

  width:
    10px;

  height:
    10px;

  left:
    9px;

  top:
    9px;

  border-color:
    var(--violet);

}


.brand-mark span:nth-child(3) {

  width:
    4px;

  height:
    4px;

  left:
    12px;

  top:
    12px;

  background:
    var(--cyan);

  border:
    0;

  box-shadow:
    0 0 14px
    var(--cyan);

}


.brand-text {

  display:
    grid;

  gap:
    3px;

}


.brand-text strong {

  font-size:
    0.88rem;

  line-height:
    1;

  letter-spacing:
    0.2em;

}


.brand-text small {

  font-family:
    var(--mono);

  font-size:
    0.46rem;

  color:
    #737e91;

  letter-spacing:
    0.14em;

}


.top-status {

  display:
    inline-flex;

  align-items:
    center;

  gap:
    8px;

  font-family:
    var(--mono);

  font-size:
    0.57rem;

  letter-spacing:
    0.1em;

  color:
    #798395;

}


.status-light {

  width:
    7px;

  height:
    7px;

  border-radius:
    50%;

  background:
    var(--lime);

  box-shadow:
    0 0 13px
    var(--lime);

}


.top-action {

  justify-self:
    end;

  padding:
    10px 15px;

  color:
    #eaf8fb;

  border:
    1px solid
    rgba(113,245,255,0.24);

  background:
    rgba(113,245,255,0.035);

  border-radius:
    999px;

  font-family:
    var(--mono);

  font-size:
    0.57rem;

  letter-spacing:
    0.09em;

  cursor:
    pointer;

  transition:
    0.25s ease;

}


.top-action:hover {

  border-color:
    rgba(113,245,255,0.68);

  background:
    rgba(113,245,255,0.075);

  box-shadow:
    0 0 28px
    rgba(113,245,255,0.08);

}


/* ==========================================================
   MAIN EXPERIENCE
========================================================== */

.experience {

  position:
    relative;

  width:
    100vw;

  height:
    100vh;

  min-height:
    640px;

  z-index:
    20;

  user-select:
    none;

  overflow:
    hidden;

}


/* ==========================================================
   CENTER UI
========================================================== */

.center-ui {

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    270px;

  transform:
    translate(-50%, -50%);

  display:
    grid;

  justify-items:
    center;

  text-align:
    center;

  pointer-events:
    none;

  z-index:
    35;

}


.center-kicker {

  font-family:
    var(--mono);

  color:
    #8490a3;

  font-size:
    0.55rem;

  letter-spacing:
    0.22em;

  margin-bottom:
    12px;

}


.center-title {

  position:
    relative;

  display:
    grid;

  place-items:
    center;

  width:
    116px;

  height:
    116px;

  border-radius:
    50%;

  background:
    radial-gradient(
      circle,
      rgba(126,245,255,0.075),
      rgba(18,23,38,0.035) 55%,
      transparent 74%
    );

  border:
    1px solid
    rgba(219,244,255,0.15);

  box-shadow:
    0 0 70px
    rgba(113,245,255,0.075),

    inset 0 0 35px
    rgba(158,124,255,0.055);

}


.center-title::before {

  content:
    "";

  position:
    absolute;

  inset:
    11px;

  border-radius:
    50%;

  border:
    1px solid
    rgba(158,124,255,0.2);

}


.center-title::after {

  content:
    "";

  position:
    absolute;

  inset:
    -17px;

  border-radius:
    50%;

  border:
    1px solid
    rgba(255,117,210,0.08);

  transform:
    rotateX(65deg);

}


.center-title span {

  font-size:
    5.2rem;

  line-height:
    1;

  font-weight:
    600;

  letter-spacing:
    -0.08em;

  color:
    rgba(239,249,255,0.92);

  text-shadow:
    0 0 34px
    rgba(113,245,255,0.2);

}


.center-line {

  width:
    76px;

  height:
    1px;

  margin:
    17px 0 10px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(113,245,255,0.72),
      transparent
    );

}


.center-caption {

  font-family:
    var(--mono);

  font-size:
    0.48rem;

  color:
    #707b8d;

  letter-spacing:
    0.18em;

}


/* ==========================================================
   ORBIT SYSTEM
========================================================== */

.orbit-interface {

  position:
    absolute;

  inset:
    0;

  perspective:
    1800px;

  overflow:
    visible;

}


.panel-ring {

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    1px;

  height:
    1px;

  transform-style:
    preserve-3d;

  will-change:
    transform;

}


/* ==========================================================
   VISUAL ORBIT RINGS
========================================================== */

.panel-ring::before {

  content:
    "";

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    min(72vw, 1050px);

  height:
    min(72vw, 1050px);

  transform:
    translate(-50%, -50%)
    rotateX(64deg);

  border:
    1px solid
    rgba(113,245,255,0.055);

  border-radius:
    50%;

  box-shadow:
    0 0 90px
    rgba(113,245,255,0.025);

  pointer-events:
    none;

}


.panel-ring::after {

  content:
    "";

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    min(50vw, 740px);

  height:
    min(50vw, 740px);

  transform:
    translate(-50%, -50%)
    rotateX(70deg);

  border:
    1px solid
    rgba(158,124,255,0.035);

  border-radius:
    50%;

  pointer-events:
    none;

}


/* ==========================================================
   GLASS PANELS
========================================================== */

.glass-panel {

  position:
    absolute;

  left:
    0;

  top:
    0;

  width:
    clamp(220px, 19vw, 300px);

  height:
    clamp(140px, 12vw, 185px);

  margin:
    0;

  padding:
    20px 22px;

  color:
    #edf7fb;

  text-align:
    left;

  cursor:
    pointer;

  transform-style:
    preserve-3d;

  transform-origin:
    center center;

  backface-visibility:
    hidden;

  border:
    1px solid
    var(--border);

  border-radius:
    17px;

  background:
    linear-gradient(
      135deg,
      rgba(17,28,42,0.2),
      rgba(4,9,16,0.08)
    );

  box-shadow:
    inset 0 0 34px
    rgba(113,245,255,0.018),

    0 26px 70px
    rgba(0,0,0,0.23);

  backdrop-filter:
    blur(5px);

  -webkit-backdrop-filter:
    blur(5px);

  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;

  overflow:
    hidden;

}


/* Inner glass border */

.glass-panel::before {

  content:
    "";

  position:
    absolute;

  inset:
    7px;

  border:
    1px solid
    rgba(255,255,255,0.04);

  border-radius:
    11px;

  pointer-events:
    none;

}


.glass-panel::after {

  content:
    "";

  position:
    absolute;

  left:
    -20%;

  top:
    -80%;

  width:
    75%;

  height:
    250%;

  background:
    linear-gradient(
      100deg,
      transparent 38%,
      rgba(255,255,255,0.055) 50%,
      transparent 62%
    );

  transform:
    rotate(15deg);

  pointer-events:
    none;

  transition:
    transform 0.7s ease;

}


.glass-panel:hover::after {

  transform:
    translateX(120%)
    rotate(15deg);

}


/* ==========================================================
   HOVER STATE
========================================================== */

.glass-panel:hover {

  border-color:
    var(--border-hover);

  background:
    linear-gradient(
      135deg,
      rgba(16,34,47,0.38),
      rgba(7,14,24,0.15)
    );

  box-shadow:

    inset 0 0 34px
    rgba(113,245,255,0.045),

    0 0 18px
    rgba(113,245,255,0.08),

    0 0 55px
    rgba(113,245,255,0.1),

    0 32px 80px
    rgba(0,0,0,0.3);

  filter:
    brightness(1.12);

}


.glass-panel.active {

  border-color:
    rgba(113,245,255,0.76);

  box-shadow:

    inset 0 0 38px
    rgba(113,245,255,0.055),

    0 0 28px
    rgba(113,245,255,0.1),

    0 0 70px
    rgba(113,245,255,0.08),

    0 32px 80px
    rgba(0,0,0,0.28);

}


/* ==========================================================
   PANEL CONTENT
========================================================== */

.panel-number {

  position:
    absolute;

  top:
    16px;

  right:
    18px;

  font-family:
    var(--mono);

  color:
    #697487;

  font-size:
    0.55rem;

  letter-spacing:
    0.12em;

}


.panel-energy {

  position:
    absolute;

  left:
    20px;

  top:
    20px;

  width:
    7px;

  height:
    7px;

  border-radius:
    50%;

  background:
    var(--cyan);

  box-shadow:
    0 0 18px
    var(--cyan);

}


.glass-panel:nth-child(2)
.panel-energy {

  background:
    var(--violet);

  box-shadow:
    0 0 18px
    var(--violet);

}


.glass-panel:nth-child(3)
.panel-energy {

  background:
    var(--pink);

  box-shadow:
    0 0 18px
    var(--pink);

}


.glass-panel:nth-child(4)
.panel-energy {

  background:
    var(--lime);

  box-shadow:
    0 0 18px
    var(--lime);

}


.glass-panel:nth-child(5)
.panel-energy {

  background:
    var(--violet);

  box-shadow:
    0 0 18px
    var(--violet);

}


.glass-panel:nth-child(6)
.panel-energy {

  background:
    var(--cyan);

  box-shadow:
    0 0 18px
    var(--cyan);

}


.panel-title {

  position:
    absolute;

  left:
    20px;

  bottom:
    47px;

  max-width:
    80%;

  font-size:
    clamp(1rem, 1.25vw, 1.3rem);

  font-weight:
    600;

  letter-spacing:
    -0.025em;

  transition:
    text-shadow 0.35s ease;

}


.glass-panel:hover
.panel-title {

  text-shadow:
    0 0 18px
    rgba(113,245,255,0.3);

}


.panel-subtitle {

  position:
    absolute;

  left:
    20px;

  bottom:
    26px;

  font-family:
    var(--mono);

  color:
    #7c8799;

  font-size:
    0.47rem;

  letter-spacing:
    0.1em;

}


.panel-line {

  position:
    absolute;

  left:
    20px;

  bottom:
    15px;

  width:
    54px;

  height:
    1px;

  background:
    linear-gradient(
      90deg,
      var(--cyan),
      transparent
    );

  opacity:
    0.54;

}


.panel-arrow {

  position:
    absolute;

  right:
    18px;

  bottom:
    12px;

  color:
    rgba(235,247,250,0.72);

  font-size:
    0.95rem;

  transition:
    transform 0.35s ease,
    color 0.35s ease;

}


.glass-panel:hover
.panel-arrow {

  color:
    var(--cyan);

  transform:
    translate(3px,-3px);

}


/* ==========================================================
   SIDE HUD
========================================================== */

.left-hud {

  position:
    absolute;

  left:
    28px;

  top:
    50%;

  transform:
    translateY(-50%);

  width:
    140px;

  padding:
    18px 0;

  z-index:
    30;

  pointer-events:
    none;

}


.right-hud {

  position:
    absolute;

  right:
    28px;

  top:
    50%;

  transform:
    translateY(-50%);

  width:
    105px;

  z-index:
    30;

  pointer-events:
    none;

}


.hud-label {

  font-family:
    var(--mono);

  font-size:
    0.5rem;

  color:
    #657082;

  letter-spacing:
    0.15em;

  margin-bottom:
    13px;

}


.hud-row {

  display:
    flex;

  justify-content:
    space-between;

  padding:
    8px 0;

  border-bottom:
    1px solid
    rgba(255,255,255,0.06);

  font-family:
    var(--mono);

  font-size:
    0.48rem;

  letter-spacing:
    0.05em;

}


.hud-row span {

  color:
    #6f798a;

}


.hud-row strong {

  color:
    #b6c4d4;

  font-weight:
    400;

}


.hud-row:nth-child(3)
strong {

  color:
    var(--cyan);

}


.hud-row:nth-child(4)
strong {

  color:
    var(--lime);

}


.hud-line {

  width:
    100%;

  height:
    1px;

  margin:
    16px 0;

  background:
    linear-gradient(
      90deg,
      rgba(113,245,255,0.3),
      transparent
    );

}


.hud-help {

  font-family:
    var(--mono);

  color:
    #5c6677;

  font-size:
    0.43rem;

  line-height:
    1.65;

  letter-spacing:
    0.07em;

}


/* ==========================================================
   RIGHT HUD
========================================================== */

.hud-orbit {

  position:
    relative;

  width:
    62px;

  height:
    62px;

  margin-bottom:
    12px;

}


.hud-orbit::before {

  content:
    "";

  position:
    absolute;

  inset:
    0;

  border:
    1px solid
    rgba(113,245,255,0.13);

  border-radius:
    50%;

  transform:
    rotateX(65deg);

}


.hud-orbit::after {

  content:
    "";

  position:
    absolute;

  inset:
    10px;

  border:
    1px solid
    rgba(158,124,255,0.11);

  border-radius:
    50%;

  transform:
    rotateY(65deg);

}


.hud-orbit span {

  position:
    absolute;

  width:
    5px;

  height:
    5px;

  border-radius:
    50%;

  left:
    calc(50% - 2.5px);

  top:
    calc(50% - 2.5px);

  background:
    var(--cyan);

  box-shadow:
    0 0 13px
    var(--cyan);

  transform-origin:
    31px 2.5px;

  animation:
    hudOrbit
    4.2s
    linear
    infinite;

}


.hud-orbit span:nth-child(2) {

  background:
    var(--violet);

  box-shadow:
    0 0 13px
    var(--violet);

  animation-duration:
    6s;

  animation-direction:
    reverse;

}


.hud-orbit span:nth-child(3) {

  background:
    var(--pink);

  box-shadow:
    0 0 13px
    var(--pink);

  animation-duration:
    8s;

}


.nav-counter {

  font-family:
    var(--mono);

  color:
    #8792a5;

  font-size:
    0.54rem;

  letter-spacing:
    0.1em;

}


/* ==========================================================
   BOTTOM HUD
========================================================== */

.bottom-ui {

  position:
    absolute;

  left:
    28px;

  right:
    28px;

  bottom:
    20px;

  z-index:
    35;

  display:
    grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items:
    center;

  font-family:
    var(--mono);

  font-size:
    0.47rem;

  letter-spacing:
    0.09em;

  color:
    #667184;

  pointer-events:
    none;

}


.coordinates {

  justify-self:
    start;

}


.coordinates span {

  color:
    #9aa7b9;

}


.scroll-note {

  justify-self:
    center;

}


.sound-btn {

  justify-self:
    end;

  display:
    inline-flex;

  align-items:
    center;

  gap:
    8px;

  padding:
    7px 10px;

  color:
    #768195;

  background:
    rgba(255,255,255,0.025);

  border:
    1px solid
    rgba(255,255,255,0.08);

  border-radius:
    999px;

  pointer-events:
    auto;

  cursor:
    pointer;

}


.sound-btn span {

  width:
    5px;

  height:
    5px;

  border-radius:
    50%;

  background:
    #6d7789;

}


.sound-btn.active span {

  background:
    var(--lime);

  box-shadow:
    0 0 10px
    var(--lime);

}


/* ==========================================================
   CONTENT DRAWER
========================================================== */

.content-drawer {

  position:
    fixed;

  inset:
    0;

  z-index:
    200;

  visibility:
    hidden;

  pointer-events:
    none;

}


.content-drawer.open {

  visibility:
    visible;

  pointer-events:
    auto;

}


.drawer-backdrop {

  position:
    absolute;

  inset:
    0;

  background:
    rgba(0,0,0,0.56);

  backdrop-filter:
    blur(11px);

  opacity:
    0;

  transition:
    opacity 0.45s ease;

}


.content-drawer.open
.drawer-backdrop {

  opacity:
    1;

}


.drawer-panel {

  position:
    absolute;

  top:
    0;

  right:
    0;

  width:
    min(660px, 94vw);

  height:
    100%;

  display:
    grid;

  grid-template-rows:
    auto 1fr auto;

  border-left:
    1px solid
    rgba(169,229,244,0.16);

  background:
    linear-gradient(
      140deg,
      rgba(10,17,29,0.86),
      rgba(3,7,13,0.96)
    );

  backdrop-filter:
    blur(28px);

  box-shadow:
    -30px 0 100px
    rgba(0,0,0,0.46);

  transform:
    translateX(100%);

  transition:
    transform 0.65s
    cubic-bezier(
      .22,
      .74,
      .19,
      1
    );

}


.content-drawer.open
.drawer-panel {

  transform:
    translateX(0);

}


.drawer-head {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  padding:
    35px 37px
    27px;

  border-bottom:
    1px solid
    rgba(255,255,255,0.08);

}


.drawer-kicker {

  display:
    block;

  font-family:
    var(--mono);

  color:
    #7c889a;

  font-size:
    0.56rem;

  letter-spacing:
    0.15em;

  margin-bottom:
    17px;

}


.drawer-head h2 {

  margin:
    0;

  font-size:
    clamp(3.2rem, 7vw, 5.7rem);

  line-height:
    0.9;

  font-weight:
    600;

  letter-spacing:
    -0.06em;

}


.drawer-close {

  width:
    42px;

  height:
    42px;

  display:
    grid;

  place-items:
    center;

  background:
    rgba(255,255,255,0.035);

  border:
    1px solid
    rgba(255,255,255,0.11);

  border-radius:
    50%;

  color:
    #afb9c8;

  font-size:
    1.55rem;

  cursor:
    pointer;

}


.drawer-close:hover {

  color:
    #fff;

  border-color:
    rgba(113,245,255,0.35);

}


.drawer-body {

  padding:
    35px 37px;

  overflow:
    auto;

}


.drawer-text {

  max-width:
    500px;

  margin:
    0;

  color:
    #98a3b5;

  font-size:
    1.03rem;

  line-height:
    1.8;

}


.drawer-metric {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    center;

  max-width:
    500px;

  margin-top:
    34px;

  padding:
    17px 0;

  border-top:
    1px solid
    rgba(255,255,255,0.08);

  border-bottom:
    1px solid
    rgba(255,255,255,0.08);

  font-family:
    var(--mono);

  font-size:
    0.55rem;

  letter-spacing:
    0.1em;

}


.drawer-metric span {

  color:
    #687487;

}


.drawer-metric strong {

  color:
    var(--cyan);

  font-weight:
    400;

}


.drawer-actions {

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    10px;

  margin-top:
    28px;

}


.drawer-action {

  display:
    inline-flex;

  align-items:
    center;

  gap:
    12px;

  padding:
    11px 15px;

  border:
    1px solid
    rgba(255,255,255,0.13);

  border-radius:
    999px;

  color:
    #edf5f8;

  background:
    rgba(255,255,255,0.03);

  text-decoration:
    none;

  font-family:
    var(--mono);

  font-size:
    0.57rem;

  letter-spacing:
    0.08em;

  cursor:
    pointer;

  transition:
    0.25s ease;

}


.drawer-action:hover {

  border-color:
    rgba(113,245,255,0.48);

  background:
    rgba(113,245,255,0.06);

}


.drawer-footer {

  display:
    flex;

  justify-content:
    space-between;

  padding:
    17px 37px;

  border-top:
    1px solid
    rgba(255,255,255,0.08);

  font-family:
    var(--mono);

  font-size:
    0.47rem;

  color:
    #5f697b;

  letter-spacing:
    0.08em;

}


/* ==========================================================
   TOAST
========================================================== */

.toast {

  position:
    fixed;

  left:
    50%;

  bottom:
    28px;

  z-index:
    500;

  padding:
    11px 16px;

  border:
    1px solid
    rgba(113,245,255,0.3);

  border-radius:
    999px;

  background:
    rgba(7,11,18,0.86);

  backdrop-filter:
    blur(14px);

  color:
    #ebf9fb;

  font-family:
    var(--mono);

  font-size:
    0.54rem;

  letter-spacing:
    0.09em;

  opacity:
    0;

  transform:
    translate(-50%, 15px);

  pointer-events:
    none;

  transition:
    0.3s ease;

}


.toast.show {

  opacity:
    1;

  transform:
    translate(-50%, 0);

}


/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes loaderPulse {

  0%,
  100% {

    transform:
      scale(0.96);

    opacity:
      0.68;

  }

  50% {

    transform:
      scale(1.04);

    opacity:
      1;

  }

}


@keyframes loaderLine {

  0% {

    transform:
      translateX(-120%);

  }

  100% {

    transform:
      translateX(240%);

  }

}


@keyframes hudOrbit {

  to {

    transform:
      rotate(360deg);

  }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

  .top-status {

    display:
      none;

  }


  .glass-panel {

    width:
      220px;

    height:
      140px;

  }


  .left-hud {

    left:
      18px;

  }


  .right-hud {

    right:
      18px;

  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 720px) {

  .topbar {

    padding:
      16px 17px;

  }


  .brand-text small {

    display:
      none;

  }


  .top-action {

    padding:
      9px 12px;

    font-size:
      0.51rem;

  }


  .left-hud {

    top:
      auto;

    bottom:
      80px;

    left:
      18px;

    transform:
      none;

    width:
      100px;

  }


  .right-hud {

    top:
      auto;

    bottom:
      80px;

    right:
      18px;

    transform:
      none;

    width:
      70px;

  }


  .hud-help {

    display:
      none;

  }


  .hud-orbit {

    width:
      46px;

    height:
      46px;

  }


  .hud-orbit::after {

    inset:
      7px;

  }


  .hud-orbit span {

    transform-origin:
      23px 2.5px;

  }


  .center-title {

    width:
      88px;

    height:
      88px;

  }


  .center-title span {

    font-size:
      3.6rem;

  }


  .center-ui {

    width:
      210px;

  }


  .glass-panel {

    width:
      190px;

    height:
      122px;

    padding:
      17px;

    border-radius:
      14px;

  }


  .panel-energy {

    left:
      17px;

    top:
      17px;

  }


  .panel-number {

    top:
      14px;

    right:
      14px;

  }


  .panel-title {

    left:
      17px;

    bottom:
      40px;

    font-size:
      0.88rem;

  }


  .panel-subtitle {

    left:
      17px;

    bottom:
      22px;

    font-size:
      0.41rem;

  }


  .panel-line {

    left:
      17px;

    bottom:
      13px;

  }


  .panel-arrow {

    right:
      13px;

    bottom:
      10px;

  }


  .bottom-ui {

    left:
      18px;

    right:
      18px;

    bottom:
      16px;

  }


  .scroll-note {

    display:
      none;

  }


  .drawer-head {

    padding:
      27px 22px
      21px;

  }


  .drawer-head h2 {

    font-size:
      3.3rem;

  }


  .drawer-body {

    padding:
      27px 22px;

  }


  .drawer-footer {

    padding:
      14px 22px;

  }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    animation:
      none !important;

    transition:
      none !important;

  }

}

/* ==========================================================
   QCAT ULTRA — HD PURPLE NEBULA OVERRIDE
   Header intentionally removed from the visual composition.
========================================================== */

:root {
  --cyan: #d9b8ff;
  --lime: #d88cff;
  --violet: #9b4dff;
  --magenta: #ff35d6;
  --deep-violet: #3d0b78;
  --space-black: #020006;
}

/* Deep-space foundation */
html,
body {
  background:
    radial-gradient(circle at 50% 45%,
      rgba(126, 42, 255, 0.22) 0%,
      rgba(45, 6, 95, 0.18) 20%,
      rgba(8, 1, 22, 0.72) 48%,
      #010004 82%);
  color: #ffffff;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 34%,
      rgba(143, 43, 255, 0.34) 0%,
      rgba(101, 21, 204, 0.16) 20%,
      transparent 48%),
    radial-gradient(ellipse at 78% 63%,
      rgba(255, 32, 211, 0.28) 0%,
      rgba(114, 23, 221, 0.13) 22%,
      transparent 50%),
    radial-gradient(ellipse at 50% 90%,
      rgba(82, 29, 185, 0.24) 0%,
      transparent 42%);
  filter: blur(38px) saturate(145%);
  animation: qcatNebulaDrift 18s ease-in-out infinite alternate;
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: .95;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(207,159,255,.82) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,80,229,.72) 0 1px, transparent 1.7px);
  background-size: 137px 151px, 211px 187px, 293px 239px;
  background-position: 12px 27px, 63px 81px, 109px 43px;
  mix-blend-mode: screen;
  animation: qcatStarDrift 35s linear infinite;
}

#experience,
.experience {
  background:
    radial-gradient(ellipse at center,
      rgba(126, 47, 255, .16) 0%,
      rgba(45, 7, 88, .08) 30%,
      transparent 64%);
}

/* Hide the header even if an older index.html copy still contains it. */
.topbar,
header.topbar {
  display: none !important;
}

/* Make the actual orbital stage occupy the full screen. */
.stage,
.hero,
.experience,
#experience {
  top: 0 !important;
  margin-top: 0 !important;
  min-height: 100vh;
}

/* Glass tabs: stronger HD violet/magenta glass */
.glass-panel {
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.105),
      rgba(132,57,235,.105) 38%,
      rgba(13,4,29,.72) 100%) !important;
  border-color: rgba(201,145,255,.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.19),
    inset 0 -1px 0 rgba(164,77,255,.18),
    0 0 0 1px rgba(158,72,255,.07),
    0 0 28px rgba(139,47,255,.20),
    0 18px 55px rgba(0,0,0,.48) !important;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.glass-panel::before {
  background:
    linear-gradient(110deg,
      transparent 0%,
      rgba(255,255,255,.20) 42%,
      rgba(221,147,255,.30) 50%,
      transparent 60%) !important;
}

.glass-panel:hover,
.glass-panel.active {
  border-color: rgba(222,177,255,.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 18px rgba(169,75,255,.70),
    0 0 55px rgba(255,42,215,.34),
    0 25px 70px rgba(0,0,0,.58) !important;
}

/* Purple energy markers */
.panel-energy,
.energy-dot {
  background: #ff51df !important;
  box-shadow:
    0 0 7px #ff51df,
    0 0 20px rgba(255,45,217,.92),
    0 0 38px rgba(132,45,255,.62) !important;
}

.panel-line {
  background:
    linear-gradient(90deg,
      rgba(178,86,255,0),
      rgba(213,147,255,.92),
      rgba(255,47,215,.86),
      rgba(178,86,255,0)) !important;
  box-shadow:
    0 0 13px rgba(175,78,255,.75) !important;
}

.panel-arrow {
  color: #f0c8ff !important;
  text-shadow:
    0 0 10px rgba(203,108,255,.9),
    0 0 22px rgba(255,43,215,.55);
}

/* QCAT center gets a much brighter quantum aura */
.center-ui,
.center-title {
  filter:
    drop-shadow(0 0 14px rgba(154,63,255,.72))
    drop-shadow(0 0 36px rgba(255,40,214,.32));
}

.center-title {
  border-color: rgba(211,157,255,.55) !important;
  background:
    radial-gradient(circle at 38% 30%,
      rgba(255,255,255,.15),
      rgba(164,64,255,.17) 30%,
      rgba(24,3,45,.70) 74%,
      rgba(5,0,13,.82)) !important;
  box-shadow:
    inset 0 0 35px rgba(171,71,255,.28),
    0 0 28px rgba(132,42,255,.55),
    0 0 85px rgba(255,31,211,.23) !important;
}

.center-title span {
  color: #f6e9ff !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.9),
    0 0 20px rgba(191,93,255,.95),
    0 0 45px rgba(255,36,215,.60) !important;
}

/* HUD orbit and rings */
.hud-orbit,
.field-ring,
.core-ring {
  border-color: rgba(180,92,255,.50) !important;
  box-shadow:
    0 0 18px rgba(146,54,255,.25),
    inset 0 0 18px rgba(255,40,218,.12);
}

.hud-orbit::after {
  border-color: rgba(255,64,222,.75) !important;
  box-shadow: 0 0 14px rgba(255,55,221,.85);
}

/* Drawer / UI purple conversion */
.content-drawer .drawer-panel {
  background:
    linear-gradient(140deg,
      rgba(24,7,43,.92),
      rgba(4,0,11,.97)) !important;
  border-left-color: rgba(190,107,255,.30) !important;
  box-shadow:
    -30px 0 100px rgba(0,0,0,.64),
    -10px 0 45px rgba(129,39,255,.13);
}

.drawer-action:hover {
  border-color: rgba(210,137,255,.62) !important;
  background: rgba(158,53,255,.11) !important;
  box-shadow: 0 0 22px rgba(155,48,255,.18);
}

.toast {
  border-color: rgba(203,119,255,.50) !important;
  background: rgba(13,2,25,.91) !important;
  box-shadow: 0 0 28px rgba(149,48,255,.24);
}

.sound-btn.active span {
  background: #ff55df !important;
  box-shadow: 0 0 10px #ff55df !important;
}

/* More cinematic depth */
canvas {
  filter: saturate(1.35) contrast(1.08) brightness(1.06);
}

@keyframes qcatNebulaDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.055);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.025);
  }
}

@keyframes qcatStarDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-45px, 28px, 0) scale(1.015);
  }
}

/* Small screens: preserve the full orbital stage */
@media (max-width: 720px) {
  .stage,
  .hero,
  .experience,
  #experience {
    min-height: 100svh;
  }

  .glass-panel {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      0 0 22px rgba(139,47,255,.28),
      0 15px 45px rgba(0,0,0,.50) !important;
  }
}


/* ==========================================================
   FINAL FIX — LOWER ORBIT + LOADER SAFETY
========================================================== */

.orbit-interface {
  transform: translateY(0);
}

.loader {
  animation: qcatLoaderFailsafe 4.2s ease forwards;
}

@keyframes qcatLoaderFailsafe {
  0%, 72% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 720px) {
  .orbit-interface {
    transform: translateY(42px);
  }
}


/* ==========================================================

/* Original nebula footage is now part of the ultra atmosphere. */
.nebula-video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -5;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: screen;
  filter: saturate(1.35) contrast(1.08);
}

/* Keep the real JS orbital transform authoritative during the intro. */
.experience.intro-running .glass-panel {
  transform: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Reveal cards without ever forcing them into the nucleus. */
.experience.cards-reveal .glass-panel {
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* 13-card staggered materialization. */
.experience.cards-reveal .glass-panel:nth-child(1) { transition-delay: .05s; }
.experience.cards-reveal .glass-panel:nth-child(2) { transition-delay: .12s; }
.experience.cards-reveal .glass-panel:nth-child(3) { transition-delay: .19s; }
.experience.cards-reveal .glass-panel:nth-child(4) { transition-delay: .26s; }
.experience.cards-reveal .glass-panel:nth-child(5) { transition-delay: .33s; }
.experience.cards-reveal .glass-panel:nth-child(6) { transition-delay: .40s; }
.experience.cards-reveal .glass-panel:nth-child(7) { transition-delay: .47s; }
.experience.cards-reveal .glass-panel:nth-child(8) { transition-delay: .54s; }
.experience.cards-reveal .glass-panel:nth-child(9) { transition-delay: .61s; }
.experience.cards-reveal .glass-panel:nth-child(10) { transition-delay: .68s; }
.experience.cards-reveal .glass-panel:nth-child(11) { transition-delay: .75s; }
.experience.cards-reveal .glass-panel:nth-child(12) { transition-delay: .82s; }

.experience.cards-orbiting .glass-panel {
  pointer-events: auto !important;
}

/* Real cat-video asset becomes the central QCAT identity instead of the old SVG. */
.cat-nucleus {
  position: relative !important;
  width: 124px !important;
  height: 124px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}
.cat-video-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124px;
  height: 124px;
  transform: translate(-50%, -50%) translateZ(0);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.52);
  background: radial-gradient(circle, rgba(116,45,190,.35), rgba(5,3,15,.92));
  box-shadow:
    0 0 18px rgba(171,90,255,.7),
    0 0 55px rgba(255,57,220,.28),
    inset 0 0 25px rgba(255,255,255,.08);
}
.cat-video-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  z-index: 2;
  pointer-events: none;
}
.cat-video-frame::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, transparent 43%, rgba(180,85,255,.24) 54%, transparent 68%);
  animation: qcatCorePulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
.cat-nucleus-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.18) contrast(1.08) brightness(.9);
}
.cat-orbit-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 22px rgba(213,117,255,.9);
  pointer-events: none;
}
.dot-a { top: 8%; left: 50%; animation: qcatDotA 4s linear infinite; }
.dot-b { top: 50%; right: 2%; animation: qcatDotB 5s linear infinite; }
.dot-c { bottom: 7%; left: 18%; animation: qcatDotC 4.6s linear infinite; }

@keyframes qcatCorePulse {
  0%,100% { transform: scale(.92); opacity: .5; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes qcatDotA {
  to { transform: rotate(360deg) translateX(76px) rotate(-360deg); }
}
@keyframes qcatDotB {
  to { transform: rotate(-360deg) translateX(76px) rotate(360deg); }
}
@keyframes qcatDotC {
  to { transform: rotate(360deg) translateX(66px) rotate(-360deg); }
}

/* Rich content inside the unified drawer. */
.drawer-text {
  overflow-y: auto;
  max-height: min(58vh, 620px);
}
.drawer-text p {
  margin: 0 0 15px;
  color: rgba(231,239,255,.78);
  line-height: 1.75;
}
.drawer-feature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 18px 0;
}
.drawer-feature-grid > div,
.drawer-tool,
.drawer-roadmap article {
  padding: 14px;
  border: 1px solid rgba(180,130,255,.18);
  border-radius: 14px;
  background: linear-gradient(135deg,rgba(112,55,180,.14),rgba(255,255,255,.025));
  box-shadow: inset 0 0 22px rgba(160,90,255,.035);
}
.drawer-feature-grid b,
.drawer-tool b,
.drawer-roadmap b {
  display: block;
  color: #f7eaff;
  margin-bottom: 6px;
}
.drawer-feature-grid span,
.drawer-tool span,
.drawer-roadmap span {
  display: block;
  color: rgba(210,218,240,.62);
  font-size: 13px;
  line-height: 1.55;
}
.drawer-callout,
.contract-display {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255,91,223,.28);
  border-radius: 14px;
  background: rgba(93,25,115,.14);
  color: #f0d7ff;
  text-align: center;
  letter-spacing: .08em;
}
.drawer-steps {
  display: grid;
  gap: 10px;
  margin: 15px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.drawer-steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.drawer-steps li::before {
  content: counter(steps);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(166,92,255,.2);
  color: #fff;
  font-weight: 700;
}
.drawer-steps b { display:block; color:#fff; margin-bottom:4px; }
.drawer-steps span { color:rgba(215,222,245,.62); font-size:13px; line-height:1.5; }
.drawer-roadmap { display:grid; gap:10px; }
.drawer-roadmap article { border-left: 2px solid rgba(186,101,255,.5); }
.drawer-list {
  margin: 15px 0;
  padding-left: 20px;
  color: rgba(231,239,255,.76);
  line-height: 1.9;
}
.drawer-media {
  height: 190px;
  margin-bottom: 18px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.drawer-media video {
  width:100%;
  height:100%;
  object-fit:cover;
}
.drawer-faq {
  display:grid;
  gap:8px;
}
.drawer-faq details {
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  padding:12px 14px;
}
.drawer-faq summary {
  cursor:pointer;
  color:#f5eaff;
  font-weight:600;
}
.drawer-faq p {
  margin:10px 0 0;
  font-size:13px;
}
.drawer-note {
  font-size: 12px !important;
  color: rgba(196,204,226,.5) !important;
}
@media (max-width: 720px) {
  .cat-video-frame { width: 105px; height: 105px; }
  .drawer-feature-grid { grid-template-columns: 1fr; }
  .drawer-text { max-height: 54vh; }
}

/* ==========================================================
   QCAT ULTRA — AUTHORITATIVE ORBIT CONTROLLER
   One source of truth for the 12-card orbital layout.
========================================================== */

.panel-ring {
  left: 50% !important;
  top: 50% !important;
  width: 1px !important;
  height: 1px !important;
  transform: translate(-50%, -50%) !important;
  transform-style: preserve-3d !important;
  pointer-events: none;
}

.orbit-interface {
  position: absolute !important;
  inset: 0 !important;
  perspective: 1800px !important;
  overflow: visible !important;
  transform: none !important;
  z-index: 30 !important;
  pointer-events: none;
}

.glass-panel {
  width: clamp(190px, 15vw, 235px) !important;
  height: clamp(125px, 10vw, 155px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  pointer-events: auto;
  transform-style: preserve-3d !important;
  will-change: transform, opacity;
}

/* Never let CSS intro animations overwrite the JS 3D transform. */
.experience.intro-running .glass-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  filter: blur(16px) saturate(.65) !important;
  clip-path: inset(38% 38% 38% 38% round 24px) !important;
}

.experience.cards-reveal .glass-panel,
.experience.cards-orbiting .glass-panel {
  visibility: visible !important;
  pointer-events: auto !important;
  clip-path: inset(0 0 0 0 round 17px) !important;
  filter: blur(0) saturate(1.15) !important;
}

.experience.cards-reveal .glass-panel {
  opacity: 1 !important;
  transition: opacity .65s ease, filter .65s ease, clip-path .8s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease !important;
}

.experience.cards-reveal .glass-panel:nth-child(1) { transition-delay: .02s !important; }
.experience.cards-reveal .glass-panel:nth-child(2) { transition-delay: .10s !important; }
.experience.cards-reveal .glass-panel:nth-child(3) { transition-delay: .18s !important; }
.experience.cards-reveal .glass-panel:nth-child(4) { transition-delay: .26s !important; }
.experience.cards-reveal .glass-panel:nth-child(5) { transition-delay: .34s !important; }
.experience.cards-reveal .glass-panel:nth-child(6) { transition-delay: .42s !important; }
.experience.cards-reveal .glass-panel:nth-child(7) { transition-delay: .50s !important; }
.experience.cards-reveal .glass-panel:nth-child(8) { transition-delay: .58s !important; }
.experience.cards-reveal .glass-panel:nth-child(9) { transition-delay: .66s !important; }
.experience.cards-reveal .glass-panel:nth-child(10) { transition-delay: .74s !important; }
.experience.cards-reveal .glass-panel:nth-child(11) { transition-delay: .82s !important; }
.experience.cards-reveal .glass-panel:nth-child(12) { transition-delay: .90s !important; }

@media (min-width: 721px) {
  .glass-panel {
    width: clamp(200px, 14.8vw, 235px) !important;
    height: clamp(128px, 9.8vw, 155px) !important;
  }
}

@media (max-width: 720px) {
  .orbit-interface {
    perspective: 1100px !important;
  }
  .glass-panel {
    width: 178px !important;
    height: 116px !important;
    padding: 14px 15px !important;
  }
  .panel-title {
    font-size: .72rem !important;
  }
  .panel-subtitle {
    font-size: .43rem !important;
  }
}


/* ==========================================================
   QCAT UTILITY PAGES — SCROLL / LAYER / NAV FIX
========================================================== */
body.utility-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 100vh;
  background: #020309;
}
body.utility-page #background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
  opacity: .58;
}
body.utility-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(137,64,255,.20), transparent 48%), linear-gradient(180deg, rgba(2,3,9,.28), rgba(2,3,9,.82));
}
body.utility-page .navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(18px);
  background: rgba(3,4,14,.72);
  border-bottom: 1px solid rgba(167,139,250,.16);
}
body.utility-page .nav-container {
  width: min(1400px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
body.utility-page .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
body.utility-page .nav-links a, body.utility-page .mobile-nav a {
  color: rgba(232,232,255,.76);
  text-decoration: none;
  font-size: 12px;
  transition: color .2s ease, text-shadow .2s ease;
}
body.utility-page .nav-links a:hover, body.utility-page .mobile-nav a:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(167,139,250,.7);
}
body.utility-page .nav-right { display:flex; align-items:center; gap:12px; }
body.utility-page .hamburger { display:none; background:transparent; color:#fff; cursor:pointer; }
body.utility-page .mobile-nav { display:none; }
body.utility-page footer {
  position: relative;
  z-index: 2;
  margin-top: 50px;
}
@media (max-width: 1050px) {
  body.utility-page .nav-links { display:none; }
  body.utility-page .hamburger { display:grid; gap:4px; padding:8px; }
  body.utility-page .hamburger span { display:block; width:22px; height:2px; background:#fff; }
  body.utility-page .mobile-nav.open {
    display:grid;
    gap:14px;
    padding:16px 24px 20px;
    background: rgba(3,4,14,.94);
    border-top:1px solid rgba(167,139,250,.12);
  }
}
@media (max-width: 720px) {
  body.utility-page .nav-container { padding: 0 15px; }
  body.utility-page .page-main, body.utility-page .scanner-main { padding-left: 15px; padding-right: 15px; }
  body.utility-page .scanner-hero-title { font-size: clamp(34px, 10vw, 52px); }
}

/* ==========================================================
   QCAT ULTRA FINAL POSITION / INTERACTION FIX
========================================================== */
.center-ui {
  top: calc(50% + 58px) !important;
}

.panel-ring {
  top: calc(50% + 58px) !important;
}

/* The JS controller owns transforms; CSS only controls appearance. */
.glass-panel {
  transition: opacity .25s ease, filter .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.glass-panel:hover {
  cursor: pointer;
}

@media (max-width: 720px) {
  .center-ui {
    top: calc(50% + 42px) !important;
  }
  .panel-ring {
    top: calc(50% + 42px) !important;
  }
}


/* ==========================================================
   QCAT ULTRA — FINAL UTILITY + NUCLEUS POLISH
   Keeps utility apps inside a compact, responsive shell and
   keeps the cat video physically inside the nucleus.
========================================================== */

/* Utility pages: compact header that never consumes the app viewport. */
body.utility-page .navbar {
  position: sticky !important;
  top: 0 !important;
  min-height: 58px !important;
  height: auto !important;
  z-index: 1000 !important;
  background: rgba(4, 3, 14, .82) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
}
body.utility-page .nav-container {
  width: min(1180px, 100%) !important;
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 18px !important;
  gap: 12px !important;
}
body.utility-page .logo {
  flex: 0 0 auto !important;
  font-size: 15px !important;
  white-space: nowrap !important;
}
body.utility-page .nav-links {
  flex: 1 1 auto !important;
  justify-content: center !important;
  gap: 11px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}
body.utility-page .nav-links a {
  font-size: 10px !important;
  letter-spacing: .025em !important;
  white-space: nowrap !important;
}
body.utility-page .nav-right {
  flex: 0 0 auto !important;
  gap: 8px !important;
}
body.utility-page .pump-btn {
  padding: 8px 11px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}
body.utility-page .page-main,
body.utility-page .scanner-main {
  width: min(1120px, calc(100% - 36px)) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 28px 0 60px !important;
  box-sizing: border-box !important;
}
body.utility-page .page-hero,
body.utility-page .scanner-hero {
  margin-top: 0 !important;
  padding-top: 8px !important;
}
body.utility-page .scanner-hero-title {
  margin-top: 8px !important;
  line-height: 1.05 !important;
}
body.utility-page .scanner-hero-sub {
  max-width: 820px !important;
}
body.utility-page .mobile-nav {
  max-height: calc(100vh - 58px) !important;
  overflow-y: auto !important;
}

@media (max-width: 1050px) {
  body.utility-page .nav-container {
    min-height: 58px !important;
    height: 58px !important;
  }
  body.utility-page .nav-links { display: none !important; }
  body.utility-page .hamburger { display: grid !important; }
  body.utility-page .pump-btn { display: inline-flex !important; }
}

@media (max-width: 720px) {
  body.utility-page .nav-container {
    padding: 0 12px !important;
  }
  body.utility-page .logo {
    font-size: 13px !important;
  }
  body.utility-page .pump-btn {
    display: none !important;
  }
  body.utility-page .page-main,
  body.utility-page .scanner-main {
    width: min(100% - 24px, 680px) !important;
    padding: 20px 0 44px !important;
  }
}

/* Main nucleus: the video is smaller than the nucleus and clipped inside it. */
#experience .center-title {
  width: 150px !important;
  height: 150px !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
#experience .center-title::before {
  inset: 9px !important;
  z-index: 4 !important;
  pointer-events: none !important;
}
#experience .center-title::after {
  inset: -18px !important;
  z-index: 5 !important;
  pointer-events: none !important;
}
#experience .cat-nucleus {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 116px !important;
  height: 116px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  z-index: 2 !important;
  background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.10), rgba(122,38,205,.22) 42%, rgba(7,1,17,.95) 78%) !important;
  border: 1px solid rgba(219,176,255,.55) !important;
  box-shadow: inset 0 0 25px rgba(173,73,255,.32), 0 0 32px rgba(160,52,255,.42) !important;
}
#experience .cat-video-frame {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 100px !important;
  height: 100px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  z-index: 1 !important;
  border: 1px solid rgba(255,255,255,.38) !important;
  background: #08030f !important;
}
#experience .cat-nucleus-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
#experience .cat-video-frame::after {
  inset: 0 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, transparent 50%, rgba(170,72,255,.20) 74%, transparent 100%) !important;
  z-index: 3 !important;
}
#experience .cat-orbit-dot {
  z-index: 6 !important;
}

@media (max-width: 720px) {
  #experience .center-title { width: 128px !important; height: 128px !important; }
  #experience .cat-nucleus { width: 100px !important; height: 100px !important; }
  #experience .cat-video-frame { width: 86px !important; height: 86px !important; }
}

/* ==========================================================
   QCAT FINAL POLISH — RESPONSIVE / ACCESSIBLE / HONEST UI
========================================================== */

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.noscript-panel{position:fixed;inset:20px;z-index:99999;padding:24px;border:1px solid rgba(217,184,255,.35);border-radius:18px;background:#090411;color:#fff;font:16px/1.6 var(--sans);box-shadow:0 0 60px rgba(160,60,255,.25)}
.noscript-panel a{color:#e5b8ff}

/* Let the nebula video actually contribute to the composition. */
#webgl{background:transparent!important}
.nebula-video-bg{z-index:-6!important;opacity:.42!important;mix-blend-mode:screen!important;object-position:center center!important}
.atmosphere,.noise,.vignette{pointer-events:none!important}

/* A single clean nucleus: video sits inside the inner disk, not on top of it. */
#experience .center-ui{top:calc(50% + 58px)!important}
#experience .center-title{position:relative!important;width:168px!important;height:168px!important;border-radius:50%!important;overflow:visible!important;background:radial-gradient(circle,rgba(139,62,255,.18),rgba(27,6,48,.34) 54%,rgba(4,1,12,.10) 72%,transparent 73%)!important;border:0!important;box-shadow:none!important;filter:none!important}
#experience .center-title::before{content:""!important;position:absolute!important;inset:10px!important;border-radius:50%!important;border:1px solid rgba(236,204,255,.38)!important;background:radial-gradient(circle at 50% 44%,rgba(255,255,255,.05),rgba(95,31,180,.12) 52%,transparent 70%)!important;box-shadow:0 0 28px rgba(163,66,255,.32),inset 0 0 32px rgba(168,75,255,.18)!important;z-index:4!important}
#experience .center-title::after{content:""!important;position:absolute!important;inset:-8px!important;border-radius:50%!important;border:1px solid rgba(255,85,225,.22)!important;box-shadow:0 0 32px rgba(255,46,214,.16)!important;transform:none!important;z-index:5!important}
#experience .cat-nucleus{position:absolute!important;left:50%!important;top:50%!important;width:132px!important;height:132px!important;transform:translate(-50%,-50%)!important;border-radius:50%!important;overflow:hidden!important;z-index:3!important;border:1px solid rgba(228,194,255,.58)!important;background:#07020f!important;box-shadow:0 0 0 5px rgba(113,42,190,.08),0 0 38px rgba(156,53,255,.46),0 0 75px rgba(255,46,214,.15),inset 0 0 30px rgba(255,255,255,.06)!important}
#experience .cat-video-frame{position:absolute!important;left:50%!important;top:50%!important;width:132px!important;height:132px!important;transform:translate(-50%,-50%)!important;border:0!important;border-radius:50%!important;overflow:hidden!important;z-index:1!important;background:#07020f!important;box-shadow:none!important}
#experience .cat-nucleus-video{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transform:none!important;filter:saturate(1.14) contrast(1.06) brightness(.95)!important}
#experience .cat-video-frame::before{content:""!important;position:absolute!important;inset:0!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:inset 0 0 26px rgba(0,0,0,.32)!important;z-index:3!important;pointer-events:none!important}
#experience .cat-video-frame::after{content:""!important;position:absolute!important;inset:0!important;border-radius:50%!important;background:radial-gradient(circle,transparent 48%,rgba(101,24,173,.10) 66%,rgba(3,0,10,.55) 100%)!important;z-index:4!important;pointer-events:none!important;animation:none!important}
#experience .cat-orbit-dot{z-index:7!important}

/* HUD becomes optional decoration rather than a collision layer. */
@media (max-width:1100px){
  .left-hud,.right-hud{display:none!important}
}
@media (max-width:720px){
  #experience .center-ui{top:calc(50% + 42px)!important}
  #experience .center-title{width:142px!important;height:142px!important}
  #experience .cat-nucleus,#experience .cat-video-frame{width:112px!important;height:112px!important}
}

/* Keep orbit cards readable without letting the top card kiss the viewport. */
@media (min-width:721px){
  .panel-subtitle{font-size:.52rem!important;letter-spacing:.13em!important}
  .panel-title{font-size:.79rem!important}
}
@media (max-width:720px){
  .panel-subtitle{font-size:.48rem!important;letter-spacing:.10em!important;white-space:normal!important;line-height:1.35!important}
  .panel-title{font-size:.68rem!important;white-space:normal!important}
}

/* Drawer cannot overflow on narrow phones. */
.content-drawer,.drawer-panel,.drawer-head,.drawer-body,.drawer-text,.drawer-actions,.drawer-feature-grid,.drawer-feature-grid>div,.drawer-tool,.drawer-roadmap,.drawer-faq{min-width:0!important;max-width:100%!important}
.drawer-head h2{overflow-wrap:anywhere!important;word-break:break-word!important}
.drawer-text{overflow-x:hidden!important;overflow-wrap:anywhere!important}
.drawer-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.community-media{width:100%;height:min(42vw,260px);margin:18px 0;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.10);background:#08030f}
.community-media video{width:100%;height:100%;object-fit:cover}
@media(max-width:620px){
  .drawer-feature-grid{grid-template-columns:1fr!important}
  .drawer-head{gap:10px!important}
  .drawer-head h2{font-size:clamp(1.5rem,8vw,2.3rem)!important}
  .drawer-actions{flex-wrap:wrap!important}
}

/* Touch: cards should be interactive instead of stealing the entire gesture. */
.glass-panel{touch-action:none!important;-webkit-tap-highlight-color:transparent}

/* Reduced motion: JS also stops the orbit; videos are paused for users who request it. */
@media(prefers-reduced-motion:reduce){
  #experience .cat-nucleus-video,.nebula-video-bg{animation:none!important}
}

/* ==========================================================
   UTILITY SUITE — SAME QCAT VISUAL LANGUAGE, NO FAKE DATA
========================================================== */
body.utility-page{font-family:var(--sans)!important;background:#05010c!important;color:#f7f1ff!important}
body.utility-page #background-video{opacity:.34!important;filter:saturate(1.3) contrast(1.05)!important}
body.utility-page::before{background:radial-gradient(circle at 50% 15%,rgba(155,64,255,.22),transparent 42%),linear-gradient(180deg,rgba(4,1,12,.45),rgba(4,1,12,.90))!important}
body.utility-page .navbar{border-bottom:1px solid rgba(210,165,255,.16)!important;background:rgba(5,1,14,.78)!important}
body.utility-page .nav-links a,body.utility-page .mobile-nav a{font-family:var(--sans)!important;color:rgba(239,229,255,.74)!important}
body.utility-page .nav-links a:hover,body.utility-page .mobile-nav a:hover{color:#fff!important;text-shadow:0 0 18px rgba(221,127,255,.75)!important}
body.utility-page .cta-btn,body.utility-page button{font-family:var(--sans)!important}
body.utility-page .scanner-hero,body.utility-page .page-hero{background:linear-gradient(135deg,rgba(122,44,196,.12),rgba(255,255,255,.025))!important;border-color:rgba(207,159,255,.18)!important;box-shadow:0 0 50px rgba(108,36,177,.12)!important}
body.utility-page .scanner-main,body.utility-page .page-main{width:min(1180px,calc(100% - 36px))!important;margin:0 auto!important}
body.utility-page input,body.utility-page select,body.utility-page textarea{font-family:var(--sans)!important;color:#fff!important;background:rgba(8,3,18,.76)!important;border-color:rgba(211,169,255,.18)!important}
body.utility-page input:focus,body.utility-page select:focus{border-color:rgba(229,183,255,.65)!important;box-shadow:0 0 0 3px rgba(164,72,255,.12),0 0 24px rgba(164,72,255,.16)!important;outline:none!important}
body.utility-page footer{border-top:1px solid rgba(211,169,255,.10)!important;background:rgba(3,1,9,.52)!important}

/* Clear tool-state banner used when a live integration is not available. */
.tool-status-banner{margin:16px 0;padding:13px 15px;border:1px solid rgba(218,167,255,.20);border-radius:14px;background:rgba(110,38,164,.12);color:rgba(239,225,255,.76);font-size:13px;line-height:1.55}
.tool-status-banner strong{color:#f7dcff}
.field-fallback{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 42%,rgba(131,44,255,.20),rgba(4,1,12,.92) 65%)}
.field-fallback[hidden]{display:none}
.field-fallback-inner{width:min(720px,100%);padding:34px;border:1px solid rgba(220,176,255,.22);border-radius:24px;background:rgba(10,4,22,.72);backdrop-filter:blur(24px);box-shadow:0 0 80px rgba(131,42,255,.18),inset 0 1px 0 rgba(255,255,255,.10)}
.field-fallback h2{margin:8px 0 10px;font-size:clamp(2rem,6vw,4rem)}
.field-fallback p{color:rgba(230,221,245,.68);line-height:1.7}
.field-fallback nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}
.field-fallback nav a{padding:14px;border:1px solid rgba(210,160,255,.18);border-radius:14px;color:#fff;text-decoration:none;background:rgba(125,47,195,.10);transition:.25s ease}
.field-fallback nav a:hover{border-color:rgba(235,193,255,.7);box-shadow:0 0 28px rgba(193,78,255,.25);transform:translateY(-2px)}
@media(max-width:600px){.field-fallback nav{grid-template-columns:1fr}}

/* ==========================================================
   QCAT NUCLEUS FIX — VIDEO IS PART OF THE 3D CORE
   The cat video is now rendered by Three.js as the inner
   circular core. The old DOM video is kept only as the
   source for the VideoTexture, never as a second floating UI.
========================================================== */
#experience .center-ui{
  top: calc(50% + 58px) !important;
  z-index: 35 !important;
  pointer-events: none !important;
}
#experience .center-title{
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  display: block !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
#experience .center-title::before,
#experience .center-title::after{
  display: none !important;
  content: none !important;
}
#experience .cat-nucleus{
  visibility: hidden !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
#experience .cat-nucleus-video{
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
#experience .center-kicker{
  position: absolute !important;
  top: -88px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-shadow: 0 0 18px rgba(176,87,255,.55) !important;
}
#experience .center-line{
  position: absolute !important;
  top: 82px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  opacity: .8 !important;
}
#experience .center-caption{
  position: absolute !important;
  top: 96px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-shadow: 0 0 12px rgba(165,72,255,.5) !important;
}

/* Give the actual Three.js nucleus a clear glass-core identity. */
#webgl{
  z-index: 1 !important;
}

@media (max-width:720px){
  #experience .center-ui{top:calc(50% + 42px)!important}
  #experience .center-kicker{top:-76px!important;font-size:.48rem!important}
  #experience .center-line{top:70px!important}
  #experience .center-caption{top:84px!important;font-size:.42rem!important}
}


/* Quantum Signal: new thirteenth orbital panel, same original glass-panel system. */
.glass-panel.signal-panel {
  border-color: rgba(190, 143, 255, .48);
  box-shadow: 0 0 24px rgba(151, 91, 255, .12), inset 0 0 22px rgba(151, 91, 255, .06);
}
.glass-panel.signal-panel .panel-title { color: #d7b7ff; }
.glass-panel.signal-panel .panel-number { color: #bd91ff; }

.experience.cards-reveal .glass-panel:nth-child(13) { transition-delay: .89s; }

/* ==========================================================
   QUANTUM SIGNAL — editorial research module
   Uses the existing QCAT palette and utility-page foundation.
========================================================== */
.signal-page { color: #f4efff; }
.signal-main { max-width: 1120px; margin: 0 auto; padding-top: 130px; padding-bottom: 80px; position: relative; z-index: 2; }
.signal-hero { text-align: center; margin-bottom: 34px; }
.signal-hero .scanner-hero-title { letter-spacing: .09em; }
.signal-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 9px 14px; border: 1px solid rgba(190,145,255,.25); border-radius: 999px; background: rgba(25,13,48,.55); color: #cbb0ff; font: 11px 'DM Mono', monospace; letter-spacing: .12em; }
.signal-pulse { width: 7px; height: 7px; border-radius: 50%; background: #b88aff; box-shadow: 0 0 12px #b88aff; }
.signal-feature, .signal-card, .signal-timeline, .signal-sources { border: 1px solid rgba(190,160,255,.17); background: linear-gradient(145deg, rgba(25,17,45,.86), rgba(9,10,25,.78)); backdrop-filter: blur(18px); border-radius: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.2); }
.signal-feature { padding: clamp(22px,4vw,42px); margin-bottom: 18px; }
.signal-feature-kicker, .signal-section-kicker, .signal-card-index { color: #bd91ff; font: 11px 'DM Mono', monospace; letter-spacing: .15em; }
.signal-feature h2 { max-width: 800px; margin: 16px 0; font: 700 clamp(25px,4vw,42px)/1.12 'Space Grotesk', sans-serif; }
.signal-feature > p, .signal-card p, .signal-timeline p { color: rgba(232,224,248,.76); line-height: 1.75; }
.signal-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.signal-facts article { padding: 18px; border-radius: 14px; background: rgba(148,102,220,.09); border: 1px solid rgba(190,160,255,.12); }
.signal-facts span { display: block; color: #bda1e8; font: 10px 'DM Mono',monospace; letter-spacing: .12em; margin-bottom: 10px; }
.signal-facts strong { font: 600 16px 'Space Grotesk',sans-serif; }
.signal-facts p { color: rgba(226,215,245,.7); font-size: 13px; line-height: 1.6; margin-bottom: 0; }
.signal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.signal-card { padding: 23px; }
.signal-card h3, .signal-timeline h3 { font: 600 20px 'Space Grotesk',sans-serif; margin: 13px 0 8px; }
.signal-card p { font-size: 14px; margin-bottom: 0; }
.signal-timeline, .signal-sources { padding: clamp(22px,4vw,34px); margin-bottom: 18px; }
.signal-timeline-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(190,160,255,.12); }
.signal-timeline-row:last-child { border-bottom: 0; padding-bottom: 0; }
.signal-timeline-row > span { color: #bd91ff; font: 10px 'DM Mono',monospace; letter-spacing: .08em; padding-top: 5px; }
.signal-timeline h3 { margin: 0 0 6px; font-size: 17px; }
.signal-timeline p { font-size: 13px; margin: 0; }
.signal-sources a { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid rgba(190,160,255,.12); color: #f4efff; text-decoration: none; }
.signal-sources a:last-child { border-bottom: 0; padding-bottom: 0; }
.signal-sources a span { color: #b995ef; font: 10px 'DM Mono',monospace; letter-spacing: .12em; }
.signal-sources a strong { font: 500 15px 'Space Grotesk',sans-serif; }
.signal-sources a:hover strong { color: #c8a7ff; }
.signal-disclaimer { color: rgba(218,207,239,.58); font-size: 12px; line-height: 1.7; text-align: center; max-width: 850px; margin: 28px auto; }
.signal-back { text-align: center; margin-top: 24px; }
.signal-back a { color: #d2b5ff; text-decoration: none; font: 11px 'DM Mono',monospace; letter-spacing: .12em; }
@media (max-width: 760px) { .signal-main { padding: 105px 16px 55px; } .signal-facts, .signal-grid { grid-template-columns: 1fr; } .signal-timeline-row { grid-template-columns: 1fr; gap: 8px; } }


/* ==========================================================
   ROADMAP + DRAWER READABILITY REFINEMENTS
========================================================== */
/* Keep long drawer headings on natural word boundaries; the old oversized
   minimum font caused short headings such as ENTER THE FIELD to stack. */
.drawer-head { gap: 18px; }
.drawer-head > div { flex: 1 1 auto; min-width: 0; }
.drawer-head h2 {
  max-width: 100%;
  font-size: clamp(1.85rem, 4.1vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}
.drawer-body { min-width: 0; }
.drawer-text { max-width: 100%; overflow-wrap: break-word; word-break: normal; }
.drawer-steps { width: 100%; }
.drawer-steps li { min-width: 0; grid-template-columns: 34px minmax(0,1fr); }
.drawer-steps li > b, .drawer-steps li > span { min-width: 0; overflow-wrap: break-word; word-break: normal; }

/* Distinct accent for the dedicated roadmap orbit panel. */
.glass-panel.roadmap-panel { border-color: rgba(164, 133, 255, .48); box-shadow: 0 0 22px rgba(139, 105, 255, .13), inset 0 0 22px rgba(139, 105, 255, .06); }
.glass-panel.roadmap-panel .panel-title { color: #d2c2ff; }
.glass-panel.roadmap-panel .panel-number { color: #aa96ff; }
.experience.cards-reveal .glass-panel:nth-child(14) { transition-delay: .96s; }

/* Professional phased roadmap cards. */
.roadmap-intro { color: rgba(231,239,255,.78); line-height: 1.75; margin: 0 0 20px; }
.professional-roadmap { display: grid; gap: 13px; margin: 18px 0 20px; }
.roadmap-phase { position: relative; padding: 19px 20px; border: 1px solid rgba(180,130,255,.18); border-radius: 16px; background: linear-gradient(135deg,rgba(112,55,180,.13),rgba(255,255,255,.025)); overflow: hidden; }
.roadmap-phase::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: rgba(165,132,255,.55); }
.roadmap-current::before { background: #b99aff; box-shadow: 0 0 16px rgba(185,154,255,.5); }
.roadmap-phase-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.roadmap-phase-number { color: #c8aaff; font: 11px 'DM Mono',monospace; letter-spacing: .14em; }
.roadmap-status { color: #e4d5ff; font: 9px 'DM Mono',monospace; letter-spacing: .1em; border: 1px solid rgba(185,154,255,.28); border-radius: 999px; padding: 6px 9px; background: rgba(150,105,220,.12); }
.roadmap-status.planned { color: rgba(220,210,239,.68); border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.roadmap-phase h3 { margin: 0 0 7px; color: #fbf7ff; font: 600 21px 'Space Grotesk',sans-serif; }
.roadmap-phase > p { margin: 0 0 12px; color: rgba(226,218,242,.72); font-size: 13px; line-height: 1.65; }
.roadmap-phase ul { margin: 0; padding-left: 19px; color: rgba(231,239,255,.78); font-size: 13px; line-height: 1.8; }
.roadmap-phase li { padding-left: 3px; margin: 3px 0; }
.roadmap-outcome { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(190,160,255,.12); }
.roadmap-outcome b { color: #c6a8f5; font: 10px 'DM Mono',monospace; letter-spacing: .1em; }
.roadmap-outcome span { color: rgba(220,212,236,.72); font-size: 12px; line-height: 1.55; }
@media (max-width: 620px) {
  .drawer-head { padding: 25px 20px 20px; }
  .drawer-body { padding: 22px 20px; }
  .drawer-head h2 { font-size: clamp(1.65rem, 7vw, 2.35rem) !important; }
  .roadmap-phase { padding: 16px; }
  .roadmap-phase h3 { font-size: 19px; }
  .roadmap-outcome { grid-template-columns: 1fr; gap: 5px; }
}

/* QCAT Catalyst social links */
.qcat-community-links{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 6px}
.community-social-link{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border:1px solid rgba(190,150,255,.42);border-radius:12px;color:#eee5ff;text-decoration:none;background:rgba(130,75,220,.14);font:600 11px/1.3 'Orbitron',sans-serif;letter-spacing:.06em;transition:background .2s,border-color .2s,transform .2s}
.community-social-link:hover{background:rgba(130,75,220,.28);border-color:rgba(210,180,255,.8);transform:translateY(-2px)}
.community-links-pending{font-size:12px;line-height:1.6;color:rgba(230,220,255,.7)}

/* QCAT wallet access panel */
.wallet-connect-panel { margin: 18px 0; padding: 16px; border: 1px solid rgba(180,130,255,.22); border-radius: 16px; background: linear-gradient(145deg,rgba(100,52,160,.16),rgba(255,255,255,.025)); }
.wallet-connect-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.wallet-provider-button { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 13px; border: 1px solid rgba(183,146,255,.3); border-radius: 12px; color: #f5edff; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; transition: .2s ease; }
.wallet-provider-button:hover { border-color: rgba(203,168,255,.8); background: rgba(130,78,205,.16); transform: translateY(-1px); }
.wallet-provider-button:disabled { opacity: .55; cursor: wait; transform: none; }
.wallet-provider-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: rgba(164,113,255,.17); color: #d9c0ff; font-size: 22px; }
.wallet-provider-button b,.wallet-provider-button small { display: block; }
.wallet-provider-button b { font: 700 10px 'Orbitron',sans-serif; letter-spacing: .04em; }
.wallet-provider-button small { margin-top: 5px; color: rgba(224,217,245,.62); font-size: 10px; line-height: 1.35; }
.wallet-connection-status { margin-top: 13px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #d7c8f2; background: rgba(0,0,0,.18); font: 11px/1.6 'DM Mono',monospace; overflow-wrap: anywhere; }
.wallet-disconnect-button { margin-top: 10px; padding: 10px 13px; border: 1px solid rgba(255,125,150,.35); border-radius: 9px; color: #ffc4d1; background: rgba(130,35,70,.15); font: 700 9px 'Orbitron',sans-serif; cursor: pointer; }
.wallet-disconnect-button[hidden] { display: none; }
.qcat-community-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.community-social-link { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 13px; border: 1px solid rgba(190,150,255,.42); border-radius: 14px; color: #eee5ff; text-decoration: none; background: rgba(130,75,220,.14); font: 600 10px/1.3 'Orbitron',sans-serif; letter-spacing: .06em; transition: background .2s,border-color .2s,transform .2s; }
.community-social-link svg { width: 25px; height: 25px; fill: currentColor; }
.community-social-link:hover { background: rgba(130,75,220,.28); border-color: rgba(210,180,255,.8); transform: translateY(-2px); }
.community-social-link.is-pending { opacity: .58; cursor: not-allowed; }
@media (max-width: 560px) { .wallet-connect-options { grid-template-columns: 1fr; } .qcat-community-links { grid-template-columns: 1fr 1fr; } }
.drawer-section-heading { margin: 22px 0 10px; color: #d9c1ff; font: 700 11px/1.4 'Orbitron',sans-serif; letter-spacing: .1em; }

/* V5.1: navbar links that previously rendered as unstyled browser-default links on utility pages */
body.utility-page .logo a {
  text-decoration: none;
  background: linear-gradient(135deg, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.utility-page .nav-right .cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(147, 51, 234, 0.45);
  border-radius: 10px;
  background: rgba(147, 51, 234, 0.14);
  color: #d0d0ff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
body.utility-page .nav-right .cta-btn:hover { border-color: #a78bfa; background: rgba(147, 51, 234, 0.28); color: #fff; }
@media (max-width: 420px) { body.utility-page .nav-right .cta-btn { display: none !important; } }

body.utility-page .logo { flex-shrink: 0; margin-right: 14px; }
@media (min-width: 901px) and (max-width: 1360px) { body.utility-page .nav-right .cta-btn.pump-btn { display: none !important; } }

/* ==========================================================
   QCAT 5.2 — MOBILE PASS
   Touch targets >= 44px, 16px form text (stops iOS zoom on focus),
   safe-area insets, legible minimum type, styled utility footer,
   monogram/dot icons that replace emoji.
========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, select, textarea, label { -webkit-tap-highlight-color: rgba(167,139,250,.18); touch-action: manipulation; }

/* Monogram icons (replace emoji) */
body.utility-page .scan-cat,
body.utility-page .fv-icon,
body.utility-page .qp-icon {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #d8c8ff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167,139,250,.45);
  border-radius: 50%;
  background: rgba(124,58,237,.14);
  line-height: 1;
}
body.utility-page .scan-cat { width: 56px; height: 56px; font-size: 22px; }
body.utility-page .fv-icon { width: 56px; height: 56px; font-size: 22px; }
body.utility-page .qp-icon { width: 48px; height: 48px; font-size: 20px; }
body.utility-page .settings-btn { color: #c4b5fd; display: grid; place-items: center; }

/* Status dots (Watchtower) */
.tone-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; margin-top: 6px; background: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.16); font-size: 0; }
.tone-dot[data-tone="buy"] { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.16); }
.tone-dot[data-tone="sell"] { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.16); }
.tone-dot[data-tone="qcat"] { background: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.16); }
.alert-type-option .tone-dot { margin-top: 0; }

/* Swap info list without checkmark bullets */
body.utility-page .sip-list li { position: relative; padding-left: 16px; }
body.utility-page .sip-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; }

/* Utility footer */
body.utility-page footer {
  border-top: 1px solid rgba(167,139,250,.14);
  background: rgba(3,4,14,.72);
  padding: 40px 24px calc(28px + env(safe-area-inset-bottom));
  color: rgba(226,232,240,.72);
}
body.utility-page .footer-content {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 28px;
  grid-template-columns: 1.4fr 1fr 1.4fr;
}
body.utility-page .footer-section h3 {
  font-family: 'Orbitron', sans-serif; font-size: 13px; letter-spacing: .14em;
  color: #fff; margin: 0 0 12px;
}
body.utility-page .footer-section p { font-size: 13px; line-height: 1.6; margin: 0; }
body.utility-page .footer-section a {
  display: flex; align-items: center; min-height: 40px;
  color: rgba(226,232,240,.78); text-decoration: none; font-size: 14px;
}
body.utility-page .footer-section a:hover { color: #fff; }
body.utility-page .footer-bottom, body.utility-page footer > p {
  max-width: 1100px; margin: 28px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(167,139,250,.1);
  font-size: 12px; color: rgba(226,232,240,.5);
}

@media (max-width: 1050px) {
  body.utility-page .hamburger { min-width: 44px; min-height: 44px; place-content: center; }
  body.utility-page .mobile-nav.open { gap: 0; padding: 8px 20px 16px; }
  body.utility-page .mobile-nav.open a {
    display: flex; align-items: center; min-height: 48px; font-size: 15px;
    border-bottom: 1px solid rgba(167,139,250,.08);
  }
  body.utility-page .mobile-nav.open a:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  body.utility-page nav, body.utility-page .navbar { padding-top: env(safe-area-inset-top); }
  body.utility-page .logo a { display: inline-flex; align-items: center; min-height: 44px; }
  body.utility-page .footer-content { grid-template-columns: 1fr; gap: 22px; }
  body.utility-page footer { padding-left: 20px; padding-right: 20px; }

}



@media (max-width: 1050px), (pointer: coarse) {
  /* 16px form text prevents iOS Safari from zooming the page on focus */
  body.utility-page input, body.utility-page select, body.utility-page textarea { font-size: 16px !important; }
  body.utility-page .token-amount-input { font-size: 20px !important; min-height: 44px; }

  /* Touch targets */
  body.utility-page .settings-btn { min-width: 44px; min-height: 44px; }
  body.utility-page .token-select-btn { min-height: 44px; }
  body.utility-page .max-btn { min-height: 32px; min-width: 48px; padding: 6px 10px; }
  body.utility-page .flip-btn { width: 44px; height: 44px; }
  body.utility-page .thresh-btn, body.utility-page .slip-btn, body.utility-page .slip-input { min-height: 44px; }
  body.utility-page .scan-btn, body.utility-page .connect-wallet-btn, body.utility-page .cta-btn { min-height: 48px; }
  body.utility-page .alert-type-option { min-height: 48px; }
  .signal-back a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  body.utility-page .feed-empty-note { font-size: 12px !important; }
  body.utility-page .logo a { display: inline-flex; align-items: center; min-height: 44px; }
  body.utility-page .pump-btn { min-height: 44px; font-size: 11px !important; }
}

/* Home (orbital field): legible floors on phones and tablets; layout unchanged */
@media (max-width: 1050px) {
  html body:not(.utility-page) .bottom-ui .sound-btn { min-height: 44px; min-width: 64px; font-size: 10px !important; }
  html body #experience .center-ui .center-kicker,
  html body #experience .center-ui .center-caption,
  html body .field-fallback .center-kicker,
  html body:not(.utility-page) .panel-subtitle,
  html body:not(.utility-page) .panel-number,
  html body:not(.utility-page) .coordinates,
  html body:not(.utility-page) .coordinates span,
  html body:not(.utility-page) .scroll-note,
  html body:not(.utility-page) .drawer-kicker,
  html body:not(.utility-page) .drawer-body .drawer-metric span,
  html body:not(.utility-page) .drawer-body .drawer-metric strong,
  html body:not(.utility-page) .drawer-panel .drawer-footer span { font-size: 10px !important; }
  html body:not(.utility-page) .loader-subtitle { font-size: 11px !important; }
  html body:not(.utility-page) .panel-title { font-size: 12px !important; }
}
