@font-face { font-family: "LCAP Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "LCAP Work Sans"; src: url("fonts/work-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

html.lcap-lock { overflow: hidden; }

.lcap, .lcap *, .lcap *::before, .lcap *::after { box-sizing: border-box; }
.lcap[hidden] { display: none !important; }

.lcap {
  --lcap-night-1: #0d1236;
  --lcap-night-2: #232a66;
  --lcap-night-3: #4a3f86;
  --lcap-cream: #fdf6e7;
  --lcap-gold: #f2c14e;
  --lcap-gold-text: #ffd67a;
  --lcap-ink: #3d1b24;
  --lcap-soft: #dfe5ff;
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  font-family: "LCAP Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5; text-align: left;
  opacity: 0; transition: opacity .32s ease;
}
/* Coming in is slow and in steps: the dark layer, then the card, then the text line by line. Going out is quick. */
.lcap.is-open { opacity: 1; transition: opacity .7s ease; }

.lcap__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 32, .72); }

/* Three quarters of the screen, both ways. */
.lcap__dialog {
  position: relative; width: 75vw; height: 75vh; height: 75dvh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; outline: none;
  color: var(--lcap-cream);
  background: linear-gradient(180deg, var(--lcap-night-1) 0%, var(--lcap-night-2) 55%, var(--lcap-night-3) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; transform: translateY(36px) scale(.95);
  transition: transform .32s ease, opacity .25s ease;
}
.lcap.is-open .lcap__dialog {
  opacity: 1; transform: none;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1) .2s, opacity .7s ease .2s;
}

/* The picture: top band, fading into the night sky. */
/* Takes the room the text leaves over, so the text is never cut off. */
.lcap__art { position: relative; flex: 1 1 0; min-height: 0; margin: 0; }
.lcap__art img {
  display: block; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0;
  object-fit: cover; object-position: 50% 8%;
  transform: scale(1.08); transform-origin: 50% 20%; transition: transform .32s ease;
}
.lcap.is-open .lcap__art img { transform: none; transition: transform 2.4s cubic-bezier(.16, 1, .3, 1) .2s; }
.lcap__art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 55%;
  background: linear-gradient(180deg, rgba(24, 30, 82, 0) 0%, #181e52 96%);
}

/* Snow: three layers of dots, drifting down slowly. */
.lcap__snow {
  position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 130px 90px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80px 160px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 210px 50px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 260px 200px, #fff 50%, transparent 51%);
  background-size: 300px 240px;
  animation: lcap-snow 22s linear infinite;
}
@keyframes lcap-snow { to { background-position: 40px 240px; } }

.lcap__body {
  position: relative; flex: 0 1 auto; min-height: 0; overflow-y: auto;
  padding: clamp(14px, 2.4vh, 28px) clamp(20px, 4vw, 64px) clamp(18px, 3.4vh, 40px);
  background: linear-gradient(180deg, #181e52 0%, rgba(24, 30, 82, 0) 60%);
}

.lcap__body > * { opacity: 0; transform: translateY(18px); transition: opacity .2s ease, transform .2s ease; }
.lcap.is-open .lcap__body > * { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.lcap.is-open .lcap__body > :nth-child(1) { transition-delay: .55s; }
.lcap.is-open .lcap__body > :nth-child(2) { transition-delay: .68s; }
.lcap.is-open .lcap__body > :nth-child(3) { transition-delay: .82s; }
.lcap.is-open .lcap__body > :nth-child(4) { transition-delay: .98s; }
.lcap.is-open .lcap__body > :nth-child(5) { transition-delay: 1.12s; }
.lcap .lcap__x { opacity: 0; }
.lcap.is-open .lcap__x { opacity: 1; transition: opacity .6s ease 1.1s, background-color .12s ease; }

.lcap .lcap__eyebrow {
  margin: 0 0 clamp(6px, 1.2vh, 14px); padding: 0;
  font-family: "LCAP Outfit", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(15px, 1.25vw, 20px); line-height: 1.2; letter-spacing: 0;
  color: var(--lcap-gold-text);
}
.lcap .lcap__title {
  margin: 0 0 clamp(10px, 1.8vh, 20px); padding: 0; max-width: 20ch;
  font-family: "LCAP Outfit", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(26px, min(4vw, 6.2vh), 60px); line-height: 1.04; letter-spacing: -.02em;
  color: var(--lcap-cream); text-transform: none; text-wrap: balance;
}
.lcap .lcap__text {
  margin: 0 0 clamp(14px, 2.6vh, 28px); padding: 0; max-width: 52ch;
  font-size: clamp(14px, 1.15vw, 18px); line-height: 1.5; color: var(--lcap-soft);
}

.lcap__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 clamp(10px, 1.6vh, 16px); }

.lcap .lcap__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; margin: 0; padding: 12px 30px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: "LCAP Work Sans", system-ui, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-transform: none; letter-spacing: 0; white-space: nowrap;
  cursor: pointer; box-shadow: none;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.lcap .lcap__btn--primary {
  background: var(--lcap-gold); color: var(--lcap-ink);
  box-shadow: 0 8px 28px rgba(242, 193, 78, .35);
}
.lcap .lcap__btn--primary:hover { background: #ffd067; color: var(--lcap-ink); transform: translateY(-1px); }
.lcap .lcap__btn--ghost {
  background: rgba(13, 18, 54, .55); color: var(--lcap-cream); border-color: rgba(242, 193, 78, .65);
}
.lcap .lcap__btn--ghost:hover { background: rgba(13, 18, 54, .9); color: var(--lcap-cream); border-color: var(--lcap-gold); }

.lcap .lcap__note { margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--lcap-soft); }
.lcap .lcap__never {
  display: inline; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: inherit; color: var(--lcap-gold-text); text-decoration: underline; text-underline-offset: 3px;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.lcap .lcap__never:hover { color: #fff; background: none; }

.lcap .lcap__x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  background: rgba(13, 18, 54, .6); color: #fff; cursor: pointer; box-shadow: none;
}
.lcap .lcap__x:hover { background: rgba(13, 18, 54, .95); color: #fff; }

.lcap .lcap__btn:focus-visible, .lcap .lcap__never:focus-visible, .lcap .lcap__x:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px;
}

/* Phones: wider, so the text stays readable; still three quarters high. */
@media (max-width: 640px) {
  .lcap__dialog { width: 92vw; border-radius: 20px; }
  .lcap__art img { object-position: 24% 8%; }
  .lcap .lcap__btn { width: 100%; }
}
/* Low screens (a phone on its side): the picture goes, the text stays. */
@media (max-height: 520px) {
  .lcap__art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lcap, .lcap.is-open, .lcap .lcap__btn { transition: opacity .2s linear; }
  .lcap .lcap__dialog, .lcap .lcap__art img, .lcap .lcap__body > *, .lcap .lcap__x { transition: none !important; transform: none !important; opacity: 1 !important; }
  .lcap__snow { animation: none; }
}
