:root{--hd-black:#020407;--hd-void:#05080c;--hd-surface:rgba(9,14,20,.82);--hd-surface-strong:#0a1017;--hd-white:#f5f9fb;--hd-muted:#84919a;--hd-dim:#4d5a63;--hd-blue:#32d8f2;--hd-blue-bright:#63eaff;--hd-pink:#f43aa6;--hd-line:rgba(101,226,248,.13);--hd-focus:0 0 0 1px rgba(50,216,242,.32),0 32px 90px rgba(0,0,0,.48),0 0 54px rgba(50,216,242,.07);--hd-radius:28px}
html{background:var(--hd-black)}
body.hd-universe{font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body.hd-universe:after{content:"";position:fixed;inset:0;z-index:-5;pointer-events:none;background:radial-gradient(circle at 76% 10%,rgba(50,216,242,.07),transparent 27%),radial-gradient(circle at 15% 72%,rgba(50,216,242,.025),transparent 30%)}
.hd-universe-field{position:fixed;inset:0;z-index:9990;pointer-events:none;overflow:hidden;contain:strict}
.hd-universe-field:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(94,226,249,.28) 0 1px,transparent 1.4px);background-size:86px 86px;opacity:.22;mask-image:linear-gradient(115deg,#000,transparent 72%)}
.hd-universe-field .hd-field-line{position:absolute;width:min(82vw,920px);aspect-ratio:1;border:1px solid rgba(50,216,242,.055);border-radius:50%;right:-40vw;top:-43vw}
.hd-universe-field .hd-field-line:before,.hd-universe-field .hd-field-line:after{content:"";position:absolute;border:inherit;border-radius:inherit;inset:16%}.hd-universe-field .hd-field-line:after{inset:34%}
.hd-universe-context{position:fixed;z-index:10020;right:18px;top:18px;display:flex;align-items:center;gap:12px;padding:8px 10px 8px 9px;border:1px solid var(--hd-line);border-radius:999px;background:rgba(3,7,11,.78);backdrop-filter:blur(22px) saturate(140%);box-shadow:0 15px 45px rgba(0,0,0,.22);color:var(--hd-white);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.hd-universe-context .hd-context-cell{width:32px;height:32px;border:1px solid rgba(50,216,242,.3);border-radius:9px;display:grid;place-items:center;font-size:9px;font-weight:950;letter-spacing:-.06em;position:relative;color:#dffbff}
.hd-universe-context .hd-context-cell:after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;right:-3px;top:-3px;background:var(--hd-blue);box-shadow:0 0 13px var(--hd-blue);animation:hdPulse 2.4s ease-in-out infinite}
.hd-context-copy{padding-right:7px}.hd-context-copy b,.hd-context-copy small{display:block}.hd-context-copy b{font-size:10px;line-height:1.1;letter-spacing:.06em}.hd-context-copy small{margin-top:4px;color:var(--hd-muted);font-size:9px;line-height:1;letter-spacing:.04em}
.hd-universe-dock{position:fixed;z-index:10015;left:50%;bottom:16px;translate:-50% 0;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid var(--hd-line);border-radius:999px;background:rgba(3,7,11,.82);backdrop-filter:blur(24px) saturate(150%);box-shadow:0 20px 60px rgba(0,0,0,.42);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.hd-universe-dock a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;color:#7e8b94;text-decoration:none;font-size:10px;font-weight:760;white-space:nowrap;transition:background .25s ease,color .25s ease,transform .25s ease}.hd-universe-dock a:hover,.hd-universe-dock a:focus-visible{color:var(--hd-white);background:rgba(50,216,242,.08);outline:none}.hd-universe-dock a[aria-current="page"]{color:#061015;background:var(--hd-blue);box-shadow:0 0 24px rgba(50,216,242,.18)}
.hd-layer-tag{position:fixed;z-index:10010;left:20px;top:21px;color:rgba(185,199,207,.7);font:700 10px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.08em;pointer-events:none}.hd-layer-tag:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:8px;background:var(--hd-blue);box-shadow:0 0 11px rgba(50,216,242,.7)}
body.hd-universe .hd-focusable{transition:transform .45s cubic-bezier(.2,.75,.2,1),opacity .45s ease,filter .45s ease,box-shadow .45s ease,border-color .45s ease;transform-origin:center}
body.hd-universe .hd-focusable:hover,body.hd-universe .hd-focusable:focus-within{transform:translateY(-4px) scale(1.008);border-color:rgba(50,216,242,.28)!important;box-shadow:var(--hd-focus)}
body.hd-universe.hd-focus-mode .hd-focusable:not(.hd-in-focus){opacity:1!important;filter:none!important}body.hd-universe .hd-focusable.hd-in-focus{transform:translateY(-4px) scale(1.008);z-index:5;box-shadow:var(--hd-focus)}
.hd-reveal,.hd-reveal.hd-visible{opacity:1!important;transform:none!important;visibility:visible!important}
body.hd-universe.hd-leaving{opacity:.78;transition:opacity .22s ease}

body.hd-universe[data-hd-layer="institute"] .system,body.hd-universe[data-hd-layer="institute"] .review{background:var(--hd-void)!important;color:var(--hd-white)!important;border-block:1px solid var(--hd-line)}
body.hd-universe[data-hd-layer="institute"] .system p,body.hd-universe[data-hd-layer="institute"] .review p{color:var(--hd-muted)!important}
body.hd-universe[data-hd-layer="institute"] .flow{border-color:var(--hd-line)}body.hd-universe[data-hd-layer="institute"] .flow div{border-color:var(--hd-line);background:rgba(255,255,255,.015)}
body.hd-universe[data-hd-layer="institute"] .review a{border-color:var(--hd-blue);color:var(--hd-white)}
body.hd-universe[data-hd-layer="control"] .panel,body.hd-universe[data-hd-layer="control"] .changePanel,body.hd-universe[data-hd-layer="control"] .card{background:linear-gradient(145deg,rgba(11,18,26,.91),rgba(4,8,13,.94));border-color:var(--hd-line);border-radius:22px}
body.hd-universe[data-hd-layer="control"] .logo i{border-radius:9px;background:transparent;border:1px solid rgba(50,216,242,.32);color:var(--hd-white);box-shadow:inset 0 0 18px rgba(50,216,242,.08)}
body.hd-universe[data-hd-layer="control"] .nav button.active:before{background:var(--hd-blue);border-color:var(--hd-blue);box-shadow:0 0 14px var(--hd-blue)}
body.hd-universe[data-hd-layer="experience"]{background:var(--hd-black)!important}body.hd-universe[data-hd-layer="experience"] .scene,body.hd-universe[data-hd-layer="experience"] .screen{isolation:isolate}
body.hd-universe[data-hd-layer="fund"] .world{background:radial-gradient(circle at 50% 43%,rgba(50,216,242,.09),transparent 31%),linear-gradient(180deg,var(--hd-black),var(--hd-void),var(--hd-black))}

@keyframes hdPulse{0%,100%{opacity:.45;transform:scale(.72)}50%{opacity:1;transform:scale(1.15)}}
@media(max-width:760px){.hd-universe-context{top:10px;right:10px;padding:6px}.hd-context-copy{display:none}.hd-layer-tag{display:none}.hd-universe-dock{bottom:max(9px,env(safe-area-inset-bottom));width:calc(100% - 16px);overflow-x:auto;justify-content:flex-start;scrollbar-width:none}.hd-universe-dock::-webkit-scrollbar{display:none}.hd-universe-dock a{min-height:46px;padding:0 13px;font-size:9px}.hd-universe-field .hd-field-line{width:135vw;right:-78vw;top:-35vw}}
@media(prefers-reduced-motion:reduce){.hd-universe-context .hd-context-cell:after{animation:none}.hd-reveal{opacity:1;transform:none}.hd-focusable,.hd-universe-dock a,body.hd-universe{transition:none!important}}


/* Hairdemic swipe-between-layers cue */
.hd-swipe-cue{
  position:fixed;
  left:50%;
  bottom:78px;
  z-index:2147482500;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  min-height:30px;
  padding:7px 12px;
  border:1px solid rgba(49,214,255,.22);
  border-radius:999px;
  background:rgba(4,10,14,.78);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  color:rgba(226,248,255,.82);
  box-shadow:0 8px 28px rgba(0,0,0,.18),0 0 22px rgba(49,214,255,.05);
  font:850 7px/1.1 -apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.14em;
  white-space:nowrap;
  pointer-events:none;
  opacity:1;
  transition:opacity .45s ease,transform .45s ease;
  animation:hdSwipeCueBreath 2.2s ease-in-out 2;
}
.hd-swipe-arrow{color:#31d6ff;font-size:17px;line-height:10px;font-weight:500;opacity:.92}
.hd-swipe-cue-quiet{opacity:.5}
.hd-swipe-cue-hide{opacity:0;transform:translateX(-50%) translateY(8px)}
@keyframes hdSwipeCueBreath{
  50%{transform:translateX(-50%) translateY(-2px);box-shadow:0 8px 30px rgba(0,0,0,.2),0 0 28px rgba(49,214,255,.12)}
}
html.hd-swipe-forward body{animation:hdSwipePageForward .13s ease both}
html.hd-swipe-back body{animation:hdSwipePageBack .13s ease both}
@keyframes hdSwipePageForward{to{transform:translateX(-14px);opacity:.86}}
@keyframes hdSwipePageBack{to{transform:translateX(14px);opacity:.86}}

@media(max-width:900px){
  .hd-swipe-cue{bottom:calc(max(9px,env(safe-area-inset-bottom)) + 58px);max-width:calc(100vw - 28px)}
}
@media(prefers-reduced-motion:reduce){
  .hd-swipe-cue{animation:none}
  html.hd-swipe-forward body,html.hd-swipe-back body{animation:none}
}

@media(min-width:901px){
  .hd-swipe-cue{
    bottom:74px;
    font-size:7px;
    opacity:.62;
  }
}


/* vDigitalExhibit — one identity header + one quiet system-state indicator */
.hd-universe-context,
.hd-layer-tag{
  display:none !important;
}
.hd-dock-system-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding-left:10px;
  margin-left:3px;
  border-left:1px solid rgba(255,255,255,.10);
  white-space:nowrap;
  pointer-events:none;
}
.hd-dock-system-state i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#31d6ff;
  box-shadow:0 0 12px rgba(49,214,255,.8);
}
.hd-dock-system-state b,
.hd-dock-system-state em{
  font-size:6px;
  line-height:1;
  letter-spacing:.12em;
  font-style:normal;
  font-weight:900;
}
.hd-dock-system-state b{color:rgba(228,249,255,.74)}
.hd-dock-system-state em{color:#31d6ff}
@media(max-width:760px){
  .hd-dock-system-state b{display:none}
  .hd-dock-system-state{
    padding-left:7px;
    gap:5px;
  }
  .hd-dock-system-state em{font-size:5.5px}
}


/* HAIRDEMIC — UNIFIED DIGITAL-EXHIBIT ROOM IDENTITY */
.hd-dock-system-state{display:none!important}

/* Only the Hairdemic orientation/home room keeps full website navigation.
   Functional Experience progress/back controls are intentionally preserved. */
body.hd-contained-room.hd-layer-live > header.nav,
body.hd-contained-room.hd-layer-institute > header.nav,
body.hd-contained-room.hd-layer-fund > header{
  display:none!important;
}

.hd-room-identity{
  position:fixed;
  top:max(14px,env(safe-area-inset-top));
  left:18px;
  z-index:2147482600;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:7px 11px 7px 7px;
  border:1px solid rgba(128,150,162,.20);
  border-radius:15px;
  background:rgba(5,9,13,.82);
  color:#f5fbfd;
  box-shadow:0 8px 30px rgba(0,0,0,.15),0 0 20px rgba(49,214,255,.04);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
}
.hd-room-cell{
  width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 35% 30%,rgba(255,255,255,.65),transparent 15%),
    radial-gradient(circle,#31d6ff 0 45%,#1186ad 72%,#07475e 100%);
  color:#fff;font-size:8px;font-weight:950;letter-spacing:-.05em;
  box-shadow:0 0 18px rgba(49,214,255,.22);
}
.hd-room-copy{display:grid;gap:2px}
.hd-room-copy b{
  font-size:6px;line-height:1;letter-spacing:.17em;font-weight:900;color:#74848d
}
.hd-room-copy strong{
  font-size:9px;line-height:1;letter-spacing:.13em;font-weight:950;color:#f5fbfd
}
.hd-room-state{
  margin-left:4px;
  display:flex;align-items:center;gap:5px;
  padding-left:9px;
  border-left:1px solid rgba(255,255,255,.10);
  font-size:6px;line-height:1;letter-spacing:.13em;font-weight:950;color:#31d6ff
}
.hd-room-state i{
  width:5px;height:5px;border-radius:50%;background:#31d6ff;
  box-shadow:0 0 10px rgba(49,214,255,.85);
  animation:hdRoomPulse 2.2s ease-in-out infinite
}
@keyframes hdRoomPulse{50%{transform:scale(1.35);opacity:.7}}

.hd-my-hairdemic-bubble{
  position:fixed;
  top:max(14px,env(safe-area-inset-top));
  right:18px;
  z-index:2147482600;
  display:flex;align-items:center;gap:8px;
  min-height:40px;
  padding:7px 12px 7px 7px;
  border:1px solid rgba(49,214,255,.20);
  border-radius:999px;
  background:rgba(5,9,13,.82);
  color:#edfaff!important;
  text-decoration:none!important;
  box-shadow:0 8px 30px rgba(0,0,0,.14),0 0 18px rgba(49,214,255,.05);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
}
.hd-my-hairdemic-bubble span{
  width:25px;height:25px;border-radius:50%;
  display:grid;place-items:center;
  background:#31d6ff;color:#031017;
  font-size:7px;font-weight:950
}
.hd-my-hairdemic-bubble b{font-size:7px;letter-spacing:.12em;font-weight:950}
.hd-my-hairdemic-bubble:hover{
  border-color:rgba(49,214,255,.48);
  transform:translateY(-1px)
}

/* Room-specific spacing so the shared identity never covers content. */
body.hd-contained-room.hd-layer-live #live{padding-top:92px!important}
body.hd-contained-room.hd-layer-institute main{padding-top:66px}
body.hd-contained-room.hd-layer-fund main.world{padding-top:72px}

/* Experience keeps its own progress bar. Shared identity sits beneath it. */
body.hd-contained-room.hd-layer-experience .hd-room-identity,
body.hd-contained-room.hd-layer-experience .hd-my-hairdemic-bubble{
  top:calc(max(14px,env(safe-area-inset-top)) + 54px)
}

/* My Hairdemic uses shared Hairdemic room identity instead of staging language. */
body.hd-contained-room.hd-layer-personal .topbar{display:none!important}
body.hd-contained-room.hd-layer-personal .app{padding-top:62px}

@media(max-width:680px){
  .hd-room-identity{
    left:10px;top:max(9px,env(safe-area-inset-top));padding-right:8px
  }
  .hd-room-copy b{display:none}
  .hd-room-copy strong{font-size:7px}
  .hd-room-state{font-size:5.5px;padding-left:7px}
  .hd-my-hairdemic-bubble{
    right:10px;top:max(9px,env(safe-area-inset-top))
  }
  .hd-my-hairdemic-bubble b{display:none}
  body.hd-contained-room.hd-layer-experience .hd-room-identity,
  body.hd-contained-room.hd-layer-experience .hd-my-hairdemic-bubble{
    top:calc(max(9px,env(safe-area-inset-top)) + 50px)
  }
}
@media(prefers-reduced-motion:reduce){.hd-room-state i{animation:none}}


/* V5 MOBILE PRIORITY — homepage persistent dock */
@media(max-width:680px){
  .hd-universe-dock{
    left:10px!important;
    right:10px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    translate:none!important;
    width:auto!important;
    max-width:none!important;
    min-height:52px!important;
    padding:4px!important;
    gap:2px!important;
    overflow:hidden!important;
    justify-content:space-between!important;
    border-radius:22px!important;
  }
  .hd-universe-dock a{
    flex:1 1 auto!important;
    min-width:0!important;
    min-height:44px!important;
    padding:0 7px!important;
    font-size:8px!important;
  }
  .hd-universe-dock a[href*="my-hairdemic"]{display:none!important}
  .hd-swipe-cue{display:none!important}
}

/* V59 — remove universe rings on mobile. Keep field dots, dock, context, and all desktop visuals. */
@media (max-width:900px){
  .hd-universe-field .hd-field-line,
  .hd-universe-field .hd-field-line::before,
  .hd-universe-field .hd-field-line::after{
    display:none!important;
    content:none!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
  }
}
