:root {
    color-scheme: dark;
    --bg: #101112;
    --panel: #191b1d;
    --panel-hover: #222527;
    --text: #f4f3ee;
    --muted: #b1b3b5;
    --line: #343638;
    --accent: #c7f275;
    --width: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: 'Segoe UI', Arial, sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #52652f; color: white; }
.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 120; padding: 10px 16px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
h1 { font-size: clamp(44px, 6vw, 76px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 21px; }
.eyebrow { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 48px; padding: 12px 21px; background: #c7f275; border: 1px solid #c7f275; border-radius: 5px; color: #101112; font-weight: 650; font-size: 13px; transition: background 150ms ease, border-color 150ms ease; }
.button:hover { background: #daf8a6; border-color: #daf8a6; }
.text-link { display: inline-block; padding-block: 3px; color: #f4f3ee; border-bottom: 1px solid #5e6366; font-size: 13px; }
.text-link:hover { color: white; border-color: var(--accent); }
.development { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.development::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; background: #c7f275; border-radius: 50%; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 28px; position: sticky; top: 0; z-index: 20; min-height: 84px; padding: 14px max(32px, calc((100% - var(--width)) / 2)); border-bottom: 1px solid var(--line); background: #101112; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 38px; height: 32px; object-fit: contain; }
.brand > span { font-size: 20px; font-weight: 750; letter-spacing: -.05em; }
.brand-domain { color: var(--accent); }
.header nav { display: flex; align-items: center; gap: 30px; font-size: 12px; }
.header nav a { padding-block: 8px; color: var(--muted); border-bottom: 1px solid transparent; }
.header nav a:hover { color: var(--text); }
.header nav a:is([aria-current="page"], [aria-current="true"]) { color: var(--text); border-color: #c7f275; }
.menu-toggle { display: none; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 25px; border-top: 1px solid var(--line); color: #92979b; font-size: 11px; }
.footer a:hover { color: var(--text); }

/* The studio homepage. */
.home-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); align-items: center; gap: 48px; min-height: calc(100svh - 155px); padding-block: 48px; }
.home-story { position: relative; z-index: 1; }
.home-story .eyebrow { display: flex; align-items: center; gap: 10px; }
.studio-dot { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.home-story h1 { font-size: clamp(44px, 5.3vw, 76px); font-weight: 700; letter-spacing: -.065em; white-space: nowrap; }
.home-story h1 span { color: #c7f275; }
.home-focus { margin-top: 26px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.22; letter-spacing: -.03em; font-weight: 500; color: #f4f3ee; }
.home-description { max-width: 420px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.home-story .button { margin-top: 30px; }
.home-art { position: relative; min-width: 0; }
.home-art-image { position: relative; isolation: isolate; }
.home-art-image::before { content: ""; position: absolute; inset: 15% 7%; z-index: -1; background: rgb(40 110 220 / 24%); filter: blur(60px); border-radius: 50%; }
.home-art img { width: 100%; height: auto; border-radius: 8px; }
.home-art figcaption { margin-top: 12px; color: #92979b; font-size: 10px; }

.page-blog main {
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.page-blog main :is(h1, h2) {
    font-weight: 400;
    letter-spacing: -.025em;
}
.blog-feed {
    padding-bottom: clamp(32px, 6vw, 72px);
}
.blog-index > .wrap { max-width: 920px; }
.blog-masthead {
    padding-block: clamp(24px, 4vw, 44px) 16px;
    border-bottom: 1px solid var(--line);
}
.blog-masthead h1 {
    font-size: clamp(38px, 6vw, 68px);
}
.blog-masthead > p {
    margin-top: 8px;
    color: var(--muted);
}
.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(14px, 2vw, 24px);
    margin-top: 20px;
}
.blog-story:first-of-type {
    grid-column: span 2;
}
.blog-story > a {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.blog-story > a:hover h2 {
    text-decoration: underline;
    text-underline-offset: .1em;
}
.blog-story-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.blog-story-copy {
    padding: clamp(16px, 2.6vw, 30px);
}
.blog-story-copy h2 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
}
.blog-story:first-of-type h2 {
    font-size: clamp(32px, 5vw, 64px);
}
.blog-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 400;
}
.blog-story-meta time { color: var(--muted); }
.blog-story:only-of-type { grid-column: 1 / -1; }
.blog-story:only-of-type .blog-story-image { max-height: 380px; }
.blog-story:only-of-type h2 { font-size: clamp(30px, 5vw, 48px); }
.blog-story-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    font-size: 13px;
}
@media (max-width: 760px) {
    .blog-posts {
        grid-template-columns: minmax(0, 1fr);
    }
    .blog-story:first-of-type {
        grid-column: auto;
    }
}
.blog-feed > .breadcrumb,
.blog-article {
    max-width: 920px;
    margin-inline: auto;
}
.blog-article-intro,
.blog-post-body,
.blog-article-footer {
    max-width: 680px;
    margin-inline: auto;
}
.blog-article-intro h1 {
    font-size: clamp(34px, 6vw, 64px);
}
.blog-article-intro .blog-post-lead {
    font-size: clamp(17px, 2.4vw, 22px);
}
.blog-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block: 18px 20px;
}
.blog-byline img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    object-fit: cover;
}
.blog-author { font-size: 14px; }
.blog-author span { margin-inline-start: 5px; color: var(--muted); }
.blog-post-date {
    display: block;
    font-size: 12px;
    color: var(--muted);
}
.blog-post-lead {
    margin-top: 10px;
    color: var(--muted);
}
.blog-gallery { margin-block: clamp(24px, 4vw, 44px); }
.blog-gallery .carousel-slide img { aspect-ratio: 16 / 9; }
.blog-gallery .carousel-controls button { width: 44px; height: 44px; }
.blog-gallery .carousel-slide figcaption {
    font-size: 12px;
    margin-top: 8px;
}
.blog-post-body {
    display: grid;
    gap: 12px;
    font-size: 17px;
}
.blog-post-body h2 { font-size: clamp(25px, 3vw, 32px); }
.blog-post-body h2:not(:first-child) { margin-top: 22px; }
.blog-post-body ul { margin: 0; padding-inline-start: 1.35em; }
.blog-map-media { margin-block: 6px 2px; }
.blog-map-media img,
.blog-map-media video {
    display: block;
    width: 100%;
    border-radius: 6px;
}
.blog-map-media video {
    max-height: 480px;
    background: #0c0d0e;
}
.blog-map-media figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}
.blog-article-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* Page openings and project index. */
.page-intro { padding-block: 52px 38px; }
.page-intro .eyebrow { margin-bottom: 16px; }
.intro-copy { max-width: 580px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.portfolio-section { padding-bottom: clamp(32px, 5vw, 64px); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.portfolio-heading {
    padding-block: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 36px);
}
.portfolio-heading h1 { font-weight: 550; }
.portfolio-heading p {
    margin-top: 12px;
    color: var(--muted);
    font-size: clamp(15px, 2vw, 18px);
}
.portfolio-category {
    --category-accent: var(--accent);
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: clamp(280px, 35vw, 480px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #121619;
    transition: border-color 180ms ease;
}
.portfolio-category--games { --category-accent: #f1c082; }
.portfolio-category-image,
.portfolio-category::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.portfolio-category-image {
    z-index: -2;
    object-fit: cover;
    object-position: center 35%;
}
.portfolio-category::after {
    z-index: -1;
    background: linear-gradient(180deg, transparent 15%, rgb(10 14 17 / 24%) 38%, rgb(10 14 17 / 88%) 74%, #0a0e11 100%);
    content: "";
}
.portfolio-category-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 20px;
    padding: clamp(18px, 3vw, 36px);
}
.portfolio-category-copy h2 {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 550;
}
.portfolio-category-copy p { margin-top: 8px; color: #d8dadd; }
.portfolio-category-arrow {
    display: grid;
    place-items: center;
    width: clamp(38px, 5vw, 53px);
    aspect-ratio: 1;
    border: 1px solid var(--category-accent);
    border-radius: 50%;
    color: var(--category-accent);
    font-size: 20px;
    transition: background 180ms ease, color 180ms ease;
}
.portfolio-category:is(:hover, :focus-visible) { border-color: var(--category-accent); }
.portfolio-category:is(:hover, :focus-visible) .portfolio-category-arrow {
    background: var(--category-accent);
    color: #0a0e11;
}
.project-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color 180ms ease; }
a.project-card:hover { border-color: #839567; }
.project-media { position: relative; overflow: hidden; background: #151719; }
.project-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 400ms ease; }
a.project-card:hover .project-media img { transform: scale(1.02); }
.project-media-type { position: absolute; left: 18px; bottom: 16px; padding: 5px 9px; border-radius: 3px; background: rgb(16 17 18 / 86%); color: #f4f3ee; font-size: 10px; }
.godot-project-art {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: #edf3f6;
}
.godot-project-art > img {
    width: min(80%, 440px);
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.godot-project-art--hero { border: 1px solid var(--line); border-radius: 8px; }
.rmargin-project-art {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: radial-gradient(ellipse at center, #203d58, #101721 76%);
}
.rmargin-mark {
    padding: 0.45em 0.5em;
    border: 1px solid #6a9dcc;
    border-radius: 8px;
    color: #edf6ff;
    font-size: clamp(34px, 7vw, 92px);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: 1;
}
.ruletto-facts { margin-bottom: clamp(32px, 6vw, 64px); }
.project-body { display: flex; flex-direction: column; flex: 1; gap: 16px; padding: 24px; }
.project-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.project-title h2 { font-size: clamp(25px, 2.7vw, 34px); }
.project-title > span { color: var(--accent); font-size: 22px; }
.project-body > p { max-width: 450px; color: var(--muted); font-size: 14px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.project-meta strong { color: var(--text); font-weight: 600; }
.project-meta small { font-size: inherit; color: #92979b; }

/* Project details. */
.breadcrumb { padding-block: 24px 18px; font-size: 12px; color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.software-hero, .game-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 64px; padding-block: 24px 48px; }
.software-hero h1 { font-size: clamp(42px, 5.2vw, 72px); }
.feature-lead { margin-top: 24px; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.3; color: #e0e2dd; letter-spacing: -.025em; }
.body-copy { max-width: 490px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.software-art img { width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.software-art figcaption { color: #92979b; margin-top: 10px; font-size: 10px; }
.software-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 32px; border-block: 1px solid var(--line); }
.software-notes h2 { font-size: 20px; letter-spacing: -.025em; }
.software-notes p { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 500px; }
.game-hero h1 { font-size: clamp(48px, 6.2vw, 84px); }
.game-hero h1 span { color: #c7f275; }
.game-hero .button { margin-top: 26px; }
.game-player-count { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.game-player-count > strong { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.game-player-count > span { font-size: 12px; }
.game-player-count small { display: block; color: #92979b; font-size: 10px; margin-top: 2px; }
.game-gallery { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #191b1d; }
.carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.carousel-toolbar > p { font-size: 11px; color: var(--muted); }
.carousel-toolbar > p span { display: none; }
.carousel-controls { display: flex; gap: 7px; flex-shrink: 0; }
.carousel-controls button { width: 34px; height: 34px; border: 1px solid #43484c; border-radius: 4px; background: transparent; color: #f4f3ee; font-size: 18px; }
.carousel-controls button:disabled { opacity: .25; }
.carousel-controls button:enabled:hover { background: #2b3034; }
.carousel-track { display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #687070 #191b1d; padding-bottom: 12px; }
.carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel-slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #0c0d0e; border-radius: 4px; }
.carousel-slide figcaption { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; font-size: 10px; color: #92979b; }
.game-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-block: 0; padding-block: 24px; border-block: 1px solid var(--line); }
.game-facts > div { padding-left: 24px; border-left: 1px solid var(--line); }
.game-facts > div:first-child { padding-left: 0; border-left: 0; }
.game-facts dt { color: var(--muted); font-size: 10px; }
.game-facts dd { margin: 7px 0 0; font-size: 14px; }
.game-community { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding-block: 44px 56px; }
.game-community .eyebrow { margin-bottom: 12px; }
.game-community h2 { font-size: 28px; }
.game-community p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 13px; }
.community-links { display: flex; flex-wrap: wrap; gap: 24px; flex-shrink: 0; }

/* Marketplace logos, with the same seamless loop and manual pause. */
.marketplaces { padding-block: 32px 48px; }
.marketplaces-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 18px; }
.marketplaces-heading h2 { font-size: 24px; }
.marketplaces-heading p { color: var(--muted); font-size: 12px; }
.marketplace-window { overflow-x: auto; padding-block: 18px; }
.marketplace-track { display: flex; width: max-content; }
.marketplace-group { display: flex; align-items: center; flex-shrink: 0; gap: 48px; padding-right: 48px; }
.marketplace-image { display: block; flex: 0 0 180px; width: 180px; }
.marketplace-image img { display: block; width: 100%; height: 66px; object-fit: contain; }
.marketplace-copy { display: none; }
.marketplace-marquee[data-running="true"] .marketplace-window { overflow: hidden; }
.marketplace-marquee[data-running="true"] .marketplace-copy { display: flex; }
.marketplace-marquee[data-running="true"] .marketplace-track { animation: marketplace-slide 48s linear infinite; }
.marketplace-marquee[data-paused="true"] .marketplace-track, .marketplace-window:hover .marketplace-track { animation-play-state: paused; }
.marketplace-window:focus-within { overflow-x: auto !important; }
.marketplace-window:focus-within .marketplace-track { animation: none !important; transform: none; }
.marketplace-window:focus-within .marketplace-copy { display: none; }
.marketplace-toggle { margin-top: 12px; padding: 4px 0; color: var(--muted); background: none; border: 0; border-bottom: 1px solid #5e6366; font-size: 11px; }
@keyframes marketplace-slide { to { transform: translateX(-50%); } }

/* Studio and contact pages. */
.about-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; padding-block: 0 64px; align-items: start; }
.about-image img { width: 100%; border-radius: 8px; }
.about-image figcaption { margin-top: 10px; color: #92979b; font-size: 10px; }
.prose h2 { font-size: clamp(27px, 3vw, 38px); }
.prose h3 { margin-top: 30px; }
.prose p { margin-block: 20px; color: var(--muted); font-size: 15px; }
.careers-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(320px, 36vw, 480px);
    margin-block: clamp(18px, 3vw, 36px);
    border: 1px solid var(--line);
    background: var(--panel);
}
.careers-hero-copy {
    padding: clamp(24px, 5vw, 64px);
}
.careers-hero-copy h1 {
    font-size: clamp(44px, 7vw, 94px);
    font-weight: 500;
}
.careers-hero-copy > p:not(.careers-stat) {
    max-width: 30ch;
    margin-top: 16px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
}
.careers-hero-art {
    position: absolute;
    inset: 0 0 0 30%;
    z-index: -1;
}
.careers-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
}
.careers-hero-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--panel), rgb(25 27 29 / 70%) 20%, transparent 62%);
    content: "";
}
.careers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(16px, 3vw, 32px);
    padding-bottom: 64px;
}
.careers-team {
    --team-accent: var(--accent);
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--line);
    border-top: 2px solid var(--team-accent);
    background: var(--panel);
}
.careers-team--roblox { --team-accent: #92c5ff; }
.careers-team h2 {
    color: var(--team-accent);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
}
.careers-roles {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.careers-roles li {
    padding-block: 10px;
    border-top: 1px solid var(--line);
    font-size: clamp(15px, 1.6vw, 17px);
}
.careers-roles--named li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 16px;
}
.careers-role-person {
    color: var(--muted);
    font-size: 0.875em;
    overflow-wrap: anywhere;
}
.careers-contact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 20px;
    padding-block: 16px;
    border-block: 1px solid var(--line);
    color: var(--muted);
}
.careers-stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-top: 28px;
    color: var(--muted);
}
.careers-stat-number {
    min-width: 2ch;
    color: var(--accent);
    font-size: clamp(40px, 6vw, 64px);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
@media (max-width: 760px) {
    .careers-hero { min-height: 0; }
    .careers-hero-art {
        position: relative;
        inset: auto;
        z-index: auto;
        aspect-ratio: 16 / 8;
    }
    .careers-hero-art::after {
        background: linear-gradient(var(--panel), transparent 28%);
    }
}
.proposal-notes { border: 1px solid var(--line); padding: 28px; border-radius: 8px; background: var(--panel); }
.proposal-notes h2 { font-size: 22px; }
.proposal-notes dl { margin: 20px 0 0; }
.proposal-notes dl > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.proposal-notes dt { font-size: 13px; font-weight: 600; }
.proposal-notes dd { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.proposal-notes > p { margin-top: 20px; color: #92979b; font-size: 11px; }
.contact-list { padding-bottom: 24px; }
.contact-list > a { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.contact-list > a:last-child { border-bottom: 1px solid var(--line); }
.contact-number { color: #92979b; font-size: 12px; }
.contact-list h2 { font-size: clamp(27px, 3vw, 38px); }
.contact-list p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.contact-arrow { font-size: 30px; color: #b1b3b5; }
.contact-list > a:hover .contact-arrow, .contact-list > a:hover h2 { color: #c7f275; }
.contact-note { margin-block: 10px 56px; color: var(--muted); font-size: 13px; }
.contact-note .text-link { margin-left: 8px; }

/* Contractor directory — preserve local CRUD, keep the presentation simple. */
.directory { padding-block: 24px 48px; }
.preview-notice { font-size: 11px; color: #92979b; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.employees-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 32px; }
.employees-heading h1 { font-size: clamp(40px, 5vw, 64px); }
.employees-intro { margin-top: 14px; color: var(--muted); font-size: 14px; }
.team-filters { display: grid; grid-template-columns: minmax(200px, 400px) 220px; gap: 18px; }
label, legend { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; }
input:not([type="checkbox"]), select { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #43484c; border-radius: 4px; color: var(--text); background: #191b1d; }
input::placeholder { color: #92979b; }
input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; }
.results-count { margin-block: 24px 12px; color: #92979b; font-size: 12px; }
.directory-table-wrap { overflow-x: auto; }
.directory-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; font-size: 13px; }
.directory-table th, .directory-table td { padding: 18px 14px; border-bottom: 1px solid var(--line); }
.directory-table th:first-child { padding-left: 0; }
.directory-table thead th { color: #92979b; font-size: 11px; font-weight: 400; }
.directory-table tbody th { font-weight: 500; }
.directory-table td { color: var(--muted); }
.employee-actions { display: flex; justify-content: flex-end; gap: 18px; }
.employee-actions button { color: var(--muted); padding: 4px 0; border: 0; background: none; font-size: 11px; }
.employee-actions button:hover { color: white; }
.team-empty { padding: 28px 0; border-top: 1px solid var(--line); }
.team-empty h2 { font-size: 20px; }
.team-empty p { margin-top: 12px; color: var(--muted); font-size: 13px; }
.team-empty .button { display: none; }
.team-feedback { min-height: 24px; margin-top: 20px; color: #c7f275; font-size: 12px; }
dialog { width: min(510px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow-y: auto; border: 1px solid #43484c; border-radius: 8px; padding: 28px; color: var(--text); background: #191b1d; }
dialog::backdrop { background: rgb(0 0 0 / 75%); }
dialog h2 { font-size: 25px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.icon-button { border: 0; background: none; color: var(--muted); font-size: 26px; }
#person-form > input { margin-bottom: 20px; }
fieldset { padding: 16px; margin: 4px 0 0; border: 1px solid var(--line); border-radius: 4px; }
legend { padding-inline: 6px; }
.check-label { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.secondary-button, .danger-button { min-height: 44px; border: 1px solid #43484c; border-radius: 4px; padding: 10px 18px; color: var(--text); background: transparent; font-size: 13px; }
.danger-button { color: #ffb7b7; border-color: #764747; background: #3d2429; }
.form-error { margin-top: 12px; color: #ffb7b7; font-size: 12px; }
#delete-description { margin-top: 18px; color: var(--muted); overflow-wrap: anywhere; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Homepage-only introduction, never shown again within the same tab session. */
.site-loader { display: none; }
html[data-loading] .site-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 24px; background: var(--bg); opacity: 1; transition: opacity 220ms ease; animation: loader-safety-exit 0s 3s forwards; }
html[data-loading="leaving"] .site-loader { opacity: 0; pointer-events: none; }
.site-loader-logo { width: clamp(140px, 24vw, 210px); height: auto; animation: logo-breathe 1.4s ease-in-out infinite; }
.site-loader-line { position: relative; width: 100px; height: 2px; background: #343638; overflow: hidden; }
.site-loader-line::after { content: ""; position: absolute; inset-block: 0; left: 0; width: 40%; background: #c7f275; animation: loader-slide 1.1s ease-in-out infinite; }
@keyframes logo-breathe { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes loader-slide { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
@keyframes loader-safety-exit { to { visibility: hidden; pointer-events: none; } }

@media (max-width: 1000px) {
    .header nav { gap: 20px; font-size: 11px; }
    .home-hero { gap: 30px; }
    .software-hero, .game-hero, .about-layout { gap: 36px; }
    .game-community { align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 40px); }
    .header { min-height: 72px; padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
    .brand > span { font-size: 18px; }
    .brand img { width: 32px; height: 28px; }
    .header nav { width: 100%; gap: 8px 22px; flex-wrap: wrap; }
    .header nav a { font-size: 12px; }
    .header[data-enhanced="true"] .menu-toggle:not([hidden]) { display: flex; align-items: center; gap: 24px; margin-left: auto; padding: 8px 10px; border: 1px solid #43484c; border-radius: 4px; background: transparent; color: var(--text); font-size: 12px; }
    .header[data-enhanced="true"] nav { display: none; }
    .header[data-menu-open="true"] nav { display: flex; border-top: 1px solid var(--line); padding-top: 14px; }
    .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding-block: 28px 40px; }
    .home-story { display: contents; }
    .home-story .eyebrow { grid-row: 1; margin: 0; font-size: 10px; }
    .home-story h1 { grid-row: 2; font-size: clamp(40px, 10vw, 70px); margin-top: -14px; }
    .home-art { grid-row: 3; }
    .home-focus { grid-row: 4; margin: 0; font-size: clamp(25px, 6vw, 34px); }
    .home-description { margin: -8px 0 0; font-size: 14px; max-width: 520px; }
    .home-story .button { margin: -4px 0 0; justify-self: start; }
    .page-intro { padding-block: 32px 28px; }
    .intro-copy { margin-top: 18px; font-size: 14px; }
    .projects-grid { grid-template-columns: 1fr; gap: 24px; }
    .project-body { padding: 20px; }
    .project-title h2 { font-size: 28px; }
    .software-hero, .game-hero, .about-layout, .careers-layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
    .software-hero { padding-top: 10px; }
    .game-hero { padding-top: 10px; }
    .game-hero h1 { font-size: clamp(48px, 12vw, 76px); }
    .game-gallery { padding: 12px; }
    .game-player-count { margin-top: 24px; }
    .software-notes { grid-template-columns: 1fr; gap: 28px; padding-block: 24px; }
    .game-facts { grid-template-columns: 1fr; gap: 14px; }
    .game-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border: 0; padding: 0; }
    .game-facts dd { margin: 0; font-size: 13px; }
    .game-community { padding-block: 32px 40px; }
    .game-community h2 { font-size: 26px; }
    .marketplaces-heading { align-items: flex-start; flex-direction: column; }
    .marketplace-image { flex-basis: 150px; width: 150px; }
    .marketplace-group { gap: 30px; padding-right: 30px; }
    .proposal-notes { padding: 22px; }
    .contact-list > a { grid-template-columns: 26px 1fr auto; gap: 14px; padding-block: 24px; }
    .contact-list h2 { font-size: 28px; }
    .contact-list p { font-size: 12px; }
    .contact-arrow { font-size: 24px; }
    .contact-note { margin-bottom: 40px; }
    .contact-note .text-link { margin-left: 0; margin-top: 8px; }
    .employees-heading { align-items: flex-start; flex-direction: column; }
    .employees-heading h1 { font-size: 44px; }
    .team-filters { grid-template-columns: 1fr; gap: 16px; }
    .footer { flex-wrap: wrap; gap: 12px 20px; font-size: 10px; }
    .footer a { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    a.project-card:hover .project-media img { transform: none; }
    .marketplace-marquee .marketplace-track { animation: none !important; }
    .marketplace-marquee .marketplace-copy { display: none !important; }
    .marketplace-marquee .marketplace-window { overflow-x: auto !important; }
    .marketplace-toggle { display: none; }
    .site-loader-logo, .site-loader-line::after { animation: none; }
}
