@import url("dim-contact-footer-sticky.css");
/* Page: Residential — PN HOUSE (Figma 85:341), 1512×22698 artboard, no Safari chrome (-90px Y) */

:root {
  --pn-board-w: 1512px;
  --pn-board-h: 22698px;
  --pn-text: #595656;
  /* Split panes at the image column edge (Figma x = 688) */
  --pn-split-x: 688px;
  --pn-right-board-w: 824px; /* 1512 - 688 */
  /* Back-to-top anchor in Figma artboard space (scales with board) */
  --pn-back-top-x: 1447px;
  --pn-back-top-y: 860px;
}

html:has(main.dim-pn-house),
body:has(main.dim-pn-house) {
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.dim-pn-house {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  /* Leave room for fixed contact bar (same math as dim-contact-footer-sticky.css) */
  height: calc(
    100dvh - (78px * min(100vw, var(--pn-board-w)) / var(--pn-board-w)) - env(safe-area-inset-bottom, 0px)
  );
  max-height: calc(
    100dvh - (78px * min(100vw, var(--pn-board-w)) / var(--pn-board-w)) - env(safe-area-inset-bottom, 0px)
  );
  overflow: hidden;
}

/* Logo + title + meta: fixed outside scaled board so they stay visible while scrolling */
.dim-pn-house__header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  height: 0;
  overflow: visible;
  pointer-events: none;
  padding-top: env(safe-area-inset-top, 0px);
}

.dim-pn-house__header-fixed-inner {
  position: absolute;
  left: max(0px, calc((100vw - min(100vw, var(--pn-board-w))) / 2));
  top: 0;
  width: 688px;
  height: 360px;
  box-sizing: border-box;
  pointer-events: auto;
  transform: scale(calc(min(100vw, var(--pn-board-w)) / var(--pn-board-w)));
  transform-origin: top left;
  background: #fff;
  box-shadow: 0 1px 0 transparent;
}

.dim-pn-house__scale-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: min(100vw, var(--pn-board-w));
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Two independent vertical scrollers; split at x = 688 (left edge of image stack) */
.dim-pn-house__split-view {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--pn-text);
}

.dim-pn-house__split-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dim-pn-house__split-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dim-pn-house__split-scroll--left {
  flex: 0 0 calc(var(--pn-split-x) * min(100vw, var(--pn-board-w)) / var(--pn-board-w));
  max-width: calc(var(--pn-split-x) * min(100vw, var(--pn-board-w)) / var(--pn-board-w));
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.06);
}

.dim-pn-house__split-scroll--right {
  flex: 1 1 auto;
  min-width: 0;
}

.dim-pn-house__split-clip {
  position: relative;
  flex-shrink: 0;
}

.dim-pn-house__split-clip--left {
  width: 100%;
  height: 100%;
  min-height: calc(var(--pn-board-h) * min(100vw, var(--pn-board-w)) / var(--pn-board-w));
}

.dim-pn-house__split-clip--right {
  width: 100%;
  min-width: calc(var(--pn-right-board-w) * min(100vw, var(--pn-board-w)) / var(--pn-board-w));
  height: 100%;
  min-height: calc(var(--pn-board-h) * min(100vw, var(--pn-board-w)) / var(--pn-board-w));
}

.dim-pn-house__split-board {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  transform: scale(calc(min(100vw, var(--pn-board-w)) / var(--pn-board-w)));
  background: #fff;
}

.dim-pn-house__split-board--left {
  width: var(--pn-split-x);
  /* Same vertical extent as the image column so both halves share one scroll range */
  height: var(--pn-board-h);
}

.dim-pn-house__split-board--right {
  width: var(--pn-right-board-w);
  height: var(--pn-board-h);
}

.dim-pn-house__split-board figure {
  margin: 0;
}

.dim-pn-house__logo {
  position: absolute;
  left: 64px;
  top: 48px;
  width: 213px;
  height: 58px;
  z-index: 6;
  display: block;
}

.dim-pn-house__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  display: block;
}

.dim-pn-house__eyebrow {
  position: absolute;
  left: 64px;
  top: 200px;
  transform: translateY(-50%);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.064px;
  line-height: 1;
  text-transform: uppercase;
}

.dim-pn-house__divider {
  position: absolute;
  left: 190px;
  top: 228px;
  transform: translateY(-50%);
  width: 23px;
  height: 1px;
  background: var(--pn-text);
}

.dim-pn-house__title {
  position: absolute;
  left: 229px;
  top: 228px;
  transform: translateY(-50%);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.064px;
  line-height: 1;
  text-transform: uppercase;
}

.dim-pn-house__meta-row {
  position: absolute;
  left: 64px;
  transform: translateY(-50%);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.064px;
  line-height: 1;
}

.dim-pn-house__meta-row--loc-label {
  top: 288px;
  width: 73px;
}

.dim-pn-house__meta-row--loc-value {
  left: 168px;
  top: 288px;
  width: 200px;
}

.dim-pn-house__meta-row--site-label {
  top: 308px;
  width: 74px;
}

.dim-pn-house__meta-row--site-value {
  left: 168px;
  top: 308px;
  width: 120px;
}

.dim-pn-house__meta-row--year-label {
  top: 328px;
  width: 39px;
}

.dim-pn-house__meta-row--year-value {
  left: 168px;
  top: 328px;
  width: 56px;
}

.dim-pn-house__description {
  position: absolute;
  left: 64px;
  top: 381px;
  width: 560px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.064px;
  line-height: normal;
  text-align: justify;
  z-index: 2;
}

.dim-pn-house__description p {
  margin: 0 0 1em;
}

.dim-pn-house__description p:last-child {
  margin-bottom: 0;
}

/* Right column images */
.dim-pn-house__stage {
  position: absolute;
  overflow: hidden;
  background: transparent;
}

.dim-pn-house__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dim-pn-house__stage-inner {
  position: absolute;
  overflow: hidden;
}

.dim-pn-house__stage-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PN house — 1 */
.dim-pn-house__stage--01 {
  left: 0;
  top: 48px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--01 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 2 */
.dim-pn-house__stage--02 {
  left: 0;
  top: 960px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--02 .dim-pn-house__stage-inner {
  left: 0;
  top: 76px;
  width: 760px;
  height: calc(760px * 2304 / 2880);
}

/* PN house — 3 */
.dim-pn-house__stage--03 {
  left: 0;
  top: 1872px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--03 .dim-pn-house__stage-inner {
  left: 0;
  top: 76px;
  width: 760px;
  height: calc(760px * 2304 / 2880);
}

/* PN house — 4 */
.dim-pn-house__stage--04 {
  left: 0;
  top: 2784px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--04 .dim-pn-house__stage-inner {
  left: 126.67px;
  top: 0;
  width: 506.667px;
  height: 760px;
}

/* PN house — 5 */
.dim-pn-house__stage--05 {
  left: 0;
  top: 3696px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--05 .dim-pn-house__stage-inner {
  left: 126.5px;
  top: 0;
  width: 507px;
  height: 760px;
}

/* PN house — 6 */
.dim-pn-house__stage--06 {
  left: 0;
  top: 4608px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--06 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 7 */
.dim-pn-house__stage--07 {
  left: 0;
  top: 5520px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--07 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 8 */
.dim-pn-house__stage--08 {
  left: 0;
  top: 6432px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--08 .dim-pn-house__stage-inner {
  left: 126.5px;
  top: 0;
  width: 507px;
  height: 760px;
}

/* PN house — 9 */
.dim-pn-house__stage--09 {
  left: 0;
  top: 7344px;
  width: 759px;
  height: 760px;
}

.dim-pn-house__stage--09 .dim-pn-house__stage-inner {
  left: 125.77px;
  top: 0;
  width: 507.458px;
  height: 760px;
}

/* PN house — 10 */
.dim-pn-house__stage--10 {
  left: 0;
  top: 8256px;
  width: 759.736px;
  height: 760px;
}

.dim-pn-house__stage--10 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 759.736px;
  height: 760px;
}

/* PN house — 11 */
.dim-pn-house__stage--11 {
  left: 0;
  top: 9168px;
  width: 761px;
  height: 760px;
}

.dim-pn-house__stage--11 .dim-pn-house__stage-inner {
  left: 76.63px;
  top: 0;
  width: 607.736px;
  height: 760px;
}

/* PN house — 12 */
.dim-pn-house__stage--12 {
  left: 0;
  top: 10080px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--12 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 13 */
.dim-pn-house__stage--13 {
  left: 0;
  top: 10992px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--13 .dim-pn-house__stage-inner {
  left: 0;
  top: 76px;
  width: 760px;
  height: calc(760px * 2304 / 2880);
}

/* PN house — 14 */
.dim-pn-house__stage--14 {
  left: 0;
  top: 11904px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--14 .dim-pn-house__stage-inner {
  left: 126.5px;
  top: 0;
  width: 507px;
  height: 760px;
}

/* PN house — 15 */
.dim-pn-house__stage--15 {
  left: 0;
  top: 12816px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--15 .dim-pn-house__stage-inner {
  left: 0;
  top: 126.5px;
  width: 760px;
  height: calc(760px * 1921 / 2880);
}

/* PN house — 16 */
.dim-pn-house__stage--16 {
  left: 0;
  top: 13728px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--16 .dim-pn-house__stage-inner {
  left: 126.5px;
  top: 0;
  width: 507px;
  height: 760px;
}

/* PN house — 17 */
.dim-pn-house__stage--17 {
  left: 0;
  top: 14640px;
  width: 760px;
  height: 761px;
}

.dim-pn-house__stage--17 .dim-pn-house__stage-inner {
  left: 75.6px;
  top: 0;
  width: 608.8px;
  height: 761px;
}

/* PN house — 18 */
.dim-pn-house__stage--18 {
  left: 0;
  top: 15553px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--18 .dim-pn-house__stage-inner {
  left: 126.5px;
  top: 0;
  width: 507px;
  height: 760px;
}

/* PN house — 19 */
.dim-pn-house__stage--19 {
  left: 0;
  top: 16465px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--19 .dim-pn-house__stage-inner {
  left: 126.27px;
  top: 0;
  width: 507.458px;
  height: 760px;
}

/* PN house — 20 */
.dim-pn-house__stage--20 {
  left: 0;
  top: 17377px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--20 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 21 */
.dim-pn-house__stage--21 {
  left: 0;
  top: 18289px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--21 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 22 */
.dim-pn-house__stage--22 {
  left: 0;
  top: 19201px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--22 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 23 */
.dim-pn-house__stage--23 {
  left: 0;
  top: 20113px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--23 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

/* PN house — 24 */
.dim-pn-house__stage--24 {
  left: 0;
  top: 21025px;
  width: 760px;
  height: 761px;
}

.dim-pn-house__stage--24 .dim-pn-house__stage-inner {
  left: 75.6px;
  top: 0;
  width: 608.8px;
  height: 761px;
}

/* PN house — 25 */
.dim-pn-house__stage--25 {
  left: 0;
  top: 21938px;
  width: 760px;
  height: 760px;
}

.dim-pn-house__stage--25 .dim-pn-house__stage-inner {
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
}

.dim-pn-house__footer {
  position: absolute;
  left: 0;
  top: 814px;
  width: 1512px;
  height: 78px;
  z-index: 4;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.dim-pn-house__footer-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  gap: 24px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.052px;
  line-height: 1.35;
  color: var(--pn-text);
}

.dim-pn-house__footer-col {
  flex: 0 1 auto;
  min-width: 0;
}

.dim-pn-house__footer-col p {
  margin: 0;
}

.dim-pn-house__footer-col--mid {
  text-align: center;
  flex: 1 1 auto;
}

.dim-pn-house__footer-col--right {
  text-align: right;
}

.dim-pn-house__footer a {
  color: var(--pn-text);
  text-decoration: none;
}

.dim-pn-house__footer a:hover {
  text-decoration: underline;
}

.dim-pn-house__back-top {
  position: fixed;
  z-index: 55;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Figma (1512 artboard): left = 1447px, top = 860px — same scale + horizontal centering as columns */
body:has(main.dim-pn-house > footer[data-name="Contact info"]) .dim-pn-house__back-top {
  right: auto !important;
  bottom: auto !important;
  left: calc(
    (100vw - min(100vw, var(--pn-board-w))) / 2
    + var(--pn-back-top-x) * min(100vw, var(--pn-board-w)) / var(--pn-board-w)
  ) !important;
  top: calc(
    var(--pn-back-top-y) * min(100vw, var(--pn-board-w)) / var(--pn-board-w) + env(safe-area-inset-top, 0px)
  ) !important;
}

.dim-pn-house__back-top-icon {
  display: block;
  width: 26.667px;
  height: 26.667px;
}

.dim-pn-house__back-top-ring,
.dim-pn-house__back-top-path {
  stroke: var(--Main, #595656);
  stroke-width: 1px;
}

@media (max-width: 480px) {
  .dim-pn-house__footer-inner {
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    row-gap: 4px;
  }

  .dim-pn-house__footer-col--mid,
  .dim-pn-house__footer-col--right {
    text-align: center;
  }
}
