/* ============================================================
   gf-studio.css: de studio op gratis-downloads.html (gf-st-)
   Hoort bij gf-studio.js. Drie lagen onder elkaar in de hero: de glazen
   keuzebalk, de waaier van omslagen op één vloer, en de regel die meetelt.
   Posities in de waaier zet het script (inline transform); hier staan het
   materiaal, de overgangen en de maten.
   ============================================================ */

.gf-on .bib-lineup {
  display: none;
}
.gf-st {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), 1400px);
  margin: clamp(2rem, 1.4rem + 2vw, 3.2rem) auto 0;
}

/* ---------- de keuzebalk ---------- */
.gf-st__bar {
  display: flex;
  justify-content: center;
}
.gf-st__seg.glass {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: var(--r-pill);
  overflow: visible;
}
.gf-st__seg.glass::before,
.gf-st__seg.glass::after {
  border-radius: inherit;
}
/* de duim: een dikker stuk glas dat onder de keuze ligt; het script
   verplaatst hem en rekt hem onderweg even uit */
.gf-st__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 26px -12px rgba(0, 0, 0, 0.7);
}
[data-theme="light"] .gf-st__thumb {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 8px 22px -10px rgba(18, 30, 45, 0.4);
}
.gf-st__opt {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  appearance: none;
  border: 0;
  padding: 0.66em 1.05em 0.66em 0.9em;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.35s var(--ease-out);
}
.gf-st__opt:hover {
  color: var(--ink);
}
.gf-st__opt[aria-pressed="true"] {
  color: var(--ink);
}
.gf-st__opt:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: -2px;
}
.gf-st__opt img {
  display: block;
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity 0.35s var(--ease-out), scale 0.5s var(--ease-spring);
}
.gf-st__opt[aria-pressed="true"] img {
  opacity: 1;
  scale: 1.08;
}
[data-theme="light"] .gf-st__opt img {
  filter: saturate(1.5) brightness(0.72);
}
.gf-st__n {
  align-self: flex-start;
  margin: -0.15em 0 0 -0.2rem;
  font-size: 0.74em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  transition: color 0.35s var(--ease-out);
}
.gf-st__opt[aria-pressed="true"] .gf-st__n {
  color: var(--ink-soft);
}

/* ---------- de veeghint (alleen als de balk niet past) ----------
   Een regel onder de balk met een pijltje dat naar rechts wijst en
   telkens een stukje die kant op tikt. Hij blijft altijd staan. */
.gf-st__hint {
  display: none;
}
.gf-st.is-scrollable .gf-st__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.7rem auto 0;
  max-width: none;
  max-height: 2em;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  overflow: hidden;
  transition: opacity 0.4s var(--ease-out), max-height 0.5s var(--ease-out), margin 0.5s var(--ease-out);
}
.gf-st__swipe {
  display: block;
  width: 22px;
  height: 10px;
}
.gf-st__swipe svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-motion="on"] .gf-st__swipe {
  animation: gf-st-nudge 1.8s var(--ease-in-out) infinite;
}
@keyframes gf-st-nudge {
  0%, 55%, 100% { transform: translateX(0); }
  25% { transform: translateX(6px); }
}

/* ---------- de waaier ---------- */
.gf-st__scene {
  --bw: 220px; /* de omslag op ware maat; de waaier schaalt hiervan af */
  --floor: calc(var(--bw) * 1.414 + 14px);
  position: relative;
  height: calc(var(--floor) + 64px); /* het script zet de hoogte per stand */
  margin-top: clamp(1.2rem, 0.8rem + 1.4vw, 2.2rem);
  transition: height 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  perspective: 1800px;
  perspective-origin: 50% 40%;
}
.gf-st__fan {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 0;
  height: 0;
  /* de kijker staat iets boven de vloer: zo blijven de omslagen achterin op
     dezelfde plank staan en ligt de schaduw zichtbaar plat */
  perspective: 1500px;
  perspective-origin: 0 calc(var(--bw) * 0.9);
  transform-origin: 0 calc(var(--bw) * 0.7);
  will-change: transform;
}
.gf-st__cover {
  position: absolute;
  left: calc(var(--bw) * -0.5);
  top: 0;
  width: var(--bw);
  /* schalen om het midden: een kleine waaier (vijftien) hangt dan niet
     laag op de vloer met een gat eronder de balk; de vloerlijn schuift mee */
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.gf-st__cover.is-hidden {
  opacity: 0;
  filter: blur(var(--gf-blur, 10px));
  pointer-events: none;
}
.gf-st__lift {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.gf-st__cover:hover .gf-st__lift,
.gf-st__cover:focus-visible .gf-st__lift {
  transform: translateY(-10px);
}
/* wijs je een omslag aan, dan legt het script de waaier opnieuw: die ene
   draait recht naar je toe en komt vooraan, zijn buren schuiven een stukje
   opzij. Dat mag sneller dan een wissel van tool. */
.gf-st__fan.is-focus .gf-st__cover {
  transition-duration: 0.6s, 0.55s, 0.55s;
}
.gf-st__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  background: #0d1422;
  box-shadow:
    0 0 0 1px rgba(174, 245, 253, 0.12),
    0 30px 60px -28px rgba(4, 8, 16, 0.9);
  transition: box-shadow 0.6s var(--ease-out);
  -webkit-user-drag: none;
}
[data-theme="light"] .gf-st__cover img {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 30px 60px -30px rgba(18, 30, 45, 0.55);
}
.gf-st__cover:hover img,
.gf-st__cover:focus-visible img {
  box-shadow:
    0 0 0 1px rgba(174, 245, 253, 0.32),
    0 40px 80px -30px rgba(102, 198, 255, 0.55);
}
/* de schaduw ligt plat op de vloer, onder de onderrand */
.gf-st__shadow {
  position: absolute;
  left: -30%;
  width: 160%;
  top: calc(100% - 110px);
  height: 220px;
  transform: rotateX(90deg);
  background: radial-gradient(50% 50% at 50% 50%, rgba(2, 6, 12, 0.6), rgba(2, 6, 12, 0.18) 42%, transparent 68%);
  pointer-events: none;
}
[data-theme="light"] .gf-st__shadow {
  background: radial-gradient(50% 50% at 50% 50%, rgba(18, 30, 45, 0.38), rgba(18, 30, 45, 0.1) 42%, transparent 68%);
}
/* het naambordje: draait tegen de omslag in, zodat het recht naar je kijkt */
.gf-st__tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  z-index: 2;
  padding: 0.42em 0.85em;
  border-radius: var(--r-pill);
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px) rotateY(calc(var(--ry, 0deg) * -1));
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.gf-st__tag em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.6em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}
.gf-st__cover:hover .gf-st__tag,
.gf-st__cover:focus-visible .gf-st__tag {
  opacity: 1;
  transform: translate(-50%, 0) rotateY(calc(var(--ry, 0deg) * -1));
}
/* de vloer: één haarlijn waar de spiegeling in verdwijnt */
.gf-st__floor {
  position: absolute;
  left: 6%;
  right: 6%;
  top: var(--floor);
  height: 1px;
  transition: top 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(90deg, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
  pointer-events: none;
}
.gf-st__floor::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: -60px;
  height: 120px;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 70%);
  opacity: 0.16;
}

/* ---------- de telefoon: carrousel ----------
   Onder 768px verdwijnt de waaier en staat hier een rij om doorheen te
   vegen, op de manier van Apple Books: scroll-snap op het midden, de
   omslag in het midden groot, de buren kleiner en zachter (schaal en
   dekking zet het script per scrollframe). */
.gf-st__phone {
  display: none;
}
@media (max-width: 767px) {
  .gf-st__scene {
    display: none;
  }
  .gf-st__phone {
    display: block;
    margin-top: 1.4rem;
  }
  .gf-st__rail {
    --sw: min(58vw, 250px);
    display: flex;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 8px calc(50% - var(--sw) / 2) 34px;
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
  }
  .gf-st__rail::-webkit-scrollbar {
    display: none;
  }
  .gf-st__slide {
    position: relative;
    flex: 0 0 var(--sw);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    outline: none;
  }
  .gf-st__slide[hidden] {
    display: none;
  }
  .gf-st__sc {
    position: relative;
    display: block;
    transform-origin: 50% 60%;
    will-change: transform, opacity;
  }
  .gf-st__sc img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    background: #0d1422;
    box-shadow:
      0 0 0 1px rgba(174, 245, 253, 0.12),
      0 26px 50px -24px rgba(4, 8, 16, 0.9);
  }
  [data-theme="light"] .gf-st__sc img {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.5),
      0 26px 50px -26px rgba(18, 30, 45, 0.55);
  }
  /* de schaduw op de vloer onder de omslag in het midden */
  .gf-st__sc::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(2, 6, 12, 0.55), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
  }
  [data-theme="light"] .gf-st__sc::after {
    background: radial-gradient(50% 50% at 50% 50%, rgba(18, 30, 45, 0.3), transparent 70%);
  }
  .gf-st__slide.is-center .gf-st__sc::after {
    opacity: 1;
  }
  .gf-st__slide:focus-visible img {
    outline: 2px solid var(--accent-deep);
    outline-offset: 4px;
  }

  /* de puntjes: het actieve wordt een streepje, zoals op iOS */
  .gf-st__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    height: 6px;
  }
  .gf-st__dots span {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--line-strong);
    transition: width 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
  }
  .gf-st__dots span.is-on {
    width: 18px;
    background: var(--ink);
  }

  /* wat er in het midden staat */
  .gf-st__now {
    margin-top: 1.1rem;
    padding-inline: var(--gutter);
    text-align: center;
  }
  .gf-st__nowname {
    margin: 0;
    max-width: none;
    font-size: 1.12rem;
    font-weight: 640;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
    text-wrap: balance;
  }
  .gf-st__nowname em {
    display: block;
    width: max-content;
    margin: 0 auto 0.35rem;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .gf-st__nowmeta {
    margin: 0.3rem auto 0;
    max-width: none;
    font-size: 0.84rem;
    color: var(--ink-faint);
  }
  .gf-st__nowgo {
    margin-top: 0.8rem;
  }

}

/* ---------- smal ---------- */
@media (max-width: 900px) {
  .gf-st__scene {
    --bw: 180px;
  }
}
@media (max-width: 639px) {
  .gf-st {
    width: 100%;
  }
  .gf-st__bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gf-st__bar::-webkit-scrollbar {
    display: none;
  }
  /* de balk loopt aan beide kanten uit in plaats van hard af te breken */
  .gf-st__bar {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .gf-st__seg.glass {
    flex: 0 0 auto;
  }
  .gf-st__opt {
    padding: 0.62em 0.9em 0.62em 0.8em;
  }
  .gf-st__scene {
    --bw: 150px;
    --gf-blur: 0px;
  }
  .gf-st__cover {
    transition-duration: 0.85s, 0.45s, 0s;
  }
}

/* ---------- zonder beweging ---------- */
[data-motion="off"] .gf-st__cover,
[data-motion="off"] .gf-st__scene,
[data-motion="off"] .gf-st__floor,
[data-motion="off"] .gf-st__lift,
[data-motion="off"] .gf-st__tag,
[data-motion="off"] .gf-st__opt,
[data-motion="off"] .gf-st__opt img {
  transition: none !important;
}
[data-motion="off"] .gf-st__cover.is-hidden {
  filter: none;
}
