/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM — Vashishth Goswami Portfolio
   Editorial luxury · Interactive depth · Taste & range
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────── */
:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --text: #E8E4DC;
  --muted: #6B6560;
  --accent: #C8A96E;
  --accent-dim: rgba(200, 169, 110, 0.22);
  --accent-faint: rgba(200, 169, 110, 0.11);
  --accent-glow: rgba(200, 169, 110, 0.06);
  --grid: rgba(200, 169, 110, 0.06);
  --green: #4ADE80;
  --blue: #60A5FA;
  --font-serif: 'Cormorant Garamond', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(24px, 6vw, 120px);
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* scroll-behavior handled by Lenis */
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(200, 169, 110, 0.3);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
}

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

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

/* ── Grid Background ────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
}

.grid-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 60px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-dim), transparent);
}

.grid-bg-line-left {
  position: fixed;
  top: 0;
  left: 60px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-faint), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Scroll Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ── Hero Section ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  position: relative;
}

.hero-meta {
  position: absolute;
  top: 40px;
  left: var(--pad-x);
  display: flex;
  gap: 32px;
  align-items: center;
}

.coordinate {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.coordinate-value {
  color: var(--accent);
}

.timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

.hero-nav {
  position: absolute;
  top: 40px;
  right: var(--pad-x);
  display: flex;
  gap: 24px;
}

.hero-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.hero-nav a:hover {
  color: var(--accent);
}

.hero-content {
  max-width: 900px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s var(--ease-out) 0.3s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-bio {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s var(--ease-out) 0.7s forwards;
}

.hero-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  opacity: 0;
  animation: heroFade 1s ease 1.2s forwards;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--accent-dim);
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFade 1s ease 1.5s forwards;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200, 169, 110, 0.4), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .dot {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin-left: -1px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(28px); opacity: 0; }
}

/* ── Section Divider ────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--pad-x);
  margin: 80px 0 40px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-dim);
}

.divider-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Section Shared ─────────────────────────────────── */
.section {
  padding: 40px var(--pad-x) 100px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Interest Grid (Homepage) ───────────────────────── */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
}

.interest-card {
  display: block;
  padding: 32px 28px;
  background: transparent;
  border: 1px solid var(--accent-faint);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.interest-card:hover {
  background: rgba(200, 169, 110, 0.04);
  border-color: rgba(200, 169, 110, 0.25);
}

.interest-card-icon {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-serif);
  font-size: 28px;
  color: rgba(200, 169, 110, 0.08);
  transition: color 0.4s ease;
}

.interest-card:hover .interest-card-icon {
  color: rgba(200, 169, 110, 0.3);
}

.interest-card-number {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.interest-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.interest-card-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Project Cards (Homepage) ───────────────────────── */
.project-list {
  border-top: 1px solid rgba(200, 169, 110, 0.1);
}

.project-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  padding: 40px 32px;
  background: transparent;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  transition: all 0.4s ease;
  cursor: default;
}

.project-card:hover {
  background: rgba(200, 169, 110, 0.03);
}

.project-card-id {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(200, 169, 110, 0.25);
  transition: color 0.4s ease;
}

.project-card:hover .project-card-id {
  color: var(--accent);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.project-card-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.project-card-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.project-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.status-dot--dev { background: var(--green); color: var(--green); }
.status-dot--research { background: var(--accent); color: var(--accent); }
.status-dot--shipped { background: var(--blue); color: var(--blue); }

.status-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.project-card-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s var(--ease-out);
}

.project-card:hover .project-card-desc {
  max-height: 200px;
  opacity: 1;
}

.project-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid rgba(200, 169, 110, 0.1);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.project-card:hover .project-tag {
  color: var(--accent);
  border-color: rgba(200, 169, 110, 0.3);
}

/* ── Project Card link wrapper + actions ───────────── */
.project-card-link-wrap {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.project-card-action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  transition: all 0.3s ease;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.project-card-action--ghost {
  color: var(--muted);
}

.project-card-link-wrap:hover .project-card-action {
  border-bottom-color: var(--accent);
}

.project-card-action--ghost:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Contact Section ────────────────────────────────── */
.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--text);
  border-bottom: 1px solid rgba(200, 169, 110, 0.2);
  padding-bottom: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(200, 169, 110, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(200, 169, 110, 0.3);
}

/* ═══════════════════════════════════════════════════════
   INTEREST PAGES — Shared Styles
   ═══════════════════════════════════════════════════════ */

/* ── Interest Tab Navigation ────────────────────────── */
.interest-nav {
  display: flex;
  gap: 0;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  overflow-x: auto;
}

.interest-nav::-webkit-scrollbar {
  height: 0;
}

.interest-nav-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.interest-nav-link:hover {
  color: var(--text);
}

.interest-nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.interest-nav-icon {
  font-size: 14px;
}

/* ── Interest Page Layout ───────────────────────────── */
.interest-page {
  padding: 40px var(--pad-x);
  min-height: calc(100vh - 120px);
}

.interest-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.interest-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  color: var(--text);
  margin: 0 0 48px;
  line-height: 1.1;
}

.interest-title em {
  font-style: italic;
  font-weight: 500;
}

.interest-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Interest Footer ────────────────────────────────── */
.interest-footer {
  padding: 24px var(--pad-x);
  border-top: 1px solid var(--accent-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-footer-left {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.interest-footer-back {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(200, 169, 110, 0.3);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.interest-footer-back:hover {
  color: var(--accent);
}

/* ── Interest Page: F1 Telemetry ────────────────────── */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-bottom: 24px;
}

.telemetry-cell {
  background: rgba(200, 169, 110, 0.04);
  border: 1px solid rgba(200, 169, 110, 0.1);
  padding: 20px 16px;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 8px;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.telemetry-unit {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}

.telemetry-canvas-wrap {
  position: relative;
  margin-bottom: 32px;
}

.telemetry-canvas {
  width: 100%;
  height: 200px;
  display: block;
  background: rgba(200, 169, 110, 0.02);
  border: 1px solid rgba(200, 169, 110, 0.1);
}

.telemetry-legend {
  position: absolute;
  top: 8px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

.telemetry-legend-item {
  display: inline-block;
  margin-right: 12px;
}

/* ── Editorial Text (shared across interest pages) ─── */
.editorial-text {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 300;
  max-width: 600px;
}

.editorial-text em {
  font-style: italic;
  color: var(--accent);
}

.editorial-detail {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
  max-width: 600px;
}

.interest-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.interest-meta div {
  margin-bottom: 4px;
}

.interest-meta .live-badge {
  color: var(--accent);
  margin-top: 4px;
}

.interest-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════ */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--pad-x);
  background: var(--bg);
}

.error-container {
  max-width: 600px;
  text-align: center;
}

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(72px, 15vw, 160px);
  font-weight: 300;
  color: rgba(200, 169, 110, 0.15);
  line-height: 1;
  margin-bottom: 24px;
}

.error-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 16px;
}

.error-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 24px;
  border: 1px solid var(--accent-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.error-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200, 169, 110, 0.06);
}

.error-prompt {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

.error-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   SCROLL EFFECTS & INTERACTIVE ARTIFACTS
   ═══════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ──────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ── Custom Cursor ────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, opacity 0.3s;
}

.has-cursor .cursor-dot,
.has-cursor .cursor-ring {
  opacity: 1;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}

.cursor-dot.hover {
  width: 4px;
  height: 4px;
}

/* ── Hero Canvas (Three.js) ───────────────────────── */
.hero-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Atmosphere Overlay ───────────────────────────── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  transition: background 1.2s ease;
}

/* ── Split Text ───────────────────────────────────── */
.split-word {
  overflow: hidden;
  vertical-align: top;
}
.split-visible .split-word-inner {
  transform: translateY(0%) !important;
}

/* ── Line-Draw Dividers ───────────────────────────── */
.divider {
  opacity: 1;
}

.divider::before,
.divider::after {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}

.divider::before {
  transform-origin: left;
}

.divider::after {
  transform-origin: right;
}

.divider.visible::before,
.divider.visible::after {
  transform: scaleX(1);
}

.divider .divider-label {
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.divider.visible .divider-label {
  opacity: 1;
}

/* Fix divider reveal: don't translateY, just control lines */
.divider.reveal {
  opacity: 1;
  transform: none;
}

/* ── Project Card Stagger Directions ──────────────── */
.project-card[data-reveal-dir="left"] {
  opacity: 0;
  transform: translateX(-40px) rotate(-0.5deg);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.project-card[data-reveal-dir="right"] {
  opacity: 0;
  transform: translateX(40px) rotate(0.5deg);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.project-card[data-reveal-dir].visible {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

/* ── Interest Card Hover Tilt ─────────────────────── */
.interest-card {
  transition: all 0.4s ease, transform 0.15s ease;
  transform-style: preserve-3d;
}

/* ── Blur Reveal (interest pages) ─────────────────── */
[data-blur-reveal] {
  filter: blur(3px);
  opacity: 0.4;
  transition: filter 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}

[data-blur-reveal].blur-visible {
  filter: blur(0px);
  opacity: 1;
}

/* ── Magnetic Button Reset ────────────────────────── */
.hero-nav a,
.social-link,
.error-btn,
.interest-footer-back {
  transition: transform 0.3s var(--ease-out), color 0.3s ease, border-color 0.3s ease;
}

/* ── Reduced Motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .split-word-inner { transform: none !important; }
  [data-speed] { transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .scroll-progress { display: none !important; }
  .hero-canvas { display: none !important; }
  .atmosphere { display: none !important; }
  [data-blur-reveal] { filter: none !important; opacity: 1 !important; }
  .divider::before, .divider::after { transform: scaleX(1) !important; transition: none !important; }
  .project-card[data-reveal-dir] { transform: none !important; }
  .interest-card { transition: all 0.4s ease !important; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
  }

  .hero-meta {
    position: relative;
    top: auto;
    left: auto;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
    padding-top: 24px;
  }

  .hero-nav {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 32px;
  }

  .hero {
    justify-content: flex-start;
    padding-top: 24px;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 60px);
  }

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

  .project-card {
    grid-template-columns: 50px 1fr;
    padding: 24px 16px;
  }

  .project-card-id {
    font-size: 24px;
  }

  .project-card-title {
    font-size: 22px;
  }

  .cars-layout {
    flex-direction: column;
  }

  .cars-timeline {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(200, 169, 110, 0.08);
    display: flex;
    overflow-x: auto;
  }

  .car-item {
    padding: 12px 16px;
    border-bottom: none;
    border-right: 1px solid var(--accent-faint);
    white-space: nowrap;
  }

  .car-item-indicator {
    right: auto;
    bottom: -1px;
    left: 0;
    right: 0;
    top: auto;
    width: auto;
    height: 2px;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .interest-nav {
    padding: 0 16px;
  }

  .grid-bg-line-left {
    display: none;
  }

  .grid-bg::after {
    display: none;
  }

  .hero-canvas {
    display: none;
  }

  .cursor-dot, .cursor-ring {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-tags {
    gap: 8px;
  }

  .hero-tag {
    font-size: 9px;
    padding: 4px 8px;
  }

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

  .interest-nav-link {
    padding: 12px 14px;
    font-size: 9px;
  }
}

/* ═══════════════════════════════════════════════════════
   F1 INTEREST PAGE — Extended Styles
   Next Race Hero, Session Schedule, Season Calendar
   ═══════════════════════════════════════════════════════ */

/* ── Section Divider (F1) ─────────────────────────────── */
.f1-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 32px;
}

.f1-section-divider::before,
.f1-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-dim);
}

.f1-section-divider-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Next Race Hero ───────────────────────────────────── */
.f1-next-race {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  margin-bottom: 48px;
  min-height: 340px;
}

.f1-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.f1-track-svg-container {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.f1-track-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.f1-track-svg-container svg path {
  stroke: var(--accent);
  stroke-width: 3.5;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(200, 169, 110, 0.35))
          drop-shadow(0 0 20px rgba(200, 169, 110, 0.12));
  transition: stroke 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

/* Track draw animation */
.f1-track-svg-container svg path.track-draw {
  stroke-dasharray: var(--track-length, 2000);
  stroke-dashoffset: var(--track-length, 2000);
  animation: trackDraw 2.4s var(--ease-out) 0.3s forwards;
}

@keyframes trackDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Track placeholder for missing SVGs */
.f1-track-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

/* Race Info Panel */
.f1-race-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.f1-race-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}

.f1-race-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.f1-race-name em {
  font-style: italic;
  font-weight: 500;
}

.f1-race-country {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: -16px;
}

.f1-race-circuit {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

/* ── Countdown Timer ──────────────────────────────────── */
.f1-countdown {
  display: flex;
  gap: 0;
  align-items: flex-end;
}

.f1-countdown-cell {
  text-align: center;
  min-width: 56px;
}

.f1-countdown-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.f1-countdown-unit {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

.f1-countdown-sep {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--accent);
  line-height: 1;
  padding: 0 2px;
  margin-bottom: 18px;
  animation: colonBlink 1s step-end infinite;
}

@keyframes colonBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

.f1-countdown-past {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
}

/* ── Circuit Stats ────────────────────────────────────── */
.f1-circuit-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.f1-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f1-stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.f1-stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Session Schedule ─────────────────────────────────── */
.f1-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-bottom: 8px;
}

.f1-session-card {
  background: rgba(200, 169, 110, 0.04);
  border: 1px solid rgba(200, 169, 110, 0.1);
  padding: 20px 16px;
  transition: all 0.3s ease;
}

.f1-session-card:hover {
  background: rgba(200, 169, 110, 0.07);
  border-color: rgba(200, 169, 110, 0.2);
}

.f1-session-card--race {
  border-color: var(--accent-dim);
}

.f1-session-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.f1-session-time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.f1-session-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ── Season Calendar ──────────────────────────────────── */
.f1-calendar {
  border-top: 1px solid rgba(200, 169, 110, 0.1);
}

.f1-calendar-item {
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.f1-calendar-item:hover {
  background: rgba(200, 169, 110, 0.03);
}

.f1-calendar-item.active,
.f1-calendar-item.expanded {
  background: rgba(200, 169, 110, 0.04);
  border-bottom-color: rgba(200, 169, 110, 0.15);
}

.f1-calendar-header {
  display: grid;
  grid-template-columns: 48px 1fr auto 28px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  user-select: none;
}

.f1-calendar-round {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: center;
}

.f1-calendar-item.active .f1-calendar-round,
.f1-calendar-item.expanded .f1-calendar-round {
  color: var(--accent);
}

.f1-cal-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.f1-calendar-name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f1-calendar-item:hover .f1-calendar-name {
  color: var(--accent);
}

.f1-cal-country {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.f1-cal-sprint-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: #E44D26;
  border: 1px solid rgba(228, 77, 38, 0.3);
  padding: 1px 6px;
  border-radius: 2px;
  line-height: 1.4;
}

.f1-calendar-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  min-width: 80px;
  text-align: right;
}

.f1-calendar-toggle {
  color: var(--muted);
  transition: transform 0.35s var(--ease-out), color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f1-calendar-item.expanded .f1-calendar-toggle {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ── Calendar Expanded Panel ──────────────────────────── */
.f1-cal-expanded {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}

.f1-calendar-item.expanded .f1-cal-expanded {
  max-height: 500px;
  opacity: 1;
}

.f1-cal-expanded-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 8px 0 24px 48px;
}

.f1-cal-track-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.f1-cal-track-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  opacity: 0.55;
  transition: opacity 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(200, 169, 110, 0.15));
}

.f1-calendar-item.expanded .f1-cal-track-img {
  opacity: 0.85;
}

.f1-cal-track-img path {
  stroke: var(--accent);
}

.f1-cal-detail-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Circuit Specs Row */
.f1-cal-specs {
  display: flex;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
}

.f1-cal-spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.f1-cal-spec-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.f1-cal-spec-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* Session Schedule in Expanded */
.f1-cal-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.f1-cal-session-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200, 169, 110, 0.04);
}

.f1-cal-session-row:last-child {
  border-bottom: none;
}

.f1-cal-session-row.is-race {
  border-top: 1px solid rgba(200, 169, 110, 0.1);
  padding-top: 10px;
  margin-top: 2px;
}

.f1-cal-session-row.is-race .f1-cal-session-name {
  color: var(--accent);
  font-weight: 500;
}

.f1-cal-session-row.is-sprint .f1-cal-session-name {
  color: #E44D26;
}

.f1-cal-session-day {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.f1-cal-session-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.f1-cal-session-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.f1-cal-session-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  min-width: 56px;
  text-align: right;
}

/* Calendar next-race indicator */
.f1-calendar-item.is-next .f1-calendar-round {
  color: var(--accent);
  font-weight: 700;
}

.f1-calendar-item.is-next .f1-calendar-name {
  color: var(--accent);
}

.f1-calendar-item.is-next::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

/* Past race styling */
.f1-calendar-item.is-past .f1-calendar-name,
.f1-calendar-item.is-past .f1-calendar-round,
.f1-calendar-item.is-past .f1-calendar-date,
.f1-calendar-item.is-past .f1-cal-country {
  opacity: 0.35;
}

/* ── Stats Grid ──────────────────────────────────────── */
.f1-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 8px;
  background: rgba(200, 169, 110, 0.06);
}

.f1-stats-card {
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.3s ease;
}

.f1-stats-card:hover {
  background: rgba(200, 169, 110, 0.04);
}

.f1-stats-value {
  font-family: var(--font-mono);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.f1-stats-unit {
  font-size: 0.45em;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

.f1-stats-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.f1-stats-detail {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Engineering Section ─────────────────────────────── */
.f1-engineering {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(200, 169, 110, 0.1);
}

.f1-eng-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  transition: background 0.3s ease;
}

.f1-eng-item:hover {
  background: rgba(200, 169, 110, 0.02);
}

.f1-eng-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  padding-top: 3px;
}

.f1-eng-content {
  max-width: 640px;
}

.f1-eng-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 8px;
}

.f1-eng-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Telemetry Section Label ──────────────────────────── */
.f1-telemetry-section {
  margin-top: 56px;
}

/* ═══════════════════════════════════════════════════════
   F1 PAGE — Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .f1-next-race {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

  .f1-track-wrap {
    order: -1;
    padding: 16px 0;
  }

  .f1-track-svg-container {
    max-width: 280px;
    margin: 0 auto;
  }

  .f1-countdown-cell {
    min-width: 44px;
  }

  .f1-countdown-value {
    font-size: 28px;
  }

  .f1-circuit-stats {
    gap: 16px;
  }

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

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

  .f1-eng-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .f1-calendar-header {
    grid-template-columns: 36px 1fr auto 24px;
    gap: 10px;
  }

  .f1-cal-expanded-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 36px;
  }

  .f1-cal-track-col {
    display: none;
  }

  .f1-cal-session-row {
    grid-template-columns: 36px 1fr auto;
    gap: 8px;
  }

  .f1-cal-session-date {
    display: none;
  }
}

@media (max-width: 480px) {
  .f1-sessions-grid {
    grid-template-columns: 1fr;
  }

  .f1-stats-grid {
    grid-template-columns: 1fr;
  }

  .f1-race-name {
    font-size: 24px;
  }

  .f1-countdown-cell {
    min-width: 36px;
  }

  .f1-countdown-value {
    font-size: 24px;
  }

  .f1-countdown-sep {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .f1-calendar-header {
    grid-template-columns: 28px 1fr auto 20px;
    gap: 8px;
  }

  .f1-calendar-date {
    display: none;
  }

  .f1-calendar-name {
    font-size: 14px;
  }

  .f1-cal-expanded-inner {
    padding-left: 28px;
  }

  .f1-cal-specs {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════════
   WANDERLUST — Globe, Panel, Filters, Location Cards
   ═══════════════════════════════════════════════════════ */

/* ── Stats Bar ──────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.stat-count {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

/* ── Globe Container ────────────────────────────────── */
.globe-section {
  position: relative;
  margin-bottom: 32px;
}

.globe-container {
  width: 100%;
  height: 520px;
  border: 1px solid var(--accent-faint);
  background: rgba(10, 10, 10, 0.6);
  position: relative;
  overflow: hidden;
}

.globe-container canvas {
  outline: none;
}

.globe-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.globe-loading-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  animation: globePulse 2s ease-in-out infinite;
}

@keyframes globePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Legend ──────────────────────────────────────────── */
.globe-legend {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Filter Bar ─────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--accent-faint);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200, 169, 110, 0.06);
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--accent-faint);
  margin: 0 8px;
}

/* ── Section Dividers (Wanderlust) ──────────────────── */
.wanderlust-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
}

.wanderlust-section-divider::before,
.wanderlust-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-faint);
}

.wanderlust-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Location Cards Grid ────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  margin-bottom: 48px;
}

.location-card {
  padding: 24px 20px;
  border: 1px solid var(--accent-faint);
  background: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.location-card:hover {
  border-color: rgba(200, 169, 110, 0.3);
  background: rgba(200, 169, 110, 0.03);
}

/* Blueprint corner marks */
.location-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(200, 169, 110, 0.15);
  border-left: 1px solid rgba(200, 169, 110, 0.15);
}

.location-card::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  border-right: 1px solid rgba(200, 169, 110, 0.15);
}

.loc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.loc-card-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
}

.loc-card-year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}

.loc-card-name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.loc-card-place {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.loc-card-architect {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.loc-card-category {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--accent-faint);
  display: inline-block;
  margin-bottom: 12px;
}

.loc-card-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-height: 46px;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.location-card:hover .loc-card-note {
  max-height: 200px;
}

/* ── Wanderlust Mobile ──────────────────────────────── */
@media (max-width: 768px) {
  .globe-container {
    height: 50vh;
  }

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

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 9px;
  }

  .filter-divider {
    display: none;
  }

  .stats-bar {
    gap: 16px;
  }
}
