@font-face {
    font-family: "Studio Orbitron";
    src: url("../fonts/orbitron-medium.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Studio Roboto";
    src: url("../fonts/roboto-regular.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #050a12;
    --bg-deep: #02050a;
    --panel: rgba(9, 20, 35, 0.78);
    --panel-strong: #0a1624;
    --line: rgba(126, 185, 218, 0.18);
    --line-strong: rgba(89, 215, 239, 0.44);
    --text: #eef8ff;
    --muted: #94aabd;
    --cyan: #12ddea;
    --cyan-soft: rgba(18, 221, 234, 0.13);
    --violet: #8473ff;
    --green: #73edb6;
    --orange: #ff8d52;
    --max-width: 1180px;
    --display: "Studio Orbitron", "Arial Narrow", sans-serif;
    --body: "Studio Roboto", system-ui, sans-serif;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(13, 114, 151, 0.16), transparent 30rem),
        linear-gradient(180deg, var(--bg-deep), var(--bg) 32%, #07101a 70%, var(--bg-deep));
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body::after {
    position: fixed;
    z-index: 999;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.22;
    background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(141, 219, 255, 0.025) 4px);
}

body.is-navigation-open,
body.has-dialog {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

img.studio-wordmark {
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 314;
    object-fit: contain;
}

img.relic-logo {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

::selection {
    color: #fff;
    background: rgba(18, 221, 234, 0.35);
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    color: #001116;
    background: var(--cyan);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.starfield {
    position: fixed;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.ambient--cyan {
    top: 8%;
    left: -18rem;
    background: rgba(18, 221, 234, 0.1);
}

.ambient--violet {
    top: 42%;
    right: -21rem;
    background: rgba(132, 115, 255, 0.1);
}

.section-shell,
.nav-shell {
    width: min(var(--max-width), calc(100% - 3rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid transparent;
    background: rgba(2, 5, 10, 0.72);
    backdrop-filter: blur(18px) saturate(130%);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(2, 5, 10, 0.94);
}

.nav-shell {
    display: flex;
    min-height: 5.3rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    width: 12rem;
    flex: 0 0 auto;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-navigation > a,
.language-switcher a {
    position: relative;
    color: var(--muted);
    font-family: var(--display);
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.site-navigation > a::after {
    position: absolute;
    right: 0;
    bottom: -0.55rem;
    left: 0;
    height: 1px;
    content: "";
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-navigation > a:hover,
.site-navigation > a:focus-visible,
.language-switcher a:hover,
.language-switcher .is-active {
    color: var(--text);
}

.site-navigation > a:hover::after,
.site-navigation > a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-left: 1.5rem;
    color: #40576c;
    border-left: 1px solid var(--line);
}

.nav-toggle {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0.31rem 0;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - 5.3rem);
    padding-block: clamp(5rem, 10vw, 9rem) 7rem;
    grid-template-columns: minmax(0, 1.12fr) minmax(22rem, 0.88fr);
    align-items: center;
    gap: 4rem;
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 8%;
    right: -10%;
    width: 55%;
    aspect-ratio: 1;
    content: "";
    border: 1px solid rgba(18, 221, 234, 0.07);
    border-radius: 50%;
    box-shadow: inset 0 0 120px rgba(18, 221, 234, 0.025);
}

.eyebrow {
    margin: 0 0 1.15rem;
    color: var(--cyan);
    font-family: var(--display);
    font-size: 0.7rem;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 2.3rem;
    height: 1px;
    margin-right: 0.8rem;
    content: "";
    vertical-align: middle;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(18, 221, 234, 0.65);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.16;
}

h1 {
    max-width: 12ch;
    margin-bottom: 1.7rem;
    font-size: clamp(2.85rem, 6vw, 5.8rem);
    letter-spacing: -0.055em;
}

h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(100deg, var(--cyan), #bcefff 46%, var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-intro {
    max-width: 43rem;
    margin-bottom: 2rem;
    color: #b8cada;
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    min-height: 3.2rem;
    padding: 0.75rem 1.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.28rem;
    font-family: var(--display);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #001116;
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 28px rgba(18, 221, 234, 0.17);
}

.button--primary:hover {
    color: #001116;
    background: #78f6ff;
    box-shadow: 0 0 35px rgba(18, 221, 234, 0.3);
}

.button--ghost {
    color: var(--text);
    background: rgba(9, 20, 35, 0.52);
}

.button--ghost:hover {
    border-color: var(--cyan);
    background: var(--cyan-soft);
}

.hero-orbit {
    position: relative;
    display: grid;
    width: min(100%, 30rem);
    aspect-ratio: 1;
    margin-inline: auto;
    place-items: center;
    color: var(--text);
    text-decoration: none;
}

.hero-orbit::before {
    position: absolute;
    z-index: -1;
    inset: 14%;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 221, 234, 0.18), rgba(33, 42, 77, 0.12) 45%, transparent 70%);
    filter: blur(14px);
}

.hero-orbit img {
    width: 67%;
    filter: drop-shadow(0 0 28px rgba(18, 221, 234, 0.18));
    transition: filter 250ms ease, transform 250ms ease;
}

.hero-orbit:hover img {
    filter: drop-shadow(0 0 42px rgba(18, 221, 234, 0.38));
    transform: scale(1.025);
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(92, 201, 229, 0.25);
    border-radius: 50%;
}

.orbit-ring::after {
    position: absolute;
    top: 50%;
    left: -0.23rem;
    width: 0.45rem;
    height: 0.45rem;
    content: "";
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.orbit-ring--outer {
    inset: 2%;
    border-style: dashed;
    animation: orbit 44s linear infinite;
}

.orbit-ring--inner {
    inset: 10%;
    animation: orbit-reverse 34s linear infinite;
}

.orbit-caption {
    position: absolute;
    right: 0;
    bottom: 12%;
    display: flex;
    padding: 0.8rem 1rem;
    flex-direction: column;
    border: 1px solid var(--line);
    background: rgba(2, 7, 13, 0.88);
    box-shadow: var(--shadow);
}

.orbit-caption small {
    color: var(--cyan);
    font-family: var(--display);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.orbit-caption strong {
    font-family: var(--display);
    font-size: 0.86rem;
}

.hero-signal {
    position: absolute;
    bottom: 2.4rem;
    left: 0;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 1rem;
    color: #587085;
    font-family: var(--display);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-signal i {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

@keyframes orbit {
    to { transform: rotate(360deg); }
}

@keyframes orbit-reverse {
    to { transform: rotate(-360deg); }
}

.games,
.commitments,
.contact {
    padding-block: clamp(5rem, 9vw, 8rem);
}

.section-heading {
    display: grid;
    margin-bottom: 3rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.55fr);
    align-items: end;
    gap: 3rem;
}

.section-heading h2,
.story-copy h2,
.contact-panel h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4.3vw, 4rem);
    letter-spacing: -0.045em;
}

.section-heading > p,
.story-text,
.contact-panel p {
    margin-bottom: 0;
    color: var(--muted);
}

.flagship {
    position: relative;
    display: grid;
    min-height: 36rem;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: linear-gradient(120deg, rgba(7, 20, 35, 0.97), rgba(9, 13, 27, 0.91));
    box-shadow: var(--shadow), 0 0 55px rgba(18, 221, 234, 0.06);
    grid-template-columns: minmax(19rem, 0.95fr) minmax(0, 1.1fr);
}

.flagship::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    content: "";
    border-top: 1px solid var(--cyan);
    border-right: 1px solid var(--cyan);
    clip-path: polygon(62% 0, 100% 0, 100% 38%);
}

.flagship-visual {
    position: relative;
    display: grid;
    min-height: 28rem;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(circle, rgba(18, 221, 234, 0.16), transparent 56%),
        linear-gradient(145deg, #071522, #02060c);
}

.flagship-grid {
    position: absolute;
    inset: -20%;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(77, 162, 192, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 162, 192, 0.24) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    transform: perspective(500px) rotateX(60deg) rotateZ(-18deg) scale(1.1);
}

.flagship-visual img {
    position: relative;
    z-index: 1;
    width: min(78%, 29rem);
    filter: drop-shadow(0 0 28px rgba(17, 208, 227, 0.22));
}

.project-number {
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: 1rem;
    color: rgba(207, 237, 247, 0.6);
    font-family: var(--display);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
}

.flagship-content {
    display: flex;
    padding: clamp(2rem, 5vw, 4.5rem);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.project-meta {
    display: flex;
    margin-bottom: 1.7rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    color: #71899d;
    font-family: var(--display);
    font-size: 0.56rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    padding: 0.38rem 0.58rem;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid var(--line);
    color: #a9c0d1;
    background: rgba(255, 255, 255, 0.025);
}

.status--active {
    color: var(--green);
    border-color: rgba(115, 237, 182, 0.3);
    background: rgba(115, 237, 182, 0.06);
}

.status--released {
    color: var(--green);
    border-color: rgba(115, 237, 182, 0.3);
    background: rgba(115, 237, 182, 0.06);
}

.status--active i {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

.flagship-content h3 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    letter-spacing: -0.045em;
}

.flagship-lead {
    margin-bottom: 1rem;
    color: #dcecf7;
    font-size: 1.25rem;
    line-height: 1.5;
}

.flagship-content > p:not(.eyebrow, .flagship-lead) {
    color: var(--muted);
}

.feature-list {
    display: flex;
    padding: 0;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
}

.feature-list li {
    padding: 0.45rem 0.7rem;
    color: #a9c2d4;
    border: 1px solid var(--line);
    font-size: 0.82rem;
}

.side-projects {
    display: grid;
    margin-top: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.game-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(8, 18, 31, 0.82);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.game-card-visual {
    position: relative;
    display: grid;
    aspect-ratio: 1.25 / 1;
    overflow: hidden;
    place-items: center;
    border-bottom: 1px solid var(--line);
}

.game-card-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 55%, rgba(3, 8, 15, 0.5));
    pointer-events: none;
}

.game-card-visual img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: transform 280ms ease;
}

.game-card:hover .game-card-visual img {
    transform: scale(1.035);
}

.game-card--humanity .game-card-visual {
    background: radial-gradient(circle, rgba(255, 35, 35, 0.12), transparent 60%), #050609;
}

.game-card--mars .game-card-visual {
    background: radial-gradient(circle, rgba(255, 168, 66, 0.18), transparent 63%), #111015;
}

.game-card--rift .game-card-visual {
    background: radial-gradient(circle, rgba(210, 225, 255, 0.1), transparent 60%), #060709;
}

.game-card-body {
    padding: 1.5rem;
}

.game-card-body .project-meta {
    margin-bottom: 0.95rem;
}

.game-card-body h3 {
    margin-bottom: 0.8rem;
    font-size: 1.28rem;
}

.game-card-body p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.game-card-cta {
    margin-top: 1.35rem;
}

.placeholder-note {
    max-width: 52rem;
    margin: 1.5rem auto 0;
    color: #677f92;
    font-size: 0.82rem;
    text-align: center;
}

.studio-story {
    position: relative;
    margin-block: clamp(3rem, 6vw, 6rem);
    padding-block: clamp(5rem, 10vw, 9rem);
    overflow: hidden;
    border-block: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(6, 19, 32, 0.97), rgba(8, 15, 29, 0.82)),
        radial-gradient(circle at 80% 50%, rgba(132, 115, 255, 0.17), transparent 30rem);
}

.studio-story::before {
    position: absolute;
    right: -8rem;
    bottom: -17rem;
    width: 40rem;
    height: 40rem;
    content: "";
    border: 1px solid rgba(132, 115, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(132, 115, 255, 0.015), 0 0 0 10rem rgba(132, 115, 255, 0.01);
}

.studio-story-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
    gap: clamp(3rem, 8vw, 8rem);
}

.story-text {
    font-size: 1.08rem;
}

.story-text p:first-child {
    color: #c9d9e5;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.commitment-card {
    position: relative;
    min-height: 23rem;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(11, 26, 43, 0.85), rgba(5, 12, 22, 0.9));
}

.commitment-card::after {
    position: absolute;
    right: -5rem;
    bottom: -6rem;
    width: 12rem;
    height: 12rem;
    content: "";
    border: 1px solid rgba(18, 221, 234, 0.08);
    border-radius: 50%;
}

.commitment-card--solar {
    background: linear-gradient(145deg, rgba(45, 29, 16, 0.7), rgba(10, 14, 22, 0.94));
}

.commitment-card--solar::after {
    border-color: rgba(255, 141, 82, 0.13);
}

.commitment-index {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: #536a7b;
    font-family: var(--display);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.commitment-icon {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 4rem;
    place-items: center;
    color: var(--cyan);
    border: 1px solid var(--line-strong);
    font-size: 1.35rem;
    box-shadow: inset 0 0 18px var(--cyan-soft);
}

.commitment-card--solar .commitment-icon {
    color: var(--orange);
    border-color: rgba(255, 141, 82, 0.35);
    box-shadow: inset 0 0 18px rgba(255, 141, 82, 0.08);
}

.commitment-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.commitment-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: var(--muted);
}

.solar-strip {
    display: grid;
    margin-top: 1.25rem;
    padding: 1.3rem 1.6rem;
    border: 1px solid rgba(255, 141, 82, 0.2);
    background: rgba(28, 19, 14, 0.4);
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.solar-stat {
    display: flex;
    flex-direction: column;
}

.solar-stat--right {
    text-align: right;
}

.solar-stat strong {
    color: #ffd0b5;
    font-family: var(--display);
    font-size: 0.83rem;
}

.solar-stat span {
    color: #987e70;
    font-size: 0.78rem;
}

.solar-line {
    height: 1px;
    overflow: hidden;
    background: rgba(255, 141, 82, 0.13);
}

.solar-line span {
    display: block;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    animation: solar-flow 4s linear infinite;
}

@keyframes solar-flow {
    from { transform: translateX(-100%); }
    to { transform: translateX(340%); }
}

.contact-panel {
    display: grid;
    padding: clamp(2rem, 6vw, 5rem);
    align-items: end;
    gap: 3rem;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(115deg, rgba(8, 27, 43, 0.96), rgba(11, 13, 29, 0.96)),
        var(--panel);
    box-shadow: var(--shadow), inset 0 0 80px rgba(18, 221, 234, 0.025);
    grid-template-columns: minmax(0, 1fr) auto;
}

.contact-panel h2 {
    max-width: 15ch;
    margin-bottom: 1.3rem;
}

.contact-panel p:not(.eyebrow) {
    max-width: 48rem;
}

.contact-actions {
    justify-content: flex-end;
}

.site-footer {
    padding-block: 2.2rem;
    border-top: 1px solid var(--line);
    background: rgba(2, 5, 10, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 10rem 1fr auto;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    opacity: 0.75;
}

.footer-grid p {
    margin: 0;
    color: #657c8f;
    font-size: 0.8rem;
}

.footer-link {
    padding: 0;
    color: #93aabc;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--text);
}

.legal-dialog {
    width: min(46rem, calc(100% - 2rem));
    max-height: min(48rem, calc(100vh - 2rem));
    padding: 0;
    color: var(--text);
    border: 1px solid var(--line-strong);
    background: #08131f;
    box-shadow: 0 40px 120px #000;
}

.legal-dialog::backdrop {
    background: rgba(0, 3, 8, 0.86);
    backdrop-filter: blur(8px);
}

.dialog-header {
    display: flex;
    padding: 1.6rem 1.8rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
}

.dialog-header .eyebrow {
    margin-bottom: 0.5rem;
}

.dialog-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.dialog-close {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--muted);
    border: 1px solid var(--line);
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.dialog-close:hover {
    color: var(--text);
    border-color: var(--cyan);
}

.dialog-content {
    padding: 1.8rem;
}

.dialog-content section + section {
    padding-top: 1.3rem;
    margin-top: 1.3rem;
    border-top: 1px solid var(--line);
}

.dialog-content h3 {
    margin-bottom: 0.45rem;
    color: var(--cyan);
    font-size: 0.92rem;
}

.dialog-content p {
    margin-bottom: 0;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-delay-short {
    transition-delay: 90ms;
}

.reveal-delay,
.reveal-delay-long {
    transition-delay: 170ms;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero {
        padding-top: 5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-copy {
        position: relative;
        z-index: 2;
    }

    .hero-orbit {
        width: min(100%, 26rem);
    }

    .flagship {
        grid-template-columns: 1fr;
    }

    .flagship-visual {
        min-height: 25rem;
    }

    .side-projects,
    .commitment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-card:last-child,
    .commitment-card:last-child {
        grid-column: 1 / -1;
    }

    .game-card:last-child {
        display: grid;
        grid-template-columns: minmax(15rem, 0.75fr) 1fr;
    }

    .game-card:last-child .game-card-visual {
        aspect-ratio: auto;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .studio-story-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 5.3rem;
    }

    .section-shell,
    .nav-shell {
        width: min(100% - 2rem, var(--max-width));
    }

    .brand {
        width: 9.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
        transform: translateY(0.36rem) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(4) {
        transform: translateY(-0.36rem) rotate(-45deg);
    }

    .site-navigation {
        position: fixed;
        top: 5.3rem;
        right: 0;
        left: 0;
        display: none;
        min-height: calc(100vh - 5.3rem);
        padding: 3rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
        border-top: 1px solid var(--line);
        background: rgba(2, 6, 11, 0.98);
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation > a {
        font-size: 1rem;
    }

    .language-switcher {
        padding-top: 1.5rem;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .hero {
        min-height: auto;
        padding-block: 4.5rem 7rem;
    }

    .hero::before {
        width: 100%;
        right: -30%;
    }

    .hero-signal {
        bottom: 2rem;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .side-projects,
    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .game-card:last-child,
    .commitment-card:last-child {
        grid-column: auto;
    }

    .game-card:last-child {
        display: block;
    }

    .game-card:last-child .game-card-visual {
        aspect-ratio: 1.25 / 1;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .commitment-card {
        min-height: 20rem;
    }

    .solar-strip {
        grid-template-columns: 1fr;
    }

    .solar-line {
        width: 100%;
    }

    .solar-stat--right {
        text-align: left;
    }

    .contact-panel {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        width: 10rem;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.55rem;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-orbit {
        width: 19rem;
        max-width: 100%;
    }

    .orbit-caption {
        right: 0.5rem;
        bottom: 7%;
    }

    .flagship-visual {
        min-height: 20rem;
    }

    .flagship-content {
        padding: 1.6rem;
    }

    .flagship-content h3 {
        font-size: 2rem;
    }

    .game-card-body,
    .commitment-card {
        padding: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
