/* ========== TOKENS ========== */
:root {
  --bg: #fcfcfc;
  --ink: #111;
  --ink-soft: #1a1a1a;
  --dark: #0a0a0a;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --space: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #000;
  color: #fff;
}

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

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

ul {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skip-link:focus {
  top: var(--space);
}

/* ========== LOADER ========== */
body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fcfcfc;
  transition: opacity 0.55s var(--ease-out-expo), visibility 0.55s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader[hidden] {
  display: none;
}

.loader__inner {
  text-align: center;
  padding: 24px;
}

.loader__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: 0.28em;
  margin-bottom: 28px;
}

.loader__bar {
  width: min(180px, 55vw);
  height: 1px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: #fff;
  animation: loaderSlide 1.1s var(--ease-out-expo) infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.loader__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .loader__bar span {
    animation: none;
    width: 100%;
  }
}

/* ========== REVEAL HELPERS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

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

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out-expo) forwards;
}

.reveal-stagger > *:nth-child(1) { animation-delay: calc(var(--stagger-base, 0.6s) + 0s); }
.reveal-stagger > *:nth-child(2) { animation-delay: calc(var(--stagger-base, 0.6s) + 0.15s); }
.reveal-stagger > *:nth-child(3) { animation-delay: calc(var(--stagger-base, 0.6s) + 0.3s); }
.reveal-stagger > *:nth-child(4) { animation-delay: calc(var(--stagger-base, 0.6s) + 0.45s); }

.hero__left.reveal-stagger { --stagger-base: 0.6s; }
.hero__right.reveal-stagger { --stagger-base: 0.9s; }

.reveal-stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.3s; }
.reveal-stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.4s; }
.reveal-stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.5s; }
.reveal-stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.6s; }
.reveal-stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.7s; }

.eras .era.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.eras .era.reveal-up:nth-child(2) { transition-delay: 0.12s; }
.eras .era.reveal-up:nth-child(3) { transition-delay: 0.19s; }
.eras .era.reveal-up:nth-child(4) { transition-delay: 0.26s; }

.reveal-stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__video.is-visible {
  opacity: 1;
}

.hero__video video,
.exhibition__video,
.js-protected-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero__header {
  position: relative;
  z-index: 20;
  padding: calc(var(--space) * 3) calc(var(--space) * 3) 0;
}

@media (min-width: 768px) {
  .hero__header {
    padding-left: calc(var(--space) * 8);
    padding-right: calc(var(--space) * 8);
  }
}

/* Wordmark */
.wordmark {
  overflow: hidden;
  line-height: 0.75;
  letter-spacing: -0.04em;
}

.wordmark__inner {
  display: flex;
  width: 100%;
  transform: scale(1.03);
  transform-origin: left center;
  animation: wordmarkSettle 1.4s var(--ease-out-expo) 0.1s forwards;
}

@keyframes wordmarkSettle {
  to { transform: scale(1); }
}

.wordmark__letter {
  flex: 1;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 14vw, 21vw);
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-align: center;
  transform: translateY(120%);
  opacity: 0;
  animation: letterBlock 1.2s var(--ease-out-expo) forwards;
  animation-delay: calc(0.1s + var(--i) * 0.06s);
}

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

/* Sub-nav */
.subnav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-top: calc(var(--space) * 3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}

@media (min-width: 768px) {
  .subnav {
    font-size: 11px;
    letter-spacing: 0.2em;
    gap: var(--space);
    margin-top: calc(var(--space) * 4);
  }
}

.subnav__brand {
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}

@media (min-width: 768px) {
  .subnav__brand {
    width: 15%;
    min-width: 72px;
  }
}

.subnav__tagline {
  flex: 1;
  min-width: 0;
  color: var(--gray-700);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  max-width: none;
}

.subnav__arrow {
  width: 5%;
  display: none;
  color: var(--gray-400);
  padding-top: 2px;
}

@media (min-width: 768px) {
  .subnav__arrow {
    display: flex;
    justify-content: center;
  }

  .subnav__tagline {
    width: 30%;
    flex: none;
    line-height: 1.7;
    letter-spacing: 0.08em;
  }
}

.tagline-desktop { display: none; }
.tagline-mobile { display: block; }

@media (min-width: 768px) {
  .tagline-desktop { display: block; }
  .tagline-mobile { display: none; }
}

.subnav__links {
  display: none;
  width: 15%;
  min-width: 100px;
}

@media (min-width: 768px) {
  .subnav__links {
    display: block;
  }
}

.subnav__links a {
  display: block;
  color: var(--gray-700);
  transition: color 0.3s ease;
  padding: 2px 0;
}

.subnav__links a:hover,
.subnav__links a:focus-visible {
  color: #000;
  text-decoration: underline;
  outline: none;
}

.menu-toggle {
  position: relative;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
  touch-action: manipulation;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.wordmark__letter:focus {
  outline: none;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__line {
  display: block;
  height: 1.5px;
  background: #000;
  transition: width 0.3s ease, transform 0.3s ease;
}

.menu-toggle__line:first-child {
  width: 32px;
}

.menu-toggle__line:last-child {
  width: 32px;
}

.menu-toggle:hover .menu-toggle__line:first-child {
  width: 24px;
}

.menu-toggle:hover .menu-toggle__line:last-child {
  width: 40px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child {
  width: 32px;
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-child {
  width: 32px;
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: relative;
  z-index: 50;
  margin-top: calc(var(--space) * 3);
  padding: calc(var(--space) * 4) 0 calc(var(--space) * 5);
  background: var(--bg);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu:not([hidden]) {
  display: block;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 0;
  color: var(--ink);
}

.mobile-menu li + li a {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero body */
.hero__body {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  padding: 0 calc(var(--space) * 3);
  margin-top: clamp(1.5rem, 6vh, 5rem);
  padding-bottom: calc(var(--space) * 2);
  gap: 16px;
}

@media (min-width: 640px) {
  .hero__body {
    margin-top: clamp(2rem, 8vh, 7rem);
    padding-left: calc(var(--space) * 5);
    padding-right: calc(var(--space) * 5);
  }
}

@media (min-width: 768px) {
  .hero__body {
    padding: 0 calc(var(--space) * 8);
    margin-top: clamp(2.5rem, 8vh, 8rem);
    padding-bottom: calc(var(--space) * 2);
  }
}

.hero__left {
  width: min(320px, 100%);
}

.section-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: calc(var(--space) * 3);
}

.section-indicator__line {
  width: 64px;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.2);
}

.hero__headline {
  font-weight: 500;
  font-size: clamp(2.4rem, 11vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: calc(var(--space) * 3);
}

.hero__headline span {
  display: block;
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: clamp(3.5rem, 6vw, 5rem);
  }
}

.hero__desc {
  font-size: 13px;
  color: var(--gray-700);
  width: min(240px, 100%);
  line-height: 1.6;
  margin-bottom: calc(var(--space) * 4);
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero__desc {
    font-size: 14px;
  }
}

/* CTA */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid var(--ink-soft);
  border-radius: 6px;
  padding: 12px 18px;
  min-height: 44px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  color: #fff;
  touch-action: manipulation;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    color 0.5s var(--ease-out-expo);
}

@media (min-width: 768px) {
  .cta {
    gap: 12px;
    padding: 14px 24px;
  }
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: translateX(-101%);
  transition: transform 0.7s var(--ease-out-expo);
  z-index: 0;
}

.cta__icon,
.cta__label {
  position: relative;
  z-index: 1;
}

.cta__label {
  font-size: 15px;
  font-weight: 500;
}

.cta__icon {
  display: flex;
  transition: transform 0.5s var(--ease-out-expo), color 0.5s ease;
  color: #fff;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-0.5px);
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.5);
  color: var(--ink);
  outline: none;
}

.cta:hover .cta__bg,
.cta:focus-visible .cta__bg {
  transform: translateX(0);
}

.cta:hover .cta__icon,
.cta:focus-visible .cta__icon {
  color: var(--ink);
  transform: scale(1.1) rotate(-12deg) translateY(-4px);
}

.cta:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Specimen panel */
.hero__right {
  display: none;
  width: 200px;
  flex-direction: column;
  margin-top: calc(var(--space) * 6);
}

@media (min-width: 768px) {
  .hero__right {
    display: flex;
    margin-top: calc(var(--space) * 10);
  }
}

.specimen__name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.specimen__meta {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: calc(var(--space) * 3);
}

.specimen__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: calc(var(--space) * 3);
}

.specimen__stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.specimen__stats dd {
  font-size: 13px;
  font-weight: 500;
}

.view-details {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.view-details__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-400);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.view-details:hover .view-details__circle,
.view-details:focus-visible .view-details__circle {
  border-color: #000;
  background: var(--ink);
  color: #fff;
  outline: none;
}

.view-details:focus-visible {
  outline: none;
}

/* Hero foot + scroll cue — in flow so it never covers Explore Now */
.hero__foot {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: calc(var(--space) * 2) calc(var(--space) * 3) calc(var(--space) * 3);
  margin-top: auto;
}

@media (min-width: 640px) {
  .hero__foot {
    padding-left: calc(var(--space) * 5);
    padding-right: calc(var(--space) * 5);
  }
}

@media (min-width: 768px) {
  .hero__foot {
    padding: calc(var(--space) * 3) calc(var(--space) * 8) calc(var(--space) * 5);
  }
}

.scroll-cue {
  display: none;
  align-items: center;
  gap: 14px;
  position: relative;
}

@media (min-width: 768px) {
  .scroll-cue {
    display: flex;
  }
}

.scroll-cue__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  flex-shrink: 0;
}

.scroll-cue__icon span {
  width: 1px;
  height: 12px;
  background: var(--gray-600);
}

.scroll-cue__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ========== EXPLORE ========== */
.explore {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--space) * 12) calc(var(--space) * 4) calc(var(--space) * 10);
  text-align: center;
}

@media (min-width: 768px) {
  .explore {
    min-height: auto;
    padding: calc(var(--space) * 16) calc(var(--space) * 8) calc(var(--space) * 14);
  }
}

.explore__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: calc(var(--space) * 6);
}

@media (min-width: 768px) {
  .explore__label {
    font-size: 11px;
  }
}

.explore__num {
  color: var(--gray-500);
  margin-right: 8px;
}

.explore__title {
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

.explore__headline {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 1000px;
  margin-bottom: calc(var(--space) * 6);
}

.br-desktop {
  display: none;
}

@media (min-width: 768px) {
  .explore__headline {
    font-size: 3.5rem;
    margin-bottom: calc(var(--space) * 8);
  }

  .br-desktop {
    display: block;
  }
}

@media (min-width: 1024px) {
  .explore__headline {
    font-size: 4.2rem;
  }
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: calc(var(--space) * 5);
  max-width: 900px;
}

@media (min-width: 768px) {
  .pills {
    gap: 16px;
    margin-bottom: calc(var(--space) * 12);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  color: var(--gray-700);
  touch-action: manipulation;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.pill:hover,
.pill:focus-visible {
  background: #000;
  border-color: #000;
  color: #fff;
  outline: none;
}

.explore__bottom {
  display: none;
  position: relative;
  width: 100%;
  justify-content: space-between;
  margin-top: calc(var(--space) * 8);
  padding: 0;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .explore__bottom {
    display: flex;
  }
}

/* ========== COLLECTION ========== */
.collection {
  position: relative;
  z-index: 30;
  width: 100%;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.collection__heading-area {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 6);
  padding: calc(var(--space) * 16) calc(var(--space) * 4) calc(var(--space) * 8);
}

@media (min-width: 768px) {
  .collection__heading-area {
    padding: calc(var(--space) * 24) calc(var(--space) * 8) calc(var(--space) * 8);
  }
}

@media (min-width: 1280px) {
  .collection__heading-area {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.collection__headline {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
}

@media (min-width: 768px) {
  .collection__headline {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .collection__headline {
    font-size: 3.8rem;
  }
}

@media (min-width: 1280px) {
  .collection__headline {
    font-size: 4rem;
  }
}

.icon-row {
  display: inline-flex;
  gap: 8px;
  vertical-align: middle;
  margin: 0 8px;
  transform: translateY(-4px);
}

@media (min-width: 768px) {
  .icon-row {
    gap: 12px;
    margin: 0 16px;
  }
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-600);
  background: #000;
  color: var(--gray-400);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
  .icon-circle {
    width: 56px;
    height: 56px;
  }
}

.icon-circle:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.collection__aside {
  flex-shrink: 0;
}

.collection__tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: calc(var(--space) * 3);
}

@media (min-width: 768px) {
  .collection__tagline {
    font-size: 10px;
  }
}

.trait-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trait-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--gray-600);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d1d5db;
  touch-action: manipulation;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.trait-pill:hover,
.trait-pill:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
  outline: none;
}

/* Chapters panel */
.chapters {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--gray-800);
}

@media (min-width: 768px) {
  .chapters {
    flex-direction: row;
  }
}

.chapters__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: calc(var(--space) * 3);
  min-height: 280px;
  padding: calc(var(--space) * 4);
  border-bottom: 1px solid var(--gray-800);
  background: #000;
}

@media (min-width: 768px) {
  .chapters__visual {
    width: 35%;
    min-height: 500px;
    border-bottom: none;
    border-right: 1px solid var(--gray-800);
  }
}

.chapters__image {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  filter: url(#sand-filter);
  transition: none;
  flex: 1;
  align-self: center;
}

.chapters__counter {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.chapters__counter-num {
  display: inline-block;
  color: #888;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
}

.chapters__counter-num.is-exiting {
  transform: translateY(-110%);
  opacity: 0;
}

.chapters__counter-num.is-entering {
  animation: counterIn 0.45s var(--ease-out-expo) forwards;
}

@keyframes counterIn {
  from {
    transform: translateY(110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chapters__counter-div {
  color: #333;
}

.chapters__list-panel {
  flex: 1;
}

@media (min-width: 768px) {
  .chapters__list-panel {
    width: 65%;
  }
}

.chapters__list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(var(--space) * 4);
  border-bottom: 1px solid var(--gray-800);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.chapters__chapter-label {
  white-space: nowrap;
}

.chapters__list {
  margin: 0;
}

.chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: calc(var(--space) * 3) calc(var(--space) * 3);
  min-height: 56px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
  text-align: left;
  color: #444;
  touch-action: manipulation;
  transition: color 0.35s ease;
}

@media (min-width: 768px) {
  .chapter-item {
    padding: calc(var(--space) * 4);
  }
}

.chapter-item__name {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .chapter-item__name {
    font-size: 2rem;
  }
}

.chapter-item__icon {
  opacity: 0;
  transform: translate(-6px, 6px);
  color: var(--gray-400);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
  flex-shrink: 0;
}

.chapter-item:hover,
.chapter-item:focus-visible {
  color: #999;
  outline: none;
}

.chapter-item.is-active {
  color: #fff;
}

.chapter-item.is-active .chapter-item__icon {
  opacity: 1;
  transform: translate(0, 0);
}

.collection__footer-strip {
  position: relative;
  z-index: 10;
  padding: calc(var(--space) * 4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--dark);
  border-top: 1px solid var(--gray-800);
}

@media (min-width: 768px) {
  .collection__footer-strip {
    padding-left: calc(var(--space) * 4);
    padding-right: calc(var(--space) * 4);
  }
}

/* ========== SHARED SECTION KICKERS ========== */
.section-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: calc(var(--space) * 5);
}

@media (min-width: 768px) {
  .section-kicker {
    font-size: 11px;
    margin-bottom: calc(var(--space) * 6);
  }
}

.section-kicker__num {
  color: var(--gray-500);
  margin-right: 8px;
}

.section-kicker__title {
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

.section-kicker--light .section-kicker__num {
  color: var(--gray-500);
}

.section-kicker--light .section-kicker__title {
  color: #fff;
}

/* ========== DEEP TIME ========== */
.deeptime {
  position: relative;
  z-index: 25;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 0, 0, 0.04), transparent 55%),
    linear-gradient(180deg, #f7f7f5 0%, var(--bg) 45%, #f4f4f2 100%);
  padding: calc(var(--space) * 12) calc(var(--space) * 4) calc(var(--space) * 10);
  overflow: hidden;
}

@media (min-width: 768px) {
  .deeptime {
    padding: calc(var(--space) * 16) calc(var(--space) * 8) calc(var(--space) * 14);
  }
}

.deeptime::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

.deeptime__intro {
  position: relative;
  max-width: 720px;
  margin-bottom: calc(var(--space) * 8);
}

@media (min-width: 768px) {
  .deeptime__intro {
    margin-bottom: calc(var(--space) * 12);
  }
}

.deeptime__headline {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: calc(var(--space) * 3);
}

.deeptime__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 420px;
}

.eras {
  position: relative;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  list-style: none;
}

.era {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px 20px;
  padding: calc(var(--space) * 4) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  transition: background 0.4s ease;
}

.era:hover {
  background: rgba(17, 17, 17, 0.02);
}

@media (min-width: 768px) {
  .era {
    grid-template-columns: 56px minmax(180px, 280px) 1fr;
    align-items: baseline;
    gap: 24px;
    padding: calc(var(--space) * 5) 0;
  }
}

.era__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gray-400);
  padding-top: 6px;
}

.era__name {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.era__range {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 6px;
}

.era__note {
  grid-column: 2 / -1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 420px;
}

@media (min-width: 768px) {
  .era__note {
    grid-column: auto;
    padding-top: 8px;
  }
}

/* ========== EXHIBITION ========== */
.exhibition {
  position: relative;
  z-index: 26;
  background: #0a0a0a;
  color: #fff;
  padding: calc(var(--space) * 14) calc(var(--space) * 4);
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .exhibition {
    padding: calc(var(--space) * 18) calc(var(--space) * 8);
    min-height: 85vh;
  }
}

.exhibition__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.exhibition__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition__frame {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.exhibition__headline {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: calc(var(--space) * 5);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.exhibition__copy {
  font-size: 15px;
  line-height: 1.7;
  color: #e8e8e8;
  max-width: 340px;
  margin-bottom: calc(var(--space) * 6);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.exhibition__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ddd;
  margin-bottom: calc(var(--space) * 4);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.exhibition__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 6px;
  transition: border-color 0.35s ease, gap 0.35s var(--ease-out-expo);
}

.exhibition__cta:hover,
.exhibition__cta:focus-visible {
  border-color: #fff;
  gap: 18px;
  outline: none;
}

.exhibition__cta svg {
  transition: transform 0.35s var(--ease-out-expo);
}

.exhibition__cta:hover svg,
.exhibition__cta:focus-visible svg {
  transform: translateX(4px);
}

/* ========== VISIT ========== */
.visit {
  position: relative;
  z-index: 27;
  display: grid;
  gap: calc(var(--space) * 8);
  background:
    linear-gradient(135deg, #fafafa 0%, var(--bg) 40%, #f0f0ee 100%);
  padding: calc(var(--space) * 12) calc(var(--space) * 4) calc(var(--space) * 14);
}

@media (min-width: 900px) {
  .visit {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: calc(var(--space) * 10);
    padding: calc(var(--space) * 16) calc(var(--space) * 8) calc(var(--space) * 18);
  }
}

.visit__headline {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: calc(var(--space) * 3);
}

.visit__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 360px;
  margin-bottom: calc(var(--space) * 5);
}

.visit__cta {
  margin-top: calc(var(--space) * 1);
}

.visit__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.visit__details > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: calc(var(--space) * 3) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

@media (min-width: 768px) {
  .visit__details > div {
    grid-template-columns: 120px 1fr;
    padding: calc(var(--space) * 4) 0;
  }
}

.visit__details dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding-top: 3px;
}

.visit__details dd {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

/* ========== FOOTER ========== */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 4);
  padding: calc(var(--space) * 6) calc(var(--space) * 4);
  background:
    linear-gradient(180deg, #f8f8f6 0%, var(--bg) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .site-footer {
    padding: calc(var(--space) * 7) calc(var(--space) * 8);
    gap: calc(var(--space) * 5);
  }
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3em;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__nav a {
  color: var(--gray-600);
  transition: color 0.3s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.site-footer__demo {
  flex: 1 1 100%;
  order: -1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: left;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .site-footer__demo {
    flex: 0 1 auto;
    order: 0;
  }
}

.site-footer__credit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 320px;
}

@media (min-width: 768px) {
  .site-footer__credit {
    text-align: right;
    max-width: 420px;
  }
}

.site-footer__credit a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  opacity: 0.7;
  outline: none;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .wordmark__letter,
  .wordmark__inner,
  .reveal-stagger > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-up,
  .reveal-stagger-children > *,
  .hero__video,
  .mobile-menu,
  .cta,
  .cta__bg,
  .cta__icon,
  .exhibition__cta,
  .exhibition__cta svg {
    transition: none !important;
  }

  .reveal-up,
  .reveal-stagger-children > *,
  .hero__video {
    opacity: 1 !important;
    transform: none !important;
  }
}
