/* Rememberr.in splash: gold Cormorant Unicase on black, each part of the word revealed on its musical cue. */
@font-face { font-family: "Cormorant Unicase"; font-weight: 700; font-display: block; src: url(/shared/fonts/cormorant-unicase-latin-700-normal.woff2) format("woff2"); }
html, body { margin: 0; height: 100%; background: #141414; }
.ri-splash {
  position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: #141414;
  -webkit-tap-highlight-color: transparent; user-select: none;
}

.ri-word {
  margin: 0; padding: 0 16px; white-space: nowrap;
  font: 700 clamp(40px, 11.5vw, 132px)/1 "Cormorant Unicase", Georgia, serif; letter-spacing: .02em;
}
.ri-part {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.14em);
  background: linear-gradient(180deg, #fff3c4 0%, #f2d675 30%, #d4af37 58%, #9c7a1e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .35s ease-out, filter .45s ease-out, transform .45s cubic-bezier(.2,.7,.2,1);
}
.ri-part.is-on { opacity: 1; filter: blur(0); transform: none; }
/* a slow sheen across each part as it settles */
.ri-part.is-on { background-size: 100% 100%; }

@keyframes ri-glow {
  0% { text-shadow: none; filter: drop-shadow(0 0 0 rgba(242,214,117,0)); }
  35% { filter: drop-shadow(0 0 18px rgba(242,214,117,.55)); }
  100% { filter: drop-shadow(0 0 0 rgba(242,214,117,0)); }
}
/* the i is drawn (from the Ri icon) with its beacon: the dot, then the small arc, then the big arc, one note each.
   It sits on the text baseline like a letter, so it lines up in every browser. The stem is the icon's i, scaled to
   the wordmark's small-cap height (about .465em for 468 units), so the whole drawing (840 units tall) is .835em. */
.ri-i { background: none !important; }
.ri-ibeacon { display: inline-block; height: .835em; width: auto; vertical-align: baseline; margin: 0 .02em 0 .01em; overflow: visible; }
.ri-b { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.6); transition: opacity .3s ease-out, transform .4s cubic-bezier(.2,.8,.2,1.2); }
.ri-b.is-on { opacity: 1; transform: none; }
.ri-ibeacon.is-glint { animation: ri-glint 2.8s ease-out 1; }
/* the glint, in em so it is as strong on a phone as on a big screen: a bright halo that blooms and fades */
@keyframes ri-glint {
  0% { filter: drop-shadow(0 0 0 rgba(242,214,117,0)); }
  30% { filter: drop-shadow(0 0 .07em rgba(255,243,196,.95)) drop-shadow(0 0 .22em rgba(242,214,117,.85)); }
  100% { filter: drop-shadow(0 0 0 rgba(242,214,117,0)); }
}
/* a fine gold line drawn under the word once it is complete */
.ri-line {
  position: absolute; left: 50%; top: calc(50% + clamp(34px, 8.5vw, 96px)); margin: 0; height: 1px; width: 0; translate: -50% 0;
  background: linear-gradient(90deg, transparent, #d4af37, transparent); transition: width 1.2s ease-out;
}
.ri-splash.is-lined .ri-line { width: min(62vw, 640px); }

.ri-sound {
  position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(212,175,55,.45); background: rgba(20,20,20,.6); color: #f2d675;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; transition: opacity .6s ease, border-color .2s;
}
.ri-sound:hover { border-color: #d4af37; }
.ri-splash.has-sound .ri-sound { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ri-part { transition: opacity .6s ease; filter: none; transform: none; }
  .ri-in.is-on { animation: none; }
}

/* phones: the word fills about 90% of the screen width (it is about 6.9em wide) */
@media (max-width: 700px) {
  .ri-word { padding: 0; font-size: 13vw; }
  .ri-line { top: calc(50% + 9.5vw); }
  .ri-splash.is-lined .ri-line { width: 80vw; }
}
