/* ------------------------------------------------------------
   Landing page (landing.html)
   ------------------------------------------------------------ */

.landing-body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */
.landing-hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 0 24px;
  overflow: hidden;
}

/* Spline iframe (when uncommented in HTML) covers the whole hero
   and sits above the static fallback text. */
.spline-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

/* Hero video — fills the viewport and sits above the SEO heading. */
.landing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll cue under the video — bounces gently to signal "drop down". */
.landing-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
}

.landing-scroll-arrow {
  display: inline-block;
  animation: scrollBob 1.6s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-scroll-arrow { animation: none; }
}

/* Portfolio section that appears below the hero. */
.landing-work {
  padding-top: 24px;
}

.landing-work .tagline-bar {
  margin-bottom: 8px;
}

/* ---------- Big name (CSS fallback / SEO text) ---------- */
.landing-name {
  position: relative;
  z-index: 1;
  font-family: 'Bowlby One', system-ui, sans-serif;
  font-weight: 400;
  text-align: center;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: clamp(64px, 14vw, 220px);
  text-transform: uppercase;
  user-select: none;
}

.landing-line {
  display: block;
}

.landing-line + .landing-line {
  margin-top: 0.02em;
}

/* Each letter wobbles independently with a staggered delay,
   creating a gentle "breathing balloons" feel until the Spline
   embed replaces the fallback. */
.lf {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: lfBob 4.4s ease-in-out infinite;
  will-change: transform;
}

.lf:nth-child(1)  { animation-delay: 0.00s; }
.lf:nth-child(2)  { animation-delay: 0.12s; }
.lf:nth-child(3)  { animation-delay: 0.24s; }
.lf:nth-child(4)  { animation-delay: 0.36s; }
.lf:nth-child(5)  { animation-delay: 0.48s; }
.lf:nth-child(6)  { animation-delay: 0.60s; }
.lf:nth-child(7)  { animation-delay: 0.72s; }

.landing-line:nth-child(2) .lf {
  animation-name: lfBob2;
  color: var(--accent);
}

@keyframes lfBob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  40%      { transform: translateY(-1.2%) scale(1.03, 0.97); }
  60%      { transform: translateY(0)     scale(0.98, 1.03); }
}

@keyframes lfBob2 {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  40%      { transform: translateY(-1.2%) scale(0.97, 1.03); }
  60%      { transform: translateY(0)     scale(1.03, 0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .lf { animation: none; }
}

/* ---------- CTA strip ---------- */
.landing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 24px 24px;
  text-align: center;
}

.landing-tag {
  font-family: 'Syne', sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-button {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.landing-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) and (orientation: portrait) {
  .landing-hero {
    min-height: 0;
    height: auto;
    padding: 0;
    display: block;
  }
  .landing-video {
    position: relative;
    inset: unset;
    width: 100%;
    height: auto;
    aspect-ratio: 1284 / 716;
    object-fit: fill;
  }
  .landing-scroll-cue {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 12px auto;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .landing-hero { min-height: calc(100vh - 64px); }
}
