/* LUCKY SIN. Two pages, each a full-bleed image. They swap every 20 seconds and
   on click. Nothing scrolls. */

:root {
  --bg:        #FBE4EC;
  --bg-2:      #FDF1F5;
  --card:      #FFFFFF;
  --pink:      #F52E92;
  --pink-deep: #C10E6C;
  --wine:      #A32749;
  --ink:       #3B0B24;
  --ink-soft:  #7C4560;
  --mute:      #95627C;
  --line:      #F3C9D9;

  --serif: "Didot", "Bodoni MT", "Hoefler Text", Georgia, serif;
  --sans: "Poppins", "Century Gothic", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  height: 100%; margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
::selection { background: #E4194B; color: #fff; }
.sr { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- the two pages ---------- */
.show { position: fixed; inset: 0; background: var(--bg); }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  /* pointer-events, NOT visibility: a visibility transition only flips at the end,
     which left the buttons on a freshly shown page dead for the whole fade. */
  pointer-events: none;
  transition: opacity .5s ease;
}
.slide.is-on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; }

/* the creator page fills the screen; the 21:9 drop art is shown whole and centred */
.slide--creators img { object-fit: contain; object-position: 50% 50%; }
.slide--drop img { object-fit: contain; object-position: 50% 50%; }

@media (prefers-reduced-motion: reduce) { .slide { transition: opacity .01s; } }

/* Copy laid into the artwork's empty areas. Styled off the artwork's own type:
   tracked small caps, the same wine serif, sparkle separators, no foreign chrome. */
.lay { position: absolute; margin: 0; color: #8A4A52; }

/* Each block covers the artwork text it replaces. The grounds are sampled from
   the artwork itself, as gradients, so the patch has no visible edge. */
.lay--promise {
  display: grid; gap: .32em;
  padding: .5em 0 1.45em 0;
  /* opaque all the way across, colours sampled from the artwork at those x positions,
     so the old paragraph cannot bleed through and the edges still match */
  background: linear-gradient(90deg, #ECCBC4 0%, #EFDAD5 45%, #F0D2CD 92%, #EECFC8 100%);
}
.lay__kicker {
  margin: 0; font-size: .58em; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: #A87C7C;
}
.lay__big {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.34em; line-height: 1.08; color: #A32749;
}
.lay__small { margin: 0; font-size: .84em; line-height: 1.45; color: #8A6A6A; }

.lay--house {
  background: #FAEBE6; color: #8A6A6A; padding: .5em .2em .7em;
  font-size: .82em; letter-spacing: .03em; line-height: 1.5; text-align: center;
}
.lay--house b { color: #A32749; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* the artwork's printed APPLY NOW buttons, made clickable in place */
.hot {
  position: absolute; border: 0; padding: 0; cursor: pointer;
  background: transparent; border-radius: 6px;
}
.hot:hover { background: rgba(255, 255, 255, .16); }
.hot:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* the call to action on each page */
.cta {
  position: absolute; left: 50%; bottom: clamp(74px, 11vh, 112px); transform: translateX(-50%);
  font: inherit; font-size: clamp(11px, 1vw, 12.5px); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  padding: 16px 38px; border-radius: 6px; cursor: pointer;
  border: 2px solid #fff; background: var(--wine); color: #fff;
  box-shadow: 0 18px 40px -18px rgba(59, 11, 36, .85);
  transition: background .2s ease, transform .18s ease;
}
.cta:hover { background: var(--pink-deep); transform: translateX(-50%) translateY(-2px); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2vw, 34px);
  padding: clamp(12px, 2vh, 20px) clamp(16px, 3vw, 40px);
  /* JS lays this exactly over the artwork's own menu strip, opaque, so the old
     printed navigation is covered rather than cropped away */
  background: #F7E3E6;
  transition: none;
}
.bar__nav { align-items: center; }
.bar__logo { height: clamp(30px, 5vh, 46px); width: auto; flex: 0 0 auto; }

/* the credentials sit in the header, between the wordmark and the buttons */
.creds {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(8px, 1.4vw, 20px);
  margin: 0; padding: 0; list-style: none; flex: 1 1 auto; justify-content: center;
}
.creds li {
  display: flex; align-items: center; gap: clamp(8px, 1.4vw, 20px);
  font-size: clamp(8.5px, .78vw, 10.5px); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: #A32749; white-space: nowrap;
}
.creds li + li::before { content: "·"; font-size: 1.8em; line-height: 0; color: #C9899B; }
.bar__nav { display: flex; gap: 10px; }
.navbtn {
  font: inherit; font-size: clamp(9.5px, .95vw, 11px); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .8); color: var(--wine);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.navbtn:hover { border-color: var(--wine); }
.navbtn.is-on { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- page ticks ---------- */
.ticks {
  position: fixed; right: clamp(16px, 3vw, 40px); z-index: 20;
  bottom: calc(clamp(12px, 2vh, 20px) + env(safe-area-inset-bottom));
  display: flex; gap: 8px;
}
.ticks button {
  width: 36px; height: 4px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(163, 39, 73, .28); cursor: pointer;
}
.ticks button[aria-current="true"] { background: var(--wine); }

/* ---------- dialogs ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--pink-deep);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex: 0 0 auto; }
h2 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.02; color: var(--wine); font-size: clamp(24px, 3.2vw, 38px); }
.lede { margin: 12px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.btn {
  font: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  border: 2px solid var(--wine); background: var(--wine); color: #fff;
  transition: background .2s ease, transform .18s ease;
}
.btn:hover { background: var(--pink-deep); transform: translateY(-2px); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(59, 11, 36, .55); backdrop-filter: blur(5px);
}
.sheet {
  position: fixed; z-index: 81; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 28px)); max-height: min(92dvh, 720px); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 3.2vh, 36px) clamp(20px, 4vw, 36px);
  box-shadow: 0 60px 100px -60px var(--ink);
}
.sheet__x {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--mute); cursor: pointer; font-size: 14px;
}
.sheet__x:hover { background: var(--bg-2); color: var(--pink); }
.stack { display: grid; gap: 10px; margin-top: 18px; }
input[type="email"], input[type="text"] {
  font-family: inherit; font-size: 15px; width: 100%;
  padding: 13px 18px; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
}
input::placeholder { color: var(--mute); }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--mute); }
.check input { margin-top: 2px; accent-color: var(--pink); width: 15px; height: 15px; flex: 0 0 auto; }
.msg { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--pink-deep); }
.msg.bad { color: #E4194B; }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; }
.seal {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: #fff; font-size: 22px;
}

/* ---------- phones ---------- */
.phone { display: none; }

@media (max-width: 820px) {
  /* the artwork's own text is unreadable at phone size, so it is replaced with real HTML */
  .slide--creators .art { display: none; }
  .phone--creators {
    display: grid; grid-template-rows: auto minmax(0, 1fr);
    height: 100%; padding-bottom: calc(38px + env(safe-area-inset-bottom));
  }
  .phone__shot { margin: 0; height: min(34vh, 320px); overflow: hidden; }
  .phone__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
  .phone__copy {
    padding: clamp(14px, 2.4vh, 22px) 20px 0;
    display: grid; gap: .5em; align-content: center;   /* fill the space, no dead zone */
  }
  .phone__kicker {
    margin: 0; font-size: 9px; font-weight: 700;
    letter-spacing: .24em; text-transform: uppercase; color: #A87C7C;
  }
  .phone__h1 {
    margin: 0; font-family: var(--serif); font-weight: 400;
    font-size: clamp(30px, 9.5vw, 42px); line-height: 1; color: #A32749;
  }
  .phone__h1 em { font-style: italic; }
  .phone__big {
    margin: 0; font-family: var(--serif); font-style: italic;
    font-size: clamp(15px, 4.4vw, 19px); line-height: 1.15; color: #A32749;
  }
  .phone__small { margin: 0; font-size: 12.5px; line-height: 1.45; color: #8A6A6A; }
  .phone__creds { display: grid; gap: .3em; margin: .2em 0 0; padding: 0; list-style: none; }
  .phone__creds li {
    display: flex; align-items: center; gap: .55em;
    font-size: 9px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: #A32749;
  }
  .phone__creds li::before { content: "·"; font-size: 2em; line-height: 0; color: #C9899B; }
  .phone__btn { margin-top: .35em; justify-self: start; padding: 14px 26px; }
  .phone__house { margin: .1em 0 0; font-size: 11px; line-height: 1.45; color: #8A6A6A; }
  .phone__house b { color: #A32749; text-transform: uppercase; letter-spacing: .06em; }
  .slide--drop img { object-fit: cover; object-position: 44% 34%; }
  .bar { padding: 10px 12px; gap: 8px; }
  .creds { display: none; }
  .bar__nav { gap: 6px; flex: 0 0 auto; }
  .navbtn { padding: 8px 10px; font-size: 8px; letter-spacing: .08em; border-width: 1.5px; }
  .bar__logo { height: 28px; }
  .navbtn { padding: 9px 13px; font-size: 8.5px; letter-spacing: .1em; }
  .cta { bottom: clamp(64px, 10vh, 92px); padding: 14px 26px; font-size: 10.5px; }
}
