:root {
  --ink: #121715;
  --ink-deep: #07110e;
  --moss: #1d3b31;
  --sage: #8cae9c;
  --ivory: #fffaf1;
  --paper: #ffffff;
  --line: rgb(18 23 21 / 0.16);
  --muted: rgb(18 23 21 / 0.68);
  --orange: #d66d2d;
  --orange-deep: #a94817;
  --gold: #c99a4b;
  --shadow: 0 26px 80px rgb(7 17 14 / 0.18);
  --display: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --thai-serif: "Noto Serif Thai", serif;
  --sans: "Noto Sans Thai", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  text-rendering: geometricPrecision;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main {
  overflow: clip;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 20px max(22px, calc((100vw - 1180px) / 2));
  color: var(--paper);
  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(18 23 21 / 0.08);
  color: var(--ink);
  background: rgb(255 250 241 / 0.9);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 0;
}

.brand-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: var(--ivory);
  background: var(--orange);
}

.brand-icon svg {
  width: 34px;
  height: 34px;
}

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

.brand-text strong {
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text small {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.desktop-nav a,
.header-cta {
  position: relative;
}

.desktop-nav a::after,
.header-cta::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.header-cta svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  isolation: isolate;
  background: var(--ink-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transform-origin: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(7 17 14 / 0.78), rgb(7 17 14 / 0.36) 48%, rgb(7 17 14 / 0.04)),
    linear-gradient(0deg, rgb(7 17 14 / 0.72), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 44px));
  padding: 0 max(22px, calc((100vw - 1180px) / 2)) 96px;
  color: var(--paper);
}

.hero h1,
.intro-copy h2,
.care-heading h2,
.rooms-copy h2,
.gallery-copy h2,
.promo-copy h2,
.guide-copy h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 790px;
  font-size: 8.8rem;
}

.hero-thai {
  margin: 0;
  font-family: var(--thai-serif);
  font-size: 2.45rem;
  font-weight: 600;
  line-height: 1.18;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 0.86);
  font-size: 1.08rem;
  line-height: 1.88;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

.button-primary {
  border-color: var(--orange);
  color: var(--paper);
  background: var(--orange);
}

.button-primary:hover {
  border-color: var(--orange-deep);
  background: var(--orange-deep);
}

.button-ghost {
  color: var(--paper);
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(12px);
}

.button-dark {
  border-color: rgb(18 23 21 / 0.22);
  color: var(--ink);
  background: transparent;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.scroll-cue svg {
  width: 19px;
  height: 19px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.12fr);
  gap: 0;
  min-height: 82svh;
  background: var(--paper);
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 84px clamp(24px, 6vw, 92px);
}

.intro-copy h2 {
  font-size: 4.8rem;
}

.intro-copy p,
.care-heading p,
.rooms-copy p,
.gallery-copy p,
.guide-copy p,
.promo-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.text-link {
  width: fit-content;
  margin-top: 18px;
  color: var(--orange-deep);
  font-size: 0.92rem;
  font-weight: 800;
}

.text-link::after {
  content: " ->";
}

.intro-media {
  min-height: 520px;
  overflow: hidden;
  background: var(--ink-deep);
}

.intro-media img,
.rooms-media img,
.gallery-tile img,
.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-section {
  padding: 104px max(22px, calc((100vw - 1180px) / 2));
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 20%, rgb(140 174 156 / 0.14), transparent 26%),
    linear-gradient(135deg, var(--ink-deep), var(--moss));
}

.care-heading {
  max-width: 820px;
  margin: 0 auto 58px;
  text-align: center;
}

.care-heading h2 {
  font-family: var(--thai-serif);
  font-size: 3.6rem;
}

.care-heading p {
  color: rgb(255 255 255 / 0.68);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 0.2);
  border-left: 1px solid rgb(255 255 255 / 0.2);
}

.care-item {
  min-height: 270px;
  padding: 34px 28px;
  border-right: 1px solid rgb(255 255 255 / 0.2);
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.care-item span {
  display: block;
  color: var(--orange);
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1;
}

.care-item h3 {
  margin: 28px 0 0;
  font-family: var(--thai-serif);
  font-size: 1.3rem;
  line-height: 1.25;
}

.care-item p {
  margin: 12px 0 0;
  color: rgb(255 255 255 / 0.65);
  font-size: 0.9rem;
  line-height: 1.75;
}

.rooms-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  min-height: 88svh;
  background: var(--ivory);
}

.rooms-media {
  min-height: 620px;
  overflow: hidden;
  background: var(--ink-deep);
}

.rooms-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(24px, 6vw, 88px);
}

.rooms-copy h2,
.gallery-copy h2,
.guide-copy h2,
.contact-panel h2 {
  font-family: var(--thai-serif);
  font-size: 4.15rem;
}

.room-lines {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.room-lines div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px 0;
  background: var(--ivory);
}

.room-lines strong,
.guide-list strong {
  font-family: var(--thai-serif);
  font-size: 1.05rem;
}

.room-lines span,
.guide-list span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.gallery-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1.55fr);
  gap: 60px;
  align-items: start;
  padding: 108px max(22px, calc((100vw - 1180px) / 2));
  background: var(--paper);
}

.gallery-copy {
  position: sticky;
  top: 96px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
  gap: 10px;
}

.gallery-tile {
  margin: 0;
  overflow: hidden;
  background: var(--ink-deep);
}

.gallery-tile img {
  transition: transform 700ms ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.tile-large {
  grid-column: span 7;
  grid-row: span 3;
}

.gallery-tile:not(.tile-large):not(.tile-tall) {
  grid-column: span 5;
  grid-row: span 2;
}

.tile-tall {
  grid-column: span 4;
  grid-row: span 4;
}

.promo-section {
  position: relative;
  display: grid;
  min-height: 76svh;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink-deep);
}

.promo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 17 14 / 0.86), rgb(7 17 14 / 0.42) 48%, rgb(7 17 14 / 0.12)),
    linear-gradient(0deg, rgb(7 17 14 / 0.64), transparent);
}

.promo-copy {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 44px));
  padding: 86px max(22px, calc((100vw - 1180px) / 2));
}

.promo-copy h2 {
  font-family: var(--thai-serif);
  font-size: 4.2rem;
}

.promo-copy h2 span {
  color: var(--orange);
}

.promo-copy p {
  max-width: 640px;
  color: rgb(255 255 255 / 0.72);
}

.promo-copy strong {
  color: var(--paper);
  font-size: 1.18rem;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.64fr) minmax(0, 1.36fr);
  gap: 70px;
  padding: 108px max(22px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, var(--ivory), #f4f9f4),
    var(--ivory);
}

.guide-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.guide-list div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  background: #f4f9f4;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  min-height: 78svh;
  background: var(--paper);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px clamp(24px, 6vw, 88px);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  color: var(--muted);
  font-weight: 700;
}

.contact-links svg {
  width: 23px;
  height: 23px;
  color: var(--orange-deep);
}

.contact-image {
  min-height: 560px;
  overflow: hidden;
  background: var(--ink-deep);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(22px, calc((100vw - 1180px) / 2));
  color: rgb(255 255 255 / 0.68);
  background: #050807;
}

.site-footer strong {
  display: block;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.site-footer span {
  font-size: 0.88rem;
}

.site-footer div:last-child {
  display: flex;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 700;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .hero h1 {
    font-size: 6.6rem;
  }

  .hero-thai {
    font-size: 2rem;
  }

  .intro-section,
  .rooms-section,
  .gallery-section,
  .guide-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-media,
  .rooms-media,
  .contact-image {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

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

  .gallery-copy {
    position: static;
  }

  .gallery-grid {
    grid-auto-rows: 140px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-icon svg {
    width: 30px;
    height: 30px;
  }

  .brand-text strong {
    font-size: 1.18rem;
  }

  .brand-text small {
    font-size: 0.64rem;
  }

  .header-cta {
    font-size: 0;
    gap: 0;
  }

  .header-cta svg {
    width: 22px;
    height: 22px;
  }

  .hero-content {
    width: 100%;
    padding: 0 18px 82px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgb(7 17 14 / 0.82), rgb(7 17 14 / 0.44) 70%, rgb(7 17 14 / 0.1)),
      linear-gradient(0deg, rgb(7 17 14 / 0.76), transparent 52%);
  }

  .hero h1 {
    max-width: 10ch;
    font-size: 4.45rem;
  }

  .hero-thai {
    font-size: 1.48rem;
  }

  .hero-copy {
    max-width: 34rem;
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }

  .scroll-cue {
    right: auto;
    left: 18px;
  }

  .intro-copy,
  .rooms-copy,
  .contact-panel {
    padding: 54px 18px;
  }

  .intro-copy h2 {
    font-size: 3.45rem;
  }

  .care-section,
  .gallery-section,
  .guide-section {
    padding: 72px 18px;
  }

  .care-heading h2,
  .rooms-copy h2,
  .gallery-copy h2,
  .promo-copy h2,
  .guide-copy h2,
  .contact-panel h2 {
    font-size: 2.75rem;
  }

  .care-grid {
    grid-template-columns: 1fr;
  }

  .care-item {
    min-height: 210px;
    padding: 28px 22px;
  }

  .room-lines div,
  .guide-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-tile,
  .tile-large,
  .tile-tall,
  .gallery-tile:not(.tile-large):not(.tile-tall) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .tile-tall {
    aspect-ratio: 4 / 5;
  }

  .promo-section {
    min-height: 82svh;
  }

  .promo-copy {
    width: 100%;
    padding: 84px 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
