/* The Nexus folder component, shared by the data room and the landing page. */
/* ───────── The Nexus folder (Paper: "Components — Nexus folder") ─────────
   262×208. Back panel and frosted front share a stepped tab silhouette.
   Hover: the sheet lifts and the front tips forward. Drop target: more of both, in teal. */
.folders { display: flex; gap: 16px; height: 208px; flex: none; }
.folder { position: relative; flex: none; width: 262px; height: 208px; perspective: 700px; text-align: left; font-size: 12px; line-height: 16px; -webkit-tap-highlight-color: transparent; }
.folder:focus-visible { border-radius: 18px; }
.f-back { position: absolute; left: 0; top: 16px; width: 262px; height: 192px; clip-path: path("M 0 18 Q 0 0 18 0 L 64 0 C 84 0 88 20 108 20 L 244 20 Q 262 20 262 38 L 262 174 Q 262 192 244 192 L 18 192 Q 0 192 0 174 Z"); background: linear-gradient(150deg, #0B2440 0%, #123A63 55%, #1B4F7D 100%); background: linear-gradient(in oklab 150deg, #0B2440 0%, #123A63 55%, #1B4F7D 100%); }
.f-back svg { position: absolute; left: 0; top: 0; }
.f-back .tint { fill: var(--c); }
.f-sheet { position: absolute; left: 118px; top: 2px; width: 124px; height: 110px; display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border-radius: 8px; background: #F6F6F1; box-shadow: 0 6px 16px #00000047; font-size: 10px; line-height: 12px; font-weight: 700; color: #1C1D1F; transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.f-sheet i { flex: none; width: 80%; height: 4px; border-radius: 2px; background: #D4D4CC; }
.f-sheet i + i { width: 58%; }
.f-sheet.is-empty { opacity: 0; }
.f-front { position: absolute; left: 0; bottom: 0; width: 262px; height: 150px; transform-origin: 50% 100%; transition: transform 300ms var(--ease-out); }
.f-glass { position: absolute; inset: 0; clip-path: path("M 0 18 Q 0 0 18 0 L 96 0 C 116 0 120 26 140 26 L 244 26 Q 262 26 262 44 L 262 132 Q 262 150 244 150 L 18 150 Q 0 150 0 132 Z"); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: linear-gradient(180deg, #FFFFFF29 0%, #091C326B 100%); background: linear-gradient(in oklab 180deg, #FFFFFF29 0%, #091C326B 100%); }
.f-glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #6FA3A88C 0%, #2F5E5B99 100%); background: linear-gradient(in oklab 180deg, #6FA3A88C 0%, #2F5E5B99 100%); opacity: 0; transition: opacity 200ms ease; }
.f-edge { position: absolute; left: 0; bottom: 0; pointer-events: none; }
.f-edge path { fill: none; stroke: #FFFFFF6B; stroke-width: 1; }
.f-info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px 14px 18px; color: #FFFFFF; }
.f-pill { align-self: flex-start; display: flex; padding: 4px 10px; border-radius: 999px; background: #FFFFFFEB; color: #0B2440; font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.f-pill.bump { animation: bump 280ms var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.18); } }
.f-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.f-bottom > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.f-bottom br { display: none; }
.f-name { font-size: 16px; line-height: 20px; font-weight: 600; }
.f-count { font-size: 13px; line-height: 16px; font-weight: 500; color: #FFFFFFDB; }
.f-more { flex: none; display: flex; align-items: center; justify-content: center; gap: 3px; width: 44px; height: 44px; border-radius: 12px; background: #0B2440; border: 1px solid #FFFFFF38; }
.f-more i { flex: none; width: 3px; height: 3px; border-radius: 999px; background: #FFFFFF; }
/* Paper sets mix-blend-mode: screen on the mark because its logo image has a white ground. The PNG used
   here is already transparent, and a blend mode inside the front would switch its backdrop blur off
   whenever the front is transformed, so it is left out. */
.f-mark { position: absolute; right: 16px; top: 40px; display: flex; width: 30px; height: 28px; overflow: clip; opacity: 0.75; }
.f-mark i { flex: none; width: 120px; height: 28px; background: url("assets/logo-white.png") 50% / cover; }
.folder.is-target .f-front { transform: rotateX(-24deg); }
.folder.is-target .f-sheet { transform: translateY(-14px) rotate(-3deg); }
.folder.is-target .f-glass::after { opacity: 1; }
.folder.is-target .f-edge path { stroke: #FFFFFF; stroke-width: 2; }
@media (hover: hover) and (pointer: fine) {
  .folder:hover .f-front { transform: rotateX(-14deg); }
  .folder:hover .f-sheet { transform: translateY(-8px) rotate(-2deg); }
  .folder.is-target .f-front { transform: rotateX(-24deg); }
  .folder.is-target .f-sheet { transform: translateY(-14px) rotate(-3deg); }
}
