/* ==========================================================================
   Landing page — scroll-driven intro, dark/cinematic mood by design
   (independent of the resume site's light/dark toggle).
   ========================================================================== */

.landing {
  --l-bg: #0d0f14;
  --l-fg: #eef0ea;
  --l-fg-soft: #8d93a0;
  --l-pitch: #3fa072;
  --l-brass: #cda978;
  background: var(--l-bg);
  color: var(--l-fg);
  overflow-x: hidden;
}

.landing-section {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 2rem var(--gutter);
}
.landing-section__inner {
  max-width: 50rem;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Hero ---------- */
.landing-hero__inner {
  animation: landing-hero-in 1s ease both;
  animation-delay: 0.15s;
}
@keyframes landing-hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.landing-hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.landing-hero__role {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  color: var(--l-pitch);
  min-height: 1.3em;
}
.typewriter-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 4px;
  background: var(--l-pitch);
  vertical-align: -0.1em;
  animation: landing-blink 0.9s step-end infinite;
}
@keyframes landing-blink { 50% { opacity: 0; } }

.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--l-fg-soft);
  transition: opacity 0.5s ease;
}
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
.scroll-cue__line {
  width: 1px;
  height: 2.25rem;
  background: var(--l-fg-soft);
  animation: landing-scrollline 1.7s ease-in-out infinite;
}
@keyframes landing-scrollline {
  0%, 100% { transform: scaleY(0.35); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Statement sections ---------- */
.statement-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 5.2vw, 3.1rem);
  line-height: 1.18;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition: opacity 0.85s ease, transform 0.85s ease, filter 0.85s ease;
}
.landing-section--statement.is-in .statement-text {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.statement-text .brass { color: var(--l-brass); }
.statement-text .pitch { color: var(--l-pitch); }

/* ---------- Final / CTA ---------- */
.landing-cta__eyebrow {
  color: var(--l-fg-soft);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.landing-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2.5rem;
}
.mini-btn {
  position: relative;
  text-decoration: none;
  color: var(--l-fg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding-bottom: 5px;
  border: none;
  background: none;
  width: fit-content;
}
.mini-btn::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--l-fg-soft);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.mini-btn:hover::after,
.mini-btn:focus-visible::after {
  transform: scaleX(1);
  background: var(--l-pitch);
}
.mini-btn--primary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}
.mini-btn--primary::after {
  background: var(--l-pitch);
  transform: scaleX(1);
}
.mini-btn--placeholder { color: var(--l-fg-soft); font-style: italic; }

.landing-footnote {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--l-fg-soft);
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__inner { animation: none; opacity: 1; transform: none; }
  .typewriter-cursor::after { animation: none; }
  .scroll-cue__line { animation: none; }
  .statement-text { transition: none; opacity: 1; transform: none; filter: none; }
}
