/* Constellation - Public Facing Honeycomb Visualization */
/* Matches writing section style: IBM Plex Mono, teal accent, lowercase */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');

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

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #2a2a28;
  color: #f8f8f6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll !important;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Star Finder 2102-D Grid - Proper SVG Implementation */
/* Altitude circles + Azimuth radials + Declination curves + Degree markings */

/* SVG background grid */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(140vh, 140vw);
  height: min(140vh, 140vw);
  opacity: 1.0;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background-image: url('data:image/svg+xml,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="-600 -600 1200 1200">\
      <defs>\
        <style>\
          .altitude { fill: none; stroke: %23f8f8f6; stroke-width: 0.8; opacity: 0.08; }\
          .altitude-heavy { fill: none; stroke: %23f8f8f6; stroke-width: 1.5; opacity: 0.12; }\
          .azimuth { stroke: %23f8f8f6; stroke-width: 0.6; opacity: 0.08; }\
          .azimuth-heavy { stroke: %23f8f8f6; stroke-width: 1.2; opacity: 0.12; }\
          .declination { fill: none; stroke: %23f8f8f6; stroke-width: 0.6; opacity: 0.08; }\
          .degree-label { fill: %23f8f8f6; font-family: monospace; font-size: 12px; opacity: 0.08; }\
          .degree-label-small { fill: %23f8f8f6; font-family: monospace; font-size: 9px; opacity: 0.08; }\
        </style>\
      </defs>\
      \
      <!-- Altitude circles (every 25 units, 20 rings) -->\
      <circle class="altitude" cx="0" cy="0" r="25"/>\
      <circle class="altitude" cx="0" cy="0" r="50"/>\
      <circle class="altitude" cx="0" cy="0" r="75"/>\
      <circle class="altitude-heavy" cx="0" cy="0" r="100"/>\
      <circle class="altitude" cx="0" cy="0" r="125"/>\
      <circle class="altitude" cx="0" cy="0" r="150"/>\
      <circle class="altitude" cx="0" cy="0" r="175"/>\
      <circle class="altitude-heavy" cx="0" cy="0" r="200"/>\
      <circle class="altitude" cx="0" cy="0" r="225"/>\
      <circle class="altitude" cx="0" cy="0" r="250"/>\
      <circle class="altitude" cx="0" cy="0" r="275"/>\
      <circle class="altitude-heavy" cx="0" cy="0" r="300"/>\
      <circle class="altitude" cx="0" cy="0" r="325"/>\
      <circle class="altitude" cx="0" cy="0" r="350"/>\
      <circle class="altitude" cx="0" cy="0" r="375"/>\
      <circle class="altitude-heavy" cx="0" cy="0" r="400"/>\
      <circle class="altitude" cx="0" cy="0" r="425"/>\
      <circle class="altitude" cx="0" cy="0" r="450"/>\
      <circle class="altitude" cx="0" cy="0" r="475"/>\
      <circle class="altitude-heavy" cx="0" cy="0" r="500"/>\
      \
      <!-- Azimuth radials (every 10 degrees, 36 lines) -->\
      <line class="azimuth-heavy" x1="0" y1="0" x2="0" y2="-500"/>\
      <line class="azimuth" x1="0" y1="0" x2="87" y2="-492"/>\
      <line class="azimuth" x1="0" y1="0" x2="174" y2="-469"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="259" y2="-433"/>\
      <line class="azimuth" x1="0" y1="0" x2="342" y2="-383"/>\
      <line class="azimuth" x1="0" y1="0" x2="420" y2="-321"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="492" y2="-250"/>\
      <line class="azimuth" x1="0" y1="0" x2="556" y2="-174"/>\
      <line class="azimuth" x1="0" y1="0" x2="469" y2="-174"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="500" y2="0"/>\
      <line class="azimuth" x1="0" y1="0" x2="492" y2="87"/>\
      <line class="azimuth" x1="0" y1="0" x2="469" y2="174"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="433" y2="259"/>\
      <line class="azimuth" x1="0" y1="0" x2="383" y2="342"/>\
      <line class="azimuth" x1="0" y1="0" x2="321" y2="420"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="250" y2="492"/>\
      <line class="azimuth" x1="0" y1="0" x2="174" y2="469"/>\
      <line class="azimuth" x1="0" y1="0" x2="87" y2="492"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="0" y2="500"/>\
      <line class="azimuth" x1="0" y1="0" x2="-87" y2="492"/>\
      <line class="azimuth" x1="0" y1="0" x2="-174" y2="469"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="-259" y2="433"/>\
      <line class="azimuth" x1="0" y1="0" x2="-342" y2="383"/>\
      <line class="azimuth" x1="0" y1="0" x2="-420" y2="321"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="-492" y2="250"/>\
      <line class="azimuth" x1="0" y1="0" x2="-469" y2="174"/>\
      <line class="azimuth" x1="0" y1="0" x2="-492" y2="87"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="-500" y2="0"/>\
      <line class="azimuth" x1="0" y1="0" x2="-492" y2="-87"/>\
      <line class="azimuth" x1="0" y1="0" x2="-469" y2="-174"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="-433" y2="-259"/>\
      <line class="azimuth" x1="0" y1="0" x2="-383" y2="-342"/>\
      <line class="azimuth" x1="0" y1="0" x2="-321" y2="-420"/>\
      <line class="azimuth-heavy" x1="0" y1="0" x2="-250" y2="-492"/>\
      <line class="azimuth" x1="0" y1="0" x2="-174" y2="-469"/>\
      <line class="azimuth" x1="0" y1="0" x2="-87" y2="-492"/>\
      \
      <!-- Declination curves (horizontal elliptical arcs) -->\
      <ellipse class="declination" cx="0" cy="50" rx="480" ry="15"/>\
      <ellipse class="declination" cx="0" cy="100" rx="470" ry="25"/>\
      <ellipse class="declination" cx="0" cy="150" rx="455" ry="35"/>\
      <ellipse class="declination" cx="0" cy="200" rx="435" ry="45"/>\
      <ellipse class="declination" cx="0" cy="250" rx="410" ry="55"/>\
      <ellipse class="declination" cx="0" cy="300" rx="380" ry="65"/>\
      <ellipse class="declination" cx="0" cy="350" rx="345" ry="75"/>\
      <ellipse class="declination" cx="0" cy="400" rx="305" ry="85"/>\
      <ellipse class="declination" cx="0" cy="450" rx="260" ry="95"/>\
      <ellipse class="declination" cx="0" cy="-50" rx="480" ry="15"/>\
      <ellipse class="declination" cx="0" cy="-100" rx="470" ry="25"/>\
      <ellipse class="declination" cx="0" cy="-150" rx="455" ry="35"/>\
      <ellipse class="declination" cx="0" cy="-200" rx="435" ry="45"/>\
      <ellipse class="declination" cx="0" cy="-250" rx="410" ry="55"/>\
      <ellipse class="declination" cx="0" cy="-300" rx="380" ry="65"/>\
      <ellipse class="declination" cx="0" cy="-350" rx="345" ry="75"/>\
      <ellipse class="declination" cx="0" cy="-400" rx="305" ry="85"/>\
      <ellipse class="declination" cx="0" cy="-450" rx="260" ry="95"/>\
      \
      <!-- Azimuth degree labels (at 3/4 radius = 375 units from center) -->\
      <text class="degree-label" x="0" y="-375" text-anchor="middle">0°</text>\
      <text class="degree-label" x="65" y="-369" text-anchor="middle">010°</text>\
      <text class="degree-label" x="128" y="-352" text-anchor="middle">020°</text>\
      <text class="degree-label" x="188" y="-325" text-anchor="middle">030°</text>\
      <text class="degree-label" x="242" y="-287" text-anchor="middle">040°</text>\
      <text class="degree-label" x="289" y="-241" text-anchor="middle">050°</text>\
      <text class="degree-label" x="325" y="-188" text-anchor="middle">060°</text>\
      <text class="degree-label" x="352" y="-128" text-anchor="middle">070°</text>\
      <text class="degree-label" x="369" y="-65" text-anchor="middle">080°</text>\
      <text class="degree-label" x="375" y="0" text-anchor="middle">090°</text>\
      <text class="degree-label" x="369" y="65" text-anchor="middle">100°</text>\
      <text class="degree-label" x="352" y="128" text-anchor="middle">110°</text>\
      <text class="degree-label" x="325" y="188" text-anchor="middle">120°</text>\
      <text class="degree-label" x="287" y="242" text-anchor="middle">130°</text>\
      <text class="degree-label" x="241" y="289" text-anchor="middle">140°</text>\
      <text class="degree-label" x="188" y="325" text-anchor="middle">150°</text>\
      <text class="degree-label" x="128" y="352" text-anchor="middle">160°</text>\
      <text class="degree-label" x="65" y="369" text-anchor="middle">170°</text>\
      <text class="degree-label" x="0" y="375" text-anchor="middle">180°</text>\
      <text class="degree-label" x="-65" y="369" text-anchor="middle">190°</text>\
      <text class="degree-label" x="-128" y="352" text-anchor="middle">200°</text>\
      <text class="degree-label" x="-188" y="325" text-anchor="middle">210°</text>\
      <text class="degree-label" x="-242" y="287" text-anchor="middle">220°</text>\
      <text class="degree-label" x="-289" y="241" text-anchor="middle">230°</text>\
      <text class="degree-label" x="-325" y="188" text-anchor="middle">240°</text>\
      <text class="degree-label" x="-352" y="128" text-anchor="middle">250°</text>\
      <text class="degree-label" x="-369" y="65" text-anchor="middle">260°</text>\
      <text class="degree-label" x="-375" y="0" text-anchor="middle">270°</text>\
      <text class="degree-label" x="-369" y="-65" text-anchor="middle">280°</text>\
      <text class="degree-label" x="-352" y="-128" text-anchor="middle">290°</text>\
      <text class="degree-label" x="-325" y="-188" text-anchor="middle">300°</text>\
      <text class="degree-label" x="-287" y="-242" text-anchor="middle">310°</text>\
      <text class="degree-label" x="-241" y="-289" text-anchor="middle">320°</text>\
      <text class="degree-label" x="-188" y="-325" text-anchor="middle">330°</text>\
      <text class="degree-label" x="-128" y="-352" text-anchor="middle">340°</text>\
      <text class="degree-label" x="-65" y="-369" text-anchor="middle">350°</text>\
      \
      <!-- Altitude labels along top radial (0 degrees) -->\
      <text class="degree-label-small" x="8" y="-95" text-anchor="start">01|10</text>\
      <text class="degree-label-small" x="8" y="-195" text-anchor="start">02|20</text>\
      <text class="degree-label-small" x="8" y="-295" text-anchor="start">03|30</text>\
      <text class="degree-label-small" x="8" y="-360" text-anchor="start">04|40</text>\
    </svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Remove the second layer - not needed with SVG */
body::after {
  display: none;
}

.constellation-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow-y: visible;
}

/* Header - removed for minimalist approach, matches books/work sections */

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.search-box {
  width: 100%;
  max-width: 500px;
  position: relative;
}

/* Search label - just "search" in lowercase */
.search-box::before {
  content: 'search';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: rgba(248, 248, 246, 0.4);
  pointer-events: none;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 85px;
  background: rgba(248, 248, 246, 0.1);
  border: 1px solid rgba(248, 248, 246, 0.21);
  border-radius: 2px;
  color: #f8f8f6;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.search-box input:focus {
  outline: none;
  background: rgba(248, 248, 246, 0.12);
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.search-box input::placeholder {
  color: rgba(248, 248, 246, 0.3);
}

.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(42, 42, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  margin: 0 -20px;
  border-bottom: 1px solid rgba(248, 248, 246, 0.08);
}

/* Mobile: FORCE scrolling to work */
@media (max-width: 768px) {
  html, body {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .constellation-container {
    overflow-y: visible !important;
    min-height: 150vh !important;
  }
  
  .filter-buttons {
    position: relative !important;
    top: auto !important;
  }
  
  #columnsContainer {
    overflow-y: visible !important;
    min-height: 100vh !important;
  }
}

/* Refined color palette - dignified, desaturated */
:root {
  --color-tech: #2D5A5A;      /* dark teal */
  --color-art: #5C3A3A;       /* wine */
  --color-words: #6B5B2E;     /* deep mustard */
  --color-travel: #545738;    /* rotten olive */
  --color-research: #6B4A3A;  /* dark sienna */
  --color-other: #4A4A4A;     /* dark grey */
  --color-accent: #14b8a6;    /* teal accent like writing section */
}

/* Filter buttons - matches writing style */
.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: lowercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(248, 248, 246, 0.15);
  background: transparent;
  color: rgba(248, 248, 246, 0.5);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.05em;
  font-weight: 300;
}

.filter-btn:hover {
  background: rgba(248, 248, 246, 0.08);
  border-color: rgba(20, 184, 166, 0.3);
  color: rgba(20, 184, 166, 0.8);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: rgba(20, 184, 166, 0.15);
  border-color: #14b8a6;
  color: #14b8a6;
  font-weight: 400;
}

/* Domain-specific filter button colors */
.filter-btn[data-domain="tech"] {
  background: rgba(45, 90, 90, 0.15);
  border-color: var(--color-tech);
}

.filter-btn[data-domain="tech"]:hover,
.filter-btn[data-domain="tech"].active {
  background: var(--color-tech);
  border-color: var(--color-tech);
  color: rgba(255, 255, 255, 0.95);
}

.filter-btn[data-domain="art"] {
  background: rgba(92, 58, 58, 0.15);
  border-color: var(--color-art);
}

.filter-btn[data-domain="art"]:hover,
.filter-btn[data-domain="art"].active {
  background: var(--color-art);
  border-color: var(--color-art);
  color: rgba(255, 255, 255, 0.95);
}

.filter-btn[data-domain="words"] {
  background: rgba(107, 91, 46, 0.15);
  border-color: var(--color-words);
}

.filter-btn[data-domain="words"]:hover,
.filter-btn[data-domain="words"].active {
  background: var(--color-words);
  border-color: var(--color-words);
  color: rgba(255, 255, 255, 0.95);
}

.filter-btn[data-domain="travel"] {
  background: rgba(84, 87, 56, 0.15);
  border-color: var(--color-travel);
}

.filter-btn[data-domain="travel"]:hover,
.filter-btn[data-domain="travel"].active {
  background: var(--color-travel);
  border-color: var(--color-travel);
  color: rgba(255, 255, 255, 0.95);
}

.filter-btn[data-domain="research"] {
  background: rgba(107, 74, 58, 0.15);
  border-color: var(--color-research);
}

.filter-btn[data-domain="research"]:hover,
.filter-btn[data-domain="research"].active {
  background: var(--color-research);
  border-color: var(--color-research);
  color: rgba(255, 255, 255, 0.95);
}

/* About button - matches work.html CV button style */
.about-button {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  padding: 0.75rem 1.5rem;
  background: rgba(248, 248, 246, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(248, 248, 246, 0.2);
  border-radius: 2px;
  color: rgba(248, 248, 246, 0.7);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'IBM Plex Mono', monospace;
  z-index: 50;
}

.about-button:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: rgba(20, 184, 166, 0.4);
  color: rgba(248, 248, 246, 0.9);
  transform: translateY(-2px);
}

/* About modal */
.about-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 42, 40, 0.7);
  backdrop-filter: blur(4px);
  z-index: 900;
  padding: 20px;
  overflow-y: auto;
}

.about-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-content {
  background: #2a2a28;
  border: 1px solid rgba(248, 248, 246, 0.15);
  border-radius: 4px;
  max-width: 600px;
  width: 100%;
  padding: 40px;
  position: relative;
}

.about-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(20, 184, 166, 0.9);
  color: #f8f8f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.about-close:hover {
  background: #0d9488;
  transform: rotate(90deg);
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(248, 248, 246, 0.85);
  font-weight: 300;
  margin-bottom: 1rem;
}

.about-content a {
  color: #14b8a6;
  text-decoration: none;
  transition: all 0.3s;
}

.about-content a:hover {
  color: #0d9488;
  text-decoration: underline;
}

/* Honeycomb Container */
.honeycomb-container {
  position: relative;
  min-height: 600px;
}

#connectionCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.honeycomb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hexagon */
.hex-wrapper {
  width: 200px;
  height: 115px;
  position: relative;
  margin: 0 -26px 4px -26px;
  transition: all 0.3s ease;
}

.hex-wrapper:nth-child(even) {
  margin-top: 61px;
}

.hex-wrapper.hidden {
  display: none;
}

.hex {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Create hexagon shape with SVG for proper stroke */
.hex svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Hexagon background with refined colors */
.hex polygon.hex-fill {
  transition: all 0.4s ease;
}

/* Refined gradient pulse - subtle, from left to right */
.hex.tech polygon.hex-fill {
  fill: url(#gradient-tech);
}

.hex.art polygon.hex-fill {
  fill: url(#gradient-art);
}

.hex.words polygon.hex-fill {
  fill: url(#gradient-words);
}

.hex.travel polygon.hex-fill {
  fill: url(#gradient-travel);
}

.hex.research polygon.hex-fill {
  fill: url(#gradient-research);
}

.hex.other polygon.hex-fill {
  fill: url(#gradient-other);
}

/* Stroke around entire hexagon - noticeably brighter than background grid */
.hex polygon.hex-stroke {
  fill: none;
  stroke: rgba(248, 248, 246, 0.13);
  stroke-width: 0.5;
  transition: all 0.3s ease;
}

/* Hover effect - brighten */
.hex:hover {
  transform: scale(1.08);
  z-index: 10;
}

.hex:hover polygon.hex-fill {
  filter: brightness(1.2);
}

.hex:hover polygon.hex-stroke {
  stroke: rgba(248, 248, 246, 0.25);
  stroke-width: 0.7;
}

/* Hex content - reduced font size, lowercase */
.hex-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 15px;
  color: #f8f8f6;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hex-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 100%;
  z-index: 3;
  clip-path: polygon(0% 0%, 80% 0%, 60% 50%, 80% 100%, 0% 100%);
}

.hex-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hex-content.has-photo {
  padding-left: 45%;
}

.hex-name {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-transform: lowercase;
}

.hex-domain {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin-top: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

/* Size variations based on content length */
.hex-wrapper.size-medium {
  width: 240px;
  height: 138px;
  margin: 0 -31px 5px -31px;
}

.hex-wrapper.size-medium:nth-child(even) {
  margin-top: 73px;
}

.hex-wrapper.size-medium .hex-name {
  font-size: 13px;
}

.hex-wrapper.size-large {
  width: 280px;
  height: 161px;
  margin: 0 -36px 6px -36px;
}

.hex-wrapper.size-large:nth-child(even) {
  margin-top: 85px;
}

.hex-wrapper.size-large .hex-name {
  font-size: 14px;
}

/* Detail Modal - keep grid visible, blur background */
.detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 42, 40, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.detail-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-content {
  background: #2a2a28;
  border: 1px solid rgba(248, 248, 246, 0.15);
  border-radius: 4px;
  max-width: 600px;
  width: 100%;
  padding: 40px;
  position: relative;
}

.detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(20, 184, 166, 0.9);
  color: #f8f8f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.detail-close:hover {
  background: #0d9488;
  transform: rotate(90deg);
}

.detail-name {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 10px;
  text-transform: lowercase;
  color: #f8f8f6;
}

.detail-domain {
  font-family: 'IBM Plex Mono', monospace;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* Domain colors in detail modal */
.detail-domain.tech { background: var(--color-tech); color: rgba(255, 255, 255, 0.95); }
.detail-domain.art { background: var(--color-art); color: rgba(255, 255, 255, 0.95); }
.detail-domain.words { background: var(--color-words); color: rgba(255, 255, 255, 0.95); }
.detail-domain.travel { background: var(--color-travel); color: rgba(255, 255, 255, 0.95); }
.detail-domain.research { background: var(--color-research); color: rgba(255, 255, 255, 0.95); }
.detail-domain.other { background: var(--color-other); color: rgba(255, 255, 255, 0.95); }

.detail-why {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(248, 248, 246, 0.9);
  font-weight: 300;
}

.detail-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(248, 248, 246, 0.5);
  margin-bottom: 15px;
  font-weight: 300;
}

.detail-link {
  margin-top: 20px;
}

.detail-link a {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 2px;
  color: #14b8a6;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  word-break: break-all;
}

.detail-link a:hover {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #f8f8f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3);
}

.detail-url {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: #14b8a6;
  border: 1px solid #14b8a6;
  border-radius: 2px;
  color: #f8f8f6;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: lowercase;
  margin-top: 10px;
}

.detail-url:hover {
  background: #0d9488;
  border-color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3);
}

.detail-connections {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 248, 246, 0.15);
}

.detail-connections h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(248, 248, 246, 0.6);
  margin-bottom: 10px;
  text-transform: lowercase;
  letter-spacing: 0.15em;
}

.detail-connections ul {
  list-style: none;
}

.detail-connections li {
  font-size: 0.85rem;
  color: rgba(248, 248, 246, 0.8);
  margin-bottom: 5px;
  font-weight: 300;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hex-wrapper {
    width: 140px;
    height: 80px;
    margin: 0 -18px 3px -18px;
  }

  .hex-wrapper:nth-child(even) {
    margin-top: 43px;
  }

  .hex-wrapper.size-medium {
    width: 160px;
    height: 92px;
    margin: 0 -21px 4px -21px;
  }

  .hex-wrapper.size-medium:nth-child(even) {
    margin-top: 49px;
  }

  .hex-wrapper.size-large {
    width: 180px;
    height: 104px;
    margin: 0 -23px 4px -23px;
  }

  .hex-wrapper.size-large:nth-child(even) {
    margin-top: 55px;
  }

  .hex-name {
    font-size: 10px;
  }

  .hex-domain {
    font-size: 7px;
  }

  .detail-content,
  .about-content {
    padding: 30px 20px;
  }

  .detail-name {
    font-size: 1.5rem;
  }

  .filter-buttons {
    gap: 6px;
  }

  .filter-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.65rem;
  }

  .about-button {
    bottom: 2rem;
    right: 2rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hex-wrapper {
    width: 100px;
    height: 58px;
    margin: 0 -13px 2px -13px;
  }

  .hex-wrapper:nth-child(even) {
    margin-top: 31px;
  }

  .hex-name {
    font-size: 8px;
  }

  .hex-domain {
    font-size: 6px;
  }

  .about-button {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}
