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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-obsidian);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent-crimson);
  color: #ffffff;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

/* Film grain disabled for clean, quiet-luxury presentation */
.film-grain {
  display: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Section Indexing & Editorial Headers */
.section-index-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-cream .section-index-bar {
  border-bottom-color: var(--border-cream-strong);
  color: var(--text-dark-muted);
}

.section-index-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-index-num {
  color: var(--accent-crimson);
  font-weight: 700;
}

.section-index-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-crimson);
}

.section-index-right {
  color: var(--text-light-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-cream .section-index-right {
  color: var(--text-dark-subtle);
}

/* Display Headlines — Clean Helvetica Neue (Never squeezed or stretched) */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-transform: uppercase;
}

.editorial-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  color: var(--text-light-muted);
  max-width: 54ch;
  line-height: 1.65;
  font-weight: 400;
}

.theme-cream .editorial-subtitle {
  color: var(--text-dark-muted);
}

/* Theme Surfaces */
.theme-cream {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

/* Meaningful, Subtle Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

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