/* ========== RESET & BASE ========== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html {
  width:100%; height:100%;
  background:#030108;
  overflow:hidden;
}
body {
  height:100%;
  background:#030108;
  font-family:'Jost', sans-serif;
  font-weight:300;
  color:#d5cee8;
  -webkit-font-smoothing:antialiased;
  cursor: default;
}
/* Hide default cursor once JS comet trail is ready */
body.cursor-trail-active,
body.cursor-trail-active .card-item:not(.card-item-expandable):not([data-source]):not([data-sources]) {
  cursor: none;
}
/* ALWAYS show pointer cursor on interactive/clickable elements — never hide it */
a, .card-item-expandable, .expand-box-source, .expand-box-slide-link, .expand-box-thumb-img, .art-thumb, .art-lightbox-close, .art-lightbox-wip, #email-link, [onclick], [data-source], [data-sources] {
  cursor: pointer !important;
}

/* ========== STARFIELD CANVAS ========== */
#starfield {
  position:fixed; inset:0; z-index:0;
  pointer-events:none;
}

/* ========== MAIN LAYOUT ========== */
#main-content {
  position:relative; z-index:1;
  width:100%; height:100vh;
  display:flex; flex-direction:column;
  align-items:center;
  padding:24px 20px 16px;
}

/* ========== LAMEA WATERMARK ========== */
#lamea-watermark {
  position:fixed; top:20px; right:28px; z-index:10;
  font-family:'Playfair Display', serif;
  font-style:italic;
  font-size:22px; font-weight:400;
  color:rgba(200,180,255,0.07);
  letter-spacing:2px;
  pointer-events:none; user-select:none;
}

/* ========== HERO TITLE ========== */
#hero-name {
  font-family:'Hatolie', cursive;
  font-weight:400; font-size:58px;
  letter-spacing:6px;
  color:#f0e8ff;
  align-self:flex-start;
  margin-left:5%;
  margin-top:12px;
  position:relative;
  flex-shrink:0;
  text-shadow:
    0 0 50px rgba(200,180,255,0.95),
    0 0 120px rgba(200,180,255,0.55),
    0 0 240px rgba(160,140,220,0.35),
    0 0 400px rgba(140,120,255,0.18);
  animation:haloGlow 5s ease-in-out infinite;
}
/* Galactic halo pseudo-element behind the title */
#hero-name::before {
  content:'';
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:500px; height:180px;
  background:radial-gradient(ellipse at center,
    rgba(160,140,255,0.4) 0%,
    rgba(120,100,255,0.22) 25%,
    rgba(80,60,200,0.1) 50%,
    transparent 75%);
  border-radius:50%;
  filter:blur(35px);
  pointer-events:none;
  z-index:-1;
  animation:haloBreath 5s ease-in-out infinite;
}
@keyframes haloGlow {
  0%,100% {
    text-shadow:
      0 0 50px rgba(200,180,255,0.95),
      0 0 120px rgba(200,180,255,0.55),
      0 0 240px rgba(160,140,220,0.35),
      0 0 400px rgba(140,120,255,0.18);
  }
  50% {
    text-shadow:
      0 0 65px rgba(200,180,255,1),
      0 0 150px rgba(200,180,255,0.7),
      0 0 300px rgba(160,140,220,0.45),
      0 0 500px rgba(140,120,255,0.25);
  }
}
@keyframes haloBreath {
  0%,100% { opacity:0.7; transform:translate(-50%,-50%) scale(1); }
  50% { opacity:1; transform:translate(-50%,-50%) scale(1.15); }
}


/* ========== CARDS AREA (with edge fades) ========== */
#cards-area {
  position:relative;
  flex:1;
  min-height:0;
  margin-top:28px;
  width:100%;
}

/* Edge fade overlays - REMOVED by user request */

/* ========== CARDS - HORIZONTAL SCROLL ========== */
#cards-grid {
  display:flex;
  gap:20px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:12px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  width:100%;
  align-items:stretch;
  height:100%;
}
#cards-grid::-webkit-scrollbar { height:4px; }
#cards-grid::-webkit-scrollbar-track { background:transparent; }
#cards-grid::-webkit-scrollbar-thumb { background:rgba(200,180,255,0.15); border-radius:2px; }

/* ========== CONSTELLATION CARD ========== */
.constellation-card {
  position:relative;
  min-width:268px;
  max-width:300px;
  flex-shrink:0;
  background:rgba(5,2,20,0.85);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:2px solid rgba(200,180,255,0.12);
  border-radius:12px;
  overflow:visible;
  display:flex;
  flex-direction:column;
  scroll-snap-align:start;
  transition:border-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}
.constellation-card:hover {
  transform:translateY(-2px);
}
/* Per-card border + glow colors */
.card-community { border-color:rgba(255,107,138,0.45); border-top:3px solid rgba(255,107,138,0.7); }
.card-community:hover { border-color:rgba(255,107,138,0.75); border-top-color:rgba(255,107,138,0.9); box-shadow:0 4px 24px rgba(255,107,138,0.18); }
.card-art { border-color:rgba(255,136,85,0.45); border-top:3px solid rgba(255,136,85,0.7); }
.card-art:hover { border-color:rgba(255,136,85,0.75); border-top-color:rgba(255,136,85,0.9); box-shadow:0 4px 24px rgba(255,136,85,0.18); }
.card-impact { border-color:rgba(60,200,220,0.45); border-top:3px solid rgba(60,200,220,0.7); }
.card-impact:hover { border-color:rgba(60,200,220,0.75); border-top-color:rgba(60,200,220,0.9); box-shadow:0 4px 24px rgba(60,200,220,0.18); }
.card-recognition { border-color:rgba(128,232,96,0.45); border-top:3px solid rgba(128,232,96,0.7); }
.card-recognition:hover { border-color:rgba(128,232,96,0.75); border-top-color:rgba(128,232,96,0.9); box-shadow:0 4px 24px rgba(128,232,96,0.18); }


.card-header-wrap {
  position:relative;
  width:100%; height:220px;
  border-radius:12px 12px 0 0;
  overflow:hidden;
}
.card-header-img {
  width:100%; height:220px;
  object-fit:cover;
  transition:transform 0.4s ease, filter 0.4s ease;
}
.constellation-card:hover .card-header-img {
  transform:scale(1.03);
}
/* Per-card image hue shifts — makes each card visually distinct */
.card-community .card-header-img { filter: hue-rotate(-20deg) saturate(1.4) brightness(1.05); }
.card-art .card-header-img { filter: hue-rotate(10deg) saturate(1.3) brightness(1.08) contrast(1.05); }
.card-impact .card-header-img { filter: hue-rotate(50deg) saturate(1.3) brightness(0.95); }
.card-recognition .card-header-img { filter: hue-rotate(90deg) saturate(1.4) brightness(1.05); }

/* Color tint overlay — gives each card header a distinct identity */
.card-header-wrap::after {
  content:'';
  position:absolute; inset:0;
  pointer-events:none;
  z-index:1;
  mix-blend-mode:color;
  opacity:0.55;
}
.card-community .card-header-wrap::after { background:linear-gradient(135deg, rgba(255,80,140,0.7) 0%, rgba(200,50,120,0.5) 50%, rgba(120,20,70,0.3) 100%); }
.card-art .card-header-wrap::after { background:linear-gradient(135deg, rgba(255,160,60,0.65) 0%, rgba(220,100,20,0.5) 50%, rgba(140,50,0,0.3) 100%); }
.card-impact .card-header-wrap::after { background:linear-gradient(135deg, rgba(60,200,220,0.6) 0%, rgba(20,150,180,0.45) 50%, rgba(0,80,100,0.25) 100%); }
.card-recognition .card-header-wrap::after { background:linear-gradient(135deg, rgba(60,255,130,0.6) 0%, rgba(20,200,90,0.45) 50%, rgba(0,100,40,0.25) 100%); }

.card-header-fade {
  position:absolute; bottom:0; left:0; right:0;
  height:80px;
  z-index:2;
  pointer-events:none;
}
.card-community .card-header-fade { background:linear-gradient(to top, rgba(5,2,20,0.95) 0%, rgba(255,107,138,0.08) 60%, transparent 100%); }
.card-art .card-header-fade { background:linear-gradient(to top, rgba(5,2,20,0.95) 0%, rgba(255,136,85,0.08) 60%, transparent 100%); }
.card-impact .card-header-fade { background:linear-gradient(to top, rgba(5,2,20,0.95) 0%, rgba(60,200,220,0.06) 60%, transparent 100%); }
.card-recognition .card-header-fade { background:linear-gradient(to top, rgba(5,2,20,0.95) 0%, rgba(60,255,130,0.06) 60%, transparent 100%); }


.card-category-label {
  font-family:'Playfair Display', serif;
  font-style:italic;
  font-size:17px; font-weight:400;
  letter-spacing:2.5px; text-transform:uppercase;
  padding:12px 14px 0;
  display:flex; align-items:center; justify-content:space-between;
}
.card-category-label .cat-name {
  opacity:1;
  text-shadow:
    0 0 10px currentColor,
    0 0 25px currentColor,
    0 0 50px currentColor;
}
.card-category-label .star-count { letter-spacing:1px; }

.card-items {
  padding:10px 14px 14px;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
  overflow-y:auto;
  overflow-x:hidden;
}
.card-items::-webkit-scrollbar { width:3px; }
.card-items::-webkit-scrollbar-track { background:transparent; }
.card-items::-webkit-scrollbar-thumb { background:rgba(200,180,255,0.12); border-radius:2px; }

.card-item {
  font-family:'Jost', sans-serif;
  font-weight:300;
  font-size:15.5px;
  line-height:1.55;
  color:rgba(210,205,225,0.85);
  padding:4px 6px;
  border-radius:4px;
  cursor:default;
  transition:color 0.2s ease, background 0.2s ease;
  position:relative;
}
.card-item:hover {
  color:#ffffff;
}
.card-item.bright-item {
  color:rgba(235,225,255,0.95);
  font-weight:400;
}
.card-item.bright-item:hover {
  color:#ffffff;
}
/* Per-card item hover tints */
.card-community .card-item:hover { background:rgba(255,107,138,0.08); }
.card-art .card-item:hover { background:rgba(255,136,85,0.08); }
.card-impact .card-item:hover { background:rgba(60,200,220,0.08); }
.card-recognition .card-item:hover { background:rgba(128,232,96,0.08); }

/* Sub-items (indented under a parent heading) */
.card-sub-item {
  font-family:'Jost', sans-serif;
  font-weight:300;
  font-size:13.5px;
  line-height:1.5;
  color:rgba(210,205,225,0.75);
  padding:2px 6px 2px 18px;
  border-radius:4px;
  cursor:default;
  transition:color 0.2s ease, background 0.2s ease;
  position:relative;
}
.card-sub-item::before {
  content:'';
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:1px;
  background:rgba(200,180,255,0.3);
}
.card-sub-item:hover {
  color:rgba(235,225,255,0.95);
}
.card-impact .card-sub-item:hover { background:rgba(60,200,220,0.06); }

/* Item logo */
.item-logo {
  height:16px; width:auto;
  vertical-align:middle;
  margin-right:5px;
  border-radius:2px;
}
.item-logo-white-bg {
  background:rgba(255,255,255,0.92);
  padding:1px 3px;
  border-radius:3px;
}

/* ========== DETAIL POPUP ========== */
.detail-popup {
  position:fixed;
  z-index:1000;
  background:rgba(0,0,0,0.95);
  border:1px solid rgba(200,180,255,0.2);
  border-radius:10px;
  padding:16px 18px;
  max-width:320px;
  min-width:220px;
  pointer-events:none;
  opacity:0;
  transform:translateY(4px);
  transition:opacity 0.25s ease, transform 0.25s ease;
  font-size:14px;
  line-height:1.6;
  color:#ffffff;
  box-shadow:0 8px 32px rgba(0,0,0,0.6);
}
.detail-popup.visible {
  opacity:1;
  transform:translateY(0);
}
.detail-popup a {
  color: rgba(120,200,255,1);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer !important;
}
.detail-popup .detail-tags {
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.detail-popup .detail-tag {
  font-family:'Jost', sans-serif;
  font-weight:300;
  font-size:9px;
  padding:2px 7px;
  border-radius:3px;
  background:rgba(200,180,255,0.12);
  color:rgba(200,180,255,0.8);
  letter-spacing:0.5px;
}
.detail-popup .hot-tag {
  background:rgba(255,100,80,0.2);
  color:rgba(255,140,120,0.9);
}
.detail-popup .detail-thumbs {
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.detail-popup .detail-thumb-img {
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid rgba(200,180,255,0.15);
  opacity:0.85;
}

/* ========== EXPANDABLE CARD ITEM ========== */
.card-item-expandable {
  cursor: pointer !important;
  position: relative;
  padding-right: 18px;
}
.card-item-expandable::after {
  content: '↗';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.card-item-expandable:hover::after {
  opacity: 0.9;
  transform: translateY(-50%) translate(2px, -2px);
}
.card-community .card-item-expandable:hover {
  color: #ff8aaa !important;
  text-shadow: 0 0 14px rgba(255,107,138,0.7), 0 0 30px rgba(255,107,138,0.35);
  background: rgba(255,107,138,0.12);
}
/* Expandable items in ALL cards get pointer cursor + color shift */
.card-impact .card-item-expandable:hover {
  color: rgba(100,230,240,1) !important;
  text-shadow: 0 0 14px rgba(60,200,220,0.7), 0 0 30px rgba(60,200,220,0.35);
  background: rgba(60,200,220,0.12);
}
.card-recognition .card-item-expandable:hover {
  color: rgba(160,255,130,1) !important;
  text-shadow: 0 0 14px rgba(128,232,96,0.7), 0 0 30px rgba(128,232,96,0.35);
  background: rgba(128,232,96,0.12);
}

/* ========== EXPAND BOX MODAL ========== */
.expand-box {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(3,1,8,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.expand-box.active {
  opacity: 1;
  pointer-events: auto;
}
.expand-box-content {
  background: rgba(10,5,30,0.97);
  border: 1px solid rgba(200,180,255,0.2);
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 520px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 40px rgba(200,180,255,0.06);
}
.expand-box-content::-webkit-scrollbar { width: 4px; }
.expand-box-content::-webkit-scrollbar-thumb { background: rgba(200,180,255,0.15); border-radius: 2px; }
.expand-box-text {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(220,215,235,0.92);
  margin-bottom: 16px;
}
.expand-box-text a {
  color: rgba(120,200,255,1);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer !important;
  transition: color 0.2s ease;
}
.expand-box-text a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(120,200,255,0.6);
}
.expand-box-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(100,180,255,0.12);
  border: 1px solid rgba(100,180,255,0.4);
  color: rgba(120,200,255,1);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer !important;
}
.expand-box-source:hover {
  background: rgba(100,180,255,0.25);
  border-color: rgba(120,200,255,0.8);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(100,180,255,0.3), 0 0 8px rgba(100,180,255,0.2);
  transform: translateY(-1px);
}
.expand-box-source::before {
  content: '↗';
  font-size: 13px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.expand-box-source:hover::before {
  opacity: 1;
  transform: translate(1px, -1px);
}
.expand-box-sources-label {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(120,200,255,0.7);
  margin-bottom: 8px;
  margin-top: 2px;
}
.expand-box-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.expand-box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.expand-box-tags .detail-tag {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.expand-box-thumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.expand-box-thumb-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(200,180,255,0.15);
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.expand-box-thumb-img:hover {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(200,180,255,0.25);
  border-color: rgba(200,180,255,0.4);
}
.expand-box-slides-label {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(200,180,255,0.5);
  margin-bottom: 8px;
}
.expand-box-slides {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.expand-box-slide-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(100,180,255,0.1);
  border: 1px solid rgba(100,180,255,0.3);
  text-decoration: none;
  color: rgba(120,200,255,0.95);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.expand-box-slide-link:hover {
  background: rgba(100,180,255,0.2);
  border-color: rgba(120,200,255,0.6);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(100,180,255,0.2);
}
.expand-box-slide-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.expand-box-slide-name {
  flex: 1;
}
.expand-box-slide-arrow {
  font-size: 14px;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.expand-box-slide-link:hover .expand-box-slide-arrow {
  opacity: 0.9;
  transform: translateX(3px);
}

/* ========== POSTER VIEWER (inside expand box) ========== */
.expand-box-poster-viewer {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(3,1,8,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.expand-box-poster-viewer.active {
  opacity: 1;
  pointer-events: auto;
}
.expand-box-poster-viewer img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 30px rgba(200,180,255,0.08);
}

/* ========== CONTACT ========== */
#contact-bar {
  flex-shrink:0;
  margin-top:8px;
  font-family:'Jost', sans-serif;
  font-weight:300;
  font-size:14px;
  letter-spacing:1.5px;
  color:rgba(200,180,255,0.8);
  text-align:center;
  line-height:1.8;
  padding-bottom:4px;
}
#contact-bar a {
  color:rgba(120,200,255,0.95);
  text-decoration:underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(120,200,255,0.4);
  transition:color 0.3s ease, text-shadow 0.3s ease, text-decoration-color 0.3s ease;
}
#contact-bar a:hover {
  color:#ffffff;
  text-decoration-color: rgba(255,255,255,0.8);
  text-shadow:
    0 0 14px rgba(120,200,255,0.95),
    0 0 35px rgba(100,180,255,0.65),
    0 0 70px rgba(80,150,255,0.4);
}

/* ========== CURSOR TRAIL (drawn on canvas) ========== */
#cursor-trail {
  position:fixed;
  inset:0;
  z-index:9999;
  pointer-events:none;
}

/* ========== SHOOTING STARS (CSS supplementary - main ones drawn on canvas) ========== */
.shooting-star {
  position:fixed;
  width:80px; height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,0.6), transparent);
  border-radius:1px;
  pointer-events:none;
  z-index:2;
  opacity:0;
}

/* ========== ART CARD - Instagram-style Thumbnail Grid ========== */
.art-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding: 0 2px;
}
.art-thumb {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.art-thumb:hover {
  box-shadow: 0 0 10px rgba(90,140,255,0.4);
}
.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Scroll hint - bouncing chevron at bottom of art card */
.card-art .card-items {
  position: relative;
}
.art-scroll-hint {
  position: sticky;
  bottom: 0;
  text-align: center;
  padding: 8px 0 4px;
  pointer-events: none;
  flex-shrink: 0;
}
.art-scroll-hint svg {
  animation: chevronBounce 2s ease-in-out infinite, chevronGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(90,140,255,0.9)) drop-shadow(0 0 18px rgba(90,140,255,0.6)) drop-shadow(0 0 30px rgba(90,140,255,0.3));
}
.art-scroll-hint.hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
}
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes chevronGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(90,140,255,0.9)) drop-shadow(0 0 18px rgba(90,140,255,0.6)) drop-shadow(0 0 30px rgba(90,140,255,0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(90,140,255,1)) drop-shadow(0 0 26px rgba(90,140,255,0.8)) drop-shadow(0 0 44px rgba(90,140,255,0.5));
  }
}

/* ========== SCROLL HINT (chevron) - generic for all cards ========== */
.scroll-hint {
  position: sticky;
  bottom: 0;
  text-align: center;
  padding: 6px 0 2px;
  pointer-events: none;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.scroll-hint svg {
  animation: chevronBounce 2s ease-in-out infinite;
}
.scroll-hint.hidden {
  opacity: 0;
}

/* ========== SCROLL DOT INDICATOR ========== */
.scroll-dot-track {
  position: absolute;
  right: 3px;
  top: 240px; /* below header image */
  bottom: 8px;
  width: 3px;
  background: rgba(200,180,255,0.06);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.constellation-card:hover .scroll-dot-track {
  opacity: 1;
}
.scroll-dot {
  width: 3px;
  border-radius: 2px;
  background: rgba(200,180,255,0.35);
  position: absolute;
  top: 0;
  height: 20px;
  transition: top 0.15s ease-out, height 0.15s ease-out;
}

/* ========== ART LIGHTBOX ========== */
.art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3,1,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.art-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
/* Art Lightbox - Enhanced with sidebar */
.art-lightbox-content {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 90vw;
  max-height: 85vh;
}
.art-lightbox-img {
  max-width: 70vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(90,140,255,0.15), 0 0 120px rgba(90,140,255,0.05);
  flex-shrink: 1;
}
.art-lightbox-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 140px;
  max-width: 200px;
  flex-shrink: 0;
  padding: 8px 0;
}
.art-lightbox-medium {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(90,140,255,0.95);
  letter-spacing: 1px;
  line-height: 1.5;
  text-shadow: 0 0 12px rgba(90,140,255,0.5);
}
.art-lightbox-date {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(200,180,255,0.85);
  letter-spacing: 2px;
}
.art-lightbox-wip {
  max-width: 150px;
  max-height: 180px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 10px rgba(255,136,85,0.4));
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid rgba(255,136,85,0.3);
}
.art-lightbox-wip.visible {
  opacity: 1;
}
.art-lightbox-wip.visible:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(255,136,85,0.6));
  border-color: rgba(255,136,85,0.6);
}
.art-lightbox-tag {
  display: none;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
}
.art-lightbox-tag.tag-restoration {
  background: rgba(255,180,60,0.15);
  border: 1px solid rgba(255,180,60,0.5);
  color: rgba(255,200,100,0.95);
  text-shadow: 0 0 8px rgba(255,180,60,0.4);
}
.art-lightbox-tag.tag-wartime {
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.45);
  color: rgba(255,140,140,0.95);
  text-shadow: 0 0 8px rgba(255,80,80,0.35);
}
.art-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2100;
  background: rgba(5,2,20,0.6);
  border: 1px solid rgba(200,180,255,0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: rgba(200,180,255,0.6);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.art-lightbox-close:hover {
  background: rgba(90,140,255,0.25);
  border-color: rgba(90,140,255,0.5);
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width:900px) {
  #cards-grid {
    gap:14px;
  }
  #hero-name { font-size:40px; letter-spacing:4px; margin-left:4%; }
}
@media (max-width:600px) {
  /* Switch to vertical scroll on mobile — cards stack top-to-bottom */
  html { overflow-y: auto; overflow-x: hidden; }
  body { height: auto; min-height: 100vh; }
  #main-content { height: auto; min-height: 100vh; }
  #cards-area { min-height: 0; flex: none; }
  #cards-grid {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    gap: 14px;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .constellation-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    scroll-snap-align: none;
    flex-shrink: 0;
  }
  .card-header-wrap { height: 160px; }
  .card-header-img { height: 160px; }
  .card-items { max-height: 50vh; }
  .scroll-dot-track { display: none; }
  #hero-name { font-size:28px; letter-spacing:2px; margin-top:6px; margin-left:3%; }
  .card-item { font-size:13.5px; }
  #contact-bar { font-size:11px; padding: 12px 8px 16px; }
  #lamea-watermark { font-size:18px; top:14px; right:16px; }
  .art-thumb-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  /* Mobile-friendly detail popup */
  .detail-popup {
    max-width: calc(100vw - 24px);
    min-width: 200px;
    font-size: 13px;
  }
  /* Art Lightbox - Mobile responsive */
  .art-lightbox-content {
    flex-direction: column;
    gap: 12px;
  }
  .art-lightbox-img {
    max-width: 90vw;
    max-height: 60vh;
  }
  .art-lightbox-sidebar {
    flex-direction: row;
    min-width: auto;
    max-width: 90vw;
    align-items: center;
    gap: 16px;
  }
  .art-lightbox-wip {
    max-width: 60px;
    max-height: 70px;
  }
  /* Expand box - mobile */
  .expand-box-content {
    padding: 20px 18px;
    max-width: calc(100vw - 24px);
  }
  .expand-box-thumb-img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width:400px) {
  .constellation-card { min-width: 0; max-width: 100%; width: 100%; }
  #hero-name { font-size:22px; letter-spacing:1px; }
  .card-header-img { height:130px; }
  .card-header-wrap { height:130px; }
  .card-item { font-size:12px; }
}


