.landing { position: relative; overflow: hidden; }

.site-header, .landing-main { position: relative; z-index: 1; }
.site-link { font-size: 12px; }

/* Moving Macbeth background. `top` is set from the header height in JS. */
.drift {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  line-height: 32px;
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: rgba(29, 28, 26, 0.075);
}
.drift-row {
  white-space: nowrap;
  width: max-content;
  animation: cv-drift linear infinite;
}
.drift-row.reverse { animation-direction: reverse; }
.drift-line { margin-right: 2.2em; }
.drift span span { transition: color 2.4s ease; }
.drift .cut { color: transparent; }

@keyframes cv-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 32px;
  gap: 80px;
}

/* Hero, with a soft clear area so the moving text fades out behind it */
.hero {
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 48px 64px;
  margin: -48px -64px;
  background: radial-gradient(ellipse closest-side at 50% 50%, #F5F2EA 42%, rgba(245, 242, 234, 0.8) 62%, rgba(245, 242, 234, 0) 85%);
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero p {
  margin: 0;
  font-size: 24px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 560px;
}

/* Sits in a gap between two drifting rows; JS nudges it with `top`. */
.start {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  box-sizing: border-box;
  font-size: 13px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: background .2s;
}
.start:hover { background: var(--ink-hover); color: var(--paper); }
.start .arrow { opacity: 0.6; }

/* Sample cards */
.stages {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.stage { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}
.card-line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  font-size: 16px;
  line-height: 1.8;
}
.card-num { font-family: var(--mono); font-size: 10px; color: var(--faint); text-align: right; }
.card-text { text-wrap: pretty; }
.card-text.gone {
  color: transparent;
  user-select: none;
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.stage-caption { font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .drift-row { animation: none; }
  .drift span span { transition: none; }
}
