/* ==========================================================================================
   STIKLET · the rest of the homepage in the hero's language (see DESIGN.md):
   one continuous mood colour, headings set like the mood's name, the hero's two buttons,
   cards and screens that move like objects. The web player (#player) is not touched.
   ========================================================================================== */

/* one page, one colour: the mood's deep shade runs from the hero to the footer, no boxed panels */
#site{background:color-mix(in srgb,var(--deep) 30%,#0D0915)}
#site main>section:not(.cr),#site footer{background:none}
#site header.scrolled{background:color-mix(in srgb,var(--deep) 34%,rgba(13,9,21,.82))}
#site header .prog{background:var(--hc,#E2D1FF);height:2px}

/* headings: the hero's type, in the mood's light colour, rolling in letter by letter */
#site main section h2,#site .gtitle{font-size:clamp(44px,7.4vw,124px)!important;line-height:.92;letter-spacing:-.06em;color:var(--hc,#E2D1FF);transition:color .7s ease}
#site section h2 .ch{display:inline-block}
#site section h2 .w{padding:.04em .02em .12em;margin:-.04em -.02em -.12em}
#site .sub{color:rgba(246,241,255,.68)}

/* buttons everywhere on the page look like the hero's */
#site .btn{transition:background-color .7s ease,color .7s ease,border-color .7s ease,box-shadow .3s,transform .25s var(--spring),translate .35s var(--spring)}
#site .btn.primary{background:var(--hc,#E2D1FF);color:var(--hk,#170D29);box-shadow:0 16px 40px rgba(6,3,12,.3)}
#site .btn.primary:hover{box-shadow:0 20px 50px rgba(6,3,12,.4)}
#site .btn.soft{background:transparent;color:#F6F1FF;border:1.5px solid color-mix(in srgb,var(--hc,#E2D1FF) 50%,transparent);box-shadow:none}
#site .btn.soft:hover{background:color-mix(in srgb,var(--hc,#E2D1FF) 14%,transparent);border-color:var(--hc,#E2D1FF)}
#site .big-cta{background:var(--hc,#E2D1FF);color:var(--hk,#170D29)}

/* cards and steps sit on the mood like printed sleeves, and lift when you point at them */
#site .card,#site .steps li{transition:transform .6s cubic-bezier(.2,.9,.25,1),box-shadow .4s}
#site .card:hover,#site .steps li:hover{transform:translateY(-8px);box-shadow:0 30px 60px rgba(6,3,12,.35)}
#site .steps li{background:color-mix(in srgb,var(--deep) 40%,#191226)}

/* screens slide in sideways inside their device */
#site .scr{perspective:900px}
#site .scr img{backface-visibility:hidden}

/* genre tiles flip in from the side, like records in a crate */
#site .gt{transform-origin:0 50%}

/* the footer wordmark is the hero's type in the mood's colour */
#site .wordmark{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:var(--hc,#E2D1FF);opacity:1;transition:color .7s ease;line-height:.86}
#site .wordmark .w{padding:.02em .02em .1em}
#site .wordmark .ch{display:inline-block}

/* the genre filter is a row of words, like the hero: the chosen mood lights up in its colour */
#site .gmoods{gap:6px 26px;margin-top:30px}
#site .gm{height:auto;padding:4px 0;border:0;border-radius:0;background:none;color:rgba(246,241,255,.42);font-family:var(--display);font-weight:700;font-size:clamp(16px,1.5vw,22px);letter-spacing:-.02em;position:relative;transition:color .4s ease}
#site .gm:hover{background:none;color:rgba(246,241,255,.8)}
#site .gm[aria-pressed="true"]{background:none;color:var(--hc,#E2D1FF)}
#site .gm::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;border-radius:1px;background:var(--hc,#E2D1FF);transform:scaleX(0);transition:transform .5s cubic-bezier(.16,1,.3,1)}
#site .gm[aria-pressed="true"]::after{transform:scaleX(1)}
#site .gm:focus-visible{outline:2px solid var(--hc,#E2D1FF);outline-offset:4px;border-radius:4px}

/* the screen switches (phone tabs, tablet / car mode) are words too, like the genre filter */
#site .tab,#site .pill{height:auto;padding:4px 0;border-radius:0;background:none;color:rgba(246,241,255,.45);font-family:var(--display);font-weight:700;letter-spacing:-.02em;transition:color .4s ease}
#site .tab{font-size:17px}
#site .pill{font-size:15px;position:relative}
#site .tab:hover,#site .pill:hover{background:none;color:rgba(246,241,255,.85)}
#site .tab[aria-selected="true"],#site .pill[aria-pressed="true"]{background:none;color:var(--hc,#E2D1FF)}
#site .tabs{gap:6px 22px}
#site .pills{gap:6px 20px}
#site .tabs .ind{background:none;border-radius:0;overflow:visible}
#site .tabs .ind i{height:2px;bottom:-4px;border-radius:1px;background:var(--hc,#E2D1FF)}
#site .pill::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;border-radius:1px;background:var(--hc,#E2D1FF);transform:scaleX(0);transition:transform .5s cubic-bezier(.16,1,.3,1)}
#site .pill[aria-pressed="true"]::after{transform:scaleX(1)}
/* Car mode keeps its amber, as text and line, never as a box behind the word */
#site .dev.car .pill[aria-pressed="true"]{background:none;color:var(--amber)}
#site .dev.car .pill::after{background:var(--amber)}

/* the turned-over sleeve fills the screen; the hint sits in the space under it */
#site .dh-zcap{bottom:max(2.2vh,12px);font-size:13px}

/* ---------- install: three big numbers that fill with the mood's colour, then the two buttons ---------- */
#site .install{padding:clamp(90px,12vh,140px) 0 clamp(80px,10vh,120px);text-align:center}
#site .taps{list-style:none;margin:clamp(24px,4vh,48px) auto 0;padding:0;max-width:1100px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,56px)}
#site .taps li{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
#site .tn{position:relative;display:block;font-family:var(--display);font-weight:700;font-size:clamp(120px,15vw,250px);line-height:.86;letter-spacing:-.06em;
  color:transparent;-webkit-text-stroke:2px color-mix(in srgb,var(--hc,#E2D1FF) 50%,transparent);transition:transform .6s cubic-bezier(.2,.9,.25,1)}
#site .tn::after{content:attr(data-n);position:absolute;inset:0;color:var(--hc,#E2D1FF);-webkit-text-stroke:0;clip-path:inset(100% 0 0 0);transition:clip-path 1.2s cubic-bezier(.16,1,.3,1),color .7s ease}
#site .taps li.lit .tn::after{clip-path:inset(0 0 0 0)}
#site .taps li:hover .tn{transform:translateY(-8px) rotate(-3deg)}
#site .taps b{margin-top:14px;font-family:var(--display);font-weight:700;font-size:clamp(22px,2.2vw,32px);letter-spacing:-.03em;color:#F6F1FF}
#site .taps li>span:last-child{color:rgba(246,241,255,.62);font-size:16px}
#site .inst-cta{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:clamp(48px,7vh,80px)}
#site .inst-cta .big-cta{margin:0;height:60px;padding:0 32px;font-size:17px;border-radius:30px}
#site .install .soon{display:block;margin:18px 0 0;padding:0;background:none;box-shadow:none;border-radius:0;font-size:14px;color:rgba(246,241,255,.5)}
#site .install .help{max-width:640px;margin:22px auto 0;padding:0;background:none;color:rgba(246,241,255,.75);text-align:center}
#site .install .help summary{display:inline-block;list-style:none;cursor:pointer;font-size:14px;font-weight:700;color:rgba(246,241,255,.6);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--hc,#E2D1FF) 50%,transparent);text-underline-offset:5px;transition:color .3s}
#site .install .help summary::-webkit-details-marker{display:none}
#site .install .help summary:hover,#site .install .help[open] summary{color:var(--hc,#E2D1FF)}
#site .install .help p{margin:14px 0 0;font-size:15px;line-height:1.55;text-align:left}
#site .install .help b{color:#F6F1FF}
@media (max-width:640px){
#site .taps{grid-template-columns:minmax(0,1fr);gap:26px;max-width:340px}
#site .taps li{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:18px;align-items:end;text-align:left}
#site .tn{grid-row:span 2;font-size:104px;align-self:center}
#site .taps b{margin:0;align-self:end}
#site .taps li>span:last-child{align-self:start}}
#site .tn::after{-webkit-text-stroke:2px var(--hc,#E2D1FF)}
@media (max-width:640px){#site .tn{width:.78em;text-align:center}}
#site .taps li.lit .tn{-webkit-text-stroke-color:transparent;transition:transform .6s cubic-bezier(.2,.9,.25,1),-webkit-text-stroke-color .3s ease 1.1s}

/* ---------- take a look: a ring of the real screens, turned by the scroll (js/site.js "the ring") ---------- */
#site .look{padding:90px 0 0}
#site .look .head{margin-bottom:0}
#site .lk-run{position:relative;height:460vh}
#site .lk-pin{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center;
  padding:0 max(clamp(16px,4vw,60px),calc((100% - 1380px) / 2));--lkh:min(70svh,780px);--lkw:calc(var(--lkh) * .4681)}
#site .lk-flood{position:absolute;left:62%;top:50%;width:min(94svh,90vw);aspect-ratio:1;translate:-50% -50%;pointer-events:none;border-radius:50%;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--sc,#C8A6FF) 38%,transparent),color-mix(in srgb,var(--sc,#C8A6FF) 13%,transparent) 55%,transparent);transition:background .9s ease}
#site .lk-ghost{position:absolute;left:0;top:52%;white-space:nowrap;pointer-events:none;font-family:var(--display);font-weight:700;font-size:34vw;line-height:1;letter-spacing:-.07em;
  color:rgba(246,241,255,.024);will-change:transform}
#site .lk-side{position:relative;z-index:2;display:flex;flex-direction:column;gap:clamp(28px,5vh,56px);min-width:0}
#site .lk-word{position:relative;height:calc(clamp(56px,6vw,108px) * 1.02)}
#site .lk-line{position:absolute;left:0;bottom:0;display:flex;white-space:pre;overflow:hidden;padding:.06em .04em .1em;margin:0 -.04em -.1em;
  font-family:var(--display);font-weight:700;font-size:clamp(56px,6vw,108px);line-height:.9;letter-spacing:-.06em;color:var(--hc,#E2D1FF);transition:color .7s ease}
#site .lk-line span{display:inline-block}
#site .lk-cap{margin:14px 0 0;font-size:20px;color:rgba(246,241,255,.7);min-height:1.5em}
#site .chapters{display:grid;grid-template-columns:repeat(4,max-content);gap:16px 26px;max-width:none;list-style:none;margin:0;padding:0}
#site .chap{position:relative;display:flex;align-items:baseline;gap:8px;padding:0 0 10px;border-radius:0;background:none!important;opacity:.45;overflow:visible;cursor:pointer;transition:opacity .3s}
#site .chap:hover{opacity:.8}
#site .chap.on{opacity:1}
#site .chap .n{font-family:var(--display);font-weight:700;font-size:12px;-webkit-text-stroke:0;color:var(--hc,#E2D1FF);letter-spacing:.06em}
#site .chap h3{font-family:var(--display);font-weight:700;font-size:14px;letter-spacing:-.02em;white-space:nowrap;margin:0}
#site .chap .pg{position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:1px;background:var(--hc,#E2D1FF);transform-origin:left;transform:scaleX(0);opacity:1;transition:transform .6s cubic-bezier(.16,1,.3,1)}
#site .chap::before{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:1px;background:rgba(246,241,255,.12)}
#site .chap:focus-visible{outline:2px solid var(--hc,#E2D1FF);outline-offset:4px;border-radius:4px}
#site .lk-stage{position:relative;z-index:1;height:100%;perspective:1700px;perspective-origin:50% 45%}
#site .lk-ring{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d;will-change:transform}
#site .rp{position:absolute;left:calc(var(--lkw) / -2);top:calc(var(--lkh) / -2);width:var(--lkw);margin:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;cursor:pointer;will-change:transform}
#site .rp .ph{padding:7px;border-radius:36px}
#site .rp .scr{border-radius:30px;background:#120c1d}
#site .rp img{position:absolute;inset:0;width:100%;height:100%}
#site .rp .sh{position:absolute;inset:0;border-radius:36px;background:#0b0712;opacity:0;pointer-events:none}
#site .rp .gl{position:absolute;inset:0;border-radius:36px;overflow:hidden;pointer-events:none;opacity:0;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.16) 48%,rgba(255,255,255,.05) 52%,transparent 60%) 50% 0/300% 100% no-repeat}
/* a soft shadow on the floor under the front phone */
#site .lk-stage::after{content:"";position:absolute;left:50%;top:calc(50% + var(--lkh) / 2 + 18px);width:calc(var(--lkw) * 1.6);height:44px;margin-left:calc(var(--lkw) * -.8);
  border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.45),transparent);filter:blur(6px);pointer-events:none}
#site .lk-dots{display:none}
@media (min-width:1000px) and (max-width:1299px){#site .chapters{grid-template-columns:repeat(2,max-content);gap:12px 30px}}
@media (max-width:999px){
#site .lk-run{height:420vh}
#site .lk-pin{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;align-items:start;padding:clamp(70px,11svh,100px) 16px 22px;--lkh:min(56svh,520px);--lkw:calc(var(--lkh) * .4681)}
#site .lk-side{gap:0;text-align:center;align-items:center}
#site .lk-word{height:calc(clamp(44px,12vw,72px) * 1.02);width:100%}
#site .lk-line{left:50%;transform:translateX(-50%);font-size:clamp(44px,12vw,72px)}
#site .lk-cap{font-size:16px;margin-top:8px}
#site .chapters{display:none}
#site .lk-ghost{font-size:52vw;top:50%}
#site .lk-flood{left:50%;top:55%;width:min(120vw,80svh)}
#site .lk-dots{display:flex;justify-content:center;gap:8px;position:relative;z-index:2}
#site .lk-dots i{width:6px;height:6px;border-radius:3px;background:rgba(246,241,255,.22);transition:width .4s cubic-bezier(.16,1,.3,1),background .4s}
#site .lk-dots i.on{width:22px;background:var(--hc,#E2D1FF)}
#site .rp .ph{padding:5px;border-radius:28px}#site .rp .scr{border-radius:23px}#site .rp .sh{border-radius:28px}}
/* sections far down the page aren't laid out or painted until they come near: a faster first load, same page */
/* (only below the pinned scenes, so nothing above them can shift while you scroll) */
#site #web,#site #big,#site #install,#site footer{content-visibility:auto;contain-intrinsic-size:auto 1000px}
#site #install{contain-intrinsic-size:auto 850px}#site footer{contain-intrinsic-size:auto 350px}
/* the ring's layers are kept on the graphics card only while the section is near the screen */
#site .lk-run:not(.live) .lk-ring,#site .lk-run:not(.live) .rp,#site .lk-run:not(.live) .lk-ghost{will-change:auto}
/* resting points inside the pinned scenes; on touch screens a flick stops at each of them instead of flying past */
#site .snap{position:absolute;left:0;width:1px;height:1px;pointer-events:none;opacity:0}
@media (pointer:coarse){html.snap-y{scroll-snap-type:y mandatory}#site .snap{scroll-snap-align:start;scroll-snap-stop:always}}
@media (max-width:699px){#site .lk-ghost{display:none}}
/* The pinned scenes fill the screen even when a phone's browser bars slide away while you scroll (the large
   viewport); what sits at their bottom edge is lifted by the bars' height, so it is never hidden under them. */
@supports (height:100lvh){
#site .gl-pin,#site .lk-pin{height:100lvh}
#site .gl-c{bottom:calc(clamp(40px,9vh,96px) + 100lvh - 100svh)}
#site .gl-b{bottom:calc(clamp(40px,10vh,120px) + 100lvh - 100svh)}
@media (max-width:999px){#site .lk-pin{padding-bottom:calc(22px + 100lvh - 100svh)}}}
