/* H.R. Giger — 原生 HTML / CSS / JavaScript。无需编译或外部字体。 */
:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #202020;
  --text: #eeeae3;
  --muted: #a5a39e;
  --line: #393939;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-width: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-height: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.8 var(--sans); }
body.modal-open { overflow: hidden; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
img { display: block; max-width: 100%; }
::selection { background: #dad4c7; color: #111; }
:focus-visible { outline: 2px solid #e4d4b6; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 18px; color: #111; background: #fff; }
.skip-link:focus { top: 10px; }
.small-label, .eyebrow, .section-meta { font-size: 10px; letter-spacing: .15em; line-height: 1.5; color: var(--muted); }
.eyebrow { margin-bottom: 24px; }
.nav-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 30; height: var(--header-height); background: rgb(8 8 8 / 36%); border-bottom: 1px solid #ffffff20; backdrop-filter: blur(8px); transition: background .25s; }
.nav-header.is-scrolled { background: rgb(8 8 8 / 96%); }
.nav-container { max-width: 1680px; height: 100%; margin: auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.header-monogram { justify-self: start; font-weight: 700 !important; letter-spacing: -.07em; }
.header-monogram span { font-size: 6px !important; letter-spacing: .15em; margin-top: 5px !important; }
.nav-museum { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 36px; padding: 7px 17px; border-radius: 30px; background: #f0eee9; color: #111; font-size: 10px; white-space: nowrap; }
.nav-museum:hover { background: #fff; }
.nav-logo { font: 24px/1 var(--serif); white-space: nowrap; }
.nav-logo span { display: block; margin-top: 9px; font: 7px/1.3 var(--sans); letter-spacing: .15em; color: var(--muted); }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav-links a { font-size: 12px; color: #adadad; padding: 12px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; height: 1px; background: #d6cdbb; bottom: 4px; left: 0; right: 100%; transition: right .25s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-links a[aria-current]::after, .nav-links a:hover::after { right: 0; }
.menu-toggle { display: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: clamp(640px, 67vw, 1020px); min-height: 640px; display: grid; place-items: center; padding: calc(var(--header-height) + 40px) var(--gutter) 120px; background: #030303; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; background: url("assets/images/hero-mask.webp") center 35% / cover no-repeat; opacity: .62; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0004 0%, #0003 25%, #0007 55%, #030303 100%), radial-gradient(ellipse at 50% 32%, transparent 15%, #0009 85%); }
.hero-title { text-align: center; width: 100%; max-width: 850px; margin-top: -15px; text-shadow: 0 2px 24px #000; }
.hero h1 { font-size: clamp(60px, 6.7vw, 104px); letter-spacing: -.035em; line-height: 1.05; color: #f4f0e9; }
.hero-name { color: #c1bdb4; font-size: 10px; letter-spacing: .26em; margin-top: 24px; }
.hero-description { color: #d1cdc5; font-size: 12px; letter-spacing: .1em; margin-top: 15px; }
.hero-disciplines { font-size: 8px; color: #aaa59c; letter-spacing: .2em; margin-top: 24px; }
.hero-disciplines span { margin-inline: 13px; }
.hero-explore { display: inline-flex; align-items: center; gap: 24px; font-size: 9px; letter-spacing: .12em; min-height: 44px; padding: 8px 3px; margin-top: 20px; border-bottom: 1px solid #8c877c; }
.hero-explore:hover { color: #fff; border-color: #fff; }
.hero-scroll { position: absolute; bottom: 82px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 44px; padding: 10px; }
.hero-scroll > span:first-child { font-size: 7px; letter-spacing: .25em; color: #a39c90; }
.scroll-line { display: block; width: 1px; height: 36px; background: linear-gradient(#aaa18f, #aaa18f10); }
.hero-bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 21px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.hero-bottom .small-label { font-size: 8px; color: #878178; }
.hero-edition { display: flex; align-items: center; gap: 10px; font-size: 8px; letter-spacing: .17em; color: #b49b88; }
.hero-edition i { width: 4px; height: 4px; border-radius: 50%; background: #a35337; }
.mobile-break { display: none; }
.section { max-width: calc(var(--page-width) + 2 * var(--gutter)); margin-inline: auto; padding: 84px var(--gutter) 100px; }
.introduction { text-align: center; padding-block: 120px; border-top: 1px solid #202020; }
.introduction h2 { font-size: clamp(25px, 3.1vw, 40px); }
em { font-weight: 400; }
.intro-cn { font-size: 12px; color: var(--muted); margin: 20px auto 38px; letter-spacing: .1em; }
.intro-copy { max-width: 610px; margin: auto; color: var(--muted); font-size: 13px; line-height: 2.15; }
.intro-copy p + p { margin-top: 20px; }
.ruled-section { padding-top: 0; }
.section-meta { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; margin-bottom: 48px; border-top: 1px solid var(--line); font-size: 8px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(29px, 3.7vw, 46px); letter-spacing: -.025em; }
.section-heading p { color: var(--muted); font-size: 11px; letter-spacing: .1em; margin-top: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); min-width: 0; }
.image-button { padding: 0; background: #111; width: 100%; display: block; position: relative; overflow: hidden; text-align: left; }
.image-button img { width: 100%; height: auto; transition: transform .65s ease, filter .65s ease; }
.image-zoom { position: absolute; bottom: 10px; right: 12px; padding: 1px 8px; color: #fff; background: #0009; opacity: 0; transition: opacity .2s; }
.card .image-button img { aspect-ratio: 1.4; object-fit: cover; }
.card-text { padding: 22px 20px 28px; }
.card-text .small-label { font-size: 8px; }
.card h3 { font-size: clamp(18px, 1.8vw, 23px); margin-top: 10px; }
.card-text .chinese-title { color: #d6d2c9; font-size: 11px; margin-top: 10px; }
.card-text p:last-child { color: var(--muted); font-size: 12px; margin-top: 16px; line-height: 1.9; }
.surface { background: var(--surface); }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; align-items: start; }
.art-item { min-width: 0; }
.art-item img { aspect-ratio: 1.15; object-fit: cover; }
.art-item:nth-child(2) { grid-row: span 2; }
.art-item:nth-child(2) img { aspect-ratio: .63; }
.art-item:nth-child(5) img { aspect-ratio: .85; }
.art-item figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.art-item figcaption span:last-child { font-size: 7px; letter-spacing: .1em; }
.text-image-block { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.biomechanic-image img { aspect-ratio: .76; object-fit: cover; }
.biomechanic-copy h2 { font-size: clamp(29px, 3.5vw, 45px); }
.biomechanic-copy .eyebrow { font-size: 8px; }
.lead-cn { margin: 24px 0; font-size: 12px; color: #d5d1c9; }
.biomechanic-copy > p:not(.eyebrow):not(.lead-cn) { color: var(--muted); font-size: 12px; line-height: 2.2; }
.design-notes { margin: 28px 0; }
.design-notes > div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; border-top: 1px solid var(--line); padding: 13px 0; font-size: 10px; }
.design-notes dt { color: #d5d1c9; }
.design-notes dd { color: var(--muted); }
.text-link { font-size: 11px; border-bottom: 1px solid #78746c; padding-bottom: 7px; display: inline-flex; gap: 34px; align-items: center; }
.timeline { max-width: 810px; margin: 0 auto; }
.timeline ol { padding: 10px 0 0; margin: 0; list-style: none; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 0 0 40px 28px; margin-left: 4px; border-left: 1px solid #555; position: relative; }
.timeline-item::before { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid #a9a69d; background: var(--surface); border-radius: 50%; top: 9px; left: -4px; }
.timeline-item:last-child { padding-bottom: 6px; }
.year { font: 26px/1.1 var(--serif); color: #c0bcb4; }
.timeline-item h3 { font-size: 20px; color: #ddd8ce; }
.timeline-item p { font-size: 12px; color: var(--muted); margin-top: 12px; }
.source-link { margin: 36px 0 0 32px; font-size: 10px; color: #b8b5af; }
.gallery { display: grid; gap: 8px; }
.archive-item img { width: 100%; height: auto; }
.archive-caption { position: absolute; inset: auto 0 0; padding: 35px 22px 14px; background: linear-gradient(transparent, #000a); display: flex; justify-content: space-between; gap: 16px; color: #f5f1ea; font-size: 11px; opacity: 0; transition: opacity .2s; }
.archive-caption span:last-child { font-size: 8px; letter-spacing: .1em; }
.table-wrap { width: 100%; overflow-x: auto; scrollbar-color: #777 #262626; }
table { border-collapse: collapse; width: 100%; min-width: 690px; font-size: 11px; text-align: left; }
th, td { border-bottom: 1px solid #414141; padding: 18px 20px 18px 0; }
thead th { font-size: 9px; color: var(--muted); font-weight: 400; letter-spacing: .07em; }
tbody th { font-weight: 400; color: #e5e0d6; }
td { color: #aaa79f; }
.museum { text-align: center; padding-block: 110px; }
.museum h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.025em; }
.museum > p:not(.eyebrow) { font: italic 15px/1.8 var(--serif); color: var(--muted); margin-top: 20px; }
.museum-link { display: inline-flex; align-items: center; gap: 40px; color: #111; background: #e9e6df; border-radius: 40px; padding: 13px 25px; font-size: 12px; margin-top: 32px; min-height: 48px; }
.site-footer { padding: 55px var(--gutter) 26px; background: var(--surface); }
.footer-top, .footer-bottom { max-width: var(--page-width); margin: auto; display: flex; justify-content: space-between; gap: 30px; }
.footer-top { align-items: flex-start; padding-bottom: 45px; }
.footer-top p { font-size: 8px; letter-spacing: .13em; color: var(--muted); margin-top: 16px; }
.footer-top nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; font-size: 11px; color: #bbb; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 9px; }
.footer-bottom > span { font-size: 8px; letter-spacing: .09em; flex-shrink: 0; }
.lightbox { border: 1px solid #4c4c4c; padding: 0; background: #121212; color: var(--text); width: min(1100px, calc(100% - 32px)); max-height: 92vh; max-height: 92dvh; }
.lightbox::backdrop { background: rgb(0 0 0 / 92%); }
.lightbox-panel { padding: 16px; }
.lightbox-toolbar, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-toolbar { margin-bottom: 16px; font-size: 11px; color: var(--muted); }
.lightbox button { background: #262626; min-width: 48px; min-height: 44px; padding: 8px 14px; }
.lightbox-image { width: 100%; height: min(66vh, 700px); height: min(66dvh, 700px); object-fit: contain; }
.lightbox-bottom { margin-top: 16px; }
.lightbox-bottom p { text-align: center; font-size: 13px; }
@media (hover: hover) {
  .image-button:hover img { transform: scale(1.035); filter: brightness(1.08); }
  .image-button:hover .image-zoom, .image-button:hover .archive-caption { opacity: 1; }
  .museum-link:hover { background: #fff; }
}
.image-button:focus-visible .image-zoom, .image-button:focus-visible .archive-caption { opacity: 1; }
/* 平板：卡片两列，图文仍保持并列。 */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .card .image-button img { aspect-ratio: 1.7; }
  .nav-links { gap: 17px; }
  .nav-links a { font-size: 11px; }
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-item:nth-child(2) { grid-row: auto; }
  .art-item:nth-child(n) img { aspect-ratio: 1; }
  .text-image-block { gap: 32px; }
}
/* 手机：展开式导航、单列图文、自适应图片与可横滑表格。 */
@media (max-width: 760px) {
  :root { --header-height: 68px; --gutter: 22px; }
  .nav-logo { font-size: 22px; }
  .nav-logo span { font-size: 6px; margin-top: 7px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0 8px 12px; background: none; font-size: 11px; }
  .menu-lines, .menu-lines::after { display: block; width: 20px; height: 1px; background: #eee; transition: transform .2s; }
  .menu-lines { position: relative; transform: translateY(-3px); }
  .menu-lines::after { content: ""; position: absolute; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-90deg); }
  .nav-header { height: auto; min-height: var(--header-height); }
  .nav-container { min-height: var(--header-height); grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: var(--header-height) auto; gap: 0 18px; }
  .header-monogram { grid-column: 1; grid-row: 1; }
  .nav-museum { grid-column: 2; grid-row: 1; min-height: 34px; font-size: 10px; padding: 6px 13px; gap: 12px; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; padding: 12px 0 24px; gap: 4px 24px; }
  .nav-header:has(.is-open) { background: #080808; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open { display: grid; }
  .nav-links a { font-size: 13px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid #2e2e2e; }
  .nav-links a::after { display: none; }
  .hero { height: 100vh; height: 100svh; min-height: 640px; padding: 110px var(--gutter) 145px; }
  .hero-backdrop { background-position: 50% 24%; background-size: auto 100%; opacity: .63; }
  .hero-title { margin-top: -20px; }
  .hero h1 { font-size: clamp(52px, 13.7vw, 82px); }
  .hero-name { font-size: 8px; letter-spacing: .15em; margin-top: 20px; }
  .hero-description { font-size: 11px; line-height: 2; letter-spacing: .06em; }
  .mobile-break { display: block; }
  .hero-disciplines { font-size: 7px; letter-spacing: .1em; margin-top: 20px; }
  .hero-disciplines span { margin-inline: 7px; }
  .hero-explore { font-size: 8px; margin-top: 18px; }
  .hero-scroll { bottom: 90px; }
  .hero-bottom { align-items: flex-end; gap: 16px; bottom: 24px; }
  .hero-edition { max-width: 146px; font-size: 6px; line-height: 1.8; gap: 8px; }
  .hero-edition i { flex-shrink: 0; }
  .hero-bottom .small-label { max-width: 112px; text-align: right; font-size: 6px; line-height: 1.8; }
  .section { padding-top: 60px; padding-bottom: 64px; }
  .introduction { padding-block: 80px; }
  .introduction h2 { font-size: clamp(23px, 5.2vw, 33px); line-height: 1.25; }
  .intro-copy { font-size: 12px; text-align: left; }
  .intro-cn { font-size: 10px; margin-bottom: 28px; }
  .ruled-section { padding-top: 0; }
  .section-meta { font-size: 7px; margin-bottom: 32px; gap: 12px; }
  .section-meta span:last-child { text-align: right; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > .small-label { display: none; }
  .section-heading p { font-size: 10px; }
  .card-grid { gap: 14px; }
  .card-text { padding: 18px 15px 22px; }
  .card h3 { font-size: 20px; overflow-wrap: anywhere; }
  .card-text p:last-child { font-size: 11px; }
  .card .image-button img { aspect-ratio: 1.1; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .art-item figcaption { font-size: 10px; }
  .text-image-block { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .biomechanic-image img { aspect-ratio: .95; object-position: center 42%; }
  .biomechanic-copy h2 { font-size: 35px; }
  .timeline-item { grid-template-columns: 62px minmax(0, 1fr); gap: 16px; padding: 0 0 34px 20px; }
  .year { font-size: 23px; }
  .timeline-item h3 { font-size: 19px; }
  .timeline-item p { font-size: 11px; }
  .gallery { gap: 9px; }
  .archive-caption { opacity: 1; padding: 25px 10px 8px; font-size: 9px; }
  .archive-caption span:last-child { display: none; }
  .image-zoom { opacity: 1; font-size: 12px; }
  .museum { padding-block: 75px; }
  .museum h2 { font-size: 36px; }
  .footer-top { flex-wrap: wrap; gap: 30px; }
  .footer-top > div { flex-basis: 100%; }
  .footer-top nav { gap: 12px 30px; }
  .footer-bottom { display: block; line-height: 1.9; }
  .footer-bottom p { margin-top: 12px; }
  .lightbox { width: calc(100% - 20px); }
  .lightbox-panel { padding: 10px; }
}
@media (max-width: 420px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .card .image-button img { aspect-ratio: 1.7; }
  .card-text { padding: 22px; }
  .card h3 { font-size: 25px; }
  .card-text p:last-child { font-size: 12px; }
  .section-heading h2 { font-size: 29px; }
  .biomechanic-copy h2 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

  /* 保持原画廊比例，以高清图填充；放大弹窗显示完整图像。 */
.archive-item img { aspect-ratio: var(--archive-ratio); object-fit: cover; object-position: var(--archive-position, center); }
