/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #07080d;
  --bg-card:   #0d0f18;
  --bg-section:#0a0c14;
  --accent:    #7b9cff;
  --accent2:   #c084fc;
  --gold:      #f0c060;
  --text:      #e2e6f3;
  --text-muted:#8891aa;
  --border:    rgba(123, 156, 255, 0.15);
  --radius:    10px;
  --font-title:'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --header-h:  70px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent2); }

img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.logo-symbol {
  color: var(--gold);
  font-size: 1.4rem;
  animation: pulse-star 3s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.site-nav a:hover { color: var(--text); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Raw Milky Way image — target of astro-mode filters */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('MilkyWay__FULL_V07302024_web.jpg') center 38% / cover no-repeat;
  transition: filter 3s ease;
}

/* Dark gradient overlay for text legibility — sits above the image */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(7,8,13,0.45)  0%,
    rgba(7,8,13,0.20) 25%,
    rgba(7,8,13,0.50) 55%,
    rgba(7,8,13,0.80) 80%,
    rgba(7,8,13,0.97) 100%
  );
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   ASTRO MODE — background effects per project status
══════════════════════════════════════════════ */

/* Telescope silhouette — injected by startRedFlashlight() */
#heroTelescope {
  height: 48%;
  max-height: 420px;
  width: auto;
  opacity: 0.78;
  filter:
    brightness(0.60)
    saturate(0.75)
    drop-shadow(0 6px 35px rgba(0,0,0,0.98));
  transform-origin: bottom left;
}

@media (max-width: 600px) {
  #heroTelescope {
    height: 30%;
    max-height: 220px;
  }
}

/* NOW IMAGING: strip color, darken — JS canvas supplies the moving red flashlight */
body.astro-imaging .hero::before {
  filter: grayscale(1) brightness(0.55) contrast(1.1);
  transition: filter 3s ease;
}
body.astro-imaging .hero::after {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.20) 25%,
    rgba(0,0,0,0.52) 55%,
    rgba(0,0,0,0.88) 80%,
    rgba(0,0,0,0.97) 100%
  );
}

/* NOW PROCESSING: grayscale slowly fades to full color — image "developing" */
body.astro-processing .hero::before {
  animation: bgColorize 12s ease forwards;
}

@keyframes bgColorize {
  0%   { filter: grayscale(1) brightness(0.7); }
  100% { filter: grayscale(0) brightness(1); }
}

/* UPLOADING SOON: full color, smooth arrival */
body.astro-uploading .hero::before {
  filter: none;
  transition: filter 3s ease;
}

/* Animated star field canvas — above the photo + glow blobs */
.star-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.star-field canvas {
  width: 100%;
  height: 100%;
}



.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow:
    0 2px 20px rgba(0,0,0,0.9),
    0 0 60px rgba(123,156,255,0.45),
    0 0 120px rgba(123,156,255,0.2);
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #b8ccff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.95);
}

.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.85rem 2.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 30px rgba(123,156,255,0.25);
}

.hero-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(123,156,255,0.45);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fade-in-up 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}

.section-header p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════
   GALLERY SECTION
══════════════════════════════════════════════ */
.gallery-section {
  padding: 6rem 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.45rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── 3D Carousel ──────────────────────────────────────────── */
.carousel-scene {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  margin: 0 0 1.5rem;
}

.gallery-grid {
  position: absolute;
  inset: 0;
}

.carousel-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  z-index: 150;
  pointer-events: none;
}

.carousel-edge-left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.carousel-edge-right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.gallery-card {
  position: absolute;
  width: 220px;
  height: 300px;
  left: 50%;
  top: 50%;
  margin-left: -110px;
  margin-top: -150px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.65s ease,
              box-shadow 0.65s ease;
  backface-visibility: hidden;
  will-change: transform, opacity;
  visibility: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.gallery-card.carousel-active {
  box-shadow: 0 30px 80px rgba(0,0,0,0.9),
              0 0 50px rgba(123,156,255,0.28);
  cursor: zoom-in;
}

.gallery-card.carousel-active img {
  transform: scale(1.04);
}

.gallery-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,8,13,0.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  pointer-events: none;
}

.gallery-card.carousel-active .card-overlay {
  opacity: 1;
}

.card-info .card-title {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.card-info .card-cat {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Carousel navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  background: rgba(13,15,24,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  line-height: 1;
  user-select: none;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.12);
}

.carousel-prev { left: 1.2rem; }
.carousel-next { right: 1.2rem; }

.carousel-hint {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════ */
.about-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about-portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-portrait {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(123,156,255,0.35);
  box-shadow:
    0 0 0 6px rgba(123,156,255,0.07),
    0 0 40px rgba(123,156,255,0.18),
    0 8px 30px rgba(0,0,0,0.6);
}

.about-text h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.stat-num {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════ */
.contact-section {
  padding: 6rem 2rem;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.contact-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.85rem 2.6rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--transition);
}

.contact-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(123,156,255,0.3);
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.96);
  cursor: pointer;
}

.lb-content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(123,156,255,0.3) transparent;
}

.lb-frame-wrapper {
  display: inline-flex;
  line-height: 0;
  border-radius: var(--radius);
  position: relative;
  transition: border 0.45s ease, padding 0.45s ease, box-shadow 0.45s ease,
              background 0.45s ease, outline 0.45s ease;
}

/* ── FRAMED STATE ─────────────────────────────────────────── */
.lb-frame-wrapper.framed {
  /* Thin dark inner reveal between frame and image */
  padding: 10px;
  background: linear-gradient(145deg, #0d0f14 0%, #090b10 100%);
  background-clip: padding-box;

  /* Transparent border = space the aluminum frame occupies */
  border: 52px solid transparent;
  border-radius: 4px;

  /* Inner chamfer bevel */
  box-shadow:
    inset 0  0  0  1px rgba(200,215,230,0.45),  /* bright inner lip */
    inset  3px  3px 10px rgba(0,0,0,0.85),
    inset -1px -1px  5px rgba(180,200,220,0.08);
}

/* ── FRAME MOLDING — brushed space aluminum ─────────────── */
.lb-frame-wrapper.framed::before {
  content: "";
  position: absolute;
  inset: -52px;
  z-index: -1;
  pointer-events: none;
  border-radius: 6px;

  /* ── Brushed aluminum face gradient + 8 CSS rivets ────────
     Background layers (top → bottom):
     1-8: rivet dots (radial-gradient, each 14×14px, no-repeat)
     9:   horizontal brushed-metal sheen stripe
     10:  main aluminum directional gradient                    */
  background-image:
    /* Corner rivets */
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    /* Edge-midpoint rivets */
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    radial-gradient(circle, #f0f4f8 2px, #b8c2cc 5px, #707880 7px, transparent 7px),
    /* Subtle cross-brush sheen */
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 55%, transparent 100%),
    /* Aluminum face: light top-left → darker bottom-right */
    linear-gradient(148deg,
      #cdd3dc  0%,
      #b8bec8 15%,
      #9fa6b0 32%,
      #888f9a 50%,
      #767d88 68%,
      #646b76 84%,
      #545a64 100%);

  background-position:
    /* TL, TR, BL, BR corner rivets */
    19px 19px,
    calc(100% - 19px) 19px,
    19px calc(100% - 19px),
    calc(100% - 19px) calc(100% - 19px),
    /* Top-mid, Bottom-mid, Left-mid, Right-mid */
    calc(50% - 7px) 19px,
    calc(50% - 7px) calc(100% - 19px),
    19px calc(50% - 7px),
    calc(100% - 19px) calc(50% - 7px),
    /* sheen + main gradient */
    0 0,
    0 0;

  background-size:
    14px 14px, 14px 14px, 14px 14px, 14px 14px,
    14px 14px, 14px 14px, 14px 14px, 14px 14px,
    100% 100%, 100% 100%;

  background-repeat: no-repeat;

  box-shadow:
    /* ── Face bevels: light from upper-left ── */
    inset 0   6px 14px rgba(255,255,255,0.42),
    inset 0   2px  5px rgba(255,255,255,0.28),
    inset  6px 0  14px rgba(255,255,255,0.32),
    inset  2px 0   5px rgba(255,255,255,0.18),
    inset 0  -6px 14px rgba(0,0,0,0.55),
    inset 0  -2px  5px rgba(0,0,0,0.38),
    inset -6px 0  14px rgba(0,0,0,0.48),
    inset -2px 0   5px rgba(0,0,0,0.32),
    /* ── Sharp outer machined edge ── */
    inset  1px  1px 0 rgba(255,255,255,0.65),
    inset -1px -1px 0 rgba(0,0,0,0.75),
    /* ── Wall cast shadow ── */
     6px 10px  40px rgba(0,0,0,0.95),
    10px 18px  70px rgba(0,0,0,0.82),
    16px 26px 110px rgba(0,0,0,0.65),
    22px 34px 160px rgba(0,0,0,0.42);
}

.lb-img {
  max-width: 88vw;
  max-height: 58vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0,0,0,0.9);
  animation: lb-appear 0.2s ease;
  transition: max-width 0.45s ease, max-height 0.45s ease,
              border-radius 0.45s ease, box-shadow 0.45s ease;
}

.lb-frame-wrapper.framed .lb-img {
  /* shrink to account for border + padding (160 px each side total) */
  max-width:  calc(88vw - 168px);
  max-height: calc(58vh - 168px);
  border-radius: 1px;
  box-shadow: none;
}

@keyframes lb-appear {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-caption {
  text-align: center;
  max-width: 600px;
}

.lb-caption h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.lb-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.lb-meta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lb-close {
  position: fixed;
  top: 1.5rem; right: 1.8rem;
  z-index: 3;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.lb-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.lb-frame-btn {
  position: fixed;
  top: 1.5rem;
  right: 5.2rem;
  z-index: 3;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0 0.9rem;
  height: 2.4rem;
  border-radius: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.lb-frame-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.lb-frame-btn.active {
  background: rgba(123,156,255,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.lb-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: rgba(13,15,24,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 2rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.lb-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .about-portrait-wrap {
    justify-content: center;
  }
  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .carousel-scene { height: 420px; }
  .gallery-card { width: 160px; height: 220px; margin-left: -80px; margin-top: -110px; }
  .hero-title { font-size: 2.4rem; }
  .lb-arrow { display: none; }
  .carousel-hint { display: none; }
  .lb-frame-btn { display: none; }
}

/* ══════════════════════════════════════════════
   AUTH NAV BUTTON
══════════════════════════════════════════════ */
.auth-nav { margin-left: 1.5rem; }

.auth-nav-btn {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(123,156,255,0.4);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.auth-nav-btn:hover,
.auth-nav-btn.logged-in {
  background: rgba(123,156,255,0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   AUTH MODAL
══════════════════════════════════════════════ */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.auth-modal.open { display: flex; }

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.auth-modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.auth-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}
.auth-modal-close:hover { color: var(--text); }

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.auth-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.auth-tab.active,
.auth-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.auth-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.auth-form input:focus { border-color: var(--accent); }
.auth-form button[type="submit"] {
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--transition);
}
.auth-form button[type="submit"]:hover { opacity: 0.88; }

.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap input {
  flex: 1;
  padding-right: 2.8rem !important;
}
.pw-eye {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.pw-eye:hover { opacity: 1; }

.auth-msg {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}
.auth-msg.error   { color: #f87171; }
.auth-msg.success { color: #34d399; }

/* ══════════════════════════════════════════════
   LIGHTBOX DOWNLOAD SECTION
══════════════════════════════════════════════ */
.lb-download {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.lb-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.lb-dl-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #fff;
}
.lb-dl-btn.primary:hover { opacity: 0.85; }

.lb-dl-btn.secondary {
  background: transparent;
  border: 1px solid rgba(123,156,255,0.35);
  color: var(--text-muted);
}
.lb-dl-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

.lb-dl-btn.gold {
  background: linear-gradient(135deg, #c9a84c, #f0d060, #b8892a);
  border: none;
  color: #1a1200;
}
.lb-dl-btn.gold:hover { opacity: 0.88; }

.lb-dl-login {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.lb-dl-login a {
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
}

/* ══════════════════════════════════════════════
   COMING SOON CARD BADGE
══════════════════════════════════════════════ */
.cs-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.cs-badge--imaging    { background: linear-gradient(135deg, rgba(123,156,255,0.92), rgba(160,100,255,0.92)); }
.cs-badge--processing { background: linear-gradient(135deg, rgba(245,158,11,0.92),  rgba(234,88,12,0.92)); }
.cs-badge--uploading  { background: linear-gradient(135deg, rgba(52,211,153,0.92),  rgba(16,185,129,0.92)); color:#0f1117; }

/* ── Badge: shrink on mobile to stay within card ── */
@media (max-width: 600px) {
  .cs-badge {
    font-size: 0.6rem;
    padding: 0.22rem 0.5rem;
    letter-spacing: 0.03em;
  }
}

/* ── Astro-mode overlay panels: responsive ── */
@media (max-width: 600px) {
  #nasaPanel {
    top: auto !important;
    bottom: 6% !important;
    right: 3% !important;
    left: 3% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 48% !important;
    padding: 8px 10px 7px !important;
    font-size: 0.82em !important;
  }
  #curvesPanel {
    display: none !important;
  }
}

/* Banner status accent overrides */
.ni-status-imaging    .ni-label { color: var(--accent); }
.ni-status-imaging    .ni-pulse { background: #7b9cff; box-shadow: 0 0 0 0 rgba(123,156,255,0.6); }
.ni-status-processing .ni-label { color: #f59e0b; }
.ni-status-processing .ni-pulse { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,0.6); }
.ni-status-processing { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, rgba(245,158,11,0.07) 0%, rgba(234,88,12,0.05) 100%); }
.ni-status-uploading  .ni-label { color: #34d399; }
.ni-status-uploading  .ni-pulse { background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
.ni-status-uploading  { border-color: rgba(52,211,153,0.3); background: linear-gradient(135deg, rgba(52,211,153,0.07) 0%, rgba(16,185,129,0.05) 100%); }

/* ══════════════════════════════════════════════
   NOW IMAGING BANNER
══════════════════════════════════════════════ */
#nowImagingBanner {
  margin: 1.5rem auto 0;
  max-width: 860px;
  padding: 0 1rem;
}

.ni-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(123,156,255,0.08) 0%, rgba(180,120,255,0.06) 100%);
  border: 1px solid rgba(123,156,255,0.25);
  border-radius: 14px;
  padding: 1.4rem 1.8rem 1.4rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.ni-pulse {
  position: absolute;
  top: 1.2rem;
  left: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7b9cff;
  box-shadow: 0 0 0 0 rgba(123,156,255,0.6);
  animation: ni-ping 2s infinite;
}

@keyframes ni-ping {
  0%   { box-shadow: 0 0 0 0 rgba(123,156,255,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(123,156,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,156,255,0); }
}

.ni-content {
  padding-left: 0.5rem;
  flex: 1;
}

.ni-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.ni-target {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.ni-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  max-width: 600px;
  line-height: 1.55;
}

.ni-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-bottom: 0.6rem;
}

.ni-meta-item {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ni-teaser {
  font-size: 0.88rem;
  color: #c9a84c;
  font-style: italic;
}

@media (max-width: 600px) {
  .ni-target { font-size: 1.1rem; }
  .ni-banner  { padding: 1.1rem 1rem 1.1rem 1.6rem; }
}
