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

:root {
  --bg: #0c0c0f;
  --pink: #ec658e;
  --cyan: #7ce2ee;
  --white: #e8e4de;
  --dim: rgba(232,228,222,0.28);
  --mono: 'Space Mono', monospace;
}

html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); cursor: none; }

/* ── CUSTOM CURSOR ── */
#c {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s;
  mix-blend-mode: screen;
}
#c.h { width: 24px; height: 24px; background: var(--cyan); }

/* ── SCAN LINE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
}

/* ── CORNER ORNAMENTS ── */
.corner {
  position: fixed; z-index: 800; pointer-events: none;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  color: var(--pink); line-height: 1.7;
}
.corner.tl { top: 24px; left: 24px; }
.corner.tr { top: 24px; right: 24px; text-align: right; }
.corner.bl { bottom: 24px; left: 24px; }
.corner.br { bottom: 24px; right: 24px; text-align: right; }

.corner-bracket {
  position: fixed; z-index: 800; pointer-events: none;
  width: 18px; height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
}
.corner-bracket.tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.corner-bracket.tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.corner-bracket.bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.corner-bracket.br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

/* ── MAIN CANVAS ── */
#gl { position: fixed; inset: 0; z-index: 1; display: block;}

/* ── OVERLAY UI ── */
#ui { position: fixed; inset: 0; z-index: 500; pointer-events: none; }

/* ── NAME — big centered type ── */
#name-wrap {
  position: absolute;
  bottom: 52px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: auto;
}
#name {
  font-family: var(--mono);
  font-size: clamp(16px, 1.1vw, 20px);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .9;
  white-space: nowrap;
}
#role {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 6px;
  opacity: .7;
}

/* ── LEFT SIDE NAV ── */
#side-nav {
  position: absolute;
  left: 33px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  pointer-events: auto;
}
.nav-item {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  cursor: none;
  transition: color .2s;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-item::before {
  content: '';
  display: block;
  width: 1px;
  height: 0;
  background: var(--pink);
  transition: height .3s;
}
.nav-item:hover { color: var(--pink); }
.nav-item:hover::before { height: 20px; }

/* ── PANELS — revealed on nav click ── */
.panel {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,12,15,0.93);
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
  z-index: 600;
}
.panel.open { opacity: 1; pointer-events: auto; }

.panel-inner {
  max-width: 560px; width: 90%;
  font-family: var(--mono);
  color: var(--white);
}
.panel-label {
  font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.panel-label::before { content: ''; flex-shrink: 0; width: 24px; height: 1px; background: var(--cyan); }
.panel-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.panel-title em { font-style: italic; font-weight: 400; color: var(--pink); }
.panel-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(232,228,222,.5);
  margin-bottom: 32px;
}
.panel-close {
  font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: none;
  border: none; background: none;
  padding: 0;
  transition: color .2s;
  font-family: var(--mono);
}
.panel-close:hover { color: var(--pink); }

/* work list in panel */
.work-entries { margin-bottom: 32px; }
.work-entry {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232,228,222,.07);
  font-size: 11px;
}
.work-entry-name { font-size: 13px; color: var(--white); letter-spacing: .04em; }
.work-entry-meta { font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }

/* contact */
.contact-email {
  display: block;
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--pink);
  padding-bottom: 4px;
  margin-bottom: 32px;
  cursor: none;
  transition: color .2s;
  width: fit-content;
}
.contact-email:hover { color: var(--pink); }

#status {
  position: absolute;
  top: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── TICK counter top right ── */
#ticker {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; color: var(--pink);
  position: absolute; top: 24px; right: 25px;
  text-align: right;
}

#mute-div {
  position: fixed;
  z-index: 9999;
  color: white;
  display: flex;
  flex-direction: column;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  justify-content: center;
  align-items: center;
  font-family: var(--mono);
  color: var(--pink);
}

@keyframes neon-wave {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

#mute-div .c1 { animation: neon-wave 1.6s ease-in-out infinite; animation-delay: 0ms; }
#mute-div .c2 { animation: neon-wave 1.6s ease-in-out infinite; animation-delay: 150ms; }
#mute-div .c3 { animation: neon-wave 1.6s ease-in-out infinite; animation-delay: 300ms; }
#mute-div .c4 { animation: neon-wave 1.6s ease-in-out infinite; animation-delay: 450ms; }
#mute-div .c5 { animation: neon-wave 1.6s ease-in-out infinite; animation-delay: 600ms; }
#mute-div .c6 { animation: neon-wave 1.6s ease-in-out infinite; animation-delay: 750ms; }

#mute-div svg {
  color: var(--cyan)
}

#mute-btn {
  position: fixed;
  z-index: 9999;
  background-color: transparent;
  color: var(--cyan);
  font-family: var(--mono);
  bottom: 26px;
  right: 25px;
  border: 2px solid var(--pink);
  border-left: 30px solid var(--pink);
  border-right: 2px solid var(--pink);
  border-top: 2px solid var(--pink);
  padding: 0 5px 0 5px;
  cursor: none;
}
@media screen and (max-width: 500px) {
  .corner.bl {
    display: none;
  }

  #side-nav {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 32px;
    pointer-events: auto;
  }

  #mute-div {
    display: none;
  }

  #mute-btn {
    top: 25px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    border: none;
  }

  #status {
    display: none;
  }

  #c {
    display: none;
    cursor: none;
  }

  #name-wrap {
    width: 98vw;
    bottom: 64px;
    padding: 0 6px;
  }

  #name {
    font-size: clamp(13px, 4.6vw, 18px);
    letter-spacing: .06em;
    line-height: 1.3;
    white-space: normal;
  }

  #role {
    font-size: clamp(10px, 3vw, 13px);
    letter-spacing: .08em;
    line-height: 1.4;
    margin-top: 4px;
    white-space: normal;
  }
}