/* Phuket Property Expo 2027 — v3 (layered) */
:root {
  --ink: #10272B;
  --ink-2: #183A3E;
  --line-d: rgba(207, 217, 213, .22);
  --stone: #EEF0EC;
  --paper: #F7F8F5;
  --line: #CBD3CE;
  --teal: #1F5C58;
  --muted: #405254;
  --muted-d: #D3DCD8;
  --label-d: #A9BAB6;
  --brass: #C9A56A;
  --serif: 'Marcellus', 'Noto Serif Thai', Georgia, serif;
  --sans: 'Hanken Grotesk', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --lift: 0 30px 60px -28px rgba(10, 30, 33, .55), 0 10px 24px -12px rgba(10, 30, 33, .25);
  --lift-strong: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 18px 36px -16px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--stone); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body:lang(th) { line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--brass); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.serif { font-family: var(--serif); font-weight: 400; }
:lang(th) .serif-th { font-family: 'Noto Serif Thai', serif; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 3px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #D8BB86; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); color: var(--paper); }
.btn-glass { color: var(--stone); border-color: rgba(238, 240, 236, .45); background: rgba(16, 39, 43, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-glass:hover { border-color: var(--stone); color: var(--stone); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* header (sits on the hero photo) */
.site-head { position: absolute; inset: 0 0 auto; z-index: 5; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 20px; padding-bottom: 20px; }
.brand img { height: 40px; width: auto; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
nav.main a { color: var(--stone); text-decoration: none; }
nav.main .sec { padding: 10px 0; }
nav.main .sec:hover { color: var(--brass); }
nav.main .lang { padding: 9px 13px; border: 1px solid rgba(238, 240, 236, .4); border-radius: 3px; }
nav.main .lang:hover { border-color: var(--stone); }
nav.main .btn { color: var(--ink); }
@media (max-width: 920px) { nav.main .sec { display: none; } }
@media (max-width: 420px) { .brand img { height: 32px; } }

/* hero: photo plane, shade plane, content plane */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; overflow: hidden; color: var(--stone); background: var(--ink); isolation: isolate; }
.hero-bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10, 30, 33, .92) 0%, rgba(10, 30, 33, .72) 42%, rgba(10, 30, 33, .25) 75%, rgba(10, 30, 33, .1) 100%),
  linear-gradient(0deg, rgba(10, 30, 33, .85) 0%, rgba(10, 30, 33, 0) 35%); }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: 120px; padding-bottom: 150px; }
.hero h1 { font-size: clamp(50px, 7.6vw, 108px); line-height: .98; letter-spacing: -0.012em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .th-name { display: block; margin-top: 18px; font-family: 'Noto Serif Thai', serif; font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.3; color: var(--brass); letter-spacing: 0; }
.hero .lede { margin-top: 26px; max-width: 30em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted-d); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--label-d); }
/* the arch window: a framed second view, floating in front of the photo */
.window { justify-self: end; width: min(100%, 400px); will-change: transform; }
.window .frame { position: relative; aspect-ratio: 4 / 5.3; padding: 12px; border-radius: 999px 999px 6px 6px; background: linear-gradient(160deg, #F7F8F5, #DCE2DD); box-shadow: var(--lift-strong); }
.window .frame::after { content: ""; position: absolute; inset: 12px; border-radius: 999px 999px 3px 3px; box-shadow: inset 0 18px 30px -12px rgba(0, 0, 0, .55); pointer-events: none; }
.window img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 3px 3px; }
.window figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--label-d); }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  .window { animation: rise 1.3s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy { animation: fade 1s .1s ease-out both; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
  @keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 130px; }
  .window { justify-self: center; width: min(78%, 340px); }
  .hero::before { background: linear-gradient(0deg, rgba(10, 30, 33, .95) 0%, rgba(10, 30, 33, .7) 55%, rgba(10, 30, 33, .55) 100%); }
}

/* facts: a glass card resting over the hero's lower edge */
.facts { position: relative; z-index: 4; margin-top: -84px; }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 6px; background: rgba(247, 248, 245, .9); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: var(--lift); border: 1px solid rgba(255, 255, 255, .6); }
.facts dl > div { padding: 22px 24px 24px; }
.facts dl > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin-top: 4px; font-size: 17px; font-weight: 500; }
@media (max-width: 860px) { .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts dl > div:nth-child(3) { border-left: 0; } .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 460px) { .facts dl { grid-template-columns: 1fr; } .facts dl > div + div { border-left: 0; border-top: 1px solid var(--line); } .facts dl > div { padding: 14px 18px; } }

/* sections */
.sec-pad { padding: clamp(72px, 9vw, 128px) 0; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.005em; max-width: 16em; }
:lang(th) .h2.serif-th { line-height: 1.3; font-size: clamp(30px, 3.8vw, 50px); }
.intro { margin-top: 22px; max-width: 36em; font-size: 19px; line-height: 1.6; color: var(--muted); }

/* buyers: list + layered photos */
.buyers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; margin-top: 56px; }
.inhall li { padding: 18px 0; border-top: 1px solid var(--line); }
.inhall li:last-child { border-bottom: 1px solid var(--line); }
.inhall strong { display: block; font-size: 18px; font-weight: 600; }
.inhall span { display: block; margin-top: 2px; color: var(--muted); }
.collage { position: relative; padding: 0 0 84px 56px; }
.collage .c-main { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6px; box-shadow: var(--lift); }
.collage .c-sub { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--paper); border-radius: 6px; box-shadow: var(--lift-strong); will-change: transform; }
.collage figcaption { position: absolute; right: 0; bottom: 0; max-width: 50%; text-align: right; font-size: 13px; color: var(--muted); }
.condition { position: relative; margin-top: 72px; padding: clamp(28px, 4vw, 48px); background: var(--paper); border-radius: 6px; box-shadow: var(--lift); }
.condition p.k { font-size: 15px; color: var(--teal); font-weight: 600; }
.condition p.v { margin-top: 10px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 31px); line-height: 1.35; max-width: 34em; }
:lang(th) .condition p.v { font-family: 'Noto Serif Thai', serif; font-weight: 500; line-height: 1.55; }
@media (max-width: 860px) { .buyers-grid { grid-template-columns: 1fr; } .collage { padding: 0 0 92px 28px; } .collage figcaption { bottom: 0; max-width: 46%; } }

/* developers: night photo plane behind the content */
.dev { position: relative; overflow: hidden; color: var(--stone); background: var(--ink); isolation: isolate; }
.dev-bg { position: absolute; inset: -15% 0; z-index: -2; will-change: transform; }
.dev-bg img { width: 100%; height: 100%; object-fit: cover; }
.dev::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 33, .93) 0%, rgba(10, 30, 33, .86) 45%, rgba(10, 30, 33, .95) 100%); }
.dev a:not(.btn) { color: var(--brass); }
.dev a:not(.btn):hover { color: var(--stone); }
.dev .h2 { color: var(--stone); }
.market { margin-top: 34px; max-width: 28em; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.45; color: var(--stone); }
:lang(th) .market { font-family: 'Noto Serif Thai', serif; font-weight: 400; line-height: 1.7; font-size: clamp(20px, 2vw, 26px); }
.evidence { margin-top: 22px; max-width: 40em; color: var(--muted-d); }
.evidence sup, .market sup { font-family: var(--sans); font-size: .5em; color: var(--brass); margin-left: 1px; }

.hall { margin-top: 88px; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hall h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
:lang(th) .hall h3 { font-family: 'Noto Serif Thai', serif; font-weight: 500; line-height: 1.4; }
.hall p { margin-top: 14px; color: var(--muted-d); }
.hall .toggle { margin-top: 22px; }
/* the plan as a scale model on a table */
.model-stage { perspective: 1700px; padding: 24px 0 48px; }
.model { margin: 0; transform-style: preserve-3d; transform: rotateX(46deg) rotateZ(-7deg) translateY(-6%); transform-origin: 50% 60%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.model .board { background: #fff; border-radius: 6px; box-shadow: 0 2px 0 #C9D2CD, 0 6px 0 #AEBBB6, 0 60px 70px -20px rgba(0, 0, 0, .7); }
.plan-svg { display: block; width: 100%; height: auto; padding: 14px; }
.model figcaption { margin-top: 16px; font-size: 13px; color: var(--label-d); }
.model-stage.flat .model { transform: none; }
@media (prefers-reduced-motion: reduce) { .model { transition: none; } }
@media (max-width: 700px) { .model { transform: none; } .hall .toggle { display: none; } }
@media (max-width: 900px) { .hall { grid-template-columns: 1fr; } }

.glass { margin-top: 64px; padding: clamp(22px, 3vw, 36px); border-radius: 6px; background: rgba(24, 58, 62, .55); border: 1px solid rgba(238, 240, 236, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--lift-strong); }
.options { width: 100%; border-collapse: collapse; }
.options caption { text-align: left; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); padding-bottom: 14px; color: var(--stone); }
:lang(th) .options caption { font-family: 'Noto Serif Thai', serif; font-weight: 500; }
.options th, .options td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid var(--line-d); }
.options th { width: 22%; font-weight: 600; color: var(--stone); }
.options td { color: var(--muted-d); }
.options td.rate { width: 18%; color: var(--label-d); white-space: nowrap; }
@media (max-width: 640px) {
  .options, .options caption, .options tbody, .options tr, .options th, .options td, .options td.rate { display: block; width: auto; }
  .options tr { border-top: 1px solid var(--line-d); padding: 14px 0; }
  .options th, .options td { border: 0; padding: 2px 0; }
  .options td.rate { white-space: normal; }
}
.dev-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dev-cta span { color: var(--muted-d); }
.refs { margin-top: 56px; font-size: 13px; color: var(--label-d); }
.refs ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.visit .lead p { margin-top: 18px; color: var(--muted); max-width: 26em; }
.visit .lead .btn { margin-top: 26px; }
.rows { padding: 8px 28px; background: var(--paper); border-radius: 6px; box-shadow: var(--lift); }
.rows > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; }
.rows > div + div { border-top: 1px solid var(--line); }
.rows dt { font-weight: 600; }
.rows dd { color: var(--muted); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rows { padding: 4px 18px; } .rows > div { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 36px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 24px; line-height: 1; color: var(--teal); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; max-width: 40em; color: var(--muted); }
.faq .a p + p { margin-top: 10px; }

/* footer */
.site-foot { padding: 64px 0 36px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.foot-cols h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.foot-brand img { height: 50px; width: auto; }
.foot-brand p { margin-top: 14px; color: var(--muted); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }

/* brokers: one quiet card between visit and questions */
.broker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(22px, 3vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.broker > div { max-width: 44em; }
.broker .h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; }
.broker p { color: var(--muted); }

/* exhibitor enquiry form (inside the glass card) */
.enquiry { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.enq-h { font-family: var(--serif); font-size: 22px; color: var(--stone); margin-bottom: 14px; }
:lang(th) .enq-h { font-family: 'Noto Serif Thai', serif; font-weight: 500; }
.enq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.enq-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted-d); }
.enq-grid .wide { grid-column: 1 / -1; }
.enq-grid .hp { position: absolute; left: -9999px; }
.enq-grid input, .enq-grid select, .enq-grid textarea { font: 16px/1.4 var(--sans); color: var(--stone); background: rgba(16, 39, 43, .45); border: 1px solid rgba(238, 240, 236, .28); border-radius: 3px; padding: 11px 12px; }
.enq-grid select option { color: var(--ink); }
.enq-grid input:focus, .enq-grid select:focus, .enq-grid textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.enq-msg { margin-top: 12px; color: var(--stone); min-height: 1.4em; }
.enq-msg.err { color: #F0C9A6; }
@media (max-width: 640px) { .enq-grid { grid-template-columns: 1fr; } }
.hall-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 700px) { .hall-actions .toggle { display: none; } }

/* embedded 3D explorer replaces the tilted plan */
.hall-text { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; }
.hall-tip { color: var(--muted-d); font-size: 15px; max-width: 30em; }
.explorer-wrap { margin-top: 26px; }
.explorer-frame { display: block; width: 100%; height: 760px; border: 0; border-radius: 6px; background: #e6e8e1; box-shadow: var(--lift-strong); }
.plan-cap { margin-top: 12px; font-size: 13px; color: var(--label-d); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.plan-cap a { color: var(--brass); }
@media (max-width: 1050px) { .explorer-frame { height: 980px; } }
@media (max-width: 760px) { .explorer-frame { height: 900px; } }
@media (max-width: 480px) { .explorer-frame { height: 820px; } }
