/* Cozy game portfolio system
   Content panels: 28px radius. Controls: pill. Media: 24px radius. */
:root {
    color-scheme: light;
    --bg: #fff7ea;
    --paper: #fffdf8;
    --surface: #ffe9d6;
    --surface-strong: #ffd5bd;
    --ink: #46372f;
    --muted: #74635a;
    --line: #d9bdab;
    --primary: #e95f4b;
    --primary-hover: #d94e3b;
    --mint: #b9dfca;
    --mint-deep: #4f846a;
    --sun: #f3c761;
    --sky: #b9dceb;
    --lilac: #d8cce8;
    --white: #fffdf8;
    --shadow: #dfc6b2;
    --header: rgb(255 247 234 / 92%);
    --radius-panel: 28px;
    --radius-media: 24px;
    --radius-small: 16px;
    --shell: 1240px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #292321;
    --paper: #342d29;
    --surface: #40342e;
    --surface-strong: #513c32;
    --ink: #fff4e8;
    --muted: #d3bfb1;
    --line: #6f594e;
    --primary: #ff8169;
    --primary-hover: #ff947e;
    --mint: #355d4c;
    --mint-deep: #9fd2b9;
    --sun: #876d35;
    --sky: #365a68;
    --lilac: #51455f;
    --white: #fff4e8;
    --shadow: #171311;
    --header: rgb(41 35 33 / 92%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 94px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
    overflow: hidden;
}

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

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

button {
    font: inherit;
}

a {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: .22em;
}

a:focus-visible,
button:focus-visible {
    outline: 4px solid var(--sun);
    outline-offset: 4px;
}

::selection {
    background: var(--sun);
    color: #46372f;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 11px 17px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--sun);
    color: #46372f;
    font-weight: 800;
    transform: translateY(-180%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 2px solid var(--line);
    background: var(--header);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.wordmark {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--primary);
    color: #fffdf8;
    box-shadow: 0 4px 0 var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transform: rotate(-2deg);
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.wordmark:hover {
    box-shadow: 0 2px 0 var(--ink);
    transform: translateY(2px) rotate(2deg);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.desktop-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
    background: var(--surface);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.text-control,
.menu-toggle {
    min-width: 48px;
    min-height: 44px;
    padding: 0 14px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.text-control:hover,
.menu-toggle:hover {
    border-color: var(--ink);
}

.nav-contact {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--primary);
    color: #fffdf8;
    box-shadow: 0 4px 0 var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms ease;
}

.nav-contact:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 0 var(--ink);
    transform: translateY(2px);
}

.menu-toggle {
    display: none;
}

.mobile-nav {
    width: 100%;
    height: calc(100dvh - 80px);
    padding: 28px 24px;
    background: var(--bg);
}

.mobile-nav a {
    display: block;
    margin-bottom: 10px;
    padding: 13px 18px;
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(27px, 9vw, 44px);
    font-weight: 600;
    letter-spacing: -.035em;
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: min(760px, calc(100dvh - 80px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    align-items: center;
    gap: clamp(52px, 7vw, 96px);
    padding-block: clamp(44px, 6vh, 68px);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 170px;
    height: 170px;
    top: 10%;
    left: -110px;
    background: var(--sky);
    opacity: .65;
}

.hero::after {
    width: 110px;
    height: 110px;
    right: 0;
    bottom: 9%;
    background: var(--sun);
    opacity: .72;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.role-line {
    margin: 0 0 24px;
    padding: 9px 15px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--mint);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    transform: rotate(-1deg);
}

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

h1,
h2,
h3 {
    font-family: "Fredoka", sans-serif;
    text-wrap: balance;
}

h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(54px, 5.8vw, 82px);
    font-weight: 650;
    line-height: .96;
    letter-spacing: -.05em;
}

.hero-lede {
    max-width: 570px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms ease;
}

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

.button:active {
    transform: translateY(3px);
}

.button-primary {
    background: var(--primary);
    color: #fffdf8;
    box-shadow: 0 5px 0 var(--ink);
}

.button-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 7px 0 var(--ink);
}

.button-primary:active {
    box-shadow: 0 2px 0 var(--ink);
}

.button-quiet {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 5px 0 var(--shadow);
}

.button-quiet:hover {
    background: var(--sun);
    box-shadow: 0 7px 0 var(--shadow);
}

.hero-portrait {
    position: relative;
    min-width: 0;
    margin: 0;
}

.hero-portrait::before,
.hero-portrait::after {
    content: "";
    position: absolute;
    z-index: 2;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.hero-portrait::before {
    width: 34px;
    height: 34px;
    top: 9%;
    left: -16px;
    background: var(--sun);
}

.hero-portrait::after {
    width: 22px;
    height: 22px;
    right: -8px;
    bottom: 19%;
    background: var(--mint);
}

.portrait-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
    border: 2px solid var(--ink);
    border-radius: 46% 46% 30px 30px;
    background: var(--surface-strong);
    box-shadow: 9px 10px 0 var(--ink);
    transform: rotate(1.5deg);
}

.portrait-frame::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    top: 12%;
    right: -40px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--sun);
}

.portrait-frame::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    left: -24px;
    bottom: 18%;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--mint);
}

.portrait-frame img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.hero-portrait figcaption {
    margin: 15px 5px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.proof-strip {
    padding-block: 22px;
    border-block: 2px solid var(--line);
    background: var(--paper);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.proof-grid > div {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 19px 22px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-small);
    box-shadow: 0 5px 0 var(--shadow);
    transition: transform 180ms var(--ease);
}

.proof-grid > div:hover {
    transform: translateY(-4px) rotate(-1deg);
}

.proof-grid > div:nth-child(1) { background: var(--sun); }
.proof-grid > div:nth-child(2) { background: var(--mint); }
.proof-grid > div:nth-child(3) { background: var(--surface-strong); }
.proof-grid > div:nth-child(4) { background: var(--sky); }

.proof-grid strong {
    font-family: "Fredoka", sans-serif;
    font-size: clamp(31px, 3vw, 47px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.04em;
}

.proof-grid span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.section {
    padding-block: clamp(88px, 10vw, 145px);
}

.section-heading {
    max-width: 680px;
    margin-bottom: clamp(46px, 6vw, 72px);
}

.section-heading h2,
.about-copy h2,
.site-footer h2 {
    margin-bottom: 16px;
    font-size: clamp(45px, 6vw, 78px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.05em;
}

.section-heading h2 {
    display: inline-block;
    position: relative;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -5px;
    right: -10px;
    bottom: 3px;
    height: 18px;
    border-radius: 999px;
    background: var(--sun);
    transform: rotate(-1deg);
}

.section-heading p {
    max-width: 530px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 21px);
}

.case-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
}

.case {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 2px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--paper);
    box-shadow: 0 8px 0 var(--shadow);
}

.case-lead,
.case-wide {
    display: flex;
}

.case-wide {
    background: var(--lilac);
}

.case-pair {
    display: contents;
}

.case-compact {
    background: var(--mint);
}

.case-compact:nth-child(2) {
    margin-top: 0;
    background: var(--surface);
}

.case .case-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.case .case-media {
    aspect-ratio: 16 / 10;
}

.case .text-link {
    margin-top: auto;
}

.case-media {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    border-radius: var(--radius-media);
    background: var(--surface);
    box-shadow: 0 7px 0 var(--ink);
}

.case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms var(--ease), filter 250ms ease;
}

.case-media:hover img,
.case-media:focus-visible img {
    transform: scale(1.035);
}

.case-media-static img {
    object-fit: cover;
    padding: 0;
}

.case-copy {
    padding: 25px 8px 4px;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.case-meta span {
    padding: 6px 10px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.case h3 {
    margin-bottom: 16px;
    font-size: clamp(37px, 4.8vw, 62px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.045em;
}

.case-compact h3 {
    font-size: clamp(34px, 3.7vw, 47px);
}

.case-summary {
    max-width: 620px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 17px;
}

.case-role {
    margin: 0 0 22px;
}

.case-role div {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 12px;
}

.case-role dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.case-role dd {
    margin: 0;
    font-weight: 800;
}

.impact-list {
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.impact-list li {
    position: relative;
    padding: 8px 0 8px 22px;
    color: var(--muted);
}

.impact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--sun);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-hover);
    font-weight: 900;
}

.text-link:hover span {
    transform: translate(2px, -2px);
}

.text-link-muted {
    color: var(--muted);
    text-decoration: none;
}

.experience-section {
    position: relative;
    overflow: hidden;
    border-block: 2px solid var(--line);
    background: var(--mint);
}

.experience-section::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -75px;
    top: 70px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--sun);
    opacity: .75;
}

.experience-section .section-heading h2::after {
    background: var(--surface-strong);
}

.experience-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 13px;
    padding: clamp(23px, 3vw, 34px);
    border: 2px solid var(--ink);
    border-radius: var(--radius-panel);
    background: var(--paper);
    box-shadow: 0 7px 0 var(--ink);
}

.experience-item:nth-child(2) { background: var(--surface); }
.experience-item:nth-child(3) { background: var(--sky); }
.experience-item:nth-child(4) { background: var(--lilac); }

.experience-date {
    width: max-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 12px;
    font-weight: 800;
}

.experience-title h3 {
    margin-bottom: 3px;
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.experience-title p {
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 800;
}

.experience-item ul {
    margin: 5px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.experience-item li + li {
    margin-top: 7px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.filter-bar button {
    min-height: 46px;
    padding: 0 17px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms var(--ease), border-color 160ms ease, background 160ms ease;
}

.filter-bar button:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.filter-bar button[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--sun);
    box-shadow: 0 4px 0 var(--ink);
}

.game-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.game-pagination > button,
.page-numbers button {
    min-width: 46px;
    min-height: 46px;
    padding: 0 14px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--shadow);
    transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms ease, background-color 160ms ease;
}

.game-pagination > button:hover:not(:disabled),
.page-numbers button:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.game-pagination > button:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers button[aria-current="page"] {
    border-color: var(--ink);
    background: var(--sun);
    box-shadow: 0 5px 0 var(--ink);
}

.filter-status {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(16px, 2.2vw, 28px);
}

.game-card {
    min-width: 0;
    display: block;
    padding: 10px;
    border: 2px solid var(--line);
    border-radius: var(--radius-media);
    background: var(--paper);
    color: inherit;
    box-shadow: 0 6px 0 var(--shadow);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 190ms var(--ease), box-shadow 190ms var(--ease), border-color 190ms ease;
}

.game-card[hidden] {
    display: none;
}

.game-card:hover,
.game-card:focus-visible {
    border-color: var(--ink);
    box-shadow: 0 9px 0 var(--shadow);
    transform: translateY(-5px) rotate(-.5deg);
}

.game-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 2px solid var(--ink);
    border-radius: calc(var(--radius-media) - 9px);
    background: var(--surface);
}

.game-info {
    padding: 14px 5px 7px;
}

.game-info h3 {
    margin-bottom: 3px;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.game-info p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.about-section {
    position: relative;
    border-top: 2px solid var(--line);
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(54px, 9vw, 125px);
}

.about-copy h2::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-left: 12px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--primary);
    transform: rotate(12deg);
}

.about-copy p {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(17px, 1.55vw, 21px);
}

.about-copy blockquote {
    max-width: 680px;
    margin: 38px 0;
    padding: 25px 28px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-panel);
    background: var(--sun);
    box-shadow: 6px 7px 0 var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(23px, 2.7vw, 36px);
    font-weight: 550;
    line-height: 1.18;
    letter-spacing: -.025em;
    transform: rotate(-.7deg);
}

.capabilities {
    display: grid;
    gap: 22px;
    align-content: start;
}

.capabilities > div {
    padding: 25px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-panel);
    background: var(--paper);
    box-shadow: 0 6px 0 var(--shadow);
}

.capabilities > div:nth-child(2) {
    background: var(--sky);
}

.capabilities h3,
.tools h3 {
    margin-bottom: 17px;
    font-size: 19px;
    font-weight: 650;
}

.capabilities ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.capabilities li {
    padding: 7px 11px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-size: 14px;
    font-weight: 700;
}

.tools {
    margin-top: clamp(68px, 9vw, 115px);
}

.tools h3 {
    margin-bottom: 18px;
}

.tools ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tools li {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    font-weight: 800;
}

.tools li:nth-child(2) { background: var(--mint); }
.tools li:nth-child(3) { background: var(--sun); }
.tools li:nth-child(4) { background: var(--sky); }
.tools li:nth-child(5) { background: var(--lilac); }

[data-theme="dark"] .tools img {
    filter: invert(1);
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(80px, 10vw, 130px);
    border-top: 2px solid #46372f;
    background: #f08267;
    color: #3f3029;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    border: 2px solid #46372f;
    border-radius: 50%;
}

.site-footer::before {
    width: 150px;
    height: 150px;
    top: 45px;
    right: 8%;
    background: #f3c761;
}

.site-footer::after {
    width: 90px;
    height: 90px;
    bottom: 95px;
    left: 5%;
    background: #b9dfca;
}

.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr .55fr;
    gap: 60px;
    align-items: end;
    padding-bottom: clamp(70px, 9vw, 115px);
}

.footer-label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 900;
}

.site-footer h2 {
    max-width: 760px;
    margin-bottom: 0;
    color: #3f3029;
    font-size: clamp(66px, 9vw, 120px);
}

.footer-links {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.footer-links .button-primary {
    background: #fff7ea;
    color: #3f3029;
}

.footer-links > a:not(.button) {
    font-weight: 900;
}

.footer-bottom {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 2px solid rgb(63 48 41 / 35%);
    font-size: 13px;
    font-weight: 700;
}

.game-dialog {
    width: min(930px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-panel);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 10px 0 var(--ink);
    overflow: auto;
}

.game-dialog::backdrop {
    background: rgb(70 55 47 / 72%);
    backdrop-filter: blur(6px);
}

.game-dialog[open] {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
}

.game-dialog > img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    border: 2px solid var(--ink);
    border-radius: calc(var(--radius-panel) - 10px);
    background: var(--surface);
}

.dialog-copy {
    align-self: end;
    padding: clamp(26px, 4vw, 50px);
}

.dialog-copy > p:first-child {
    width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.dialog-copy h2 {
    margin-bottom: 17px;
    font-size: clamp(37px, 4.7vw, 58px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.04em;
}

.dialog-copy p {
    color: var(--muted);
}

.dialog-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    min-height: 44px;
    padding: 0 15px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 4px 0 var(--ink);
    font-weight: 900;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(22px) scale(.99);
    transition: opacity 580ms var(--ease), transform 580ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1050px) {
    .desktop-nav { display: none; }
    .nav-wrap { grid-template-columns: 1fr auto; }
    .nav-contact { display: none; }
    .menu-toggle { display: inline-block; }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        gap: 40px;
    }

    h1 { font-size: clamp(48px, 6.8vw, 66px); }

    .case-lead,
    .case-wide { gap: 0; }

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

@media (max-width: 767px) {
    .shell { width: min(calc(100% - 30px), var(--shell)); }

    .site-header { position: relative; }
    .nav-wrap { min-height: 68px; }
    .wordmark { height: 42px; padding: 0 14px; font-size: 14px; }
    .text-control { display: none; }
    .mobile-nav { height: calc(100dvh - 70px); }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding-block: 44px 35px;
    }

    .hero-copy {
        min-height: 0;
        justify-content: flex-start;
    }

    .role-line {
        margin-bottom: 21px;
        font-size: 12px;
    }

    h1 {
        max-width: 600px;
        margin-bottom: 21px;
        font-size: clamp(44px, 12.5vw, 62px);
        line-height: .98;
    }

    .hero-lede { font-size: 17px; }

    .hero-actions {
        width: 100%;
        display: flex;
    }

    .hero-portrait {
        width: min(78vw, 280px);
        margin-inline: auto;
    }

    .portrait-frame {
        min-height: 0;
        aspect-ratio: 4 / 5;
        border-radius: 44% 44% 25px 25px;
        box-shadow: 7px 8px 0 var(--ink);
    }

    .proof-grid { grid-template-columns: 1fr 1fr; }
    .proof-grid > div { min-height: 105px; padding: 15px; }
    .proof-grid span { font-size: 12px; }

    .section { padding-block: 84px; }
    .section-heading { margin-bottom: 42px; }

    .section-heading h2,
    .about-copy h2 { font-size: clamp(43px, 13vw, 65px); }

    .case-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-lead,
    .case-wide,
    .case-pair {
        gap: 0;
    }

    .case-wide {
        padding: 18px;
    }

    .case-compact:nth-child(2) { margin-top: 0; }

    .case .case-media { aspect-ratio: 16 / 10; }
    .case h3,
    .case-compact h3 { font-size: clamp(35px, 11vw, 49px); }

    .experience-list { grid-template-columns: 1fr; }

    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 3px 0 8px;
        scrollbar-width: thin;
    }

    .filter-bar button { flex: 0 0 auto; }

    .game-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .tools ul { grid-template-columns: 1fr 1fr; }
    .tools li:last-child { grid-column: 1 / -1; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .site-footer h2 { font-size: clamp(58px, 17vw, 90px); }

    .game-dialog[open] { display: block; }
    .game-dialog > img { min-height: 0; aspect-ratio: 16 / 11; }
    .dialog-copy { padding: 27px 17px 28px; }
    .dialog-close { top: 20px; right: 20px; }
}

@media (max-width: 420px) {
    .proof-grid { gap: 8px; }
    .proof-grid strong { font-size: 29px; }
    .case-role div { grid-template-columns: 1fr; gap: 3px; }
    .tools li { min-height: 85px; padding: 12px; }
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header {
        backdrop-filter: none;
        background: var(--bg);
    }
}
