:root {
    --bg: #0d0d0e;
    --surface: #151516;
    --surface-hover: #19191b;
    --text: #f2f2f3;
    --muted: #909096;
    --quiet: #5f5f64;
    --line: #29292c;
    --line-soft: #202022;
    --shell: min(1184px, calc(100vw - 64px));
    --reading: 720px;
    --radius: 9px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
.home-page { min-height: 100svh; display: flex; flex-direction: column; }
.home-page main { flex: 1; }
.home-page .hero { min-height: calc(100svh - 64px); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { max-width: 940px; }
.shell-reading { max-width: var(--reading); }

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 1000;
    padding: 9px 12px;
    background: var(--text);
    color: var(--bg);
    transform: translateY(-160%);
    text-decoration: none;
    border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 14, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    letter-spacing: -.025em;
}
.brand strong { font-size: 16px; font-weight: 650; }

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}
.primary-navigation a,
.footer-links a,
.category-navigation a,
.tool-filters button {
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.primary-navigation a { padding: 9px 11px; }
.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.menu-button {
    display: none;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    cursor: pointer;
    font-size: 13px;
}
.menu-button i { display: none; }

.hero {
    position: relative;
    min-height: calc(100svh - 64px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}
.letter-glitch {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #050606;
}
.letter-glitch canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: .84;
}
.letter-glitch-center-vignette,
.letter-glitch-outer-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.letter-glitch-center-vignette {
    background: radial-gradient(circle at center, rgba(3, 5, 5, .9) 0%, rgba(4, 7, 6, .72) 30%, rgba(4, 7, 6, .18) 66%, transparent 78%);
}
.letter-glitch-outer-vignette {
    background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, .38) 72%, rgba(0, 0, 0, .92) 100%);
}
.hero-content {
    position: relative;
    min-height: calc(100svh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(92px, 13vh, 150px);
}
.hero-copy {
    max-width: 1040px;
    text-align: center;
}
.hero-kicker,
.section-kicker,
.footer-label {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 1040px;
    margin: 0;
    font-size: clamp(3.6rem, 7.2vw, 7rem);
    font-weight: 520;
    letter-spacing: -.062em;
    line-height: .94;
    text-wrap: balance;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .45);
}
.hero-intro {
    max-width: 650px;
    margin: 38px auto 0;
    color: #b8c0bc;
    font-size: clamp(1.05rem, 1.65vw, 1.3rem);
    line-height: 1.55;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.hero-game-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding: 11px 14px;
    background: rgba(13, 20, 17, .62);
    border: 1px solid rgba(143, 209, 140, .22);
    border-radius: 7px;
    color: #c6d0cb;
    font-size: 12px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.hero-game-link:hover {
    background: rgba(31, 108, 73, .28);
    border-color: rgba(143, 209, 140, .48);
    color: var(--text);
}
.hero-status {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #aab2ae;
    font-size: 12px;
    white-space: nowrap;
}
.hero-status span {
    width: 7px;
    height: 7px;
    background: #8fd18c;
    border-radius: 50%;
}

.game-section {
    position: relative;
    padding-block: clamp(96px, 12vw, 144px);
    background: linear-gradient(180deg, #0d0d0e 0%, #101311 52%, #0d0d0e 100%);
    border-bottom: 1px solid var(--line);
}
.game-shell { max-width: 980px; }
.game-heading {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}
.game-heading .section-kicker { margin-bottom: 18px; }
.game-heading h2 {
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 520;
    letter-spacing: -.055em;
    line-height: 1;
}
.game-heading > p:last-child {
    max-width: 520px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 15px;
}
.game-stats {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 32px;
    padding: 11px 18px;
    background: rgba(21, 21, 22, .78);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}
.game-stats p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--quiet);
    font-size: 12px;
}
.game-stats strong { color: var(--text); font-weight: 620; }
.game-stats i { width: 1px; height: 18px; background: var(--line); }
.game-stats button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8fd18c;
    cursor: pointer;
    font-size: 12px;
}
.game-stats button:hover { color: #bcf0b9; }

.memory-grid {
    max-width: 780px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-inline: auto;
}
.memory-card {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    cursor: pointer;
    perspective: 900px;
}
.memory-card-inner {
    position: absolute;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
    transition: transform .42s cubic-bezier(.2, .72, .2, 1), scale .2s ease;
}
.memory-card:hover:not(:disabled) .memory-card-inner { scale: 1.025; }
.memory-card.is-flipped .memory-card-inner,
.memory-card.is-matched .memory-card-inner { transform: rotateY(180deg); }
.memory-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    backface-visibility: hidden;
    overflow: hidden;
}
.memory-card-back {
    background: linear-gradient(145deg, #171719, #101011);
}
.memory-card-back > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #303034;
    border-radius: 50%;
    color: #5d5d63;
    font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.memory-card:hover:not(:disabled) .memory-card-back { border-color: #414146; }
.memory-card-front {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #162019, #111513);
    border-color: #2b4539;
}
.memory-card-emoji { font-size: clamp(1.45rem, 2.7vw, 2rem); line-height: 1; }
.memory-card-name {
    color: #aab7b0;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .055em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}
.memory-card.is-matched .memory-card-front {
    background: linear-gradient(145deg, #1b2b22, #121914);
    border-color: #4b755f;
    box-shadow: inset 0 0 0 1px rgba(143, 209, 140, .08), 0 0 28px rgba(31, 108, 73, .12);
}
.memory-card:disabled { cursor: default; }
.game-noscript { margin-top: 24px; color: var(--muted); text-align: center; }

.game-dialog {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(12px);
}
.game-dialog-card {
    position: relative;
    width: min(100%, 460px);
    padding: 42px;
    background: #141615;
    border: 1px solid #303632;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
    text-align: center;
}
.game-dialog-card .section-kicker { margin-bottom: 14px; }
.game-dialog-card h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 540;
    letter-spacing: -.04em;
    line-height: 1.1;
}
.game-dialog-card > p:not(.section-kicker) { margin: 18px 0 0; color: var(--muted); }
.game-dialog-card strong { color: var(--text); }
.game-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
}
.game-dialog-close:hover { color: var(--text); }
.game-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.game-dialog-actions button,
.game-dialog-actions a {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}
.game-dialog-actions button {
    background: #dce5e0;
    border-color: #dce5e0;
    color: #111513;
}
.game-dialog-actions button:hover { background: white; }
.game-dialog-actions a:hover { border-color: var(--quiet); }

.page-intro {
    max-width: 940px;
    padding-block: clamp(92px, 14vw, 160px) clamp(70px, 9vw, 110px);
}
.page-intro .section-kicker { margin-bottom: 22px; }
.page-intro h1,
.not-found h1,
.article-header h1,
.case-header h1 {
    margin: 0;
    font-size: clamp(2.9rem, 6vw, 5.8rem);
    font-weight: 520;
    letter-spacing: -.058em;
    line-height: 1;
}
.page-intro > p:last-child,
.not-found > p,
.article-deck {
    max-width: 620px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.archive-section,
.tools-section { padding-bottom: 120px; }

.category-navigation,
.tool-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.category-navigation a,
.tool-filters button {
    padding: 10px 13px;
    background: var(--surface);
    border-color: var(--line);
}
.category-navigation a:hover,
.category-navigation a[aria-current="page"],
.tool-filters button:hover,
.tool-filters button.is-active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}
.category-navigation span,
.tool-filters span { color: inherit; opacity: .6; }
.tool-filters button { cursor: pointer; }

.archive-list,
.tools-list {
    border-top: 1px solid var(--line);
}
.archive-item,
.tool-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 24px;
    align-items: start;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}
.archive-index {
    padding-top: 4px;
    color: var(--quiet);
    font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.blog-archive-item {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) 38px;
    align-items: center;
    min-width: 0;
}
.blog-archive-item.has-no-cover {
    grid-template-columns: minmax(0, 1fr) 38px;
}
.note-cover {
    display: block;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    max-width: 240px;
    aspect-ratio: 16 / 10;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
}
.note-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: scale .28s ease, opacity .2s ease;
}
.note-cover:hover img {
    scale: 1.025;
    opacity: .9;
}
.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.archive-content { min-width: 0; }
.archive-content h2,
.tool-row h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.3vw, 1.85rem);
    font-weight: 520;
    letter-spacing: -.035em;
    line-height: 1.2;
}
.archive-content h2 a { text-decoration: none; }
.archive-content h2 a:hover { color: #c9c9cc; }
.archive-content p,
.tool-row-copy > p {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--muted);
}
.archive-arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.archive-arrow:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}
.archive-empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.article-header,
.case-header { padding-block: 88px 64px; }
.back-link {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 70px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}
.back-link:hover { color: var(--text); }
.article-meta { margin-bottom: 22px; }
.article-header .article-deck,
.case-header .article-deck { max-width: 720px; }

.article-cover {
    overflow: hidden;
    width: var(--shell);
    max-width: 940px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 70px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.article-body {
    padding-top: 60px;
    border-top: 1px solid var(--line);
    color: #d0d0d3;
    font-size: 18px;
    line-height: 1.78;
}
.article-body > *:first-child { margin-top: 0; }
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre { margin: 0 0 1.55em; }
.article-body h2,
.article-body h3 {
    margin: 2.1em 0 .75em;
    color: var(--text);
    font-weight: 540;
    letter-spacing: -.035em;
    line-height: 1.15;
}
.article-body h2 { font-size: 1.8em; }
.article-body h3 { font-size: 1.35em; }
.article-body a { color: var(--text); text-underline-offset: 4px; }
.article-body blockquote {
    margin-inline: 0;
    padding-left: 20px;
    border-left: 2px solid var(--quiet);
    color: var(--muted);
}
.article-body pre {
    overflow-x: auto;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .82em;
}
.article-body code {
    padding: .12em .28em;
    background: var(--surface);
    border-radius: 4px;
    font: .85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-body pre code { padding: 0; background: transparent; }
.article-body img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 2.4em auto;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.article-body p:has(> img:only-child) {
    margin-bottom: 0;
}
.article-body figure {
    margin: 2.4em 0;
}
.article-body figure img {
    margin: 0 auto;
}
.article-body figcaption {
    margin-top: 10px;
    color: var(--quiet);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
.article-body iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 2.4em 0;
    border: 0;
    border-radius: 9px;
}
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-end {
    padding-block: 48px 120px;
}
.text-link {
    color: var(--muted);
    font-size: 13px;
    text-underline-offset: 4px;
}
.text-link:hover { color: var(--text); }

.case-header .section-kicker { margin: 0 0 22px; }
.case-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 64px 0 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.case-facts div { padding: 20px 18px 20px 0; }
.case-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.case-facts dt {
    color: var(--quiet);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.case-facts dd { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.case-facts a { text-underline-offset: 3px; }
.case-result {
    margin-top: 70px;
    margin-bottom: 120px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.case-result .section-kicker { margin-bottom: 12px; }
.case-result > p:last-child { margin: 0; color: var(--muted); }

.not-found {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 100px;
}
.not-found .section-kicker { margin-bottom: 22px; }
.not-found .text-link { margin-top: 32px; }

.contact-page main {
    overflow: hidden;
}
.contact-hero {
    min-height: calc(76svh - 64px);
    display: grid;
    align-content: center;
    gap: 20px;
    padding-block: 58px 44px;
}
.contact-mesh {
    position: relative;
    width: min(1460px, calc(100vw - 20px));
    height: clamp(150px, 27vw, 400px);
    margin-inline: auto;
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
}
.contact-mesh canvas,
.contact-mesh-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.contact-mesh canvas {
    z-index: 1;
    display: block;
    touch-action: pan-y;
}
.contact-mesh-fallback {
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: clamp(3.8rem, 13vw, 12.5rem);
    font-weight: 760;
    letter-spacing: -.085em;
    line-height: .82;
    white-space: nowrap;
    transition: opacity .18s ease;
}
.contact-mesh.is-ready .contact-mesh-fallback { opacity: 0; }
.contact-intro {
    margin-block: 0;
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 18px);
    text-align: center;
}
.contact-directory {
    padding-block: 24px 120px;
}
.contact-directory > .section-kicker {
    margin-bottom: 22px;
}
.contact-list {
    border-top: 1px solid var(--line);
}
.contact-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 40px;
    gap: 24px;
    align-items: center;
    min-width: 0;
    padding-block: 25px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: color .18s ease, padding-inline .18s ease, background .18s ease;
}
.contact-row-label {
    color: var(--quiet);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.contact-row strong {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(1.35rem, 3vw, 2.4rem);
    font-weight: 520;
    letter-spacing: -.04em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-row-arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.contact-row:hover {
    padding-inline: 12px;
    background: var(--surface);
}
.contact-row:hover .contact-row-arrow {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
    transform: translate(2px, -2px);
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 44px;
    align-items: start;
    padding-block: 48px 34px;
}
.footer-label { margin-bottom: 10px; }
.footer-copy > p:last-child {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer-links a {
    padding: 10px 12px;
    background: var(--surface);
    border-color: var(--line);
}
.footer-links a:hover { color: var(--text); border-color: var(--quiet); }
.footer-meta {
    grid-column: 1 / -1;
    margin: 34px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--quiet);
    font-size: 11px;
}
.site-footer-minimal .footer-inner {
    display: block;
    padding-block: 30px;
}
.site-footer-minimal .footer-meta {
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 820px) {
    :root { --shell: min(100% - 36px, 1184px); }

    .menu-button { display: inline-flex; }
    .primary-navigation {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 14px 18px 18px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
    .primary-navigation.is-open { display: flex; }
    .primary-navigation a { padding: 13px 12px; }

    .hero {
        min-height: calc(100svh - 64px);
    }
    .hero-content {
        min-height: calc(100svh - 64px);
        padding-block: 90px 112px;
    }
    .hero h1 { font-size: clamp(3.2rem, 14vw, 5.2rem); }
    .letter-glitch-center-vignette {
        background: radial-gradient(circle at center, rgba(3, 5, 5, .92) 0%, rgba(4, 7, 6, .74) 36%, rgba(4, 7, 6, .18) 72%, transparent 84%);
    }

    .game-section { padding-block: 88px 100px; }
    .memory-grid { max-width: 560px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .page-intro { padding-block: 88px 70px; }
    .archive-section, .tools-section { padding-bottom: 90px; }
    .archive-item, .tool-row {
        grid-template-columns: 30px minmax(0, 1fr) 36px;
        gap: 14px;
        padding-block: 26px;
    }
    .blog-archive-item {
        grid-template-columns: minmax(124px, 160px) minmax(0, 1fr) 36px;
    }
    .blog-archive-item.has-no-cover {
        grid-template-columns: minmax(0, 1fr) 36px;
    }
    .note-cover { max-width: 160px; }

    .case-facts { grid-template-columns: 1fr 1fr; }
    .case-facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .case-facts div:nth-child(4) { border-top: 1px solid var(--line); }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-links { justify-content: flex-start; }
    .footer-meta { margin-top: 10px; }

    .contact-hero {
        min-height: calc(62svh - 64px);
        padding-block: 46px 34px;
    }
    .contact-mesh {
        width: calc(100vw - 12px);
        height: clamp(118px, 29vw, 230px);
    }
    .contact-directory { padding-bottom: 90px; }
    .contact-row {
        grid-template-columns: 112px minmax(0, 1fr) 38px;
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .hero-kicker, .section-kicker { margin-bottom: 18px; }
    .hero-intro { margin-top: 26px; font-size: 16px; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
    .hero-game-link { margin-top: 28px; }
    .game-heading { margin-bottom: 34px; }
    .game-heading h2 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
    .game-heading > p:last-child { font-size: 14px; }
    .game-stats {
        width: 100%;
        gap: 12px;
        padding-inline: 13px;
    }
    .game-stats p { gap: 5px; font-size: 11px; }
    .game-stats button { font-size: 11px; }
    .memory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .memory-card-face { border-radius: 9px; }
    .memory-card-back > span { width: 30px; height: 30px; }
    .memory-card-name { font-size: 7px; }
    .game-dialog-card { padding: 38px 22px 28px; }
    .game-dialog-actions { flex-direction: column; }
    .page-intro h1, .not-found h1, .article-header h1, .case-header h1 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
    .page-intro > p:last-child, .not-found > p, .article-deck { font-size: 15px; }
    .archive-item, .tool-row { grid-template-columns: 24px minmax(0, 1fr); }
    .blog-archive-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }
    .blog-archive-item.has-no-cover { grid-template-columns: minmax(0, 1fr); }
    .note-cover {
        width: 88px;
        max-width: 88px;
        aspect-ratio: 4 / 3;
        border-radius: 7px;
    }
    .blog-archive-item .archive-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .archive-arrow { display: none; }
    .article-header, .case-header { padding-block: 64px 48px; }
    .back-link { margin-bottom: 52px; }
    .article-body { padding-top: 42px; font-size: 17px; }
    .article-body img,
    .article-body figure,
    .article-body iframe { margin-block: 1.8em; border-radius: 7px; }
    .article-body figure img { margin-block: 0; }
    .article-cover {
        width: var(--shell);
        aspect-ratio: 16 / 10;
        margin-bottom: 40px;
        border-radius: 8px;
    }
    .case-facts { grid-template-columns: 1fr; }
    .case-facts div,
    .case-facts div + div,
    .case-facts div:nth-child(3) { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
    .case-facts div:first-child { border-top: 0; }

    .contact-hero {
        min-height: calc(54svh - 64px);
        gap: 10px;
        padding-block: 36px 24px;
    }
    .contact-mesh {
        width: calc(100vw - 8px);
        height: clamp(102px, 30vw, 150px);
    }
    .contact-mesh-fallback {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }
    .contact-intro {
        max-width: 290px;
        line-height: 1.45;
    }
    .contact-directory { padding-block: 38px 76px; }
    .contact-row {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 10px;
        padding-block: 20px;
    }
    .contact-row-label {
        grid-column: 1;
        margin-bottom: -5px;
    }
    .contact-row strong {
        grid-column: 1;
        font-size: 1.25rem;
    }
    .contact-row-arrow {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 34px;
        height: 34px;
    }
    .contact-row:hover { padding-inline: 8px; }
}

@media (max-width: 380px) {
    .blog-archive-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .note-cover { width: 72px; max-width: 72px; }
    .blog-archive-item .archive-content h2 { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
