.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0c160fd9 0%, #0b170f70 36%, transparent 75%),
    linear-gradient(0deg, #111d17be, transparent 40%);
  z-index: -1;
}
.hero-image {
  background-position: 60% 55%;
  filter: saturate(0.65);
}
.hero-copy {
  position: absolute;
  left: 8vw;
  top: 48%;
  translate: 0 -43%;
}
.hero-copy .intro {
  font-size: 13px;
}
.light-pass {
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 43%, #f5d4a011 50%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}
.roof-line {
  position: absolute;
  right: 8vw;
  bottom: 130px;
  width: 32vw;
  opacity: 0.35;
  fill: none;
  stroke: #e5d6b8;
  stroke-width: 0.7;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  pointer-events: none;
}
.field-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, #52604755, transparent 60%);
  z-index: -1;
}
.field-frame {
  position: absolute;
  left: 51%;
  top: 14%;
  bottom: 15%;
  width: 33%;
  margin: 0;
  perspective: 800px;
}
.field-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition:
    opacity 0.5s,
    transform 0.9s;
  box-shadow: 20px 30px 80px #0005;
}
.field-frame figcaption {
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.image-navigation {
  position: absolute;
  right: 8vw;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 26px;
  font:
    8px Consolas,
    monospace;
  letter-spacing: 0.1em;
}
.image-navigation button {
  font-size: 22px;
  padding: 10px;
}
.scene-measure,
.scene-archive {
  background: #e8e2d6;
  color: #29362b;
}
.scene-measure h2 em,
.scene-archive h2 em {
  color: #976044;
}
.scene-measure .intro {
  color: #586153;
}
.draft-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(#6c745016 1px, transparent 1px),
    linear-gradient(90deg, #6c745016 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(110deg, transparent, black);
}
.drawing-stage {
  position: absolute;
  left: 42%;
  right: 5%;
  top: 22%;
  bottom: 20%;
  margin: 0;
  display: flex;
  align-items: center;
  transform: rotate(-3deg);
}
.drawing-stage img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  box-shadow: 0 25px 50px #34301c1a;
}
.dimension {
  position: absolute;
  font:
    9px Consolas,
    monospace;
  letter-spacing: 0.14em;
  left: 0;
  right: 0;
  border-bottom: 1px solid #68795e66;
  padding: 10px;
}
.dimension.top {
  top: -30px;
}
.dimension.bottom {
  bottom: -30px;
}
.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #a3614680;
  box-shadow: 0 0 20px 4px #a3614611;
  left: 0;
}
.scene-measure .giant-index {
  color: #79836214;
}
.construction-stage {
  position: absolute;
  inset: 30px 0 165px;
  z-index: -1;
}
.construction-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.construction-heading {
  position: absolute;
  left: 5vw;
  top: 16%;
  pointer-events: none;
}
.construction-heading h2 {
  font-size: clamp(42px, 4.2vw, 70px);
}
.construction-heading .eyebrow {
  font-size: 9px;
}
.construction-state {
  position: absolute;
  right: 5vw;
  top: 18%;
  width: 230px;
  display: flex;
  gap: 15px;
  pointer-events: none;
}
.construction-state > span {
  font: 44px/1 var(--serif);
  color: #aa8864;
}
.construction-state h3 {
  font: 23px var(--serif);
  margin: 8px 0 12px;
}
.construction-state p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
  line-height: 1.9;
}
.construction-state #construction-mode-label {
  font:
    8px Consolas,
    monospace;
  letter-spacing: 0.13em;
  color: #b79171;
}
.explore-trigger {
  position: absolute;
  right: 5vw;
  top: 42%;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 11px;
}
.construction-controls {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 75px;
  padding: 16px 0 0;
  background: linear-gradient(transparent, #17221cf0 30%);
}
.transport {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 10px;
}
.transport button {
  padding: 10px 0;
}
.transport button:first-child {
  font-size: 12px;
  color: #dbb78f;
}
.timeline-line {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.transport output {
  width: 40px;
  text-align: right;
  font: 20px var(--serif);
}
#construction-progress {
  width: 100%;
  height: 23px;
  margin: 4px 0 6px;
}
.construction-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
.construction-steps button {
  padding: 10px 0;
  text-align: left;
  display: flex;
  gap: 10px;
  border-top: 1px solid #546151;
  color: #83917e;
  font-size: 10px;
  line-height: 1.5;
}
.construction-steps small {
  font:
    10px/1.5 Consolas,
    monospace;
}
.construction-steps .is-active {
  border-color: #c69066;
  color: #e7c59f;
}
.construction-steps .is-done {
  border-color: #9fae88;
}
#explore-panel {
  position: absolute;
  right: 4.5vw;
  top: 120px;
  width: 270px;
  padding: 20px 22px;
  background: #142018ef;
  border-left: 1px solid #818f6d55;
  max-height: calc(100dvh - 210px);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 10px;
}
#explore-panel p {
  color: var(--muted);
  font-size: 10px;
}
.explore-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 10px;
}
.explore-head button {
  padding: 8px 0;
  color: #ddb48d;
}
.view-choices {
  display: flex;
  gap: 10px;
  padding: 8px 0 18px;
}
.view-choices button {
  padding: 6px 10px;
  border: 1px solid var(--line);
}
#explore-panel > label {
  display: block;
  margin-bottom: 4px;
}
#explore-panel > input {
  width: 100%;
  margin-bottom: 16px;
}
.layer-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.layer-choices label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.layer-choices input {
  accent-color: #b88a60;
}
.is-exploring .construction-controls,
.is-exploring .construction-state,
.is-exploring .explore-trigger {
  display: none;
}
.is-exploring iframe {
  pointer-events: auto;
}
.is-exploring .construction-heading {
  opacity: 0.5;
}
.archive-index {
  position: absolute;
  left: 8vw;
  top: 18%;
  width: 26%;
}
.archive-index h2 {
  font-size: clamp(45px, 5.5vw, 88px);
}
#archive-categories {
  display: flex;
  flex-direction: column;
  margin: 24px 0 16px;
}
#archive-categories button {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #52614b35;
  padding: 12px 0;
  font-size: 12px;
  text-align: left;
}
#archive-categories button.is-active {
  color: #9c5539;
}
#archive-categories small {
  font:
    10px Consolas,
    monospace;
  color: #7b826d;
}
.archive-index .text-link {
  font-size: 10px;
  gap: 14px;
}
.archive-desk {
  position: absolute;
  left: 43%;
  right: 8%;
  top: 20%;
  bottom: 15%;
  display: flex;
  flex-direction: column;
}
.archive-desk > button {
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 0;
  z-index: 2;
}
.archive-desk img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(8px 20px 16px #40342225);
}
.paper-shadow {
  position: absolute;
  inset: 5% 8% 18%;
  background: #d5cdbd;
  rotate: -4deg;
  z-index: -1;
}
.archive-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 22px 0 12px;
  gap: 12px;
}
.archive-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #52614b35;
  padding-top: 10px;
}
.archive-paging button {
  padding: 10px;
  font-size: 22px;
}
.archive-paging label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.archive-paging select {
  max-width: 220px;
  color: #29362b;
  background: #e8e2d6;
  border: 1px solid #52614b55;
  padding: 7px;
}
.render-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #d6d1c5;
  filter: saturate(0.8);
}
.render-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #101910c9, transparent 60%),
    linear-gradient(0deg, #0d150ddd, transparent 28%);
  z-index: -1;
}
.render-copy {
  position: absolute;
  left: 8vw;
  bottom: 20%;
}
.render-copy h2 {
  font-size: clamp(50px, 6vw, 100px);
}
.render-copy p:last-child {
  margin-top: 24px;
  font-size: 11px;
}
.render-navigation {
  position: absolute;
  right: 7vw;
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 30px;
  font:
    12px Consolas,
    monospace;
}
.render-navigation button {
  padding: 10px;
  font-size: 17px;
}
.render-navigation button:last-child {
  font-size: 10px;
}
.method-copy {
  position: absolute;
  left: 8vw;
  top: 18%;
  width: 44%;
}
.method-copy h2 {
  font-size: clamp(40px, 4.7vw, 76px);
}
.method-list {
  padding: 0;
  list-style: none;
  width: 80%;
  margin: 28px 0;
}
.method-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.method-list li > span {
  font:
    10px Consolas,
    monospace;
  color: #b4916c;
}
.method-list strong {
  font-size: 13px;
  font-weight: 400;
}
.method-list small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.method-media {
  position: absolute;
  left: 53%;
  right: 7%;
  top: 28%;
  bottom: 24%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.method-media video {
  width: 100%;
  max-height: 100%;
  position: relative;
  z-index: 2;
  object-fit: contain;
}
.video-caption {
  font:
    9px Consolas,
    monospace;
  letter-spacing: 0.1em;
  margin-top: 18px;
}
.method-orbit {
  position: absolute;
  inset: -12%;
  border: 1px solid #a7a08033;
  transform: rotate(-8deg);
  z-index: -1;
}
.method-orbit:after {
  content: '';
  position: absolute;
  inset: 7%;
  border: 1px solid #a7a08022;
}
.epilogue-image {
  position: absolute;
  inset: 12% -8% 3% 34%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 22%);
  opacity: 0.85;
  z-index: -1;
}
.epilogue-copy {
  position: absolute;
  left: 8vw;
  top: 22%;
}
.epilogue-copy h2 {
  font-size: clamp(54px, 6.4vw, 105px);
}
.epilogue-copy > p:not(.eyebrow) {
  margin-top: 25px;
  font-size: 13px;
  color: var(--muted);
}
.epilogue-links {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  font-size: 11px;
}
.epilogue-links button {
  padding: 0;
}
.epilogue-copy .credit {
  font-size: 9px !important;
  line-height: 1.8;
  margin-top: 40px !important;
}
dialog {
  padding: 0;
  border: 1px solid #9d9f8455;
  background: #18211c;
  color: #e7dfce;
  max-width: none;
  width: 94vw;
  height: 92dvh;
  max-height: 94dvh;
  overflow: hidden;
}
dialog::backdrop {
  background: #080d0bef;
}
.lightbox-top,
.lightbox-bottom {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 15px;
  font-size: 11px;
}
.lightbox-top {
  border-bottom: 1px solid #abb29840;
}
.lightbox-surface {
  height: calc(100% - 110px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #e3ded2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-surface img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-surface.is-zoomed {
  display: block;
}
.lightbox-surface.is-zoomed img {
  max-width: none;
  max-height: none;
  margin: auto;
}
/* Finger-follow for swipe-to-page and swipe-down-to-close; springs back on release. */
.lightbox-surface img {
  translate: var(--lb-x, 0px) var(--lb-y, 0px);
  opacity: var(--lb-o, 1);
  transition:
    translate 0.4s var(--ease),
    opacity 0.4s var(--ease);
}
.lightbox-surface.is-dragging img {
  transition: none;
}
.lightbox-surface:not(.is-zoomed) {
  touch-action: none;
}
dialog[open] {
  animation: dialog-in 0.32s var(--ease);
}
dialog[open]::backdrop {
  animation: backdrop-in 0.32s ease;
}
dialog.is-closing {
  animation: dialog-out 0.22s ease forwards;
}
dialog.is-closing::backdrop {
  animation: backdrop-in 0.22s ease reverse forwards;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    scale: 0.97;
  }
}
@keyframes dialog-out {
  to {
    opacity: 0;
    scale: 0.98;
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}
.archive-desk > button:active:not(:disabled) {
  scale: 0.99;
}
.lightbox-bottom button,
.lightbox-top button {
  padding: 10px;
}
.lightbox-bottom a {
  font-size: 10px;
}
#model-fallback {
  position: absolute;
  z-index: 10;
  left: 35%;
  right: 25%;
  top: 40%;
  padding: 20px;
  background: #17221cf2;
  border: 1px solid #b29c6855;
  font-size: 12px;
}
@media (max-width: 760px) {
  #model-fallback {
    left: 8%;
    right: 8%;
    top: 38%;
    font-size: 11px;
  }
  .embedded .public-edition {
    right: 8%;
  }
}
