:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --ink: #12233f;
  --muted: #626c78;
  --brand: #159e9b;
  --font: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.shell { width: min(100% - 3rem, 88rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .7rem 1rem; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }

/* Keep the studio hero in step with the site homepage. */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(60svh - 3.6rem); padding: 5rem 0 3.5rem; color: #fff; background: var(--brand); text-align: center; }
.hero-contact { position: absolute; top: 1.25rem; right: max(1.5rem, calc((100% - 88rem) / 2)); display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.2rem; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3rem; }
.hero-contact:hover { text-decoration-color: currentColor; }
.hero-content { display: flex; flex-direction: column; align-items: center; gap: clamp(1.25rem, 2.5vw, 2rem); }
.studio { display: block; width: min(100%, 40rem, 70svh); }
.hero-logo { width: 100%; height: auto; aspect-ratio: 3.3; object-fit: cover; object-position: 50% 48%; filter: brightness(.9) contrast(1.3); mix-blend-mode: lighten; }
h1 { max-width: 28ch; margin: 0; font-size: clamp(1.65rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; text-wrap: balance; }

.games { display: flex; flex-direction: column; gap: 2rem; max-width: 1280px; padding-block: clamp(3rem, 6vw, 5.5rem); }
.game-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); align-items: center; min-width: 0; overflow: hidden; border-radius: 24px; color: #fff; }
.hold { background: #10211f; }
.discozy { background: #080e1d; }
.flock { background: #192a22; }
.game-copy { padding: clamp(1.75rem, 3.4vw, 3.25rem); padding-right: 1.5rem; }
h2 { margin: 0; font-size: clamp(2rem, 3.1vw, 2.8rem); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
h2 span { display: block; margin-top: .65rem; font-size: 1rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.game-copy p { max-width: 36ch; margin: 1.5rem 0 1.75rem; font-size: 1rem; line-height: 1.8; }
.game-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.75rem; min-height: 48px; padding: .85rem 1.15rem; border-radius: 9px; background: #ffffff16; text-decoration: none; font-size: .875rem; font-weight: 700; transition: background .15s; }
.game-link:hover { background: #ffffff28; }

.gallery { min-width: 0; padding: 2rem 2rem 1.25rem; }
.gallery-track { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: #ffffff55 transparent; padding: 4px 4px 14px; border-radius: 16px; }
.gallery-track img { flex: 0 0 auto; width: auto; height: 384px; max-width: none; border-radius: 14px; scroll-snap-align: start; }
.gallery--landscape .gallery-track img { height: auto; width: 92%; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #ffffff16; font-size: 1.35rem; cursor: pointer; }
.gallery-controls button:hover:not(:disabled) { background: #ffffff2e; }
.gallery-controls button:disabled { opacity: .3; cursor: default; }

.contact-section { color: #fff; background: var(--brand); }
.contact-panel { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; padding: clamp(3rem, 7vw, 6rem); text-align: center; }
.contact-panel h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.05; }
.contact-email { display: inline-flex; align-items: center; gap: 1rem; padding-bottom: .4rem; border-bottom: 1px solid currentColor; text-decoration: none; font-size: clamp(1.2rem, 2vw, 1.35rem); font-weight: 700; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 2rem; color: var(--muted); font-size: .76rem; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .game-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .game-copy { padding: 2rem; padding-right: 1rem; }
  .gallery { padding-left: 1.25rem; padding-right: 1.25rem; }
  .gallery-track img { height: 340px; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 2rem, 88rem); }
  .hero { min-height: calc(60svh - 3rem); padding: 4.5rem 0 2.5rem; }
  .hero-contact { top: .75rem; right: 1rem; }
  .game-row { grid-template-columns: 1fr; }
  .game-copy { padding: 2rem 1.5rem 0; }
  .game-copy p { max-width: 54ch; margin-block: 1.25rem 1.5rem; }
  .gallery { padding: 1.75rem 1.25rem 1.25rem; }
  .gallery-track img { height: 350px; }
  .gallery--landscape .gallery-track img { width: 92%; }
  .games { gap: 1.5rem; }
  .contact-panel { padding-inline: 1.5rem; }
}
@media (max-width: 360px) {
  .game-copy { padding-inline: 1.25rem; }
  .gallery { padding-inline: 1rem; }
  .gallery-track img { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-link { transition: none; }
}
