/* ==========================================================================
   KAGEAF DESIGN SYSTEM v5.0 — HIGH CRAFT EDITORIAL BENTO
   Base Color: Solid Near-Black (#08080a) — NO Gradients, NO Glassmorphism
   Accent Color: Single Electric Lime (#c6ff00)
   Typography: Syne (Display Headers) + JetBrains Mono (Technical) + Plus Jakarta Sans (Body)
   ========================================================================== */

:root {
  --bg-main: #08080a;
  --bg-card: #111116;
  --bg-card-alt: #16161c;
  --bg-surface: #1c1c24;
  
  --border-dark: #1b1b24;
  --border-bright: #282836;
  
  --text-primary: #f4f4f6;
  --text-secondary: #9494a0;
  --text-muted: #5e5e6c;
  
  --accent-lime: #ff2a85;
  --accent-lime-dark: #ec4899;
  
  --font-heading: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-card: 10px;
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background: #050306 url('images/site-bg.jpg') no-repeat center top / cover fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Accent Color Helper (Matching Logo Pink) */
.text-lime {
  color: #ff2a85 !important;
}

/* ==========================================================================
   4-SECOND WELCOME INTRO BOOTLOADER SCREEN
   ========================================================================== */
.intro-welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 999999;
  background: #050306 url('images/site-bg.jpg') no-repeat center top / cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
}

.intro-welcome-overlay.intro-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body.intro-active .site-shell {
  opacity: 0;
  pointer-events: none;
}

.site-shell {
  transition: opacity 0.4s ease;
}

.intro-content-box {
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.intro-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.intro-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-lime);
}

.intro-ring-spinner {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-lime);
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.intro-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.intro-tagline-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
  background: rgba(198, 255, 0, 0.08);
  border: 1px solid rgba(198, 255, 0, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.intro-welcome-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.intro-subtext {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.intro-progress-wrap {
  width: 100%;
  height: 4px;
  background: var(--border-dark);
  border-radius: 2px;
  overflow: hidden;
}

.intro-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-lime);
  transition: width 100ms linear;
}

.intro-bottom-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.intro-timer-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.intro-skip-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.intro-skip-btn:hover {
  color: var(--accent-lime);
}

/* ==========================================================================
   LAYOUT STRUCTURE & SYSTEM UTILITY BAR
   ========================================================================== */
.site-shell {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.sys-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.sys-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.sys-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
}

.sys-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.sys-tag {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sys-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
  background: rgba(198, 255, 0, 0.06);
  border: 1px solid rgba(198, 255, 0, 0.2);
  padding: 6px 14px;
}

.pulse-lime-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-lime);
}

/* ==========================================================================
   SECTION MONO HEADERS
   ========================================================================== */
.section-mono-header {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-mono-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
  letter-spacing: 0.1em;
}

.section-display-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   HERO ASYMMETRIC BENTO GRID
   ========================================================================== */
.hero-bento-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
}

.bento-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 32px;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.bento-tile:hover {
  border-color: var(--border-bright);
}

/* Bento Tile 1: Main Title & Bio */
.tile-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-header-mono {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 20px;
}

.mono-idx {
  color: var(--text-muted);
}

.mono-tag {
  font-weight: 700;
}

.hero-display-title {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 15%, #f48fb1 60%, #c85a7e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(200, 90, 126, 0.45));
}

.hero-handle-mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-lime);
  margin-bottom: 20px;
  display: block;
}

.hero-bio-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
}

/* Bento Tile 2: Avatar Frame (Cursor-Aware Tracking) */
.tile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-card-alt);
}

.avatar-frame-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 260px;
  background: #000;
  border: 1px solid var(--border-bright);
  transition: transform 0.15s ease-out;
}

.bento-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-corner-cross {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
  line-height: 1;
}

.avatar-corner-cross.top-left { top: 4px; left: 6px; }
.avatar-corner-cross.top-right { top: 4px; right: 6px; }
.avatar-corner-cross.bottom-left { bottom: 4px; left: 6px; }
.avatar-corner-cross.bottom-right { bottom: 4px; right: 6px; }

.avatar-status-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(8, 8, 10, 0.9);
  color: var(--accent-lime);
  border: 1px solid var(--accent-lime);
  padding: 4px 10px;
  white-space: nowrap;
}

/* Bento Tile 3: Dense Stats Matrix (Full Row Width) */
.tile-stats {
  grid-column: 1 / -1;
  padding: 0;
  background: var(--bg-card);
}

.stats-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  padding: 28px;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-mono-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-huge-val {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-sub-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   COMMAND LINKS SECTION (STRUCTURAL HARD SURFACES)
   ========================================================================== */
.cmd-links-section {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   NEON UI PILL BUTTON SYSTEM (Matching Uploaded Neon UI Specification)
   - Fully rounded pill shape (border-radius: 9999px)
   - Dark obsidian fill (#0b080d)
   - Dual-color gradient border (Coral Pink -> Purple -> Electric Blue)
   - Diffuse Neon Ambient Outer Glow (box-shadow halo)
   ========================================================================== */

/* Neon UI Pill Button Tokens */
.neon-pill-btn,
.cmd-action-badge,
.sys-status-badge,
.avatar-status-pill,
.intro-tagline-badge,
.intro-skip-btn {
  border-radius: 9999px !important;
}

/* Command Links Stack - Sleek Neon UI Pill Bars */
.cmd-links-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmd-link-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  background: #0b070f;
  border-radius: 9999px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
  
  /* Dual-Color Gradient Border via Padding & Background Clip */
  border: 2px solid transparent;
  background-image: linear-gradient(#0b070f, #0b070f), linear-gradient(90deg, #ff5c77 0%, #a855f7 50%, #3b82f6 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  
  /* Ambient Diffuse Neon Outer Halo Glow */
  box-shadow: 0 0 16px rgba(255, 92, 119, 0.3), 0 0 20px rgba(59, 130, 246, 0.3);
}

.cmd-link-bar:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 92, 119, 0.65), 0 0 35px rgba(59, 130, 246, 0.65);
}

.cmd-link-bar:active {
  transform: scale(0.99) translateY(1px);
}

.cmd-idx-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff5c77;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(255, 92, 119, 0.5);
}

.cmd-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cmd-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-desc {
  font-size: 0.85rem;
  color: #d1b6d5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-action-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 20px;
  background: #15091a;
  color: #ffffff;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  
  /* Inner Pill Neon Border */
  border: 1.5px solid transparent;
  background-image: linear-gradient(#15091a, #15091a), linear-gradient(90deg, #ff5c77, #3b82f6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 12px rgba(255, 92, 119, 0.35);
}

.cmd-link-bar:hover .cmd-action-badge {
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 92, 119, 0.7), 0 0 20px rgba(59, 130, 246, 0.7);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   TRACK RECORD CASE STUDIES (REVEAL METRICS ON HOVER)
   ========================================================================== */
.case-studies-section {
  display: flex;
  flex-direction: column;
}

.case-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card-flat {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.case-card-flat:hover {
  border-color: var(--accent-lime);
  transform: translateY(-4px);
}

.case-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-mono-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.case-tag-cat {
  color: var(--accent-lime);
  font-weight: 700;
}

.case-year {
  color: var(--text-muted);
}

.case-title-display {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.case-role-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.case-summary-p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 6px;
}

/* Hover Reveal Panel for Case Studies */
.case-metrics-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.case-card-flat:hover .case-metrics-reveal {
  max-height: 140px;
  opacity: 1;
  margin-top: 24px;
}

.reveal-inner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-dark);
}

.reveal-stat-box {
  display: flex;
  flex-direction: column;
}

.reveal-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.reveal-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.case-hover-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 20px;
  transition: color 0.2s ease;
}

.case-card-flat:hover .case-hover-hint {
  color: var(--accent-lime);
}

/* ==========================================================================
   SIGNATURE DIGITAL ARTWORK GALLERY (RAW GRID TILES)
   ========================================================================== */
.art-gallery-section {
  display: flex;
  flex-direction: column;
}

.art-tile-matrix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.art-frame-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.art-frame-tile:hover {
  border-color: var(--accent-lime);
  transform: translateY(-4px);
}

.art-img-crop {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.art-img-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.art-frame-tile:hover .art-img-crop img {
  transform: scale(1.08);
}

.art-tile-footer {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-dark);
}

.tile-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-lime);
}

.tile-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   FOOTER & MODALS
   ========================================================================== */
.raw-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

/* Lightbox Modal */
.raw-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.raw-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.raw-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.92);
}

.raw-modal-box {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--accent-lime);
  padding: 24px;
}

.raw-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--accent-lime);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  cursor: pointer;
}

.raw-lightbox-frame {
  width: 100%;
  max-height: 400px;
  background: #000;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dark);
}

.raw-lightbox-frame img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.lightbox-caption-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.lightbox-caption-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Toast Notification */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300000;
}

.raw-toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-lime);
  color: var(--text-primary);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 4px 4px 0px var(--accent-lime);
}

/* ==========================================================================
   DIRECTIONAL ENTRANCE ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.anim-dir-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease;
}

.anim-dir-right {
  opacity: 0;
  transform: translateX(35px);
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease;
}

.anim-dir-top {
  opacity: 0;
  transform: translateY(-30px);
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease;
}

.anim-dir-bottom {
  opacity: 0;
  transform: translateY(35px);
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease;
}

.anim-dir-left.is-visible,
.anim-dir-right.is-visible,
.anim-dir-top.is-visible,
.anim-dir-bottom.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OPTIMIZATION SYSTEM
   ========================================================================== */
@media (max-width: 900px) {
  .hero-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tile-main {
    padding: 28px 24px;
  }

  .tile-avatar {
    padding: 24px;
    order: -1; /* Avatar appears on top for instant mobile identity */
  }

  .avatar-frame-box {
    max-width: 220px;
    margin: 0 auto;
  }

  .case-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell {
    padding: 20px;
  }

  .stat-cell:nth-child(2n) {
    border-right: none;
  }

  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) {
    border-bottom: 1px solid var(--border-dark);
  }

  .art-tile-matrix {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 16px 14px 48px;
    gap: 32px;
  }

  .sys-bar {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
  }

  .sys-brand {
    font-size: 0.78rem;
  }

  .sys-name {
    font-size: 0.95rem;
  }

  .sys-status-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  .hero-display-title {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
    line-height: 1.0;
  }

  .hero-handle-mono {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .hero-bio-text {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .hero-action-tags {
    gap: 6px;
  }

  .hero-tag-pill {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .stats-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-huge-val {
    font-size: 1.5rem;
  }

  .stat-sub-desc {
    font-size: 0.75rem;
  }

  /* Command Link Bars - Sleek Mobile Pill Layout */
  .cmd-link-bar {
    padding: 14px 18px;
    border-radius: 24px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cmd-body {
    width: 100%;
  }

  .cmd-name {
    font-size: 1rem;
    white-space: normal;
  }

  .cmd-desc {
    font-size: 0.8rem;
    white-space: normal;
    word-break: break-word;
  }

  .cmd-action-badge {
    align-self: flex-end;
    font-size: 0.7rem;
    padding: 6px 14px;
    margin-top: 2px;
  }

  /* Case Cards Mobile Touch Tap Expansion */
  .case-card-flat {
    padding: 20px 16px;
  }

  .case-title-display {
    font-size: 1.5rem;
  }

  .reveal-inner-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .case-card-flat.active-tap .case-metrics-reveal {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
  }

  /* Art Gallery Mobile Grid */
  .art-tile-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .art-tile-footer {
    padding: 8px;
  }

  .tile-title {
    font-size: 0.8rem;
  }

  .raw-modal-box {
    width: 94%;
    padding: 16px;
  }

  .footer-meta-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.7rem;
  }
}
