:root {
  color-scheme: dark;
  --page: #131513;
  --panel: #1b1d1a;
  --line: #373b33;
  --text: #f5f5ed;
  --muted: #b7baae;
  --accent: #d9f477;
  --max: 1280px;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a, button { color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
figure, h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(calc(100% - 6rem), var(--max)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 2.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1rem; font-weight: 650; white-space: nowrap; }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px;
  background: var(--accent); color: #151814; font-size: 1.03rem; font-weight: 800;
}
nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; font-size: .9rem; color: var(--muted); }
nav a:hover, .footer-links a:hover { color: var(--accent); }
#language {
  border: 1px solid var(--line); min-width: 52px; height: 36px; padding: 0 .6rem; border-radius: 6px;
  background: transparent; font-size: .875rem;
}
#language:hover { border-color: var(--accent); }
.hero {
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(1.8rem, 5vw, 5.5rem);
  padding-block: clamp(3rem, 7vw, 5.6rem);
}
.eyebrow {
  font-size: .875rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.hero h1 {
  font-size: clamp(4rem, 6.95vw, 7.4rem); letter-spacing: -.058em; line-height: .98;
  font-weight: 700; margin-block: 1.35rem 1.45rem;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--accent); font-style: normal; }
.intro, .project-copy p, .experience-copy p { line-height: 1.65; }
.intro { max-width: 29rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem 1.6rem; margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.1rem; border-radius: 7px; font-weight: 700; }
.primary { background: var(--accent); color: #171a13; }
.primary:hover { background: #e6faab; }
.text-link { color: var(--text); text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #6c735f; }
.text-link:hover { text-decoration-color: var(--accent); }
.hero-art { position: relative; overflow: hidden; border-radius: 12px; background: #665448; }
.hero-art img { height: clamp(400px, 40vw, 582px); object-fit: cover; object-position: 50% 43%; }
.hero-art figcaption {
  position: absolute; inset: auto auto 18px 18px; max-width: calc(100% - 36px); border-radius: 5px;
  background: #151714ec; padding: .58rem .76rem; font-size: .82rem; color: #f5f5ed;
}
.section { padding-block: 2.65rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; }
.imagery-list, .video-grid { margin-top: 1.6rem; }
.imagery-list { display: grid; gap: 2.5rem; }
.imagery-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem 1.5rem; margin-bottom: 1.2rem; }
.imagery-intro h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -.035em; }
.imagery-intro p { color: var(--muted); line-height: 1.55; max-width: 45rem; }
.image-grid, .video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.image-tile, .project { border: 1px solid var(--line); border-radius: 12px; overflow: clip; background: var(--panel); min-width: 0; }
.tile-preview, .project-image { position: relative; display: block; overflow: hidden; background: #212620; }
.tile-preview { aspect-ratio: 4 / 5; }
.project-image { aspect-ratio: 16 / 10; }
.tile-preview:focus-visible, .project-image:focus-visible { outline-offset: -5px; z-index: 1; }
.tile-preview img, .project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile-preview img { object-position: 50% 50%; }
.tile-preview:hover img, .project-image:hover img { transform: scale(1.025); }
.image-tile figcaption { padding: .9rem 1.1rem; font-weight: 650; }
.image-tile-wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: center;
}
.image-tile-wide .tile-preview { aspect-ratio: 1600 / 940; }
.image-tile-wide figcaption { padding: 1.15rem clamp(1.15rem, 3vw, 2.5rem); }
.image-tile-wide figcaption span { display: block; margin-bottom: .38rem; font-size: 1.15rem; }
.image-tile figcaption p { color: var(--muted); line-height: 1.55; font-weight: 400; }
#video-ads { margin-top: clamp(3.2rem, 6vw, 5.5rem); }
.play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #121511;
}
.play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-block: 9px solid transparent; border-left: 14px solid currentColor; }
.project-image:hover .play { background: #f0fdc2; }
.duration {
  position: absolute; bottom: .85rem; right: .85rem; border-radius: 5px; padding: .43rem .62rem;
  background: #151714ec; color: var(--text); font-size: .85rem; font-weight: 650;
}
.project-copy { padding: clamp(1.05rem, 2vw, 1.55rem); }
.project-copy h3 { margin-bottom: .6rem; font-size: clamp(1.18rem, 2.05vw, 1.68rem); letter-spacing: -.035em; line-height: 1.14; }
.project-copy p { color: var(--muted); }
#experience { margin-top: clamp(3.2rem, 6vw, 5.5rem); }
.experience {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.3rem, 4vw, 3.5rem);
  align-items: start; background: var(--accent); color: #171b13; border-radius: 12px; padding: clamp(1.5rem, 4vw, 3.5rem);
}
.experience .eyebrow { color: #354220; margin-bottom: .75rem; }
.experience-copy p { font-weight: 530; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.experience-copy .muted { color: #3a4726; margin-top: .8rem; font-size: 1rem; }
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 104px; margin-top: 2.75rem; padding-block: 1rem; border-top: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; color: var(--muted); font-size: .9rem; }
#copy-link { color: var(--text); border: 1px solid var(--line); background: transparent; padding: .6rem .8rem; border-radius: 6px; }
#copy-link:hover { border-color: var(--accent); }
#media-dialog {
  max-width: min(96vw, 1000px); max-height: 94vh; padding: 1rem; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; overflow: auto;
}
#media-dialog::backdrop { background: #070807db; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.dialog-header h2 { font-size: 1rem; letter-spacing: 0; }
.dialog-header button {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line);
  background: transparent; font-size: 1.5rem; line-height: 1;
}
#film:not([hidden]), #preview-image:not([hidden]) {
  display: block; max-height: 75vh; max-height: 75dvh; object-fit: contain; margin-inline: auto; border-radius: 5px;
}
#film { width: min(82vw, 900px); height: auto; background: black; }
#preview-image { width: auto; max-width: min(82vw, 900px); }
#film[hidden], #preview-image[hidden] { display: none; }
.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-200%); padding: .7rem 1rem; background: var(--accent); color: #131513; z-index: 2; }
.skip:focus { transform: translateY(0); }
.screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[lang^="zh"] .hero h1 { font-size: clamp(2.75rem, 5.45vw, 5.6rem); letter-spacing: -.045em; line-height: 1.1; }
html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: -.025em; }
html[lang^="zh"] .eyebrow { letter-spacing: .08em; }
@media (max-width: 920px) {
  .wrap { width: min(calc(100% - 3rem), var(--max)); }
  .hero h1 { font-size: clamp(3.5rem, 8.4vw, 5rem); }
  .hero-art img { height: clamp(365px, 50vw, 470px); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 64px; gap: .8rem; }
  .brand { gap: .5rem; }
  nav { gap: .75rem; }
  #language { min-width: 46px; }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.75rem 2.6rem; }
  .hero h1 { font-size: clamp(3.6rem, 13vw, 5.25rem); margin-block: 1rem 1.15rem; }
  .hero-actions { margin-top: 1.35rem; }
  .hero-art img { height: clamp(245px, 86vw, 445px); }
  .section { padding-top: 1.75rem; }
  .imagery-list, .video-grid { margin-top: 1.1rem; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .image-tile:nth-child(odd):is(:last-child, :has(+ .image-tile-wide)) { grid-column: 1 / -1; }
  .image-tile:not(.image-tile-wide):nth-child(odd):is(:last-child, :has(+ .image-tile-wide)) .tile-preview { aspect-ratio: 4 / 3; }
  .image-tile-wide, .video-grid, .experience { grid-template-columns: 1fr; }
  .site-footer { margin-top: 1.8rem; min-height: 84px; }
}
@media (max-width: 370px) {
  .header-inner { gap: .55rem; }
  nav { gap: .55rem; font-size: .82rem; }
  .brand { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
