#root { min-height: 100vh; }

:root {
  --paper: #f2efe8;
  --paper-soft: #faf8f3;
  --ink: #171715;
  --muted: #66635d;
  --line: rgba(23, 23, 21, 0.16);
  --accent: #bd4b2f;
  --accent-soft: #e7cab9;
  --blue: #244f73;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", Georgia, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: white; border-radius: 99px; }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(242, 239, 232, 0.94); backdrop-filter: blur(18px); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--serif); font-size: 12px; letter-spacing: 0; }
.nav-panel { display: flex; gap: 32px; align-items: center; font-size: 13px; }
.nav-panel a { position: relative; padding: 8px 0; }
.nav-panel a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; transform: scaleX(0); transform-origin: right; background: var(--ink); transition: transform 220ms ease; }
.nav-panel a:hover::after, .nav-panel a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.availability { justify-self: end; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 99px; font-size: 12px; transition: background 180ms ease, color 180ms ease; }
.availability span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.availability b { font-weight: 400; }
.availability:hover { background: var(--ink); color: var(--paper-soft); }
.menu-button { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.menu-icon, .menu-icon::before { display: block; width: 16px; height: 1px; background: currentColor; transition: transform 180ms ease; }
.menu-icon::before { content: ""; transform: translateY(-5px); }
.menu-button[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: rotate(-90deg); }

.hero { min-height: calc(100svh - 76px); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap: clamp(40px, 7vw, 120px); align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 32px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(52px, 8vw, 128px); font-weight: 400; letter-spacing: -.02em; line-height: 1.14; }
.hero h1 em { display: block; color: var(--accent); font-weight: 400; }
.hero-intro { max-width: 520px; margin-top: 50px; }
.hero-intro p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.85; }
.hero-art { position: relative; justify-self: end; width: min(100%, 560px); margin: 0; }
.hero-frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 220px 220px 16px 16px; background: #d4d0c4; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--accent); color: #fff9f2; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-content { display: flex; align-items: center; padding: 17px 0; font-family: var(--serif); font-size: 18px; line-height: 1; white-space: nowrap; }
.marquee-content span { display: inline-flex; align-items: center; gap: 34px; margin-right: 34px; line-height: 1; }
.marquee-content i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

.series-section, .works-section { padding: 132px 0; }
.series-section { border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: 58px; }
.section-index { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 82px); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.series-list { border-top: 1px solid var(--line); }
.series-row { width: 100%; display: grid; grid-template-columns: 90px minmax(0, 1fr) 150px 54px; align-items: center; gap: 20px; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: color 200ms ease, padding 200ms ease; }
.series-row:hover { padding-left: 12px; color: var(--accent); }
.series-row > span:first-child, .series-period { color: var(--muted); font-size: 11px; }
.series-name { display: flex; align-items: baseline; gap: 20px; }
.series-name strong { font-family: var(--serif); font-size: clamp(27px, 3.2vw, 44px); font-weight: 400; }
.series-name small { color: var(--muted); font-family: var(--serif); font-size: 13px; }
.series-arrow { display: grid; place-items: center; justify-self: end; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; }
.series-arrow svg { width: 17px; }
.series-links { display: grid; justify-items: end; margin-top: 28px; }
.series-links[hidden] { display: none; }
.series-links a { display: inline-grid; grid-template-columns: auto auto 18px; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; transition: border-color 180ms ease, color 180ms ease, background 180ms ease; }
.series-links a strong { color: var(--ink); font-weight: 400; }
.series-links a svg { width: 16px; }
.series-links a:hover { border-color: var(--ink); background: var(--paper-soft); color: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 44px 168px; }
.filters button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: border-color 180ms ease, background 180ms ease, color 180ms ease; }
.filters button:hover, .filters button.active { border-color: var(--ink); background: var(--ink); color: var(--paper-soft); }
.works-grid { display: flex; gap: 28px; align-items: flex-start; }
.works-col { flex: 1 1 0; min-width: 0; }
.work-card { display: block; min-width: 0; margin-bottom: 72px; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: zoom-in; }
.art-frame { position: relative; overflow: hidden; display: block; width: 100%; min-height: 0; max-height: calc(100vh - 175px); max-height: calc(100dvh - 175px); background: #d9d5cc; }
.art-frame img, .work-card.portrait .art-frame img, .work-card.landscape .art-frame img, .work-card.square .art-frame img { display: block; width: 100%; height: auto; max-height: calc(100vh - 175px); max-height: calc(100dvh - 175px); object-fit: contain; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.view-work { position: absolute; right: 16px; bottom: 16px; padding: 9px 12px; border-radius: 99px; background: rgba(250,248,243,.9); color: var(--ink); font-size: 11px; opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 220ms ease; backdrop-filter: blur(8px); }
.work-open:hover .view-work, .work-open:focus-visible .view-work { opacity: 1; transform: translateY(0); }
.work-open:hover .art-frame img { transform: scale(1.025); }
.work-info { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding-top: 17px; border-top: 1px solid var(--line); margin-top: 13px; }
.work-info > span:first-child { display: grid; gap: 7px; }
.work-info strong { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.work-info small, .work-number { color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty-state { padding: 80px 20px; border: 1px solid var(--line); color: var(--muted); text-align: center; }

.about-section { padding: 132px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-soft); }
.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 9vw, 150px); align-items: start; }
.about-grid .portrait { position: sticky; top: 112px; margin: 0; }
.portrait-frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 220px 220px 0 0; background: var(--accent-soft); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { max-width: 800px; margin: 18px 0 54px; font-family: var(--serif); font-size: clamp(42px, 5.7vw, 78px); font-weight: 400; letter-spacing: -.055em; line-height: 1.03; }
.about-copy h2 em { color: var(--accent); font-weight: 400; }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-left: 17%; }
.about-body p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 52px 0 0 17%; }
.credential-block h3 { margin: 0 0 18px; font-size: 11px; font-weight: 400; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.credential-block p { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 14px; }
.credential-block p span { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 72px; border: 1px solid var(--line); background: var(--line); }
.facts div { min-height: 142px; padding: 22px; background: var(--paper-soft); }
.facts strong { display: block; margin-bottom: 30px; font-family: var(--serif); font-size: 32px; font-weight: 400; }
.facts span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.contact-section { position: relative; overflow: hidden; padding: 132px 0; background: var(--ink); color: #f8f4eb; }
.contact-section::before { content: "CONTACT"; position: absolute; right: -30px; bottom: -.22em; color: rgba(255,255,255,.035); font-family: var(--serif); font-size: clamp(120px, 22vw, 320px); line-height: 1; pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(60px, 10vw, 150px); align-items: end; }
.contact-section .section-index, .contact-intro { color: rgba(248,244,235,.6); }
.contact-section h2 { margin: 18px 0 34px; font-family: var(--serif); font-size: clamp(52px, 7vw, 100px); font-weight: 400; letter-spacing: -.06em; line-height: .92; }
.contact-intro { max-width: 430px; margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.8; }
.contact-methods { display: grid; }
.contact-methods > * { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-methods span { color: rgba(248,244,235,.5); font-size: 11px; text-transform: uppercase; }
.contact-methods strong { overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(18px, 2.3vw, 28px); font-weight: 400; }
.contact-methods svg { width: 18px; }
.contact-methods a { transition: color 180ms ease; }
.contact-methods a:hover { color: #e77754; }
.footer { border-top: 1px solid rgba(255,255,255,.14); background: var(--ink); color: rgba(248,244,235,.52); font-size: 11px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 38px; padding-bottom: 38px; }
.footer nav { display: flex; gap: 24px; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(10,10,10,.78); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox-panel { position: relative; width: min(1180px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); overflow: auto; border-radius: 18px; background: var(--paper-soft); }
.close-button { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-soft); color: var(--ink); cursor: pointer; }
.close-button svg { width: 19px; }
.lightbox-art { position: relative; display: grid; place-items: center; min-height: 70vh; padding: 28px; background: #dedad1; }
.lightbox-art img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }
.gallery-controls { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 99px; background: rgba(250,248,243,.92); }
.gallery-controls button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.gallery-controls svg { width: 17px; }
.gallery-controls span { min-width: 42px; font-size: 11px; text-align: center; }
.lightbox-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 72px 38px 38px; }
.lightbox-index { margin-bottom: 18px; color: var(--accent); font-size: 11px; }
.lightbox-series { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.lightbox-copy h3 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 58px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.lightbox-title-en { margin: 8px 0 26px; color: var(--muted); font-family: var(--serif); font-style: italic; }
.lightbox-description { margin: 0; color: var(--muted); font-family: var(--serif); line-height: 1.8; }
.lightbox-copy dl { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.lightbox-copy dl div { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 5px 0; font-size: 11px; }
.lightbox-copy dt { color: var(--muted); }
.lightbox-copy dd { margin: 0; }

@media (max-width: 960px) {
  .shell { width: min(calc(100% - 32px), 760px); }
  .nav { grid-template-columns: 1fr auto; }
  .availability { display: none; }
  .menu-button { display: grid; justify-self: end; }
  .nav-panel { position: absolute; top: 100%; right: 0; left: 0; display: none; height: calc(100vh - 77px); place-content: center; gap: 24px; background: var(--paper); font-family: var(--serif); font-size: 36px; text-align: center; opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity 180ms ease, transform 180ms ease; }
  .nav-panel.is-open { display: grid; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .hero { grid-template-columns: 1fr; padding-top: 84px; }
  .hero-art { width: min(86%, 580px); margin: 34px auto 0; justify-self: center; }
  .section-heading { grid-template-columns: 1fr auto; }
  .filters { margin-left: 112px; }
  .works-grid { gap: 20px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { position: static; width: min(70%, 480px); }
  .lightbox-panel { grid-template-columns: 1fr; }
  .lightbox-copy { min-height: 340px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 24px); }
  .topbar .shell { width: calc(100% - 28px); }
  .hero { min-height: auto; padding-top: 62px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(46px, 16vw, 92px); }
  .hero-intro { margin-top: 36px; }
  .hero-art { width: calc(100% - 24px); margin-top: 20px; }
  .series-section, .works-section, .about-section, .contact-section { padding: 88px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .section-heading p { grid-column: auto; }
  .series-row { grid-template-columns: 38px minmax(0, 1fr) 42px; gap: 10px; }
  .series-name { display: grid; gap: 4px; }
  .series-name strong { font-size: 27px; }
  .series-period { display: none; }
  .filters { margin: 0 0 34px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filters button { flex: 0 0 auto; }
  .works-grid { flex-direction: column; gap: 0; }
  .work-card { margin-bottom: 58px; }
  .work-card:nth-child(even) { width: 88%; margin-left: 12%; }
  .work-card .art-frame img, .work-card.portrait .art-frame img, .work-card.landscape .art-frame img, .work-card.square .art-frame img { width: 100%; height: auto; object-fit: contain; }
  .art-frame { min-height: 0; }
  .about-grid { gap: 56px; }
  .about-grid .portrait { width: 82%; }
  .about-copy h2 { margin-bottom: 36px; }
  .about-body { grid-template-columns: 1fr; gap: 20px; margin-left: 0; }
  .credentials { grid-template-columns: 1fr; margin-left: 0; }
  .facts { grid-template-columns: 1fr; margin-top: 48px; }
  .facts div { min-height: 112px; }
  .facts strong { margin-bottom: 16px; }
  .contact-grid { gap: 60px; }
  .contact-methods > * { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .footer-inner { flex-direction: column; }
  .lightbox { padding: 0; }
  .lightbox-panel { width: 100%; min-height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .lightbox-art { min-height: 48vh; padding: 12px; }
  .lightbox-art img { max-height: 58vh; }
  .lightbox-copy { min-height: auto; padding: 42px 24px 28px; }
}

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