/* =====================================================================
   GLASS FOLDER CARDS  (from 21st.dev "Glass Folder Cards")
   Seen in the demo: folders on a "dotted desk" (1.1px dots on a 22px grid
   at 13% opacity); a grid 1 -> 2 -> 3 columns, max 1180px wide, column
   gap 56px, row gap 40px, folders aligned to the bottom. Two tones: milk
   glass (light) and smoked glass (dark) over a printed artwork; a label
   and an optional date/meta line; files inside (name + meta). "Hover to
   lean · Click to open".
   How it moves (reconstructed, source file not pasted): on hover the
   front glass tips its top edge toward you and the papers inside rise a
   little; on click the glass tips further and the files slide up out of
   the folder, readable.
   Socialique version: one folder per case study. The print is the
   client's own feed or post (or a brand gradient for anonymous
   clients); the "files" are the case study's key results; a plain
   "Read the case study" link sits under every folder.
   Left out on purpose: the staggered appear-on-load animation (house
   rule: no fade-ins), the "+ add file" key and the "…" menu (not useful
   to visitors).
   ===================================================================== */

/* ---- The dotted desk (section background) ---- */
.slq-desk { position: relative; isolation: isolate; }
.slq-desk::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  color: var(--slq-navy); opacity: 0.13;
  background-image: radial-gradient(currentColor 1.1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ---- Grid ---- */
.slq-folders {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1180px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px; row-gap: 40px; align-items: end; justify-items: center;
}
@media (max-width: 1024px) { .slq-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (max-width: 699.98px) { .slq-folders { grid-template-columns: 1fr; row-gap: 48px; } }

/* ---- One folder ---- */
.slq-folder {
  --back: #cddcef;                      /* folder body: a deeper Mist */
  --glass-tint: rgba(249, 246, 242, 0.58); /* milk glass */
  --glass-text: var(--slq-navy);
  --glass-muted: var(--slq-muted);
  width: 100%; max-width: 340px;
}
.slq-folder[data-tone="dark"] {
  --back: var(--slq-harbour);
  --glass-tint: rgba(1, 23, 51, 0.62);  /* smoked glass */
  --glass-text: var(--slq-linen);
  --glass-muted: var(--slq-on-dark-muted);
}

.slq-folder__toggle {
  position: relative; display: block; width: 100%; height: 340px;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  perspective: 900px; color: inherit; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.slq-folder__toggle:focus-visible { outline: 2px solid var(--slq-harbour); outline-offset: 6px; border-radius: 16px; }

/* Folder body with its tab */
.slq-folder__back {
  position: absolute; left: 0; right: 0; bottom: 0; height: 240px;
  background: var(--back); border-radius: 4px 16px 16px 16px;
  box-shadow: 0 24px 40px -24px rgba(1, 23, 51, 0.35);
}
.slq-folder__back::before {
  content: ""; position: absolute; left: 0; top: -17px; width: 42%; height: 18px;
  background: var(--back); border-radius: 12px 12px 0 0;
}

/* The "files": the case study's key results */
.slq-folder__sheet {
  position: absolute; left: 18px; right: 18px; bottom: 30px; height: 210px;
  box-sizing: border-box; padding: 16px 18px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(1, 23, 51, 0.08), 0 10px 24px -12px rgba(1, 23, 51, 0.25);
  transition: transform 600ms var(--slq-ease-spring);
}
.slq-folder__sheet-title { display: block; font: 700 0.6875rem/1 var(--slq-font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--slq-harbour); margin-bottom: 10px; }
.slq-folder__files { display: block; list-style: none; margin: 0; padding: 0; }
.slq-folder__files > * { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--slq-line); }
.slq-folder__files strong { font-family: var(--slq-font-display); font-weight: 400; font-size: 1.375rem; line-height: 1; color: var(--slq-navy); white-space: nowrap; }
.slq-folder__files > * > span { font-size: 0.8125rem; line-height: 1.3; color: var(--slq-muted); }

/* Front glass panel, with the client's artwork showing through it */
.slq-folder__glass {
  position: absolute; left: 0; right: 0; bottom: 0; height: 190px;
  border-radius: 14px; overflow: hidden;
  transform-origin: center bottom;
  transition: transform 600ms var(--slq-ease-spring), box-shadow 600ms var(--slq-ease-out);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 -1px 0 rgba(255, 255, 255, 0.4), 0 12px 30px -16px rgba(1, 23, 51, 0.45);
}
/* The artwork: an <img> of the client's feed or post, or an empty <span> for a brand gradient.
   (Use a real <img>, not a CSS url(): it loads lazily and its path is relative to the page.) */
.slq-folder__art {
  position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover;
  background: var(--art, linear-gradient(135deg, var(--slq-mist), var(--slq-cornflower)));
  filter: blur(7px) saturate(1.15);
  transform: scale(1.05);
}
.slq-folder__glass::after { /* the frost itself */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 40%), var(--glass-tint);
}
/* Brand gradients for clients without artwork */
.slq-folder[data-art="mist"] { --art: radial-gradient(120% 90% at 20% 10%, #ffffff, var(--slq-mist) 45%, var(--slq-cornflower)); }
.slq-folder[data-art="harbour"] { --art: radial-gradient(120% 90% at 80% 0%, var(--slq-cornflower), var(--slq-harbour) 55%, var(--slq-navy)); }

.slq-folder__label-wrap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; color: var(--glass-text); }
.slq-folder[data-label="top-left"] .slq-folder__label-wrap { top: 18px; bottom: auto; }
.slq-folder__label { display: block; font-family: var(--slq-font-display); font-size: 1.5rem; line-height: 1.1; }
.slq-folder__meta { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--glass-muted); }
.slq-folder__hint { position: absolute; z-index: 1; right: 16px; top: 14px; font: 500 0.6875rem/1 var(--slq-font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--glass-muted); }

/* Hover: lean the glass toward you, papers rise a little */
@media (hover: hover) {
  .slq-folder__toggle:hover .slq-folder__glass { transform: rotateX(-14deg); }
  .slq-folder__toggle:hover .slq-folder__sheet { transform: translateY(-14px); }
}
/* Open: glass tips further, results slide out of the folder */
.slq-folder.is-open .slq-folder__glass { transform: rotateX(-34deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 30px 40px -20px rgba(1, 23, 51, 0.5); }
.slq-folder.is-open .slq-folder__sheet { transform: translateY(-100px); }
.slq-folder.is-open .slq-folder__hint { opacity: 0; }

/* Link under every folder (works without JavaScript) */
.slq-folder__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px;
  font: 500 0.9375rem/1 var(--slq-font-body); color: var(--slq-navy); text-decoration: none;
}
.slq-folder__link svg { width: 14px; height: 14px; transition: transform var(--slq-base) var(--slq-ease-out); }
.slq-folder__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.slq-folder__link:hover svg { transform: translateX(3px); }

@media (max-width: 699.98px) {
  .slq-folder { max-width: 360px; }
}
