:root,
[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-elevated: #111827;
  --bg-card: #151e30;
  --bg-card-hover: #1b273d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(0, 255, 157, 0.35);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --neon-green: #00ff9d;
  --neon-blue: #00f0ff;
  --neon-amber: #fbbf24;
  --shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(11, 15, 25, 0.82);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(5, 150, 105, 0.4);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --neon-green: #059669;
  --neon-blue: #0284c7;
  --neon-amber: #d97706;
  --shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.12);
  --header-bg: rgba(248, 250, 252, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.accent-green {
  color: var(--neon-green);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.brand-slash {
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
}

.brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--neon-blue);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover {
  color: var(--neon-green);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  color: var(--neon-green);
  border-color: var(--border-strong);
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  margin-bottom: 1.1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 2.25rem;
}

/* Hero Bento Showcase */
.hero-bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bento-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  text-align: left;
  display: block;
  width: 100%;
  height: 100%;
}

.bento-main {
  grid-row: 1 / span 2;
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover img {
  transform: scale(1.035);
}

.bento-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.15rem 1rem;
  background: linear-gradient(to top, rgba(6, 10, 18, 0.92) 0%, rgba(6, 10, 18, 0.55) 55%, transparent 100%);
  color: #f8fafc;
}

.bento-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 255, 157, 0.18);
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.35);
  margin-bottom: 0.35rem;
}

.bento-caption {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Specs Bar */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.spec-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon-green);
}

.spec-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections */
.section-kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-blue);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 0.25rem;
}

/* FAQ Section */
.faq-section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.45rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.faq-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.faq-icon {
  font-size: 1.4rem;
  margin-bottom: 0.55rem;
}

.faq-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.faq-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.faq-card strong {
  color: var(--text);
}

/* Story & Gallery Section */
.story-section {
  padding: 2.5rem 0 4rem;
}

.story-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-pill.active {
  background: var(--neon-green);
  color: #06120e;
  border-color: var(--neon-green);
}

.chapters-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.chapter-block {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.chapter-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-green);
}

.chapter-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.chapter-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.chapter-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 780px;
  margin-bottom: 1.35rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.photo-card {
  group: photo;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.photo-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #090d16;
}

.photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.photo-card:hover .photo-thumb-wrap img {
  transform: scale(1.04);
}

.photo-date-tag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: rgba(11, 15, 25, 0.78);
  color: #e2e8f0;
  backdrop-filter: blur(6px);
}

.photo-info {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.photo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.photo-caption {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Album CTA */
.album-cta {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.album-cta-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.album-cta-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--neon-green);
  color: #06120e;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-left a:hover,
.footer-links a:hover {
  color: var(--neon-green);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: min(1080px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f8fafc;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.lb-badge {
  background: rgba(0, 255, 157, 0.16);
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.lb-date,
.lb-counter {
  color: #94a3b8;
}

.lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 74vh;
}

.lb-figure {
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lb-nav:hover {
  background: rgba(0, 255, 157, 0.22);
  border-color: #00ff9d;
}

.lb-prev {
  left: 0.5rem;
}

.lb-next {
  right: 0.5rem;
}

.lightbox-caption-bar {
  text-align: center;
  color: #f8fafc;
  padding: 0.25rem 1rem;
}

.lightbox-caption-bar h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.lightbox-caption-bar p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 190px;
  }

  .bento-main {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

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

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-nav .nav-link:not(.external-link) {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-bento {
    grid-template-columns: 1fr;
    grid-template-rows: 230px 180px 180px;
  }

  .bento-main {
    grid-column: 1;
  }

  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}
