:root {
  --bg: #f1eee7;
  --paper: #fbf7ef;
  --paper-2: #e4ded2;
  --ink: #151515;
  --ink-soft: #343434;
  --muted: #6f6a63;
  --dark: #111217;
  --dark-2: #1a1c22;
  --line: rgba(21, 21, 21, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --accent: #b94a48;
  --accent-dark: #7e2f33;
  --blue: #536f91;
  --gold: #c49a4a;
  --shadow: 0 22px 70px rgba(25, 22, 18, 0.14);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(185, 74, 72, 0.12), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(83, 111, 145, 0.12), transparent 30%),
    linear-gradient(180deg, #f5f1e9 0%, #ebe5d9 44%, #f8f4ec 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

.container {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: 6px 6px 0 rgba(185, 74, 72, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.92rem;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Type */

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

p {
  margin-top: 0;
}

.hero-copy h1,
.page-hero h1,
.final-wall h2,
.commitment-card h2 {
  margin: 18px 0 0;
  font-size: clamp(3.5rem, 8vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
  max-width: 980px;
}

.subtitle {
  color: var(--accent);
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  font-style: italic;
  margin: 18px 0 0;
}

.lede {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  max-width: 760px;
}

.exhibit-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-size: 0.74rem;
}

.exhibit-label::before,
.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--accent);
}

/* Buttons */

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(185, 74, 72, 0.22);
}

.btn.ghost {
  color: var(--ink);
  background: transparent;
}

.btn.ghost:hover {
  background: var(--paper);
}

/* Layout */

section {
  padding: 76px 0;
}

.hero {
  padding: 92px 0 60px;
}

.hero-grid,
.page-grid,
.artifact-grid,
.exhibit-layout,
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-art {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-art img,
.page-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.page-hero {
  padding: 92px 0 46px;
}

.page-title {
  max-width: 920px;
}

/* Cards */

.quiet-section {
  background: rgba(251, 247, 239, 0.66);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement-card,
.info-card,
.route-card,
.exhibit-note,
.prompt-card,
.loop-card,
.cost-card,
.reset-card,
.commitment-card,
.final-wall,
.source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 239, 0.76);
  box-shadow: var(--shadow);
}

.statement-card,
.info-card,
.exhibit-note,
.prompt-card,
.cost-card,
.reset-card,
.source-card {
  padding: 26px;
}

.statement-card h2,
.section-header h2,
.exhibit-text h2,
.artifact-caption h2,
.artifact-grid h2 {
  font-size: clamp(2rem, 4.4vw, 4.7rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 16px 0;
}

.statement-card p,
.info-card p,
.route-card p,
.exhibit-text p,
.exhibit-note p,
.prompt-card p,
.cost-card p,
.reset-card p,
.source-card p,
.section-header p,
.final-wall p,
.commitment-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 32px;
}

.section-header p {
  max-width: 560px;
}

/* Route */

.route-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.route-card {
  padding: 24px;
  min-height: 288px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.route-card:nth-child(even) {
  background: #efe7d9;
}

.route-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 74, 72, 0.5);
  box-shadow: 10px 10px 0 rgba(185, 74, 72, 0.18);
}

.route-card span,
.number {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.route-card h3,
.info-card h3,
.loop-card h3,
.cost-card h3,
.reset-card h3,
.process-step h3,
.source-card h3 {
  margin: 16px 0 0;
  font-size: 1.42rem;
  line-height: 1.08;
}

/* Artifact Sections */

.artifact-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 18, 23, 0.96), rgba(28, 30, 38, 0.96));
  color: var(--paper);
}

.artifact-strip p,
.artifact-strip .section-header p {
  color: rgba(251, 247, 239, 0.72);
}

.notification-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: #08090d;
}

.notification-wall span {
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  padding: 14px 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Exhibit Text */

.exhibit-text {
  padding: 6px 0;
}

.exhibit-text h2 {
  margin-top: 0;
}

.exhibit-text p {
  font-size: 1.09rem;
}

.exhibit-note {
  align-self: start;
  position: sticky;
  top: 102px;
  background: var(--dark);
  color: var(--paper);
  box-shadow: none;
}

.exhibit-note p {
  color: rgba(251, 247, 239, 0.72);
}

.museum-callout {
  margin-top: 26px;
  padding: 22px;
  border-radius: 12px;
  background: rgba(185, 74, 72, 0.1);
  border: 1px solid rgba(185, 74, 72, 0.28);
  display: grid;
  gap: 6px;
}

.museum-callout strong {
  color: var(--accent);
}

/* Fixed Timeline + Process Cards */

.museum-timeline,
.process-steps,
.source-list {
  display: grid;
  gap: 16px;
}

.timeline-item,
.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.78);
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(even),
.process-step:nth-child(even) {
  background: #ede6d8;
}

.timeline-item span,
.process-step span {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h3,
.process-step h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.1;
}

.timeline-item p,
.process-step p {
  color: var(--muted);
  margin: 4px 0 0;
  max-width: 760px;
}

/* Prompts */

.reflection-prompt {
  background:
    linear-gradient(135deg, rgba(185, 74, 72, 0.08), rgba(83, 111, 145, 0.08));
}

.prompt-card {
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
  padding: 34px;
}

.prompt-card h2 {
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

/* Grids */

.grid-3,
.cost-grid,
.reset-grid,
.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card,
.cost-card,
.reset-card {
  min-height: 250px;
}

.info-card {
  background: var(--paper);
}

.loop-grid {
  grid-template-columns: repeat(4, 1fr);
}

.loop-card {
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.loop-card:nth-child(1) {
  background: #fbf7ef;
}

.loop-card:nth-child(2) {
  background: #ece1d1;
}

.loop-card:nth-child(3) {
  background: #dcd6ca;
}

.loop-card:nth-child(4) {
  background: var(--dark);
  color: var(--paper);
}

.loop-card:nth-child(4) h3 {
  color: var(--paper);
}

.loop-card span,
.cost-card span,
.reset-card span {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
}

/* Dark Room */

.dark-room {
  background: var(--dark);
  color: var(--paper);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.dark-room p {
  color: rgba(251, 247, 239, 0.72);
}

.screen-time-panel {
  border-radius: 28px;
  border: 1px solid rgba(251, 247, 239, 0.18);
  background: linear-gradient(180deg, #1d2028, #08090d);
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.phone-top {
  width: 84px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 28px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--accent);
}

.screen-time-panel p {
  color: rgba(251, 247, 239, 0.72);
  margin: 10px 0 18px;
}

/* Visual Artifacts */

.feed-artifact {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: #08090d;
  max-height: 420px;
  overflow: hidden;
}

.feed-artifact div {
  height: 82px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(251, 247, 239, 0.94), rgba(251, 247, 239, 0.22));
}

.nightstand {
  height: 330px;
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(83, 111, 145, 0.55), transparent 32%), #030406;
  border: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
}

.moon {
  position: absolute;
  top: 42px;
  right: 68px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 38px rgba(251, 247, 239, 0.5);
}

.glow-phone {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%) rotate(-4deg);
  width: 130px;
  height: 220px;
  border-radius: 22px;
  background: linear-gradient(180deg, #b9d5ff, #24364f);
  box-shadow: 0 0 80px rgba(83, 111, 145, 0.82);
}

/* Commitment */

.commitment-section {
  background: rgba(185, 74, 72, 0.08);
  border-top: 1px solid rgba(185, 74, 72, 0.22);
  border-bottom: 1px solid rgba(185, 74, 72, 0.22);
}

.commitment-card {
  padding: 38px;
  max-width: 960px;
  margin: 0 auto;
  background: var(--paper);
}

.commitment-form {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.commitment-form label {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
}

.commitment-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
}

.saved-commitment {
  margin-top: 18px;
  color: var(--accent) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
}

.final-wall {
  padding: 42px;
  text-align: center;
  background: var(--dark);
  color: var(--paper);
}

.final-wall p {
  color: rgba(251, 247, 239, 0.72);
}

/* Sources */

.source-card {
  background: var(--paper);
}

.source-card a {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
  display: inline-block;
  margin-top: 14px;
}

/* Footer */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-grid strong {
  color: var(--ink);
}

.footer-grid p {
  margin: 5px 0 0;
}

.footer-grid a {
  color: var(--ink);
  margin-left: 16px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 700ms ease;
}

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

/* Responsive */

@media (max-width: 1040px) {
  .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .cost-grid,
  .reset-grid,
  .loop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 10px;
    background: rgba(251, 247, 239, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .page-grid,
  .artifact-grid,
  .exhibit-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .exhibit-note {
    position: static;
  }

  .section-header {
    display: block;
  }

  .notification-wall {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 58px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 3.35rem;
  }

  .route-grid,
  .grid-3,
  .cost-grid,
  .reset-grid,
  .loop-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .process-step {
    grid-template-columns: 1fr;
  }

  .footer-grid a {
    margin: 0 12px 0 0;
    display: inline-block;
  }
}
