/* Muchroom Furniture & Decoration
   Warm editorial look: cream paper, walnut ink, rust from the velvet chairs, full-bleed photographs,
   a strong sans headline with one italic serif accent, large rounded frames and pill buttons. */

:root {
  --cream: #f6f1e9;
  --sand: #ece3d5;
  --sand-2: #e2d6c3;
  --ink: #1f1a15;
  --ink-2: #4d443b;
  --muted: #7a6f63;
  --walnut: #3b2a1e;
  --walnut-2: #2a1e15;
  --rust: #a8461f;
  --rust-2: #8e3a19;
  --line: rgba(31, 26, 21, 0.14);
  --white: #fffdf9;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --gut: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --sec: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

/* ---------- Thai: Prompt (Google Fonts) ---------- */
html[lang="th"] {
  --sans: "Prompt", "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Prompt", "Instrument Serif", serif;
}
html[lang="th"] body { font-weight: 300; }
.tw { white-space: nowrap; }
@media (max-width: 380px) { .tw { white-space: normal; } }
html[lang="th"] :is(h1, h2, h3, .display, .btn, strong, b, .nav__links a) { font-weight: 500; }

/* ---------- type ---------- */
.display, h1 { font: 500 clamp(34px, 4.6vw, 68px)/1.02 var(--sans); letter-spacing: -0.045em; }
h2, .h2 { font: 500 clamp(28px, 3vw, 44px)/1.08 var(--sans); letter-spacing: -0.035em; }
h3 { font: 500 clamp(18px, 1.35vw, 21px)/1.3 var(--sans); letter-spacing: -0.015em; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em, .display em { font-size: 1.08em; line-height: 0.9; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
html[lang="th"] body { line-height: 1.75; }
html[lang="th"] :is(h1, h2, h3, .display) { letter-spacing: 0; line-height: 1.25; }
html[lang="th"] :is(em, .serif) { font-style: normal; color: var(--rust); }
html[lang="th"] .on-photo :is(em, .serif) { color: #f3c7a8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 500 16px/1 var(--sans); white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--rust { background: var(--rust); color: var(--white); }
.btn--rust:hover { background: var(--rust-2); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--line { border-color: currentColor; background: transparent; }
.btn .arr { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -14px; border-radius: 50%; background: rgba(255,255,255,.18); transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .25s var(--ease), color .2s; }
.link:hover { gap: 12px; color: var(--rust); }

/* ---------- nav: a floating pill ---------- */
.nav { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; pointer-events: none; }
.nav__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 24px; width: min(100% - 2 * var(--gut), 1180px); margin-inline: auto;
  padding: 10px 10px 10px 24px; border-radius: 999px; background: rgba(255, 253, 249, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -12px rgba(31, 26, 21, .25);
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: background-color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--sand); }
.nav__lang { padding: 10px 12px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav__lang:hover { color: var(--ink); }
.nav .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sand); cursor: pointer; place-items: center; }
@media (max-width: 960px) {
  .nav__links, .nav__bar > .nav__lang, .nav__bar > .btn { display: none; }
  .nav__toggle { display: grid; margin-left: auto; }
  .nav__bar { padding-left: 18px; }
  .nav__logo img { height: 28px; }
}
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--cream); padding: 96px var(--gut) 32px; display: none; flex-direction: column; gap: 4px; overflow-y: auto; }
.sheet[data-open] { display: flex; }
.sheet a:not(.btn):not(.social__btn) { font: 500 32px/1.2 var(--sans); letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 24px; justify-content: center; }
.sheet__close { position: absolute; top: 26px; right: calc(var(--gut) + 10px); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sand); cursor: pointer; font-size: 22px; }

/* ---------- hero: an inset full-bleed photograph, the words on it ---------- */
.hero { padding: 12px; }
.hero__frame { position: relative; min-height: calc(100svh - 24px); border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: flex-end; color: var(--white); background: var(--walnut); }
.hero__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.04); animation: settle 1.6s var(--ease) forwards; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,9,.10) 0%, rgba(20,14,9,0) 30%, rgba(20,14,9,.30) 62%, rgba(20,14,9,.72) 100%); }
.hero__body { position: relative; z-index: 1; width: 100%; padding: clamp(28px, 5vw, 72px); display: grid; gap: 28px; }
.hero__body h1 { max-width: 15ch; }
.hero__body .lead { color: rgba(255,253,249,.88); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero--short .hero__frame { min-height: min(78svh, 720px); }
@keyframes settle { to { transform: scale(1); } }
.hero__body > * { animation: rise .9s var(--ease) both; }
.hero__body > :nth-child(2) { animation-delay: .12s; }
.hero__body > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec--sand { background: var(--sand); }
.sec--dark { background: var(--walnut-2); color: var(--white); }
.sec--dark .lead, .sec--dark .muted { color: rgba(255,253,249,.72); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.head > div { display: grid; gap: 20px; max-width: 760px; }
.head .lead { max-width: 42ch; }

/* category words (Vermello) */
.cats { border-bottom: 1px solid var(--line); }
.cats__intro { padding-top: clamp(28px, 3.6vw, 48px); color: var(--muted); font-size: 16px; }
.cats .cats__row { padding-top: 14px; }
.cats__row { display: flex; flex-wrap: wrap; gap: 6px clamp(24px, 3.4vw, 56px); padding-block: clamp(28px, 3.6vw, 48px); }
.cats__row a { font: 400 clamp(24px, 2.8vw, 42px)/1.1 var(--serif); font-style: italic; color: #b9a58f; transition: color .25s var(--ease); }
.cats__row a:first-child, .cats__row a:hover { color: var(--rust); }
html[lang="th"] .cats__row a { font-style: normal; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 32px); }

/* bento (Aura) */
.bento { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px; min-height: 520px; }
.bento > * { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.bento__stack { display: grid; grid-template-rows: 1fr auto; gap: 16px; overflow: visible !important; }
.tile-text { background: var(--sand-2); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-radius: var(--r-lg); }
.tile-text .big { font: 500 clamp(28px, 2.6vw, 40px)/1.05 var(--sans); letter-spacing: -0.04em; }
.tile-text--rust { background: var(--rust); color: var(--white); }
.tile-text--dark { background: var(--walnut); color: var(--white); padding: 24px 32px; flex-direction: row; align-items: center; }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: 20px 22px; display: grid; gap: 6px; }
.float-card strong { font: 500 22px/1.2 var(--sans); letter-spacing: -0.02em; }
.float-card span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; min-height: 0; }
  .bento > figure { aspect-ratio: 4 / 3; margin: 0; }
}

/* project showcase (ReBuild): a big photograph with a glass panel, a numbered list beside it */
.show { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.show__media { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 560px; background: var(--sand-2); }
.show__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform 1.2s var(--ease); transform: scale(1.03); }
.show__media img[data-on] { opacity: 1; transform: scale(1); }
.glass { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 420px; padding: 20px 22px; border-radius: var(--r-md); color: var(--white);
  background: rgba(31, 22, 15, .42); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255,255,255,.18); display: grid; gap: 4px; }
.glass strong { font: 500 22px/1.2 var(--sans); letter-spacing: -0.02em; }
.glass span { font-size: 15px; color: rgba(255,253,249,.8); }
.show__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.show__list li { border-top: 1px solid var(--line); }
.show__list li:last-child { border-bottom: 1px solid var(--line); }
.show__list a { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 12px; padding: 26px 4px; transition: color .25s, padding .3s var(--ease); }
.show__list .n { font: 400 18px/1 var(--serif); font-style: italic; color: var(--muted); }
.show__list .t { font: 500 clamp(22px, 2.2vw, 32px)/1.15 var(--sans); letter-spacing: -0.03em; }
.show__list .s { display: block; font: 400 15px/1.4 var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.show__list .go { opacity: .3; transition: opacity .25s, transform .3s var(--ease); }
.show__list a:hover, .show__list a[data-on] { color: var(--rust); padding-left: 12px; }
.show__list a:hover .go, .show__list a[data-on] .go { opacity: 1; transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; }
  .show__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* full-bleed statement band */
.band { position: relative; margin: 12px; border-radius: var(--r-xl); overflow: hidden; min-height: 86svh; display: flex; align-items: flex-end; color: var(--white); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,9,.05) 20%, rgba(20,14,9,.72) 100%); }
.band__body { position: relative; z-index: 1; padding: clamp(28px, 5vw, 72px); display: grid; gap: 28px; max-width: 1100px; }
.band__body p.display { font-size: clamp(30px, 3.8vw, 58px); }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 4 / 3.2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px 26px 28px; display: grid; gap: 8px; }
.card__body p { color: var(--ink-2); font-size: 16px; }
.card .num { font: 400 18px/1 var(--serif); font-style: italic; color: var(--rust); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* audience cards: photo with the words on a white panel */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud a { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; display: block; }
.aud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.aud a:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .aud { grid-template-columns: 1fr; } .aud a { aspect-ratio: 4 / 3; } }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,253,249,.2); }
.steps li { padding: 28px 24px 32px 0; border-bottom: 1px solid rgba(255,253,249,.2); display: grid; gap: 10px; align-content: start; }
.steps .n { font: 400 44px/1 var(--serif); font-style: italic; color: #e3a07c; }
.steps h3 { font-size: 21px; }
.steps p { font-size: 15.5px; color: rgba(255,253,249,.72); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* materials strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip figure { margin: 0; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* split: words beside a photograph */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__text { display: grid; gap: 24px; align-content: start; }
.split figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; }
.split figure img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split figure { aspect-ratio: 4 / 3; } }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows b { font-weight: 500; }
.rows span { color: var(--muted); text-align: right; }

/* ---------- product search (projects) ---------- */
.search { display: grid; gap: 24px; }
.search__bar { display: flex; align-items: center; gap: 12px; max-width: 620px; background: var(--white); border-radius: 999px; padding: 8px 8px 8px 24px; box-shadow: 0 10px 30px -18px rgba(31,26,21,.35); }
.search__bar input { flex: 1; border: 0; background: none; min-height: 44px; font-size: 17px; outline: none; }
.search__bar svg { flex: none; opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip[hidden] { display: none; }
.search__status { color: var(--muted); min-height: 1.6em; }
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.result { display: grid; gap: 14px; }
.result .media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; position: relative; }
.result img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.result:hover img { transform: scale(1.04); }
.result .tag { position: absolute; left: 12px; top: 12px; background: rgba(255,253,249,.92); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.result h3 { font-size: 20px; }
.result p { color: var(--muted); font-size: 15px; margin-top: -8px; }
.results__empty { grid-column: 1 / -1; padding: 32px; background: var(--sand); border-radius: var(--r-lg); }
@media (max-width: 960px) { .results { grid-template-columns: repeat(2, 1fr); } }

/* project chapters */
.proj__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.proj__grid figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.proj__grid img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1s var(--ease); }
.proj__grid figure:hover img { transform: scale(1.03); }
.pg-a > :nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.pg-a > :nth-child(2) { grid-column: span 5; aspect-ratio: auto; }
.pg-b > :nth-child(1) { grid-column: span 5; aspect-ratio: auto; }
.pg-b > :nth-child(2) { grid-column: span 7; aspect-ratio: 4 / 3; }
.pg-c > * { grid-column: span 4; aspect-ratio: 4 / 5; }
.pg-wide > * { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts span { padding: 8px 14px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 500; }
@media (max-width: 760px) {
  .proj__grid > * { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; }
  .pg-wide > * { aspect-ratio: 4 / 3; }
}

/* ---------- close (Harper): a dark panel with a photograph ---------- */
.close { margin: 12px; border-radius: var(--r-xl); overflow: hidden; position: relative; color: var(--white); background: var(--walnut); min-height: 560px; display: flex; align-items: center; }
.close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; object-position: var(--pos, 50% 50%); }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,30,21,.92) 0%, rgba(42,30,21,.55) 55%, rgba(42,30,21,.15) 100%); }
.close__body { position: relative; z-index: 1; padding: clamp(32px, 6vw, 88px); display: grid; gap: 28px; max-width: 760px; }
.close__body .lead { color: rgba(255,253,249,.82); }
.close__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.foot { padding: clamp(64px, 8vw, 104px) 0 40px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.foot__logo img { height: 46px; width: auto; }
.foot h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 14px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--rust); }
.foot address { font-style: normal; font: 500 22px/1.35 var(--sans); letter-spacing: -0.02em; }
.foot__legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; color: var(--muted); }
.foot__legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- book page ---------- */
.book { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.book__text { display: grid; gap: 24px; position: sticky; top: 110px; }
.contact-cards { display: grid; gap: 10px; margin-top: 8px; }
.contact-cards a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--r-md); background: var(--sand); font-weight: 500; transition: background-color .2s; }
.contact-cards a:hover { background: var(--sand-2); }
.contact-cards small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.form { background: var(--white); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; box-shadow: 0 30px 60px -40px rgba(31,26,21,.4); }
.field { display: grid; gap: 8px; }
.field--wide, .form > .btn, .form__status, .form__note { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--cream); font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rust); outline-offset: 0; border-color: transparent; }
.field[data-error] input { border-color: var(--rust); }
.field__err { color: var(--rust); font-size: 14px; display: none; }
.field[data-error] .field__err { display: block; }
.form > .btn { justify-content: center; }
.form__status { font-weight: 500; }
.form__status[data-ok] { color: #2f6b3a; }
.form__note { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .book__text { position: static; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* page head for inner pages without a photo (privacy) */
.page-head { padding: 160px 0 48px; }
.prose { max-width: 64ch; display: grid; gap: 18px; }

/* gentle reveal as sections come into view (off without script and under reduced motion) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- home hero (Forma): centred words on a warm glow, the work in a frame with floating cards ---------- */
.fhero { position: relative; padding: 150px 0 56px; background:
  radial-gradient(60% 50% at 50% 18%, #fff7ea 0%, rgba(255,247,234,0) 70%),
  linear-gradient(180deg, #f8f1e6 0%, var(--cream) 70%); overflow: hidden; }
.fhero__top { position: relative; text-align: center; display: grid; justify-items: center; gap: 26px; }
.pill-note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 20px -12px rgba(31,26,21,.35); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); }
.pill-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--rust); display: block; }
.fhero h1 { font-size: clamp(36px, 4.9vw, 74px); line-height: 1; letter-spacing: -0.05em; display: grid; justify-items: center; gap: 10px; }
.fhero h1 .box { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; font-size: 1.04em; line-height: 1.05; padding: 0 .22em .06em; border: 1.5px solid rgba(31,26,21,.28); border-radius: .28em; background: rgba(255,253,249,.55); }
html[lang="th"] .fhero h1 .box { font-style: normal; font-family: var(--serif); font-size: .9em; padding: .05em .3em .1em; }
.fhero .lead { text-align: center; max-width: 52ch; }
.fhero__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.side-chip { position: absolute; top: 46%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; box-shadow: 0 6px 20px -12px rgba(31,26,21,.35); }
.side-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: block; }
.side-chip--r { right: 0; } .side-chip--r i { background: var(--rust); }
.side-chip--l { left: 0; }
.fhero__stage { position: relative; margin-top: 56px; padding-inline: clamp(0px, 6vw, 110px); }
.fhero__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8.2; background: var(--sand); box-shadow: 0 40px 80px -50px rgba(31,26,21,.55); }
.fhero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 55%); animation: settle 1.6s var(--ease) forwards; transform: scale(1.04); }
.fcard { position: absolute; z-index: 2; background: rgba(255,253,249,.96); border-radius: 18px; padding: 18px 20px; box-shadow: 0 24px 50px -24px rgba(31,26,21,.45); display: grid; gap: 6px; animation: rise .9s var(--ease) both .3s; }
.fcard small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fcard .tag { text-transform: none; letter-spacing: 0; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #f3e1d5; color: var(--rust-2); font-weight: 500; }
.fcard strong { font: 500 19px/1.25 var(--sans); letter-spacing: -0.02em; }
.fcard p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.fcard--a { left: 0; bottom: 18%; width: 300px; }
.fcard--b { right: 0; bottom: 9%; width: 320px; }
.fcard--c { left: 50%; transform: translateX(-50%); bottom: -26px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; animation: none; white-space: nowrap; }
.fcard--c .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; flex: none; }
.bar { height: 6px; border-radius: 99px; background: var(--sand); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: 75%; background: var(--ink); border-radius: inherit; }
.bar-steps { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.bar-steps span:last-child { color: var(--muted); }
@media (max-width: 1100px) { .side-chip { display: none; } }
@media (max-width: 860px) {
  .fhero { padding-top: 120px; }
  .fhero__stage { padding-inline: 0; }
  .fhero__frame { aspect-ratio: 4 / 4.2; }
  .fcard--a { left: 12px; bottom: auto; top: 12px; width: min(280px, calc(100% - 24px)); }
  .fcard--b { right: 12px; left: 12px; width: auto; bottom: 46px; }
  .fcard--c { bottom: -22px; font-size: 14px; }
}

/* ---------- project slider (Harper): a big photograph, a dark brown panel inset on it ---------- */
.slider { position: relative; margin: 12px; border-radius: var(--r-xl); overflow: hidden; height: min(92svh, 860px); min-height: 560px; background: var(--walnut-2); }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.slider__slide[data-on] { opacity: 1; }
.slider__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.06); transition: transform 6s var(--ease); }
.slider__slide[data-on] > img { transform: scale(1); }
.slider__panel { position: absolute; left: clamp(16px, 5vw, 72px); right: clamp(16px, 5vw, 72px); top: 12%; bottom: 12%; border-radius: 6px; overflow: hidden; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 48px); }
.slider__panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(74,42,24,.38) 0%, rgba(74,42,24,.55) 45%, rgba(62,34,18,.88) 100%); backdrop-filter: saturate(1.1); }
.slider__panel > * { position: relative; }
.slider__label { position: absolute; top: clamp(20px, 3vw, 32px); left: clamp(24px, 4vw, 48px); right: clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; z-index: 1; }
.slider__label .logo-w { height: 30px; width: auto; }
.slider h2 { font: 400 clamp(38px, 5.2vw, 82px)/0.98 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; }
html[lang="th"] .slider h2 { text-transform: none; }
.slider__meta { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,253,249,.35); }
.slider__meta i { width: 9px; height: 9px; border-radius: 50%; background: var(--white); display: block; }
.slider__line { color: rgba(255,253,249,.85); margin-top: 14px; max-width: 54ch; }
.slider__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 26px; }
.slider .btn--cream { background: #f4e7d6; color: var(--walnut); }
.slider__arrows { display: flex; gap: 10px; }
.slider__arrows button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #f4e7d6; color: var(--walnut); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s; }
.slider__arrows button:hover { transform: scale(1.06); background: var(--white); }
.slider__panel .slider__text { display: none; }
.slider__slide[data-on] ~ .slider__panel { }
@media (max-width: 700px) {
  .slider { height: auto; min-height: 640px; }
  .slider__panel { top: 80px; bottom: 16px; left: 16px; right: 16px; }
  .slider__foot { flex-wrap: wrap; }
}
@media (max-width: 860px) { .fcard--a, .fcard--b { display: none; } }
.slider__meta { flex-wrap: wrap; row-gap: 4px; }
.slider__meta > span:first-of-type { white-space: nowrap; }

/* ---------- home hero, full-screen photograph behind the words ---------- */
.fhero--bg { min-height: 100svh; padding: 0; display: flex; align-items: center; background: var(--walnut-2); color: var(--white); }
.fhero--bg > .wrap { position: relative; z-index: 2; width: min(100% - 2 * var(--gut), var(--max)); }
.fhero--bg .fhero__stage { position: absolute; inset: 0; margin: 0; padding: 0; z-index: 0; }
.fhero--bg .fhero__frame { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.fhero--bg .fhero__frame::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(24,16,10,.55) 0%, rgba(24,16,10,.30) 60%, rgba(24,16,10,.15) 100%),
              linear-gradient(180deg, rgba(24,16,10,.35) 0%, rgba(24,16,10,0) 25%, rgba(24,16,10,0) 70%, rgba(24,16,10,.45) 100%); }
.fhero--bg .fhero__top { position: relative; z-index: 2; padding: 150px 0 140px; }
.fhero--bg h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.fhero--bg h1 .box { border-color: rgba(255,253,249,.6); background: rgba(255,253,249,.10); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fhero--bg .lead { color: rgba(255,253,249,.9); text-shadow: 0 1px 16px rgba(0,0,0,.3); }
.fhero--bg .fhero__btns .btn--ink { background: var(--rust); }
.fhero--bg .fhero__btns .btn--ink:hover { background: var(--rust-2); }
.fhero--bg .fcard--a, .fhero--bg .fcard--b { display: none; }
.fhero--bg .fcard--c { bottom: 32px; z-index: 2; }
.fhero--bg .side-chip { top: 50%; }
@media (max-width: 860px) {
  .fhero--bg .fhero__top { padding: 120px 0 130px; }
  .fhero--bg .fcard--c { bottom: 20px; white-space: normal; width: calc(100% - 32px); max-width: 360px; }
}
.fhero--bg > .wrap { position: static; }
.fhero--bg .side-chip, .fhero--bg .fcard { color: var(--ink); }
.fhero--bg .side-chip { z-index: 2; }
.fhero--bg .side-chip--l { left: var(--gut); } .fhero--bg .side-chip--r { right: var(--gut); }
.fhero--bg .fhero__frame::after { background:
  radial-gradient(55% 50% at 50% 50%, rgba(24,16,10,.62) 0%, rgba(24,16,10,.38) 60%, rgba(24,16,10,.18) 100%),
  linear-gradient(180deg, rgba(24,16,10,.35) 0%, rgba(24,16,10,0) 25%, rgba(24,16,10,0) 70%, rgba(24,16,10,.45) 100%); }
.fhero--bg .lead { font-weight: 500; }

/* full-screen hero: the three floating cards in a row along the bottom of the photograph */
.fhero--bg .fcard--a, .fhero--bg .fcard--b { display: grid; top: auto; bottom: 32px; z-index: 2; }
.fhero--bg .fcard--a { left: var(--gut); right: auto; width: 300px; }
.fhero--bg .fcard--b { right: var(--gut); left: auto; width: 320px; }
.fhero--bg .fhero__top { padding-bottom: 200px; }
@media (max-width: 1100px) {
  .fhero--bg .fcard--c { display: none; }
}
@media (max-width: 860px) {
  .fhero--bg .fhero__top { padding-bottom: 300px; }
  .fhero--bg .fcard--a, .fhero--bg .fcard--b { left: 16px; right: 16px; width: auto; }
  .fhero--bg .fcard--b { bottom: 16px; }
  .fhero--bg .fcard--a { bottom: 124px; }
}

/* ---------- hero featured projects: a strip that scrolls sideways and changes the background ---------- */
.fhero--bg .fhero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease), transform 6s var(--ease); transform: scale(1.04); animation: none; }
.fhero--bg .fhero__frame img[data-on] { opacity: 1; transform: scale(1); }
.fhero--bg .fhero__frame::after { z-index: 1; }
.hproj { position: absolute; z-index: 2; left: var(--gut); bottom: 32px; width: min(620px, 46vw); color: var(--ink);
  background: rgba(255,253,249,.96); border-radius: 20px; padding: 14px 14px 16px; box-shadow: 0 24px 50px -24px rgba(31,26,21,.45); animation: rise .9s var(--ease) both .3s; }
.hproj__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; }
.hproj__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.hproj__n { color: var(--ink); font-weight: 500; letter-spacing: 0; }
.hproj__arrows { display: flex; gap: 6px; }
.hproj__arrows button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.hproj__arrows button:hover { background: var(--sand); transform: scale(1.06); }
.hproj__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; scrollbar-width: none; padding: 2px; }
.hproj__track::-webkit-scrollbar { display: none; }
.hproj__card { flex: 0 0 min(300px, 78%); scroll-snap-align: start; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1.5px solid transparent; background: var(--cream); transition: border-color .25s, background-color .25s; }
.hproj__card img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.hproj__card small { display: block; margin-bottom: 4px; }
.hproj__card .tag { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: #f3e1d5; color: var(--rust-2); font-weight: 500; }
.hproj__card strong { display: block; font: 500 16.5px/1.25 var(--sans); letter-spacing: -0.015em; }
.hproj__line { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hproj__card:hover { background: var(--sand); }
.hproj__card[data-on] { border-color: var(--rust); background: var(--white); }
.fhero--bg .fcard--b { bottom: 32px; }
@media (max-width: 1100px) { .hproj { width: min(560px, 60vw); } }
@media (max-width: 860px) {
  .hproj { left: 16px; right: 16px; width: auto; bottom: 124px; }
  .fhero--bg .fhero__top { padding-bottom: 330px; }
}
.hproj__card .tag { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.hproj__card > span { min-width: 0; }
.fhero--bg .fhero__top { padding-bottom: 250px; }
@media (max-width: 860px) {
  .fhero--bg .fhero__top { padding-bottom: 390px; }
  .hproj__card { grid-template-columns: 64px 1fr; flex-basis: 84%; }
  .hproj__card img { width: 64px; height: 64px; }
}

/* ---------- the floating cards of every full-screen hero: a row along the bottom, stacked under the words on a phone ---------- */
.fhero--bg { position: relative; }
.fhero__cards { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none; }
.fhero__cards > * { pointer-events: auto; }
.fhero--bg .fhero__cards > .fcard, .fhero--bg .fhero__cards > .hproj { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; display: grid; }
.fhero--bg .fhero__cards > .fcard--a { width: 340px; }
.fhero--bg .fhero__cards > .fcard--b { width: 330px; }
.fhero--bg .fhero__cards > .hproj { width: min(620px, 50vw); }
a.fcard { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.fcard:hover { transform: translateY(-3px); }
.fsearch__bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 16px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: 15px; border: 1px solid var(--line); }
.fhero--short { min-height: 88svh; }
@media (max-width: 860px) {
  .fhero--bg { display: block; min-height: 0; }
  .fhero--bg .fhero__top { padding: 120px 0 0; }
  .fhero__cards { position: relative; left: auto; right: auto; bottom: auto; flex-direction: column; align-items: stretch; gap: 10px; padding: 32px 0 20px; }
  .fhero--bg .fhero__cards > * { width: auto !important; }
  .fhero--bg .side-chip { display: none; }
}

/* ---------- social icons: LINE, Facebook, Instagram ---------- */
.social { display: flex; gap: 10px; }
.sheet .social { margin-top: 20px; justify-content: center; }
.social__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; transition: transform .25s var(--ease), filter .25s; }
.social__btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff !important; }
.social__btn--line, .ic-dot--line { background: #06c755; }
.social__btn--fb, .ic-dot--fb { background: #0866ff; }
.social__btn--ig, .ic-dot--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ic-link { display: inline-flex; align-items: center; gap: 10px; }
.ic-dot { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; color: #fff; }
.contact-cards .ic-dot { width: 36px; height: 36px; }
.ic-row { display: flex; align-items: center; gap: 14px; }
.qr-card { display: flex; align-items: center; gap: 22px; padding: 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.qr-card img { width: 132px; height: 132px; flex: none; border-radius: 10px; }
.qr-card > div { display: grid; gap: 6px; justify-items: start; }
.qr-card strong { font-weight: 500; font-size: 18px; }
.qr-card span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.btn--line-app { background: #06c755; color: #fff; min-height: 44px; padding: 0 18px; font-size: 15px; margin-top: 6px; }
.contact-cards a.btn--line-app { background: #06c755; color: #fff; padding: 0 18px; justify-content: center; border-radius: 999px; }
.contact-cards a.btn--line-app:hover { background: #05b04b; }
@media (max-width: 520px) {
  .qr-card { flex-direction: column; text-align: center; }
  .qr-card > div { justify-items: center; }
  .qr-card img { width: 180px; height: 180px; }
}

/* ---------- project photos: tap to enlarge, "more rooms" rail, viewer ---------- */
.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.zoom img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.rail { margin-top: 28px; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rail__label { font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
.rail__label b { font-weight: 400; color: var(--muted); font-size: 15px; }
.rail__arrows { display: flex; gap: 8px; }
.rail__arrows button, .lb button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.rail__arrows button:hover { transform: translateY(-2px); }
.rail__arrows button:disabled { opacity: .35; cursor: default; transform: none; }
.rail__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track figure { flex: 0 0 clamp(230px, 24vw, 330px); aspect-ratio: 4 / 5; margin: 0; border-radius: var(--r-md); overflow: hidden; scroll-snap-align: start; background: var(--sand); }
.rail__track img { transition: transform .8s var(--ease); }
.rail__track figure:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .rail__track figure { flex-basis: 72vw; } }

.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 16, 12, .94); color: var(--white); }
.lb::backdrop { background: rgba(20, 16, 12, .6); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: min(92vw, 1600px); max-height: 84dvh; width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lb__n { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 14px; color: rgba(255,253,249,.75); margin: 0; }
.lb button { position: absolute; background: rgba(255,253,249,.12); border-color: rgba(255,253,249,.25); color: var(--white); }
.lb button:hover { background: rgba(255,253,249,.24); }
.lb__close { top: 20px; right: 20px; font-size: 24px; }
.lb__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb__next { right: 20px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 12px; translate: none; } .lb__prev { left: 16px; } .lb__next { right: 16px; } }
