/* Library / Order complete ===================================================
   Desktop follows the 1440 artboard: L1 Yours 780, L2 Library 720, footer.
   ========================================================================== */

/* L1 Yours ------------------------------------------------------------------- */
.lib-hero { height: 780px; }
.lib-hero .stage { height: 780px; }
.lib-hero .art { position: absolute; inset: 0; pointer-events: none; }
.lib-fade { position: absolute; left: var(--bleed); right: var(--bleed); top: 660px; height: 120px; background: linear-gradient(180deg, rgb(4 6 11 / 0), var(--c-black)); }
.lib-object { position: absolute; inset: 0; }
.lib-orbits { position: absolute; left: 700px; top: 40px; width: 720px; height: 720px; overflow: visible; }
.lib-file {
  --fill: linear-gradient(180deg, rgb(156 195 230 / .22), rgb(29 79 120 / .149));
  --bb: 24px; --bs: 1.2;
  --drop: 0 40px 70px -10px rgb(2 4 9 / .8);
  --r: 26px; --tab-h: 20px;
  position: absolute; left: 880px; top: 274px; width: 360px; height: 252px;
  rotate: -4deg;
}
.lib-file > .folder-shadow { border-radius: 26px; }
.lib-cover {
  position: absolute; left: 10px; top: 30px; width: 340px; height: 212px;
  border-radius: 14px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #04060B, #0E2A44);
}
.lib-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .122); pointer-events: none; }
.lphone { position: absolute; width: 104px; height: 220px; border-radius: 20px; background: #0A0E14; box-shadow: inset 0 0 0 1px rgb(220 235 247 / .4), 0 16px 26px rgb(0 0 0 / .651); }
.lphone img { position: absolute; left: 3.5px; top: 3.5px; width: 97px; height: 213px; border-radius: 17px; object-fit: cover; }
.lphone--player { left: 78px; top: 28px; rotate: -7deg; }
.lphone--week { left: 152px; top: 12px; rotate: 5deg; }
.lib-connector { position: absolute; left: 1059.5px; top: 540px; width: 1px; height: 50px; background: linear-gradient(180deg, rgb(143 195 234 / 0), rgb(143 195 234 / .502)); }
.success { position: absolute; left: 1170px; top: 234px; width: 96px; height: 96px; filter: drop-shadow(0 14px 30px rgb(4 6 11 / .702)); }
.success svg { width: 100%; height: 100%; overflow: visible; }
.file-pill {
  position: absolute; left: 910px; top: 590px; z-index: 2;
  display: flex; align-items: center; width: 300px; height: 48px; padding: 0 22px 0 18px;
  border-radius: 24px;
  background: rgb(255 255 255 / .0588);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .149);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.file-pill .i { color: var(--c-pale); }
.fp-name { margin-left: 10px; font: 500 15px/20px var(--f-text); letter-spacing: -0.1px; color: var(--c-white); }
.fp-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 400 11px/14px var(--f-mono); letter-spacing: 1.1px; text-transform: uppercase; color: var(--c-mint); }
.fp-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-mint); }

.lib-eyebrow { position: absolute; left: 72px; top: 214px; display: flex; align-items: center; color: var(--c-mist); }
.lib-eyebrow .dot { width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 8px rgb(69 224 142 / .702); }
.lib-title { position: absolute; left: 68px; top: 250px; margin: 0; font: 400 96px/92px var(--f-display); letter-spacing: -3.8px; white-space: nowrap; }
.lib-title > span { display: block; }
.lib-lead { position: absolute; left: 72px; top: 470px; width: 480px; font: 400 20px/30px var(--f-text); letter-spacing: -0.2px; color: var(--c-mist); }
.lib-actions { position: absolute; left: 72px; top: 600px; display: flex; gap: 12px; }

/* 03 Success ring (Motion page), once on arrival: the disc forms, the ring draws itself from
   the top, the check follows and one soft pulse confirms it. The pulse then lets go, so the
   ring settles on the Library artboard. */
.success .s-ring { stroke-dasharray: 100 100; }
.success .s-pulse { opacity: 0; }
.success :is(.s-base, .s-pulse) { transform-box: view-box; transform-origin: 48px 48px; }
@media (prefers-reduced-motion: no-preference) {
  .js .success .s-base { animation: s-base-o .3s var(--ease-std) both, s-base-s .45s var(--ease-out) both; }
  .js .success .s-ring { animation: s-ring .85s cubic-bezier(.65, 0, .35, 1) .2s both; }
  .js .success .s-check { stroke-dasharray: 100 100; animation: s-check .4s var(--ease-out) .9s both; }
  .js .success .s-pulse { animation: s-pulse-o 1.65s 1.05s both, s-pulse-s .85s var(--ease-out) 1.05s both; }
}
@keyframes s-base-o { from { opacity: 0; } to { opacity: 1; } }
@keyframes s-base-s { from { transform: scale(.9); } to { transform: none; } }
@keyframes s-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes s-check { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes s-pulse-o {
  0% { opacity: 0; animation-timing-function: var(--ease-std); }
  18.18% { opacity: .85; animation-timing-function: var(--ease-std); }
  51.52% { opacity: .35; animation-timing-function: var(--ease-std); }
  100% { opacity: 0; }
}
@keyframes s-pulse-s { from { transform: none; } to { transform: scale(1.12); } }

/* L2 Library ----------------------------------------------------------------- */
.lib-list { height: 720px; }
.lib-list .stage { height: 720px; }
.list-title { position: absolute; left: 72px; top: 40px; margin: 0; display: flex; align-items: baseline; gap: 18px; font: 400 64px/72px var(--f-display); letter-spacing: -2px; white-space: nowrap; }
.list-title .count { font: 400 20px/30px var(--f-text); letter-spacing: -0.2px; color: var(--c-haze); }
.lib-tabs { position: absolute; left: 72px; top: 140px; display: flex; gap: 10px; }
.lib-tabs .chip { justify-content: center; padding: 0; }
.lib-search {
  position: absolute; left: 1088px; top: 136px; width: 280px; height: 44px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-radius: 22px;
  background: rgb(255 255 255 / .0392);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .122);
  color: var(--c-silver);
  transition: box-shadow .35s var(--ease-out);
}
.lib-search:focus-within { box-shadow: inset 0 0 0 1px rgb(90 155 255 / .7), 0 0 0 4px rgb(90 155 255 / .18); }
.lib-search input { flex: 1; min-width: 0; height: 100%; font: 500 13px/16px var(--f-text); color: var(--c-white); }
.lib-search input::placeholder { color: #5F6A75; opacity: 1; }
.lib-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lib-rows { position: absolute; left: 72px; top: 212px; width: 1296px; }
.lib-row {
  --edge: linear-gradient(135deg, rgb(255 255 255 / .278), rgb(255 255 255 / .0588) 50%, rgb(255 255 255 / .122));
  position: relative; height: 128px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgb(158 191 221 / .122), rgb(158 191 221 / .0314));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .102), 0 20px 40px -12px rgb(0 0 0 / .451);
  -webkit-backdrop-filter: blur(28px) saturate(1.15); backdrop-filter: blur(28px) saturate(1.15);
}
.lib-row::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.lib-row[hidden] { display: none; }
.lr-thumb { position: absolute; left: 24px; top: 20px; width: 76px; height: 88px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / .149); }
.lr-name { position: absolute; left: 124px; top: 32px; margin: 0; font: 500 22px/28px var(--f-display); letter-spacing: -0.3px; }
.lr-badge { position: absolute; left: 170px; top: 34px; }
.lr-studio { position: absolute; left: 124px; top: 72px; color: var(--c-haze); }
.lr-meta { position: absolute; left: 398px; top: 38px; margin: 0; display: flex; }
.lr-meta > div { width: 170px; }
.lr-meta dt { font: 400 11px/14px var(--f-mono); letter-spacing: 1.1px; text-transform: uppercase; color: var(--c-haze); }
.lr-meta dd { margin: 8px 0 0; font: 500 15px/20px var(--f-text); letter-spacing: -0.1px; color: var(--c-white); }
.lr-actions { position: absolute; right: 24px; top: 42px; display: flex; gap: 10px; }
.lr-chip { display: grid; place-items: center; height: 40px; padding: 0 14px; border-radius: 20px; background: rgb(255 255 255 / .0392); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .141); font: 500 13px/16px var(--f-text); color: var(--c-silver); transition: color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.lr-chip:hover { color: var(--c-white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.lib-empty { height: 128px; display: grid; place-items: center; border-radius: 24px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .0784); font: 400 16px/25px var(--f-text); color: var(--c-mist); }

.next-card {
  position: absolute; left: 72px; top: 372px; width: 636px; height: 292px;
  border-radius: 24px;
  background: rgb(90 155 255 / .0314);
}
.next-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='636' height='292'%3E%3Crect x='.5' y='.5' width='635' height='291' rx='23.5' fill='none' stroke='%238FC3EA' stroke-opacity='.349' stroke-dasharray='5 6'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.ghosts { position: absolute; inset: 0; pointer-events: none; }
.ghost { position: absolute; width: 120px; height: 150px; border-radius: 14px; background: #0A1520; }
.ghost::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150'%3E%3Crect x='.5' y='.5' width='119' height='149' rx='13.5' fill='none' stroke='%238FC3EA' stroke-opacity='var(--o)' stroke-dasharray='3 5'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.ghost.g0 { left: 366px; top: 70px; rotate: -12deg; }
.ghost.g2 { left: 506px; top: 70px; rotate: 12deg; }
.ghost.g1 { left: 436px; top: 58px; }
.ghost.g0::after, .ghost.g2::after { opacity: .72; }
.ghosts .plus { position: absolute; left: 483px; top: 120px; width: 26px; height: 26px; color: var(--c-arc); }
.next-title { position: absolute; left: 32px; top: 40px; margin: 0; font: 400 32px/38px var(--f-display); letter-spacing: -0.8px; }
.next-title > span { display: block; }
.next-text { position: absolute; left: 32px; top: 134px; width: 300px; }
.next-go { position: absolute; left: 32px; top: 204px; }
@media (prefers-reduced-motion: no-preference) {
  .ghost { transition: rotate .8s var(--ease-out), translate .8s var(--ease-out); }
  .next-card:hover .ghost.g0 { rotate: -16deg; translate: -6px 2px; }
  .next-card:hover .ghost.g2 { rotate: 16deg; translate: 6px 2px; }
  .next-card:hover .ghost.g1 { translate: 0 -4px; }
}

.inside-card {
  --edge: linear-gradient(135deg, rgb(255 255 255 / .278), rgb(255 255 255 / .0588) 50%, rgb(255 255 255 / .122));
  position: absolute; left: 732px; top: 372px; width: 636px; height: 292px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgb(158 191 221 / .122), rgb(158 191 221 / .0314));
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / .451);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
}
.inside-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.ic-title { position: absolute; left: 32px; top: 30px; margin: 0; font: 500 15px/20px var(--f-text); letter-spacing: -0.1px; }
.ic-version { position: absolute; right: 32px; top: 34px; color: var(--c-haze); }
.tree { position: absolute; left: 32px; right: 32px; top: 76px; }
.tree li { position: relative; display: flex; align-items: center; height: 34px; padding-left: 48px; }
.tree li.root { padding-left: 30px; }
.tree .i { position: absolute; left: 18px; top: 4px; width: 18px; height: 18px; color: var(--c-arc); }
.tree li.root .i { left: 0; top: 2px; }
.tree code { font: 400 13px/15px var(--f-mono); color: #C4CCD4; }
.tree li.root code { color: var(--c-white); }
.tree li > span { margin-left: auto; font: 400 14px/21px var(--f-text); color: var(--c-haze); }
.tree li { align-items: flex-start; }
.tree code { margin-top: 3.5px; }
.tree li > span { margin-top: .5px; }
.tree li:not(.root)::before { content: ""; position: absolute; left: 8px; top: 8px; width: 10px; height: 1px; background: rgb(255 255 255 / .149); }
.tree::before { content: ""; position: absolute; left: 8px; top: 20px; width: 1px; height: 158px; background: rgb(255 255 255 / .149); }

/* =========================================================================
   Phones (< 1024)
   ========================================================================= */
@media (max-width: 1023.98px) {
  .lib-hero { height: auto; }
  .lib-hero .stage { width: 100%; max-width: 600px; height: auto; padding: 452px 24px 56px; }
  .lib-fade { top: 330px; height: 640px; background: linear-gradient(180deg, rgb(4 6 11 / 0), var(--c-black) 150px); }
  .lib-object { left: calc(50% - 195px); top: 0; width: 1440px; height: 780px; transform-origin: 0 0; transform: translate(-300px, 60px) scale(.5); }
  .file-pill { left: calc(50% - 150px); top: 380px; }
  .lib-eyebrow { position: relative; left: auto; top: auto; font-size: 12px; line-height: 16px; letter-spacing: 1.2px; }
  .lib-title { position: relative; left: auto; top: auto; margin: 16px 0 0 -2px; font-size: 56px; line-height: 54px; letter-spacing: -2.2px; white-space: normal; }
  .lib-lead { position: relative; left: auto; top: auto; width: auto; margin-top: 22px; font-size: 16px; line-height: 24px; letter-spacing: -0.1px; }
  .lib-actions { position: relative; left: auto; top: auto; margin-top: 28px; flex-direction: column; }
  .lib-actions .btn { width: 100%; }

  .lib-list { height: auto; }
  .lib-list .stage { width: 100%; max-width: 600px; height: auto; padding: 24px 24px 72px; }
  .list-title { position: relative; left: auto; top: auto; flex-wrap: wrap; gap: 4px 12px; font-size: 44px; line-height: 46px; letter-spacing: -1.4px; }
  .list-title .count { font-size: 16px; line-height: 24px; }
  .lib-tabs { position: relative; left: auto; top: auto; margin-top: 24px; }
  .lib-search { position: relative; left: auto; top: auto; width: auto; margin-top: 14px; }
  .lib-rows { position: relative; left: auto; top: auto; width: auto; margin-top: 24px; }
  .lib-row { height: 236px; border-radius: 22px; }
  .lr-thumb { left: 18px; top: 18px; width: 64px; height: 74px; }
  .lr-name { left: 98px; top: 24px; }
  .lr-badge { left: 144px; top: 26px; }
  .lr-studio { left: 98px; top: 62px; }
  .lr-meta { left: 18px; right: 18px; top: 112px; }
  .lr-meta > div { flex: 1; width: auto; }
  .lr-actions { left: 18px; right: 18px; top: 176px; }
  .lr-actions .btn { margin-left: auto; }
  .next-card, .inside-card { position: relative; left: auto; top: auto; width: auto; margin-top: 16px; }
  .next-card { height: 408px; }
  .ghosts { left: 50%; transform-origin: 0 0; transform: translate(-396.8px, -18.4px) scale(.8); }
  .next-title { left: 24px; top: 184px; }
  .next-text { left: 24px; right: 24px; top: 276px; width: auto; }
  .next-go { left: 24px; top: 340px; }
  .inside-card { height: auto; padding: 24px 20px 20px; }
  .ic-title, .ic-version { position: static; }
  .ic-version { margin-top: 4px; }
  .tree { position: relative; left: auto; right: auto; top: auto; margin-top: 18px; }
  .tree li { height: auto; min-height: 34px; flex-wrap: wrap; padding-bottom: 6px; }
  .tree li > span { margin-left: 0; flex-basis: 100%; font-size: 13px; line-height: 18px; }
  .tree::before { height: calc(100% - 40px); }
}

/* Orders with several files: the rows stack, the cards below make room */
.lib-list { height: calc(720px + var(--extra, 0px)); }
.lib-list .stage { height: calc(720px + var(--extra, 0px)); }
.lib-rows { display: grid; gap: 16px; }
.next-card, .inside-card { top: calc(372px + var(--extra, 0px)); }
@media (max-width: 1023.98px) {
  .lib-list, .lib-list .stage { height: auto; }
  .lib-rows { gap: 12px; }
  .next-card, .inside-card { top: auto; }
}
