:root {
  --paper: #F4F1E8;
  --ink: #1A1C1A;
  --forest: #15392A;
  --lime: #CDF24F;
  --muted: #6E7268;
  --anim-duration: 600ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
}

/* Diagonal stepped line — background */
.bg-line {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.line-path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.45;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 10s ease-in-out infinite;
  animation-delay: 600ms;
}

@keyframes drawLine {
  0% { stroke-dashoffset: 1000; }
  60% { stroke-dashoffset: 0; }
  80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

/* Page — precise placement, no floating gaps */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  height: 100dvh;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo — 80px from top */
.logo {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  cursor: default;
}

.wordmark-text {
  color: var(--forest);
}

.wordmark-dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin-left: 0.05em;
  margin-bottom: 0.12em;
  border-radius: 50%;
  background-color: var(--lime);
  transform-origin: center;
}

.logo:hover .wordmark-dot {
  animation: dotPulse 600ms ease;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Hero — vertical center */
.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 64px);
  max-width: 900px;
  text-align: center;
}

.tagline {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw + 0.5rem, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.tagline-line {
  display: block;
}

.subtitle {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.125rem, 2vw + 0.25rem, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
}

/* CTA — 70% viewport height */
.cta {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 64px);
  text-align: center;
}

.cta-prompt {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

.cta-email {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
  letter-spacing: -0.02em;
  color: var(--forest);
  text-decoration: none;
  text-underline-offset: 0.18em;
  border-radius: 4px;
  cursor: pointer;
  background-color: transparent;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    text-decoration-color 200ms ease;
}

.cta-email:hover,
.cta-email:focus-visible {
  color: var(--forest);
  background-color: rgba(205, 242, 79, 0.1);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  outline: none;
}

/* Footer — pinned to bottom */
.site-footer {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Entrance animations */
.animate {
  opacity: 0;
  animation: fadeInUp var(--anim-duration) ease-out forwards;
}

.animate[data-delay="0"] { animation-delay: 0ms; }
.animate[data-delay="300"] { animation-delay: 300ms; }
.animate[data-delay="500"] { animation-delay: 500ms; }
.animate[data-delay="800"] { animation-delay: 800ms; }
.animate[data-delay="1100"] { animation-delay: 1100ms; }

.logo.animate {
  animation-name: fadeIn;
}

.cta.animate {
  animation-name: fadeInUpCta;
}

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

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

@keyframes fadeInUpCta {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Desktop */
@media (min-width: 768px) {
  .page {
    padding: 0 clamp(32px, 5vw, 64px);
  }
}

/* Mobile — compact */
@media (max-width: 480px) {
  .page {
    padding: 0 32px;
  }

  .logo {
    top: 48px;
  }

  .wordmark {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: clamp(2.5rem, 10vw, 3rem);
    margin-bottom: 1rem;
  }

  .cta-email {
    font-size: 1.5rem;
  }

  .line-path {
    stroke-width: 1.5;
  }
}
