/* The sculpture is lit against a continuous field from the masthead to its caption. */
.top { --studio-mark-filter:none; background:#0c181b; color:#ecf0e8; border-color:#c7e2d51e }
.top .signature i { color:#c5d2af }
.top .nav a:hover { color:#c5dfd4 }
.exhibition {
  --field:#0c181b;
  position:relative; isolation:isolate; overflow:hidden; color:#edf0e9;
  background:radial-gradient(ellipse at 49% 35%,#233a40 0%,#16292e 35%,var(--field) 73%);
}
.projection { position:relative; padding-top:clamp(.25rem,1.2vw,1.2rem) }
.projection::before {
  content:""; position:absolute; inset:0; background-image:url("/objects/assets/grain.png");
  opacity:.045; mix-blend-mode:screen; pointer-events:none;
}
.projection-stage {
  position:relative; isolation:isolate; width:min(calc(100% - 2 * var(--edge)),1480px); margin:0 auto;
  height:clamp(290px,min(40vw,62svh),640px); min-height:290px;
}
.projection-stage canvas,.projection-still,.projection-still img { position:absolute; inset:0; display:block; width:100%; height:100% }
.projection-still { pointer-events:none }
.projection-still img { object-fit:contain }
.projection-stage canvas { touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; cursor:grab }
.projection-stage.is-held canvas { cursor:grabbing }
.projection-stage canvas:focus-visible { outline:1px solid #c2d6d1ab; outline-offset:3px; border-radius:2px }
.projection-stage.is-live .projection-still { visibility:hidden }
.ground-light {
  --ground-opacity:.48;
  position:absolute; z-index:-1; pointer-events:none; left:17%; right:17%; top:79%; height:10%;
  opacity:var(--ground-opacity);
  background:radial-gradient(ellipse at center,#8ab5ae83 0,#63949a44 16%,#5f879519 44%,transparent 71%);
  filter:blur(6px);
}
.projection-caption { position:relative; display:flex; justify-content:space-between; align-items:flex-end; gap:2rem;
  padding-top:clamp(.35rem,1.1vw,1.3rem); padding-bottom:clamp(1.65rem,3.1vw,3.6rem) }
.work-label h1 { font-weight:450; font-size:clamp(3.15rem,6.25vw,6.45rem); line-height:.93; letter-spacing:-.08em }
.work-label i { font-family:var(--serif); letter-spacing:-.073em; font-weight:400 }
.work-label>span { display:block; margin-top:.7rem; letter-spacing:.005em; color:#b8cac6; font-size:1.06rem }
.projection-tools { display:flex; flex-direction:column; align-items:flex-end; gap:.5rem; color:#ccdad6 }
.projection-tools p { font-size:.875rem; line-height:1.4 }
.dimension-controls { display:flex; align-items:center; gap:.75rem }
.dimension-controls label { font:400 .78rem/1.4 "SFMono-Regular",Consolas,monospace; color:#bdcfc9 }
.dimension-controls input { width:clamp(6rem,9vw,9rem); height:44px; margin:0; cursor:pointer; appearance:none; background:transparent; color:#d5e2d7; touch-action:pan-y }
.dimension-controls input::-webkit-slider-runnable-track { height:2px; border-radius:2px; background:linear-gradient(to right,#a5beb6,#78928d) }
.dimension-controls input::-webkit-slider-thumb { appearance:none; width:15px; height:15px; margin-top:-6.5px; border-radius:100%; border:1px solid #dce4dd; background:radial-gradient(at 36% 30%,#eff4ee,#acbfb8 54%,#687d7f); box-shadow:0 1px 3px #0006 }
.dimension-controls input::-moz-range-track { height:2px; background:#8fa7a0 }
.dimension-controls input::-moz-range-thumb { width:15px; height:15px; border-radius:100%; border:1px solid #dce4dd; background:#baccc5 }
.dimension-controls button { min-height:44px; min-width:5.2rem; border-radius:2rem; border:1px solid #839a92; color:#e9efe5; background:#233734; padding:.45rem 1rem; font-size:.92rem }
.dimension-controls button:hover { background:#314640 }
.dimension-controls :focus-visible { outline:2px solid #d9e7ac; outline-offset:4px }
.work-intro,.portfolio-photos .cover-intro { margin:0 0 1.65rem; max-width:48ch; font-size:clamp(1.1rem,1.5vw,1.45rem); line-height:1.35; letter-spacing:-.025em }
.portfolio-photos .cover-intro { margin:1.25rem 0 .3rem; max-width:30ch }
@media(min-width:1800px) { .projection-stage { height:650px } }
@media(max-width:680px) {
  .projection { padding-top:.75rem }
  .projection-stage { width:calc(100% - 1.5rem); height:clamp(280px,80vw,405px); min-height:0 }
  .projection-caption { align-items:stretch; flex-direction:column; gap:1.15rem; padding-top:.4rem; padding-bottom:1.4rem }
  .work-label { display:flex; justify-content:space-between; align-items:baseline; gap:.5rem }
  .work-label h1 { font-size:clamp(2.75rem,11vw,4.1rem) }
  .work-label>span { font-size:.88rem; white-space:nowrap; margin:0 }
  .projection-tools { border-top:1px solid #c5d6cf3d; padding-top:.65rem; gap:.2rem; align-items:stretch }
  .projection-tools p { font-size:.85rem }
  .dimension-controls { gap:.8rem }
  .dimension-controls input { flex:1; min-width:0; max-width:12rem }
  .dimension-controls button { margin-left:auto }
}
@media(orientation:landscape) and (max-height:520px) {
  .projection-stage { height:48svh; min-height:170px }
  .projection-caption { flex-direction:row; align-items:center; padding-block:.5rem 1.1rem }
  .work-label { display:block }
  .work-label h1 { font-size:2.85rem }
  .work-label>span { font-size:.85rem; margin-top:.4rem }
  .projection-tools { align-items:flex-end; border:0; padding:0 }
}
.still-controls #work-gesture,.still-controls label,.still-controls input { display:none }
/* The mesh is transparent. Its sky stays fixed relative to the frame as the visitor turns it. */
.gravity-exhibit {
  background-color:#0c181b;
  background-image:url("/assets/specific-gravity-stars.webp"),
    radial-gradient(ellipse at 48% 38%,#21353d 0%,#12232a 49%,#0b171d 86%);
  background-size:1008px 672px,cover;
  background-position:49% 39%,center;
  background-repeat:repeat,no-repeat;
}
.gravity-exhibit .projection-stage canvas { cursor:crosshair }
.gravity-exhibit .projection-stage.is-held canvas { cursor:grabbing }
.gravity-exhibit .work-label h1 {
  font-size:clamp(1.15rem,1.65vw,1.52rem); font-weight:400; line-height:1.2; letter-spacing:-.045em;
}
.gravity-exhibit .work-label i { letter-spacing:-.04em }
.gravity-exhibit .projection-caption {
  align-items:center; padding-block:1.15rem 1.4rem;
}
.gravity-exhibit .projection-caption::before {
  content:""; position:absolute; top:0; left:var(--edge); right:var(--edge);
  height:1px; background:#c5d6cf3d; pointer-events:none;
}
.gravity-exhibit .projection-tools { flex-direction:row; align-items:center; gap:clamp(1rem,2.7vw,2.9rem) }
.gravity-exhibit .dimension-controls button { min-width:6.3rem }
.gravity-exhibit .gesture-touch { display:none }
.gravity-exhibit .gesture-print { display:none }
.gravity-exhibit .printed-controls #work-gesture,.gravity-exhibit .printed-controls .gesture-print { display:block }
.gravity-exhibit .printed-controls .gesture-touch,.gravity-exhibit .printed-controls .gesture-mouse { display:none }
.dimension-controls:has([data-spiral-motion]:not([hidden])) { flex-wrap:wrap }
.gravity-exhibit .dimension-controls [data-spiral-motion] { margin-left:0 }
@media(pointer:coarse) {
  .gravity-exhibit .gesture-touch { display:inline }
  .gravity-exhibit .gesture-mouse { display:none }
}
@media(max-width:760px) {
  .gravity-exhibit .projection-caption { align-items:stretch; flex-direction:column; gap:.5rem; padding-block:.85rem 1rem }
  .gravity-exhibit .projection-tools { border:0; padding:0; flex-direction:column; align-items:stretch; gap:.35rem }
  .gravity-exhibit .dimension-controls input { flex:1; min-width:0; max-width:14rem }
  .gravity-exhibit .dimension-controls button { margin-left:auto }
}
@media(orientation:landscape) and (max-height:520px) and (min-width:601px) {
  .gravity-exhibit .projection-caption { flex-direction:row; align-items:center; padding-block:.3rem .55rem }
  .gravity-exhibit .projection-tools { flex-direction:column; align-items:flex-end; gap:0 }
  .gravity-exhibit .dimension-controls input { flex:none; width:7rem }
  .gravity-exhibit .projection-caption::before { opacity:.65 }
}
