
:root {
  --paper:#f4f2ec;
  --ink:#20211e;
  --muted:#77776f;
  --line:#d8d6cf;
  --serif:'Noto Serif SC',Georgia,serif;
  --sans:'DM Sans',Arial,sans-serif;
  --mono:'DM 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
}
a {
  color:inherit;
  text-decoration:none
}
.top {
  height:76px;
  padding:0 5vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:rgba(244,242,236,.94);
  backdrop-filter:blur(12px);
  z-index:5
}
.brand {
  font-family:var(--serif);
  font-size:18px;
  letter-spacing:.12em
}
.brand small {
  font:10px var(--mono);
  letter-spacing:.12em;
  margin-left:12px;
  color:var(--muted)
}
nav {
  display:flex;
  gap:32px;
  align-items:center;
  font-size:12px;
  letter-spacing:.08em;
  color:#55564f
}
nav a:hover {
  color:#111
}
.lang {
  border:0;
  background:none;
  font:11px var(--mono);
  cursor:pointer;
  padding:8px;
  color:var(--muted)
}
.wrap {
  max-width:1440px;
  margin:auto;
  padding:0 5vw
}
.hero {
  min-height:calc(100vh - 76px);
  display:grid;
  grid-template-columns:.83fr 1.17fr;
  gap:5vw;
  align-items:center;
  padding-top:52px;
  padding-bottom:64px
}
.hero-copy {
  padding:4vw 0
}
.eyebrow,.meta,.section-kicker {
  font:10px var(--mono);
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--muted)
}
h1 {
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(46px,7vw,96px);
  letter-spacing:.08em;
  line-height:1.25;
  margin:26px 0 22px
}
.hero-en {
  font:clamp(12px,1.2vw,15px) var(--mono);
  letter-spacing:.16em;
  color:#55564f
}
.intro {
  font-family:var(--serif);
  font-size:15px;
  line-height:2.05;
  color:#55564f;
  max-width:350px;
  margin-top:32px
}
.hero-link {
  display:inline-flex;
  gap:30px;
  align-items:center;
  border-bottom:1px solid #8c8b82;
  padding:15px 0;
  margin-top:32px;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase
}
.arrow {
  font-size:18px
}
.hero-image {
  height:min(75vh,720px);
  position:relative;
  overflow:hidden;
  background:#d8d6cf
}
.hero-image img {
  height:100%;
  width:100%;
  object-fit:cover;
  display:block;
  filter:saturate(.8)
}
.hero-image.image-missing:before {
  content:"图片未找到，请在编辑器中检查封面路径";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#666;
  font:11px var(--mono);
  text-align:center;
  padding:20px
}
.hero-image:after {
  content:'01 / 04';
  position:absolute;
  right:20px;
  bottom:18px;
  color:#fff;
  font:10px var(--mono);
  letter-spacing:.15em;
  text-shadow:0 1px 6px #000
}
.project-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  padding:48px 0 24px;
  border-bottom:1px solid var(--line)
}
h2 {
  font:400 clamp(26px,3vw,40px) var(--serif);
  margin:8px 0 0;
  letter-spacing:.05em
}
.projects {
  padding-bottom:90px
}
.project-tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0 4px;
  border-bottom:1px solid var(--line);
  gap:18px
}
.filter-list {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.filter-chip {
  border:1px solid transparent;
  background:transparent;
  padding:8px 10px;
  color:var(--muted);
  font:10px var(--mono);
  cursor:pointer
}
.filter-chip.active {
  border-color:var(--line);
  color:var(--ink);
  background:#fff9
}
.project-search {
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  padding:8px 2px;
  font:11px var(--mono);
  width:190px;
  outline:none
}
.project-desc {
  font:13px/1.9 var(--serif);
  color:#696960;
  max-width:300px;
  margin-top:20px
}
.project-place {
  font:9px var(--mono);
  letter-spacing:.12em;
  color:var(--muted);
  margin-top:12px
}
.project-count {
  font:9px var(--mono);
  color:var(--muted);
  margin-top:12px
}
.project-info {
  align-self:center
}
.project {
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:5vw;
  padding:50px 0 64px;
  border-bottom:1px solid var(--line)
}
.project-info {
  position:relative
}
.project-no {
  font:11px var(--mono);
  color:var(--muted);
  letter-spacing:.1em
}
.project h3 {
  font:400 clamp(23px,2.7vw,34px) var(--serif);
  margin:35px 0 8px
}
.project-en {
  font:11px var(--mono);
  letter-spacing:.11em;
  color:var(--muted)
}
.project-year {
  font:10px var(--mono);
  color:var(--muted);
  margin-top:26px;
  letter-spacing:.12em
}
.view {
  font:10px var(--mono);
  letter-spacing:.13em;
  text-transform:uppercase;
  display:inline-block;
  margin-top:30px;
  border-bottom:1px solid #a7a59c;
  padding-bottom:9px
}
.gallery {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  grid-template-rows:repeat(2,minmax(165px,24vw));
  gap:12px
}
.shot {
  border:0;
  padding:0;
  cursor:zoom-in;
  background:#e5e2d9;
  overflow:hidden
}
.shot:first-child {
  grid-row:span 2
}
.shot img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
  filter:saturate(.87)
}
.shot:hover img {
  transform:scale(1.025)
}
.about {
  background:#e9e7df;
  padding:100px 0
}
.about-grid {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:10vw
}
.about h2 {
  font-size:clamp(32px,4vw,54px);
  line-height:1.5;
  max-width:450px
}
.about-copy {
  max-width:590px;
  padding-top:16px
}
.about-copy p {
  font:15px/2.2 var(--serif);
  color:#55564f;
  margin:0 0 22px
}
.contact {
  padding:84px 0 90px;
  display:flex;
  justify-content:space-between;
  align-items:end
}
.contact h2 {
  font-size:clamp(32px,5vw,64px)
}
.contact-links {
  display:flex;
  flex-direction:column;
  gap:14px;
  font:12px var(--mono);
  letter-spacing:.06em
}
.contact-links a {
  border-bottom:1px solid var(--line);
  padding:8px 0
}
.footer {
  border-top:1px solid var(--line);
  padding:20px 5vw;
  display:flex;
  justify-content:space-between;
  font:9px var(--mono);
  letter-spacing:.1em;
  color:var(--muted)
}
.lightbox {
  position:fixed;
  inset:0;
  background:rgba(18,19,17,.96);
  z-index:10;
  display:none;
  align-items:center;
  justify-content:center;
  padding:6vh 8vw
}
.lightbox.open {
  display:flex
}
.lightbox img {
  max-width:100%;
  max-height:88vh;
  object-fit:contain
}
.lbclose,.lbprev,.lbnext {
  position:absolute;
  border:0;
  background:none;
  color:#eee;
  cursor:pointer;
  font:12px var(--mono);
  letter-spacing:.12em
}
.lbclose {
  top:28px;
  right:32px
}
.lbprev {
  left:30px
}
.lbnext {
  right:30px
}
.lbcount {
  position:absolute;
  bottom:24px;
  font:10px var(--mono);
  color:#aaa;
  letter-spacing:.16em
}
@media(max-width:760px) {
  .top {
    height:64px;
    padding:0 6vw
  }
  .brand small {
    display:none
  }
  nav {
    gap:15px;
    font-size:10px
  }
  .wrap {
    padding:0 6vw
  }
  .hero {
    min-height:auto;
    grid-template-columns:1fr;
    gap:24px;
    padding-top:48px
  }
  .hero-copy {
    padding:0
  }
  .hero h1 {
    margin:16px 0;
    font-size:57px
  }
  .intro {
    margin-top:18px;
    font-size:14px
  }
  .hero-link {
    margin-top:16px
  }
  .hero-image {
    height:62vh;
    min-height:390px
  }
  .project-head {
    padding-top:60px
  }
  .project {
    grid-template-columns:1fr;
    gap:26px;
    padding:30px 0 40px
  }
  .project-info {
    display:grid;
    grid-template-columns:1fr auto;
    align-items:end
  }
  .project-no {
    grid-column:span 2
  }
  .project h3 {
    margin:14px 0 6px
  }
  .project-year {
    margin:0;
    grid-column:2;
    grid-row:2
  }
  .project-en {
    grid-column:1
  }
  .view {
    margin-top:15px
  }
  .gallery {
    grid-template-rows:repeat(2,34vw);
    gap:7px
  }
  .about {
    padding:70px 0
  }
  .about-grid {
    grid-template-columns:1fr;
    gap:25px
  }
  .about-copy p {
    font-size:14px
  }
  .contact {
    padding:64px 0;
    display:block
  }
  .contact-links {
    margin-top:28px
  }
  .footer {
    padding:18px 6vw;
    font-size:8px
  }
  .lbprev {
    left:12px
  }
  .lbnext {
    right:12px
  }
  
}


/* visual editor */
.editor-launch {
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:20;
  border:0;
  border-radius:99px;
  background:#22241f;
  color:#fff;
  padding:14px 19px;
  font:11px var(--mono);
  letter-spacing:.08em;
  box-shadow:0 8px 30px #0003;
  cursor:pointer
}
.save-status {
  font:10px var(--mono);
  color:#55745d;
  min-height:16px;
  margin-top:10px
}
.editor {
  position:fixed;
  z-index:30;
  inset:0 0 0 auto;
  width:min(420px,94vw);
  background:#faf9f5;
  box-shadow:-12px 0 55px #0002;
  transform:translateX(105%);
  transition:transform .32s;
  overflow:auto;
  padding:0 24px 30px;
  font:13px var(--sans)
}
.editor.open {
  transform:none
}
.ed-head {
  position:sticky;
  top:0;
  background:#faf9f5;
  padding:20px 0 14px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:2
}
.ed-head strong {
  font:15px var(--serif)
}
.ed-close {
  border:0;
  background:none;
  font-size:22px;
  cursor:pointer
}
.ed-tabs {
  display:flex;
  gap:18px;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
.ed-tab {
  border:0;
  background:none;
  color:#85847d;
  font:10px var(--mono);
  cursor:pointer;
  padding:5px 0
}
.ed-tab.active {
  color:#222;
  border-bottom:1px solid #222
}
.ed-panel {
  display:none;
  padding-top:15px
}
.ed-panel.active {
  display:block
}
.field {
  display:block;
  margin:14px 0
}
.field span {
  display:block;
  font:10px var(--mono);
  letter-spacing:.07em;
  color:#777;
  margin-bottom:7px
}
.field input,.field textarea,.field select {
  width:100%;
  border:1px solid #d8d6cf;
  background:white;
  padding:10px 11px;
  font:13px var(--sans);
  color:#242520;
  border-radius:2px
}
.field textarea {
  min-height:90px;
  resize:vertical;
  line-height:1.6
}
.field input[type=color] {
  height:40px;
  padding:4px
}
.ed-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.ed-note {
  color:#777;
  font:11px/1.7 var(--sans);
  margin:16px 0
}
.ed-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:20px
}
.ed-actions button,.ed-button {
  background:#23241f;
  color:#fff;
  border:0;
  padding:12px 14px;
  font:10px var(--mono);
  letter-spacing:.05em;
  cursor:pointer
}
.ed-actions button.secondary {
  background:#e6e4dc;
  color:#333
}
.block-card {
  border:1px solid var(--line);
  padding:12px;
  margin:10px 0;
  background:#fff
}
.block-card strong {
  font:13px var(--serif)
}
.block-controls {
  display:flex;
  gap:5px;
  margin-top:10px;
  flex-wrap:wrap
}
.block-controls button {
  border:1px solid var(--line);
  background:#f5f3ed;
  padding:8px 9px;
  font:9px var(--mono);
  cursor:pointer
}
.block-card .field {
  margin:10px 0
}
.story-block {
  padding:clamp(52px,10vw,150px) 0;
  border-top:1px solid var(--line)
}
.story-block.text-block .story-inner {
  max-width:720px;
  margin:auto
}
.story-block.quote-block {
  background:#e9e7df;
  padding-left:8vw;
  padding-right:8vw
}
.story-block.quote-block blockquote {
  font:clamp(24px,4vw,48px)/1.65 var(--serif);
  max-width:1000px;
  margin:0 auto
}
.story-block .story-kicker {
  font:10px var(--mono);
  letter-spacing:.16em;
  color:var(--muted);
  margin-bottom:22px
}
.story-block .story-title {
  font:400 clamp(27px,4vw,52px)/1.4 var(--serif);
  margin:0 0 20px
}
.story-block .story-body {
  font:15px/2.1 var(--serif);
  color:#55564f;
  white-space:pre-wrap
}
.story-block.image-block {
  padding:0;
  position:relative;
  height:min(80vh,900px);
  background:#d8d6cf;
  overflow:hidden
}
.story-block.image-block img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover
}
.story-image-hint {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:#d8d6cf;
  color:#777;
  font:10px var(--mono);
  letter-spacing:.12em
}
.story-block.image-block .image-title {
  position:absolute;
  left:7vw;
  bottom:7vh;
  color:#fff;
  text-shadow:0 2px 16px #000;
  font:400 clamp(30px,6vw,80px) var(--serif)
}
.project-edit {
  border:1px solid var(--line);
  padding:13px;
  margin:13px 0
}
.project-edit b {
  font:13px var(--serif)
}
.project-edit .field {
  margin:9px 0
}
.upload-field input {
  font:11px var(--sans);
  padding:8px;
  background:#fff;
  border:1px dashed var(--line);
  width:100%
}
.needs-preview {
  display:grid;
  place-items:center;
  padding:15px;
  color:#666;
  font:10px/1.6 var(--mono);
  text-align:center;
  cursor:default
}
.ed-overlay {
  position:fixed;
  inset:0;
  z-index:25;
  background:#15161255;
  display:none
}
.ed-overlay.show {
  display:block
}
.ed-range {
  width:100%
}

body[data-layout="wide"] .hero {
  grid-template-columns:.55fr 1.45fr;
  gap:3vw
}
body[data-layout="wide"] .project {
  grid-template-columns:.65fr 2.35fr;
  gap:3vw
}
body[data-layout="wide"] .gallery {
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:26vw
}
body[data-layout="wide"] .shot:first-child {
  grid-row:auto
}
body[data-layout="minimal"] .hero {
  grid-template-columns:1fr;
  min-height:auto;
  padding-top:10vh
}
body[data-layout="minimal"] .hero-copy {
  padding:0 8vw 4vh
}
body[data-layout="minimal"] .hero-image {
  height:70vh
}
body[data-layout="minimal"] .project {
  grid-template-columns:1fr;
  gap:22px
}
body[data-layout="minimal"] .project-info {
  display:flex;
  align-items:baseline;
  gap:16px;
  flex-wrap:wrap
}
body[data-layout="minimal"] .project h3 {
  margin:0
}
body[data-layout="minimal"] .project-year {
  margin:0
}
body[data-layout="minimal"] .view {
  margin:0 0 0 auto
}
@media(max-width:760px) {
  body[data-layout="wide"] .hero {
    grid-template-columns:1fr
  }
  body[data-layout="wide"] .gallery {
    grid-template-rows:34vw
  }
  body[data-layout="minimal"] .hero {
    grid-template-columns:1fr;
    padding-top:48px
  }
  body[data-layout="minimal"] .hero-copy {
    padding:0
  }
  body[data-layout="minimal"] .hero-image {
    height:62vh
  }
  
}


@media(max-width:600px) {
  
 html {
    scroll-padding-top:66px
  }
  body.editor-active {
    overflow:hidden
  }
  .top {
    height:60px;
    padding:0 4vw
  }
  .brand {
    font-size:15px;
    letter-spacing:.06em
  }
  .brand small {
    display:none
  }
  nav {
    gap:clamp(8px,3vw,16px);
    font-size:10px
  }
  nav a {
    white-space:nowrap
  }
  .lang {
    padding:9px 5px
  }
  .wrap {
    padding-left:5vw;
    padding-right:5vw
  }
  .hero {
    padding-top:32px;
    padding-bottom:42px;
    gap:20px
  }
  .hero-image {
    height:54vh!important;
    min-height:330px;
    max-height:600px
  }
  .hero-copy {
    padding:0
  }
  .hero h1 {
    font-size:clamp(48px,15vw,66px);
    margin:14px 0
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:.12em
  }
  .intro {
    font-size:14px;
    line-height:1.9;
    margin-top:15px
  }
  .hero-link {
    margin-top:17px;
    padding:12px 0
  }
  .project-head {
    padding:38px 0 17px
  }
  .project-tools {
    align-items:flex-start;
    flex-direction:column;
    gap:8px
  }
  .filter-list {
    gap:2px
  }
  .filter-chip {
    padding:8px 7px
  }
  .project-search {
    width:100%
  }
  .project-desc {
    margin-top:12px;
    max-width:none
  }
  .project-head .meta {
    font-size:9px
  }
  .projects {
    padding-bottom:56px
  }
  .project {
    padding:27px 0 34px;
    gap:19px
  }
  .project-info {
    grid-template-columns:1fr auto;
    gap:0 10px
  }
  .project h3 {
    font-size:24px;
    line-height:1.4
  }
  .project-en {
    font-size:9px;
    letter-spacing:.06em
  }
  .project-year {
    font-size:9px
  }
  .view {
    font-size:9px
  }
  .gallery {
    grid-template-columns:1.15fr .85fr;
    grid-template-rows:repeat(2,29vw);
    gap:6px!important
  }
  .about {
    padding:58px 0
  }
  .about h2 {
    font-size:32px
  }
  .about-copy {
    padding-top:0
  }
  .about-copy p {
    font-size:14px;
    line-height:2
  }
  .contact {
    padding:54px 0;
    display:block
  }
  .contact h2 {
    font-size:38px
  }
  .contact-links {
    font-size:11px;
    overflow-wrap:anywhere;
    margin-top:22px
  }
  .footer {
    padding:15px 5vw;
    gap:12px;
    align-items:flex-start;
    flex-direction:column;
    font-size:8px
  }
  .editor-launch {
    right:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    padding:13px 16px;
    font-size:10px
  }
  .editor {
    width:100vw;
    max-width:100vw;
    padding:0 17px max(22px,env(safe-area-inset-bottom));
    height:100dvh;
    inset:0;
    transform:translateY(102%);
    transition:transform .28s ease
  }
  .editor.open {
    transform:translateY(0)
  }
  .ed-head {
    padding-top:max(15px,env(safe-area-inset-top));
    padding-bottom:12px
  }
  .ed-tabs {
    position:sticky;
    top:58px;
    background:#faf9f5;
    z-index:2;
    gap:0;
    justify-content:space-between
  }
  .ed-tab {
    font-size:9px;
    padding:10px 2px
  }
  .ed-panel {
    padding-bottom:22px
  }
  .field input,.field textarea,.field select {
    font-size:16px;
    min-height:44px
  }
  .field textarea {
    min-height:90px
  }
  .ed-row {
    grid-template-columns:1fr 1fr;
    gap:8px
  }
  .ed-actions {
    position:sticky;
    bottom:0;
    background:#faf9f5;
    padding:10px 0 calc(8px + env(safe-area-inset-bottom));
    z-index:1
  }
  .ed-actions button,.ed-button {
    min-height:44px
  }
  .project-edit {
    padding:10px
  }
  .lightbox {
    padding:60px 16px 70px
  }
  .lightbox img {
    max-width:100%;
    max-height:78dvh
  }
  .lbclose {
    top:max(14px,env(safe-area-inset-top));
    right:14px;
    padding:12px
  }
  .lbprev,.lbnext {
    top:auto;
    bottom:18px;
    padding:12px;
    font-size:10px
  }
  .lbcount {
    bottom:28px;
    font-size:9px
  }
  .lbprev {
    left:12px
  }
  .lbnext {
    right:12px
  }
  
}

@media(max-width:370px) {
  .top {
    padding:0 3vw
  }
  .brand {
    font-size:14px
  }
  nav {
    gap:7px;
    font-size:9px
  }
  .lang {
    font-size:10px
  }
  .hero-image {
    min-height:285px
  }
  .project h3 {
    font-size:21px
  }
  .project-en {
    font-size:8px
  }
  .ed-row {
    grid-template-columns:1fr
  }
  
}

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


/* Editorial narrative layout */
.top {
  position:sticky;
  margin-bottom:-76px;
  background:transparent;
  color:#fff;
  border-color:transparent;
  transition:background .25s,color .25s,border-color .25s
}
.top nav {
  color:inherit
}
.top:not(.scrolled) .lang {
  color:#fff;
  background:transparent;
  border-radius:0;
  text-shadow:0 1px 5px rgba(0,0,0,.45)
}
.top.scrolled .lang {
  color:var(--muted);
  background:transparent
}
.top.scrolled {
  background:rgba(244,242,236,.96);
  color:var(--ink);
  border-color:var(--line)
}

.hero {
  position:relative;
  display:block;
  height:100svh;
  min-height:640px;
  max-height:1100px;
  padding:0;
  overflow:hidden;
  color:#fff
}
.hero-image {
  position:absolute;
  z-index:0;
  inset:0;
  height:100%!important;
  min-height:0;
  background:#242620
}
.hero-image:after {
  content:'DONGCHEN HAO · DOCUMENTARY PHOTOGRAPHY';
  left:5vw;
  right:auto;
  bottom:24px;
  color:#ffffffb8
}
.hero-image img {
  filter:saturate(.72) brightness(.82);
  transition:transform 1.5s cubic-bezier(.2,.7,.2,1)
}
.hero:hover .hero-image img {
  transform:scale(1.018)
}
.hero:after {
  content:'';
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(12,13,11,.56),transparent 74%),linear-gradient(0deg,rgba(12,13,11,.28),transparent 45%)
}
.hero-copy {
  position:absolute;
  z-index:3;
  left:8vw;
  bottom:8vh;
  padding:0;
  max-width:560px
}
.hero-copy .eyebrow,.hero-copy .hero-en {
  color:#ffffffbd
}
.hero h1 {
  display:block;
  width:max-content;
  max-width:100%;
  white-space:nowrap;
  font-size:clamp(64px,10vw,128px);
  margin:18px 0 8px;
  letter-spacing:.13em;
  text-shadow:0 2px 18px rgba(0,0,0,.52),0 1px 3px rgba(0,0,0,.45)
}
.hero .intro {
  color:#fff;
  max-width:420px;
  text-shadow:0 1px 10px #0005
}
.hero-link {
  color:#fff;
  border-color:#ffffffa3
}
.project-head {
  border:0;
  padding-bottom:12px
}
.project-index {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:8px 0 12px
}
.project-index summary {
  cursor:pointer;
  list-style:none;
  padding:15px 2px;
  font:10px var(--mono);
  letter-spacing:.12em;
  color:var(--muted);
  display:flex;
  justify-content:space-between
}
.project-index summary::-webkit-details-marker {
  display:none
}
.project-index[open] summary span {
  transform:rotate(45deg)
}
.project-tools {
  border:0;
  padding:0 0 14px
}
.project {
  padding:clamp(42px,7vw,92px) 0
}
.project:nth-child(even) {
  grid-template-columns:1.1fr 1.9fr
}
.project:nth-child(even) .project-info {
  order:2;
  padding-left:3vw
}
.project:nth-child(even) .gallery {
  order:1
}
.project:nth-child(3n) .gallery {
  grid-template-columns:1fr 1fr;
  grid-template-rows:repeat(2,minmax(170px,22vw))
}
.project:nth-child(3n) .shot:first-child {
  grid-row:auto
}
.project-info {
  max-width:390px
}
.project h3 {
  font-size:clamp(28px,3.3vw,46px);
  line-height:1.3;
  margin-top:22px
}
.project-desc {
  max-width:360px
}
.project-count {
  letter-spacing:.12em
}
.view {
  margin-top:24px
}
body.story-open,body.lightbox-open {
  overflow:hidden
}
.story-open .editor-launch,.story-open .editor,.story-open .ed-overlay,.lightbox-open .editor-launch {
  display:none!important
}
.story-view {
  display:none;
  position:fixed;
  inset:0;
  z-index:8;
  background:var(--paper);
  overflow:auto;
  overscroll-behavior:contain
}
.story-view.open {
  display:block
}
.story-top {
  position:sticky;
  top:0;
  height:64px;
  background:rgba(244,242,236,.95);
  backdrop-filter:blur(12px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 5vw;
  z-index:2;
  border-bottom:1px solid var(--line)
}
.story-top button {
  border:0;
  background:none;
  cursor:pointer;
  font:10px var(--mono);
  letter-spacing:.1em;
  color:var(--ink);
  padding:10px 0
}
.story-brand {
  font:9px var(--mono);
  letter-spacing:.15em;
  color:var(--muted)
}
.story-intro {
  max-width:1120px;
  margin:auto;
  padding:clamp(60px,10vw,140px) 6vw 56px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:end;
  gap:7vw
}
.story-index {
  font:10px var(--mono);
  letter-spacing:.15em;
  color:var(--muted)
}
.story-intro h1 {
  font:400 clamp(42px,8vw,104px)/1.15 var(--serif);
  letter-spacing:.02em;
  margin:22px 0
}
.story-intro .story-en {
  font:11px var(--mono);
  letter-spacing:.16em;
  color:var(--muted)
}
.story-meta {
  font:10px/2 var(--mono);
  letter-spacing:.1em;
  color:var(--muted);
  text-align:right
}
.story-description {
  max-width:850px;
  margin:0 auto;
  padding:0 6vw 65px;
  font:16px/2.1 var(--serif);
  color:#55564f;
  white-space:pre-wrap
}
.story-gallery {
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:clamp(8px,1.5vw,22px);
  padding:0 4vw 7vw
}
.story-photo {
  border:0;
  padding:0;
  background:#e4e1d9;
  cursor:zoom-in;
  overflow:hidden;
  grid-column:span 6;
  min-height:220px
}
.story-photo:nth-child(5n+1) {
  grid-column:span 12
}
.story-photo:nth-child(5n+3) {
  grid-column:span 7
}
.story-photo:nth-child(5n+4) {
  grid-column:span 5
}
.story-photo img {
  width:100%;
  height:100%;
  max-height:78vh;
  min-height:250px;
  object-fit:cover;
  display:block;
  transition:transform .7s
}
.story-photo:hover img {
  transform:scale(1.015)
}
.story-end {
  padding:50px 6vw 90px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font:10px var(--mono);
  letter-spacing:.12em;
  color:var(--muted)
}
.story-end button {
  border:0;
  border-bottom:1px solid var(--line);
  background:none;
  padding:10px 0;
  cursor:pointer;
  font:inherit;
  color:var(--ink)
}
.story-empty {
  padding:80px 20px;
  text-align:center;
  color:var(--muted);
  font:12px var(--mono)
}

@media(max-width:760px) {
  .top {
    margin-bottom:-60px;
    height:60px
  }
  .hero {
    min-height:590px;
    height:92svh;
    max-height:900px
  }
  .hero-copy {
    left:6vw;
    right:6vw;
    bottom:7vh
  }
  .hero .intro {
    max-width:95%
  }
  .hero-image:after {
    left:6vw;
    bottom:18px;
    font-size:8px
  }
  .project:nth-child(even) {
    grid-template-columns:1fr
  }
  .project:nth-child(even) .project-info {
    order:1;
    padding-left:0
  }
  .project:nth-child(even) .gallery {
    order:2
  }
  .project:nth-child(3n) .gallery {
    grid-template-rows:repeat(2,29vw)
  }
  .story-top {
    height:56px;
    padding:0 5vw
  }
  .story-brand {
    font-size:8px
  }
  .story-intro {
    grid-template-columns:1fr;
    gap:22px;
    padding:58px 6vw 36px
  }
  .story-intro h1 {
    font-size:clamp(44px,13vw,72px)
  }
  .story-meta {
    text-align:left
  }
  .story-description {
    font-size:14px;
    padding-bottom:42px
  }
  .story-gallery {
    padding:0 4vw 12vw;
    gap:7px
  }
  .story-photo,.story-photo:nth-child(5n+1),.story-photo:nth-child(5n+3),.story-photo:nth-child(5n+4) {
    grid-column:span 12;
    min-height:0
  }
  .story-photo img {
    min-height:0;
    max-height:none;
    height:auto;
    aspect-ratio:4/3;
    object-fit:cover
  }
  .story-end {
    padding:38px 6vw 60px;
    gap:16px;
    flex-direction:column;
    align-items:flex-start
  }
  .project-index summary {
    padding:13px 2px
  }
  .project-tools {
    align-items:flex-start
  }
  
}

@media(prefers-reduced-motion:reduce) {
  .hero-image img,.story-photo img {
    transition:none
  }
  
}


/* Photo essay: preserve each frame exactly; never crop documentary photographs. */
.story-gallery {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(24px,5vw,64px);
  padding:0 4vw 7vw
}

.story-photo,.story-photo:nth-child(5n+1),.story-photo:nth-child(5n+3),.story-photo:nth-child(5n+4) {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:100%;
  max-width:1440px;
  min-height:0;
  height:auto;
  grid-column:auto;
  overflow:visible;
  background:transparent
}

.story-photo img {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:90svh;
  min-height:0;
  aspect-ratio:auto;
  object-fit:contain;
  filter:none
}

.story-photo:hover img {
  transform:none
}

.lightbox img {
  width:auto;
  height:auto;
  max-width:100%;
  max-height:88svh;
  object-fit:contain
}

@media(max-width:760px) {
  .story-gallery {
    gap:20px;
    padding:0 4vw 12vw
  }
  .story-photo,.story-photo:nth-child(5n+1),.story-photo:nth-child(5n+3),.story-photo:nth-child(5n+4) {
    width:100%;
    min-height:0;
    height:auto
  }
  .story-photo img {
    width:auto;
    height:auto;
    max-width:100%;
    max-height:84svh;
    min-height:0;
    aspect-ratio:auto;
    object-fit:contain
  }
  
}


/* Full-frame preview mode: use natural image ratios in a compact masonry flow. */
body[data-crop="contain"] .story-gallery {
  gap:clamp(10px,1.2vw,18px)
}

body[data-crop="contain"] .project .gallery {
  display:block;
  columns:2;
  column-gap:var(--edit-gap,12px);
  grid-template-columns:none;
  grid-template-rows:none;
  
}

body[data-crop="contain"] .project .gallery .shot,body[data-crop="contain"] .project .gallery .shot:first-child {
  display:inline-block;
  vertical-align:top;
  width:100%;
  height:auto;
  min-height:0;
  margin:0 0 var(--edit-gap,12px);
  break-inside:avoid;
  grid-row:auto;
  background:transparent;
  
}

body[data-crop="contain"] .project .gallery .shot img {
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:auto;
  object-fit:contain;
  background:transparent;
  
}

@media(max-width:760px) {
  body[data-crop="contain"] .story-gallery {
    gap:10px
  }
  body[data-crop="contain"] .project .gallery {
    columns:2;
    column-gap:8px
  }
  body[data-crop="contain"] .project .gallery .shot,body[data-crop="contain"] .project .gallery .shot:first-child {
    margin-bottom:8px
  }
  
}



/* Hide the local authoring controls on hosted visitor pages; keep the page renderer active. */
body.public-view .editor-launch,body.public-view .editor,body.public-view .ed-overlay {
  display:none!important
}

/* Per project home image selection and gallery layouts. */
.home-photo-settings {
  border:1px solid var(--line);
  margin:14px 0;
  padding:12px;
  min-width:0
}
.home-photo-settings legend {
  padding:0 6px;
  font:10px var(--mono);
  letter-spacing:.08em
}
.home-photo-settings > .ed-note {
  line-height:1.7
}
.home-photo-choices {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  max-height:280px;
  overflow:auto;
  padding:2px
}
.home-photo-choice {
  display:grid;
  grid-template-columns:18px 54px minmax(0,1fr);
  align-items:center;
  gap:7px;
  min-width:0;
  border:1px solid var(--line);
  padding:5px;
  font:9px/1.45 var(--mono);
  cursor:pointer
}
.home-photo-choice input {
  margin:0;
  accent-color:#555b4d
}
.home-photo-choice > span:last-child {
  overflow-wrap:anywhere
}
.home-photo-thumb {
  width:54px;
  height:42px;
  display:grid;
  place-items:center;
  background:#e5e2d9;
  color:#777;
  overflow:hidden
}
.home-photo-thumb img {
  width:100%;
  height:100%;
  object-fit:cover
}
.home-photo-order {
  display:grid;
  gap:5px;
  margin:10px 0
}
.home-photo-order > strong {
  font:10px var(--mono)
}
.home-photo-order > small {
  color:var(--muted);
  font-size:10px
}
.home-order-item {
  display:grid;
  grid-template-columns:minmax(0,1fr) 30px 30px;
  align-items:center;
  gap:4px;
  font:9px/1.5 var(--mono)
}
.home-order-item span {
  overflow-wrap:anywhere
}
.home-order-item button {
  min-height:30px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer
}
.home-order-item button:disabled {
  opacity:.35;
  cursor:default
}
.home-gallery.layout-mosaic {
  grid-auto-rows:minmax(150px,20vw)
}
.home-gallery.layout-mosaic .shot:only-child {
  grid-row:auto;
  grid-column:1/-1
}
.home-gallery.layout-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:none;
  grid-auto-rows:auto
}
.home-gallery.layout-grid .shot,.home-gallery.layout-grid .shot:first-child {
  grid-row:auto;
  aspect-ratio:4/3;
  min-height:0
}
.home-gallery.layout-grid .shot img {
  width:100%;
  height:100%
}
.home-gallery.layout-strip {
  display:flex;
  grid-template-columns:none;
  grid-template-rows:none;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  overscroll-behavior-inline:contain
}
.home-gallery.layout-strip .shot,.home-gallery.layout-strip .shot:first-child {
  flex:0 0 min(72%,360px);
  height:auto;
  min-height:0;
  aspect-ratio:3/2;
  grid-row:auto;
  scroll-snap-align:start
}
.home-gallery.layout-strip .shot img {
  width:100%;
  height:100%
}
.home-gallery.layout-single {
  display:block
}
.home-gallery.layout-single .shot {
  display:none
}
.home-gallery.layout-single .shot:first-child {
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:16/9
}
.home-gallery.layout-single .shot:first-child img {
  width:100%;
  height:100%
}
body[data-crop="contain"] .project .home-gallery.layout-grid {
  display:grid;
  columns:unset;
  column-gap:var(--edit-gap,12px);
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:none
}
body[data-crop="contain"] .project .home-gallery.layout-grid .shot,
body[data-crop="contain"] .project .home-gallery.layout-grid .shot:first-child {
  display:block;
  width:100%;
  height:auto;
  margin:0;
  aspect-ratio:auto
}
body[data-crop="contain"] .project .home-gallery.layout-grid .shot img {
  width:100%;
  height:auto;
  max-height:none
}
body[data-crop="contain"] .project .home-gallery.layout-strip {
  display:flex;
  columns:unset
}
body[data-crop="contain"] .project .home-gallery.layout-strip .shot,
body[data-crop="contain"] .project .home-gallery.layout-strip .shot:first-child {
  display:block;
  flex:0 0 min(72%,360px);
  width:auto;
  height:auto;
  margin:0;
  aspect-ratio:auto
}
body[data-crop="contain"] .project .home-gallery.layout-strip .shot img {
  width:auto;
  height:auto;
  max-width:100%;
  max-height:70vh
}
body[data-crop="contain"] .project .home-gallery.layout-single {
  display:block;
  columns:unset
}
body[data-crop="contain"] .project .home-gallery.layout-single .shot,
body[data-crop="contain"] .project .home-gallery.layout-single .shot:first-child {
  display:block;
  width:100%;
  height:auto;
  margin:0;
  aspect-ratio:auto
}
body[data-crop="contain"] .project .home-gallery.layout-single .shot:not(:first-child) {
  display:none
}
body[data-crop="contain"] .project .home-gallery.layout-single .shot img {
  width:100%;
  height:auto;
  max-height:78vh
}
@media(max-width:760px) {
  .home-photo-choices {
    grid-template-columns:1fr
  }
  .home-gallery.layout-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:none
  }
  .home-gallery.layout-mosaic {
    grid-auto-rows:minmax(130px,36vw)
  }
  .home-gallery.layout-strip .shot,.home-gallery.layout-strip .shot:first-child {
    flex-basis:82%
  }
  body[data-crop="contain"] .project .home-gallery.layout-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

.hero-background-editor {
  border:1px solid var(--line);
  padding:14px;
  margin:16px 0 24px
}
.hero-background-editor h4 {
  margin:0 0 8px;
  font:10px var(--mono);
  letter-spacing:.06em
}
.hero-background-editor .field input[type="file"] {
  width:100%;
  border:1px dashed var(--line);
  background:#fff;
  padding:10px;
  font:11px var(--sans)
}
.hero-background-editor > .ed-note {
  display:block;
  line-height:1.7;
  margin:8px 0
}
