/* Tagari: depth (film grain, parallax backgrounds, the SE7EN strip) + the splash. Loaded after site.css. */
body::after {                             /* fine film grain over everything, so the blacks aren't flat */
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.bg { position: absolute; left: 0; right: 0; top: -18%; bottom: -18%; z-index: -2; pointer-events: none; will-change: transform; }
.bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: saturate(.85); }
.bg::after {                              /* melt the picture into the page at the top and bottom */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 4%, rgba(11,11,13,.35) 32%, rgba(11,11,13,.45) 68%, var(--bg) 96%);
}
.door .bg { top: -4%; bottom: -4%; left: -4%; right: -4%; transition: transform .4s ease-out; }
.door .bg img { opacity: .22; }
.door > img { transition: transform .6s cubic-bezier(.2,.7,.2,1), translate .4s ease-out; }

.sins { margin-top: 56px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px;
        overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sins::-webkit-scrollbar { display: none; }
.sin { scroll-snap-align: start; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4;
       border: 1px solid var(--line); }
.sin img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.sin:hover img { transform: scale(1.06); }
.sin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85)); }
.sin span { position: absolute; left: 14px; bottom: 16px; z-index: 1; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.sin small { display: block; font-size: 11px; letter-spacing: .24em; color: var(--muted); font-weight: 400; }
.sin i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1; }

/* ---------- splash: once per visit, tap to skip ---------- */
.splash { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; overflow: hidden;
          transition: opacity .7s ease, visibility .7s, background-color 1.3s ease; cursor: pointer; }
/* the morph: the black melts to the page while the logo glides onto its place (site.js) */
.splash.morph { background-color: transparent; pointer-events: none; }
.splash .scope, .splash .flash, .splash .line, .splash .skip, .splash .shine { transition: opacity .35s ease; }
.splash.morph .scope, .splash.morph .flash, .splash.morph .line, .splash.morph .skip, .splash.morph .shine { opacity: 0 !important; }
.splash.out { opacity: 0; visibility: hidden; }
.splash .stage { position: relative; isolation: isolate; }   /* no fill: it would hide the label's line */
.splash .stage img { display: block; position: relative; }
.splash .shine {                          /* a band of light; overlay leaves black alone, so only the logo lights up */
  position: absolute; inset: 0; mix-blend-mode: overlay; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; animation: shine 1.1s ease-in-out var(--shine-at) both;
}
@keyframes shine { to { background-position: -60% 0; } }
.splash .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.splash .skip { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 11px;
                letter-spacing: .3em; color: #55544f; text-transform: uppercase; }

/* artist: the scope locks on */
.splash.artist { --shine-at: 1.75s; }
.splash.artist .stage img { width: min(70vw, 420px, 60vh); animation: lockon 1s cubic-bezier(.2,.8,.2,1) .55s both; }
@keyframes lockon { 0% { opacity: 0; transform: scale(1.7); filter: blur(16px); } 60% { opacity: 1; filter: blur(0); }
                    78% { transform: scale(.97); } 100% { opacity: 1; transform: scale(1); } }
.splash .scope { position: absolute; inset: 0; pointer-events: none; }
.splash .scope i { position: absolute; background: #d9d3c7; opacity: 0; }
.splash .scope .h { left: 0; right: 0; top: 50%; height: 1px; animation: scopeh 1.2s ease-out .05s both; }
.splash .scope .v { top: 0; bottom: 0; left: 50%; width: 1px; animation: scopev 1.2s ease-out .05s both; }
.splash .scope .ring { left: 50%; top: 50%; width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin; background: none;
                       border: 1px solid #d9d3c7; border-radius: 50%; animation: ring 1.2s ease-out .05s both; }
@keyframes scopeh { 0% { opacity: 0; transform: scaleX(.1); } 30% { opacity: .5; } 70% { opacity: .5; transform: scaleX(1); } 100% { opacity: 0; } }
@keyframes scopev { 0% { opacity: 0; transform: scaleY(.1); } 30% { opacity: .5; } 70% { opacity: .5; transform: scaleY(1); } 100% { opacity: 0; } }
@keyframes ring { 0% { opacity: 0; transform: scale(2.4); } 40% { opacity: .6; } 75% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
.splash.artist .flash { animation: flash .5s ease-out 1.15s forwards; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }

/* label: a line draws, the logo opens from the middle and rises, then the light passes */
.splash.label { --shine-at: 1.45s; }
.splash.label .stage img { width: min(86vw, 620px); animation: reveal 1.1s cubic-bezier(.65,0,.25,1) .45s both; }
@keyframes reveal { 0% { clip-path: inset(0 50% 0 50%); transform: translateY(14px); opacity: .2; }
                    100% { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
.splash .line { position: absolute; left: 50%; top: 50%; height: 1px; width: min(86vw, 620px); translate: -50% 0;
                background: #e8d9b5; transform: scaleX(0); animation: line .9s cubic-bezier(.65,0,.25,1) 0s both; }
@keyframes line { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  .bg { transform: none !important; }
}
@media (min-width: 860px) { .sins { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } }
