:root {
  --ink: #0b0c10;
  --paper: #f4f2ec;
  --muted: rgba(244, 242, 236, 0.55);
  --hairline: rgba(244, 242, 236, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Slow ambient light drifting behind the content */
.ambient {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 30% 32%, rgba(94, 118, 168, 0.22), transparent 70%),
    radial-gradient(34% 28% at 72% 66%, rgba(168, 138, 94, 0.16), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate, breathe 13s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 0;
}

.mark {
  color: var(--muted);
  margin-bottom: 34px;
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  background: linear-gradient(105deg, var(--paper) 42%, #ffffff 50%, var(--paper) 58%);
  background-size: 320% 100%;
  background-position: 110% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both, sheen 12s ease-in-out 2.5s infinite;
}

.tagline {
  margin-top: 26px;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.contact {
  margin-top: 58px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.35s ease, border-color 0.35s ease;
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.contact:hover {
  color: var(--muted);
  border-color: var(--muted);
}

.foot {
  position: relative;
  padding: 22px 24px 26px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(244, 242, 236, 0.32);
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

/* One soft sheen pass across the wordmark every 12s; at rest the rest of the cycle */
@keyframes sheen {
  0%, 62%  { background-position: 110% 0; }
  82%, 100% { background-position: -10% 0; }
}

/* The ambient light breathes gently on a 13s cycle */
@keyframes breathe {
  0%, 100% { opacity: 0.82; }
  50%      { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient, .mark, .wordmark, .tagline, .contact, .foot { animation: none; }
}
