/* Unslop review adapted from Damir Sokolovsky, CC BY 4.0.
   https://github.com/heydamir/unslop
   Audience: art/design faculty and institutional decision makers.
   Direction: a teaching-oriented creative showcase, ink-blue surfaces and original work. */
main > .creative-suite.section {
  --suite-surface: #192436;
  --suite-text: #f2f6ff;
  --suite-secondary: #c0cada;
  padding: 104px 0;
  background: #101929;
  color: var(--suite-text);
}
.creative-suite .gallery-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-inline: var(--gutter);
  margin-bottom: 48px;
}
.creative-suite .gallery-intro { min-width: 0; }
.creative-suite .gallery-intro h2 {
  max-width: 960px;
  color: var(--suite-text);
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.creative-suite .gallery-intro h2 span { display: block; color: #b5bfd0; }
.creative-suite .gallery-intro > p {
  max-width: 880px;
  margin-top: 24px;
  color: var(--suite-secondary);
  font-size: 18px;
  line-height: 1.75;
}
.creative-suite .gallery-controls { display: flex; gap: 16px; }
.creative-suite .gallery-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  padding: 0;
  color: var(--suite-text);
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.creative-suite .gallery-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.creative-suite .gallery-arrow:hover:enabled { background: #ffffff0d; border-color: #ffffff80; }
.creative-suite .gallery-arrow:active:enabled { transform: scale(.96); }
.creative-suite .gallery-arrow:disabled { color: #9ba7ba; border-color: #ffffff20; cursor: default; }
.creative-suite .gallery-autoplay .gallery-pause-icon,
.creative-suite .gallery-autoplay[aria-pressed="true"] .gallery-play-icon { display: none; }
.creative-suite .gallery-autoplay[aria-pressed="true"] .gallery-pause-icon { display: initial; }
.creative-suite .cards {
  --suite-card-gap: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--suite-card-gap)) / 3);
  gap: var(--suite-card-gap);
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  margin-inline: var(--gutter);
  padding-block: 8px 24px;
  scrollbar-width: none;
}
.creative-suite .cards::-webkit-scrollbar { display: none; }
.creative-suite .card {
  --suite-copy-height: 192px;
  --suite-card-padding: 16px;
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  padding: var(--suite-card-padding);
  border-radius: 24px;
  background: var(--suite-surface);
  scroll-snap-align: start;
  scroll-margin-top: 112px;
  overflow: hidden;
}
.creative-suite .card-copy { min-height: var(--suite-copy-height); padding: 16px 16px 32px; }
.creative-suite .card-copy h3 { margin: 0 0 16px; padding-inline-end: 56px; color: var(--suite-text); font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.creative-suite .card-copy p { margin: 0; color: var(--suite-secondary); font-size: 16px; line-height: 1.75; }
.creative-suite .frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
@supports (height: 1cqw) {
  .creative-suite .frame {
    /* Add 15% of the original card height to the media area. */
    height: calc(75cqw + .15 * (75cqw + var(--suite-copy-measured, var(--suite-copy-height)) + 2 * var(--suite-card-padding)));
  }
}
.creative-suite :is(a.frame, a.brand-showcase):focus-visible { outline-offset: -4px; }
.creative-suite .frame > img,.creative-suite .frame video,.creative-suite .brand-showcase,.creative-suite .brand-showcase img { display: block; width: 100%; height: 100%; object-fit: cover; }
.creative-suite .audio-waveform {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 16px 16px;
  background: linear-gradient(transparent, #080d16de);
  pointer-events: none;
}
.creative-suite .waveform { display: block; width: 100%; height: 48px; }
.creative-suite .media-kind { position: absolute; z-index: 1; bottom: 16px; left: 16px; padding: 4px 8px; border-radius: 4px; background: #101929e8; color: #fff; font-size: 12px; line-height: 20px; }
.creative-suite .suite-disclaimer { margin: 8px var(--gutter) 0; color: #b5bfd0; font-size: 14px; }
.creative-suite .suite-teaching { margin: 40px var(--gutter) 0; border-top: 1px solid #ffffff24; }
.creative-suite .suite-teaching > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; color: var(--suite-text); cursor: pointer; list-style: none; font-size: 16px; }
.creative-suite .suite-teaching > summary::-webkit-details-marker { display: none; }
.creative-suite .suite-teaching > summary::after { content: '+'; font-size: 24px; font-weight: 400; }
.creative-suite .suite-teaching[open] > summary::after { content: '−'; }
.creative-suite .suite-teaching .modules { padding-top: 16px; }
.creative-suite .inpaint-frame { touch-action: pan-y; }
.creative-suite .frame .inpaint-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.creative-suite .compare-label,.creative-suite .compare-caption { position: absolute; z-index: 1; padding: 4px 8px; border-radius: 4px; color: #fff; background: #101929d9; font-size: 12px; line-height: 20px; pointer-events: none; }
.creative-suite .compare-before { top: 16px; right: 16px; }
.creative-suite .compare-after { top: 16px; left: 16px; }
.creative-suite .compare-caption { bottom: 16px; left: 16px; }
.creative-suite .compare-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--reveal); width: 2px; background: #fff; pointer-events: none; }
.creative-suite .compare-handle::after { content: '↔'; position: absolute; display: grid; place-items: center; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: #101929; font-size: 24px; }
.creative-suite .inpaint-slider { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.creative-suite .inpaint-frame:focus-within { outline: 2px solid #fff; outline-offset: 4px; }
.creative-suite .flow-canvas { display: block; width: 100%; height: 100%; background: #121219; }
.creative-suite :is(.flow-node,.flow-output,.flow-wire) { animation-duration: 5s; animation-iteration-count: infinite; animation-play-state: paused; }
.creative-suite .flow-canvas[data-playing] :is(.flow-node,.flow-output,.flow-wire) { animation-play-state: running; }
.creative-suite :is(.flow-node,.flow-output) { transform-box: fill-box; transform-origin: center; }
.creative-suite .node-1 { animation-name: suite-node-first; }
.creative-suite .node-2 { animation-name: suite-node-second; }
.creative-suite .node-3 { animation-name: suite-node-third; }
.creative-suite .output-1 { animation-name: suite-output-first; }
.creative-suite .output-2 { animation-name: suite-output-second; }
.creative-suite .output-3 { animation-name: suite-output-third; }
.creative-suite .wire-1 { animation-name: suite-wire-first; }
.creative-suite .wire-2 { animation-name: suite-wire-second; }
.creative-suite .flow-wire { stroke-dasharray: 1; }
@keyframes suite-node-first { 0%,100% { opacity: .3; } 6%,94% { opacity: 1; } }
@keyframes suite-node-second { 0%,20%,100% { opacity: 0; transform: translateY(8px); } 28%,94% { opacity: 1; transform: none; } }
@keyframes suite-node-third { 0%,49%,100% { opacity: 0; transform: translateY(8px); } 57%,94% { opacity: 1; transform: none; } }
@keyframes suite-output-first { 0%,6%,100% { opacity: 0; } 16%,94% { opacity: 1; } }
@keyframes suite-output-second { 0%,30%,100% { opacity: 0; } 45%,94% { opacity: 1; } }
@keyframes suite-output-third { 0%,59%,100% { opacity: 0; } 78%,94% { opacity: 1; } }
@keyframes suite-wire-first { 0%,25%,100% { stroke-dashoffset: 1; opacity: 0; } 32%,94% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes suite-wire-second { 0%,54%,100% { stroke-dashoffset: 1; opacity: 0; } 62%,94% { stroke-dashoffset: 0; opacity: 1; } }
@media (max-width: 900px) {
  .creative-suite .gallery-bar { gap: 24px; }
  .creative-suite .gallery-controls { gap: 8px; }
  .creative-suite .gallery-arrow { width: 48px; height: 48px; }
  .creative-suite .cards { --suite-card-gap: 16px; }
  .creative-suite .card { --suite-copy-height: 208px; }
  .creative-suite .card-copy { padding: 8px 8px 24px; }
  .creative-suite .card-copy h3 { padding-inline-end: 48px; font-size: 20px; }
}
@media (max-width: 600px) {
  main > .creative-suite.section { padding-block: 80px; }
  .creative-suite .gallery-bar { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .creative-suite .gallery-intro h2 { font-size: 32px; text-wrap: wrap; }
  .creative-suite .gallery-intro > p { font-size: 16px; }
  .creative-suite .gallery-controls { justify-self: end; gap: 16px; }
  .creative-suite .cards { grid-auto-columns: calc(100% - 16px); margin-inline: 0; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .creative-suite .card-copy h3 { font-size: 24px; }
  .creative-suite .suite-disclaimer { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .creative-suite .gallery-arrow { transition: none; }
}
.creative-suite .suite-teaching [id] { scroll-margin-top: 120px; }
