/* ═══════════════════════════════════════════════════
   THE CORE — Portfolio CSS
   Palette: #000 base · #50FF44 Toxic Emerald · Titanium
═══════════════════════════════════════════════════ */

@font-face {
  font-family: 'Memoare';
  src: url('memoare-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OPTIAggie';
  src: url('OPTIAggie-Solid.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Dotrice';
  src: url('Dotrice-Regular.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'Dotrice';
  src: url('Dotrice-Bold.otf') format('opentype');
  font-weight: 700;
}
@font-face {
  font-family: 'Dotrice';
  src: url('Dotrice-Condensed.otf') format('opentype');
  font-weight: 400;
  font-stretch: condensed;
}
@font-face {
  font-family: 'Dotrice';
  src: url('Dotrice-Bold-Condensed.otf') format('opentype');
  font-weight: 700;
  font-stretch: condensed;
}

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

:root {
  --green:      #50FF44;
  --green-dim:  #1a3d18;
  --green-glow: rgba(80, 255, 68, 0.25);
  --metal:      #a8ffd4;
  --metal-dark: #2a5040;
  --black:      #000000;
  --font-mono:  'Share Tech Mono', monospace;
  --font-hud:   'OPTIAggie', 'Exo 2', sans-serif;
  --font-sub:   'Dotrice', 'Share Tech Mono', monospace;
}

html, body {
  background: #000;
  color: var(--green);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

/* ═══ BOOT SCREEN ═══════════════════════════════════ */

#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-content {
  width: min(620px, 88vw);
}

.boot-logo {
  font-family: var(--font-hud);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--green);
  text-shadow: 0 0 20px var(--green), 0 0 50px var(--green);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
}

.boot-logo-glyph {
  font-size: 1.4em;
  animation: boot-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes boot-pulse {
  from { text-shadow: 0 0 10px var(--green); transform: scale(0.9); }
  to   { text-shadow: 0 0 40px var(--green), 0 0 80px var(--green); transform: scale(1.1); }
}

.kernel-log {
  height: 190px;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--green);
  opacity: 0.85;
  margin-bottom: 1.4rem;
}

.kernel-line {
  opacity: 0;
  transform: translateX(-8px);
  animation: line-in 0.12s ease forwards;
}

@keyframes line-in {
  to { opacity: 1; transform: none; }
}

.boot-bar-track {
  width: 100%;
  height: 2px;
  background: var(--green-dim);
  margin-bottom: 0.7rem;
}

.boot-bar {
  height: 100%;
  width: 0%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green), 0 0 24px var(--green);
  transition: width 0.08s linear;
}

.boot-status {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--metal);
}

/* ═══ LAYOUT ════════════════════════════════════════ */

/* Creates scroll height — everything visual is fixed */
#scroll-container {
  height: 700vh;
  pointer-events: none;
}

#canvas-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#webgl-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* CRT scanlines overlay */
#scanlines {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
}

/* ═══ UI SECTIONS ════════════════════════════════════ */

.ui-section {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  /* transitions handled via JS scroll progress */
}

/* ═══ HUD CORNERS ════════════════════════════════════ */

.hud-corner {
  position: absolute;
  padding: 14px 18px;
}

.top-left  { top: 18px; left: 18px; }
.top-right { top: 18px; right: 18px; text-align: right; }

.hud-label {
  font-family: var(--font-sub);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--metal);
  text-shadow: 0 0 10px rgba(168, 255, 212, 0.5);
  margin-bottom: 4px;
}

.hud-value {
  font-size: 0.88rem;
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}

.status-online {
  animation: status-blink 2.2s ease-in-out infinite;
}

@keyframes status-blink {
  50% { opacity: 0.55; }
}

/* ═══ HERO SECTION ══════════════════════════════════ */

.hero-title {
  position: absolute;
  bottom: 14vh;
  left: 40px;
}

.hero-eyebrow {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.42em;
  color: var(--metal);
  text-shadow: 0 0 12px rgba(168, 255, 212, 0.55);
  margin-bottom: 10px;
}

.hero-name {
  font-family: 'Memoare', var(--font-hud);
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: normal;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--green);
  text-shadow: 0 0 30px var(--green), 0 0 60px rgba(80,255,68,0.4);
  margin-bottom: 14px;
}

.hero-role {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--metal);
  text-shadow: 0 0 12px rgba(168, 255, 212, 0.55);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: var(--green);
  text-shadow: 0 0 14px var(--green), 0 0 28px rgba(80,255,68,0.35);
  white-space: nowrap;
}

.scroll-arrow {
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--green);
  text-shadow: 0 0 14px var(--green);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── Xbox-style menu bars ── */
.data-crystals {
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 295px;
}

.crystal {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.crystal:hover { transform: translateX(-8px); }

/* Circular bubble selector — left element */
.crystal-bubble {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--green-dim);
  background: radial-gradient(circle at 36% 36%, rgba(80,255,68,0.55), rgba(5,18,5,0.95) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  box-shadow: 0 0 12px rgba(80,255,68,0.2), inset 0 0 10px rgba(80,255,68,0.12);
  z-index: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crystal:hover .crystal-bubble {
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(80,255,68,0.5), inset 0 0 14px rgba(80,255,68,0.22);
}

/* Horizontal bar — right element, arrow-tip on right like Xbox */
.crystal-bar {
  flex: 1;
  margin-left: -1px;
  padding: 9px 24px 9px 16px;
  border: 1px solid var(--green-dim);
  background: linear-gradient(90deg, rgba(0,22,0,0.92) 0%, rgba(80,255,68,0.13) 100%);
  backdrop-filter: blur(6px);
  /* Chevron point on right — the signature Xbox menu tip */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.crystal:hover .crystal-bar {
  background: linear-gradient(90deg, rgba(0,32,0,0.95) 0%, rgba(80,255,68,0.22) 100%);
  box-shadow: 0 0 22px rgba(80,255,68,0.22);
  border-color: rgba(80,255,68,0.55);
}

.crystal-label {
  font-family: var(--font-hud);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green);
}

.crystal-type {
  font-family: var(--font-sub);
  font-size: 0.57rem;
  letter-spacing: 0.22em;
  color: var(--metal);
  margin-top: 3px;
}

/* ═══ WORK SECTION ══════════════════════════════════ */

.work-header {
  position: absolute;
  top: 28px;
  left: 40px;
}

.work-panels {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 400px;
}

.work-item {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.work-item:hover { transform: translateX(-6px); }

.work-bubble {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green-dim);
  background: radial-gradient(circle at 36% 36%, rgba(80,255,68,0.55), rgba(5,18,5,0.95) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  box-shadow: 0 0 12px rgba(80,255,68,0.2), inset 0 0 10px rgba(80,255,68,0.12);
  margin-top: 9px;
  z-index: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover .work-bubble {
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(80,255,68,0.5), inset 0 0 14px rgba(80,255,68,0.22);
}

.work-card {
  flex: 1;
  margin-left: -1px;
  border: 1px solid var(--green-dim);
  background: linear-gradient(135deg, rgba(0,18,0,0.94), rgba(0,30,0,0.88));
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-height: 62px;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.work-item:hover .work-card {
  max-height: 320px;
  border-color: rgba(80,255,68,0.55);
  box-shadow: 0 0 28px rgba(80,255,68,0.15);
}

.work-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 13px 16px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.work-item:hover .work-card-header {
  border-color: var(--green-dim);
}

.work-title {
  font-family: var(--font-hud);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green);
}

.work-type {
  font-family: var(--font-sub);
  font-size: 0.57rem;
  letter-spacing: 0.22em;
  color: var(--metal);
  margin-top: 3px;
}

.work-index {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(80,255,68,0.14);
  line-height: 1;
  transition: color 0.2s ease;
}

.work-item:hover .work-index { color: rgba(80,255,68,0.38); }

/* Thumbnail — use as <div style="background-image:url(...)"> */
.work-thumb {
  width: 100%;
  height: 158px;
  background: linear-gradient(135deg, #040c04 0%, #091809 50%, #040c04 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--green-dim);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.07s,
              opacity 0.3s ease 0.18s;
}

.work-item:hover .work-thumb {
  opacity: 1;
  max-height: 158px;
}

.work-actions {
  display: flex;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease 0.28s, transform 0.22s ease 0.28s;
}

.work-item:hover .work-actions {
  opacity: 1;
  transform: translateY(0);
}

.work-btn {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--green-dim);
  border-right: 1px solid var(--green-dim);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.60rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}

.work-btn:last-child { border-right: none; }

.work-btn:hover {
  background: rgba(80,255,68,0.12);
  color: #fff;
}

/* ═══ BIO SECTION ════════════════════════════════════ */

.bio-panel {
  position: absolute;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  width: min(460px, 42vw);
  padding: 28px 28px 28px 22px;
  border-left: 2px solid var(--green);
  background: rgba(0, 5, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    0 100%
  );
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6),
              inset 2px 0 0 var(--green),
              inset 0 1px 0 rgba(80, 255, 68, 0.12);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.panel-tag {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--metal);
  border: 1px solid var(--green-dim);
  padding: 3px 8px;
  white-space: nowrap;
}

.panel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--green-dim), transparent);
}

.bio-name {
  font-family: 'Memoare', var(--font-hud);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: normal;
  letter-spacing: 0.08em;
  color: var(--green);
  text-shadow: 0 0 22px var(--green);
  margin-bottom: 14px;
}

.bio-text {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--metal);
  margin-bottom: 26px;
}

.specs-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.spec-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.spec-app {
  font-family: var(--font-hud);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--green);
  text-shadow: 0 0 10px rgba(80,255,68,0.5);
}

.spec-desc {
  font-family: var(--font-sub);
  font-size: 0.54rem;
  letter-spacing: 0.28em;
  color: var(--metal);
}

.spec-bar {
  height: 22px;
  background: rgba(80, 255, 68, 0.04);
  border: 1px solid var(--green-dim);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  overflow: hidden;
}

.spec-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(to right, rgba(80,255,68,0.35), rgba(80,255,68,0.1));
  border-right: 2px solid var(--green);
  box-shadow: inset -8px 0 14px rgba(80,255,68,0.25);
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* Bio stats top-right */
.bio-stats {
  display: flex;
  gap: 24px;
  background: rgba(0, 5, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
  padding: 14px 18px;
  box-shadow: inset -2px 0 0 var(--green), inset 0 -1px 0 rgba(80,255,68,0.25);
}

.stat-block { text-align: right; }

.stat-value {
  font-family: var(--font-hud);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
  text-shadow: 0 0 14px var(--green);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sub);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--metal);
  margin-top: 4px;
}

/* ═══ CONTACT / TERMINAL ═════════════════════════════ */

.terminal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 84vw);
  border: 1px solid var(--green);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  /* chamfered corners, no border-radius */
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--green-dim);
  background: rgba(80, 255, 68, 0.04);
}

.terminal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--green);
}

.terminal-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--green);
  margin-left: 6px;
}

.terminal-body { padding: 22px; }

.terminal-line {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.t-prompt {
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

.t-text { font-family: var(--font-sub); color: var(--metal); }

.t-blink { animation: t-blink 1s step-end infinite; }

@keyframes t-blink {
  50% { opacity: 0; }
}

.terminal-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.t-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--green-dim);
  color: var(--green);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.t-link:hover {
  background: rgba(80, 255, 68, 0.1);
  box-shadow: 0 0 18px rgba(80, 255, 68, 0.25);
  color: #fff;
}

/* Full-width email link */
.t-link-full {
  grid-column: 1 / -1;
  padding: 14px 18px;
  align-items: center;
}

.t-link-content { display: flex; flex-direction: column; gap: 3px; }

.t-link-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.t-link-sub {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--metal);
  transition: color 0.2s ease;
}

.t-link-full:hover .t-link-sub { color: rgba(255,255,255,0.65); }

.t-link-icon {
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Terminal enhancements */
.t-live {
  margin-left: auto;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--green);
}

.t-hl {
  color: var(--green);
  text-shadow: 0 0 8px rgba(80,255,68,0.5);
}

.t-divider {
  height: 1px;
  background: linear-gradient(to right, var(--green-dim), transparent);
  margin: 14px 0 4px;
}

/* Sequential line-in animation for contact terminal */
.tl-anim {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.32s ease var(--d, 0s),
              transform 0.32s ease var(--d, 0s);
}

#contact-terminal.active .tl-anim {
  opacity: 1;
  transform: none;
}

/* ═══ SCROLLBAR ══════════════════════════════════════ */

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--green-dim); }

/* ═══ WORK THUMB VIDEO ═══════════════════════════════ */

.work-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══ VIDEO LIGHTBOX ═════════════════════════════════ */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.video-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-panel {
  position: relative;
  width: min(940px, 90vw);
  border: 1px solid var(--green);
  background: #000;
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
}

.lightbox-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--green-dim);
  background: rgba(80,255,68,0.04);
}

.lightbox-label {
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  color: var(--metal);
  white-space: nowrap;
}

.lightbox-title {
  flex: 1;
  font-family: var(--font-hud);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}

.lightbox-close {
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--metal);
  font-family: var(--font-mono);
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lightbox-close:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 10px rgba(80,255,68,0.2);
}

.lightbox-video {
  width: 100%;
  display: block;
  max-height: 75vh;
  background: #000;
}

/* ═══ WORK DETAIL OVERLAY ════════════════════════════ */

.work-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 440px;
  bottom: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.work-overlay-inner {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.35s ease,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-overlay.open .work-overlay-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Orb ─────────────────────────────────────────── */

.wo-orb-wrap {
  position: relative;
  flex-shrink: 0;
}

.wo-orb {
  width: clamp(210px, 21vw, 280px);
  height: clamp(210px, 21vw, 280px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(80, 255, 68, 0.72);
  box-shadow:
    0 0 30px rgba(80, 255, 68, 0.55),
    0 0 70px rgba(80, 255, 68, 0.22),
    0 0 130px rgba(80, 255, 68, 0.10),
    inset 0 0 28px rgba(80, 255, 68, 0.14);
}

/* Scan lines — CRT texture on orb surface */
.wo-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 8, 0, 0.18) 3px,
    rgba(0, 8, 0, 0.18) 4px
  );
  pointer-events: none;
}

/* Spherical depth vignette — darker edges give the 3D sphere illusion */
.wo-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 32%,
    rgba(80, 255, 68, 0.07) 0%,
    transparent 35%,
    rgba(0, 10, 0, 0.48) 68%,
    rgba(0, 18, 0, 0.84) 100%
  );
  pointer-events: none;
}

.wo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.wo-no-preview {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(80, 255, 68, 0.18);
  z-index: 1;
}

/* Inner spinning ring — tight orbit */
.wo-orb-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(80, 255, 68, 0.80);
  border-right-color: rgba(80, 255, 68, 0.22);
  border-bottom-color: transparent;
  border-left-color: rgba(80, 255, 68, 0.08);
  animation: wo-ring-spin 4s linear infinite;
  pointer-events: none;
}

/* Outer counter-rotating ring — wider orbit */
.wo-orb-ring-outer {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(80, 255, 68, 0.50);
  border-left-color: rgba(80, 255, 68, 0.14);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: wo-ring-spin 7s linear infinite reverse;
  pointer-events: none;
}

@keyframes wo-ring-spin {
  to { transform: rotate(360deg); }
}

/* ── Connector arm ───────────────────────────────── */

.wo-connector {
  width: 30px;
  height: 2px;
  flex-shrink: 0;
  background: linear-gradient(to right, rgba(80,255,68,0.32), rgba(80,255,68,0.68));
  box-shadow: 0 0 8px rgba(80,255,68,0.35);
  position: relative;
  z-index: 1;
}

/* Small terminal block at the join point */
.wo-connector::before {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 7px;
  height: 10px;
  border: 1px solid rgba(80,255,68,0.55);
  background: rgba(0, 8, 0, 0.9);
}

/* ── Info panel ──────────────────────────────────── */

.work-overlay-panel {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  border: 1px solid rgba(80, 255, 68, 0.62);
  background: rgba(0, 5, 0, 0.93);
  backdrop-filter: blur(22px);
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  transform: perspective(1000px) rotateY(-20deg) rotateX(4deg) translateX(-10px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    8px 0 40px rgba(80, 255, 68, 0.08),
    inset 0 1px 0 rgba(80, 255, 68, 0.18),
    inset 1px 0 0 rgba(80, 255, 68, 0.10);
}

.work-overlay.open .work-overlay-panel {
  transform: perspective(1000px) rotateY(-13deg) rotateX(2deg) translateX(0);
}

.wo-ghost-index {
  position: absolute;
  top: -10px;
  right: 8px;
  font-family: var(--font-hud);
  font-size: clamp(4rem, 5.5vw, 5.5rem);
  font-weight: 900;
  color: rgba(80, 255, 68, 0.055);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

.wo-body {
  padding: 22px 22px 22px;
}

.wo-tag {
  font-family: var(--font-sub);
  font-size: 0.52rem;
  letter-spacing: 0.38em;
  color: var(--metal);
  text-shadow: 0 0 10px rgba(168, 255, 212, 0.5);
  margin-bottom: 8px;
}

.wo-title {
  font-family: 'Memoare', var(--font-hud);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: normal;
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
  line-height: 1.05;
  color: var(--green);
  text-shadow: 0 0 25px var(--green), 0 0 50px rgba(80, 255, 68, 0.25);
  margin-bottom: 14px;
}

.wo-rule {
  height: 1px;
  background: linear-gradient(to right, rgba(80, 255, 68, 0.5), transparent);
}

/* ═══ SHOWREEL BUTTON ════════════════════════════════ */

.reel-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 30px;
  background: rgba(80, 255, 68, 0.08);
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-hud);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  text-shadow: 0 0 14px var(--green);
  box-shadow: 0 0 22px rgba(80, 255, 68, 0.18),
              inset 0 0 22px rgba(80, 255, 68, 0.05);
  transition: background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.reel-btn:hover {
  background: rgba(80, 255, 68, 0.16);
  box-shadow: 0 0 45px rgba(80, 255, 68, 0.45),
              inset 0 0 22px rgba(80, 255, 68, 0.10);
}

/* ═══ WORK AWARD BADGE ═══════════════════════════════ */

.work-award {
  font-family: var(--font-sub);
  font-size: 0.48rem;
  letter-spacing: 0.26em;
  color: #f0c040;
  text-shadow: 0 0 10px rgba(240, 192, 64, 0.55);
  margin-top: 4px;
}

/* ═══ WORK SOFTWARE TAGS ═════════════════════════════ */

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 16px;
  border-top: 1px solid var(--green-dim);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease 0.08s,
              opacity 0.22s ease 0.18s;
}

.work-item:hover .work-tags {
  max-height: 80px;
  opacity: 1;
}

.work-tag {
  font-family: var(--font-hud);
  font-size: 0.47rem;
  letter-spacing: 0.18em;
  color: var(--metal);
  border: 1px solid var(--green-dim);
  padding: 2px 8px;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  background: rgba(80, 255, 68, 0.04);
}

/* ═══ INACTIVE CRYSTAL ═══════════════════════════════ */

.crystal-inactive {
  opacity: 0.38;
  pointer-events: none;
}

/* ═══ INCOMING WORK BUTTON ═══════════════════════════ */

.work-btn-soon {
  opacity: 0.42;
  pointer-events: none;
  color: var(--metal);
  letter-spacing: 0.24em;
  flex: 1;
}

/* ═══ BIO DISCIPLINE LIST ════════════════════════════ */

.discipline-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.disc-section-label {
  font-family: var(--font-hud);
  font-size: 0.44rem;
  letter-spacing: 0.38em;
  color: var(--green);
  opacity: 0.55;
  margin-top: 6px;
  margin-bottom: 2px;
}

.disc-section-dev {
  color: var(--metal);
  margin-top: 14px;
}

.discipline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--metal);
  text-shadow: 0 0 8px rgba(168, 255, 212, 0.3);
}

.discipline-item.disc-dev {
  opacity: 0.55;
}

.disc-glyph {
  color: var(--green);
  text-shadow: 0 0 10px var(--green);
  font-size: 0.60rem;
  flex-shrink: 0;
}

.disc-glyph-dev {
  color: var(--metal);
  text-shadow: 0 0 8px rgba(168, 255, 212, 0.4);
}

/* ═══ BIO SOFTWARE STRIP ═════════════════════════════ */

.software-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 18px;
  border-top: 1px solid var(--green-dim);
}

.sw-tag {
  font-family: var(--font-hud);
  font-size: 0.56rem;
  letter-spacing: 0.20em;
  color: var(--green);
  text-shadow: 0 0 8px rgba(80, 255, 68, 0.4);
  border: 1px solid var(--green-dim);
  padding: 5px 12px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  background: rgba(80, 255, 68, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sw-tag:hover {
  background: rgba(80, 255, 68, 0.12);
  border-color: rgba(80, 255, 68, 0.5);
}

/* ═══ SCROLLBAR ══════════════════════════════════════ */

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--green-dim); }
