@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #080b13;
  --panel: #101521;
  --line: #283147;
  --ink: #f2f5ff;
  --muted: #b0bacd;
  --blue: #a7bbff;
  --accent: #afc2ff;
  --display: Bricolage, "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.58 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button, .button, .nav a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #c3d3ff; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; }
.shell { width: min(76rem, calc(100% - 6.5rem)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 7vw, 7rem); scroll-margin-top: 0.5rem; }
.eyebrow { color: var(--blue); font-size: .875rem; font-weight: 700; line-height: 1.45; letter-spacing: .12em; }
h2 { font-size: clamp(2.7rem, 5.15vw, 5.1rem); font-weight: 750; line-height: .98; letter-spacing: -.06em; }
.skip, .sr-only { position: absolute; }
.sr-only { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { z-index: 12; top: .65rem; left: .65rem; transform: translateY(-150%); background: var(--accent); color: #0b1023; padding: .75rem 1rem; }
.skip:focus { transform: none; }

.header { position: relative; z-index: 5; background: #080b13; border-bottom: 1px solid #202638; }
.header-inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .65rem; font: 800 1.4rem/1 var(--display); letter-spacing: -.055em; text-decoration: none; }
.brand-mark { border-radius: .5rem; flex: none; }
.brand-light { color: #cdd5e8; font-weight: 580; margin-left: .26rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav a:hover, .footer a:hover { color: white; }
.nav .nav-contact, .menu-toggle { border: 1px solid #364664; border-radius: .4rem; padding: .5rem .95rem; color: var(--ink); }
.nav .nav-contact:hover, .menu-toggle:hover { background: #192338; border-color: #6b85d7; }
.menu-toggle { display: none; background: transparent; cursor: pointer; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(34rem, 48vw, 48rem); overflow: hidden; border-bottom: 1px solid var(--line); background: #050815; }
.hero-image, .hero-image img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; }
.hero-image img { object-fit: cover; object-position: center 52%; }
.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #050811 0%, #050811ed 16%, #0508119c 43%, transparent 76%), linear-gradient(0deg, #080b13 0%, transparent 19%);
}
.hero-content { padding-block: 5rem 5.6rem; }
.hero-eyebrow { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.65rem; }
.hero-eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: #8aa8ff; box-shadow: 0 0 10px #5084ff; }
.hero h1 { font-size: clamp(3.05rem, 7.1vw, 7.1rem); line-height: .99; font-weight: 730; letter-spacing: -.043em; }
.hero h1 span { color: #becdff; }
.hero-lede { max-width: 30rem; margin-top: 1.75rem; color: #c3cde1; font-size: clamp(1.04rem, 1.6vw, 1.24rem); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: .4rem; font-weight: 700; text-decoration: none; line-height: 1.3; transition: background .2s ease, border-color .2s ease; }
.primary { background: var(--accent); color: #0b142d; }
.primary:hover { background: #d0dcff; }
.secondary { background: #0e1526bb; border-color: #465775; color: var(--ink); }
.secondary:hover { background: #202d49; border-color: #809ae4; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.35rem; margin-bottom: 2.1rem; }
.section-heading .eyebrow, .studio-intro .eyebrow, .game-about .eyebrow { margin-bottom: .75rem; }
.filters { display: flex; flex-wrap: wrap; gap: .25rem; border: 1px solid var(--line); border-radius: .5rem; padding: .25rem; background: #0e1420; }
.filters button { padding: .45rem .85rem; background: transparent; border: 1px solid transparent; border-radius: .35rem; color: var(--muted); cursor: pointer; font-size: .9rem; font-weight: 680; }
.filters button:hover { color: white; }
.filters button[aria-pressed="true"] { border-color: #3f507d; color: #e0e8ff; background: #223050; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: var(--panel); transition: border-color .22s ease; }
.project-card:hover, .project-card:focus-within { border-color: #6173a4; }
.project-media { display: block; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.8; text-decoration: none; background: #132022; }
.project-media:focus-visible { outline-offset: -5px; }
.island-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.island-media:hover img { transform: scale(1.035); }
.island-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, #05081255 0%, transparent 45%, #05081240 83%, #05081277 100%); }
.project-state, .image-note { position: absolute; z-index: 2; }
.project-state { top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .33rem .65rem; border: 1px solid #ffffff36; border-radius: 100px; background: #080d1bea; font-size: .875rem; font-weight: 650; color: #f2f5ff; }
.project-state::before { width: .45rem; height: .45rem; content: ""; border-radius: 50%; background: #d5a9ff; }
.project-state.released::before { background: #90e7b7; }
.image-note { bottom: .75rem; right: .9rem; padding: .16rem .48rem; border-radius: .25rem; background: #060911dc; color: #e2e8f2; font-size: .78rem; }
.gaminty-media {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .65rem;
  background: radial-gradient(ellipse at 50% 48%, #6232a3 0%, #30235f 43%, #17162a 81%);
}
.gaminty-media::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(#dbb7ff15 1px, transparent 1px), linear-gradient(90deg, #dbb7ff15 1px, transparent 1px);
  background-size: 33px 33px;
  mask-image: radial-gradient(ellipse, #000, #0003 70%, transparent);
}
.gaminty-symbol { position: relative; display: grid; place-items: center; width: clamp(5.3rem, 10vw, 7.5rem); aspect-ratio: 1; }
.gaminty-symbol img { position: relative; width: 100%; height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 .6rem 2.5rem #110b2b9c; transform: rotate(-9deg); transition: transform .35s ease; }
.gaminty-media:hover img { transform: rotate(0); }
.orbit { position: absolute; inset: 5% -42%; border: 1px solid #e0bcff7d; border-radius: 50%; }
.orbit-one { transform: rotate(-20deg); }
.orbit-two { transform: rotate(24deg); opacity: .6; }
.orbit::after { content: ""; position: absolute; top: 25%; right: 5%; width: 6px; height: 6px; border-radius: 50%; background: #f2d8ff; box-shadow: 0 0 14px #e1a5ff; }
.gaminty-name { font: 775 clamp(1.35rem, 2.5vw, 2.15rem)/1 var(--display); letter-spacing: -.045em; }
.project-copy { flex: 1; display: flex; align-items: start; flex-direction: column; padding: clamp(1.25rem, 2.5vw, 2rem); }
.project-copy h3 { margin: .35rem 0 .5rem; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 740; line-height: 1.04; letter-spacing: -.05em; }
.project-copy p:not(.eyebrow) { max-width: 32rem; margin-bottom: 1.35rem; color: var(--muted); }
.project-links, .project-copy > .text-link { margin-top: auto; }
.project-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.text-link, .back-link { font-weight: 680; color: #c0ceff; text-decoration-thickness: 1px; text-underline-offset: .26em; }
.text-link:hover, .back-link:hover { color: #f0f3ff; }

.studio { background: #0e131e; border-block: 1px solid var(--line); }
.studio-layout, .game-about { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(2rem, 6vw, 6rem); }
.studio-intro > p:not(.eyebrow) { margin-top: 1.35rem; max-width: 28rem; color: var(--muted); font-size: 1.12rem; }
.disciplines { border-top: 1px solid var(--line); }
.discipline { display: flex; gap: 1.15rem; align-items: start; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.discipline-icon { display: grid; flex: 0 0 2.7rem; aspect-ratio: 1; place-items: center; color: #c5d2ff; background: #1b2747; border: 1px solid #32466f; border-radius: .45rem; font-size: 1.25rem; line-height: 1; }
.discipline h3 { color: var(--ink); font-size: 1.45rem; line-height: 1.12; letter-spacing: -.025em; }
.discipline p { margin-top: .35rem; color: var(--muted); }

.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.6rem, 5.5vw, 4.85rem); border: 1px solid #364e85; border-radius: .75rem; background: radial-gradient(ellipse at 96% 2%, #29457e, transparent 75%), linear-gradient(115deg, #151d35, #121a2e); }
.contact-panel .eyebrow { margin-bottom: .7rem; }
.contact-panel h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.contact-panel p:not(.eyebrow) { margin-top: .9rem; color: #c7d1e8; }
.contact-panel .button { flex: none; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.65rem; color: var(--muted); font-size: .9rem; }
.footer .brand { font-size: 1.18rem; color: var(--ink); }
.footer-support { text-underline-offset: .2rem; }

.game-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(27rem, 46vw, 44rem); background: #122327; border-bottom: 1px solid var(--line); }
.game-hero > img, .game-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-hero > img { z-index: -2; object-fit: cover; object-position: center 53%; }
.game-hero::after { z-index: -1; content: ""; background: linear-gradient(0deg, #080b13 0%, #080b13a0 34%, transparent 95%), linear-gradient(90deg, #080b13a0, transparent 72%); }
.game-hero-content { padding-block: 3.5rem 4.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; }
.game-hero .eyebrow { color: #c3dbd8; }
.game-hero h1 { margin-top: .55rem; font-size: clamp(4rem, 11vw, 10rem); font-weight: 750; letter-spacing: -.045em; line-height: .95; }
.game-hero p:not(.eyebrow) { margin-top: .9rem; font-size: clamp(1.1rem, 2.7vw, 1.65rem); }

@media (max-width: 950px) {
  .shell { width: calc(100% - 3.75rem); }
  .hero { min-height: 34rem; }
  .hero-image img { object-position: 60% center; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.35rem; flex-wrap: wrap; }
  .menu-toggle:not([hidden]) { display: block; }
  .menu-toggle:not([hidden]) + .nav { width: 100%; padding-bottom: .85rem; }
  .menu-toggle[aria-expanded="false"] + .nav { display: none; }
  .hero { min-height: 33rem; }
  .hero::after { background: linear-gradient(90deg, #040711e6, #04071194 48%, #04071141), linear-gradient(0deg, #080b13, transparent 23%); }
  .hero-image img { object-position: 64% center; }
  .hero-content { padding-block: 4rem; }
  .hero h1 { font-size: clamp(2.48rem, 8vw, 4.55rem); }
  .hero-eyebrow { gap: .55rem; }
  .hero-eyebrow::before { width: .85rem; }
  .hero-lede { margin-top: 1.2rem; max-width: 26rem; }
  .hero-actions { margin-top: 1.5rem; }
  .section-heading, .contact-panel { flex-direction: column; align-items: flex-start; }
  .project-grid, .studio-layout, .game-about { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .eyebrow { letter-spacing: .075em; }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 2.48rem); }
  .hero { min-height: 30rem; }
  .button { padding-inline: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
