:root {
  --paper: #faf6ec;
  --paper-2: #e9dfca;
  --ink: #11110e;
  --charcoal: #25231f;
  --muted: #716b61;
  --line: rgba(17, 17, 14, 0.16);
  --accent: #8f3525;
  --accent-dark: #40221c;
  --gold: #b58a4f;
  --white: #fffaf2;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: var(--ink);
  background: rgba(250, 246, 236, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  background: rgba(250, 246, 236, 0.96);
}

.brand {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 38px);
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
  content: "";
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-cta,
.button,
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mini-cta {
  min-height: 38px;
  padding: 8px 15px;
}

.button:hover,
.mini-cta:hover,
.submit:hover {
  transform: translateY(-2px);
}

.primary,
.submit {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.ghost {
  color: var(--ink);
}

.light {
  color: var(--white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.is-open .menu-button span:first-child {
  transform: translateY(3.5px) rotate(38deg);
}

.is-open .menu-button span:last-child {
  transform: translateY(-3.5px) rotate(-38deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header);
  right: 0;
  left: 0;
  display: grid;
  padding: 8px 20px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transform: translateY(-125%);
  transition: transform 260ms ease;
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: calc(var(--header) + 46px) clamp(18px, 5vw, 70px) 72px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(34vw, 560px);
  background: var(--accent-dark);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 930px;
}

.hero h1 {
  max-width: 1050px;
  margin: 0 0 26px;
  font-size: clamp(4rem, 8.5vw, 10.5rem);
  font-weight: 900;
  line-height: 0.92;
}

.hero-copy > p:not(.kicker) {
  max-width: 630px;
  margin-bottom: 34px;
  color: var(--charcoal);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
}

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

.hero-image {
  position: relative;
  z-index: 1;
  min-height: min(680px, calc(100svh - 170px));
  background: linear-gradient(rgba(17, 17, 14, 0.02), rgba(17, 17, 14, 0.06)), url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1600&q=82") center / cover;
  box-shadow: -26px 26px 0 var(--gold);
}

.scroll-cue {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 26px;
  z-index: 2;
  color: var(--muted);
  font-size: 0.82rem;
  animation: floatCue 1.7s ease-in-out infinite;
}

.kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-space {
  padding: clamp(82px, 11vw, 152px) clamp(18px, 5vw, 70px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
}

.intro-image {
  min-height: 620px;
  background: url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=1300&q=82") center / cover;
}

.intro h2,
.manifesto h2,
.owner h2,
.contact h2 {
  margin: 0 0 30px;
  font-size: clamp(3rem, 7.2vw, 8.2rem);
  font-weight: 900;
  line-height: 1;
}

.intro p:not(.kicker),
.manifesto p,
.owner p:not(.kicker),
.contact-intro p {
  max-width: 760px;
  color: var(--charcoal);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 6vw, 74px);
}

.section-title h2,
.locations h2 {
  margin: 0;
  font-size: clamp(3.5rem, 9.6vw, 10.8rem);
  font-weight: 900;
  line-height: 0.96;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(30px, 5vw, 82px);
  align-items: start;
}

.property-item,
.service-item {
  display: grid;
  grid-template-columns: 68px minmax(170px, 0.72fr) minmax(210px, 1fr);
  gap: clamp(16px, 3vw, 42px);
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.property-item:last-child,
.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

.property-item span,
.service-item span {
  color: var(--accent);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
}

.property-item h3,
.service-item h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 5.3rem);
  font-weight: 900;
  line-height: 1;
  transition: color 180ms ease;
}

.property-item p,
.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.property-item:hover h3,
.property-item.is-active h3 {
  color: var(--accent);
}

.property-image {
  position: sticky;
  top: calc(var(--header) + 28px);
  min-height: 620px;
  background: url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1500&q=82") center / cover;
  transition: background-image 240ms ease, transform 240ms ease;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 450px);
  gap: clamp(30px, 6vw, 84px);
  align-items: end;
  background: var(--paper-2);
}

.locations {
  position: relative;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.location-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1508009603885-50cf7c579365?auto=format&fit=crop&w=1600&q=82") center / cover;
  opacity: 0.2;
  transition: background-image 260ms ease, opacity 260ms ease;
}

.location-content {
  position: relative;
  z-index: 1;
}

.location-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(30px, 6vw, 90px);
  margin-top: 54px;
}

.location-list button {
  padding: 28px 0;
  color: rgba(255, 250, 242, 0.86);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 250, 242, 0.22);
  cursor: pointer;
  font-size: clamp(2.4rem, 6.2vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  transition: color 180ms ease, padding-left 180ms ease;
}

.location-list button:hover,
.location-list button:focus-visible {
  color: var(--white);
  padding-left: 22px;
  outline: 0;
}

.service-list {
  max-width: 1160px;
}

.philosophy {
  color: var(--white);
  background: var(--ink);
}

.philosophy h2 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 13vw, 14rem);
  line-height: 0.86;
}

.thai-line {
  margin: 0 0 28px;
  color: var(--paper-2);
  font-size: clamp(2rem, 4.7vw, 5rem);
  font-weight: 900;
}

.philosophy-text {
  max-width: 760px;
  color: rgba(255, 250, 242, 0.72);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.lifestyle {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  padding: clamp(76px, 8vw, 114px) clamp(18px, 5vw, 70px);
  color: var(--white);
  background: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.lifestyle::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 14, 0.78), rgba(17, 17, 14, 0.24));
  content: "";
}

.lifestyle-text {
  position: relative;
  z-index: 1;
}

.lifestyle h2 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 13vw, 13.5rem);
  line-height: 0.82;
}

.lifestyle p {
  margin: 0 0 30px;
  font-size: clamp(1.32rem, 2.7vw, 2.6rem);
  font-weight: 900;
}

.owner {
  background: var(--paper-2);
}

.owner-panel {
  max-width: 1080px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 7vw, 106px);
  align-items: start;
}

.email {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-size: clamp(1.42rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form .full,
.form-status,
.submit {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form label.is-invalid input,
.contact-form label.is-invalid select,
.contact-form label.is-invalid textarea {
  border-color: var(--accent);
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.submit {
  cursor: pointer;
}

.contact-info {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
}

.contact-info strong {
  color: var(--ink);
}

.contact-info a {
  color: var(--accent);
}

.footer {
  padding: 32px clamp(18px, 5vw, 70px);
  color: var(--paper);
  background: var(--ink);
}

.footer > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.footer > div:first-child {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer > div:last-child {
  padding-top: 20px;
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.82rem;
}

.footer a,
.footer > div span:last-child {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCue {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions > span,
  .mini-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 92svh;
    grid-template-columns: 1fr;
    align-items: end;
    color: var(--white);
  }

  .hero::before {
    inset: 0;
    width: auto;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 17, 14, 0.2), rgba(17, 17, 14, 0.86));
  }

  .hero-image {
    position: absolute;
    inset: 0;
    min-height: 0;
    box-shadow: none;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy > p:not(.kicker),
  .ghost,
  .scroll-cue {
    color: var(--white);
  }

  .intro,
  .property-layout,
  .manifesto,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-image,
  .property-image {
    min-height: 430px;
  }

  .property-image {
    position: relative;
    top: auto;
    order: -1;
  }

  .property-item,
  .service-item {
    grid-template-columns: 52px 1fr;
  }

  .property-item p,
  .service-item p {
    grid-column: 2;
  }

  .location-list {
    grid-template-columns: 1fr;
  }

  .footer > div {
    grid-template-columns: 1fr;
  }

  .footer a,
  .footer > div span:last-child {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 68px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.86rem;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 20vw, 6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intro h2,
  .manifesto h2,
  .owner h2,
  .contact h2 {
    font-size: clamp(2.62rem, 13vw, 4.8rem);
  }

  .section-title {
    display: block;
  }

  .section-title h2,
  .locations h2 {
    font-size: clamp(3.2rem, 17vw, 5.6rem);
  }

  .property-item h3,
  .service-item h3 {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .location-list button {
    font-size: clamp(2.45rem, 14vw, 4.8rem);
  }

  .philosophy h2,
  .lifestyle h2 {
    font-size: clamp(3.8rem, 18vw, 6.7rem);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
