/* ─────────────────────────────────────────────────────────────
   PRE-LAUNCH PAGE (temporary). Only used while index.html has window.PRELAUNCH = true.
   Everything is scoped to .pl / body.pl-view, so it can't touch the shop or waitlist styles.
   ───────────────────────────────────────────────────────────── */
body.pl-view {
  --pl-bg: #050505; --pl-ink: #ededea; --pl-mute: #8a8a85; --pl-faint: #55554f; --pl-line: rgba(255,255,255,.12);
  --pl-g: 20px;
  background: var(--pl-bg); color: var(--pl-ink);
}
@media (min-width: 760px) { body.pl-view { --pl-g: clamp(32px, 4vw, 64px); } }
/* the shop's header, ticker, footer and bag button sit out while this page is up */
body.pl-view .top, body.pl-view .ticker, body.pl-view .foot, body.pl-view .fab { display: none !important; }
body.pl-view #view { padding: 0; animation: none; }
/* one screen, no scrolling at all: the page is pinned to the viewport and the browser can't scroll or bounce it */
html.pl-fixed, html.pl-fixed body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.pl { position: fixed; inset: 0; touch-action: none; }

/* film grain over everything: an inline noise tile, stepped slowly */
body.pl-view::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: pl-grain 2.4s steps(4) infinite;
}
@keyframes pl-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

.pl { overflow: hidden; font-feature-settings: "tnum" 1; }
.pl ::selection { background: var(--pl-ink); color: var(--pl-bg); }
.pl-star { display: block; width: 18px; height: auto; fill: var(--pl-ink); filter: drop-shadow(0 0 10px rgba(255,255,255,.45)); }

/* ── the page: one screen, the artwork and the button */
.pl-hero {
  position: relative; isolation: isolate; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top)) var(--pl-g) calc(24px + env(safe-area-inset-bottom));
}
.pl-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--pl-bg); }
/* the artwork: sized and placed by prelaunch.js (cover on phones, a tall centred poster on wide screens) */
.pl-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50.2% 32.3%;   /* scales around the star, so it stays put */
  animation: pl-reveal 2.4s cubic-bezier(.2,.7,.2,1) both, pl-drift 40s ease-in-out 2.4s infinite alternate; }
.pl-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-art.wide { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
@keyframes pl-reveal { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes pl-drift { from { transform: scale(1); } to { transform: scale(1.05); } }
/* dark at the top for the logo, solid black at the bottom under the type */
.pl-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.7) 0, rgba(5,5,5,0) 16%, rgba(5,5,5,0) 62%, rgba(5,5,5,.75) 80%, #050505 97%);
}
/* the big star breathes */
.pl-glow { position: absolute; left: 50.2%; top: 32.3%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22) 0, rgba(255,255,255,.06) 32%, transparent 62%); mix-blend-mode: screen;
  animation: pl-breathe 6s ease-in-out infinite alternate; }
@keyframes pl-breathe { from { opacity: .35; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
/* sparkles: a four-point glint that grows, turns and fades */
.pl-sp { position: absolute; width: calc(var(--s) * 26px); aspect-ratio: 1; margin: calc(var(--s) * -13px) 0 0 calc(var(--s) * -13px); pointer-events: none;
  animation: pl-twinkle var(--t) ease-in-out var(--dl) infinite; }
.pl-sp::before, .pl-sp::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.pl-sp::before { width: 100%; height: 1.5px; background: linear-gradient(90deg, transparent, #fff 50%, transparent); box-shadow: 0 0 6px rgba(255,255,255,.6); }
.pl-sp::after { width: 1.5px; height: 100%; background: linear-gradient(180deg, transparent, #fff 50%, transparent); box-shadow: 0 0 calc(var(--s) * 8px) calc(var(--s) * 2px) rgba(255,255,255,.55); }
@keyframes pl-twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  45%      { opacity: 1; transform: scale(1) rotate(45deg); }
  60%      { opacity: .9; transform: scale(.85) rotate(60deg); }
}
/* the two orbit stars never go out, they just flare */
.pl-sp.sat { animation-name: pl-flare; }
@keyframes pl-flare {
  0%, 100% { opacity: .55; transform: scale(.6) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pl-logo { width: clamp(108px, 30vw, 156px); height: auto; display: block; }
.pl-tag { margin: 0; font-size: 9.5px; font-weight: 600; letter-spacing: .3em; color: #b4b4ae; text-align: right; }
.pl-hero-b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pl-title { margin: 0 0 0 -.04em; font-size: clamp(52px, 17vw, 236px); font-weight: 600; line-height: .84; letter-spacing: -.05em; text-shadow: 0 0 60px rgba(0,0,0,.6); }
.pl-meta { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #cfcfc9; }
.pl-meta i { font-style: normal; font-size: 9px; color: var(--pl-mute); }
.pl-cta {
  margin-top: 10px; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  border: 1px solid rgba(255,255,255,.4); color: var(--pl-ink); background: rgba(5,5,5,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  transition: background .35s, color .35s, border-color .35s;
}
.pl-cta b { font-weight: 400; font-size: 15px; letter-spacing: 0; transition: transform .35s; }
.pl-cta:hover, .pl-cta:focus-visible { background: var(--pl-ink); color: var(--pl-bg); border-color: var(--pl-ink); }
.pl-cta { width: 100%; font-family: inherit; cursor: pointer; }
.pl-cta:hover b { transform: translateX(4px); }
/* entrance, once */
.pl-in { animation: pl-up 1.2s cubic-bezier(.2,.7,.2,1) calc(.35s + var(--d, 0) * .14s) both; }
@keyframes pl-up { from { opacity: 0; transform: translateY(16px); } }

@media (min-width: 760px) {
  .pl-hero { padding-top: calc(32px + env(safe-area-inset-top)); padding-bottom: 44px; }
  .pl-tag { font-size: 10.5px; }
  .pl-title { font-size: min(12vw, 200px); }
  .pl-hero-b { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 48px; }
  .pl-title { grid-column: 1 / -1; }
  .pl-meta { font-size: 12px; }
  .pl-cta { margin-top: 0; min-width: 300px; }
}

/* ── access the drop: pop-up (bottom sheet on phones, centred card on desktop) */
html.pl-lock, html.pl-lock body { overflow: hidden; }
.pl-modal { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; overscroll-behavior: contain; }
.pl-modal[hidden] { display: none; }
.pl-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s ease; }
.pl-sheet {
  position: relative; display: grid; gap: 10px; max-height: 92svh; overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
  padding: 30px var(--pl-g) calc(26px + env(safe-area-inset-bottom));
  background: #0a0a0a; border-top: 1px solid rgba(255,255,255,.14); color: var(--pl-ink);
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
/* a thin light runs along the top edge */
.pl-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent) no-repeat; background-size: 40% 100%; animation: pl-scan 3s linear infinite; }
@keyframes pl-scan { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.pl-modal.on .pl-scrim { opacity: 1; }
.pl-modal.on .pl-sheet { transform: none; }
.pl-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #2a2a27; border-radius: 50%; background: none; color: #bdbdb6; font-size: 12px; cursor: pointer; transition: border-color .2s, color .2s, transform .3s; }
.pl-x:hover { border-color: var(--pl-ink); color: var(--pl-ink); transform: rotate(90deg); }
.pl-k { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--pl-mute); }
.pl-h { margin: 6px 0 0; font-size: clamp(34px, 10.5vw, 46px); font-weight: 600; line-height: .92; letter-spacing: -.04em; text-transform: uppercase; }
#plBox { margin-top: 18px; }
.pl-sheet:has(.pl-done) .pl-h { display: none; }   /* once they're in, the confirmation is the headline */
.pl-sheet:has(.pl-done) #plBox { margin-top: 10px; }
.pl-form { display: grid; gap: 14px; }
.pl-field { display: block; }
.pl-field input {
  width: 100%; height: 58px; padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); border-radius: 0; background: transparent;
  color: var(--pl-ink); font-family: inherit; font-weight: 500; font-size: 17px; line-height: 1;   /* 16px or more, or iPhones zoom in on the field */ letter-spacing: .02em; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.pl-field input::placeholder { color: var(--pl-faint); font-size: 12px; font-weight: 600; letter-spacing: .26em; }
.pl-field input:focus { border-bottom-color: var(--pl-ink); }
.pl-field input:-webkit-autofill { -webkit-text-fill-color: var(--pl-ink); -webkit-box-shadow: 0 0 0 40px #0a0a0a inset; caret-color: var(--pl-ink); }
.pl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pl-btn {
  margin-top: 10px; height: 58px; border: 0; border-radius: 0; background: var(--pl-ink); color: var(--pl-bg); cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: .28em; text-transform: uppercase; transition: background .3s, opacity .3s;
}
.pl-btn:hover { background: #fff; }
.pl-btn:focus-visible { outline: 1px solid var(--pl-ink); outline-offset: 4px; }
.pl-btn.busy { pointer-events: none; opacity: .7; }
.pl-btn.busy span::after { content: "…"; }
.pl-err { margin: 0; min-height: 1.2em; font-size: 13px; color: #d8b4ae; }
.pl-err:empty { min-height: 0; }
.pl-fine-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pl-fine { margin: 2px 0 0; font-size: 11px; letter-spacing: .04em; color: var(--pl-faint); }
.pl-fine a, .pl-link { color: var(--pl-mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.pl-link { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; cursor: pointer; }
.pl-swap { font-size: 11px; letter-spacing: .04em; color: var(--pl-ink); }
.pl-done { display: grid; justify-items: start; gap: 12px; padding: 4px 0 6px; animation: pl-up .7s cubic-bezier(.2,.7,.2,1) both; }
.pl-done .pl-star { width: 22px; animation: pl-glow 3.2s ease-in-out infinite alternate; }
@keyframes pl-glow { to { filter: drop-shadow(0 0 18px rgba(255,255,255,.75)); } }
.pl-done-t { margin: 0; font-size: clamp(48px, 15vw, 72px); font-weight: 600; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.pl-done-s { margin: 0; font-size: 15px; color: var(--pl-mute); }
.pl-done .pl-link { margin-top: 6px; }
.pl-ig { justify-self: start; margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; color: var(--pl-mute); text-decoration: none; font-size: 12px; letter-spacing: .06em; }
.pl-ig svg { width: 16px; height: 16px; }
.pl-ig:hover { color: var(--pl-ink); }
@media (min-width: 760px) {
  .pl-modal { align-items: center; justify-items: center; padding: 24px; }
  .pl-sheet { width: min(460px, 100%); padding: 40px 40px 34px; border: 1px solid rgba(255,255,255,.14); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
  .pl-modal.on .pl-sheet { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.pl-view::after, .pl-art, .pl-glow, .pl-sp, .pl-in, .pl-done, .pl-done .pl-star, .pl-sheet::before { animation: none !important; }
  .pl-scrim, .pl-sheet { transition: none; }
}
