:root {
  --background: #152d46; --surface: #f2e9d4; --ink: #f1e8cf; --muted: #b7c1c8; --accent: #d3a547; --line: #496077;
  --paper-ink: #263e52; --paper-muted: #626659; --paper-line: #d2c5a8;
  --serif-font: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --body-font: "PingFang SC", "Microsoft YaHei", sans-serif;
  --display-font: Georgia, "Songti SC", serif;
  --mono-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: 1240px; --radius: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background-color: var(--background); background-image: none; background-size: cover; background-position: center top; background-attachment: fixed; color: var(--ink); font-family: var(--body-font); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { border: 0; }
button, input, select { border-radius: 0; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--paper-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
#app:focus { outline: none; }
.page-width { width: min(var(--page), calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -60px; left: 16px; padding: 12px 20px; background: var(--accent); color: var(--paper-ink); z-index: 20; }
.skip:focus { top: 8px; }
.eyebrow { font: 10px/1.5 var(--mono-font); letter-spacing: .16em; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; background: var(--accent); border-radius: 50%; }
.meta-separator { color: #9ca8a7; margin: 0 10px; }
.site-header { border-bottom: 1px solid var(--line); background: #12283f6b; }
.header-inner { height: 92px; display: flex; align-items: center; gap: 64px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { display: block; width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; border-radius: 50%; box-shadow: 0 0 0 1px #d6bb8155; }
.brand-name { font-family: var(--serif-font); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; }
.main-nav { display: flex; height: 100%; align-items: center; gap: 32px; }
.main-nav a, .main-nav button { position: relative; display: inline-flex; align-items: center; gap: 16px; min-height: 44px; background: none; padding: 0; font-size: 13px; }
.nav-library { font-weight: 650; }
.nav-library::after { position: absolute; content: ""; left: 0; right: 0; bottom: -24px; height: 2px; background: var(--accent); }
.nav-library span { font-size: 17px; }
.nav-about { color: var(--muted); }
.nav-about:hover { color: var(--ink); }
.header-note { display: flex; align-items: center; gap: 9px; margin-left: auto; color: var(--muted); font-size: 11px; }
.home-hero { display: grid; grid-template-columns: .88fr 1.12fr; gap: 64px; align-items: center; padding: 36px 0 48px; }
.hero-heading > .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: #dec184; }
.home-hero h1 { font-family: var(--serif-font); font-size: clamp(40px, 4.2vw, 59px); font-weight: 600; line-height: 1.35; letter-spacing: .035em; }
.highlight-word { display: inline-block; color: #e9c66e; white-space: nowrap; }
.hero-stats { display: flex; gap: 0; margin: 27px 0 0; }
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 6px; min-width: 102px; padding-right: 28px; }
.hero-stats > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-stats dt { color: var(--muted); font-size: 11px; }
.hero-stats dd { font: italic 31px/1 var(--display-font); color: #e5c583; margin: 0; }
.library { padding-bottom: 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { display: flex; align-items: center; gap: 18px; font: 600 25px/1.5 var(--serif-font); letter-spacing: .04em; }
.section-index { font: 9px/1.5 var(--mono-font); color: var(--muted); letter-spacing: .08em; }
.section-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.section-hint > span { color: var(--accent); font-size: 22px; }
.section-hint svg { width: 15px; height: 15px; color: var(--accent); }
.library-toolbar, .works-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.filter-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-tabs button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 9px 15px; min-height: 42px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: #c5cdd0; font-size: 12px; white-space: nowrap; transition: background .16s, color .16s; }
.filter-tabs button > span:not(.model-mark) { font: 10px/1 var(--mono-font); }
.filter-tabs button:hover { background: #33516c; color: var(--ink); }
.filter-tabs button[aria-pressed="true"] { background: var(--accent); color: #173249; border-color: #dbb463; }
.search-field { display: flex; align-items: center; gap: 10px; width: 250px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 2px; background: #0e253a45; }
.search-field > svg { width: 16px; height: 16px; color: var(--muted); }
.search-field:focus-within { border-color: var(--accent); }
.search-field input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-field input::placeholder { color: var(--muted); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field button { padding: 0; min-width: 24px; min-height: 30px; background: none; color: var(--muted); font-size: 20px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project-grid.single-project { grid-template-columns: 1fr; }
.project-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--paper-ink); border: 1px solid #d6c396; border-radius: var(--radius); box-shadow: 0 8px 28px #06152230; transition: border-color .18s, box-shadow .18s; }
.project-card:hover { border-color: #efce87; box-shadow: 0 10px 32px #04121e66; }
.project-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #19364e; margin: 16px; outline: 1px solid #bbaa88; outline-offset: 4px; }
.picture { position: relative; width: 100%; height: 100%; background: #c6bda7; overflow: hidden; }
.project-image { position: absolute; inset: 0; }
.project-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #18375112 20%, transparent 45%, #112c43b3); }
.project-image img, .work-image img { transition: transform .45s cubic-bezier(.2,.65,.3,1); }
.project-card:hover .project-image img, .work-card:hover .work-image img { transform: scale(1.035); }
.cover-label { position: absolute; top: 18px; left: 20px; font-size: 10px; letter-spacing: .06em; color: #f5e9c9; background: #17374dcc; border: 1px solid #f0d39970; border-radius: 1px; padding: 4px 9px; }
.cover-title { position: absolute; left: 24px; right: 24px; bottom: 21px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #f7eccf; font: 500 clamp(32px, 3.8vw, 54px)/1.05 var(--display-font); letter-spacing: -.04em; }
.cover-title > span { padding-bottom: 4px; font: 9px/1.6 var(--mono-font); white-space: nowrap; letter-spacing: .08em; }
.project-copy { flex: 1; display: flex; flex-direction: column; padding: 26px 30px 22px; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.project-topline .eyebrow { color: #746543; font-size: 10px; }
.available-label { font-size: 10px; color: #745120; display: inline-flex; align-items: center; gap: 6px; }
.available-label::before { content: ""; width: 5px; height: 5px; background: #a4762d; border-radius: 50%; }
.project-copy h3 { font-family: var(--serif-font); font-size: 30px; font-weight: 700; letter-spacing: .025em; line-height: 1.4; margin-bottom: 12px; }
.project-description { color: var(--paper-muted); font-size: 13px; line-height: 1.9; }
.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.tag { display: inline-flex; align-items: center; font-size: 10px; line-height: 1.4; color: #686149; background: #e7ddc5; padding: 5px 8px; border-radius: 1px; }
.project-models { display: flex; align-items: center; gap: 12px; margin-top: 25px; margin-bottom: 21px; color: #576474; font-size: 11px; }
.model-stack { display: inline-flex; padding-right: 3px; }
.model-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; font: 700 11px/1 var(--mono-font); }
.model-stack .model-mark { border: 2px solid var(--surface); width: 30px; height: 30px; margin-right: -4px; }
.model-astra { background: #d7bb73; color: #4e3e1d; }
.model-codex { background: #b8c9d8; color: #2f4b66; }
.model-opus { background: #ddbaa0; color: #713e28; }
.model-grok { background: #b7c5c5; color: #294a55; }
.model-other { background: #d0c1a5; color: #52452d; }
.project-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--paper-line); margin-top: auto; }
.project-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; font-weight: 650; }
.project-cta svg { width: 16px; height: 16px; transition: transform .18s; }
.project-card:hover .project-cta svg { transform: translate(2px, -2px); }
.project-updated { font: 10px/1.5 var(--mono-font); color: #68634f; }
.project-featured .project-card { display: grid; grid-template-columns: 1.25fr 1fr; }
.project-featured .project-art { aspect-ratio: auto; min-height: 340px; }
.project-featured .project-copy { padding: 30px 36px 26px 20px; }
.project-featured .project-copy h3 { font-size: 31px; }
.project-featured .project-description { max-width: 30em; }
.project-featured .project-cta { padding: 10px 15px; min-width: 165px; background: #234765; color: #f6e8c4; border: 1px solid #385b79; border-radius: 2px; }
.project-featured .project-bottom { padding-top: 19px; }
.future-note { margin-top: 26px; padding: 24px 4px; display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.future-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; font: italic 29px/1 Georgia, serif; color: #d6b270; }
.future-note h3 { font: 600 17px/1.6 var(--serif-font); letter-spacing: .05em; margin-bottom: 3px; }
.future-note p { font-size: 11px; color: var(--muted); }
.future-note > .eyebrow { color: #c7b487; margin-left: auto; font-size: 9px; white-space: nowrap; }
.future-note > .eyebrow span { font-size: 17px; margin-left: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 30px; font-size: 11px; color: var(--muted); }
.breadcrumb > a { min-height: 32px; display: inline-flex; align-items: center; color: var(--ink); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb > span[aria-hidden] { color: #a9ac9e; }
.detail-hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 64px; padding: 26px 0 35px; }
.detail-intro { padding: 8px 0; }
.detail-intro > .eyebrow { color: #dec184; margin-bottom: 17px; }
.detail-intro h1 { font-family: var(--serif-font); font-size: clamp(30px, 3.1vw, 44px); font-weight: 600; letter-spacing: .04em; line-height: 1.4; margin-bottom: 17px; }
.detail-description { color: #c8cfd0; font-size: 14px; line-height: 1.9; max-width: 36em; }
.detail-intro .tags { margin-top: 20px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11px; color: #c4cfd1; margin-top: 26px; }
.detail-meta .model-stack .model-mark { border-color: var(--background); }
.detail-updated { margin-left: auto; color: var(--muted); font: 10px/1.5 var(--mono-font); }
.detail-cover { position: relative; border: 10px solid var(--surface); outline: 1px solid #a88f5f; outline-offset: 4px; border-radius: 0; box-shadow: 0 8px 28px #07152140; aspect-ratio: 16 / 9; }
.detail-cover-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 24px 18px 12px; background: linear-gradient(transparent, #142e46b5); color: #fff0ce; font: 10px/1.5 var(--mono-font); letter-spacing: .09em; }
.detail-cover-caption > span { font: 9px/1.5 var(--body-font); }
.project-brief { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; background: #10283f5c; }
.project-brief > summary { list-style: none; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.project-brief > summary::-webkit-details-marker { display: none; }
.project-brief > summary > span:first-child { display: inline-flex; align-items: center; gap: 12px; }
.prompt-symbol { font: italic 16px/1 Georgia, serif; color: var(--accent); }
.brief-action { color: #d7bc85; font-size: 10px; white-space: nowrap; }
.brief-action > span { display: inline-block; margin-left: 13px; font: 17px/1 var(--mono-font); transition: transform .18s; }
.project-brief[open] .brief-action > span { transform: rotate(45deg); }
.project-brief > p { padding: 0 48px 20px; max-width: 88ch; color: #c8cfd0; font-size: 13px; line-height: 1.9; white-space: pre-line; }
.works-section { padding-bottom: 58px; }
.section-count { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.works-toolbar { padding-bottom: 19px; margin-bottom: 24px; border-bottom: 1px solid var(--line); gap: 16px; }
.model-filters { gap: 5px; }
.model-filters button { padding: 8px 11px; }
.model-filters .model-mark { width: 20px; height: 20px; font-size: 9px; }
.sort-field { margin-left: auto; flex: 0 0 auto; }
.sort-field select { color-scheme: dark; background: transparent; border: 0; padding: 10px 2px 10px 8px; font-size: 11px; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.work-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--surface); color: var(--paper-ink); border: 1px solid #d1c19c; border-radius: var(--radius); box-shadow: 0 5px 20px #06152230; transition: border-color .18s, transform .18s, box-shadow .18s; }
.work-card[href]:hover { transform: translateY(-4px); border-color: #f0d294; box-shadow: 0 10px 26px #0615226b; }
.work-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 13px 13px 0; outline: 1px solid #c3b392; outline-offset: 3px; }
.work-model { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; background: #f6ead0; color: var(--paper-ink); border: 1px solid #d9c69d; border-radius: 1px; font-size: 10px; font-weight: 550; }
.work-model .model-mark { width: 21px; height: 21px; font-size: 9px; border-radius: 3px; }
.work-version { position: absolute; right: 12px; top: 13px; background: #15324ae8; color: #f9e9c0; padding: 3px 7px; border: 1px solid #d4bd834d; border-radius: 1px; font: 9px/1.8 var(--mono-font); }
.work-open { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; background: #dab366; color: #193c55; border: 1px solid #f1d794; border-radius: 50%; width: 34px; height: 34px; opacity: 0; transform: translate(-4px, 4px); transition: opacity .18s, transform .18s; }
.work-open svg { width: 17px; height: 17px; }
.work-card[href]:hover .work-open, .work-card:focus-visible .work-open { opacity: 1; transform: none; }
.work-copy { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 18px; }
.work-english { color: #76633e; font: 9px/1.5 var(--mono-font); letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; margin-bottom: 6px; }
.work-copy h3 { font-family: var(--serif-font); font-size: 24px; font-weight: 700; line-height: 1.45; letter-spacing: .015em; margin-bottom: 11px; }
.work-description { color: var(--paper-muted); font-size: 12px; line-height: 1.9; margin-bottom: 21px; }
.work-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--paper-line); }
.work-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.work-tags .tag { background: transparent; padding: 0; font-size: 9px; }
.work-tags .tag + .tag::before { content: "·"; margin-right: 5px; }
.work-cta { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; font-size: 11px; font-weight: 550; }
.work-cta svg { width: 13px; height: 13px; }
.is-unavailable .work-cta { color: var(--paper-muted); }
.is-unavailable .work-open { display: none; }
.works-footnote { display: flex; align-items: center; gap: 8px; padding-top: 27px; color: var(--muted); font-size: 10px; }
.works-footnote a { margin-left: auto; color: var(--ink); padding-block: 8px; }
.works-footnote a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-brand { display: flex; align-items: center; gap: 20px; font: italic 13px/1.7 Georgia, serif; letter-spacing: .06em; color: #dcc287; }
.footer-brand > span { font: 10px/1.7 var(--body-font); color: var(--muted); letter-spacing: 0; }
.footer-note { display: flex; align-items: center; gap: 22px; }
.footer-note > span { font-size: 20px; color: var(--accent); }
.loading-state { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
.empty-state { padding: 65px 24px; text-align: center; background: #203e58; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-symbol { display: block; font: 32px/1.7 var(--mono-font); color: #dfbd77; margin-bottom: 18px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 12px 0 24px; }
.empty-state button, .button-primary { display: inline-block; border-radius: 2px; background: var(--accent); color: #173249; padding: 11px 19px; font-size: 12px; }
.missing-state { margin: 50px 0 80px; padding: 90px 24px; }
.missing-state h1 { font-size: clamp(24px, 3vw, 36px); margin-top: 20px; }
.image-fallback { display: grid; place-items: center; position: absolute; inset: 0; min-height: 100%; background: #e6dbc1; color: #58636a; font-size: 12px; }
dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #d1b67e; border-radius: 3px; padding: 46px 40px 32px; background: var(--surface); color: var(--paper-ink); box-shadow: 0 24px 80px #05142399; }
dialog::backdrop { background: #081d30d6; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; background: transparent; font-size: 27px; line-height: 1; }
dialog > .eyebrow { font-size: 9px; color: #796238; }
dialog h2 { font-family: var(--serif-font); font-size: 33px; letter-spacing: .03em; line-height: 1.5; margin: 20px 0; }
dialog > p { font-size: 13px; color: var(--paper-muted); }
.about-steps { list-style: none; margin: 26px 0; padding: 0; border-top: 1px solid var(--paper-line); }
.about-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--paper-line); }
.about-steps li > span { font: italic 16px/1.6 Georgia, serif; color: #7f6632; }
.about-steps strong { font-size: 13px; }
.about-steps p { font-size: 11px; color: var(--paper-muted); margin-top: 4px; }
dialog > .about-footnote { font-size: 10px; }

/* Blue-and-gold gallery: oil painting, canvas grain, warm paper mounts. */
body::before { content: ""; pointer-events: none; position: fixed; inset: 0; z-index: 8; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.75' filter='url(%23grain)'/%3E%3C/svg%3E"); }
.hero-description { margin-top: 19px; color: #c7d0d2; font-size: 13px; line-height: 1.95; }
.hero-art { margin: 0; min-width: 0; padding: 9px; border: 1px solid #ac8e52; outline: 1px solid #48617a; outline-offset: 4px; background: #112a41; box-shadow: 0 10px 30px #06152333; }
.hero-art .picture { aspect-ratio: 16 / 9; height: auto; }
.hero-art img { position: absolute; inset: 0; object-position: 50% 52%; }
.hero-art figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 3px 2px; color: #d4bf90; font: 11px/1.4 var(--serif-font); letter-spacing: .08em; }
.hero-art figcaption > span:last-child { font: 8px/1.5 var(--mono-font); letter-spacing: .1em; color: #b7c1c8; }
.detail-intro .tag { background: #304d63; color: #dfd8c2; }
.project-card:focus-visible, .work-card:focus-visible { outline: 3px solid #e9c77e; outline-offset: 5px; }
dialog :focus-visible { outline-color: #285875; }

@media (min-width: 1500px) { .home-hero { padding-block: 46px; } }
@media (max-width: 1100px) {
  .page-width { width: calc(100% - 72px); } .header-inner { gap: 40px; }
  .home-hero { gap: 36px; grid-template-columns: 1fr 1.1fr; } .home-hero h1 { font-size: 46px; }
   
  .hero-stats > div { min-width: 80px; padding-right: 22px; } .hero-stats > div + div { padding-left: 22px; }
  .project-featured .project-card { grid-template-columns: 1.12fr 1fr; } .project-featured .project-copy { padding: 25px 26px; }
  .project-featured .project-copy h3 { font-size: 26px; } .project-featured .project-art { min-height: 346px; }
  .detail-hero { gap: 32px; } .detail-updated { display: none; }
  .work-grid { gap: 18px; } .work-copy { padding: 19px 18px 16px; } .work-copy h3 { font-size: 20px; } .work-description { font-size: 11px; }
  .model-filters button { gap: 7px; padding-inline: 8px; }
}
@media (max-width: 800px) {
  .page-width { width: calc(100% - 48px); } .header-inner { height: 80px; gap: 36px; } .header-note { display: none; }
  .main-nav { margin-left: auto; } .nav-library::after { bottom: -18px; }
  .home-hero { grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 46px; } .home-hero h1 { font-size: 38px; }
  .hero-heading > .eyebrow { font-size: 8px; gap: 7px; margin-bottom: 18px; } 
  .hero-stats { margin-top: 20px; } .hero-stats dd { font-size: 29px; } .hero-stats dt { font-size: 10px; }
  .hero-stats > div { min-width: 70px; padding-right: 20px; } .hero-stats > div + div { padding-left: 20px; }
  .project-featured .project-card { grid-template-columns: 1fr 1fr; } .project-featured .project-copy { padding: 23px 24px; }
  .project-featured .project-art { min-height: 346px; } .project-featured .project-copy h3 { font-size: 23px; }
  .project-topline { margin-bottom: 21px; } .project-description { font-size: 12px; }
  .project-models { gap: 9px; font-size: 10px; margin-top: 22px; margin-bottom: 18px; } .project-models .meta-separator { margin: 0 5px; }
  .project-copy { padding: 22px; } .project-copy h3 { font-size: 24px; }
  .project-featured .project-cta { min-width: 0; padding: 9px 12px; gap: 14px; } .project-updated { font-size: 9px; }
  .cover-title { font-size: 35px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .future-note { padding: 22px; gap: 16px; } .future-note > .eyebrow { display: none; } .library { padding-bottom: 48px; }
  .detail-hero { grid-template-columns: 1fr 1fr; gap: 24px; } .detail-intro h1 { font-size: 29px; } .detail-description { font-size: 12px; }
  .detail-cover { aspect-ratio: 1.15; } .detail-meta { gap: 9px; margin-top: 20px; font-size: 10px; }
  .works-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 10px; } .sort-field { margin-left: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } .work-description { font-size: 12px; } .footer-brand { gap: 14px; }
}
@media (max-width: 600px) {
  .page-width { width: calc(100% - 36px); } .header-inner { height: 76px; gap: 20px; }
  .brand { gap: 9px; } .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 17px; } .main-nav { gap: 20px; }
  .main-nav a, .main-nav button { font-size: 11px; } .nav-library > span { display: none; } .nav-library::after { bottom: -16px; }
  .home-hero { grid-template-columns: 1fr; gap: 20px; padding: 30px 0 28px; }
  .hero-heading > .eyebrow { font-size: 9px; margin-bottom: 12px; } .home-hero h1 { font-size: clamp(36px, 11vw, 52px); line-height: 1.28; }
   
  
  .hero-stats { margin: 0; } .hero-stats > div { flex: 1; padding-right: 24px; gap: 4px; } .hero-stats > div + div { padding-left: 24px; } .hero-stats dd { font-size: 29px; }
  .section-heading { margin-bottom: 18px; gap: 12px; } .section-heading h2 { font-size: 19px; gap: 11px; } .section-index { font-size: 8px; } .section-hint { display: none; }
  .library-toolbar { flex-direction: column; align-items: stretch; gap: 15px; margin-bottom: 19px; }
  .filter-tabs button { min-height: 42px; padding: 9px 14px; font-size: 11px; }
  .search-field { width: 100%; min-height: 44px; } .search-field input { padding-block: 12px; font-size: 13px; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; } .project-featured .project-card { display: flex; }
  .project-art, .project-featured .project-art { aspect-ratio: 16 / 10; min-height: 0; }
  .cover-label { top: 17px; left: 18px; font-size: 9px; }
  .cover-title { font-size: 34px; left: 18px; right: 18px; bottom: 17px; flex-direction: row; align-items: flex-end; } .cover-title > span { font-size: 8px; }
  .project-copy, .project-featured .project-copy { padding: 22px; } .project-topline { margin-bottom: 20px; }
  .project-copy h3, .project-featured .project-copy h3 { font-size: 25px; } .project-description { font-size: 12px; }
  .project-models { margin-block: 22px 19px; font-size: 11px; } .project-featured .project-cta { gap: 26px; padding: 10px 14px; }
  .project-updated { font-size: 10px; } .tags { margin-top: 14px; }
  .future-note { align-items: flex-start; padding: 21px 18px; gap: 14px; } .future-mark { width: 30px; height: 30px; font-size: 23px; }
  .future-note h3 { font-size: 13px; } .future-note p { font-size: 10px; line-height: 1.9; } .library { padding-bottom: 37px; }
  .breadcrumb { padding-top: 21px; font-size: 10px; gap: 12px; }
  .detail-hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 22px 0 26px; } .detail-intro { padding: 0; }
  .detail-intro > .eyebrow { font-size: 9px; margin-bottom: 14px; } .detail-intro h1 { font-size: 32px; margin-bottom: 15px; } .detail-description { font-size: 13px; }
  .detail-meta { font-size: 11px; margin-top: 19px; } .detail-cover { aspect-ratio: 16 / 9; }
  .project-brief { margin-bottom: 30px; } .project-brief summary { padding: 14px; font-size: 11px; } .project-brief > p { padding: 2px 16px 18px; font-size: 12px; }
  .works-toolbar { gap: 8px; margin-bottom: 20px; padding-bottom: 13px; }
  .model-filters { width: calc(100% + 36px); margin-inline: -18px; padding: 0 18px 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .model-filters button { flex: 0 0 auto; gap: 7px; padding: 8px 11px; } .sort-field { margin-left: auto; } .sort-field select { padding-block: 9px; }
  .work-grid { grid-template-columns: 1fr; gap: 22px; } .work-copy { padding: 23px 22px 20px; } .work-copy h3 { font-size: 25px; }
  .work-description { font-size: 13px; margin-bottom: 21px; } .work-model { top: 14px; left: 14px; font-size: 11px; } .work-version { top: 15px; right: 14px; }
  .work-open { opacity: 1; transform: none; } .work-cta { font-size: 12px; } .work-tags .tag { font-size: 10px; }
  .works-footnote { flex-wrap: wrap; padding-top: 22px; font-size: 10px; } .works-footnote a { width: 100%; margin: 4px 0 0; } .works-section { padding-bottom: 28px; }
  .site-footer { padding: 25px 0; align-items: flex-start; } .footer-brand { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 9px; }
  .footer-brand > span { font-size: 9px; } .footer-note { gap: 12px; font-size: 9px; } dialog { padding: 42px 25px 25px; } dialog h2 { font-size: 29px; }
}
@media (max-width: 800px) {
  .hero-description { font-size: 12px; margin-top: 16px; }
  .hero-art .picture { aspect-ratio: 1.22; }
  .hero-art figcaption { justify-content: center; }
  .hero-art figcaption > span:last-child { display: none; }
  .hero-stats > div { min-width: 68px; }
  .hero-stats > div + div { padding-left: 16px; }
  .project-featured .project-copy { padding-left: 13px; }
}
@media (max-width: 600px) {
  .home-hero { padding-top: 29px; padding-bottom: 34px; gap: 30px; }
  .hero-heading > .eyebrow { font-size: 9px; }
  .hero-description { margin-top: 16px; }
  .hero-stats { margin-top: 22px; }
  .hero-stats dd { font-size: 28px; }
  .hero-art { margin: 0 4px; padding: 7px; }
  .hero-art .picture { aspect-ratio: 16 / 9; }
  .hero-art figcaption { justify-content: center; font-size: 11px; }
  .hero-art figcaption > span:last-child { display: none; }
  .section-heading h2 { font-size: 22px; }
  .project-featured .project-copy { padding: 20px 22px 24px; }
  .detail-cover { border-width: 7px; margin: 0 4px; }
  .detail-intro h1 { font-size: 30px; }
  .work-model { top: 10px; left: 10px; }
  .work-version { top: 11px; right: 10px; }
}
@media (max-width: 360px) {
  dialog h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The oil-painting backdrop belongs only to the starry gallery. */
html[data-theme="starry"] body { background-image: linear-gradient(110deg, #12283ff5, #183550f2 60%, #142c45f0), url("media/starry-arcade-480-35264f351953a723.webp"); }
.section-hint > [data-theme-copy] { color: inherit; font-size: inherit; }
