@font-face {
  font-family: "Noto Sans Thai";
  src: url("/assets/noto-sans-thai.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("/assets/noto-sans-thai-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #faf6ee;
  --white: #fffdfa;
  --header-paper: #fffcf6;
  --sand: #eee4d6;
  --ink: #2d2019;
  --muted: #66534a;
  --rule: #dfd3c5;
  --blue: #2446d5;
  --blue-tint: #edf0ff;
  --gutter: clamp(20px, 5.6vw, 88px);
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 "Noto Sans Thai", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
section[id], #showroom { scroll-margin-top: 80px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.shell { width: min(1230px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; z-index: 9; left: 12px; top: 10px; padding: 8px 14px; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }

#site-header { position: sticky; z-index: 5; top: 0; background: var(--header-paper); border-bottom: 1px solid var(--rule); }
.topbar { min-height: 62px; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.wordmark { display: block; flex: 0 0 auto; width: 135px; }
.wordmark img { width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
nav a { text-decoration: none; font-size: 14px; padding-block: 12px; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.quote-button, .contact-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #ac9380;
  padding: 7px 15px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.quote-button {
  gap: 9px;
  border-color: transparent;
  border-radius: 9px;
  background: var(--ink);
  color: var(--header-paper);
  transition: background-color .18s ease;
}
.quote-button:hover { background: #543a2e; }
.line-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 16px;
  border-radius: 50%;
  background: var(--header-paper);
  color: var(--ink);
  font: 700 6px/1 Arial, sans-serif;
  letter-spacing: -.025em;
}
.line-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -3px;
  border-top: 5px solid var(--header-paper);
  border-right: 5px solid transparent;
}
.menu-button { display: none; }
.arrow { position: relative; display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; vertical-align: middle; }
.arrow.diagonal { transform: rotate(-45deg); }
.arrow::before { content: ""; position: absolute; width: 10px; top: 5px; left: 0; border-top: 1.5px solid currentColor; }
.arrow::after { content: ""; position: absolute; width: 7px; height: 7px; top: 2.2px; right: 2px; transform: rotate(45deg); border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }

.small-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.action-link { display: inline-flex; width: fit-content; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; text-underline-offset: 5px; }
.action-link:hover { color: var(--blue); }

.home-page {
  --frame-ratio: 1.88;
  --frame-max: clamp(260px, calc(100svh - 224px), 650px);
  --room-rail: clamp(142px, 16vw, 224px);
  --gallery-gap: clamp(8px, 1.15vw, 16px);
  --frame-width: calc(var(--frame-max) * var(--frame-ratio) + var(--room-rail) + var(--gallery-gap));
}
.home-page .topbar, .feature-inner {
  width: min(1370px, var(--frame-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.feature {
  background-color: var(--paper);
  background-image:
    linear-gradient(to bottom, var(--header-paper), transparent 22%, transparent 76%, var(--paper)),
    url("/assets/brand/hero-daylight.webp");
  background-position: center, center 46%;
  background-size: cover;
  background-repeat: no-repeat;
  padding: clamp(10px, 2svh, 20px) 0 clamp(28px, 4.2vw, 57px);
}
.feature-heading { margin-bottom: 11px; }
.feature-heading h1 { font-size: clamp(28px, 3.55vw, 52px); letter-spacing: -.035em; text-wrap: balance; }
.feature-summary { max-width: 116ch; margin-top: 5px; color: var(--muted); font-size: clamp(13px, 1.12vw, 16px); }
.feature-view { position: relative; }
#feature-status { position: absolute; z-index: 4; right: 10px; bottom: 9px; color: var(--ink); background: var(--paper); padding: 2px 7px; border-radius: 4px; font-size: 11px; pointer-events: none; }
.feature-gallery { display: grid; grid-template-columns: minmax(0, 1fr) var(--room-rail); gap: var(--gallery-gap); }
.feature-gallery .comparison { aspect-ratio: var(--frame-ratio); }
.comparison {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.08;
  border-radius: 16px;
  background: var(--sand);
  isolation: isolate;
}
.scene { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 53%; pointer-events: none; }
.scene-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.scene-tag {
  position: absolute;
  z-index: 1;
  top: 15px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.scene-tag-before { left: 16px; }
.scene-tag-after { right: 16px; }
.mostly-after .scene-tag-before, .mostly-before .scene-tag-after { visibility: hidden; }
.divider {
  position: absolute;
  z-index: 2;
  left: var(--split);
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: #fffdfa;
  box-shadow: 0 0 0 1px #2d201926;
  pointer-events: none;
}
.pull {
  position: absolute;
  z-index: 2;
  left: clamp(35px, var(--split), calc(100% - 35px));
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 96px;
  height: 64px;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.pull-grip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 65px;
  height: 44px;
  border: 2px solid var(--white);
  border-radius: 100px;
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 20px #2d201953;
  font: 25px/1 Arial, sans-serif;
}
.pull i { display: block; width: 16px; height: 5px; background: #dfe5ff; border-radius: 20px; box-shadow: inset 0 1px 2px #233895; }
.compare-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 28px);
  transform: translateX(-50%);
  color: white;
  background: #29201bea;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.has-compared .compare-hint { display: none; }
.compare-input { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.comparison:has(.compare-input:focus-visible) .pull-grip { outline: 3px solid var(--white); outline-offset: 4px; }

.feature-choices {
  display: grid;
  grid-auto-rows: calc((100% - 2 * var(--gallery-gap)) / 3);
  gap: var(--gallery-gap);
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scroll-snap-type: y proximity;
  contain: size;
}
.room-choice {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #48392d;
  color: white;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.24;
  scroll-snap-align: start;
}
.room-choice::before, .room-choice::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.room-choice::before { z-index: -1; background: linear-gradient(0deg, #201710eb, #251b1575 54%, #271b130a); }
.room-choice::after { border: 2px solid transparent; border-radius: inherit; }
.room-choice:hover::before { background: linear-gradient(0deg, #201710d9, #251b1538 62%, transparent); }
.room-choice[aria-pressed="true"]::after { border-color: #a8b6ff; box-shadow: inset 0 -3px 0 var(--blue); }
.room-choice:focus-visible { outline-offset: -4px; outline-color: white; }
.room-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.room-label { overflow-wrap: anywhere; }
.service-section { background: var(--paper); padding-block: clamp(43px, 6.5vw, 87px); }
.process-section { border-top: 1px solid var(--rule); padding-block: clamp(43px, 6.5vw, 87px); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.section-top h2, .contact-layout h2 { font-size: clamp(29px, 3.8vw, 49px); letter-spacing: -.025em; }
.section-top > p, .service p, .steps p { color: var(--muted); font-size: 15px; }
.services-grid, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(13px, 2vw, 24px); }
.service { background: var(--header-paper); border: 1px solid var(--rule); border-radius: 13px; padding: clamp(17px, 2.5vw, 32px); }
.service h3, .steps h3, .showroom h3 { font-size: 20px; margin-bottom: 8px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.steps li { border-top: 1px solid var(--rule); padding-top: 15px; counter-increment: stage; }
.steps li::before { display: block; content: "0" counter(stage); color: var(--blue); font-weight: 700; margin-bottom: 7px; }
.contact-section { color: var(--paper); background: var(--ink); padding-block: clamp(42px, 6.4vw, 80px); }
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 30px; }
.contact-layout p { margin-top: 10px; color: #eee1d6; }
.contact-layout a { text-underline-offset: 4px; }
.contact-layout a:focus-visible { outline-color: #dce4ff; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; margin-top: 18px; }
.contact-button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.contact-button:hover { background: var(--sand); }
.line-id { font-size: 13px; }
.showroom { padding-left: 26px; border-left: 1px solid #80675b; }
.showroom > a { display: inline-block; margin-top: 11px; }
.bottom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 21px; color: var(--muted); font-size: 13px; }
.bottom-bar .wordmark { width: 108px; }

.works { padding-block: clamp(36px, 6vw, 90px); }
.works h1 { font-size: clamp(39px, 5.5vw, 68px); letter-spacing: -.03em; margin-top: 4px; }
.work-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0 24px; }
.work-filters button { min-height: 40px; border: 1px solid var(--rule); border-radius: 100px; padding: 4px 13px; background: transparent; cursor: pointer; font-size: 14px; }
.work-filters button[aria-pressed="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.work-card { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: var(--white); text-decoration: none; }
.work-card:hover { border-color: var(--blue); }
.work-image { width: 100%; aspect-ratio: 1.47; object-fit: cover; }
.work-card > div { padding: 12px 15px; }
.work-card h2 { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; font-size: 22px; }
.back-link { margin-bottom: 20px; }
.works-description { margin: 9px 0 21px; color: var(--muted); }
.project-stage { max-width: 1050px; }

@media (max-width: 950px) {
  .comparison { aspect-ratio: 1.74; }
}
@media (max-width: 720px) {
  .topbar {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px auto;
    grid-template-rows: minmax(62px, auto);
    gap: 0 9px;
  }
  .wordmark { width: 113px; margin-right: auto; }
  .quote-button { grid-column: 3; grid-row: 1; min-height: 40px; gap: 6px; padding: 4px 9px; font-size: 13px; }
  .menu-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
  .menu-button:hover, .menu-button[aria-expanded="true"] { background: var(--sand); }
  .menu-button span { width: 19px; height: 9px; border-block: 1.5px solid; }
  nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 3px 0 9px; border-top: 1px solid var(--rule); }
  .menu-button[aria-expanded="false"] + nav { display: none; }
  nav a { display: flex; align-items: center; min-height: 40px; padding-block: 5px; }
  .home-page .topbar, .feature-inner { width: calc(100% - 2 * var(--gutter)); }
  .feature {
    padding-top: 12px;
    background-position: center, 32% center;
  }
  .feature-heading { margin-bottom: 8px; }
  .feature-heading h1 { font-size: clamp(23px, 5.6vw, 34px); }
  .feature-heading h1 span { display: block; }
  #feature-status { right: 7px; bottom: 6px; font-size: 10px; }
  .feature-gallery { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .comparison { aspect-ratio: 1.31; border-radius: 12px; }
  .feature-gallery .comparison { aspect-ratio: 1.4; max-height: max(190px, calc(100svh - 268px)); }
  .scene { object-position: center 55%; }
  .scene-tag { top: 10px; padding-inline: 9px; font-size: 11px; }
  .scene-tag-before { left: 9px; }
  .scene-tag-after { right: 9px; }
  .feature-choices {
    contain: none;
    gap: 4px;
    grid-auto-flow: column;
    grid-auto-rows: auto;
    grid-auto-columns: minmax(0, calc((100% - 8px) / 3));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  .room-choice { height: 57px; min-height: 57px; padding: 6px; font-size: 11px; }
  .section-top { flex-direction: column; align-items: start; gap: 7px; }
  .services-grid, .steps { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 25px; }
  .showroom { border-left: 0; border-top: 1px solid #80675b; padding: 18px 0 0; }
  .bottom-bar { flex-wrap: wrap; }
  .bottom-bar p { order: 3; width: 100%; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .topbar { column-gap: 7px; }
  .topbar .wordmark { width: 96px; }
  .quote-button { font-size: 12px; }
}
@media (max-width: 435px) {
  .work-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
