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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═════════════════════════════════════════════════════════════
   OPENING SECTION — full-viewport hero
   Text fills the bottom; negative space breathes above.
   ═════════════════════════════════════════════════════════════ */
.opening {
  position: relative;
  width: 100vw;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-inline: var(--page-pad);
  padding-block-end: 7vh;
  overflow: visible;
}

.title-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* "Untangle" — Cormorant Garamond Bold */
.title-main {
  display: block;
  width: max-content;
  font-family: var(--font-title);
  font-weight: 700;
  font-style: normal;
  color: var(--color-accent);
  line-height: 1.08;
  letter-spacing: -0.01em;
  white-space: nowrap;
  /* font-size injected by JS */
}

/* "the Bible" — Bebas Neue */
.title-secondary {
  display: block;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-accent);
  line-height: 0.9;
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin-block-start: 0.04em;
  /* font-size and margin-inline-start injected by JS */
}

/* Subtle scroll nudge */
.scroll-hint {
  position: absolute;
  inset-block-end: 2.5vh;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #444;
  animation: nudge 2.8s ease-in-out infinite;
  pointer-events: none;
}
.scroll-hint span {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scroll-hint-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}
