/* OSB // artist dossier. Extends the existing facility without adding a room. */

@property --bio-orbit {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Transparent, tinted glass: the live facility remains visible through it. */
.artist-id, .bio-dossier {
  --bio-x: 50%; --bio-y: 30%;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(211, 183, 255, .3);
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(172, 128, 239, .14), rgba(16, 8, 34, .32) 48%, rgba(113, 75, 164, .12));
  -webkit-backdrop-filter: blur(18px) saturate(1.4) brightness(.65);
  backdrop-filter: blur(18px) saturate(1.4) brightness(.65);
  box-shadow: inset 0 1px 0 rgba(255, 235, 255, .22), inset 0 -1px 0 rgba(163, 119, 229, .15), 0 18px 64px rgba(0, 0, 0, .22);
}

/* A pair of travelling specular highlights follows the complete perimeter. */
.artist-id::before, .bio-dossier::before {
  content: ''; position: absolute; inset: -1px; width: auto; height: auto;
  padding: 1.5px; border-radius: inherit; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--bio-orbit),
    transparent 0deg, rgba(149, 108, 216, .2) 38deg, #d5b9ff 58deg, #fff3ff 64deg,
    rgba(184, 142, 247, .28) 79deg, transparent 105deg,
    transparent 185deg, rgba(143, 104, 216, .22) 210deg, #b9a2ff 232deg,
    #ecd7ff 238deg, transparent 275deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: bio-border-orbit 13s linear infinite paused;
}
.bio-dossier::before { animation-duration: 18s; animation-delay: -5s; }

/* Low-contrast caustics and a cursor-following reflection sit beneath the copy. */
.artist-id::after, .bio-dossier::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at var(--bio-x) var(--bio-y), rgba(225, 200, 255, .13), transparent 42%),
    linear-gradient(115deg, transparent 18%, rgba(220, 181, 255, .025) 35%, rgba(234, 211, 255, .13) 42%, transparent 50%, rgba(174, 131, 245, .07) 67%, transparent 80%);
  background-size: 100% 100%, 240% 240%;
  background-position: center, 100% 20%;
  animation: bio-liquid-flow 16s ease-in-out infinite alternate paused;
}
.bio-dossier::after { animation-delay: -8s; animation-duration: 22s; }
body[data-state="active"] .bio-in-view::before,
body[data-state="active"] .bio-in-view::after { animation-play-state: running; }
body.bio-tab-hidden .artist-id::before, body.bio-tab-hidden .artist-id::after,
body.bio-tab-hidden .bio-dossier::before, body.bio-tab-hidden .bio-dossier::after { animation-play-state: paused; }

@keyframes bio-border-orbit { to { --bio-orbit: 360deg; } }
@keyframes bio-liquid-flow {
  from { background-position: center, 100% 20%; }
  to { background-position: center, 0% 80%; }
}
.artist-id .ticks { display: none; }
.artist-id .idc-head { font-size: 12px; color: #b7a1d1; }
.artist-id .id-name { margin-bottom: 18px; }
.artist-disciplines {
  font-size: 12px; line-height: 1.9; letter-spacing: .1em; color: #bda8d9;
}
.artist-disciplines span { color: var(--vio-hot); }
.artist-intro {
  margin: 24px 0; max-width: 42ch;
  font-size: 16px; line-height: 1.85; letter-spacing: -.015em; color: #e1d5ef;
}
.artist-id .id-rows { font-size: 12px; }
.artist-id .id-rows dt { color: #ad96c9; }
.artist-id .id-rows dd { color: #e1d5ef; text-align: right; }

.bio-dossier {
  position: relative; max-width: 1180px; margin: clamp(80px, 12vh, 140px) auto 0;
  padding: clamp(24px, 4vw, 48px);
}
.artist-id p, .artist-id dd, .bio-dossier p, .bio-record h4, .bio-sound li {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.bio-label {
  font-family: var(--font-hud); font-size: 12px; line-height: 1.6;
  letter-spacing: .14em; color: #bba1d7;
}
.bio-label > span:not(.bio-node) { color: var(--vio-hot); }
.bio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
#bio-title {
  margin-top: 18px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3.3vw, 43px); line-height: 1.28;
  letter-spacing: .035em; color: var(--ink-hi);
}
#bio-title span {
  color: #c5a3ed;
  background: linear-gradient(100deg, #f0e3ff, #c5a3ed 55%, #9562c8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bio-route {
  display: flex; align-items: center; gap: 10px; padding-bottom: 9px;
  font-size: 12px; letter-spacing: .08em; color: #bba1d7; white-space: nowrap;
}
.bio-route i { width: 24px; height: 1px; background: linear-gradient(90deg, #755294, #cfafff); }
.bio-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px; padding: 28px 0 30px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.bio-metrics > div { display: flex; flex-direction: column; padding: 0 26px; border-left: 1px solid var(--line); }
.bio-metrics > div:first-child { padding-left: 0; border-left: 0; }
.bio-metrics > div:last-child { padding-right: 0; }
.bio-metrics dd {
  order: -1;
  font-family: var(--font-display); font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 500; line-height: 1.1; letter-spacing: -.035em; color: var(--ink-hi);
}
.bio-metrics dd span { margin-left: 8px; font-size: 14px; letter-spacing: .04em; color: #c39ae9; }
.bio-metrics .bio-value { font: inherit; font-variant-numeric: tabular-nums; }
.bio-metrics dt { margin-top: 14px; max-width: 25ch; font-size: 12px; line-height: 1.6; letter-spacing: .06em; color: #bba1d7; }
.bio-record {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px; margin: 44px 0 38px;
}
.bio-record li { min-width: 0; position: relative; }
.bio-record li::before {
  content: ''; position: absolute; inset: -12px; z-index: -1; border-radius: 10px;
  background: linear-gradient(140deg, rgba(201, 166, 255, .11), rgba(154, 106, 224, .025));
  border: 1px solid rgba(208, 171, 255, .2); opacity: 0;
  transition: opacity .5s ease;
}
.bio-record li { transition: translate .5s var(--ease-out); }
.bio-node { transition: box-shadow .5s, background .5s, border-color .5s; }
.bio-sound li { transition: color .4s, text-shadow .4s; }
.bio-route i { background-size: 220% 100%; animation: bio-signal-flow 3s linear infinite paused; }
body[data-state="active"] .bio-in-view .bio-route i { animation-play-state: running; }
body.bio-tab-hidden .bio-route i { animation-play-state: paused; }
@keyframes bio-signal-flow { to { background-position: -220% 0; } }
@media (hover: hover) and (pointer: fine) {
  .bio-record li:hover { translate: 0 -4px; }
  .bio-record li:hover::before { opacity: 1; }
  .bio-record li:hover .bio-node { border-color: #e3c9ff; background: rgba(167, 112, 255, .16); box-shadow: 0 0 20px rgba(181, 125, 255, .28); }
  .bio-sound li:hover { color: #fff1ff; text-shadow: 0 0 16px rgba(211, 174, 255, .65); }
}
.bio-record .bio-label { display: flex; align-items: center; gap: 12px; }
.bio-record .bio-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bio-node {
  display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px;
  border: 1px solid rgba(190, 160, 255, .35); color: #d7b5ff;
  font-size: 12px; letter-spacing: 0;
}
.bio-record h4 {
  margin: 20px 0 12px; font-family: var(--font-display); font-weight: 500;
  font-size: 16px; line-height: 1.6; color: var(--ink-hi);
}
.bio-record li > p:last-child { font-size: 16px; line-height: 1.85; letter-spacing: -.025em; color: #cbbbdc; }
.bio-bill, .bio-sound { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.bio-bill > p:last-child { font-size: 16px; line-height: 1.85; color: #e1d5ef; }
.bio-bill > p:last-child span { margin: 0 5px; color: #8f60b7; }
.bio-sound ul { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.bio-sound li { color: #d1b7e9; font-size: 14px; line-height: 1.6; }
.bio-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px 24px; margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line-hot);
}
.bio-foot p { font-size: 12px; line-height: 1.8; letter-spacing: .045em; color: #bba1d7; }
.bio-foot p > span { color: var(--vio-hot); }
.bio-foot a {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  font-size: 12px; letter-spacing: .09em; color: #ead8ff;
  text-decoration: underline; text-decoration-color: #77528f; text-underline-offset: 6px;
}
.bio-foot a:hover { color: #fff; text-decoration-color: #d0a4ff; }

@media (min-width: 1021px) {
  .room-operator .operator-grid { align-items: center; }
}
@media (max-width: 1020px) and (min-width: 761px) {
  .room-operator .operator-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
  .artist-id { padding: 26px; }
  .bio-route { display: none; }
}
@media (max-width: 760px) {
  .bio-dossier { margin-top: 74px; padding: 24px 20px; }
  .bio-heading { display: block; }
  .bio-route { margin-top: 22px; padding-bottom: 0; }
  #bio-title { font-size: clamp(20px, 5.9vw, 38px); letter-spacing: .015em; }
  .bio-metrics { gap: 20px 0; padding: 25px 0; }
  .bio-metrics > div { padding: 0 12px; }
  .bio-metrics dd { font-size: 32px; }
  .bio-metrics dd span { display: block; margin: 5px 0 0; font-size: 12px; }
  .bio-metrics dt { font-size: 12px; letter-spacing: 0; overflow-wrap: anywhere; }
  .bio-record { grid-template-columns: 1fr; gap: 30px; margin: 30px 0; }
  .bio-record h4 { margin-top: 14px; }
  .bio-bill, .bio-sound { grid-template-columns: 1fr; gap: 12px; }
  .bio-foot { align-items: flex-start; }
  .artist-id .id-rows > div { gap: 12px; }
  .artist-id .id-rows dd { letter-spacing: .04em; }
}
@media (max-width: 359px) {
  .bio-metrics { grid-template-columns: 1fr; gap: 0; }
  .bio-metrics > div, .bio-metrics > div:first-child {
    display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center;
    padding: 16px 0; border-left: 0;
  }
  .bio-metrics > div + div { border-top: 1px solid var(--line); }
  .bio-metrics dt { margin: 0; }
}

/* Keep the translucent material on lower tiers without expensive backdrop work. */
body.no-blur .artist-id, body.no-blur .bio-dossier {
  background: linear-gradient(140deg, rgba(86, 49, 128, .22), rgba(12, 7, 24, .56));
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .artist-id, .bio-dossier { background-color: rgba(12, 7, 24, .55); }
}
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .artist-id::before, .bio-dossier::before { display: none; }
}
body.motion-off .artist-id::before, body.motion-off .artist-id::after,
body.motion-off .bio-dossier::before, body.motion-off .bio-dossier::after,
body.motion-off .bio-route i { animation: none; }
body.motion-off .bio-record li, body.motion-off .bio-record li::before,
body.motion-off .bio-node, body.motion-off .bio-sound li { transition: none; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .artist-id::before, .artist-id::after, .bio-dossier::before, .bio-dossier::after,
  .bio-route i { animation: none !important; }
  .bio-record li { translate: none !important; }
}
