:root {
  --ink: #22211e;
  --paper: #f7f6f2;
  --muted: #77736b;
  --line: #dedbd3;
  --accent: #ae6946;
  --accent-light: #e7b69b;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body:has(.lightbox:not([hidden])) { overflow: hidden; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.sr-only { border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.site-shell { overflow: hidden; }
.topbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; height: 76px; justify-content: space-between; margin: 0 auto; max-width: 1440px; padding: 0 5.6vw; }
.brand, .footer-brand { align-items: center; display: inline-flex; gap: 10px; }
.brand-mark { align-items: center; background: var(--ink); color: var(--paper); display: inline-flex; font-family: var(--serif); font-size: 19px; height: 32px; justify-content: center; line-height: 1; width: 32px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 14px; letter-spacing: .18em; }
.brand-copy small, .footer { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.top-nav { margin-left: auto; margin-right: 5vw; }
.top-nav a { color: var(--muted); font-size: 12px; }
.top-nav a:hover, .footer a:hover { color: var(--accent); }
.top-actions { align-items: center; display: flex; gap: 16px; }
.language-picker { border-bottom: 1px solid var(--line); position: relative; }
.language-picker::after { color: var(--accent); content: "⌄"; font-size: 13px; pointer-events: none; position: absolute; right: 0; top: 3px; }
.language-picker select { appearance: none; background: transparent; border: 0; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 10px; outline: 0; padding: 5px 18px 7px 0; }
.contact-button { align-items: center; border: 1px solid var(--ink); display: inline-flex; font-size: 11px; gap: 14px; padding: 9px 13px; transition: background .2s, color .2s; }
.contact-button:hover { background: var(--ink); color: var(--paper); }
.contact-button b, .primary-button b { color: var(--accent); font-size: 15px; font-weight: 400; }

.hero { align-items: center; display: grid; gap: 8vw; grid-template-columns: minmax(0, .86fr) minmax(360px, 1fr); margin: 0 auto; max-width: 1440px; min-height: 540px; padding: 64px 5.6vw 76px; }
.hero-copy { max-width: 500px; }
.eyebrow, .section-kicker { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; margin: 0 0 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); font-weight: 600; letter-spacing: -.08em; line-height: 1.12; margin-bottom: 20px; }
h1 span, h1 em { display: block; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-intro { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 30px; max-width: 360px; }
.primary-button { align-items: center; background: var(--ink); border: 0; color: var(--paper); display: inline-flex; font-size: 12px; gap: 32px; justify-content: space-between; min-width: 122px; padding: 13px 15px; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--accent); transform: translateY(-1px); }
.primary-button b { color: var(--paper); }
.hero-notes { border-top: 1px solid var(--line); display: flex; gap: 32px; margin-top: 46px; padding-top: 14px; }
.hero-notes > div { align-items: center; display: flex; gap: 8px; }
.hero-notes strong { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.hero-notes span { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; line-height: 1.45; }
.hero-visual { justify-self: end; max-width: 560px; width: 100%; }
.hero-frame { background: #d4a181; padding: 9px; }
.hero-frame img { aspect-ratio: 1.08 / 1; object-fit: cover; object-position: center; width: 100%; }

.cases-section { margin: 0 auto; max-width: 1440px; padding: 34px 5.6vw 92px; }
.section-heading { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 20px; }
.section-heading .section-kicker { margin-bottom: 10px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -.07em; line-height: 1; margin: 0; }
.case-tools { align-items: center; display: flex; gap: 10px; }
.search-box { align-items: center; border-bottom: 1px solid var(--ink); display: flex; gap: 6px; margin-right: 6px; padding: 0 0 7px; }
.search-box > span:first-child { color: var(--accent); font-size: 18px; line-height: 1; }
.search-box input { background: transparent; border: 0; color: var(--ink); font-family: var(--mono); font-size: 10px; outline: none; padding: 0; width: 120px; }
.search-box input::placeholder { color: var(--muted); }
.view-toggle { background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 16px; height: 29px; line-height: 1; width: 29px; }
.view-toggle.is-active, .view-toggle:hover { background: var(--ink); color: var(--paper); }
.filter-row { display: flex; gap: 7px; margin: 24px 0 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.filter-chip { background: transparent; border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; font-size: 11px; padding: 8px 11px; transition: background .2s, border .2s, color .2s; }
.filter-chip span { color: inherit; font-family: var(--mono); font-size: 9px; margin-left: 4px; opacity: .7; }
.filter-chip:hover, .filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.results-line { border-bottom: 1px solid var(--line); color: var(--muted); display: flex; font-family: var(--mono); font-size: 9px; justify-content: space-between; letter-spacing: .04em; padding-bottom: 10px; }
.gallery-grid { display: grid; gap: 12px; grid-auto-flow: dense; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.gallery-card { background: #e7e4dc; cursor: pointer; min-width: 0; overflow: hidden; position: relative; }
.gallery-card.is-wide { grid-column: span 2; }
.gallery-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery-card img { aspect-ratio: 1 / 1.08; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; width: 100%; }
.gallery-card.is-wide img { aspect-ratio: 2 / 1.08; }
.gallery-card:hover img, .gallery-card:focus-visible img { filter: saturate(.82); transform: scale(1.025); }
.gallery-card figcaption { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); bottom: 0; color: var(--paper); left: 0; opacity: 0; padding: 34px 14px 12px; position: absolute; right: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.gallery-card:hover figcaption, .gallery-card:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.gallery-card figcaption strong { display: block; font-size: 12px; font-weight: 500; }
.gallery-card figcaption span { color: #d7c8be; display: block; font-family: var(--mono); font-size: 8px; margin-top: 4px; }
.empty-state { align-items: center; display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 180px; text-align: center; }
.empty-state strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.empty-state span { color: var(--muted); font-size: 12px; }
.gallery-grid.is-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-grid.is-compact .gallery-card, .gallery-grid.is-compact .gallery-card.is-wide { grid-column: span 1; }
.gallery-grid.is-compact .gallery-card img, .gallery-grid.is-compact .gallery-card.is-wide img { aspect-ratio: 1 / 1; }

.meeting-section { padding: 0 5.6vw 72px; }
.meeting-card { align-items: center; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 0 auto; max-width: 1440px; padding: 30px 0; }
.meeting-card .section-kicker { margin-bottom: 12px; }
.meeting-section h2 { font-family: var(--serif); font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: -.06em; line-height: 1.25; margin: 0; }
.primary-button.light { background: transparent; border: 1px solid var(--ink); color: var(--ink); min-width: 150px; }
.primary-button.light b { color: var(--accent); }

.footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 0 auto; max-width: 1440px; padding: 22px 5.6vw 28px; }
.footer-brand { gap: 8px; }
.footer-brand .brand-mark { font-size: 13px; height: 24px; width: 24px; }
.footer a { color: var(--ink); }

.lightbox { align-items: center; background: rgba(20, 19, 16, .96); display: flex; inset: 0; justify-content: center; padding: 5vh 7vw; position: fixed; z-index: 20; }
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: 1100px; width: min(100%, 1100px); }
.lightbox-image-wrap { align-items: center; display: flex; height: min(72vh, 720px); justify-content: center; }
.lightbox-image-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox-meta { align-items: end; color: var(--paper); display: flex; justify-content: space-between; margin-top: 16px; }
.lightbox-index, .lightbox-hint { color: var(--accent-light); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.lightbox-meta h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 7px 0 3px; }
.lightbox-meta p { color: #aaa59a; font-size: 11px; margin: 0; }
.lightbox-close, .lightbox-nav { background: transparent; border: 1px solid rgba(243, 240, 232, .25); color: var(--paper); position: absolute; transition: background .2s, border .2s; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close { font-size: 24px; height: 42px; line-height: 1; right: 26px; top: 24px; width: 42px; }
.lightbox-nav { align-items: center; display: flex; font-size: 22px; height: 50px; justify-content: center; top: 50%; width: 50px; }
.lightbox-nav.prev { left: 26px; }
.lightbox-nav.next { right: 26px; }

@media (max-width: 900px) {
  .hero { gap: 36px; grid-template-columns: 1fr; padding-top: 48px; }
  .hero-copy { max-width: 600px; }
  .hero-visual { justify-self: start; max-width: 680px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar { height: auto; padding: 18px 6vw; }
  .top-nav { margin-right: 18px; }
  .contact-button { font-size: 0; gap: 0; padding: 8px 10px; }
  .contact-button b { font-size: 16px; }
  .hero { min-height: auto; padding: 48px 6vw 58px; }
  h1 { font-size: clamp(43px, 14vw, 68px); }
  .hero-intro { font-size: 13px; }
  .hero-notes { gap: 22px; margin-top: 36px; }
  .hero-frame { padding: 7px; }
  .hero-frame img { aspect-ratio: 1 / 1.05; }
  .cases-section { padding: 24px 6vw 68px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .section-heading h2 { font-size: 42px; }
  .case-tools { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .results-line { align-items: flex-start; flex-direction: column; gap: 5px; line-height: 1.5; }
  .gallery-grid, .gallery-grid.is-compact { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card.is-wide, .gallery-grid.is-compact .gallery-card.is-wide { grid-column: span 2; }
  .meeting-section { padding: 0 6vw 56px; }
  .meeting-card { align-items: flex-start; flex-direction: column; gap: 22px; padding: 26px 0; }
  .meeting-section h2 { font-size: 30px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 20px 6vw 26px; }
  .lightbox { padding: 72px 16px 26px; }
  .lightbox-image-wrap { height: min(62vh, 560px); }
  .lightbox-meta { align-items: flex-start; flex-direction: column; gap: 16px; }
  .lightbox-nav { background: rgba(20, 19, 16, .6); bottom: 26px; top: auto; }
  .lightbox-nav.prev { left: 16px; }
  .lightbox-nav.next { right: 16px; }
}

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