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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080a12;
}

/* ── Scanlines (CRT monitor) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 9997;
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

#container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

.side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#left  { background: radial-gradient(ellipse at center, rgba(0,200,255,0.08) 0%, transparent 68%), #080a12; }
#right { background: radial-gradient(ellipse at center, rgba(255,45,107,0.08) 0%, transparent 68%), #080a12; }

#container:has(#left:hover)  #left  { flex: 1.35; }
#container:has(#left:hover)  #right { flex: 0.65; }
#container:has(#right:hover) #right { flex: 1.35; }
#container:has(#right:hover) #left  { flex: 0.65; }

#left:hover  { background: radial-gradient(ellipse at center, rgba(0,200,255,0.14) 0%, transparent 68%), #090b14; }
#right:hover { background: radial-gradient(ellipse at center, rgba(255,45,107,0.14) 0%, transparent 68%), #0e0812; }

.side-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 60px;
  gap: 20px;
  transition: transform 0.6s ease;
}

.label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

#left .label  { color: rgba(0, 200, 255, 0.55); }
#right .label { color: rgba(255, 45, 107, 0.55); }

.side-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 3px;
  color: rgba(215, 230, 255, 0.92);
  line-height: 1;
}

#left .side-title {
  text-shadow:
    -2px 0 rgba(255, 45, 107, 0.3),
     2px 0 rgba(0, 200, 255, 0.5),
     0   0 40px rgba(0, 200, 255, 0.18);
}

#right .side-title {
  text-shadow:
    -2px 0 rgba(0, 200, 255, 0.3),
     2px 0 rgba(255, 45, 107, 0.5),
     0   0 40px rgba(255, 45, 107, 0.18);
}

.side-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 2;
  color: rgba(140, 170, 230, 0.62);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.enter {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

#left .enter  { color: #00c8ff; text-shadow: 0 0 12px rgba(0, 200, 255, 0.7); }
#right .enter { color: #ff2d6b; text-shadow: 0 0 12px rgba(255, 45, 107, 0.7); }

.side:hover .side-desc,
.side:hover .enter {
  opacity: 1;
  transform: translateY(0);
}

.divider {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(100,200,255,0.45) 18%, rgba(100,200,255,0.45) 82%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.18);
}

#container:has(.side:hover) .divider {
  opacity: 0.35;
}

@keyframes line-scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 25%;
  background: linear-gradient(to bottom, transparent, rgba(200, 240, 255, 0.95), transparent);
  animation: line-scan 3s ease-in-out infinite;
}

.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #00c8ff;
  transform: translate(-50%, -50%) rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px #00c8ff, 0 0 16px rgba(0,200,255,0.4);
}

/* ── Side color flood ── */
#left::after, #right::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#left::after {
  background: linear-gradient(to right, rgba(0,200,255,0.07) 0%, transparent 100%);
  clip-path: inset(0 100% 0 0);
}

#right::after {
  background: linear-gradient(to left, rgba(255,45,107,0.07) 0%, transparent 100%);
  clip-path: inset(0 0 0 100%);
}

#left:hover::after,
#container.touch-left #left::after   { clip-path: inset(0 0% 0 0); }

#right:hover::after,
#container.touch-right #right::after { clip-path: inset(0 0 0 0%); }

/* ── Ghost numerals ── */
#left::before, #right::before {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 38vw;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease;
}

#left::before  { content: 'I';  color: #00c8ff; }
#right::before { content: 'II'; color: #ff2d6b; }

#left:hover::before, #right:hover::before { opacity: 0.07; }

/* ── Profile node ── */
@keyframes pn-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pn-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px  rgba(0, 200, 255, 0.06),
      0 0 0 14px rgba(0, 200, 255, 0.03),
      0 0 16px   rgba(0, 200, 255, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 6px  rgba(0, 200, 255, 0.10),
      0 0 0 14px rgba(0, 200, 255, 0.05),
      0 0 28px   rgba(0, 200, 255, 0.5);
  }
}

.profile-node {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.pn-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 255, 0.4);
  background: #0d1020;
  transition: border-color 0.4s, transform 0.4s;
  animation: pn-in 0.9s cubic-bezier(0.34,1.56,0.64,1) 0.3s both,
             pn-pulse 3.5s 1.5s infinite;
}

.profile-node:hover .pn-wrap {
  border-color: rgba(0, 200, 255, 0.85);
  transform: scale(1.07);
  animation: none;
  box-shadow:
    0 0 0 6px  rgba(0, 200, 255, 0.12),
    0 0 0 14px rgba(0, 200, 255, 0.05),
    0 0 30px   rgba(0, 200, 255, 0.55);
}

.pn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: contrast(1.08) saturate(1.15);
  transition: opacity 0.4s, filter 0.4s;
}

.profile-node:hover .pn-img { opacity: 0.95; }

/* ── Profile backdrop ── */
.pn-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 16, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.pn-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Profile panel ── */
.pn-panel {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.08);
  transform-origin: center center;
  width: 440px;
  background: rgba(8, 12, 28, 0.97);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(0,200,255,0.08), 0 28px 80px rgba(0,0,0,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    top 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.25s ease;
}

.pn-panel.open {
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.pnp-c {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.pnp-c-tl {
  top: 14px; left: 14px;
  background:
    linear-gradient(to right,  rgba(0,200,255,0.5), transparent) top    left  / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(0,200,255,0.5), transparent) top    left  / 1px 100% no-repeat;
}
.pnp-c-tr {
  top: 14px; right: 14px;
  background:
    linear-gradient(to left,   rgba(0,200,255,0.5), transparent) top    right / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(0,200,255,0.5), transparent) top    right / 1px 100% no-repeat;
}
.pnp-c-bl {
  bottom: 14px; left: 14px;
  background:
    linear-gradient(to right, rgba(0,200,255,0.5), transparent) bottom left  / 100% 1px no-repeat,
    linear-gradient(to top,   rgba(0,200,255,0.5), transparent) bottom left  / 1px 100% no-repeat;
}
.pnp-c-br {
  bottom: 14px; right: 14px;
  background:
    linear-gradient(to left,  rgba(0,200,255,0.5), transparent) bottom right / 100% 1px no-repeat,
    linear-gradient(to top,   rgba(0,200,255,0.5), transparent) bottom right / 1px 100% no-repeat;
}

.pnp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.pnp-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 26px;
  letter-spacing: 1px;
  color: rgba(210, 230, 255, 0.95);
  line-height: 1.1;
}

.pnp-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(80, 140, 220, 0.55);
  margin-top: 6px;
}

.pnp-photo-sm {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 255, 0.3);
  flex-shrink: 0;
}
.pnp-photo-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.pnp-sep {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,200,255,0.3) 25%, rgba(0,200,255,0.3) 75%, transparent);
  margin: 16px 0;
}

.pnp-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.pnp-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pnp-col:first-child {
  border-right: 1px solid rgba(0, 200, 255, 0.1);
  padding-right: 20px;
}

.pnp-col:last-child {
  padding-left: 20px;
}

.pnp-col-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(0, 200, 255, 0.5);
  margin-bottom: 4px;
}

.pnp-soc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(140, 170, 230, 0.7);
  text-decoration: none;
  transition: color 0.25s;
}

.pnp-soc:hover { color: #00c8ff; }

.pnp-status-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.pnp-s-key {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 200, 255, 0.45);
}

.pnp-s-val {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  color: rgba(160, 190, 240, 0.75);
  line-height: 1.3;
}

.pnp-music-link { cursor: pointer; }
.pnp-music-link .pnp-s-val { transition: color 0.3s ease; }
.pnp-music-link:hover .pnp-s-val { color: #00c8ff; }
.pnp-music-link:hover .pnp-s-key { color: #00c8ff; transition: color 0.3s ease; }

/* ── Frame corners ── */
.frame-corner {
  position: fixed;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 15;
}

.frame-corner::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00c8ff;
  transform: rotate(45deg);
  box-shadow: 0 0 6px #00c8ff;
}

.frame-corner::after {
  content: '';
  position: absolute;
  inset: 0;
}

.fc-tl {
  top: 22px; left: 22px;
  background:
    linear-gradient(to right,  #00c8ff, transparent) top    left  / 100% 1px no-repeat,
    linear-gradient(to bottom, #00c8ff, transparent) top    left  / 1px 100% no-repeat;
}
.fc-tl::before { top: -2px; left: -2px; }

.fc-tr {
  top: 22px; right: 22px;
  background:
    linear-gradient(to left,   #00c8ff, transparent) top    right / 100% 1px no-repeat,
    linear-gradient(to bottom, #00c8ff, transparent) top    right / 1px 100% no-repeat;
}
.fc-tr::before { top: -2px; right: -2px; left: auto; }

.fc-bl {
  bottom: 22px; left: 22px;
  background:
    linear-gradient(to right, #00c8ff, transparent) bottom left  / 100% 1px no-repeat,
    linear-gradient(to top,   #00c8ff, transparent) bottom left  / 1px 100% no-repeat;
}
.fc-bl::before { bottom: -2px; left: -2px; top: auto; }

.fc-br {
  bottom: 22px; right: 22px;
  background:
    linear-gradient(to left,  #00c8ff, transparent) bottom right / 100% 1px no-repeat,
    linear-gradient(to top,   #00c8ff, transparent) bottom right / 1px 100% no-repeat;
}
.fc-br::before { bottom: -2px; right: -2px; top: auto; left: auto; }

/* ── Corner labels ── */
.corner {
  position: fixed;
  bottom: 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(0, 200, 255, 0.32);
  z-index: 15;
  pointer-events: none;
}
.corner-bl { left: 52px; }
.corner-br { right: 52px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .side-inner { padding: 0 18px; }
  .side-title  { font-size: clamp(20px, 5vw, 30px); }
  .label       { font-size: 10px; }
  .enter       { font-size: 10px; }

  #container.touch-left  #left          { flex: 1.45; }
  #container.touch-left  #right         { flex: 0.55; }
  #container.touch-left  .divider       { opacity: 0.4; }
  #container.touch-left  #left .side-desc  { opacity: 1; transform: translateY(0); }
  #container.touch-left  #left .enter      { opacity: 1; }

  #container.touch-right #right         { flex: 1.45; }
  #container.touch-right #left          { flex: 0.55; }
  #container.touch-right .divider       { opacity: 0.4; }
  #container.touch-right #right .side-desc { opacity: 1; transform: translateY(0); }
  #container.touch-right #right .enter     { opacity: 1; }

  .profile-node { top: 14px; }
  .pn-wrap { width: 52px; height: 52px; }

  .pn-panel {
    top: 40px;
    width: calc(100vw - 48px);
    max-width: 300px;
  }

  .pnp-body { grid-template-columns: 1fr; }
  .pnp-col:first-child {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(0,200,255,0.1);
    padding-bottom: 14px;
  }
  .pnp-col:last-child { padding-left: 0; }
}
