:root {
  --ink: #20143e;
  --muted: #5b526d;
  --paper: #f2edff;
  --white: #fffdfb;
  --violet: #3524d6;
  --violet-dark: #2516b0;
  --yellow: #fff36c;
  --pink: #ffc0dc;
  --rule: #d9d1eb;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.5 var(--text); }
figure, h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #8563fa; outline-offset: 4px; }
[hidden] { display: none !important; }
.page-width { width: min(1220px, calc(100% - 100px)); margin-inline: auto; }

.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 10; padding: 12px 18px; color: var(--ink); background: var(--yellow); }
.skip-link:focus { top: 1rem; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.wordmark, .header-actions, .masthead nav { display: flex; align-items: center; }
.wordmark { gap: 11px; font: 800 1rem/.91 var(--display); letter-spacing: -.035em; }
.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--violet);
  border-radius: 13px 13px 4px 13px;
  font-size: 1.15rem;
  letter-spacing: -.08em;
  padding-right: 1px;
}
.masthead nav { gap: clamp(20px, 3.6vw, 56px); font-weight: 650; }
.masthead nav a:hover, .action-link:hover, .social-links a:hover { text-decoration: underline; text-underline-offset: .22em; }
.header-actions { gap: 13px; }
.language, .header-itch { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 700; border: 1px solid var(--rule); border-radius: 8px; }
.language { color: var(--ink); background: transparent; cursor: pointer; }
.header-itch { color: var(--white); background: var(--violet); border-color: var(--violet); }
.language:hover { background: #e7dcff; }
.header-itch:hover, .button-blue:hover { background: var(--violet-dark); }

.hero { min-height: 650px; padding-block: 64px 66px; display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: min(5.2vw, 76px); }
.hero-copy { padding-bottom: 32px; min-width: 0; }
.hero-location { font-size: .94rem; font-weight: 700; margin-bottom: 20px; color: var(--violet-dark); }
.hero h1 {
  font: 800 clamp(3.5rem, 7.55vw, 7.2rem)/.88 var(--display);
  letter-spacing: -.056em;
  font-optical-sizing: auto;
}
.hero h1 span { color: var(--violet); }
.hero-description { max-width: 33ch; margin: 24px 0 26px; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.23rem); }
.hero-actions, .project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 21px; }
.button, .action-link { font-weight: 750; }
.button { padding: 13px 18px; min-height: 50px; display: inline-flex; justify-content: center; align-items: center; border-radius: 9px; }
.button-blue { color: var(--white); background: var(--violet); transition: background .18s ease, transform .18s ease; }
.button-blue:active { transform: translateY(2px); }
.action-link { color: var(--violet-dark); }
.hero-feature { min-width: 0; position: relative; }
.showcase {
  height: clamp(325px, 33vw, 484px);
  display: grid;
  place-items: center;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  color: var(--yellow);
  background: var(--violet);
  border-radius: 26px 106px 26px 26px;
}
.showcase-ring, .hero-model, .showcase-sparkle { position: absolute; }
.showcase-ring { border-radius: 50%; pointer-events: none; }
.ring-outer { width: 78%; aspect-ratio: 1; background: #5140ec; transform: translate(8%, 7%); }
.ring-inner { width: 55%; aspect-ratio: 1; border: 1px solid #b2a3ff; transform: translate(10%, 10%); }
.showcase-sparkle { pointer-events: none; font: 700 3.3rem/1 var(--display); text-shadow: 0 0 20px rgba(255, 237, 105, .25); }
.sparkle-one { top: 22%; left: 14%; }
.sparkle-two { top: 64%; right: 13%; font-size: 2.55rem; color: var(--pink); }
.hero-model {
  inset: 0;
}
.hero-model .model-surface {
  animation: model-arrival .85s cubic-bezier(.2,.68,.22,1) both;
}
.sparkle-one, .sparkle-two { animation: sparkle-arrival .65s .18s ease-out both; }
.hero-feature figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; font-size: .88rem; }
.hero-feature figcaption div { display: flex; flex-direction: column; }
.hero-feature figcaption strong { font-size: .99rem; }
.hero-feature figcaption div span { color: var(--muted); }
@keyframes model-arrival {
  from { opacity: .15; }
  to { opacity: 1; }
}
@keyframes sparkle-arrival {
  from { opacity: 0; transform: scale(.4) rotate(-35deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.games-section { background: var(--white); padding: 82px 0 96px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 37px; }
.section-heading h2, .studio-section h2, .footer h2 {
  font: 800 clamp(2.7rem, 5.5vw, 5.35rem)/.94 var(--display);
  letter-spacing: -.05em;
}
.section-heading p { width: min(100%, 36ch); color: var(--muted); font-size: 1rem; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
.game-card { min-width: 0; }
.game-picture { display: block; overflow: hidden; }
.game-picture { background: #211827; border-radius: 16px; aspect-ratio: 16 / 9; }
.game-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s cubic-bezier(.2,.7,.24,1); }
.game-picture:hover img { transform: scale(1.045); }
.game-copy { padding: 17px 4px 2px; }
.project-kind { color: var(--violet-dark); font-size: .85rem; font-weight: 750; }
.game-card h3, .asset-card h3 { font: 800 clamp(1.48rem, 2.5vw, 2.55rem)/1.04 var(--display); letter-spacing: -.038em; margin-top: 5px; }
.project-alias { font-weight: 700; margin-top: 8px; }
.project-description { color: var(--muted); margin: 11px 0 15px; max-width: 62ch; }
.credit { font-size: .81rem; color: var(--muted); margin: 0 0 12px; }
.project-actions { font-size: .92rem; }
.project-actions a:not(.action-link) { text-decoration: underline; text-underline-offset: .2em; }
.game-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.38fr 1fr; background: var(--yellow); border-radius: 26px; padding: 14px; align-items: stretch; }
.game-feature .game-picture { height: 100%; min-height: 290px; aspect-ratio: auto; }
.game-feature .game-copy { align-self: center; padding: clamp(20px, 3.4vw, 48px); }
.game-feature .game-copy h3 { font-size: clamp(2rem, 4vw, 3.45rem); }

.asset-section { background: var(--violet); color: var(--white); padding: 85px 0 88px; }
.asset-section .section-heading p { color: #ede7ff; }
.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.asset-card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 14px; overflow: hidden; }
.asset-copy { padding: clamp(17px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.asset-copy .project-actions { margin-top: auto; }
.bundles { margin-top: 42px; display: grid; grid-template-columns: minmax(140px, .65fr) repeat(2, minmax(0, 1fr)); gap: 16px; }
.bundles h3 { font: 750 2rem/.95 var(--display); letter-spacing: -.05em; padding-top: 16px; }
.bundles article { border-top: 1px solid #9b8fff; padding-top: 12px; min-width: 0; }
.bundles h4 { font-size: 1.1rem; }
.bundles p { color: #efe8ff; margin: 7px 0 10px; }
.bundles a { color: var(--yellow); font-weight: 700; }
.bundles a:hover { text-decoration: underline; }
.asset-section :focus-visible { outline-color: #ffcf45; }

.studio-section { padding-block: 82px; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 9vw, 140px); }
.studio-description { margin-top: 18px; max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.studio-team { align-self: end; }
.studio-team > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--rule); padding: 13px 0; }
.studio-team strong { font: 750 1.55rem/1 var(--display); }
.studio-team a { color: var(--violet-dark); font-weight: 700; }
.studio-team a:hover { text-decoration: underline; }
.footer { background: var(--yellow); }
.footer-inner { padding-block: 44px 49px; }
.footer h2 { font-size: clamp(2.2rem, 4vw, 4rem); margin-bottom: 10px; }
.email { display: inline-block; font-weight: 750; font-size: clamp(1rem, 2vw, 1.35rem); overflow-wrap: anywhere; }
.email:hover { text-decoration: underline; }
.social-links { display: flex; gap: 12px 20px; flex-wrap: wrap; margin-top: 19px; font-size: .9rem; }


@media (max-width: 960px) {
  .page-width { width: calc(100% - 56px); }
  .hero { min-height: 520px; gap: 32px; padding-block: 53px; }
  .hero-copy { padding-bottom: 16px; }
  .hero h1 { font-size: clamp(3.1rem, 7.6vw, 5.25rem); }
}
@media (max-width: 720px) {
  .page-width { width: calc(100% - 36px); }
  .masthead-inner { flex-wrap: wrap; padding-block: 12px; gap: 10px; }
  .masthead nav { order: 1; width: 100%; padding: 4px 0 0; gap: 22px; font-size: .91rem; }
  .header-actions { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 40px 48px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3rem, 13.6vw, 5.7rem); }
  .hero-location { margin-bottom: 15px; }
  .hero-description { margin: 18px 0 19px; }
  .showcase { height: clamp(290px, 75vw, 435px); border-radius: 16px 63px 16px 16px; }
  .games-section, .asset-section { padding-block: 54px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 23px; }
  .game-grid, .asset-grid { gap: 23px 12px; }
  .game-feature { grid-template-columns: minmax(0, 1fr); border-radius: 18px; padding: 9px; }
  .game-feature .game-picture { min-height: 0; height: auto; aspect-ratio: 16 / 9; border-radius: 11px; }
  .game-feature .game-copy { padding: 16px 12px 11px; }
  .studio-section { padding-block: 53px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundles h3 { grid-column: 1 / -1; padding-top: 0; }
}
@media (max-width: 480px) {
  .game-grid, .asset-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-feature figcaption { align-items: start; }
  .showcase-sparkle { font-size: 2.1rem; }
  .sparkle-two { font-size: 1.6rem; }
  .bundles { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Multi-page navigation and local 3D viewer */
.wordmark img { width: 46px; height: 46px; object-fit: cover; border-radius: 11px; }
.masthead nav a { white-space: nowrap; padding-block: 8px; }
.masthead nav a[aria-current="page"] { color: var(--violet-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-itch { transition: transform .18s ease, background .18s ease; }
.header-itch:hover { transform: translateY(-2px); }
.section-heading h1, .studio-section h1 {
  font: 800 clamp(3.5rem, 7.5vw, 7.15rem)/.92 var(--display);
  letter-spacing: -.055em;
}
.home-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 0 0 68px; }
.home-path { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; color: var(--ink); background: var(--white); border-radius: 14px; }
.home-path-image { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #efe5ff; }
.home-path-image img { width: 100%; height: 100%; object-fit: cover; }
.home-path-assets { grid-template-columns: minmax(0, 1fr) auto; padding-left: 17px; }
.home-path h2 { font: 800 1.17rem/1.08 var(--display); letter-spacing: -.02em; }
.home-path p { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.home-path-arrow { color: var(--violet); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.home-path:hover .home-path-arrow { transform: translate(4px,-4px); }
.viewer-help { width: fit-content; max-width: 100%; margin: -10px 0 26px; color: var(--white); border: 1px solid #998dfa; border-radius: 9px; }
.viewer-help summary { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 7px 12px; font-weight: 700; }
.viewer-help summary::after { content: '+'; margin-left: 9px; font-size: 1.11rem; line-height: 1; }
.viewer-help[open] summary::after { content: '−'; }
.viewer-help p { padding: 0 12px 12px; max-width: 55ch; }
.viewer-controls:not([hidden]) {
  display: flex; flex-wrap: wrap; gap: 6px;
  position: absolute; bottom: 9px; right: 9px; left: 9px; justify-content: end;
  pointer-events: none;
}
.viewer-controls button {
  min-height: 34px; font-size: .79rem; font-weight: 750;
  border: 1px solid #9685d5; border-radius: 8px; padding: 5px 9px;
  background: var(--paper); color: var(--violet-dark); cursor: pointer; pointer-events: auto;
  transition: background .18s ease, color .18s ease;
}
.viewer-controls button:hover, .viewer-controls button[aria-pressed="true"] { background: var(--violet); color: var(--white); }
.model-frame {
  position: relative; height: clamp(260px, 31vw, 410px);
  background: radial-gradient(ellipse at 50% 40%, #fffdfb 20%, #e8e1fa 85%);
}
.model-frame[data-model="frog"] {
  background: radial-gradient(ellipse at 50% 40%, #9e92bd 10%, #504567 90%);
}
.model-surface {
  display: block; width: 100%; height: 100%; object-fit: contain;
  touch-action: none; cursor: grab;
}
.model-surface:active { cursor: grabbing; }
.model-surface:focus-visible { outline-offset: -5px; }
.viewer-status { position: absolute; pointer-events: none; left: 12px; bottom: 12px; max-width: calc(100% - 24px); color: var(--ink); background: var(--white); border-radius: 7px; padding: 6px 10px; font-size: .86rem; }
.viewer-status:empty { display: none; }
.viewer-status:not([data-state="loading"]) { color: #7c233c; }
.studio-section { min-height: 48vh; align-items: center; }
.studio-team { align-self: center; }
.arrived { animation: catalog-arrival .54s cubic-bezier(.22,.75,.2,1) both; }
@keyframes catalog-arrival {
  from { opacity: .72; transform: translateY(12px) scale(.983); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  .home-paths { grid-template-columns: 1fr; padding-bottom: 45px; gap: 10px; }
  .masthead nav { justify-content: space-between; gap: 8px; }
  .masthead nav a { padding-block: 4px; }
}
@media (max-width: 360px) {
  .wordmark { font-size: .89rem; gap: 7px; }
  .wordmark img { height: 37px; width: 37px; }
  .header-actions { gap: 5px; }
  .header-actions > * { padding-inline: 8px; }
}
