@import url("dim-contact-footer-sticky.css");
/* Page: Residential — Phet H / Phetchaburi House Renovation (Figma 91:774), 1512×15400 artboard, no Safari chrome */

:root {
  --phet-split-x: 688px;
  --phet-right-board-w: 824px;
  --phet-back-top-x: 1447px;
  --phet-back-top-y: 860px;

  --phet-board-w: 1512px;
  --phet-board-h: 15400px;
  --phet-text: #595656;
}
html:has(main.dim-phet-house),
body:has(main.dim-phet-house) {
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.dim-phet-house {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: calc(
    100dvh - (78px * min(100vw, var(--phet-board-w)) / var(--phet-board-w)) - env(safe-area-inset-bottom, 0px)
  );
  max-height: calc(
    100dvh - (78px * min(100vw, var(--phet-board-w)) / var(--phet-board-w)) - env(safe-area-inset-bottom, 0px)
  );
  overflow: hidden;
}

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

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

.dim-phet-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;
}

.dim-phet-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-phet-house__split-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

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

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

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

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

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

.dim-phet-house__split-board--left {
  width: var(--phet-split-x);
  height: var(--phet-board-h);
}

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

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


.dim-phet-house {
  width: 100%;
  background: #fff;
}







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

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

.dim-phet-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-phet-house__divider {
  position: absolute;
  left: 190px;
  top: 228px;
  transform: translateY(-50%);
  width: 23px;
  height: 1px;
  background: var(--phet-text);
}

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

.dim-phet-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-phet-house__meta-row--loc-label {
  top: 288px;
  width: 69px;
}

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

.dim-phet-house__meta-row--site-label {
  top: 308px;
  width: 75px;
}

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

.dim-phet-house__meta-row--year-label {
  top: 328px;
  width: 44px;
}

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

.dim-phet-house__stage {
  position: absolute;
  overflow: hidden;
  background: transparent;
}

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

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

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

/* Cropped inset images (scaled to match Figma overflow) */
.dim-phet-house__stage-crop-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dim-phet-house__stage-crop-inner img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dim-phet-house__stage--02-1 .dim-phet-house__stage-crop-inner img {
  left: -0.02%;
  width: 100.04%;
  height: 100.18%;
}

.dim-phet-house__stage--02-2 .dim-phet-house__stage-crop-inner img {
  left: -0.27%;
  top: -0.01%;
  width: 100.27%;
  height: 100.02%;
}

.dim-phet-house__stage--08 .dim-phet-house__stage-crop-inner img {
  left: -0.01%;
  width: 100.02%;
  height: 105.46%;
}

/* Phet HOUSE — 1 */
.dim-phet-house__stage--01 {
  left: 0;
  top: 48px;
  width: 760px;
  height: 760px;
}

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

/* Row 2: before/after pair */
.dim-phet-house__stage--02-1 {
  left: 0;
  top: 1058px;
  width: 362px;
  height: 557px;
}

.dim-phet-house__stage--02-2 {
  left: 394px;
  top: 1058px;
  width: 366px;
  height: 557px;
}

/* Phet HOUSE — 3 (image 4 in export) */
.dim-phet-house__stage--03 {
  left: 0;
  top: 1872px;
  width: 760px;
  height: 760px;
}

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

.dim-phet-house__stage--04 {
  left: 0;
  top: 2784px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--04 .dim-phet-house__stage-inner {
  left: 127px;
  top: 0;
  width: 506px;
  height: 760px;
}

.dim-phet-house__stage--05 {
  left: 0;
  top: 3696px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--05 .dim-phet-house__stage-inner {
  left: 127px;
  top: 0;
  width: 506px;
  height: 760px;
}

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

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

.dim-phet-house__stage--07 {
  left: -1px;
  top: 5520px;
  width: 760px;
  height: 760px;
}

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

.dim-phet-house__stage--08 {
  left: 0;
  top: 6432px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--09 {
  left: 0;
  top: 7344px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--09 .dim-phet-house__stage-inner {
  left: 76px;
  top: 0;
  width: 608px;
  height: 760px;
}

.dim-phet-house__stage--10 {
  left: 0;
  top: 8256px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--10 .dim-phet-house__stage-inner {
  left: 0;
  top: 127px;
  width: 760px;
  height: 506px;
}

.dim-phet-house__stage--11 {
  left: 0;
  top: 9168px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--11 .dim-phet-house__stage-inner {
  left: 76px;
  top: 0;
  width: 608px;
  height: 760px;
}

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

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

.dim-phet-house__stage--13 {
  left: 0;
  top: 10992px;
  width: 760px;
  height: 760px;
}

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

.dim-phet-house__stage--14 {
  left: 0;
  top: 11904px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--14 .dim-phet-house__stage-inner {
  left: 76px;
  top: 0;
  width: 608px;
  height: 760px;
}

.dim-phet-house__stage--15 {
  left: 0;
  top: 12816px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--15 .dim-phet-house__stage-inner {
  left: 127px;
  top: 0;
  width: 506px;
  height: 760px;
}

.dim-phet-house__stage--16 {
  left: 0;
  top: 13728px;
  width: 760px;
  height: 760px;
}

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

.dim-phet-house__stage--17 {
  left: 0;
  top: 14640px;
  width: 760px;
  height: 760px;
}

.dim-phet-house__stage--17 .dim-phet-house__stage-inner {
  left: 127px;
  top: 0;
  width: 506px;
  height: 760px;
}

.dim-phet-house__before-after {
  position: absolute;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.064px;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.dim-phet-house__before-after--b {
  left: 156px;
  top: 1645px;
}

.dim-phet-house__before-after--a {
  left: 558px;
  top: 1645px;
}

.dim-phet-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-phet-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(--phet-text);
}

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

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

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

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

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

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





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

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

.dim-phet-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;
}

body:has(main.dim-phet-house > footer[data-name="Contact info"]) .dim-phet-house__back-top {
  right: auto !important;
  bottom: auto !important;
  left: calc(
    (100vw - min(100vw, var(--phet-board-w))) / 2
    + var(--phet-back-top-x) * min(100vw, var(--phet-board-w)) / var(--phet-board-w)
  ) !important;
  top: calc(
    var(--phet-back-top-y) * min(100vw, var(--phet-board-w)) / var(--phet-board-w) + env(safe-area-inset-top, 0px)
  ) !important;
}

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

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