:root {
  --canvas-white: #F9FAFB;
  --pure-surface: #FFFFFF;
  --charcoal-ink: #18181B;
  --steel-secondary: #71717A;
  --muted-slate: #94A3B8;
  --whisper-border: rgba(226, 232, 240, 0.5);
  --diffused-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  
  /* Accent */
  --emerald-signal: #10B981;
  --electric-blue: #3B82F6;
  
  /* Legacy/Support mapping */
  --on-surface: var(--charcoal-ink);
  --on-surface-variant: var(--steel-secondary);
  --divider: var(--whisper-border);
  --charcoal-surface: #18181B;

  /* Spacing */
  --space-section: clamp(6rem, 12vw, 10rem);

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas-white);
  color: var(--charcoal-ink);
  font-family: 'Geist Sans', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

h1, h2, h3 {
  font-family: 'Geist Display', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.mono, .mono-font {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--steel-secondary);
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--on-surface-variant);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

/* Layout */
section {
  padding: var(--space-section) 0;
  position: relative;
}

/* Navigation */
.nav-ghost-pill {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--whisper-border);
  padding: 12px 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 48px;
  z-index: 1000;
}

.btn-archive {
  padding: 8px 24px;
  background: var(--charcoal-ink);
  color: var(--canvas-white);
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo {
  font-family: 'Geist Display', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--charcoal-ink);
}

/* Hero Section */
.hero-editorial {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 160px 5% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-editorial h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 32px;
}

.inline-photo {
  display: inline-block;
  width: 1.2em;
  height: 0.8em;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  vertical-align: middle;
  margin: 0 4px;
}
.inline-photo.p1 {
  background-image: url("https://picsum.photos/seed/car1/100/100");
}
.inline-photo.p2 {
  background-image: url("https://picsum.photos/seed/mark/100/100");
}

.hero-subtext {
  font-size: 1.25rem;
  color: var(--charcoal-ink);
  max-width: 500px;
  margin-bottom: 48px;
}

.btn-primary-archive {
  display: inline-block;
  padding: 16px 32px;
  background: var(--charcoal-ink);
  color: var(--canvas-white);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.artifact-frame {
  position: relative;
  padding: 24px;
  background: var(--pure-surface);
  border: 1px solid var(--whisper-border);
  box-shadow: var(--diffused-shadow);
}

.artifact-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.artifact-meta {
  margin-top: 16px;
  text-align: right;
}

/* Archive Studies Bento Grid */
.archive-studies {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-section) 5%;
}

.study-tile {
  background: var(--pure-surface);
  border: 1px solid var(--whisper-border);
  border-radius: 40px;
  padding: 48px;
  position: relative;
  box-shadow: var(--diffused-shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.study-tile:hover {
  transform: translateY(-8px);
  border-color: var(--electric-blue);
}

.scanner-study {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.study-meta {
  margin-bottom: 24px;
}

.study-tile h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.study-tile p {
  color: var(--steel-secondary);
  font-size: 1.1rem;
  max-width: 400px;
}

.study-visual, .shelf-visual {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--whisper-border);
}

.study-visual img, .shelf-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.radar-ping-visual {
  width: 60px;
  height: 60px;
  border: 2px solid var(--emerald-signal);
  border-radius: 50%;
  margin-top: 32px;
  position: relative;
}

.radar-ping-visual::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid var(--emerald-signal);
  border-radius: 50%;
  animation: ping 2s infinite;
}

.intel-data {
  margin-top: 32px;
  padding: 12px 20px;
  background: var(--canvas-white);
  border-radius: 8px;
  color: var(--charcoal-ink);
  display: inline-block;
}

.garage-study {
  grid-column: span 1;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.intel-study {
  background: radial-gradient(circle at top right, rgba(255, 184, 0, 0.1), transparent);
}

.manifesto-section {
  padding: 240px 5%;
  text-align: center;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
}

.manifesto-text {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--charcoal-ink);
  margin-bottom: 64px;
  line-height: 1.1;
  text-transform: none; /* Keep the quote feel */
  font-weight: 800;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.atelier-footer {
  padding: 80px 5% 40px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--whisper-border);
  background: var(--canvas-white);
}

.footer-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Final Responsive & Mobile Refinement */
@media (max-width: 992px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
    gap: 48px;
  }

  .hero-subtext {
    margin: 0 auto 48px;
  }

  .archive-studies {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scanner-study {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .nav-ghost-pill {
    width: 90%;
    padding: 12px 24px;
    gap: 24px;
  }

  .logo {
    font-size: 1rem;
  }

  .inline-photo {
    display: none; /* Simplify headlines for small screens */
  }

  .hero-editorial h1 {
    font-size: 2.5rem;
  }

  .study-tile {
    padding: 32px;
    border-radius: 24px;
  }

  .manifesto-text {
    font-size: 2rem;
  }
}
