@font-face { font-family: Archive; src: local('Arial'); font-display: swap; }
:root {
    --ink: #242320; --muted: #77746c; --paper: #f7f5f0; --line: #dedbd3;
    --accent: #9d4935; --violet: #c7836c; --white: #fff;
    --serif: Georgia, 'Times New Roman', serif; --sans: Archive, Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
:is(button,a,input,select,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e9c9b9; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -80px; padding: 12px 18px; background: white; z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 4%; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -.6px; line-height: 1.05; flex-shrink: 0; }
.brand-second { display: block; }
.brand-symbol { position: relative; width: 35px; height: 40px; }
.brand-symbol i { position: absolute; top: 2px; width: 23px; height: 36px; border: 1.5px solid var(--accent); border-radius: 50%; }
.brand-symbol i:first-child { left: 0; }
.brand-symbol i:last-child { right: 0; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.site-header nav a { color: var(--muted); padding: 8px 0; white-space: nowrap; flex-shrink: 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.header-note { display: none; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .09em; line-height: 1.6; text-transform: uppercase; color: var(--muted); }
.archive-main { max-width: 1840px; margin: auto; padding: 30px 4% 80px; position: relative; }
.exhibition-heading { display: flex; align-items: baseline; gap: 22px; padding-right: 150px; margin-bottom: 15px; }
.exhibition-heading h1 { font: 400 clamp(28px,3vw,42px)/1.2 var(--serif); letter-spacing: -1px; margin: 0; }
.exhibition-heading > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.search-panel > summary { position: absolute; top: 35px; right: 4%; list-style: none; font-size: 14px; color: var(--muted); padding: 4px 0; }
.search-panel > summary::-webkit-details-marker { display: none; }
.search-panel > summary span { font-size: 21px; margin-left: 9px; vertical-align: middle; }
.search-panel[open] > summary { color: var(--accent); }
.archive-tools { display: flex; align-items: center; gap: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 22px 0 8px; min-height: 65px; }
.search-wrap { display: flex; align-items: center; flex: 1; min-width: 0; gap: 14px; }
.search-wrap svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; flex-shrink: 0; }
.search-wrap input { width: 100%; min-width: 0; padding: 15px 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-wrap input::placeholder { color: var(--muted); font-size: 14px; }
.search-wrap input:focus-visible { box-shadow: 0 1px var(--accent); outline: 0; }
kbd { font: 12px var(--sans); padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort-wrap label { color: var(--muted); }
select { max-width: 175px; padding: 10px 20px 10px 5px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.search-submit { border: 0; background: var(--ink); color: white; padding: 7px 15px; }
.js .search-submit { display: none; }
.category-nav { display: flex; gap: 26px; overflow-x: auto; white-space: nowrap; margin: 0 0 24px; border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.category-nav a { padding: 11px 0 13px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.category-nav a:hover { color: var(--ink); }
.category-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.collection-more { margin: -12px 0 22px; font-size: 13px; color: var(--muted); }
.collection-more summary { width: max-content; }
.collection-more .technique-links { margin: 16px 0 0; }
.category-guide { font-size: 13px; color: var(--muted); margin: -12px 0 22px; }
.category-guide a:hover { color: var(--accent); }
.illusion-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px 28px; }
.card-slot { min-width: 0; }
.illusion-card { min-width: 0; }
.card-image { height: auto; aspect-ratio: 1 / 1; padding: clamp(18px,2.6vw,42px); display: flex; align-items: center; justify-content: center; position: relative; background: #eeece6; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s; }
.card-image:hover img { transform: scale(1.025); }
.image-open-hint { position: absolute; bottom: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fffdf6e6; color: var(--ink); font-size: 20px; opacity: 0; transition: opacity .2s; }
.card-image:hover .image-open-hint, .card-image:focus-visible .image-open-hint { opacity: 1; }
.motion-badge { position: absolute; left: 14px; bottom: 14px; background: #fffdf6e6; padding: 4px 10px; font-size: 12px; color: #56534c; }
.card-body { padding: 14px 1px 0; }
.card-body h3 { font: 400 22px/1.25 var(--serif); letter-spacing: -.4px; margin: 0 0 5px; }
.card-body h3 a:hover { color: var(--accent); }
.card-credit { font-size: 13px; line-height: 1.5; color: var(--muted); }
.card-summary { color: #625e55; font-size: 14px; line-height: 1.65; margin: 8px 0 0; max-width: 65ch; }
.collection-intro { color: #625e55; max-width: 95ch; margin: 0 0 20px; font-size: 15px; }
.faq-section { max-width: 1000px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.faq-section h2 { font: 400 clamp(25px,3vw,32px)/1.25 var(--serif); margin: 0 0 20px; }
.faq-section details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.faq-section summary { font-weight: 500; font-size: 16px; }
.faq-section details p { margin: 14px 0 0; max-width: 80ch; color: #625e55; font-size: 15px; line-height: 1.8; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state h2 { font: 36px var(--serif); margin: 0 0 12px; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.no-js-note { color: var(--muted); font-size: 14px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 28px 4%; font-size: 12px; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.5px; }
.site-footer > a:last-child { text-decoration: underline; text-underline-offset: 4px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.results-heading h2 { font: 30px var(--serif); margin: 0; }
.results-heading > a, .results-heading > span { font-size: 13px; color: var(--muted); }
.detail-main { max-width: 1700px; margin: auto; padding: 20px 4% 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.breadcrumbs a:hover { color: var(--accent); }
.detail-layout { display: block; }
.detail-image { height: min(76svh,900px); min-height: 350px; padding: 24px; background: #eeece6; display: flex; justify-content: center; align-items: center; }
.detail-image img { height: 100%; width: 100%; object-fit: contain; }
.image-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; font-size: 13px; color: var(--muted); }
.image-toolbar > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.small-button { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 13px; text-align: center; }
.small-button:hover { color: var(--accent); border-color: var(--accent); }
.detail-header { margin: 22px 0; }
.detail-header .eyebrow { font-size: 12px; }
.separator { margin: 0 10px; color: var(--muted); }
.detail-header h1 { font: 400 clamp(30px,3vw,45px)/1.18 var(--serif); letter-spacing: -1px; margin: 12px 0; }
.detail-header > p { font-size: 18px; color: var(--muted); max-width: 850px; margin: 0; }
.try-it { padding: 18px 0 26px; border-bottom: 1px solid var(--line); max-width: 900px; }
.try-it p { margin: 8px 0 0; font-size: 16px; }
.illusion-story { max-width: 1120px; margin: 45px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 55px; }
.creator-block { grid-column: 1 / -1; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.creator-block h2 { font: 28px/1.2 var(--serif); margin: 8px 0; }
.creator-block p { font-size: 14px; color: var(--muted); margin: 3px 0; }
.illusion-story section h2 { font: 26px var(--serif); font-weight: 400; margin: 0 0 14px; }
.illusion-story section p { font-size: 16px; color: #625e55; line-height: 1.85; margin: 0; }
.attribution-note { grid-column: 1 / -1; padding-left: 18px; border-left: 1px solid var(--accent); }
.attribution-note p { font-size: 14px; color: var(--muted); margin: 7px 0; }
.tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 12px; }
.source-section { max-width: 1120px; margin: 48px auto 0; border-top: 1px solid var(--line); padding-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.source-section h2 { font: 28px var(--serif); margin: 12px 0 20px; }
.source-list { padding: 0; margin: 0; list-style: none; }
.source-list li { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.source-list a { display: flex; justify-content: space-between; gap: 15px; }
.source-list a:hover { color: var(--accent); }
.image-credit p { font-size: 14px; color: var(--muted); }
.image-credit a:not(.small-button) { text-decoration: underline; text-underline-offset: 3px; }
.image-credit .credit-note { font-size: 12px; }
.download-link { margin-top: 8px; }
.related { margin-top: 70px; }
.related .results-heading { margin-bottom: 25px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.rotated { transform: rotate(180deg); }
button:disabled { opacity: .3; cursor: default; }
dialog { padding: 20px; max-width: 95vw; width: min(1250px,95vw); max-height: 96svh; border: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #1c1b18e8; }
dialog:not(.gallery-dialog) img { width: 100%; height: 77svh; object-fit: contain; }
dialog:not(.gallery-dialog) form { display: flex; justify-content: flex-end; }
dialog:not(.gallery-dialog) p { font: 22px var(--serif); text-align: center; margin: 15px 0 0; }
.dialog-close, .gallery-close { background: transparent; border: 0; color: var(--ink); padding: 8px 10px; font-size: 14px; }
.gallery-dialog { width: min(1650px,96vw); height: 94svh; max-height: 94svh; padding: 18px 24px; overflow: hidden; }
.gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 12px; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 38px; }
.gallery-toolbar > span { color: var(--muted); font-size: 13px; }
.gallery-toolbar > div { display: flex; align-items: center; gap: 10px; }
.gallery-stage { position: relative; min-height: 0; padding: 20px 70px; background: #eeece6; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: calc(50% - 23px); width: 46px; height: 46px; border: 1px solid #d6d2c8; border-radius: 50%; background: #fffdf5e8; color: var(--ink); font-size: 22px; z-index: 1; }
.gallery-arrow:hover { border-color: var(--accent); }
.gallery-previous { left: 12px; }
.gallery-next { right: 12px; }
.gallery-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 4px; }
.gallery-caption h2 { font: 400 25px/1.2 var(--serif); margin: 0 0 4px; }
.gallery-caption p { font-size: 13px; color: var(--muted); margin: 0; }
.gallery-caption > a { white-space: nowrap; }
#zoom-open, #motion-toggle, #rotate-toggle { display: none; }
.js #zoom-open, .js #motion-toggle, .js #rotate-toggle { display: inline-block; }
.about-main { max-width: 1190px; padding: 50px 4% 80px; margin: auto; }
.about-main h1 { font: 400 clamp(45px,5vw,70px)/1.1 var(--serif); letter-spacing: -2px; margin: 15px 0 25px; }
.about-main h1 em, .games-intro h1 em { color: var(--accent); }
.about-lead { font-size: 21px; color: var(--muted); max-width: 800px; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin: 40px 0; }
.about-columns h2 { font: 29px var(--serif); margin: 28px 0 15px; }
.about-columns p { font-size: 16px; color: #625e55; line-height: 1.9; }
.credits-table { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 55px; }
.table-scroll { overflow-x: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 15px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 110px; }
thead th { color: var(--muted); font-weight: 500; }
tbody th { font-weight: 500; min-width: 170px; }
td a, tbody th a { color: var(--accent); }
.research-date { font-size: 13px; color: var(--muted); margin-top: 30px; }
.button { display: inline-block; background: var(--ink); color: white; padding: 12px 20px; margin-top: 15px; }
.games-main, .artists-main { max-width: 1500px; margin: auto; padding: 45px 4% 80px; }
.games-intro h1 { font: 400 clamp(45px,5vw,72px)/1.06 var(--serif); letter-spacing: -2px; margin: 15px 0 20px; }
.games-intro > p { font-size: 19px; color: var(--muted); max-width: 650px; margin-bottom: 20px; }
.technique-links, .game-group-nav { display: flex; flex-wrap: wrap; gap: 13px 25px; margin: 30px 0; }
.technique-links a, .game-group-nav a { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.technique-links a:hover, .game-group-nav a:hover { color: var(--accent); border-color: var(--accent); }
.artists-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 45px 30px; }
.artist-card { min-width: 0; }
.artist-image { height: auto; aspect-ratio: 1/1; background: #eeece6; padding: 28px; display: block; }
.artist-image img { height: 100%; width: 100%; object-fit: contain; }
.artist-body { padding: 20px 0 0; }
.artist-body h2 { font: 32px/1.2 var(--serif); margin: 10px 0; }
.artist-body > p { font-size: 16px; color: #625e55; }
.artist-body ul { padding: 0; list-style: none; margin: 20px 0; }
.artist-body li { border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.artist-body li a { display: flex; justify-content: space-between; gap: 20px; }
.artist-body li span { color: var(--muted); white-space: nowrap; font-size: 12px; }
.artist-browse { font-size: 14px; color: var(--accent); }
.artist-pick { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: -6px 0 22px; font-size: 14px; color: var(--accent); }
.artist-pick img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.artist-pick-detail { color: var(--muted); }
.escher-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(30px,5vw,80px); }
.escher-portrait { margin: 0; }
.escher-portrait img { width: 100%; height: min(65svh,680px); object-fit: contain; background: #eeece6; }
.escher-portrait figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.escher-portrait figcaption a { text-decoration: underline; }
.escher-hero .games-intro h1 { font-size: clamp(60px,8vw,120px); }
.escher-section-heading { margin: 65px 0 28px; }
.escher-section-heading h2 { margin: 0 0 12px; font: 400 clamp(30px,4vw,45px)/1.2 var(--serif); }
.escher-section-heading p { max-width: 780px; color: var(--muted); }
.escher-group { scroll-margin-top: 30px; margin-top: 45px; }
.escher-group > h3 { font: 28px var(--serif); margin: 0 0 24px; }
.escher-work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; }
.escher-work { border-top: 1px solid var(--line); padding: 20px 0 0; scroll-margin-top: 25px; }
.escher-work h4 { font: 32px/1.2 var(--serif); margin: 12px 0 18px; }
.escher-work h4 span { color: var(--accent); font: 20px var(--sans); }
.escher-work > p { color: #625e55; max-width: 650px; }
.escher-work .escher-look { color: var(--ink); font: italic 20px/1.5 var(--serif); }
.escher-credits { border-top: 1px solid var(--line); margin-top: 55px; padding-top: 20px; font-size: 13px; color: var(--muted); }
.escher-credits a { color: var(--accent); }
@media (max-width: 760px) {
    .artist-pick { font-size: 13px; }
    .artist-pick-detail { display: none; }
    .escher-hero, .escher-work-grid { grid-template-columns: 1fr; }
    .escher-hero { gap: 26px; }
    .escher-portrait img { height: 48svh; }
    .escher-hero .games-intro h1 { font-size: 65px; }
    .escher-section-heading { margin-top: 40px; }
}
.dimension-note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 30px 0; display: grid; grid-template-columns: 220px 1fr; gap: 35px; }
.dimension-note p { margin: 0; max-width: 800px; color: #625e55; }
.game-section { scroll-margin-top: 30px; margin: 50px 0; }
.game-section > header h2 { font: 35px var(--serif); margin: 12px 0; }
.game-section > header > p { color: var(--muted); max-width: 780px; margin-bottom: 28px; }
.game-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px; }
.game-card { padding: 25px 0; border-top: 1px solid var(--line); position: relative; }
.game-card > .eyebrow { padding-right: 45px; }
.game-number { position: absolute; right: 0; top: 25px; font: 25px var(--serif); color: #b3aea2; }
.game-card h3 { font: 35px/1.2 var(--serif); margin: 14px 0; }
.game-summary { font-size: 19px !important; color: var(--ink) !important; }
.game-card > p { font-size: 16px; line-height: 1.8; color: #625e55; }
.game-observation { padding: 18px; background: #eeece6; margin: 23px 0; }
.game-observation p { font-size: 14px; margin: 8px 0 0; }
.game-card .game-note { font-size: 14px; }
.game-sources { padding: 0; list-style: none; margin: 20px 0; }
.game-sources li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.game-sources a { color: var(--accent); }
.game-back { padding: 25px 0; border-top: 1px solid var(--line); }
.game-back h2 { font: 32px var(--serif); }
.game-back .small-button { margin-left: 15px; }
@media (min-width: 1650px) { .illusion-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
    .site-header { height: auto; padding: 15px 5% 0; display: block; }
    .brand { font-size: 18px; gap: 10px; }
    .brand-symbol { width: 30px; height: 35px; }
    .brand-symbol i { width: 20px; height: 31px; }
    .site-header nav { justify-content: space-between; gap: 12px; height: 45px; font-size: 13px; }
    .site-header nav a { white-space: nowrap; }
    .archive-main { padding: 24px 5% 55px; }
    .exhibition-heading { padding-right: 0; gap: 15px; justify-content: space-between; margin-bottom: 10px; }
    .exhibition-heading h1 { font-size: 29px; }
    .exhibition-heading > span { font-size: 12px; }
    .search-panel > summary { position: static; width: max-content; margin: 0 0 5px auto; font-size: 13px; padding: 0; }
    .search-panel > summary span { font-size: 18px; }
    .archive-tools { gap: 12px; margin-top: 14px; min-height: 60px; flex-wrap: wrap; }
    .search-wrap { min-width: 150px; gap: 8px; }
    .search-wrap input { font-size: 16px; }
    .search-wrap input::placeholder { font-size: 12px; }
    kbd, .sort-wrap label { display: none; }
    .sort-wrap { font-size: 12px; }
    .sort-wrap select { max-width: 126px; padding-right: 10px; }
    .category-nav { gap: 22px; margin-bottom: 22px; }
    .category-nav a { font-size: 13px; }
    .collection-more, .category-guide { margin-top: -10px; margin-bottom: 18px; }
    .illusion-grid { grid-template-columns: 1fr; gap: 30px; }
    .card-image { padding: 20px; }
    .image-open-hint { opacity: 1; }
    .card-body { padding-top: 12px; }
    .card-body h3 { font-size: 22px; }
    .detail-main { padding: 18px 5% 55px; }
    .breadcrumbs { font-size: 12px; margin-bottom: 15px; gap: 9px; }
    .detail-image { height: 65svh; min-height: 320px; padding: 15px; }
    .image-toolbar { flex-wrap: wrap; gap: 10px; font-size: 12px; }
    .image-toolbar > div { justify-content: flex-start; }
    .detail-header h1 { font-size: 32px; }
    .detail-header > p { font-size: 16px; }
    .illusion-story, .source-section { grid-template-columns: 1fr; gap: 25px; margin-top: 32px; }
    .creator-block, .attribution-note, .tags { grid-column: auto; }
    .related-grid { grid-template-columns: 1fr; gap: 30px; }
    .related .results-heading h2 { font-size: 27px; }
    .gallery-dialog { width: 96vw; height: 94svh; padding: 12px; }
    .gallery-toolbar { gap: 8px; }
    .gallery-toolbar > div { gap: 5px; }
    .gallery-toolbar .small-button { font-size: 12px; padding: 6px 8px; }
    .gallery-close { font-size: 13px; padding-right: 0; }
    .gallery-stage { padding: 15px 12px 65px; }
    .gallery-arrow { top: auto; bottom: 10px; width: 40px; height: 40px; font-size: 20px; }
    .gallery-previous { left: calc(50% - 48px); }
    .gallery-next { right: calc(50% - 48px); }
    .gallery-caption { display: block; }
    .gallery-caption h2 { font-size: 23px; }
    .gallery-caption p { font-size: 12px; }
    .gallery-caption > a { margin-top: 9px; font-size: 12px; padding: 6px 10px; }
    .site-footer { padding: 25px 5%; flex-wrap: wrap; gap: 15px; }
    .site-footer > span { width: 100%; order: 3; }
    .artists-main, .games-main, .about-main { padding: 35px 5% 55px; }
    .games-intro h1 { font-size: 49px; letter-spacing: -1.5px; }
    .games-intro > p, .about-lead { font-size: 18px; }
    .artists-grid, .game-grid, .about-columns { grid-template-columns: 1fr; gap: 35px; }
    .artist-image { padding: 20px; }
    .artist-body h2 { font-size: 29px; }
    .dimension-note { display: block; }
    .dimension-note p { margin-top: 12px; }
    .game-back .small-button { margin: 15px 0 0; }
    .credits-table .results-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.card-reference { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(24px,4vw,60px); background: #eeece6; }
.reference-effect { font: 400 clamp(18px,2vw,28px)/1.45 var(--serif); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.reference-link { font-size: 13px; color: var(--accent); }
.source-demonstration { padding: 40px; background: #eeece6; }
.source-demonstration p { font: 24px/1.5 var(--serif); }
.imported-source { max-width: 1120px; margin: 48px auto 0; border-top: 1px solid var(--line); padding-top: 30px; }
.imported-source h2 { font: 30px/1.3 var(--serif); }
.imported-source p { line-height: 1.7; }
.imported-source a { text-decoration: underline; text-underline-offset: 3px; }
.source-citation { color: var(--muted); font-size: 14px; }
.source-reading summary { cursor: pointer; padding: 18px 0; font-size: 16px; }
.source-article-body { max-width: 780px; }
.source-article-body h3 { font: 24px/1.4 var(--serif); margin-top: 30px; }
.source-media-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 24px; }
.source-media { margin: 0; padding: 18px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.source-media img { display: block; width: 100%; height: auto; max-height: 400px; object-fit: contain; }
.source-media figcaption { font-size: 13px; }

.game-card-heading { position: relative; padding-top: 20px; }
.game-card-heading > .eyebrow { padding-right: 45px; }
.game-card-heading .game-number { top: 20px; }
.game-media-stage { aspect-ratio: 16 / 9; background: #16151b; position: relative; overflow: hidden; }
.game-media-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.game-trailer-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 14px 20px; border: 1px solid #ffffff66; border-radius: 4px; background: #16151be8; color: #fff; font: 15px var(--sans); cursor: pointer; }
.game-trailer-play:hover { background: var(--accent); }
.game-trailer-player { position: absolute; inset: 0; }
.game-trailer-player iframe, .game-trailer-player video { display: block; width: 100%; height: 100%; border: 0; }
.game-media-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
.game-screenshot-thumbnails { display: flex; gap: 8px; margin-right: auto; }
.game-screenshot-button { background: transparent; border: 2px solid transparent; padding: 2px; cursor: pointer; border-radius: 3px; }
.game-screenshot-button[aria-pressed="true"] { border-color: var(--accent); }
.game-screenshot-button img { width: 72px; height: 41px; display: block; object-fit: contain; background: #16151b; }
.game-trailer-external { font-size: 13px; color: var(--accent); }
.game-media .game-media-credit { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.game-media-credit a:hover { text-decoration: underline; }
.game-media-fallback img { width: 100%; height: auto; margin-top: 10px; }
@media (max-width: 760px) { .game-trailer-play { padding: 12px 16px; font-size: 14px; } .game-media-toolbar { gap: 8px; } }

.objects-main { max-width: 1500px; margin: auto; padding: 45px 4% 80px; }
.objects-intro { max-width: 1050px; }
.objects-intro > p { max-width: 780px; }
.objects-intro .objects-intro-note { font-size: 15px; max-width: 740px; }
.object-nav { margin: 35px 0 45px; }
.object-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(30px,5vw,75px); padding: 40px 0 50px; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 25px; }
.object-figure { margin: 0; }
.object-figure img { width: 100%; height: auto; background: #eeece6; }
.object-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; max-width: 520px; }
.object-body h2 { font: 400 clamp(32px,4vw,46px)/1.15 var(--serif); margin: 12px 0 20px; letter-spacing: -.8px; }
.object-body > p { font-size: 16px; line-height: 1.8; color: #625e55; }
.object-body .object-surprise { font: 23px/1.45 var(--serif); color: var(--ink); }
.object-reality strong { color: var(--ink); font-weight: 500; }
.object-experiment { border-left: 2px solid var(--accent); padding: 2px 0 2px 20px; margin: 25px 0; }
.object-experiment p { margin: 8px 0 0; color: #625e55; font-size: 15px; line-height: 1.8; }
.object-body .object-origin { font-size: 13px; color: var(--muted); }
.object-sources { list-style: none; padding: 0; margin: 20px 0 0; }
.object-sources li { border-top: 1px solid var(--line); padding: 9px 0; font-size: 13px; color: var(--accent); }
.object-sources a:hover { text-decoration: underline; text-underline-offset: 4px; }
.object-outro { border-top: 1px solid var(--line); padding-top: 30px; }
.object-outro h2 { font: 32px var(--serif); }
.object-outro > p { max-width: 800px; color: #625e55; }
.object-outro .small-button { margin: 10px 15px 10px 0; }
.object-outro .object-diagram-credit { margin-top: 30px; font-size: 12px; color: var(--muted); }
.category-guide { display: flex; flex-wrap: wrap; gap: 12px 28px; }
@media (max-width: 760px) {
    .site-header nav { overflow-x: auto; justify-content: flex-start; gap: 22px; scrollbar-width: thin; }
    .objects-main { padding: 35px 5% 55px; }
    .objects-intro h1 { font-size: clamp(36px,9vw,49px); }
    .object-nav { margin: 25px 0; }
    .object-feature { grid-template-columns: 1fr; gap: 25px; padding: 28px 0 35px; }
    .object-body h2 { font-size: 34px; }
    .object-body .object-surprise { font-size: 22px; }
}

.architecture-main { max-width: 1500px; margin: auto; padding: 45px 4% 80px; }
.animals-main { max-width: 1500px; margin: auto; padding: 45px 4% 80px; }
.animals-intro { max-width: 980px; }
.animals-intro h1 { font-size: clamp(54px,7.4vw,104px); }
.animals-intro > p { max-width: 740px; }
.animals-intro .animals-intro-note { font-size: 15px; max-width: 720px; }
.architecture-intro { max-width: 980px; }
.architecture-intro h1 { font-size: clamp(54px,7.4vw,104px); }
.architecture-intro > p { max-width: 740px; }
.architecture-intro .architecture-intro-note { font-size: 15px; max-width: 720px; }
.architecture-chapters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; margin: 45px 0 65px; }
.architecture-chapters > a { border-top: 1px solid var(--ink); padding: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 15px; }
.architecture-chapters .eyebrow { grid-column: 1 / -1; }
.architecture-chapters > a > span:nth-child(2) { font: 24px/1.3 var(--serif); }
.architecture-chapters a:hover { color: var(--accent); }
.architecture-chapter { scroll-margin-top: 25px; }
.architecture-chapter-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; border-top: 2px solid var(--accent); padding: 30px 0 15px; }
.architecture-chapter-heading h2 { font: 36px/1.2 var(--serif); margin: 0; max-width: 470px; }
.architecture-chapter-heading p { margin: 0; max-width: 620px; color: #625e55; }
.architecture-feature { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: clamp(30px,5vw,75px); padding: 40px 0 60px; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 25px; }
.architecture-feature:last-child { border-bottom: 0; }
.architecture-media figure { margin: 0; }
.architecture-media figure > a { display: block; background: #eeece6; }
.architecture-media img { width: 100%; height: auto; max-height: 570px; object-fit: contain; }
.architecture-media figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.architecture-image-credit { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.architecture-image-credit a { text-decoration: underline; text-underline-offset: 3px; }
.architecture-body h3 { font: 400 clamp(32px,3.5vw,46px)/1.15 var(--serif); margin: 12px 0 12px; letter-spacing: -.8px; }
.architecture-body > p { color: #625e55; line-height: 1.8; }
.architecture-body .architecture-location { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.architecture-body .architecture-surprise { font: 23px/1.45 var(--serif); color: var(--ink); }
.architecture-body .architecture-note, .architecture-body .architecture-maker { font-size: 13px; color: var(--muted); }
.architecture-story { display: inline-block; margin-top: 22px; color: var(--accent); font-size: 14px; }
.architecture-story:hover { text-decoration: underline; }
.architecture-reference { background: #e9e1d5; padding: clamp(25px,4vw,55px); min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.architecture-reference > p { font: 32px/1.25 var(--serif); margin: 20px 0 30px; }
.architecture-reference-note { font-size: 12px; color: #625e55; margin-top: 18px; }
.viewpoint-comparison { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 12px; }
.viewpoint-comparison summary { font-size: 14px; color: var(--accent); }
.viewpoint-comparison figure { margin: 18px 0 0; }
.viewpoint-comparison img { width: 100%; height: auto; max-height: 470px; object-fit: contain; background: #eeece6; }
.viewpoint-comparison figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.architecture-research-date { font-size: 12px; margin-top: 30px; color: var(--muted); }

@media (max-width: 760px) {
    .architecture-main { padding: 35px 5% 55px; }
    .animals-main { padding: 35px 5% 55px; }
    .animals-intro h1 { font-size: clamp(48px,12vw,76px); }
    .architecture-intro h1 { font-size: clamp(48px,12vw,76px); }
    .architecture-chapters { grid-template-columns: 1fr; gap: 8px; margin: 30px 0 35px; }
    .architecture-chapters > a > span:nth-child(2) { font-size: 23px; }
    .architecture-chapter-heading { grid-template-columns: 1fr; gap: 20px; }
    .architecture-chapter-heading h2 { font-size: 32px; }
    .architecture-feature { grid-template-columns: 1fr; gap: 25px; padding: 28px 0 40px; }
    .architecture-body h3 { font-size: 34px; }
    .architecture-reference { min-height: 280px; }
}
