/* Featured Videos showcase (homepage). Base rules = no-JS layout (scrollable row of linked panels);
   .sc-js = 3D CSS deck (showcase.js), .sc-stage.is-gl = WebGL canvas (gl-mode.js). */

.featured-showcase { --sc-violet: #bf68e6; --sc-violet-2: #9e48cd; --sc-cyan: #29beff; }

.featured-showcase .sc-stage { position: relative; margin-top: 4px; }
/* The JS stage breaks out of .container-lg to the full section width (cqw = section), so a page of
   panels spans ~92% of what the user sees as the section; heading + nav stay in the container. */
.featured-showcase.sc-js { container-type: inline-size; }
.featured-showcase.sc-js .sc-stage { width: 100cqw; margin-left: calc(50% - 50cqw); }

/* ---------- no-JS: plain horizontal row ---------- */
.featured-showcase .sc-waves { display: none; }
.featured-showcase .sc-deck { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 4px 24px; }
.featured-showcase .panel { --tx: 0px; --dz: 0px; --o: 1; position: relative; flex: none; height: 380px; aspect-ratio: var(--ar, .5625);
  margin: 0; border-radius: 16px; scroll-snap-align: start; container-type: inline-size;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.featured-showcase .panel .clip { position: absolute; inset: 0; display: block; border-radius: inherit; overflow: hidden; background: #1a1345; cursor: pointer; }
.featured-showcase .panel video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.featured-showcase .panel .clip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 5, 28, .85), transparent 38%); }
.featured-showcase .panel::before {
  content: ''; position: absolute; inset: -2px; border-radius: 18px; padding: 2px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--sc-ang, 0deg), #bf68e6, #29beff, #7c4dff, #ff5fd2, #bf68e6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: sc-spin 6s linear infinite; opacity: .7; transition: opacity .4s;
}
.featured-showcase .panel:hover::before { opacity: 1; }
@property --sc-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes sc-spin { to { --sc-ang: 360deg; } }

/* ---------- captions (both renderers) ---------- */
.featured-showcase .sc-label { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; color: #e9e6ff; }
.featured-showcase .panel .sc-label { position: absolute; left: 14px; bottom: 14px; right: 10px; z-index: 3; transition: opacity .4s; }
.featured-showcase .sc-label .model {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; line-height: 1.2;
  padding: 4px 9px; border-radius: 99px; color: #fff;
  background: linear-gradient(90deg, rgba(191, 104, 230, .85), rgba(41, 190, 255, .75));
}
.featured-showcase .sc-label .title { font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.featured-showcase .sc-label .yt {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.2; color: #fff; text-decoration: none;
  padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22); transition: background .2s; white-space: nowrap; max-width: 100%;
}
.featured-showcase .sc-label .yt:hover { background: #ff0033; border-color: #ff0033; color: #fff; }
.featured-showcase .sc-label .yt svg { width: 14px; height: 14px; flex: none; }
/* Narrow panels (mobile): everything stays, including the "Watch full on YouTube" text, just tighter. */
@container (max-width: 200px) {
  .featured-showcase .panel .sc-label { gap: 6px; left: 10px; right: 8px; bottom: 10px; }
  .featured-showcase .sc-label .yt { padding: 5px 8px; gap: 4px; font-size: 10.5px; white-space: normal; border-radius: 12px; }
  .featured-showcase .sc-label .yt svg { width: 12px; height: 12px; }
  .featured-showcase .sc-label .model { font-size: 9px; }
  .featured-showcase .sc-label .title { font-size: 14px; }
}
.featured-showcase .labels .sc-label.narrow { gap: 6px; }
.featured-showcase .labels .sc-label.narrow .yt { padding: 5px 8px; gap: 4px; font-size: 10.5px; white-space: normal; border-radius: 12px; }
.featured-showcase .labels .sc-label.narrow .yt svg { width: 12px; height: 12px; }
.featured-showcase .labels .sc-label.narrow .model { font-size: 9px; }
.featured-showcase .labels .sc-label.narrow .title { font-size: 14px; }

/* ---------- nav ---------- */
.featured-showcase .sc-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: -78px; position: relative; z-index: 5; }
.featured-showcase .sc-nav[hidden] { display: none; }
.featured-showcase .sc-prev, .featured-showcase .sc-next {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(191, 104, 230, .45); background: rgba(20, 14, 56, .6); color: #fff; backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.featured-showcase .sc-prev:hover, .featured-showcase .sc-next:hover { background: var(--sc-violet-2); transform: scale(1.06); }
.featured-showcase .sc-dots { display: flex; gap: 8px; }
.featured-showcase .sc-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .35s, background .35s; }
.featured-showcase .sc-dots button.on { width: 28px; background: linear-gradient(90deg, var(--sc-violet), var(--sc-cyan)); }

/* ---------- JS stage (CSS 3D deck + WebGL) ---------- */
.featured-showcase.sc-js .sc-stage { height: clamp(460px, 52cqw, 86vh); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.featured-showcase.sc-js .sc-css-layer { position: absolute; inset: 0; perspective: max(1600px, 105cqw); perspective-origin: 50% 35%; }
.featured-showcase .sc-stage.is-gl .sc-css-layer { display: none; }
.featured-showcase .sc-stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 82%, transparent);
  mask-composite: intersect; }
.featured-showcase .labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.featured-showcase .labels .sc-label { position: absolute; left: 0; top: 0; transform-origin: 0 100%; opacity: 0; transition: opacity .35s; }
.featured-showcase .labels .sc-label:not(.on) .yt { pointer-events: none; }
.featured-showcase .labels .sc-label.on { opacity: 1; }

.featured-showcase.sc-js .sc-waves { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect; }
.featured-showcase .sc-waves::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(45% 60% at 50% 18%, rgba(170, 100, 255, .5), transparent 70%), linear-gradient(180deg, rgba(60, 30, 150, .7), rgba(13, 8, 48, .2)); }
.featured-showcase .sc-waves svg { position: absolute; left: 0; width: 200%; height: 46%; animation: sc-drift linear infinite; mix-blend-mode: screen; filter: blur(1.5px); }
.featured-showcase .sc-waves svg:nth-of-type(1) { top: 6%;  opacity: .5; animation-duration: 22s; }
.featured-showcase .sc-waves svg:nth-of-type(2) { top: 20%; opacity: .4; animation-duration: 15s; animation-direction: reverse; }
.featured-showcase .sc-waves svg:nth-of-type(3) { top: 36%; opacity: .45; animation-duration: 10s; }
.featured-showcase .sc-waves svg:nth-of-type(4) { top: 52%; opacity: .3; animation-duration: 7s; animation-direction: reverse; }
.featured-showcase .sc-waves .glint { position: absolute; left: 28%; right: 28%; top: 4%; height: 60%; mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 170, 255, 0) 0 6px, rgba(255, 170, 255, .4) 6px 7px, rgba(255, 170, 255, 0) 7px 13px);
  -webkit-mask-image: radial-gradient(50% 55% at 50% 30%, #000, transparent); mask-image: radial-gradient(50% 55% at 50% 30%, #000, transparent);
  animation: sc-shimmer 2.6s ease-in-out infinite alternate; filter: blur(.6px); }
@keyframes sc-drift { to { transform: translateX(-50%); } }
@keyframes sc-shimmer { from { opacity: .35; transform: translateY(-4px); } to { opacity: .8; transform: translateY(4px); } }

.featured-showcase.sc-js .sc-deck { display: block; position: absolute; inset: 0; padding: 0; overflow: visible; transform-style: preserve-3d; transition: transform .5s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.featured-showcase .slide { position: absolute; left: 0; right: 0; top: var(--top, calc(68% - var(--h, 300px))); display: flex; justify-content: center; gap: var(--gap, 24px);
  transform-style: preserve-3d; pointer-events: none; }
/* Only panels take hits: in preserve-3d the flat deck/slide boxes would sit in front of panels pushed back by translateZ. */
.featured-showcase.sc-js .sc-deck { pointer-events: none; }
.featured-showcase .slide.is-active .panel { pointer-events: auto; }
.featured-showcase.sc-js .panel {
  height: var(--h, 300px); transform-style: preserve-3d; opacity: var(--o);
  transform: translateX(var(--tx)) translateZ(calc(var(--z, 0px) + var(--dz))) rotateY(var(--yaw, 0deg));
  transition: transform 1.05s cubic-bezier(.7, 0, .25, 1), opacity .9s ease, box-shadow .5s;
  transition-delay: calc(var(--i, 0) * 60ms);
  animation: sc-bob 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s);
}
.featured-showcase.sc-js .panel .clip { -webkit-box-reflect: below 10px linear-gradient(transparent 66%, rgba(255, 255, 255, .22)); -webkit-user-drag: none; }
.featured-showcase .slide.dir-back .panel { transition-delay: calc((var(--n) - 1 - var(--i)) * 60ms); }
.featured-showcase .slide:not(.is-active) .panel { --o: 0; }
.featured-showcase .slide.from-right .panel, .featured-showcase .slide.out-right .panel { --tx: 115vw; --dz: -240px; }
.featured-showcase .slide.from-left .panel, .featured-showcase .slide.out-left .panel { --tx: -115vw; --dz: -240px; }
.featured-showcase .slide.no-anim .panel { transition: none; }
.featured-showcase .slide.is-active .panel:hover { transform: translateZ(calc(var(--z, 0px) + 50px)) rotateY(calc(var(--yaw, 0deg) * .4)) scale(1.03); transition-delay: 0s;
  box-shadow: 0 0 70px rgba(191, 104, 230, .6), 0 34px 70px rgba(0, 0, 0, .5); }
.featured-showcase .slide:not(.is-active) .sc-label { opacity: 0; }
@keyframes sc-bob { 50% { translate: 0 -5px; } }
/* Per-panel hover glow: a soft luminous backing behind the hovered panel only (mouse/pen; touch
   taps navigate right away). Pushed behind the panel in 3D, never takes hits. */
.featured-showcase.sc-js .panel::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  box-shadow: 0 0 36px 12px rgba(226, 160, 255, .85), 0 0 100px 40px rgba(160, 95, 255, .55), 0 0 170px 60px rgba(60, 170, 255, .25);
  transform: translateZ(-2px) scale(.9); opacity: 0; transition: opacity .5s ease, transform .6s ease;
}
@media (hover: hover) and (pointer: fine) {
  .featured-showcase .slide.is-active .panel:hover::after { opacity: 1; transform: translateZ(-2px) scale(1); }
}

@media (max-width: 767px) {
  .featured-showcase .panel { height: 300px; }
  .featured-showcase.sc-js .sc-stage { height: clamp(380px, 128cqw, 82vh); }
  .featured-showcase .sc-nav { margin-top: -64px; }
}
.featured-showcase:not(.sc-js) .sc-nav { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .featured-showcase .panel, .featured-showcase .sc-deck { transition-duration: .01s !important; animation: none !important; }
  .featured-showcase .panel::before, .featured-showcase .sc-waves svg, .featured-showcase .sc-waves .glint { animation: none; }
}

/* =============================================================================================
   Featured Images "gallery above the water" (top-images.html.twig, images-css.js) and the combined
   Images → Videos WebGL scene (combined-gl.js). Base = no-JS grid of linked cards; .ic-js = CSS 3D.
   ============================================================================================= */
.featured-images .ic-world { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.featured-images .ic-card { margin: 0; }
.featured-images .ic-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.featured-images .ic-label { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.featured-images.ic-js .ic-label { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 7px; }
.featured-images .ic-refl, .featured-images .ic-waves { display: none; }
@media (max-width: 767px) { .featured-images .ic-world { grid-template-columns: repeat(3, 1fr); } .featured-images .ic-desk { display: none; } }
/* With JS on, the plain grids would flash for a moment until showcase.js / WebGL take over: keep them
   transparent meanwhile (opacity, not visibility, so the links stay focusable). If the scripts never
   arrive, the grids fade in after a few seconds anyway. */
@media (scripting: enabled) {
  .featured-images:not(.ic-js) > .container-lg > .ic-stage,
  .featured-showcase:not(.sc-js):not(.cx-sticky) > .container-lg > .sc-stage { opacity: 0; animation: sc-late-reveal .4s 4s forwards; }
}
@keyframes sc-late-reveal { to { opacity: 1; } }

/* captions: model badge + author (CSS cards and the WebGL overlay) */
:is(.featured-images .ic-label, .ic-focus) .model { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; line-height: 1.2;
  padding: 4px 9px; border-radius: 99px; color: #fff; background: linear-gradient(90deg, rgba(191, 104, 230, .85), rgba(41, 190, 255, .75));
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
:is(.featured-images .ic-label, .ic-focus) .author { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  line-height: 1.3; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); min-width: 0; max-width: 100%; }
:is(.featured-images .ic-label, .ic-focus) .author svg { flex: none; }
:is(.featured-images .ic-label, .ic-focus) .author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.featured-images .ic-label, .ic-focus) a.author:hover { color: #fff; }
:is(.featured-images .ic-label, .ic-focus) a.author:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CSS 3D gallery (images-css.js) ---------- */
.featured-images.ic-js { container-type: inline-size; }
.featured-images.ic-js .ic-stage { position: relative; height: min(76vh, 720px); min-height: 480px; width: 100cqw; margin-left: calc(50% - 50cqw); overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.featured-images.ic-js .ic-world { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: 0; transform-style: preserve-3d; }
.featured-images.ic-js .ic-card { position: absolute; left: calc(var(--w) / -2); top: calc(var(--h) * -1); width: var(--w); height: var(--h); transform-style: preserve-3d; transform-origin: 50% 100%;
  transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--yaw)); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.featured-images.ic-js .ic-card[hidden] { display: none; }
.featured-images.ic-js .ic-float { position: absolute; inset: 0; transform-style: preserve-3d; animation: ic-bob 6s ease-in-out infinite; animation-delay: var(--ph); }
.featured-images.ic-js .ic-img { position: absolute; inset: 0; display: block; border-radius: 8px; overflow: hidden; background: #1a1345;
  box-shadow: 0 0 calc(30px - var(--d) * 20px) rgba(124, 77, 255, .3), 0 20px 40px rgba(0, 0, 0, .4);
  transform: rotate(var(--roll, 0rad)); transition: box-shadow .6s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.featured-images.ic-js .ic-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; filter: blur(var(--blur)) brightness(var(--dim)) saturate(var(--sat)); transition: filter .6s; }
.featured-images.ic-js .ic-img::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: linear-gradient(0deg, rgba(8, 5, 28, .85), transparent 30%), linear-gradient(180deg, rgba(8, 5, 28, .55), transparent 20%); }
.featured-images.ic-js .ic-card::before { content: ''; position: absolute; inset: -2px; border-radius: 10px; padding: 2px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--ic-ang), #bf68e6, #29beff, #7c4dff, #ff5fd2, #bf68e6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ic-spin 6s linear infinite; opacity: 0; transition: opacity .4s; }
/* caption of the lifted card: model on top, author at the bottom; --cs undoes the perspective magnification */
.featured-images.ic-js .ic-card .ic-label { position: absolute; margin: 0; z-index: 3; opacity: 0; transition: opacity .4s; pointer-events: none; justify-content: space-between;
  inset: calc(10px * var(--cs, 1)) calc(10px * var(--cs, 1)) calc(10px * var(--cs, 1)) calc(12px * var(--cs, 1)); }
.featured-images.ic-js .ic-card .model { font-size: calc(10px * var(--cs, 1)); letter-spacing: .8px; padding: calc(4px * var(--cs, 1)) calc(9px * var(--cs, 1)); }
.featured-images.ic-js .ic-card .author { font-size: calc(15px * var(--cs, 1)); gap: calc(6px * var(--cs, 1)); }
.featured-images.ic-js .ic-card .author svg { width: calc(14px * var(--cs, 1)); height: calc(14px * var(--cs, 1)); }
.featured-images.ic-js .ic-refl { display: block; position: absolute; left: 0; right: 0; top: calc(100% + var(--gap)); height: 100%; pointer-events: none;
  transform: scaleY(-1); opacity: calc(.3 - var(--d) * .12); animation: ic-bob-refl 6s ease-in-out infinite; animation-delay: var(--ph);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 50%); mask-image: linear-gradient(0deg, #000, transparent 50%); }
.featured-images.ic-js .ic-refl img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; filter: blur(1.5px) hue-rotate(-15deg) saturate(.8); transform: rotate(var(--roll, 0rad)); }
/* one lifted card (.sel, kept by images-css.js while the pointer is on it) */
.featured-images.ic-js .ic-card.sel, .featured-images.ic-js .ic-card:focus-within { transform: translate3d(var(--fx), var(--fy), var(--fz)) scale(var(--fk, 1)); z-index: 5; }
.featured-images.ic-js .ic-card.sel .ic-float { animation: none; }
.featured-images.ic-js .ic-card:is(.sel, :focus-within) .ic-img { transform: none; box-shadow: 0 0 70px rgba(191, 104, 230, .65), 0 30px 60px rgba(0, 0, 0, .5); }
.featured-images.ic-js .ic-card:is(.sel, :focus-within) .ic-img img { filter: none; }
.featured-images.ic-js .ic-card:is(.sel, :focus-within) .ic-img::after, .featured-images.ic-js .ic-card:is(.sel, :focus-within) .ic-label { opacity: 1; }
.featured-images.ic-js .ic-card:is(.sel, :focus-within)::before { opacity: 1; }
.featured-images.ic-js .ic-card:is(.sel, :focus-within) .ic-label .author { pointer-events: auto; }   /* the rest of the caption opens the image */
@property --ic-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ic-spin { to { --ic-ang: 360deg; } }
@keyframes ic-bob { 50% { transform: translateY(-7px) rotateZ(.4deg); } }
@keyframes ic-bob-refl { 50% { transform: scaleY(-1) translateY(-14px); } }
.featured-images.ic-js .ic-waves { display: block; position: absolute; left: 0; right: 0; bottom: 0; top: 60%; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect; }
.featured-images .ic-waves::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(45% 60% at 50% 18%, rgba(170, 100, 255, .45), transparent 70%), linear-gradient(180deg, rgba(60, 30, 150, .7), rgba(13, 8, 48, .2)); }
.featured-images .ic-waves svg { position: absolute; left: 0; width: 200%; height: 40%; animation: sc-drift linear infinite; mix-blend-mode: screen; filter: blur(1.5px); }
.featured-images .ic-waves svg:nth-of-type(1) { top: 6%;  opacity: .5; animation-duration: 22s; }
.featured-images .ic-waves svg:nth-of-type(2) { top: 20%; opacity: .4; animation-duration: 15s; animation-direction: reverse; }
.featured-images .ic-waves svg:nth-of-type(3) { top: 36%; opacity: .45; animation-duration: 10s; }
.featured-images .ic-waves svg:nth-of-type(4) { top: 52%; opacity: .3; animation-duration: 7s; animation-direction: reverse; }

/* ---------- combined WebGL scene: one sticky stage over a short scroll track, one water ---------- */
.cx-sticky { display: none; }
.cx.is-gl { position: relative; height: 190vh; height: 190svh; }   /* scroll track = 0.9 screen */
/* the server-rendered blocks stay in the DOM (SEO links, keyboard focus) but out of sight */
.cx.is-gl > :not(.cx-sticky) { position: absolute !important; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.cx.is-gl .cx-sticky { display: flex; flex-direction: column; position: sticky; top: var(--cx-top, 0px); overflow: hidden; --p: 0;
  height: calc(100vh - var(--cx-top, 0px)); height: calc(100svh - var(--cx-top, 0px));
  width: 100vw; margin-left: var(--cx-left, calc(50% - 50vw)); }
.cx-heads { position: relative; flex: none; width: 100%; max-width: 1140px; margin: 0 auto; padding: 26px 12px 0; height: 76px; box-sizing: border-box; }
.cx-head { position: absolute; left: 12px; right: 12px; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cx-head h3 { margin: 0; white-space: nowrap; }
.cx-head a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cx-head-img { opacity: clamp(0, calc(1 - (var(--p) - .2) * 6), 1); transform: translateY(calc(clamp(0, (var(--p) - .2) * 6, 1) * 14px)); }
.cx-head-vid { opacity: clamp(0, calc((var(--p) - .34) * 6), 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .34) * 6, 1)) * -14px)); }
.cx-sticky:not(.img-on) .cx-head-img, .cx-sticky:not(.vid-on) .cx-head-vid { pointer-events: none; }
.cx-sticky .cx-stage { position: relative; flex: 1; margin: 0; width: 100%; height: auto; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.cx-stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 88%, transparent);
  mask-composite: intersect; }
.cx-sticky .sc-nav { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0; z-index: 5; opacity: clamp(0, calc((var(--p) - .66) * 8), 1); }
.cx-sticky:not(.vid-on) .sc-nav { pointer-events: none; }
/* "more below" arrows, centred over the water and bobbing: on the images low over the water, fading out as soon
   as they start to sink; on the videos above the deck nav, fading in once the panels are up */
.cx-down { position: absolute; left: 50%; bottom: 6%; z-index: 5; width: 58px; height: 58px; margin-left: -29px; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; opacity: clamp(0, calc(1 - var(--p) * 10), 1); }
.cx-down-vid { bottom: calc(7% + 64px); opacity: clamp(0, calc((var(--p) - .72) * 9), 1); }
.cx-sticky .sc-nav[hidden] ~ .cx-down-vid { bottom: 6%; }   /* one page of videos, no nav: as low as the image arrow */
.cx-sticky:not(.img-on) .cx-down-img, .cx-sticky:not(.vid-on) .cx-down-vid { pointer-events: none; }
.cx-down svg { display: block; width: 100%; height: 100%; fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 140, 40, .75)) drop-shadow(0 0 16px rgba(255, 100, 20, .45));
  animation: cx-down-bob 1.8s cubic-bezier(.45, 0, .55, 1) infinite; transition: filter .25s; }
.cx-down:hover svg, .cx-down:focus-visible svg { filter: drop-shadow(0 0 8px rgba(255, 170, 60, .95)) drop-shadow(0 0 22px rgba(255, 110, 20, .7)); }
.cx-down:focus-visible { outline: 2px solid rgba(255, 170, 60, .7); outline-offset: 4px; border-radius: 50%; }
@keyframes cx-down-bob { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(7px); } }
.cx-sticky .labels .sc-label { transition: opacity .35s; }
.cx-sticky:not(.vid-on) .labels .sc-label { opacity: 0 !important; }
/* WebGL: the caption of the lifted canvas is an HTML box laid over it — model badge on top, author at the bottom,
   a real link to the image page in between; it is part of the hover zone, so the canvas stays lifted under it */
.ic-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ic-focus { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  gap: 6px; padding: .8em .85em; box-sizing: border-box; border-radius: 8px; font-size: 1rem; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.ic-focus.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.ic-focus.live { pointer-events: auto; }   /* clickable once settled: a caption appearing under a finger mid-tap does not catch it */
.ic-focus .ic-hit { position: absolute; inset: 0; border-radius: inherit; touch-action: pan-y; -webkit-touch-callout: none; }
.ic-focus .model, .ic-focus .author { position: relative; z-index: 1; }
.ic-focus .model { pointer-events: none; }
.ic-focus .author { padding: 4px 8px 4px 0; margin: -4px 0; }
.cx-sticky:not(.img-on) .ic-labels .ic-focus { opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 767px) {
  .featured-images.ic-js .ic-stage { height: calc(100vh - 140px); height: calc(100svh - 140px); min-height: 520px; max-height: 200vw; }   /* scatter fills the screen */
  :is(.featured-images .ic-label, .ic-focus) .author { font-size: 13px; }
  :is(.featured-images .ic-label, .ic-focus) .model { font-size: 9px; letter-spacing: 1px; padding: 3px 7px; }
  .featured-images.ic-js .ic-card .author { font-size: calc(13px * var(--cs, 1)); }
  .featured-images.ic-js .ic-card .model { font-size: calc(9px * var(--cs, 1)); padding: calc(3px * var(--cs, 1)) calc(7px * var(--cs, 1)); }
  .cx.is-gl { height: 230vh; height: 230svh; }   /* phones: 1.3 screens of scroll */
  .cx-heads { padding: 18px 16px 0; height: 58px; }
  .cx-head { left: 16px; right: 16px; }
  .cx-sticky .sc-nav { bottom: 5%; }
  .cx-down { bottom: 4px; width: 42px; height: 42px; margin-left: -21px; }
  .cx-down-vid { bottom: calc(5% + 60px); }
  .cx-sticky .sc-nav[hidden] ~ .cx-down-vid { bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-images.ic-js .ic-float, .featured-images.ic-js .ic-refl, .featured-images.ic-js .ic-card::before, .featured-images .ic-waves svg { animation: none !important; }
  .featured-images.ic-js .ic-card { transition-duration: .01s; }
}

