@font-face {
  font-family: "Montserrat";
  font-weight: 400;
  src: url("assets/fonts/Montserrat-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Montserrat";
  font-weight: 600;
  src: url("assets/fonts/Montserrat-SemiBold.otf") format("opentype");
}

@font-face {
  font-family: "Montserrat";
  font-weight: 700;
  src: url("assets/fonts/Montserrat-Bold.otf") format("opentype");
}

@font-face {
  font-family: "Viola";
  font-weight: 400;
  src: url("assets/fonts/VIOLA.otf") format("opentype");
}

:root {
  --forest: #032c23;
  --forest-2: #0e4338;
  --green: #5b997c;
  --gold: #c6a679;
  --sand: #dcc094;
  --cream: #efeadc;
  --paper: #fbf8ef;
  --ink: #11251f;
  --muted: #68746f;
  --line: rgba(3, 44, 35, 0.16);
  --soft: rgba(3, 44, 35, 0.06);
  --shadow: 0 28px 90px rgba(3, 44, 35, 0.18);
  --page-pad: clamp(18px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body[data-variant="siam_resort_homes"] {
  font-family: "Noto Sans Thai", "Sarabun", Tahoma, Arial, sans-serif;
}

body[data-variant="siam_resort_homes"] h1,
body[data-variant="siam_resort_homes"] h2,
body[data-variant="siam_resort_homes"] h3,
body[data-variant="siam_resort_homes"] p,
body[data-variant="siam_resort_homes"] li,
body[data-variant="siam_resort_homes"] a,
body[data-variant="siam_resort_homes"] button,
body[data-variant="siam_resort_homes"] label,
body[data-variant="siam_resort_homes"] span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.nav {
  align-items: center;
  background: rgba(3, 44, 35, 0.92);
  backdrop-filter: blur(18px);
  color: var(--cream);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 12px var(--page-pad);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: flex;
  gap: 13px;
  min-width: 0;
}

.brand img {
  height: 42px;
  object-fit: contain;
  width: 92px;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.brand-text span {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  letter-spacing: 0.06em;
  min-height: 44px;
  padding: 12px 17px;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: var(--forest);
}

.button.secondary {
  border-color: rgba(239, 234, 220, 0.55);
  color: var(--cream);
}

.button.dark {
  background: var(--forest);
  color: var(--cream);
}

.button.outline {
  border-color: var(--line);
  color: var(--forest);
}

.hero {
  align-items: center;
  color: white;
  display: grid;
  min-height: 92svh;
  padding: 104px var(--page-pad) 38px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  inset: 0;
  position: absolute;
}

.hero::before {
  background: var(--hero-image) center / cover no-repeat;
  transform: scale(1.01);
  z-index: -2;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(3, 44, 35, 0.92), rgba(3, 44, 35, 0.7) 46%, rgba(3, 44, 35, 0.24)),
    linear-gradient(0deg, rgba(3, 44, 35, 0.9), rgba(3, 44, 35, 0.12) 50%);
  z-index: -1;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 62px);
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  width: 100%;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 820px;
}

.eyebrow {
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Viola", "Montserrat", serif;
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 760px;
  text-wrap: balance;
}

body[data-variant="family_bisp"] h1 {
  font-size: clamp(38px, 4.55vw, 58px);
  max-width: 720px;
}

body[data-variant="permanent_living"] h1 {
  font-size: clamp(40px, 4.85vw, 62px);
  max-width: 690px;
}

body[data-variant="siam_resort_homes"] h1 {
  font-family: "Noto Sans Thai", "Sarabun", Tahoma, Arial, sans-serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 1.18;
  max-width: 760px;
}

body[data-variant="siam_resort_homes"] h2,
body[data-variant="siam_resort_homes"] h3,
body[data-variant="siam_resort_homes"] .map-script {
  font-family: "Noto Sans Thai", "Sarabun", Tahoma, Arial, sans-serif;
}

h2 {
  font-family: "Viola", "Montserrat", serif;
  font-size: clamp(36px, 5.8vw, 76px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.1vw, 25px);
  line-height: 1.38;
  max-width: 690px;
  overflow-wrap: break-word;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-checks li {
  background: rgba(239, 234, 220, 0.12);
  border: 1px solid rgba(239, 234, 220, 0.24);
  color: rgba(239, 234, 220, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reassurance {
  color: rgba(239, 234, 220, 0.78);
  font-size: 13px;
}

.pack-card {
  align-self: center;
  background: rgba(239, 234, 220, 0.1);
  border: 1px solid rgba(239, 234, 220, 0.2);
  color: var(--cream);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  backdrop-filter: blur(14px);
  overflow-wrap: break-word;
}

.pack-card strong {
  color: white;
  display: block;
  font-size: 20px;
}

.pack-card ul,
.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pack-card li,
.clean-list li {
  border-top: 1px solid rgba(239, 234, 220, 0.18);
  padding: 10px 0;
}

.pack-card p {
  color: rgba(239, 234, 220, 0.74);
  font-size: 13px;
}

.section {
  padding: clamp(56px, 8vw, 108px) var(--page-pad);
  scroll-margin-top: 88px;
}

.section.dark {
  background: var(--forest);
  color: var(--cream);
}

.section.green {
  background: var(--forest-2);
  color: var(--cream);
}

.section.cream {
  background: var(--cream);
}

.proof-strip {
  background: var(--forest);
  border-top: 1px solid rgba(239, 234, 220, 0.16);
  color: var(--cream);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.offer-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: clamp(44px, 6vw, 78px) var(--page-pad);
}

.offer-intro {
  display: grid;
  gap: 16px;
}

.offer-intro h2 {
  font-size: clamp(34px, 4.4vw, 58px);
}

.offer-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: clamp(20px, 3vw, 30px);
}

.offer-card h3 {
  color: var(--forest);
  font-size: 20px;
}

.offer-card p {
  color: var(--muted);
}

.proof-cell {
  border-right: 1px solid rgba(239, 234, 220, 0.14);
  min-height: 118px;
  padding: clamp(18px, 2.5vw, 28px);
}

.proof-cell strong {
  color: var(--sand);
  display: block;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.05;
}

.proof-cell span {
  color: rgba(239, 234, 220, 0.74);
  display: block;
  font-size: 13px;
  margin-top: 8px;
}

.section-head {
  display: grid;
  gap: 18px;
  margin: 0 auto clamp(30px, 5vw, 56px);
  max-width: 980px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.dark .lead,
.green .lead {
  color: rgba(239, 234, 220, 0.76);
}

.question-grid,
.life-grid,
.feature-grid,
.trust-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-variant="siam_resort_homes"] .life-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.question,
.life-card,
.feature,
.trust-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  min-height: 172px;
  padding: clamp(20px, 3vw, 32px);
}

.dark .feature,
.green .feature,
.dark .trust-card,
.green .trust-card {
  background: rgba(239, 234, 220, 0.08);
  border-color: rgba(239, 234, 220, 0.15);
}

.question p,
.life-card p,
.feature p,
.trust-card p {
  color: var(--muted);
  margin-top: 12px;
}

.life-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 0;
}

.life-card h3,
.life-card p,
.life-card .text-button {
  margin-left: clamp(20px, 3vw, 32px);
  margin-right: clamp(20px, 3vw, 32px);
}

.life-card .text-button {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.life-card-image {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.life-card p {
  margin-top: 0;
}

.text-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(3, 44, 35, 0.34);
  color: var(--forest);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
  letter-spacing: 0.08em;
  padding: 0 0 5px;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.text-button:hover {
  border-color: var(--gold);
  color: var(--green);
}

.micro-map {
  background:
    linear-gradient(135deg, rgba(3, 44, 35, 0.04), rgba(198, 166, 121, 0.12)),
    var(--cream);
  border: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr));
  margin: clamp(24px, 4vw, 42px) auto 0;
  max-width: 1180px;
  overflow: hidden;
}

.map-point {
  align-content: center;
  background: rgba(255, 255, 255, 0.56);
  display: grid;
  gap: 6px;
  min-height: 122px;
  padding: 18px;
}

.map-point.home {
  background: var(--forest);
  color: var(--cream);
}

.map-point strong {
  font-size: 15px;
  line-height: 1.2;
}

.map-point span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.map-point.home span {
  color: rgba(239, 234, 220, 0.68);
}

.story-map {
  display: grid;
  gap: 14px;
  margin: clamp(26px, 4vw, 46px) auto 0;
  max-width: 1180px;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-filter {
  background: rgba(3, 44, 35, 0.06);
  border: 1px solid var(--line);
  color: var(--forest);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 38px;
  padding: 9px 12px;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.map-filter.active,
.map-filter:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.map-shell {
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.map-canvas {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 18% 18%, rgba(198, 166, 121, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(251, 248, 239, 0.95), rgba(239, 234, 220, 0.9));
  border: 1px solid var(--line);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.map-canvas::after {
  background-image:
    linear-gradient(rgba(3, 44, 35, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 44, 35, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.map-art {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.map-water {
  fill: rgba(76, 157, 167, 0.46);
}

.map-land {
  fill: rgba(251, 248, 239, 0.88);
  stroke: rgba(3, 44, 35, 0.18);
  stroke-width: 0.5;
}

.map-road {
  fill: none;
  stroke: rgba(3, 44, 35, 0.22);
  stroke-dasharray: 2.4 2;
  stroke-linecap: round;
  stroke-width: 1.2;
}

.map-road.soft {
  stroke: rgba(198, 166, 121, 0.44);
}

.map-ring {
  fill: none;
  stroke: rgba(198, 166, 121, 0.72);
  stroke-dasharray: 1.8 2.4;
  stroke-width: 0.9;
}

.map-compass circle {
  fill: rgba(251, 248, 239, 0.72);
  stroke: rgba(3, 44, 35, 0.32);
}

.map-compass path {
  fill: rgba(198, 166, 121, 0.76);
  stroke: rgba(3, 44, 35, 0.42);
  stroke-width: 0.3;
}

.map-compass text {
  fill: var(--forest);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 3px;
  font-weight: 700;
  text-anchor: middle;
}

.map-script {
  color: rgba(3, 44, 35, 0.42);
  font-family: "Viola", "Montserrat", serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.map-script.title {
  left: 6%;
  top: 7%;
}

.map-script.west {
  bottom: 15%;
  left: 10%;
  transform: rotate(-7deg);
}

.map-script.east {
  right: 8%;
  top: 31%;
  transform: rotate(6deg);
}

.map-marker {
  align-items: center;
  background: rgba(251, 248, 239, 0.92);
  border: 1px solid rgba(3, 44, 35, 0.22);
  box-shadow: 0 12px 30px rgba(3, 44, 35, 0.14);
  color: var(--forest);
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  left: var(--x);
  max-width: 168px;
  min-height: 34px;
  padding: 7px 9px;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
  z-index: 3;
}

.map-marker span {
  background: var(--gold);
  border: 3px solid var(--forest);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.map-marker strong {
  font-size: 11px;
  line-height: 1.12;
}

.map-marker.home {
  background: var(--forest);
  color: var(--cream);
  min-height: 42px;
}

.map-marker.home span {
  background: var(--sand);
  border-color: var(--cream);
  height: 18px;
  width: 18px;
}

.map-marker.active,
.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.map-marker.active {
  background: var(--gold);
  color: var(--forest);
}

.map-marker.is-hidden {
  opacity: 0.16;
  pointer-events: none;
}

.map-detail {
  align-content: start;
  background: var(--forest);
  border: 1px solid var(--forest);
  color: var(--cream);
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: clamp(22px, 3vw, 34px);
}

.map-detail h3 {
  color: white;
  font-size: clamp(24px, 3vw, 34px);
}

.map-detail strong {
  color: var(--sand);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-detail p:not(.eyebrow) {
  color: rgba(239, 234, 220, 0.78);
}

.map-detail .button {
  justify-self: start;
}

.map-detail .button.outline {
  border-color: rgba(239, 234, 220, 0.44);
  color: var(--cream);
}

.modal {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-width: min(860px, calc(100vw - 32px));
  padding: 0;
}

.modal::backdrop {
  background: rgba(2, 29, 23, 0.74);
  backdrop-filter: blur(8px);
}

.modal-inner {
  background: var(--paper);
  border: 1px solid rgba(239, 234, 220, 0.32);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  padding: clamp(18px, 3vw, 28px);
  position: relative;
}

.modal-inner h2 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 650px;
}

.modal-close {
  background: var(--forest);
  border: 0;
  color: var(--cream);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 38px;
  padding: 9px 12px;
  position: absolute;
  right: 14px;
  text-transform: uppercase;
  top: 14px;
  z-index: 2;
}

.modal-visual {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
}

.modal-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.modal-points {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal-points li {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 10px;
}

.dark .feature p,
.green .feature p,
.dark .trust-card p,
.green .trust-card p {
  color: rgba(239, 234, 220, 0.72);
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 62px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.split.reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
}

.split-copy {
  display: grid;
  gap: 20px;
}

.photo-panel {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-panel.wide {
  aspect-ratio: 16 / 10;
}

.photo-panel img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.valley-section {
  background: var(--forest);
  color: var(--cream);
}

.valley-section .lead {
  color: rgba(239, 234, 220, 0.78);
}

.valley-section .photo-panel {
  box-shadow: none;
}

.valley-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.valley-facts span {
  border: 1px solid rgba(239, 234, 220, 0.24);
  color: rgba(239, 234, 220, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.distance-strip {
  background: var(--forest);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: clamp(28px, 4vw, 44px) auto 0;
  max-width: 1180px;
  padding: 18px 20px;
  text-align: center;
}

.scenario-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.scenario {
  background: rgba(239, 234, 220, 0.08);
  border: 1px solid rgba(239, 234, 220, 0.15);
  color: rgba(239, 234, 220, 0.9);
  min-height: 82px;
  padding: 18px;
}

.form-wrap {
  display: grid;
  gap: clamp(28px, 5vw, 62px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 480px);
  margin: 0 auto;
  max-width: 1180px;
}

.lead-form {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  background: white;
  border: 1px solid rgba(3, 44, 35, 0.2);
  color: var(--ink);
  min-height: 46px;
  padding: 12px 13px;
  width: 100%;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.success {
  background: rgba(91, 153, 124, 0.14);
  color: var(--forest);
  display: none;
  padding: 14px;
}

.success.visible {
  display: block;
}

.footer {
  align-items: center;
  background: #021d17;
  color: rgba(239, 234, 220, 0.74);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 22px var(--page-pad);
}

.footer a {
  color: var(--sand);
}

.sticky-mobile {
  display: none;
}

@media (max-width: 1080px) {
  .proof-strip,
  .question-grid,
  .life-grid,
  .feature-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-variant="siam_resort_homes"] .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .offer-band,
  .split,
  .split.reverse,
  .form-wrap {
    grid-template-columns: 1fr;
  }

  .pack-card {
    max-width: 620px;
  }

  .micro-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-shell {
    grid-template-columns: 1fr;
  }

  .map-detail {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 18px;
  }

  body {
    font-size: 15px;
  }

  .nav {
    min-height: 66px;
  }

  .brand img {
    height: 34px;
    width: 74px;
  }

  .brand-text {
    display: none;
  }

  .nav-actions .button.secondary {
    display: none;
  }

  .nav-actions .button.primary {
    min-height: 38px;
    padding: 9px 11px;
  }

  .hero {
    min-height: auto;
    padding-top: 94px;
  }

  .hero-grid {
    gap: 22px;
    max-width: calc(100vw - var(--page-pad) * 2);
    width: 100%;
  }

  h1 {
    font-size: clamp(43px, 16vw, 64px);
    max-width: calc(100vw - var(--page-pad) * 2);
  }

  h2 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero-sub {
    font-size: 17px;
  }

  .actions {
    display: grid;
  }

  .button {
    min-width: 0;
    white-space: normal;
    width: 100%;
  }

  h1,
  body[data-variant="family_bisp"] h1,
  body[data-variant="permanent_living"] h1,
  body[data-variant="siam_resort_homes"] h1 {
    font-size: clamp(27px, 7.8vw, 31px);
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  body[data-variant="siam_resort_homes"] h1 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.22;
  }

  body[data-variant="siam_resort_homes"] h1,
  body[data-variant="siam_resort_homes"] .hero-sub,
  body[data-variant="siam_resort_homes"] .pack-card,
  body[data-variant="siam_resort_homes"] .hero-checks,
  body[data-variant="siam_resort_homes"] .reassurance {
    max-width: calc(100vw - var(--page-pad) * 2);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  body[data-variant="siam_resort_homes"] .hero-grid,
  body[data-variant="siam_resort_homes"] .hero-copy,
  body[data-variant="siam_resort_homes"] .pack-card,
  body[data-variant="siam_resort_homes"] .actions,
  body[data-variant="siam_resort_homes"] .hero-sub,
  body[data-variant="siam_resort_homes"] .hero-checks,
  body[data-variant="siam_resort_homes"] .reassurance {
    inline-size: calc(100vw - var(--page-pad) * 2) !important;
    max-inline-size: calc(100vw - var(--page-pad) * 2) !important;
  }

  body[data-variant="siam_resort_homes"] .pack-card {
    justify-self: start;
  }

  .hero-sub {
    font-size: 15.5px;
    line-height: 1.42;
  }

  .pack-card {
    max-width: 100%;
    padding: 20px;
  }

  .hero-copy,
  .pack-card {
    min-width: 0;
    width: auto;
  }

  .proof-strip,
  .offer-grid,
  .question-grid,
  .life-grid,
  .feature-grid,
  .trust-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  body[data-variant="siam_resort_homes"] .life-grid {
    grid-template-columns: 1fr;
  }

  .proof-cell {
    min-height: 88px;
  }

  .micro-map {
    grid-template-columns: 1fr;
  }

  .map-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-filter {
    width: 100%;
  }

  .map-canvas {
    aspect-ratio: auto;
    min-height: 540px;
  }

  .map-script.title {
    font-size: 30px;
    left: 8%;
    max-width: 260px;
    top: 5%;
  }

  .map-script.west,
  .map-script.east {
    display: none;
  }

  .map-marker {
    max-width: 136px;
    padding: 6px 8px;
  }

  .map-marker strong {
    font-size: 10px;
  }

  .map-point {
    min-height: auto;
  }

  .modal {
    max-width: calc(100vw - 24px);
  }

  .modal-inner {
    padding: 50px 14px 18px;
  }

  .modal-close {
    right: 10px;
    top: 10px;
  }

  .photo-panel,
  .photo-panel.wide {
    aspect-ratio: 1 / 1;
  }

  .section {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  .sticky-mobile {
    background: rgba(3, 44, 35, 0.96);
    border-top: 1px solid rgba(239, 234, 220, 0.14);
    bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    left: 0;
    padding: 10px 12px;
    position: fixed;
    right: 0;
    z-index: 60;
  }

  .sticky-mobile .button {
    font-size: 11px;
    min-height: 40px;
    padding: 9px 10px;
  }

  .footer {
    padding-bottom: 78px;
  }
}
