/* ── Design tokens ── */
:root {
  --ground: #0f1d13;
  --text:   #ede8d5;
  --accent: #c9a96e;
  --muted:  #5c7a60;
  --faint:  #1f3323;

  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;
}

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

html, body {
  height: 100%;
}

body {
  min-height: 100%;
  background-color: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* ── Main centered content ── */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem;
}

/* ── Typographic lockup ── */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: riseIn 1s ease forwards 0.3s;
}

/* The monumental APOLLO wordmark — the aesthetic risk */
.word-apollo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 15vw, 11rem);
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--text);
}

/* The gold ledger rule — references the T-account dividing line */
.ledger-rule {
  height: 1px;
  width: 0;
  background: var(--accent);
  margin: 1.2rem 0 1rem;
  animation: drawLine 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 1.2s;
}

/* Small tracked caption beneath the rule */
.word-consulting {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.5rem, 1.4vw, 0.75rem);
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Service descriptor ── */
.service-line {
  margin-top: 3.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 2s;
}

/* ── Thin separator ── */
.sep {
  width: 28px;
  height: 1px;
  background: var(--faint);
  margin: 2.2rem 0 2rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 2.2s;
}

/* ── Message copy ── */
.message {
  max-width: 380px;
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--muted);
  opacity: 0;
  animation: riseIn 0.8s ease forwards 2.2s;
}

/* ── Contact link ── */
.contact-link {
  display: inline-block;
  margin-top: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 2.6s;
}

.contact-link:hover {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 1px;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 3s;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
}

/* ── Keyframes ── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes drawLine {
  from { width: 0; }
  to   { width: clamp(200px, 55vw, 520px); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay:    0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .ledger-rule { width: clamp(200px, 55vw, 520px); }
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .word-apollo    { letter-spacing: 0.12em; }
  .word-consulting { letter-spacing: 0.35em; }
  .site-footer    { flex-direction: column; align-items: center; text-align: center; }
}
