/* ==========================================================================
   SAI RAM DASH (HARDIK) — DARK ANONYMOUS AI, ML & COMMERCE THEME
   Pure Void Black, Zero Glow, Zero-Clip Kinetic Typography, Responsive Viewport
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --color-void: #000000;
  --color-surface: #0a0a0a;
  --color-surface-hover: #141414;
  --color-border: #222222;
  --color-border-bright: #3e3e3e;
  
  --color-text-pure: #FFFFFF;
  --color-text-bone: #D6D6D6;
  --color-text-muted: #7A7A7A;
  
  --font-display: 'Chakra Petch', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
}

a, a:link, a:visited {
  color: inherit;
  text-decoration: none;
}

html, body {
  background-color: var(--color-void);
  color: var(--color-text-bone);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

::selection {
  background: #FFFFFF;
  color: #000000;
}

/* Full Screen Single Page Main Wrapper — True Edge-to-Edge Fluid Architecture */
.single-page-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 1.8vh, 22px) clamp(18px, 2.5vw, 44px);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Top Meta Bar — High-Density Cyberpunk Telemetry Header */
.top-meta-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.8vw, 11.5px);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: clamp(10px, 1.5vh, 16px);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.top-meta-left,
.top-meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-sep {
  color: #444;
  font-size: 10px;
  user-select: none;
}

.classified-badge,
.node-badge,
.proximity-badge,
.audio-toggle-btn,
.telemetry-clock-badge,
.clearance-badge {
  font-family: var(--font-mono);
  font-size: clamp(8.5px, 0.75vw, 10px);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid var(--color-border-bright);
  background: #0A0A0A;
  color: var(--color-text-bone);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.classified-badge {
  background: #111;
  color: #FFF;
}

.proximity-badge {
  background: #0C0C0C;
  color: #DDD;
}

.audio-toggle-btn {
  background: #0C0C0C;
  color: #FFF;
  border: 1px solid var(--color-border-bright);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.audio-toggle-btn:hover {
  background: #FFF;
  color: #000;
  border-color: #FFF;
}

.audio-toggle-btn.muted {
  color: #666;
  border-color: #222;
  background: #050505;
}

.white-exp-btn,
a.white-exp-btn,
a.white-exp-btn:link,
a.white-exp-btn:visited {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 1px solid #FFFFFF !important;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.white-exp-btn:hover,
a.white-exp-btn:hover {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.footer-telemetry {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.telemetry-chip {
  background: #0A0A0A;
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.telemetry-chip strong {
  color: #FFF;
  font-weight: 700;
}

/* Main Stage — Dynamic Full-Screen Grid */
.hero-main-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 3.2vw, 56px);
  align-items: center;
  padding: clamp(8px, 1.5vh, 20px) 0;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.hero-role-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-role-badge::before {
  content: '>';
  color: #FFF;
  font-weight: 700;
}

/* Zero-Clip Kinetic Heading: [SAI RAM / HARDIK] DASH */
.hero-name-heading {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(8px, 1.6vw, 18px);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--color-text-pure);
  margin-bottom: clamp(12px, 1.6vh, 18px);
}

.roller-container {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  position: relative;
  line-height: 1.15;
}

.roller-word {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.15;
}

.constant-word {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.15;
}

/* Bio & Details */
.hero-bio {
  font-size: clamp(0.95rem, 1.08vw, 1.16rem);
  color: #B0B0B0;
  max-width: 840px;
  line-height: 1.68;
  margin-bottom: clamp(14px, 1.8vh, 22px);
}

.hero-bio strong {
  color: var(--color-text-pure);
  font-weight: 700;
}

/* Telemetry Status Row */
.hero-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 8px);
  margin-bottom: clamp(14px, 1.8vh, 22px);
  max-width: 840px;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: clamp(8.5px, 0.75vw, 10px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 5px 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 2px;
}

.status-pill .val {
  color: var(--color-text-pure);
  font-weight: 700;
}

/* ==========================================================================
   SKILLS ARSENAL & WHITE EXPERIENCE ACTION ROW
   ========================================================================== */
.skills-and-white-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 840px;
  margin-bottom: clamp(14px, 1.8vh, 22px);
  width: 100%;
}

.skills-dropdown-container {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.skills-dropdown-btn {
  width: 100%;
  background: #090909;
  border: 1px solid var(--color-border-bright);
  color: var(--color-text-pure);
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.skills-dropdown-btn:hover {
  background: #141414;
  border-color: #666;
}

.skills-dropdown-btn .dropdown-arrow {
  font-size: 10px;
  transition: transform 0.25s var(--ease-apple);
}

.skills-dropdown-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.skills-dropdown-panel {
  display: none;
  background: #060606;
  border: 1px solid var(--color-border-bright);
  border-top: none;
  padding: 18px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  animation: dropdown-fade 0.22s var(--ease-apple) forwards;
  width: 100%;
}

.skills-dropdown-panel::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

.skills-dropdown-panel.open {
  display: block;
}

/* Hero White Experience Button — High Spec Anti-Blue Enforced */
.hero-white-btn,
a.hero-white-btn,
a.hero-white-btn:link,
a.hero-white-btn:visited,
a.hero-white-btn:active {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 1px solid #FFFFFF !important;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.hero-white-btn:hover,
a.hero-white-btn:hover {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.hero-white-btn span,
a.hero-white-btn span {
  color: inherit !important;
  text-decoration: none !important;
}

.hero-white-btn .white-dot {
  font-size: 10px;
}

.hero-white-btn .white-arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.hero-white-btn:hover .white-arrow {
  transform: translate(2px, -2px);
}

@keyframes dropdown-fade {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.skill-category {
  margin-bottom: 16px;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-cat-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-pure);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-cat-title::before {
  content: '▪';
  color: #888;
}

.skill-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-badge {
  background: #111;
  border: 1px solid #242424;
  color: #CCC;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.skill-badge:hover {
  border-color: #FFF;
  color: #FFF;
  background: #1A1A1A;
}

/* Social Transmission Links */
.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 840px;
  width: 100%;
}

.social-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-pure);
  background: #080808;
  border: 1px solid var(--color-border-bright);
  padding: 10px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-btn:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.social-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Stipple Face Canvas Container — Edge-to-Edge Pure Void Black Stage */
.face-canvas-wrapper {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
  background: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}

#faceCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Bottom Footer Bar — Spans 100% Screen Width */
.bottom-footer-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.82vw, 12px);
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: clamp(10px, 1.5vh, 18px);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.bottom-clock, .telemetry-clock-badge {
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0E0E0E;
  border: 1px solid #333333;
  padding: 3px 10px;
  letter-spacing: 1.5px;
}

.live-beacon-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: beacon-pulse 1.4s infinite ease-in-out;
}

@keyframes beacon-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

/* ==========================================================================
   INVISIBLE SEO DOSSIER
   Accessible to search engines, screen readers, AI crawlers, and indexers
   ========================================================================== */
.seo-dossier {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   RESPONSIVE ARCHITECTURE: TABLETS & MOBILE OPTIMIZATION
   ========================================================================== */
@media (max-width: 960px) {
  .single-page-wrapper {
    padding: 16px 20px;
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    gap: 16px;
  }

  .hero-main-stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 12px 0;
    width: 100%;
  }

  /* Expose children of hero-text-block to hero-main-stage flex layout */
  .hero-text-block {
    display: contents;
  }

  .hero-role-badge {
    order: 1;
    margin-bottom: 8px;
  }

  .hero-name-heading {
    order: 2;
    margin-bottom: 12px;
  }

  .hero-bio {
    order: 3;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-status-row {
    order: 4;
    margin-bottom: 12px;
  }

  /* 3D Stipple Face prominently featured — Pure Void Black, No Bounding Box, Seamless Like Desktop */
  .face-canvas-wrapper {
    order: 5;
    width: 100%;
    max-width: min(360px, 88vw);
    aspect-ratio: 1;
    min-height: 260px;
    max-height: 360px;
    margin: 4px auto 14px auto;
    position: relative;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  #faceCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
  }

  .skills-and-white-row {
    order: 6;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .social-links-row {
    order: 7;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .artifacts-deck {
    order: 8;
    max-width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .single-page-wrapper {
    padding: 12px 14px;
    min-height: 100dvh;
    gap: 14px;
  }

  .top-meta-bar {
    gap: 6px;
    padding-bottom: 10px;
  }

  .meta-sep {
    display: none;
  }

  .top-meta-left,
  .top-meta-right {
    gap: 5px;
    width: 100%;
    justify-content: flex-start;
  }

  .classified-badge,
  .node-badge,
  .proximity-badge,
  .audio-toggle-btn,
  .telemetry-clock-badge,
  .clearance-badge {
    font-size: 9px;
    padding: 3px 6px;
    letter-spacing: 0.5px;
  }

  .hero-role-badge {
    font-size: 9.5px;
    letter-spacing: 1.5px;
  }

  .hero-name-heading {
    gap: 8px;
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    margin-bottom: 10px;
  }

  .hero-bio {
    font-size: 0.94rem;
    line-height: 1.62;
    margin-bottom: 12px;
  }

  .hero-status-row {
    gap: 5px;
    margin-bottom: 12px;
  }

  .status-pill {
    font-size: 8.5px;
    padding: 3px 7px;
    letter-spacing: 0.5px;
  }

  .face-canvas-wrapper {
    max-width: min(320px, 86vw);
    min-height: 240px;
    max-height: 320px;
    margin: 2px auto 12px auto;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .skills-and-white-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
  }

  .skills-dropdown-btn {
    font-size: 10.5px;
    padding: 12px 14px;
    width: 100%;
    min-height: 44px;
  }

  .hero-white-btn {
    font-size: 10.5px;
    padding: 12px 16px;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .skills-dropdown-panel {
    max-height: 300px;
    padding: 14px;
  }

  /* Balanced 2x2 Tactical Social Grid */
  .social-links-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
  }

  .social-btn {
    justify-content: center;
    width: 100%;
    padding: 11px 12px;
    font-size: 10px;
    letter-spacing: 1px;
    min-height: 44px;
  }

  /* Compact 3-Column Instrument Deck */
  .artifacts-deck {
    margin-top: 4px;
  }

  .deck-header {
    font-size: 8.5px;
    margin-bottom: 6px;
    padding-bottom: 3px;
  }

  .artifacts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .artifact-card {
    padding: 6px 5px 4px 5px;
  }

  .card-meta {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .artifact-badge {
    font-size: 7px;
    padding: 1px 3px;
  }

  .artifact-canvas-box {
    aspect-ratio: 1.15;
    min-height: 65px;
    max-height: 85px;
  }

  .card-caption {
    font-size: 7px;
    margin-top: 3px;
  }

  .bottom-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 9.5px;
    padding-top: 12px;
  }

  .footer-telemetry {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
  }

  .telemetry-chip {
    font-size: 8.5px;
    padding: 2px 6px;
  }
}

@media (max-width: 380px) {
  .single-page-wrapper {
    padding: 10px 10px;
    gap: 12px;
  }

  .coord-tag {
    display: none;
  }

  .hero-name-heading {
    font-size: 1.65rem;
  }

  .face-canvas-wrapper {
    max-width: 260px;
    min-height: 220px;
    border: none;
    background: transparent;
  }

  .artifacts-grid {
    gap: 4px;
  }

  .artifact-badge {
    display: none;
  }

  .social-btn {
    font-size: 9px;
    padding: 10px 4px;
    gap: 5px;
    letter-spacing: 0.5px;
  }

  .social-btn svg {
    width: 11px;
    height: 11px;
  }
}

/* ==========================================================================
   3D PLAYABLE SPECIMENS DECK (Below Socials)
   ========================================================================== */
.artifacts-deck {
  margin-top: clamp(12px, 1.8vh, 18px);
  width: 100%;
  max-width: 840px;
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--color-border);
}

.deck-title {
  color: var(--color-text-pure);
  font-weight: 700;
}

.deck-cue {
  color: #777;
  font-size: 8.5px;
  letter-spacing: 1px;
}

.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.artifact-card {
  background: #050505;
  border: 1px solid var(--color-border);
  padding: 8px 8px 6px 8px;
  display: flex;
  flex-direction: column;
  cursor: grab;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.artifact-card:active {
  cursor: grabbing;
}

.artifact-card:hover {
  border-color: #555555;
  background: #090909;
  transform: translateY(-2px);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.artifact-num {
  font-weight: 700;
  color: #FFF;
}

.artifact-badge {
  background: #111;
  border: 1px solid #282828;
  padding: 1px 4px;
  font-size: 8px;
  color: #888;
}

.artifact-canvas-box {
  width: 100%;
  aspect-ratio: 1.25;
  min-height: 85px;
  max-height: 115px;
  position: relative;
  background: #000000;
  border: 1px solid #141414;
  overflow: hidden;
}

.artifact-canvas-box canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.card-caption {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.artifact-card:hover .card-caption {
  color: #AAA;
}

.card-expand-cue {
  color: #FFF;
  font-weight: 700;
  font-size: 9px;
}

/* Specimen Holographic Modal */
.specimen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-apple);
}

.specimen-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 10;
  width: min(580px, 92vw);
  background: #060606;
  border: 1px solid #333;
  padding: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
  display: block;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  margin-top: 4px;
}

.modal-close-btn {
  background: #111;
  border: 1px solid #333;
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.modal-close-btn:hover {
  background: #FFF;
  color: #000;
}

.modal-viewport {
  width: 100%;
  aspect-ratio: 1.2;
  background: #000;
  border: 1px solid var(--color-border);
  position: relative;
  cursor: grab;
}

.modal-viewport:active {
  cursor: grabbing;
}

.modal-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-row {
  display: flex;
  justify-content: space-between;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #777;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.65);
  padding: 2px 6px;
  border: 1px solid #222;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ctrl-btn {
  background: #0E0E0E;
  border: 1px solid #333;
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ctrl-btn:hover {
  background: #FFF;
  color: #000;
}

.modal-cue {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #666;
  letter-spacing: 1px;
  margin-left: auto;
}
