/* Tier 6 — the entry page (pp11-), /disclaimer/ as a document of its own (tier-6-entry/template.php).
   One stage a screen tall: soft colour and small claim text behind frosted glass, the wordmark
   assembling from seven amino-acid beads, the confirmations, one button, the claims line. Geometry
   of the wordmark is set by entry-v6.js. */

.pp11 {
  --ink: #111111; --muted: #5f5f58; --paper: #f7f6f2; --white: #ffffff; --green: #004f42; --green-2: #0a6455;
  --mint-deep: #cfe2dc; --lilac: #ebdff1; --butter: #f5edc4; --line: rgba(17, 17, 17, 0.14);
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(.2, .9, .2, 1.12); --ease: cubic-bezier(.2, .7, .2, 1);
  --word: url(../img/entry-wordmark.webp); --tag: url(../img/entry-tagline.webp);
  background: var(--paper); color-scheme: light; -webkit-text-size-adjust: 100%;
}
.pp11 *, .pp11 *::before, .pp11 *::after { box-sizing: border-box; }
.pp11-body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.pp11 a { color: inherit; }
.pp11 a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---- The stage ------------------------------------------------------------------------------------ */
.pp11-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--white); touch-action: pan-y; }
.pp11-stage::after { content: ""; position: absolute; inset: 0; z-index: 5; background: var(--white); opacity: 0; pointer-events: none; transition: opacity .32s var(--ease); }
.pp11-stage.is-gone::after { opacity: 1; }

.pp11-behind {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  background:
    radial-gradient(60% 70% at 12% 18%, var(--mint-deep), transparent 70%),
    radial-gradient(50% 60% at 88% 30%, var(--lilac), transparent 70%),
    radial-gradient(60% 60% at 60% 100%, var(--butter), transparent 70%),
    var(--white);
}
/* Small claim text, in rows that run only to the left and right of the content column. */
.pp11-words {
  position: absolute; inset: 20px 0 74px 0; overflow: hidden; display: flex; flex-direction: column; justify-content: space-around;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 315px), transparent calc(50% - 268px), transparent calc(50% + 268px), #000 calc(50% + 315px), #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 315px), transparent calc(50% - 268px), transparent calc(50% + 268px), #000 calc(50% + 315px), #000 100%);
}
.pp11-row { display: flex; width: max-content; white-space: nowrap; font: 500 clamp(19px, 2.1vw, 28px)/1 var(--font); letter-spacing: -.01em; color: rgba(0, 79, 66, 0.62); animation: pp11-slide 120s linear infinite; }
.pp11-row:nth-child(even) { animation-direction: reverse; }
.pp11-row span { padding-right: 1.8em; }
@keyframes pp11-slide { to { transform: translateX(-50%); } }

.pp11-frost { position: absolute; inset: 0; z-index: 2; background: rgba(247, 246, 242, 0.6); -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pp11-frost { background: rgba(247, 246, 242, 0.93); } }

.pp11-entry {
  position: relative; z-index: 3; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 20px calc(84px + env(safe-area-inset-bottom, 0px)); text-align: center;
}
.pp11-entry.is-leaving { opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }

/* ---- The wordmark ---------------------------------------------------------------------------------- */
.pp11-mark { position: relative; flex: none; margin: 6px 0 0; width: min(440px, 100%); aspect-ratio: 2012 / 376; font-size: 0; background: var(--word) center / contain no-repeat; }
.pp11-res { display: none; }
/* With scripts the artwork is drawn letter by letter instead. */
.pp11-js .pp11-mark { background: none; aspect-ratio: auto; }
.pp11-js .pp11-res { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.pp11-mark.no-anim, .pp11-mark.no-anim * { transition: none !important; animation: none !important; }
.pp11-mark.is-live .pp11-res { opacity: 1; transition: transform .9s var(--spring), opacity .4s; }
.pp11-mark.is-live .pp11-res.is-art { transition: transform 1.4s var(--ease), opacity .4s; }
.pp11-res > * { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.pp11-bead { width: var(--d); height: var(--d); border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); display: grid; place-items: center; transition: opacity .4s, transform .6s var(--ease); }
.pp11-bead b { font: 500 calc(var(--d) * .3)/1 var(--font); letter-spacing: .02em; color: var(--ink); }
.pp11-glyph { font: 600 var(--fs)/1 var(--font); color: var(--ink); white-space: nowrap; opacity: 0; transform-origin: 50% calc(50% + .047em); transition: opacity .4s .08s; }
.pp11-art { height: var(--h); background-image: var(--word); background-size: var(--lw) var(--h); background-repeat: no-repeat; opacity: 0; filter: blur(7px); transition: transform 1.3s var(--ease), opacity 1.15s var(--ease) .1s, filter 1.3s var(--ease); }
.pp11-bond { position: absolute; left: 50%; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform .85s var(--ease); }
.pp11-mark.is-bonded .pp11-bond { transform: scaleX(1); }
.pp11-mark.is-eaten .pp11-bond { transform-origin: 100% 50%; transform: scaleX(0); transition: transform .74s linear; }
.pp11-res.is-letter .pp11-bead { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
.pp11-res.is-letter .pp11-glyph { opacity: 1; }
.pp11-res.is-art .pp11-glyph { opacity: 0; filter: blur(3px); transition: transform 1.3s var(--ease), opacity 1.05s var(--ease), filter 1.3s var(--ease); }
.pp11-res.is-art .pp11-art { opacity: 1; filter: blur(0); }

.pp11-tagline { flex: none; margin: 0; width: min(417px, 94.8%); aspect-ratio: 1907 / 64; background: var(--tag) center / 100% 100% no-repeat; }
.pp11-js .pp11-tagline { opacity: 0; transform: translateY(4px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.pp11-js .pp11-tagline.is-in { opacity: 1; transform: none; }
.pp11-tagline.is-blank { background: none; }   /* the Snap campaign's words carry no tagline picture; the slot stays */

/* ---- The words and the button ---------------------------------------------------------------------- */
.pp11-copy { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 4px; }
.pp11-copy p { margin: 0; }
.pp11-kicker { font: 600 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.pp11-lead { font-size: 14.5px; line-height: 1.4; font-weight: 500; text-wrap: balance; }
.pp11-copy .pp11-confirm { margin: 4px 0 -2px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.pp11-points { list-style: none; margin: 0; padding: 0; width: 100%; font-size: 13px; line-height: 1.4; border-bottom: 1px solid var(--line); }
.pp11-points li { padding: 7px 8px; border-top: 1px solid var(--line); text-wrap: balance; }
.pp11-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.pp11-enter {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px; background: var(--green); color: var(--white) !important; text-decoration: none;
  font: 600 17px/1 var(--font); letter-spacing: .01em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease-out, background-color .2s var(--ease);
}
.pp11-enter svg { flex: none; transition: transform .25s var(--ease); }
.pp11-enter:hover { background: var(--green-2); }
.pp11-enter:hover svg { transform: translateX(4px); }
.pp11-enter:active { transform: scale(.98); }
.pp11-exit { color: var(--muted) !important; font-size: 13px; padding: 4px 10px; text-underline-offset: 3px; }
.pp11-fine { max-width: 420px; font-size: 11.5px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.pp11-fine a { text-underline-offset: 3px; }

/* ---- The claims line along the bottom -------------------------------------------------------------- */
.pp11-chain { position: absolute; left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0px); height: 54px; padding-top: 8px; overflow: hidden; }
.pp11-chain::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 1px solid var(--ink); }
.pp11-chain__run { display: flex; width: max-content; animation: pp11-slide 46s linear infinite; }
.pp11-chain__run span { position: relative; white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: .04em; padding: 14px 34px 0 16px; }
.pp11-chain__run span::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); }

@media (max-width: 520px) {
  .pp11-lead { font-size: 14px; }
  .pp11-entry { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp11-row, .pp11-chain__run { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pp11-frost { background: rgba(247, 246, 242, 0.95); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
