.site-header { background: #10171d; color: #e9ece9; border-color: #323b40; }
.site-header .wordmark { color: inherit; }
.nav-paper { color: #132020; background: #dae6db; }
.nav-paper:hover { background: #fff; }
.opening { color: #f6f3eb; background: #10171d; overflow: hidden; }
.opening-heading { display: flex; justify-content: space-between; align-items: end; padding-top: clamp(26px,4vh,56px); gap: 16px; position: relative; z-index: 1; }
.opening-venue,.assembly-spec { font: 500 .78rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.opening-venue { color: #cdd7ce; }
.opening-venue span,.assembly-spec span { padding-inline: .6em; opacity: .55; }
.opening h1 { margin: 8px 0 0 -.05em; font-size: clamp(5rem,8.8vw,9.8rem); letter-spacing: -.078em; line-height: .92; font-weight: 500; }
.wordmark i, .opening h1 i { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.opening-subtitle { font-size: clamp(1.15rem,1.9vw,2rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: .28em; }
.assembly { margin: 0; }
.assembly-stage { position: relative; height: clamp(275px,50svh,630px); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 52% 52%,#41515a 0%,#273640 25%,#162028 52%,#10171d 77%); }
.assembled-image { position: absolute; width: 94%; height: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.input-planes { position: absolute; inset: 0; pointer-events: none; }
.input-planes img { position: absolute; left: 0; top: 0; width: 420px; height: 280px; max-width: none; transform-origin: center; backface-visibility: hidden; }
.assembly-caption { margin-block: 0; padding: 12px 0 clamp(24px,4vh,50px); display: grid; grid-template-columns: 1fr minmax(175px,25%) 1fr; align-items: center; gap: 20px; border-top: 1px solid #435058; color: #f3f3ee; }
.assembly-place { margin-top: 8px; font-size: clamp(1.35rem,2vw,2.15rem); font-weight: 500; letter-spacing: -.045em; }
.assembly-spec { text-transform: none; color: #cad3ce; letter-spacing: .015em; }
.assembly-transport { display: flex; align-items: center; gap: 12px; }
.assembly-transport[hidden] { display: none; }
.assembly button,.explore-link,.zoom-dialog button { border: 1px solid #66736f; color: #f4f3ed; background: transparent; border-radius: 100px; padding: .55em 1.05em; cursor: pointer; line-height: 1.4; }
.assembly button { min-width: 5em; }
.assembly button:hover,.explore-link:hover,.zoom-dialog button:hover { background: #35413e; }
.assembly-transport input { width: 100%; min-width: 0; height: 32px; accent-color: #d2dfbe; cursor: ew-resize; }
.explore-link { justify-self: end; text-decoration: none; font-size: .95rem; }
.paper-credits { padding-block: clamp(26px, 3.5vw, 50px) clamp(22px, 2.4vw, 36px); }
.paper-credits h2 { margin: 0 0 14px; font: 600 .74rem/1.3 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: #52665c; }
.authors, .affiliations { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; padding: 0; list-style: none; }
.authors { gap: 8px clamp(18px, 2.5vw, 36px); }
.authors li { white-space: nowrap; font: 400 clamp(1.125rem, 1.7vw, 1.5rem)/1.3 Georgia, serif; letter-spacing: -.025em; }
.authors a { text-decoration: none; }
.paper-credits sup { position: relative; top: -.55em; margin-left: .22em; vertical-align: baseline; color: #506b52; font: 500 .68rem/1 var(--mono); letter-spacing: 0; }
.affiliations { gap: 6px 24px; margin-top: 16px; color: #48594e; font-size: .91rem; }
.affiliations li { display: flex; align-items: baseline; gap: .35em; }
.affiliations sup { top: -.25em; margin: 0; }
.paper-credits .resources { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.panorama-film { margin-left: auto; white-space: nowrap; }
.panorama-film span { margin-left: 4px; font: .75rem var(--mono); }
.roof-study { padding-block: clamp(42px,7vw,112px); background: #e8ebe4; }
.roof-layout { display: grid; grid-template-columns: minmax(220px,.69fr) minmax(0,1.32fr); align-items: center; gap: clamp(24px,6vw,95px); }
.roof-copy .section-title { margin: 0 0 .35em; }
.roof-copy > p { max-width: 35ch; }
.roof-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .93rem; margin-top: 1.3rem; }
.roof-compare { position: relative; aspect-ratio: 1.65; overflow: hidden; --split: 50%; background: #b7b7a9; }
.roof-compare > div,.roof-compare input { position: absolute; inset: 0; }
.roof-result,.roof-geometry { background-size: 230% auto; background-position: 44% 31%; }
.roof-result { background-image: url(assets/method-figures/sydney-average-anystitch.webp); }
.roof-geometry { background-image: url(assets/method-figures/sydney-average-prestitch.webp); clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.roof-compare .roof-rule { inset: 0 auto 0 var(--split); width: 2px; background: white; }
.roof-rule span { position: absolute; top: 65%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; text-align: center; border-radius: 50%; background: #f7f7f0; color: #23332c; font: 26px/36px Georgia,serif; }
.roof-compare input { width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.roof-compare:focus-within { outline: 3px solid #597d55; }
.roof-figure figcaption { display: flex; justify-content: space-between; }
.zoom-dialog { padding: 0; width: min(96vw,1800px); max-width: 100%; border: 1px solid #526261; background: #10171d; color: #f3f3ee; }
.zoom-dialog::backdrop { background: #0b1016e8; }
.zoom-dialog header,.zoom-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 22px; }
.zoom-dialog h2 { margin: 2px 0 0; font-weight: 500; letter-spacing: -.05em; }
#zoom-surface { height: min(65svh,760px); background: #0b1015; }
.zoom-tools { justify-content: end; flex-wrap: wrap; }
.zoom-tools span { margin-right: auto; color: #d1d6d4; font-size: .875rem; }
.zoom-tools a { font-size: .875rem; }
@media(max-width:700px) {
  .opening-heading { align-items: start; flex-direction: column; gap: 10px; padding-top: 24px; }
  .opening-subtitle { margin: 0; }
  .opening-subtitle br { display: none; }
  .opening-subtitle br::after { content: ' '; }
  .assembly-stage { height: clamp(230px,38svh,340px); }
  .assembly-caption { grid-template-columns: 1fr auto; gap: 12px; padding-block: 8px 20px; }
  .assembly-controls { grid-column: 1/-1; grid-row: 2; }
  .explore-link { padding-inline: .8em; font-size: .88rem; }
  .assembly-spec { font-size: .75rem; }
  .roof-layout { display: grid; grid-template-columns: 1fr; }
  .authors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 10px 12px; }
  .affiliations { display: grid; gap: 4px; }
  .paper-credits .resources { gap: 9px 18px; }
  .panorama-film { margin-left: 0; }
  .roof-compare { aspect-ratio: 1.3; }
  .zoom-dialog header,.zoom-tools { padding: 10px; }
  .zoom-tools span { flex-basis: 100%; }
}
.input-planes img { box-shadow: 0 6px 22px #09101542; }
.assembly-transport input { appearance: none; -webkit-appearance: none; background: transparent; }
.assembly-transport input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right,#e6ecd9 var(--elapsed),#5d6a6d var(--elapsed)); }
.assembly-transport input::-moz-range-track { height: 2px; background: #5d6a6d; }
.assembly-transport input::-moz-range-progress { height: 2px; background: #e6ecd9; }
.assembly-transport input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5.5px; border-radius: 50%; background: #e0ebd5; }
.assembly-transport input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #e0ebd5; }

/* The projection, contact roll, and skyline share a continuous camera frame. */
.opening { position: relative; isolation: isolate; background: #0b121a; }
.opening-heading { position: absolute; inset: clamp(22px,4.5svh,56px) 0 auto; z-index: 3; align-items: start; pointer-events: none; }
.opening h1 { font-size: clamp(4.55rem,8.4vw,9.6rem); text-shadow: 0 2px 26px #09151c38; }
.opening .opening-venue { color: #f0f4e8; }
.opening-subtitle { margin: 0; padding-top: 3px; text-align: right; text-shadow: 0 1px 16px #0008; }
.assembly { position: relative; }
.assembly-stage { height: clamp(490px,calc(100svh - 66px),1080px); background: radial-gradient(ellipse at 50% 55%,#30414c 0%,#15212a 38%,#0c151e 65%,#080f16 95%); touch-action: pan-y; }
.assembly::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg,rgb(7 18 27 / var(--sky-shade,.78)) 0%,rgb(7 18 27 / calc(var(--sky-shade,.78) * .32)) 17%,transparent 37%,transparent 66%,#0411174d 81%,#061016ed 100%); background-color: rgb(7 16 23 / var(--end-shade,0)); }
.assembly-stage.can-orbit { cursor: grab; }
.assembly-stage.can-orbit:active { cursor: grabbing; }
.assembled-image { width: 100%; max-width: none; }
.assembly-stage[data-ready] .assembled-image { width: 8192px; height: 1281px; left: 0; top: 0; transform-origin: 0 0; }
.input-planes img { user-select: none; }
.input-planes .opening-photo { width: 1920px; height: 1280px; }
.assembly-stage:not([data-ready]) .opening-photo { visibility: hidden; }
.input-planes { z-index: 0; }
.input-planes img { box-shadow: 0 12px 36px #03091270, 0 0 0 1px #d2e8ff42; }
.assembly-caption { position: absolute; inset: auto 0 0; border: 0; z-index: 3; grid-template-columns: 1fr minmax(310px,33%) 1fr; align-items: end; padding-bottom: clamp(20px,4svh,42px); }
.assembly-place { font-size: clamp(1.45rem,2.25vw,2.3rem); }
.assembly-controls { display: grid; align-items: end; min-height: 58px; }
.assembly-loading { align-self: center; }
.assembly-loading span { font: 500 .82rem/1.4 var(--sans); color: #edf2e9; }
.loading-strip {
  position: relative;
  overflow: hidden;
  height: 20px;
  margin-top: 6px;
  border: 1px solid #afc9ba78;
  border-radius: 3px;
  background: #223136;
}
.loading-strip::before, .loading-strip i {
  content: "";
  position: absolute;
  inset: 0;
  background: #b2c3b0 url(assets/gallery/shenzhen/shenzhen-overview.webp) center 55% / cover;
}
.loading-strip::before { opacity: .25; filter: grayscale(1); }
.loading-strip i { clip-path: inset(0 calc(100% - var(--prepared, 0%)) 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .loading-strip i { transition: clip-path .35s ease-out; }
  .assembly-loading:not([hidden]), .assembly-controls[data-waited] .assembly-transport:not([hidden]) {
    animation: controls-arrive .3s ease-out both;
  }
  @keyframes controls-arrive { from { opacity: 0; } to { opacity: 1; } }
}
.assembly-transport { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 0 14px; align-self: end; }
.assembly .assembly-transport > button { grid-area: 2/1; font-size: .875rem; padding: .38em .6em; }
.assembly-transport input { grid-area: 2/2; }
.assembly-chapters { grid-column: 2; display: flex; justify-content: space-between; }
.assembly-chapters button { min-width: 0; padding: 4px 0; border: 0; border-radius: 0; color: #c1cbcc; font: .78rem/1.4 var(--sans); }
.assembly-chapters button[aria-pressed=true] { color: white; text-decoration: underline; text-underline-offset: 4px; }
.assembly-chapters button:hover { background: transparent; color: white; }
.explore-link { background: #0a182642; }
@media(max-width:700px) {
  .opening-heading { top: 22px; gap: 5px; }
  .opening-subtitle { font-size: 1rem; text-align: left; }
  .assembly-stage { height: clamp(485px,calc(100svh - 65px),900px); }
  .assembly-caption { grid-template-columns: minmax(0,1fr) auto; row-gap: 8px; }
  .assembly-transport { grid-template-columns: 62px minmax(0,1fr); }
  .assembly-spec { font-size: .72rem; }
  .opening-venue { font-size: .72rem; }
}

/* Let the input and model titles sit inside the arc of photographs. */
.film-copy { position: absolute; inset: 50% 0 auto; z-index: 3; transform: translateY(-50%); isolation: isolate; text-align: center; pointer-events: none; color: #fffdf6; }
.film-copy::before { content: ""; position: absolute; z-index: -1; inset: -38% -3%; background: radial-gradient(ellipse at center, #071019e6 0%, #0710198c 31%, transparent 69%); }
.film-line { display: flex; align-items: baseline; justify-content: center; gap: .11em; margin: 0; font: 600 clamp(5.5rem,10.5vw,10rem)/1 var(--sans); letter-spacing: -.072em; text-shadow: 0 2px 20px #06101988; transform: translateY(calc(var(--arrival,0) * 24px)) scale(calc(1 - var(--arrival,0) * .1)); }
.film-line strong { color: #ffdda0; font-weight: 650; }
.film-line span { font-size: .57em; letter-spacing: -.052em; }
.film-copy:is([data-beat=stitch], [data-beat=final]) .film-line { gap: 0; }
.film-copy:is([data-beat=stitch], [data-beat=final]) strong { color: #fffdf6; }
.film-copy:is([data-beat=stitch], [data-beat=final]) .film-line span { font: italic 1em/1 Georgia, serif; color: #ffdda0; letter-spacing: -.075em; }
.film-subline:empty { display: none; }
.film-copy:not([data-beat=final]) .opening-venue { display: none; }
.film-copy .opening-venue { margin: 0 0 clamp(10px, 1.2vw, 18px); text-wrap: balance; text-shadow: 0 1px 5px #071019, 0 2px 14px #071019; }
.film-copy[data-beat=final]::before { display: none; }
.film-copy[data-beat=stitch] { top: calc(50% - 25% * var(--lift, 0)); transform: translateY(-50%) scale(calc(1 - .25 * var(--lift, 0))); }
.film-copy[data-beat=stitch]::before { opacity: calc(1 - .88 * var(--lift, 0)); }
.film-copy[data-beat=result] { top: 24%; }
.film-copy[data-beat=result] .film-line { font-variant-numeric: lining-nums; }
.film-subline { margin: .55em 0 0; font-size: clamp(1.1rem,2.1vw,2rem); font-weight: 550; line-height: 1.22; color: #fffdf6; text-shadow: 0 1px 8px #030910,0 2px 24px #030910; }
#tour-tiles { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
.assembly-stage.can-pan { cursor: grab; }
.assembly-stage.can-pan:active { cursor: grabbing; }
.tour-map { position: absolute; z-index: 3; right: 4.5%; top: clamp(28px,5svh,56px); width: clamp(150px,17vw,285px); color: #fff; text-shadow: 0 1px 4px #101921; }
.tour-map-image { position: relative; overflow: hidden; border: 1px solid #d7e4df9c; background: #172027; }
.tour-map-image img { width: 100%; height: auto; opacity: .78; }
.tour-map-image i { position: absolute; border: 1.5px solid #fff; box-shadow: 0 0 0 300px #08142357; }
.tour-map-image input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tour-map-image:focus-within { outline: 2px solid #eef7c7; }
.assembly .end-motion { display: block; margin: 6px 0 0 auto; padding: 4px 8px; background: #111b22b8; font-size: .75rem; }
.assembly .end-motion[hidden] { display: none; }
.tour-map > span { display: block; margin-top: 5px; font: .76rem/1.2 var(--mono); text-align: right; }
@media(max-width:700px) {
  .film-line { font-size: clamp(3.8rem,16vw,6.2rem); }
  .film-copy[data-beat=result] { top: 29%; }
  .film-copy::before { inset: -32% -4%; background: radial-gradient(ellipse at center,#071019eb,#071019a1 42%,transparent 76%); }
  .film-subline { max-width: 27ch; margin: .55em auto 0; text-wrap: balance; }
  .tour-map { width: 145px; top: 20px; right: 18px; }
}
