/* ==========================================================================
   ARGHENA TAU // ECLIPSE & TOMOGRAPHIC SPECIMEN TERMINAL
   Aesthetics: Deep Lunar Eclipse / Phigros 3.0 & Distorted Fate Monochromatic Horizon
   Artist: 冒烟轰隆隆 (来自星空的艺术家)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg-void: #030305;
  --bg-surface: #09090d;
  --bg-translucent: rgba(9, 9, 13, 0.82);
  --bg-card: rgba(14, 14, 20, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hairline: rgba(255, 255, 255, 0.16);
  --border-prominent: rgba(255, 255, 255, 0.38);
  --border-pure: #ffffff;

  --text-pure: #ffffff;
  --text-primary: #ededf2;
  --text-secondary: #9a9aa8;
  --text-muted: #565666;
  --text-dim: #252530;

  --font-display: 'Syne', -apple-system, sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

/* Astrophotography Film Grain & Analog Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.048;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* React Bits: Prismatic Burst Background Layer (Behind the Moon) */
.prismatic-burst-container {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* React Bits: Side Rays Background Layer (Behind the Moon) */
.side-rays-container {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

#specimen-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  cursor: grab;
}

#specimen-canvas-container:active {
  cursor: grabbing;
}

/* Phigros-Inspired Radar Calipers & Frame */
.specimen-grid-frame {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
}

.caliper-ruler-left {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.caliper-tick {
  display: flex;
  align-items: center;
  gap: 6px;
}

.caliper-tick::before {
  content: '';
  width: 10px;
  height: 1px;
  background: var(--border-subtle);
}

/* Custom Precision Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.2s ease, background 0.2s ease, opacity 0.25s ease;
  opacity: 0;
}

.cursor-inspect .custom-cursor-follower {
  width: 70px;
  height: 70px;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   TOP BAR HUD
   ========================================================================== */
.hud-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.8rem;
  background: linear-gradient(180deg, rgba(3,3,5,0.92) 0%, rgba(3,3,5,0) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-monogram {
  width: 22px;
  height: 22px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.brand-monogram::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--text-pure);
  text-transform: uppercase;
}

.specimen-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
}

.hud-center-telemetry {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.telemetry-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.telemetry-item strong {
  color: var(--text-pure);
  font-weight: 500;
}

.hud-top-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hud-btn {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hud-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ==========================================================================
   LEFT PANEL // ARTIST (冒烟轰隆隆 崩坏交互)
   ========================================================================== */
.hud-left-panel {
  position: absolute;
  bottom: 3.5rem;
  left: 2.8rem;
  z-index: 50;
  max-width: 360px;
}

.artist-specimen-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  padding: 1.8rem;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.artist-specimen-card::before {
  content: '+';
  position: absolute;
  top: -8px;
  left: -8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.artist-specimen-card::after {
  content: '+';
  position: absolute;
  bottom: -8px;
  right: -8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.artist-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.artist-name-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.1s ease;
}

.artist-origin-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   RIGHT PANEL // SOCIAL BUTTONS (B站 / GITHUB / QQ)
   ========================================================================== */
.hud-right-socials {
  position: absolute;
  bottom: 3.5rem;
  right: 2.8rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.social-pill-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-pill-btn .pill-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.6rem;
  margin-left: 0.2rem;
}

.social-pill-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateX(-4px);
}

.social-pill-btn:hover .pill-badge {
  color: #444444;
  border-left-color: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #ffffff;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  padding: 0.8rem 2rem;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .hud-top-bar { padding: 1.2rem 1.5rem; }
  .hud-center-telemetry { display: none; }
  .hud-left-panel { left: 1.5rem; bottom: 3rem; max-width: 300px; }
  .hud-right-socials { right: 1.5rem; bottom: 3rem; }
}

@media (max-width: 768px) {
  .caliper-ruler-left { display: none; }
  .hud-top-actions { gap: 0.5rem; }
  .hud-left-panel { bottom: 2rem; left: 1rem; max-width: 260px; }
  .hud-right-socials { right: 1rem; bottom: 2rem; }
  .custom-cursor, .custom-cursor-follower { display: none !important; }
}

/* ==========================================================================
   CINEMATIC ANAMORPHIC ECLIPSE INTRO (宽银幕天体日食光缝，告别方块与圆)
   ========================================================================== */
.eclipse-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(3, 3, 5, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
  overflow: hidden;
  user-select: none;
}

.eclipse-intro-overlay.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(1.05);
  filter: blur(20px);
}

/* 1. Horizontal Anamorphic Slit System (横贯全屏的宽银幕天体裂隙强光) */
.anamorphic-slit-system {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100vw;
  height: 300px;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ultra-bright Razor-sharp Horizontal Laser Core */
.anamorphic-ray-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0%;
  height: 2px;
  background: #ffffff;
  box-shadow: 
    0 0 12px 2px #ffffff,
    0 0 40px 6px rgba(200, 230, 255, 0.95),
    0 0 100px 18px rgba(120, 180, 255, 0.7),
    0 0 240px 40px rgba(80, 120, 255, 0.3);
  transition: width 0.05s linear;
}

/* Vertical Elliptical Flare Halo */
.anamorphic-chromatic-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.4) 0%, rgba(160,210,255,0.18) 30%, rgba(200,100,255,0.06) 55%, transparent 75%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Parallel Prismatic Spectrum Diffraction Lines */
.anamorphic-spectrum-lines {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100vw;
  transform: translateY(-50%);
}

.spectrum-line {
  position: absolute;
  left: 0;
  width: 100vw;
  height: 1px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spectrum-line.l1 { top: -8px; background: linear-gradient(90deg, transparent 0%, rgba(140, 200, 255, 0.4) 50%, transparent 100%); }
.spectrum-line.l2 { top: 8px; background: linear-gradient(90deg, transparent 0%, rgba(255, 160, 220, 0.35) 50%, transparent 100%); }
.spectrum-line.l3 { top: -20px; background: linear-gradient(90deg, transparent 15%, rgba(255, 255, 255, 0.18) 50%, transparent 85%); }
.spectrum-line.l4 { top: 20px; background: linear-gradient(90deg, transparent 15%, rgba(255, 255, 255, 0.18) 50%, transparent 85%); }

/* Baily's Beads Luminous Sparks (贝利珠日全食光点) */
.bailys-beads-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bead {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 14px 4px #ffffff, 0 0 35px 8px rgba(180, 230, 255, 0.85);
}

.bead.b1 { left: 42%; width: 4px; height: 4px; }
.bead.b2 { left: 50%; width: 8px; height: 8px; }
.bead.b3 { left: 58%; width: 5px; height: 5px; }

/* 2. Avant-Garde Horizon Typography */
.eclipse-cinematic-caption {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.caption-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.caption-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.35);
}

.caption-telemetry-row {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.telemetry-separator {
  color: var(--text-muted);
  opacity: 0.5;
}

/* 3. Minimalist Hairline Entry Prompt (极简发丝线提示，绝无方块按钮) */
.eclipse-entry-prompt {
  position: absolute;
  bottom: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  cursor: pointer;
  z-index: 20;
}

.prompt-pulse-line {
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s var(--ease-out-expo);
}

.prompt-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.eclipse-entry-prompt:hover .prompt-text {
  color: #ffffff;
  letter-spacing: 0.28em;
}

.eclipse-entry-prompt:hover .prompt-pulse-line {
  width: 80px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

/* ==========================================================================
   PAGE VIEW LAYERS & DUAL-PAGE SYSTEM
   ========================================================================== */
.page-view-layer {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  will-change: opacity, transform;
}

#page-hero-view {
  z-index: 30;
  opacity: 1;
}

#page-hero-view.page-hero-active {
  pointer-events: auto;
}

#page-archive-view {
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6.5rem;
  padding-bottom: 25rem; /* Clean clearance above the enlarged half-moon */
  overflow-y: auto;
  scrollbar-width: none;
}

#page-archive-view::-webkit-scrollbar {
  display: none;
}

#page-archive-view.page-archive-active {
  pointer-events: auto;
}

/* ==========================================================================
   SCROLL DOWN INVITATION PROMPT (PAGE 1)
   ========================================================================== */
.scroll-down-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  z-index: 40;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.hint-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.scroll-down-hint:hover .hint-text {
  color: #ffffff;
  letter-spacing: 0.26em;
}

.hint-chevron {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hint-chevron span {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  animation: chevronBob 1.8s infinite ease-in-out;
}

.hint-chevron span:nth-child(2) {
  animation-delay: 0.22s;
  margin-top: -2px;
}

@keyframes chevronBob {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
    opacity: 1;
    border-color: #ffffff;
  }
}

/* ==========================================================================
   DUAL-PAGE SCROLL NAVIGATION INDICATOR (01 // 02)
   ========================================================================== */
.page-scroll-nav {
  position: fixed;
  right: 2.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  pointer-events: auto;
}

.scroll-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0;
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-nav-btn:hover {
  opacity: 0.85;
  transform: translateX(-3px);
}

.scroll-nav-btn.active {
  opacity: 1;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-pure);
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.scroll-nav-track {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  margin-right: 1.8rem;
  position: relative;
  overflow: hidden;
}

.scroll-nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 33.333%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  transition: transform 0.2s ease, height 0.2s ease;
}

/* ==========================================================================
   PAGE 2 // CELESTIAL ARCHIVE & SPECIMEN CARDS
   ========================================================================== */
.archive-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.archive-header-banner {
  text-align: center;
  margin-bottom: 2.4rem;
}

.archive-sup-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.archive-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
  margin-bottom: 0.6rem;
}

.archive-sub-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.archive-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  width: 100%;
}

.specimen-grid-card {
  background: rgba(10, 11, 16, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform 0.35s var(--ease-out-expo), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.specimen-grid-card::before {
  content: '+';
  position: absolute;
  top: -7px;
  left: -7px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: color 0.3s ease;
}

.specimen-grid-card::after {
  content: '+';
  position: absolute;
  bottom: -7px;
  right: -7px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: color 0.3s ease;
}

.specimen-grid-card:hover {
  background: rgba(15, 17, 25, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 255, 255, 0.04);
}

.specimen-grid-card:hover::before,
.specimen-grid-card:hover::after {
  color: #ffffff;
}

.specimen-grid-card.featured {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.specimen-grid-card.featured:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 255, 255, 0.16);
}

.card-top-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.card-indicator {
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  padding: 2px 7px;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}

.specimen-grid-card.featured .card-indicator {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.card-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.card-summary {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
}

/* ==========================================================================
   PAGE 3 // GARGANTUA SINGULARITY VIEW
   ========================================================================== */
#page-singularity-view {
  display: none;
  opacity: 0;
  pointer-events: none;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: none;
}

#page-singularity-view .archive-container {
  min-height: calc(100vh - 9.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#page-singularity-view .archive-header-banner {
  margin-bottom: 0.5rem;
}

#page-singularity-view .archive-cards-grid {
  margin-top: 25rem;
}

#page-singularity-view::-webkit-scrollbar {
  display: none;
}

.page-singularity-active {
  display: flex !important;
  pointer-events: auto !important;
}

#page-singularity-view .specimen-grid-card.featured {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

#page-singularity-view .specimen-grid-card.featured:hover {
  border-color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 32px rgba(255, 255, 255, 0.25);
}

#page-singularity-view .specimen-grid-card.featured .card-indicator {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 960px) {
  .archive-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .page-scroll-nav {
    right: 1.2rem;
  }
  #page-archive-view {
    padding-top: 5rem;
    padding-bottom: 12rem;
  }
  #page-singularity-view {
    padding-top: 5rem;
    padding-bottom: 8rem;
  }
}

@media (max-width: 768px) {
  .specimen-grid-frame,
  .caliper-ruler-left {
    display: none !important;
  }
  .hud-center-telemetry {
    display: none !important;
  }
  .hud-top-bar {
    padding: 0.9rem 1.2rem;
  }
  .specimen-tag {
    display: none;
  }

  /* Page 1 Mobile Layout */
  .hud-left-panel {
    left: 1.2rem;
    right: 1.2rem;
    max-width: none;
    bottom: 6.8rem;
  }
  .artist-name-title {
    font-size: 1.65rem;
  }
  .artist-origin-text {
    font-size: 0.72rem;
  }
  .hud-right-socials {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.4rem;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
  }
  .social-pill-btn {
    padding: 0.55rem 0.65rem;
    font-size: 0.65rem;
    flex: 1;
    justify-content: center;
    gap: 0.4rem;
  }
  .social-pill-btn .pill-badge {
    display: none;
  }

  /* Page 2 & 3 Mobile Layout */
  #page-archive-view,
  #page-singularity-view {
    padding: 4.5rem 1.2rem 6rem 1.2rem;
    -webkit-overflow-scrolling: touch;
  }
  .archive-header-banner {
    margin-bottom: 0.6rem;
  }
  .archive-title-primary {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
  }
  .archive-cards-grid {
    grid-template-columns: 1fr;
    margin-top: 13.5rem;
    gap: 1rem;
  }
  .specimen-grid-card {
    padding: 1.3rem;
  }

  /* Compact Navigation Rail */
  .page-scroll-nav {
    right: 0.6rem;
    transform: translateY(-50%) scale(0.88);
  }
  .page-scroll-nav .nav-label {
    display: none;
  }
  .scroll-nav-track {
    margin: 0.5rem auto;
  }

  /* Intro Overlay on Mobile */
  .caption-hero-title {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
  }
  .caption-telemetry-row {
    font-size: 0.65rem;
  }
  .prompt-text {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 480px) {
  .hud-top-bar {
    padding: 0.8rem 1rem;
  }
  .brand-title {
    font-size: 0.78rem;
  }
  .hud-left-panel {
    left: 1rem;
    right: 1rem;
    bottom: 6.2rem;
  }
  .artist-name-title {
    font-size: 1.45rem;
  }
  .hud-right-socials {
    left: 1rem;
    right: 1rem;
    bottom: 1.2rem;
  }
  .social-pill-btn {
    padding: 0.5rem 0.4rem;
    font-size: 0.62rem;
  }
  .social-pill-btn svg {
    width: 13px;
    height: 13px;
  }
  .archive-cards-grid {
    margin-top: 12rem;
  }
}


