:root {
  --sw-ink: #2c302d;
  --sw-deep: #263b37;
  --sw-clay: #b86f57;
  --sw-clay-light: #e5b498;
  --sw-paper: #fbf8f3;
  --sw-line: #e4d7cb;
  --sw-ease: cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  color: var(--sw-ink);
  font-family: "IBM Plex Sans Thai", "IBM Plex Sans", "Noto Sans Thai", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  word-break: normal;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p { text-wrap: pretty; }
h1, h2, h3 { font-family: "IBM Plex Sans Thai", "IBM Plex Sans", "Noto Sans Thai", sans-serif; }
h1 { line-height: 1.3; }

.topbar {
  background: color-mix(in srgb, var(--cream) 92%, white);
  border-bottom-color: color-mix(in srgb, var(--sw-clay) 22%, transparent);
  box-shadow: 0 5px 20px #3528200a;
}
.nav a:not(.btn) { transition: color .16s ease-out; }
.nav a:not(.btn):hover { color: var(--sw-clay); }
.btn, .gallery-more, .venue-booking-btn {
  box-shadow: 0 5px 15px #74483c1c;
  transition: transform .18s var(--sw-ease), box-shadow .18s ease-out, background-color .18s ease-out, color .18s ease-out;
}
.btn:hover, .gallery-more:hover, .venue-booking-btn:hover {
  transform: translate3d(0,-3px,0);
  box-shadow: 0 11px 25px #74483c2b;
}
.btn:active, .gallery-more:active, .venue-booking-btn:active { transform: translate3d(0,0,0) scale(.98); }

#home.hero {
  min-height: min(760px, calc(100svh - 70px));
  background: linear-gradient(112deg, #493b36 0%, #805044 44%, #bd806b 100%);
  isolation: isolate;
  perspective: 1200px;
}
#home.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 7%;
  top: 50%;
  width: clamp(250px, 36vw, 500px);
  aspect-ratio: 1;
  border: 1px solid #f4d7c077;
  border-radius: 50%;
  transform: translateY(-50%) perspective(800px) rotateX(68deg) rotateZ(-18deg);
  box-shadow: 0 0 0 24px #f4d7c016, 0 0 0 52px #f4d7c00b, inset 0 0 42px #f4d7c012;
  animation: sound-field 12s ease-in-out infinite;
  pointer-events: none;
}
#home .hero-copy { max-width: 620px; z-index: 2; }
#home .hero-copy .eyebrow { color: #f3d5c0; }
#home .hero h1 { max-width: 11.5em; font-size: clamp(40px,5.4vw,72px); line-height: 1.32; text-wrap: balance; }
#home .hero p { max-width: 34em; line-height: 1.9; color: #fffaf4; }
#home .hero .btn { color: #3c332e; background: var(--sw-paper); border: 1px solid #fffaf0; }
#home .hero-emblem {
  z-index: 1;
  right: 9%;
  width: clamp(230px,34vw,440px);
  opacity: .96;
  transform: translate3d(var(--hero-x,0),-50%,0) rotateY(var(--hero-y, -13deg)) rotateX(var(--hero-xr, 5deg));
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 30px #271b1840);
  animation: emblem-float 7s ease-in-out infinite;
  transition: transform .45s var(--sw-ease);
}
#home .hero-note { color: #fff3e9; }
@keyframes sound-field { 0%,100% { opacity:.62; transform:translateY(-50%) perspective(800px) rotateX(68deg) rotateZ(-18deg) scale(.96) } 50% { opacity:.92; transform:translateY(-50%) perspective(800px) rotateX(68deg) rotateZ(-12deg) scale(1.03) } }
@keyframes emblem-float { 0%,100% { transform:translate3d(var(--hero-x,0),calc(-50% + 0px),0) rotateY(var(--hero-y,-13deg)) rotateX(var(--hero-xr,5deg)) } 50% { transform:translate3d(var(--hero-x,0),calc(-50% - 9px),0) rotateY(var(--hero-y,-13deg)) rotateX(var(--hero-xr,5deg)) } }

.section-head { max-width: 760px; }
.section-head h2 { line-height: 1.42; }
.about-grid { gap: clamp(28px,6vw,76px); }
.about-copy p { line-height: 1.92; }
.card, .experience-card, .facilitator, .price-list {
  transition: transform .24s var(--sw-ease), box-shadow .24s ease-out, border-color .24s ease-out;
}
@media (hover:hover) and (pointer:fine) {
  .card:hover, .experience-card:hover, .facilitator:hover { transform: translate3d(0,-4px,0); box-shadow: 0 18px 36px #48342916; }
}

.about-art.discover-slideshow[data-photo-carousel] {
  height: auto;
  min-height: 310px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px 5px 18px 5px;
  background: var(--sw-deep);
  box-shadow: 0 22px 52px #40302724;
  transform: translateZ(0);
}
.about-art.discover-slideshow[data-photo-carousel]::after { content: none; }
.about-art.discover-slideshow[data-photo-carousel] img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  opacity: 0 !important;
  transform: scale(1.035) !important;
  transition: opacity .65s ease-out, transform 5.8s linear !important;
  will-change: opacity, transform !important;
  pointer-events: none;
}
.about-art.discover-slideshow[data-photo-carousel] img.is-active {
  opacity: 1 !important;
  transform: scale(1) !important;
}
.photo-carousel-shade {
  position: absolute;
  z-index: 2;
  inset: 42% 0 0;
  background: linear-gradient(180deg,transparent,#182521b8);
  pointer-events: none;
}
.photo-carousel-caption {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 20px;
  max-width: calc(100% - 142px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  text-shadow: 0 1px 9px #0008;
}
.photo-carousel-controls {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.photo-carousel-controls button {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #ffffff8c;
  border-radius: 50%;
  background: #263b37c9;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background-color .16s ease-out, transform .16s ease-out;
}
.photo-carousel-controls button:hover { background: var(--sw-clay); transform: scale(1.06); }
.photo-carousel-controls .photo-carousel-count { min-width: 38px; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }

/* Keep the carousel chrome isolated from the legacy studio art styles. */
#about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-shade {
  position: absolute !important; inset: 58% 0 0 !important; z-index: 2 !important;
  width: auto !important; height: auto !important; padding: 0 !important;
  background: linear-gradient(180deg,transparent,#18252199) !important;
}
#about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-caption {
  position: absolute !important; display: block !important; inset: auto auto 20px 22px !important;
  z-index: 3 !important; width: auto !important; height: auto !important;
  max-width: calc(100% - 142px) !important; margin: 0 !important; padding: 0 !important;
  color: #fff !important; font-size: clamp(11px,1.05vw,14px) !important;
  font-weight: 600 !important; line-height: 1.55 !important; text-shadow: 0 1px 9px #0008 !important;
}
#about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-controls {
  position: absolute !important; display: flex !important; inset: auto 16px 15px auto !important;
  z-index: 4 !important; width: auto !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; align-items: center !important;
  justify-content: center !important; gap: 7px !important;
}
#about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-controls > button {
  position: static !important; display: grid !important; place-items: center !important;
  flex: 0 0 40px !important; width: 40px !important; min-width: 40px !important;
  max-width: 40px !important; height: 40px !important; min-height: 40px !important;
  max-height: 40px !important; margin: 0 !important; padding: 0 !important;
  border: 1px solid #ffffff8c !important; border-radius: 50% !important;
  background: #263b37c9 !important; color: #fff !important;
  font: 600 20px/1 "IBM Plex Sans",sans-serif !important; cursor: pointer !important;
  overflow: hidden !important;
}
#about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-controls > button > span {
  position: static !important; display: block !important; flex: 0 0 auto !important;
  width: auto !important; min-width: 0 !important; max-width: none !important;
  height: auto !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; color: inherit !important;
  font: inherit !important; line-height: 1 !important; transform: none !important;
}
#about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-controls > .photo-carousel-count {
  position: static !important; display: block !important; flex: 0 0 38px !important;
  width: 38px !important; min-width: 38px !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; color: #fff !important;
  font: 600 11px/1.3 "IBM Plex Sans",sans-serif !important; text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}

@media (max-width:760px) {
  #home.hero { min-height: 650px; padding-top: 110px; padding-bottom: 58px; align-items: flex-end; }
  #home.hero::before { width: 250px; top: 30%; right: 8%; opacity: .62; }
  #home .hero-emblem { top: 30%; right: 3%; width: clamp(210px,58vw,300px); opacity: .78; }
  #home .hero-copy { max-width: 100%; }
  #home .hero h1 { max-width: 12em; font-size: clamp(36px,9.5vw,54px); }
  #home .hero p { max-width: 34ch; font-size: 15px; }
  .about-art.discover-slideshow[data-photo-carousel] { min-height: 260px; }
}
@media (max-width:420px) {
  body { font-size: 15px; }
  #home.hero { min-height: 600px; padding-left: 20px; padding-right: 20px; }
  #home .hero-emblem { top: 29%; width: 220px; }
  #home .hero-note { right: 18px; bottom: 14px; }
  .photo-carousel-caption { left: 14px; bottom: 14px; max-width: calc(100% - 120px); font-size: 11px; }
  .photo-carousel-controls { right: 10px; bottom: 9px; gap: 4px; }
  .photo-carousel-controls button { min-width: 36px; min-height: 36px; }
  #about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-controls { inset: auto 10px 9px auto !important; gap: 4px !important; }
  #about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-controls > button { flex-basis: 36px !important; width: 36px !important; min-width: 36px !important; max-width: 36px !important; height: 36px !important; min-height: 36px !important; max-height: 36px !important; }
  #about .about-art.discover-slideshow[data-photo-carousel] > .photo-carousel-caption { inset: auto auto 14px 14px !important; max-width: calc(100% - 120px) !important; font-size: 11px !important; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  #home.hero::before, #home .hero-emblem { animation: none !important; }
  #home .hero-emblem { transform: translateY(-50%); }
  .btn, .gallery-more, .venue-booking-btn, .card, .experience-card, .facilitator { transition: none !important; }
  .about-art.discover-slideshow[data-photo-carousel] img { transition: opacity .2s ease-out !important; transform: none !important; }
}
