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

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --accent: #0a0a0a;
  --card-bg: #f5f5f5;
  --border: #e0e0e0;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- NAVBAR ---- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--fg);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- HERO ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.hero-title br {
  display: block;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 4rem;
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ---- HERO BUTTONS ---- */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.65rem 1.5rem;
  background: #0a0a0a;
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  transition: opacity 0.25s, transform 0.25s;
  text-decoration: none;
}

.hero-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  color: #ffffff;
}

.hero-btn svg {
  flex-shrink: 0;
}

.ca-address {
  margin-top: 1.25rem;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  word-break: break-all;
  text-align: center;
  user-select: all;
  cursor: pointer;
}

/* ---- INTRO ---- */

.intro {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.intro-meta {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: sticky;
  top: 6rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.meta-value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--fg);
}

.intro-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.intro-text p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
}

/* ---- SECTIONS ---- */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.section-number {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

/* ---- ORIGIN ---- */

.origin {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}

.origin-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

.origin-text .large-text {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--fg);
  font-weight: 300;
}

.origin-text blockquote {
  border-left: 2px solid var(--accent);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--fg);
}

.origin-text blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--fg-muted);
  margin-top: 1rem;
  letter-spacing: 0.04em;
}

.origin-text p {
  color: var(--fg-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.origin-card {
  position: sticky;
  top: 6rem;
}

.card-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.card-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.fake-post {
  font-family: monospace;
  font-size: 0.8rem;
}

.post-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--fg-muted);
  font-size: 0.7rem;
  flex-wrap: wrap;
}

.post-board {
  color: var(--accent);
  font-weight: 600;
}

.post-body {
  color: var(--fg);
  line-height: 1.6;
  font-size: 0.85rem;
}

/* ---- SPREAD ---- */

.spread {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}

.spread-content .large-text {
  font-size: 1.2rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

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

.spread-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

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

.spread-year {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.spread-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.spread-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- MARQUEE ---- */

.marquee-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--fg-muted);
  opacity: 0.3;
}

.marquee-track span {
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- TIMELINE ---- */

.timeline {
  padding: 8rem 0;
}

.timeline-intro {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 4rem;
  line-height: 1.7;
  font-weight: 300;
}

.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  transition: background 0.3s;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--border);
}

.timeline-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.timeline-date {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--accent);
  padding-top: 0.25rem;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ---- CULTURAL ---- */

.cultural {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}

.cultural-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

.cultural-text .large-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--fg);
}

.cultural-text p {
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.cultural-text em {
  color: var(--fg);
  font-style: italic;
}

.cultural-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

.sidebar-card h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-card li {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sidebar-card li strong {
  color: var(--fg);
  font-weight: 500;
}

.sidebar-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- QUOTE ---- */

.quote-section {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}

.big-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.big-quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.4;
  font-style: italic;
}

.big-quote p:first-child {
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.big-quote p:last-child {
  color: var(--fg);
}

/* ---- FOOTER ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.footer-left p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-disclaimer {
  color: var(--fg-muted);
  font-size: 0.8rem;
  max-width: 360px;
  line-height: 1.6;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: var(--fg-muted);
  font-size: 0.8rem;
}

/* ---- ANIMATIONS ---- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .intro-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: static;
  }

  .origin-content {
    grid-template-columns: 1fr;
  }

  .origin-card {
    position: static;
  }

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

  .cultural-content {
    grid-template-columns: 1fr;
  }

  .cultural-sidebar {
    position: static;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .section-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
  }

  .timeline-date {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }
}
