:root {
  --bg-space: #03060f;
  --bg-space-dark: #010307;
  --bg-card-glass: rgba(10, 16, 32, 0.76);
  --bg-card-hover: rgba(15, 25, 48, 0.9);

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.28);
  --accent-green: #34d399;
  --accent-green-glow: rgba(52, 211, 153, 0.28);
  --accent-amber: #fbbf24;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.35);

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
  --transition-normal: 0.32s var(--ease-out-expo);

  --header-height: 60px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --z-canvas: 1;
  --z-overlay: 5;
  --z-markers: 25;
  --z-views: 40;
  --z-header: 100;
  --z-modal: 200;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(3, 6, 15, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

#canvas-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  cursor: grab;
  touch-action: none;
}
#canvas-container:active {
  cursor: grabbing;
}
#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 45%,
    rgba(2, 4, 10, 0.45) 80%,
    rgba(2, 4, 10, 0.88) 100%
  );
  z-index: var(--z-overlay);
}

.warp-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 150;
}
.warp-fx.active {
  opacity: 1;
  transform: scale(1.15);
}

.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: env(safe-area-inset-top, 0) 24px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-header);
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(3, 6, 15, 0.85), rgba(3, 6, 15, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  pointer-events: auto;
}
.hud-brand:hover {
  background: rgba(255, 255, 255, 0.05);
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.hud-btn-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 105;
  transition: all var(--transition-fast);
}
.hud-btn-icon:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: #fff;
}
.hud-btn-icon:active {
  transform: scale(0.95);
}
.hud-btn-icon.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.hud-btn-icon .icon {
  width: 17px;
  height: 17px;
  pointer-events: none;
}
.hud-btn-icon .hidden {
  display: none !important;
}

.markers-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-markers);
}

.beacon-marker {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.25s ease, transform 0.18s ease;
  z-index: 25;
  padding: 8px;
}
.beacon-marker.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.beacon-target-dot {
  width: 16px;
  height: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  z-index: 3;
  transition: transform 0.2s ease;
}
.dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  animation: beacon-pulse 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 1;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.beacon-marker[data-station="projects"] .dot-core {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.beacon-marker[data-station="projects"] .dot-ring {
  border-color: var(--accent-green);
}
.beacon-marker[data-station="projects"]:hover .beacon-label-pill {
  border-color: var(--accent-green);
}

.beacon-marker[data-station="about"] .dot-core {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.beacon-marker[data-station="about"] .dot-ring {
  border-color: var(--accent-cyan);
}
.beacon-marker[data-station="about"]:hover .beacon-label-pill {
  border-color: var(--accent-cyan);
}

.beacon-marker[data-station="where"] .dot-core {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}
.beacon-marker[data-station="where"] .dot-ring {
  border-color: var(--accent-amber);
}
.beacon-marker[data-station="where"]:hover .beacon-label-pill {
  border-color: var(--accent-amber);
}

.beacon-label-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.beacon-marker:hover .beacon-label-pill {
  transform: translateY(1px);
  background: rgba(12, 22, 42, 0.98);
}
.beacon-marker:hover .dot-core {
  transform: scale(1.25);
}

.b-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.b-arrow {
  font-size: 11px;
  color: var(--text-muted);
}

#app-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: var(--z-views);
  pointer-events: none;
}

.view-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-height) + 10px) 20px 24px 20px;
}
.view-section.active {
  opacity: 1;
  visibility: visible;
}

#orbit-view {
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
  pointer-events: none;
}

.orbit-center-hud {
  margin-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  padding: 0 16px;
}

.orbit-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.18;
}

.orbit-subtext {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.45;
}

.orbit-dock-island {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 7px 16px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  margin: 0 auto;
  text-align: center;
  max-width: min(640px, calc(100vw - 28px));
  touch-action: manipulation;
}

.island-collapsed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.island-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.island-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.island-expanded {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.island-sep {
  opacity: 0.35;
}

.orbit-dock-island:hover,
.orbit-dock-island:focus-within,
.orbit-dock-island.expanded {
  background: rgba(12, 20, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 14px var(--accent-cyan-glow);
  padding: 7px 18px;
}

.orbit-dock-island:hover .island-collapsed,
.orbit-dock-island:focus-within .island-collapsed,
.orbit-dock-island.expanded .island-collapsed {
  display: none;
}

.orbit-dock-island:hover .island-expanded,
.orbit-dock-island:focus-within .island-expanded,
.orbit-dock-island.expanded .island-expanded {
  display: inline-flex;
}

kbd {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
}

.station-modal {
  background: rgba(3, 6, 15, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  user-select: auto;
  pointer-events: auto !important;
}

.station-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 0 48px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: station-reveal 0.35s var(--ease-out-expo) forwards;
}

@keyframes station-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.station-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
  gap: 12px;
}

.hud-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hud-back-btn svg {
  width: 14px;
  height: 14px;
}
.hud-back-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: #fff;
}
.hud-back-btn:active {
  transform: scale(0.96);
}

.station-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}
.tag-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tag-beacon-dot.green { background: var(--accent-green); }
.tag-beacon-dot.cyan { background: var(--accent-cyan); }
.tag-beacon-dot.amber { background: var(--accent-amber); }

.station-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.station-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.station-subtitle {
  max-width: 640px;
  font-size: 14px;
  color: var(--text-secondary);
}

.digital-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.proj-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}
.proj-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.proj-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.proj-cat-badge {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 500;
}
.proj-status {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--accent-green);
  white-space: nowrap;
}

.proj-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.proj-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.proj-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-tag {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.proj-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
}
.proj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.proj-btn.primary {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  flex: 1;
}
.proj-btn.primary:hover {
  background: var(--accent-green);
  color: var(--bg-space-dark);
}
.proj-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}
.proj-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.proj-btn:disabled,
.proj-btn.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.proj-btn svg {
  width: 13px;
  height: 13px;
}

.about-clean-container {
  max-width: 860px;
}

.about-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.about-hero-block {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-main-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.about-lead-text {
  font-size: 15px;
  line-height: 1.65;
  color: #cbd5e1;
}

.about-grid-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-info-panel {
  background: rgba(12, 20, 38, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-fast);
}
.about-info-panel:hover {
  background: rgba(15, 25, 48, 0.75);
  border-color: rgba(56, 189, 248, 0.25);
}

.about-panel-title {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.about-panel-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}

.about-skills-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.skill-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}

.about-contact-banner {
  background: rgba(12, 20, 38, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-banner-title {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
}
.contact-banner-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin-top: 2px;
  max-width: 500px;
}

.contact-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.about-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.about-contact-btn svg {
  width: 14px;
  height: 14px;
}

.telegram-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--accent-cyan);
  color: #38bdf8;
}
.telegram-btn:hover {
  background: var(--accent-cyan);
  color: #010307;
}

.github-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
}
.github-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.email-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #94a3b8;
}
.email-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.timeline-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.timeline-node {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  position: relative;
}

.timeline-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.node-bullet {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-space);
  border: 2px solid var(--accent-amber);
  margin-top: 6px;
}

.timeline-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}
.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(251, 191, 36, 0.35);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.meta-dot {
  color: var(--text-dim);
  font-size: 10px;
}
.timeline-date {
  font-size: 12px;
  color: var(--accent-amber);
  font-weight: 500;
}
.timeline-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.timeline-status-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--accent-green);
}

.timeline-item-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.timeline-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

.mention-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin: 0 2px;
  vertical-align: middle;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  text-decoration: none;
  font-size: 12px;
  transition: all var(--transition-fast);
}
.mention-channel-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
}
.mention-icon {
  width: 12px;
  height: 12px;
}
.mention-arrow {
  font-size: 11px;
  opacity: 0.7;
}

.timeline-specs-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(2, 4, 8, 0.5);
  border: 1px solid var(--border-glass);
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-size: 11px;
  color: var(--text-muted);
}
.spec-val {
  font-size: 12.5px;
  color: #f8fafc;
  font-weight: 500;
}

.timeline-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--border-glass);
}
.timeline-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.timeline-action-btn svg {
  width: 14px;
  height: 14px;
}
.timeline-action-btn:hover {
  background: var(--accent-amber);
  color: #010307;
}

.hud-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 480px;
  width: calc(100% - 28px);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
}
.hud-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hud-modal::backdrop {
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  background: rgba(12, 20, 38, 0.97);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: #fff;
}

.modal-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-glass);
  padding-top: 10px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 54px;
  }
  .hud-header {
    padding: env(safe-area-inset-top, 0) 14px 0 14px;
  }
  .about-grid-sections {
    grid-template-columns: 1fr;
  }
  .digital-projects-grid {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none !important;
  }
  .view-section {
    padding: calc(var(--header-height) + 6px) 12px 20px 12px;
  }
  .station-container {
    padding: 8px 0 36px 0;
    gap: 16px;
  }
  .about-hero-block {
    padding: 18px 16px;
  }
  .about-info-panel {
    padding: 16px 14px;
  }
  .about-contact-banner {
    padding: 16px 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-buttons-group {
    width: 100%;
  }
  .about-contact-btn {
    flex: 1;
    min-width: 90px;
  }
  .timeline-node {
    grid-template-columns: 16px 1fr;
    gap: 10px;
  }
  .timeline-card {
    padding: 16px 14px;
  }
  .timeline-specs-box {
    grid-template-columns: 1fr;
  }
  .timeline-action-btn {
    width: 100%;
    justify-content: center;
  }
}
