/* The house is a floating page element, not a section or a side panel. */
html.lenis {
  scroll-behavior: auto;
}
.hero-background::after {
  background:
    linear-gradient(90deg, #0d171dd9 0%, #0d171d88 45%, #101b2280 100%),
    linear-gradient(180deg, #0d171d35, transparent 45%, #0d171d85);
}
.hero-image {
  will-change: transform;
}
.hero-scene-note {
  position: absolute;
  right: 8%;
  top: 23%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #d3dfe3;
  font-size: 9px;
  letter-spacing: 0.16em;
  z-index: 2;
}
.hero-scene-note > span:last-child {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #aebfc6;
}
.hero-scene-note b {
  display: inline-block;
  margin-left: 15px;
  font-weight: 400;
  color: #f3a0a1;
}
.construction-viewer::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  opacity: 0.18;
  transform: scaleX(var(--build-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.journey-shell {
  display: block;
  max-width: none;
  border: 0;
  margin: 0;
}
.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 150px);
  align-items: center;
}
.section-copy {
  min-width: 0;
  max-width: 620px;
}
.section-copy > p:not(.section-lead):not(.fine-print):not(.model-prompt) {
  font-size: 14px;
  line-height: 1.9;
}
.model-anchor {
  min-height: 450px;
  align-self: stretch;
  pointer-events: none;
}
.model-left .section-copy {
  grid-column: 2;
  grid-row: 1;
}
.model-left .model-anchor {
  grid-column: 1;
  grid-row: 1;
}
.hero-model-anchor {
  position: absolute;
  right: 4%;
  top: 25%;
  width: 43%;
  height: 58%;
  min-height: 0;
}
.build-section {
  min-height: 760px;
}
.build-section h2 {
  font-size: clamp(36px, 3.7vw, 58px);
}
.build-section .section-lead {
  font-size: 17px;
}
.process-section {
  display: block;
  padding-block: 130px;
}
.system {
  display: block;
  padding-block: 110px;
}
.gallery-section .section-layout {
  align-items: start;
}
.presence-layout,
.contact-layout {
  display: block;
}
.gallery-heading > p {
  max-width: 520px;
}
.process-photo {
  max-width: 520px;
}
.structure-section {
  background: #f1f3f3;
}
.map-wrap {
  max-width: 420px;
}
.faq .section-copy {
  width: 100%;
}
.contact .section-copy {
  width: 100%;
}
.contact .section-layout {
  align-items: start;
}
.construction-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  display: flex;
  width: 43vw;
  height: 65vh;
  min-height: 0;
  max-height: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  z-index: 25;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.2s;
}
.construction-viewer.is-after-story {
  opacity: 0;
  visibility: hidden;
}
.construction-viewer .model-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
}
.construction-viewer #construction-canvas {
  inset: 0;
}
.construction-viewer #construction-canvas canvas {
  pointer-events: none;
  cursor: default;
}
.construction-viewer.is-expanded #construction-canvas canvas {
  pointer-events: auto;
  cursor: grab;
}
.construction-viewer .viewer-topline {
  position: absolute;
  right: 12px;
  bottom: -1px;
  z-index: 3;
  display: flex;
  gap: 5px;
}
.construction-viewer .viewer-topline > span {
  display: none;
}
.construction-viewer .viewer-expand {
  display: block;
  pointer-events: auto;
  font-size: 10px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 5px;
}
.construction-viewer .viewer-dismiss {
  display: none;
}
.construction-viewer .model-annotation {
  display: none;
}
.construction-viewer .model-caption {
  position: absolute;
  left: 18px;
  bottom: 3px;
  padding: 0;
  display: block;
  pointer-events: none;
}
.construction-viewer .model-caption > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.construction-viewer .model-caption > div > span {
  font-size: 8px;
  margin: 0;
  letter-spacing: 0.06em;
}
.construction-viewer .model-caption strong {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.construction-viewer .model-scroll-hint,
.construction-viewer .model-footer,
.construction-viewer .model-timeline,
.construction-viewer .model-resume {
  display: none;
}
.construction-viewer .model-toolbar {
  display: none;
  bottom: 42px;
  pointer-events: auto;
}
.construction-viewer.is-expanded .model-toolbar {
  display: flex;
}
.construction-viewer.is-expanded .model-timeline {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -76px;
  display: grid;
  gap: 12px;
  pointer-events: auto;
  background: #fffffff2;
  padding: 8px 15px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px #1923260d;
}
.construction-viewer.is-expanded .model-timeline button {
  font-size: 9px;
  min-height: 44px;
  padding: 8px 0;
}
.construction-viewer.is-expanded .model-resume:not([hidden]) {
  display: block;
  position: absolute;
  bottom: -115px;
  left: 20px;
  background: white;
  padding: 8px 12px;
  pointer-events: auto;
}
.construction-viewer.is-on-hero .model-caption,
.construction-viewer.is-on-dark .model-caption {
  color: white;
  text-shadow: 0 1px 12px #0006;
}
.construction-viewer.is-on-hero .viewer-expand,
.construction-viewer.is-on-dark .viewer-expand {
  color: #fff;
  text-shadow: 0 1px 8px #0009;
}
.construction-viewer.is-on-hero .model-caption > div > span,
.construction-viewer.is-on-dark .model-caption > div > span {
  color: #f19596;
}
.construction-viewer.is-on-hero .model-fallback path {
  stroke: #fff;
}
.construction-viewer .model-fallback p {
  font-size: 9px;
}
@media (max-width: 1100px) {
  .section-layout {
    gap: 50px;
  }
  .build-section h2 {
    font-size: 39px;
  }
  .section-copy > p:not(.section-lead):not(.fine-print):not(.model-prompt) {
    font-size: 13px;
  }
  .build-section .section-lead {
    font-size: 15px;
  }
  .construction-viewer .model-caption strong {
    font-size: 10px;
  }
  .construction-viewer .viewer-expand {
    font-size: 9px;
  }
  .hero-model-anchor {
    right: 1%;
    width: 43%;
  }
  .hero h1 {
    font-size: 66px;
    max-width: 58%;
  }
  .hero-description {
    max-width: 380px;
  }
  .hero-actions {
    gap: 22px;
  }
  .hero-secondary {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .hero-scene-note {
    display: none;
  }
  .section-layout {
    display: block;
  }
  .section-copy {
    max-width: none;
  }
  .model-anchor {
    display: none;
  }
  .hero-model-anchor {
    display: block;
    width: 135px;
    height: 135px;
    min-height: 0;
    top: 105px;
    right: 15px;
  }
  .model-left .section-copy {
    grid-column: auto;
  }
  .build-section {
    min-height: 0;
  }
  .process-section,
  .system {
    padding-block: 80px;
    min-height: 640px;
  }
  .build-section h2 {
    font-size: 43px;
  }
  .build-section .section-lead {
    font-size: 17px;
  }
  .hero h1 {
    max-width: 100%;
    font-size: 66px;
  }
  .hero-description {
    max-width: 420px;
  }
  .hero-secondary {
    font-size: 11px;
  }
  .construction-viewer {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 15px;
    width: 185px;
    height: 190px;
    transform: none !important;
    background: transparent;
    z-index: 40;
    border: 0;
    box-shadow: none;
    display: none;
    pointer-events: none;
  }
  .construction-viewer.is-in-journey {
    display: flex;
  }
  .construction-viewer.is-on-hero {
    top: 94px;
    bottom: auto;
    width: 140px;
    height: 145px;
  }
  .construction-viewer .viewer-topline {
    right: 0;
    bottom: 0;
    background: #fffffff0;
    padding: 0 4px;
    pointer-events: auto;
    border-radius: 2px;
    border: 1px solid var(--line);
  }
  .construction-viewer .viewer-expand {
    font-size: 8px !important;
    min-height: 32px;
    color: var(--ink) !important;
    text-shadow: none !important;
  }
  .construction-viewer .viewer-dismiss {
    display: block;
    min-height: 32px;
    height: 32px;
    width: 28px;
    pointer-events: auto;
    color: var(--ink);
    font-size: 17px;
  }
  .construction-viewer .model-caption {
    display: none;
  }
  .construction-viewer .model-stage {
    min-height: 0;
    padding: 0;
  }
  .construction-viewer.is-expanded {
    top: calc(50% - 260px);
    left: 10px;
    right: 10px;
    bottom: auto;
    width: auto;
    height: min(520px, 70svh);
    padding: 12px;
    background: #f1f3f3f5;
    border: 1px solid var(--line);
    box-shadow: 0 12px 45px #0003;
    pointer-events: auto;
  }
  .construction-viewer.is-expanded .model-caption {
    display: block;
    bottom: 58px;
    left: 20px;
    color: var(--ink);
    text-shadow: none;
  }
  .construction-viewer.is-expanded .model-caption > div > span {
    color: var(--red);
  }
  .construction-viewer.is-expanded .model-caption strong {
    font-size: 12px;
  }
  .construction-viewer.is-expanded .model-toolbar {
    bottom: 105px;
  }
  .construction-viewer.is-expanded .model-timeline {
    bottom: 0;
    left: 12px;
    right: 12px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .construction-viewer.is-expanded .model-timeline button {
    font-size: 8px;
  }
  .construction-viewer.is-expanded .viewer-topline {
    top: 5px;
    right: 6px;
    bottom: auto;
    border: 0;
    background: none;
  }
  .construction-viewer.is-expanded .model-resume:not([hidden]) {
    bottom: -40px;
    font-size: 9px;
    left: 12px;
  }
  .construction-viewer.is-form-active {
    display: none;
  }
  .construction-viewer.is-on-hero .model-fallback p {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(42px, 11.7vw, 64px);
  }
  .hero-description {
    max-width: 320px;
  }
  .hero-secondary {
    font-size: 10px;
  }
  .build-section h2 {
    font-size: 34px;
  }
  .build-section .section-lead {
    font-size: 15px;
  }
  .section-copy > p:not(.section-lead):not(.fine-print):not(.model-prompt) {
    font-size: 12px;
  }
  .construction-viewer {
    width: 165px;
    height: 175px;
  }
  .construction-viewer.is-on-hero {
    width: 118px;
    height: 125px;
    top: 93px;
  }
  .construction-viewer.is-expanded {
    width: auto;
    height: min(480px, 70svh);
    top: calc(50% - 240px);
  }
  .construction-viewer .viewer-expand {
    font-size: 7px !important;
  }
  .construction-viewer .viewer-dismiss {
    width: 26px;
  }
  .contact .wrap {
    padding-bottom: 70px;
  }
  .hero-baseline {
    padding-right: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .construction-viewer {
    will-change: auto;
    transition: none;
  }
}

/* The same travelling scene opens up for a full-scale construction moment. */
.cinematic-section {
  padding-bottom: 85px;
  background: #edf0f0;
}
.cinematic-section .section-layout {
  display: block;
}
.cinematic-section .section-copy {
  max-width: 510px;
}
.cinematic-section .model-focus-anchor {
  display: block;
  position: relative;
  min-height: 130svh;
  margin-top: 100px;
}
.focus-caption {
  position: sticky;
  top: 106px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #68767b;
  padding-top: 22px;
}
.focus-caption i {
  width: 20px;
  height: 1px;
  background: #af3437;
  opacity: 0.55;
}
.construction-viewer.is-cinematic .model-caption {
  left: 50%;
  transform: translateX(-50%);
}
.construction-viewer.is-cinematic::after {
  left: 35%;
  right: 35%;
}
.construction-viewer.is-showcase .model-caption {
  left: clamp(55px, 4vw, 85px);
}
.construction-viewer.is-showcase::after {
  left: clamp(55px, 4vw, 85px);
  right: 24px;
}
@media (max-width: 800px) {
  .cinematic-section .section-copy {
    max-width: none;
  }
  .cinematic-section .model-focus-anchor {
    min-height: 120svh;
    margin-top: 60px;
  }
  .focus-caption {
    font-size: 7px;
    gap: 9px;
    letter-spacing: 0.07em;
    top: 85px;
  }
  .focus-caption i {
    width: 12px;
  }
  .construction-viewer:not(.is-on-hero):not(.is-expanded) {
    width: calc(165px + (100vw - 205px) * var(--scene-focus, 0));
    height: calc(175px + (58svh - 175px) * var(--scene-focus, 0));
    top: calc(100svh - 190px + (320px - 100svh) * var(--scene-focus, 0));
    bottom: auto;
    right: calc(10px + 10px * var(--scene-focus, 0));
  }
  .construction-viewer .viewer-expand {
    font-size: 9px !important;
    min-height: 40px;
  }
  .construction-viewer .viewer-dismiss {
    min-height: 40px;
    width: 36px;
    height: 40px;
  }
  .construction-viewer.is-cinematic .model-caption {
    left: 20px;
    transform: none;
  }
  /* On phones the house is part of the story, with no floating control card. */
  .construction-viewer .viewer-topline,
  .construction-viewer .model-caption,
  .construction-viewer .model-toolbar,
  .construction-viewer .model-timeline,
  .construction-viewer .model-resume,
  .construction-viewer::after,
  .viewer-reopen {
    display: none !important;
  }
}
