/* ==========================================================================
   LIFEBYDESIGN — Coming soon (/)
   Single full-viewport hero. Only rules unique to this page belong here.
   ========================================================================== */

.hero {
  --monogram-width: 156px;
  --wordmark-height: 26px;
  --title-scale: 0.9;

  /* Ceiling that keeps the nowrap headline inside narrow screens — see the
     note above .hero__title for how the ratio is derived. */
  --title-line-ratio: 15.4;
  --title-fit: calc((100vw - var(--space-5) * 2) / var(--title-line-ratio));

  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-9) var(--space-5);
}

/* --------------------------------------------------------------------------
   Monogram — the knot is masked, then revealed by a panel sliding downward.
   -------------------------------------------------------------------------- */
.hero__monogram {
  position: relative;
  overflow: hidden;
  width: var(--monogram-width);
  margin-bottom: var(--space-3);
}

.hero__monogram::after {
  content: '';
  position: absolute;
  inset: -6px;
  background: var(--color-surface);
  animation: knot-reveal 1.8s var(--ease-in-out) 0.5s forwards;
  transition: background var(--duration-base) ease;
}

@keyframes knot-reveal {
  to {
    transform: translateY(101%);
  }
}

/* Quarter-turn driven by assets/js/knot.js */
.hero__monogram-mark {
  transition: transform 1.4s var(--ease-spring);
  will-change: transform;
  cursor: pointer;
}

.hero__wordmark {
  margin-bottom: var(--space-8);
}

/* --------------------------------------------------------------------------
   Copy
   -------------------------------------------------------------------------- */
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: min(calc(clamp(31px, 5.1vw, 62px) * var(--title-scale)), var(--title-fit));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: var(--measure-display);
}

/* Why the min(): the second line is held together by `nowrap`, so the type must
   also be capped by the room actually available or it overflows narrow screens.
   Set in Walkway, that line renders at roughly 14.75x its font-size; dividing
   the usable width by --title-line-ratio (15.4) keeps it inside with a small
   margin. The cap only binds below ~500px — at every larger width the clamp is
   the smaller of the two, so desktop sizing is untouched.

   Recompute --title-line-ratio if the headline copy, typeface or tracking
   changes: measure the rendered line width at a known font-size and divide. */

/* Keep each line intact so the question never breaks mid-phrase. */
.hero__title span,
.hero__title-line {
  white-space: nowrap;
}

.hero__title-line {
  display: block;
}

.hero__title em {
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--color-text-emphasis);
}

.hero__lede {
  margin-top: var(--space-5);
  max-width: var(--measure);
  font-size: 16px;
  color: var(--color-text-muted);
}

.hero__status {
  margin-top: var(--space-7);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-label);
}

.hero__actions {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Entrance choreography — staggered so the eye lands on the mark first.
   Suppressed wholesale by the reduced-motion block in base.css.
   -------------------------------------------------------------------------- */
.hero__monogram,
.hero__wordmark,
.hero__title,
.hero__lede,
.hero__status,
.hero__actions {
  opacity: 0;
  animation: rise-in var(--duration-slow) var(--ease-out) forwards;
}

.hero__monogram { animation-delay: 0s; }
.hero__wordmark { animation-delay: 0.15s; }
.hero__title    { animation-delay: 0.35s; }
.hero__lede     { animation-delay: 0.5s; }
.hero__status   { animation-delay: 0.65s; }
.hero__actions  { animation-delay: 0.8s; }

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

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .hero {
    padding: 72px var(--space-5) 48px;
  }

  .hero__monogram {
    width: calc(var(--monogram-width) * 0.75);
    margin-bottom: 10px;
  }

  .hero__wordmark {
    margin-bottom: var(--space-7);
  }

  .hero__title {
    font-size: min(calc(clamp(23px, 7vw, 31px) * var(--title-scale)), var(--title-fit));
  }

  .hero__lede {
    font-size: 15px;
  }

  .hero__status {
    margin-top: var(--space-6);
    font-size: 11px;
  }

  .hero__actions {
    margin-top: 44px;
  }
}
