/* Glass folders for the Vibe Marketing hero. glass-folder-cards.tsx rebuilt
   without React. --gf-k is set from each folder's width by huva-glass-folder.js. */
.gf-desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5%;
  row-gap: 3%;
  align-items: start;
}
.gf-root:nth-child(even) { translate: 0 8%; }

.gf-root {
  --gf-k: .75;
  --gf-px: 0;
  --gf-py: 0;
  --gf-ease: cubic-bezier(.2, .8, .2, 1);
  --gf-spring: cubic-bezier(.34, 1.36, .5, 1);
  --gf-hinge: 0deg;
  --gf-lift: 42px;
  --gf-spread: 0px;
  --gf-fan: 0deg;
  --gf-stack: 15px;
  --gf-ink: #000;
  --gf-ink-soft: rgba(0, 0, 0, .55);
  position: relative;
  aspect-ratio: 340 / 326;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.gf-root *, .gf-root *::before, .gf-root *::after { box-sizing: border-box; }
.gf-root[data-tone="dark"] { --gf-ink: #fff; --gf-ink-soft: rgba(255, 255, 255, .62); }
.gf-root[data-tone="blue"] { --gf-ink: #fff; --gf-ink-soft: rgba(255, 255, 255, .72); }
.gf-root[data-tone="yellow"] { --gf-ink: #000; --gf-ink-soft: rgba(0, 0, 0, .6); }
.gf-root:hover, .gf-root:focus-within { --gf-hinge: -11deg; --gf-lift: -34px; --gf-spread: 8px; --gf-fan: 1.4deg; --gf-stack: 10px; z-index: 2; }
.gf-root[data-open] { --gf-hinge: -24deg; --gf-lift: -96px; --gf-spread: 40px; --gf-fan: 5deg; --gf-stack: 30px; z-index: 3; }
/* the top row keeps its stack below the site header */
.gf-root:nth-child(-n+2)[data-open] { --gf-lift: -46px; --gf-stack: 28px; --gf-spread: 14px; --gf-fan: 1.6deg; }

.gf-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 340px;
  height: 272px;
  transform-origin: 0 0;
  transform: translateY(calc(54px * var(--gf-k))) scale(var(--gf-k));
}
.gf-tilt {
  position: absolute;
  inset: 0;
  transform: perspective(1400px) rotateX(calc(var(--gf-py) * -3deg)) rotateY(calc(var(--gf-px) * 4deg));
  transition: transform .9s var(--gf-ease);
}

.gf-shadow {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -6px;
  height: 60px;
  border-radius: 40px;
  background: rgba(16, 18, 24, .34);
  filter: blur(22px);
  transform: translateX(calc(var(--gf-px) * -8px));
  transition: transform .9s var(--gf-ease), opacity .9s var(--gf-ease);
}
.gf-root[data-tone="dark"] .gf-shadow { background: rgba(0, 0, 0, .62); }

.gf-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ececec;
  clip-path: path('M0 56A22 22 0 0 1 22 34L146 34C170 34 172 0 198 0L318 0A22 22 0 0 1 340 22L340 250A22 22 0 0 1 318 272L22 272A22 22 0 0 1 0 250Z');
}
.gf-root[data-tone="dark"] .gf-back { background: #000; }
.gf-root[data-tone="blue"] .gf-back { background: #1200ff; }
.gf-root[data-tone="yellow"] .gf-back { background: #e9ef00; }

.gf-rim { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none; fill: none; }
.gf-back-rim { width: 340px; height: 272px; }
.gf-back-rim path { stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.gf-root[data-tone="dark"] .gf-back-rim path { stroke: rgba(255, 255, 255, .16); }

/* ---- files ---------------------------------------------------------------- */
.gf-files {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  /* nothing hangs out of the bottom of the pocket, however tall the stack */
  clip-path: inset(-400px -400px 10px -400px);
}
.gf-sheet {
  position: absolute;
  left: 34px;
  top: 96px;
  width: 272px;
  height: 184px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: auto;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 .5px rgba(0, 0, 0, .1),
    0 10px 26px -8px rgba(10, 12, 20, .28);
  transform-origin: 50% 100%;
  transform:
    translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1))
    rotate(calc(var(--gf-jr) + var(--gf-slot) * var(--gf-fan)));
  transition:
    transform .75s var(--gf-spring) calc(var(--gf-depth) * 40ms),
    box-shadow .4s var(--gf-ease),
    translate .9s var(--gf-ease),
    opacity .9s var(--gf-ease);
}
.gf-root[data-tone="blue"] .gf-sheet { background: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 .5px rgba(255, 255, 255, .22), 0 12px 28px -8px rgba(0, 0, 0, .7); }
.gf-sheet--black, .gf-root[data-tone="blue"] .gf-sheet--black { background: #000; color: #e9ef00; }
.gf-sheet--white { background: #fff; color: #000; }
.gf-root[data-tone="dark"] .gf-sheet--white { color: #1200ff; }
.gf-root[data-open] .gf-sheet:hover {
  transform:
    translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1 - 18px))
    rotate(calc(var(--gf-slot) * var(--gf-fan) * .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .1), 0 22px 40px -12px rgba(10, 12, 20, .42);
  transition-delay: 0s;
}
.gf-sheet-icon { position: absolute; left: 50%; top: 42px; width: 118px; height: 118px; margin-left: -59px; max-width: none; }
.gf-sheet-head {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 11px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}
.gf-sheet-name {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  color: #000;
}
.gf-sheet-meta {
  flex: none;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, .55);
}
.gf-root[data-tone="blue"] .gf-sheet-name, .gf-sheet--black .gf-sheet-name { color: #fff; }
.gf-root[data-tone="blue"] .gf-sheet-meta, .gf-sheet--black .gf-sheet-meta { color: rgba(255, 255, 255, .75); }
.gf-lines { position: absolute; left: 14px; right: 14px; top: 40px; display: flex; flex-direction: column; gap: 9px; }
.gf-lines i { display: block; height: 5px; border-radius: 3px; background: #ececec; }
.gf-lines i:first-child { height: 9px; margin-bottom: 4px; background: #d2d2d2; }
.gf-root[data-tone="blue"] .gf-lines i { background: rgba(255, 255, 255, .08); }
.gf-root[data-tone="blue"] .gf-lines i:first-child { background: rgba(255, 255, 255, .16); }

/* ---- front glass ---------------------------------------------------------- */
/* the hinge has its own layer: on one element with the blur and the clip, Chrome
   drops the rounded corners from the second open onward */
.gf-lean {
  position: absolute;
  left: 0;
  top: 74px;
  width: 340px;
  height: 198px;
  z-index: 10;
  transform-origin: 50% 100%;
  transform: perspective(760px) rotateX(var(--gf-hinge));
  transition: transform .8s var(--gf-spring);
}
.gf-front {
  position: absolute;
  inset: 0;
  clip-path: path('M0 22A22 22 0 0 1 22 0L118 0C144 0 146 32 172 32L318 32A22 22 0 0 1 340 54L340 176A22 22 0 0 1 318 198L22 198A22 22 0 0 1 0 176Z');
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transition: translate 1s var(--gf-ease), opacity 1s var(--gf-ease);
}
.gf-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .6) 44%, rgba(255, 255, 255, .97) 100%); }
.gf-root[data-tone="dark"] .gf-tint { background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .66) 46%, rgba(0, 0, 0, .98) 100%); }
.gf-root[data-tone="blue"] .gf-tint { background: linear-gradient(180deg, rgba(18, 0, 255, .3) 0%, rgba(18, 0, 255, .68) 46%, rgba(18, 0, 255, .98) 100%); }
.gf-root[data-tone="yellow"] .gf-tint { background: linear-gradient(180deg, rgba(233, 239, 0, .3) 0%, rgba(233, 239, 0, .68) 46%, rgba(233, 239, 0, .98) 100%); }
.gf-spec {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(240px 170px at calc(50% + var(--gf-px) * 46%) calc(16% + var(--gf-py) * 30%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.gf-root[data-tone="blue"] .gf-spec { opacity: .45; }
.gf-front-rim { width: 340px; height: 198px; }
.gf-front-rim path { stroke-width: 2.4; transition: stroke-width .3s var(--gf-ease); }
.gf-root[data-tone="dark"] .gf-front-rim { opacity: .7; }

.gf-hit { all: unset; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.gf-front:has(.gf-hit:focus-visible) .gf-front-rim path { stroke-width: 5; }

.gf-label {
  position: absolute;
  left: 28px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 206px;
  text-align: left;
  pointer-events: none;
  color: var(--gf-ink);
}
.gf-title { font-size: 20px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-meta { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--gf-ink-soft); white-space: nowrap; }

/* ---- the key ---------------------------------------------------------------- */
.gf-key {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: #1200ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -3px 8px rgba(0, 0, 0, .3),
    0 14px 22px -8px rgba(0, 0, 0, .45);
  transition: transform .35s var(--gf-spring), opacity .6s var(--gf-ease) .7s, scale .7s var(--gf-spring) .7s;
}
.gf-key:hover { transform: translateY(-2px); }
.gf-key:active { transform: translateY(0) scale(.93); transition-duration: .12s; }
.gf-root[data-tone="dark"] .gf-key, .gf-root[data-tone="blue"] .gf-key {
  color: #000;
  background: #e9ef00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 8px rgba(90, 95, 0, .3), 0 14px 22px -8px rgba(0, 0, 0, .6);
}
.gf-key svg { display: block; width: 26px; height: 26px; max-width: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: rotate .6s var(--gf-spring); }
.gf-root[data-open] .gf-key svg { rotate: 45deg; }

/* ---- entrance: the folder assembles itself ---------------------------------- */
.gf-back, .gf-back-rim { transition: translate 1s var(--gf-ease), opacity .9s var(--gf-ease); }
.gf-root:not([data-entered]) .gf-back, .gf-root:not([data-entered]) .gf-back-rim { translate: 0 22px; opacity: 0; }
.gf-root:not([data-entered]) .gf-sheet { translate: 0 -120px; opacity: 0; }
.gf-root:not([data-entered]) .gf-front { translate: 0 46px; opacity: 0; }
.gf-root:not([data-entered]) .gf-key { opacity: 0; scale: .6; }
.gf-root:not([data-entered]) .gf-shadow { opacity: 0; }

/* Two folders a row stay on a phone, so the label grows and the key steps aside. */
@media (max-width: 760px) {
  .gf-title { font-size: 25px; }
  .gf-label { max-width: 292px; left: 24px; bottom: 26px; }
  .gf-meta { font-size: 18px; }
  .gf-key { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gf-root *, .gf-root *::before, .gf-root *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .gf-tilt { transform: none; }
}
