/* Keep the original studio artwork and lettering while giving the arcade the larger feature. */
.home-hero {
  padding-block: clamp(22px, 2.6vw, 38px) clamp(12px, 1.6vw, 22px);
}
.home-intro { margin-bottom: clamp(17px, 2.1vw, 28px); }
.home-intro h1 { font-size: clamp(2.9rem, 5.9vw, 5.9rem); }
.home-intro .lead { font-size: 1rem; margin-top: 8px; text-wrap: pretty; }
.home-feature-grid { grid-template-columns: 1.62fr 1fr; gap: clamp(12px, 1.5vw, 20px); }
.home-feature { min-height: clamp(280px, 25vw, 345px); border-radius: 16px; }
.home-feature-art img { object-position: 58% 53%; }
.home-feature-game::before {
  background: linear-gradient(90deg, #120923e8, #130926ab 36%, #13092603 70%),
              linear-gradient(0deg, #140b2870, transparent 54%);
}
.home-feature-copy { padding: clamp(20px, 2.3vw, 32px); }
.home-feature-game .home-feature-copy p { max-width: 32ch; text-wrap: pretty; }
.home-feature-business .home-feature-copy p { max-width: 31ch; }
.home-business-art { width: 84%; height: 67%; }
.home-business-art img { object-fit: contain; object-position: right top; }
.home-games { padding-block: clamp(22px, 3vw, 42px) clamp(26px, 3vw, 42px); }
.home-games .section-action { color: #93f5ff; }
.shelf-heading .section-action { min-height: 44px; display: inline-flex; align-items: center; }
.home-games .dru-shelf { margin-top: 13px; }
.game-graphics { margin-top: clamp(22px, 3vw, 38px); border-top: 1px solid var(--line); padding-top: 18px; }
.game-graphics h3 { font-size: 1.12rem; margin-bottom: 12px; }
.graphics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.graphics-grid figure { display: flex; align-items: center; gap: 10px; }
.graphics-grid img { width: 44%; border-radius: 7px; aspect-ratio: 1.9; object-fit: cover; }
.graphics-grid figcaption { margin: 0; text-align: left; color: #e5dcee; font-weight: 650; line-height: 1.25; }
.home-portfolio .section-action { color: #4b238b; }
.home-portfolio .template-card:focus-visible { outline-color: #58269c; }
@media (max-width: 820px) {
  .graphics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature-grid { grid-template-columns: 1.33fr 1fr; }
}
@media (max-width: 640px) {
  .home-hero { padding-block: 18px 10px; }
  .home-intro { margin-bottom: 15px; }
  .home-intro h1 { font-size: clamp(2.35rem, 9vw, 3.3rem); }
  .home-intro h1 em { display: inline; }
  .home-intro .lead { line-height: 1.42; }
  .home-feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-feature { border-radius: 12px; }
  .home-feature-game { min-height: 207px; }
  .home-feature-game .home-feature-copy { padding: 17px; }
  .home-feature-copy h2 { font-size: 2.35rem; }
  .home-feature-copy p { margin: 6px 0 10px; line-height: 1.32; }
  .home-feature-game .home-feature-copy p { max-width: 23ch; }
  .home-feature-game::before {
    background: linear-gradient(90deg,#160c2ae8,#160d28b0 36%,#160c291a 78%),
                linear-gradient(0deg,#160c2970,transparent 48%);
  }
  .home-feature-business { min-height: 0; }
  .home-feature-business .home-feature-copy { width: 63%; padding: 14px 0 14px 16px; }
  .home-feature-business h2 { font-size: 1.7rem; }
  .home-feature-business .home-feature-copy p { font-size: .94rem; }
  .home-business-art { width: 49%; height: 100%; }
  .home-business-art img { object-position: left center; object-fit: cover; }
  .home-feature-business::before { background: linear-gradient(90deg,#f4effb 48%,#f4effbbf 61%,transparent 75%); }
  .home-feature-business .btn { min-height: 44px; padding: 8px 14px; }
  .home-games .shelf-heading { align-items: center; }
  .home-games .shelf-heading h2 { max-width: 68%; }
  .shelf-heading .section-action { font-size: .875rem; line-height: 1.25; }
  .graphics-grid { gap: 12px 8px; }
  .graphics-grid figure { gap: 6px; }
  .graphics-grid figcaption { font-size: .83rem; }
  .home-portfolio .shelf-heading { flex-wrap: wrap; gap: 0 14px; }
}

/* Artwork slideshow on the homepage. */
.gallery-section { padding-block: clamp(24px, 3.5vw, 52px); }
.gallery-heading, .gallery-controls, .gallery-demos {
  display: flex; align-items: center; flex-wrap: wrap;
}
.gallery-heading { justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.gallery-heading h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); }
.gallery-controls { gap: 5px; }
.gallery-controls button {
  color: white; background: #191528; border: 1px solid #625576;
  border-radius: 7px; min-width: 44px; min-height: 44px;
  line-height: 1; font-size: 1.65rem;
}
.gallery-controls button:hover { background: #332442; border-color: var(--pink); }
.gallery-controls [data-motion] { padding-inline: 12px; font-size: .875rem; }
.gallery-controls [data-counter] { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.gallery-stage { display: grid; gap: 12px; }
.gallery-layout { width: 100%; }
.gallery-ready .gallery-layout { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,1fr); gap: 14px; }
.gallery-slide, .gallery-previews button {
  position: relative; isolation: isolate; overflow: hidden; margin: 0; min-width: 0;
  background: #171025; border: 1px solid #514365; border-radius: 14px;
}
.gallery-stage { touch-action: pan-y pinch-zoom; }
.gallery-slide { min-height: 250px; display: flex; align-items: end; aspect-ratio: 1.95; }
.gallery-slide img, .gallery-previews img {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--subject,center); user-select: none; pointer-events: none;
}
.gallery-slide::after, .gallery-previews button::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, #070614f5, #07061440 44%, transparent 66%);
}
.gallery-slide figcaption {
  color: white; text-align: left; margin: 0; padding: clamp(16px, 2.5vw, 34px);
  max-width: 100%; text-shadow: 0 1px 5px #000;
}
.gallery-slide figcaption span { font-size: .9rem; font-weight: 650; }
.gallery-slide h3 { color: #fff; font: italic 900 clamp(2.5rem, 5vw, 5rem)/.95 var(--display); text-transform: uppercase; margin: 4px 0 7px; }
.gallery-slide figcaption p { color: #fff; font-size: 1rem; line-height: 1.4; }
.gallery-previews { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.gallery-previews button {
  display: flex; align-items: end; padding: 12px 15px; text-align: left; color: white;
  font: italic 900 clamp(1.25rem,2.25vw,2.1rem)/1 var(--display); text-transform: uppercase;
}
.gallery-previews button:hover { border-color: var(--pink); }
.gallery-demos { gap: 10px; margin-top: 16px; }
.gallery-demos h3 { margin: 0 7px 0 0; font-size: 1.1rem; }
.gallery-demos a { gap: 9px; }
.gallery-announcement { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 680px) {
  .gallery-heading { margin-bottom: 10px; }
  .gallery-ready .gallery-layout { grid-template-columns: 1fr; gap: 8px; }
  .gallery-slide { min-height: 0; aspect-ratio: 1.36; }
  .gallery-slide h3 { font-size: 2.25rem; }
  .gallery-previews { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 8px; }
  .gallery-previews button { min-height: 94px; aspect-ratio: 1.85; padding: 8px; }
  .gallery-slide, .gallery-previews button { border-radius: 10px; }
  .gallery-demos { column-gap: 8px; }
  .gallery-demos h3 { width: 100%; }
  .gallery-demos .btn { padding: 10px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-ready .gallery-slide:not([hidden]) { animation: gallery-appear 190ms ease-out; }
  @keyframes gallery-appear { from { opacity: .75; } to { opacity: 1; } }
}
