/* LoveType hero (approved candidate V4, Garnet Noir). Everything is scoped under .lth so the rest of the page is untouched. */
.lth {
  --ink: #0a0306; --champagne: #dcc9a6; --text: #efe4d4; --muted: rgba(239, 228, 212, 0.66);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  position: relative; z-index: 2; width: 100%; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-align: left;
}
.lth[hidden] { display: none; }
.lth *, .lth *::before, .lth *::after { box-sizing: border-box; }
.lth-glow {
  position: absolute; inset: 0;
  /* bottom ~170px fades to transparent so the hero melts into the page's own ambient background (no hard edge) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 170px), rgba(0,0,0,.92) calc(100% - 140px), rgba(0,0,0,.74) calc(100% - 110px), rgba(0,0,0,.5) calc(100% - 80px), rgba(0,0,0,.26) calc(100% - 50px), rgba(0,0,0,.08) calc(100% - 25px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 170px), rgba(0,0,0,.92) calc(100% - 140px), rgba(0,0,0,.74) calc(100% - 110px), rgba(0,0,0,.5) calc(100% - 80px), rgba(0,0,0,.26) calc(100% - 50px), rgba(0,0,0,.08) calc(100% - 25px), transparent 100%);
  background:
    radial-gradient(60% 70% at 70% 48%, rgba(90, 14, 32, 0.55), rgba(40, 6, 16, 0.25) 45%, transparent 75%),
    radial-gradient(90% 80% at 15% 100%, rgba(58, 10, 20, 0.35), transparent 60%),
    linear-gradient(180deg, #0b0407, #050203);
}
.lth-glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55)); }
.lth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.6s ease-out; }
.lth-canvas.on { opacity: 1; }

.lth-fallback { display: none; position: absolute; width: min(56vw, 520px); right: 8vw; top: 50%; transform: translateY(-50%); }
.lth.no-webgl .lth-fallback { display: block; }
.lth.no-webgl .lth-canvas { display: none; }

.lth-ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 4.5vw, 64px); pointer-events: none;
}
.lth-brand {
  font-size: 13px; letter-spacing: 0.42em; font-weight: 500; color: var(--champagne);
  opacity: 0; transform: translateY(-4px); transition: opacity 1s ease, transform 1s ease;
}
.lth.s1 .lth-brand { opacity: 0.92; transform: none; }
.lth-copy { max-width: 560px; margin-bottom: clamp(8px, 5vh, 56px); pointer-events: auto; }
.lth h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; text-align: left;
  font-size: clamp(36px, 4.4vw, 68px); line-height: 1.06; color: var(--text);
}
.lth h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.lth h1 .w i {
  display: inline-block; font-style: normal; transform: translateY(105%); opacity: 0;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 90ms), opacity 0.9s ease calc(var(--i) * 90ms);
}
.lth.s2 h1 .w i { transform: none; opacity: 1; }
.lth-sub {
  margin-top: 22px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; color: var(--muted); max-width: 30em;
  opacity: 0; transform: translateY(8px); transition: opacity 1s ease, transform 1s ease;
}
.lth.s3 .lth-sub { opacity: 1; transform: none; }
.lth-cta {
  display: inline-flex; gap: 10px; align-items: center; margin-top: 30px; padding: 16px 28px;
  font-family: var(--sans); font-size: 15px; letter-spacing: 0.04em; color: #1a0509; text-decoration: none; font-weight: 600;
  background: linear-gradient(180deg, #e7d6b4, #c9ae83); border-radius: 999px;
  box-shadow: 0 10px 40px -10px rgba(220, 190, 140, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  opacity: 0; transform: translateY(8px); transition: opacity 1s ease, transform 1s ease, box-shadow 0.4s ease, filter 0.3s;
}
.lth.s4 .lth-cta { opacity: 1; transform: none; }
.lth-cta:hover { filter: brightness(1.06); box-shadow: 0 14px 50px -8px rgba(220, 190, 140, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.lth-cta:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }

@media (min-width: 821px) { .lth-copy { max-width: 36vw; min-width: 460px; } }
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .lth-ui { padding: 22px 24px 28px; }
  .lth-copy { max-width: 100%; margin-bottom: 0; }
  .lth h1 { font-size: clamp(31px, 8.6vw, 46px); }
  .lth-sub { margin-top: 14px; font-size: 16px; }
  .lth-cta { margin-top: 22px; padding: 15px 24px; }
}
@media (max-height: 700px) and (max-width: 820px) { .lth h1 { font-size: 28px; } .lth-sub { margin-top: 10px; } .lth-cta { margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .lth-brand, .lth-sub, .lth-cta, .lth h1 .w i, .lth-canvas { transition: none !important; }
}
