.pill-button,
.mini-pill,
.tool-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-button);
    background: rgba(9, 9, 9, .32);
    color: var(--color-text);
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.pill-button {
    padding: 0 18px;
    font-size: 12px;
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
}

.project-button {
    height: 40px;
    gap: 5px;
    align-items: center;
    padding-inline: 40px;
    border-color: var(--color-accent);
    background: transparent;
    color: #fff;
    font-weight: var(--font-weight-heading);
    line-height: 1;
    text-decoration: none;
}

.project-button__label {
    display: inline-flex;
    height: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(244, 188, 195, .4);
}

.project-button::after {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    content: "";
    -webkit-mask: url("/assets/images/arrow-up-right.svg") center / contain no-repeat;
    mask: url("/assets/images/arrow-up-right.svg") center / contain no-repeat;
}

.project-button:hover {
    transform: scale(1.2);
}

.pill-button:hover,
.mini-pill:hover,
.tool-button:hover,
.tool-button.is-active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

.pill-button:active,
.tool-button:active {
    transform: scale(.98);
}

.locale-picker {
    --locale-control-size: var(--control-circle-size);
    position: relative;
    z-index: 34;
    width: var(--locale-control-size);
    height: var(--locale-control-size);
    flex: 0 0 var(--locale-control-size);
}

.mobile-menu-toggle,
.mobile-project-slot,
.mobile-game-cta-slot {
    display: none;
}

.locale-goo-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.locale-menu-surface {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--locale-control-size);
    height: calc(var(--locale-control-size) + var(--locale-control-size) + var(--locale-control-size) + var(--locale-control-size));
    filter: url("#localeShadowedGoo");
    pointer-events: none;
}

.locale-trigger,
.locale-option {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: var(--locale-control-size);
    height: var(--locale-control-size);
    place-items: center;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 11px;
    font-weight: var(--font-weight-regular);
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    transition: transform 200ms ease-out, background-color 180ms ease, color 180ms ease, opacity 120ms ease;
}

.locale-trigger {
    z-index: 3;
    pointer-events: auto;
    border: 1px solid var(--color-line);
    background: transparent;
    transform: translate3d(0, 0, 0);
    transition-duration: 400ms, 180ms, 180ms;
    transition-timing-function: cubic-bezier(.175, .885, .32, 1.275), ease, ease;
}

.locale-trigger:hover {
    transform: scale(1.1) translate3d(0, 0, 0);
}

.locale-menu {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.locale-option {
    --locale-y: 0;
    --locale-duration: 200ms;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition-duration: var(--locale-duration), 180ms, 180ms, 120ms;
}

.locale-option[hidden] {
    display: none;
}

.locale-option[data-locale-position="1"] {
    --locale-y: var(--locale-control-size);
    --locale-duration: 170ms;
}

.locale-option[data-locale-position="2"] {
    --locale-y: calc(var(--locale-control-size) + var(--locale-control-size));
    --locale-duration: 250ms;
}

.locale-option[data-locale-position="3"] {
    --locale-y: calc(var(--locale-control-size) + var(--locale-control-size) + var(--locale-control-size));
    --locale-duration: 330ms;
}

.locale-picker.is-open .locale-trigger {
    border-color: var(--color-accent);
    background: var(--color-accent);
    transform: scale(.82) translate3d(0, 0, 0);
    transition-duration: 200ms, 180ms, 180ms;
    transition-timing-function: linear, ease, ease;
}

.locale-picker.is-open .locale-trigger:hover {
    transform: scale(.9) translate3d(0, 0, 0);
}

.locale-picker.is-open .locale-option {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, var(--locale-y), 0);
    transition-timing-function: cubic-bezier(.165, .84, .44, 1), ease, ease;
}

.locale-picker.is-open .locale-option:hover,
.locale-picker.is-open .locale-option:focus-visible {
    background: var(--color-text);
    color: #000;
    transform: translate3d(0, var(--locale-y), 0) scale(1.08);
}

.locale-trigger:focus-visible,
.locale-option:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .locale-trigger,
    .locale-option {
        transition-duration: .01ms;
    }
}

.media-block {
    position: fixed;
    z-index: 31;
    top: calc(var(--shell-pad-y) + 54px);
    right: var(--shell-pad-x);
    width: clamp(180px, 16vw, 260px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-card);
    background: rgba(17, 17, 17, .58);
    backdrop-filter: blur(12px);
}

.client-slide,
.showreel-mini {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.client-slide {
    opacity: 0;
    background-color: var(--color-bg-secondary);
    background-image: var(--client-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity .5s ease;
}

.client-slide:first-child {
    background-color: #ffffff;
}

.client-slide:nth-child(2) {
    background-color: #f48120;
}

.client-slide:nth-child(5) {
    background-color: #f6e200;
}

.client-slide:nth-child(6),
.client-slide:nth-child(8) {
    background-color: #fff;
}

.client-slide:nth-child(9) {
    background-color: #ff0e19;
}

.client-slide:nth-child(11) {
    background-color: #2275b4;
}

.client-slide:nth-child(3) {
    background-color: #d1d3d4;
}

.client-slide:nth-child(7) {
    background-color: #171717;
}

.client-slide.is-active {
    opacity: 1;
}

.showreel-mini video,
.showreel-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showreel-mini::after {
    content: "PLAY";
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 10px;
    font-weight: var(--font-weight-regular);
}

.showreel-overlay {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    background: #000;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .34s ease, transform .34s ease, clip-path .34s ease;
    clip-path: inset(42% 42% round 12px);
}

.showreel-overlay.is-open {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 round 0);
}

.showreel-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 51;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(0, 0, 0, .38);
    color: white;
    font-size: 22px;
}

.toolbelt {
    width: 100%;
    overflow: hidden;
    scrollbar-width: none;
    touch-action: pan-y;
}

.toolbelt::-webkit-scrollbar {
    display: none;
}

@media (pointer: coarse) {
    .toolbelt {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }
}

.toolbelt__materials {
    display: flex;
    width: max-content;
    gap: 8px;
}

.toolbelt .tool-button {
    width: 92px;
    min-width: 92px;
    height: 34px;
    padding: 0 12px;
    border-color: var(--tool-color, var(--color-accent));
    cursor: pointer;
    font-size: 10px;
    font-weight: var(--font-weight-regular);
    white-space: nowrap;
}

.toolbelt .tool-button:hover,
.toolbelt .tool-button.is-active,
.toolbelt .tool-button:focus-visible {
    border-color: var(--tool-color, var(--color-accent));
    background: var(--tool-color, var(--color-accent));
    color: var(--tool-active-text, #fff);
}

.toolbelt .tool-button:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: -3px;
}

.mini-pill {
    min-height: 28px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: var(--font-weight-regular);
}

.mini-pill[aria-disabled="true"] {
    opacity: .5;
    pointer-events: none;
}

.cookie-bar {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px var(--shell-pad-x);
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(9, 9, 9, .28);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
    transform: translateY(110%);
    transition: transform .35s ease;
}

.cookie-bar.is-visible {
    transform: translateY(0);
}

.cookie-bar p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.cookie-bar a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}

.cookie-bar a:hover,
.cookie-bar a:focus-visible {
    color: var(--color-text);
}

.pdf-dialog {
    width: min(1120px, calc(100vw - 48px));
    height: min(900px, calc(100dvh - 48px));
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.pdf-dialog[open] {
    display: block;
}

.pdf-dialog::backdrop {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(8px);
}

.pdf-dialog__surface {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: 52px minmax(0, 1fr);
}

.pdf-dialog__header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 8px 0 18px;
    border-bottom: 1px solid var(--color-line);
}

.pdf-dialog__header h2 {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.pdf-dialog__close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: var(--color-text);
    font-size: 26px;
    line-height: 1;
}

.pdf-dialog__close:hover {
    color: var(--color-accent);
}

.pdf-dialog__frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #202020;
}

body.has-pdf-dialog {
    overflow: hidden;
}

body.has-custom-cursor.has-pdf-dialog {
    cursor: auto;
}

body.has-pdf-dialog .custom-cursor {
    display: none;
}
