:root {
  --bg: #07110e;
  --ink: #f3f8f2;
  --muted: #afbeb8;
  --line: rgba(243, 248, 242, 0.18);
  --panel: rgba(10, 22, 18, 0.86);
  --panel-strong: rgba(4, 12, 10, 0.9);
  --teal: #61d2ad;
  --coral: #ff715c;
  --amber: #ffd166;
  --violet: #9c83f4;
  --sky: #78c8ee;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans Thai", "Avenir Next", system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
  font: inherit;
}

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

:lang(th) {
  line-break: strict;
  word-break: normal;
}

.exhibit-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1160px, calc(100% - 56px));
  min-height: 58px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(243, 248, 242, 0.18);
  border-radius: 999px;
  background: rgba(6, 15, 12, 0.78);
  padding: 8px 12px 8px 22px;
  backdrop-filter: blur(20px);
}

.brand {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.progress-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 248, 242, 0.28);
  cursor: pointer;
  padding: 0;
}

.progress-dots button.is-active {
  width: 34px;
  background: var(--coral);
}

.deck {
  height: 100svh;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.slide {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--bg);
}

.slide-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 72px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 116px 0 54px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--coral);
  font-size: clamp(0.92rem, 1.3vw, 1.14rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span,
h2 span {
  display: block;
}

h1 {
  font-size: clamp(5.2rem, 9.4vw, 9.8rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(3.2rem, 5.8vw, 6.25rem);
  line-height: 1.03;
}

p {
  color: var(--muted);
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  line-height: 1.72;
}

.hero-slide {
  background: #060d0b;
}

.hero-image,
.photo-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.scrim,
.split-photo-slide::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 14, 0.93) 0 34%, rgba(7, 17, 14, 0.45) 58%, rgba(7, 17, 14, 0.78)),
    linear-gradient(0deg, rgba(7, 17, 14, 0.76), transparent 48%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  align-items: end;
  gap: 42px;
}

.hero-copy {
  align-self: center;
}

.hero-quote {
  display: grid;
  gap: 18px;
  border-left: 6px solid var(--amber);
  background: rgba(4, 12, 10, 0.68);
  padding: 26px 30px;
  box-shadow: var(--shadow);
}

.hero-quote span {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 900;
}

.hero-quote strong {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.18;
}

.stat-slide {
  background:
    linear-gradient(90deg, rgba(255, 113, 92, 0.09), transparent 48%),
    #07110e;
}

.stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 52px;
}

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

.stat-tile {
  display: grid;
  min-height: 430px;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 26px;
  box-shadow: var(--shadow);
}

.stat-tile span {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 950;
}

.stat-tile strong {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
  line-height: 0.96;
}

.stat-tile small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.split-photo-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.photo-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.photo-panel img {
  object-position: center;
}

.split-copy {
  display: grid;
  align-content: center;
  max-width: 780px;
  padding-left: 48px;
}

.split-copy p:last-child {
  max-width: 660px;
  margin-top: 32px;
  color: rgba(243, 248, 242, 0.82);
}

.floor-slide,
.network-slide {
  background:
    linear-gradient(180deg, #07110e, #091713),
    #07110e;
}

.floor-grid,
.network-grid,
.day-grid,
.burden-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 38px;
}

.floor-plan {
  position: relative;
  display: grid;
  min-height: 580px;
  overflow: hidden;
  grid-template-columns: 1.05fr 0.75fr 0.62fr;
  grid-template-rows: 1.05fr 0.86fr;
  grid-template-areas:
    "living living exit"
    "bed kitchen bath";
  border: 1px solid rgba(243, 248, 242, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(243, 248, 242, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(243, 248, 242, 0.08) 1px, transparent 1px),
    #0e201b;
  background-size: 52px 52px;
  box-shadow: var(--shadow);
}

.room {
  position: relative;
  display: grid;
  min-width: 0;
  align-items: start;
  border: 2px solid rgba(243, 248, 242, 0.2);
  padding: 20px;
}

.room span,
.risk,
.node {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.room span {
  width: fit-content;
  background: rgba(5, 13, 11, 0.78);
  padding: 9px 14px;
}

.living {
  grid-area: living;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), transparent 52%),
    #13241d;
}

.exit {
  grid-area: exit;
  background:
    linear-gradient(140deg, rgba(85, 208, 170, 0.18), transparent 56%),
    #0f241f;
}

.bed {
  grid-area: bed;
  background:
    linear-gradient(120deg, rgba(156, 131, 244, 0.2), transparent 58%),
    #17172a;
}

.kitchen {
  grid-area: kitchen;
  background:
    linear-gradient(120deg, rgba(255, 113, 92, 0.18), transparent 58%),
    #251a17;
}

.bath {
  grid-area: bath;
  background:
    linear-gradient(120deg, rgba(120, 200, 238, 0.18), transparent 58%),
    #10202a;
}

.living i {
  position: absolute;
  right: 18%;
  bottom: 18%;
  width: 45%;
  height: 9px;
  border-radius: 999px;
  background: rgba(85, 208, 170, 0.48);
}

.risk {
  position: absolute;
  z-index: 3;
  width: 84px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 5px solid var(--ink);
  background: #07110e;
  box-shadow:
    0 0 0 13px rgba(255, 113, 92, 0.22),
    0 20px 34px rgba(0, 0, 0, 0.32);
  font-size: 0.86rem;
  text-align: center;
}

.risk-bath {
  left: 84%;
  top: 73%;
  background: var(--coral);
}

.risk-bed {
  left: 22%;
  top: 73%;
}

.risk-kitchen {
  left: 55%;
  top: 73%;
}

.risk-door {
  left: 84%;
  top: 27%;
}

.floor-note {
  align-self: end;
  border-left: 6px solid var(--teal);
  background: var(--panel);
  padding: 26px;
  box-shadow: var(--shadow);
}

.floor-note span {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 950;
}

.floor-note strong {
  display: block;
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
  line-height: 1.15;
}

.day-slide {
  background:
    linear-gradient(90deg, rgba(120, 200, 238, 0.08), transparent 58%),
    #07110e;
}

.day-rail {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 28px;
}

.day-rail::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--coral), var(--teal));
  content: "";
}

.time-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.time-card span {
  color: var(--amber);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 950;
}

.time-card strong {
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1.2;
}

.burden-slide {
  background:
    linear-gradient(90deg, rgba(156, 131, 244, 0.12), transparent 56%),
    #07110e;
}

.burden-map {
  position: relative;
  min-height: 600px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(243, 248, 242, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(243, 248, 242, 0.06) 1px, transparent 1px),
    var(--panel);
  background-size: 58px 58px;
  box-shadow: var(--shadow);
}

.load {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 950;
  text-align: center;
}

.core {
  left: 50%;
  top: 50%;
  width: 210px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--coral);
  box-shadow: 0 0 0 26px rgba(255, 113, 92, 0.18);
  font-size: 2rem;
}

.alone,
.stairs,
.chronic,
.load-clinic,
.load-app {
  width: 142px;
  aspect-ratio: 1;
  background: rgba(243, 248, 242, 0.08);
  border: 2px solid rgba(243, 248, 242, 0.26);
}

.alone {
  left: 10%;
  top: 15%;
  background: rgba(255, 209, 102, 0.22);
}

.stairs {
  right: 12%;
  top: 13%;
  background: rgba(120, 200, 238, 0.2);
}

.chronic {
  right: 8%;
  bottom: 18%;
  background: rgba(156, 131, 244, 0.22);
}

.load-clinic {
  left: 13%;
  bottom: 15%;
  background: rgba(85, 208, 170, 0.2);
}

.load-app {
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  background: rgba(255, 113, 92, 0.18);
}

.care-network {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(243, 248, 242, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(243, 248, 242, 0.08) 1px, transparent 1px),
    #0e211c;
  background-size: 56px 56px;
  box-shadow: var(--shadow);
}

.care-network::before {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(243, 248, 242, 0.12);
  border-radius: 32px;
  background: linear-gradient(90deg, transparent, rgba(85, 208, 170, 0.1), transparent);
  content: "";
}

.care-network::after {
  position: absolute;
  left: 11%;
  right: 10%;
  bottom: 13%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), rgba(255, 113, 92, 0.12));
  content: "";
}

.network-house {
  position: absolute;
  right: 12%;
  bottom: 13%;
  z-index: 3;
  width: min(330px, 42%);
  height: 55%;
  border: 7px solid rgba(243, 248, 242, 0.34);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.06);
}

.roof {
  position: absolute;
  top: -46px;
  left: -9%;
  width: 118%;
  height: 74px;
  clip-path: polygon(50% 0, 100% 78%, 0 78%);
  background: rgba(243, 248, 242, 0.34);
}

.window,
.door {
  position: absolute;
  border: 5px solid rgba(243, 248, 242, 0.34);
  border-radius: 8px;
  background: rgba(7, 17, 14, 0.42);
}

.window {
  top: 26%;
  width: 20%;
  height: 18%;
}

.one {
  left: 15%;
}

.two {
  right: 15%;
}

.door {
  right: 14%;
  bottom: 0;
  width: 24%;
  height: 37%;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.rail,
.ramp,
.link {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.rail {
  left: 15%;
  bottom: 35%;
  width: 48%;
  height: 8px;
  background: rgba(85, 208, 170, 0.62);
}

.ramp {
  right: 22%;
  bottom: 5%;
  width: 58%;
  height: 8px;
  background: var(--coral);
  transform: rotate(-8deg);
  transform-origin: right center;
}

.link {
  z-index: 1;
  height: 6px;
  background: rgba(243, 248, 242, 0.28);
  transform-origin: left center;
}

.clinic-link {
  left: 27%;
  top: 26%;
  width: 43%;
  transform: rotate(16deg);
}

.shop-link {
  left: 39%;
  bottom: 29%;
  width: 30%;
  transform: rotate(-8deg);
}

.community-link {
  left: 27%;
  bottom: 47%;
  width: 39%;
  transform: rotate(33deg);
}

.node {
  position: absolute;
  z-index: 4;
  min-width: 104px;
  min-height: 48px;
  border: 2px solid rgba(243, 248, 242, 0.72);
  background: rgba(7, 17, 14, 0.9);
  box-shadow:
    0 0 0 10px rgba(243, 248, 242, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.26);
  font-size: 0.9rem;
}

.home {
  right: 19%;
  bottom: 46%;
  background: var(--teal);
}

.clinic {
  left: 14%;
  top: 20%;
}

.shop {
  left: 33%;
  bottom: 25%;
  background: #17132a;
}

.community {
  left: 17%;
  bottom: 43%;
  background: #23150f;
}

.closing-slide {
  background:
    linear-gradient(180deg, rgba(255, 113, 92, 0.14), transparent 42%),
    #07110e;
}

.closing-grid {
  display: grid;
  align-content: center;
}

.closing-grid h2 {
  max-width: 1120px;
}

.closing-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 58px;
  color: var(--teal);
  font-size: clamp(1.3rem, 2vw, 2.15rem);
  font-weight: 950;
}

.closing-line i {
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

.slide > * {
  opacity: 0.62;
  transform: translateY(14px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.slide.is-active > * {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .slide-inner {
    width: min(940px, calc(100% - 44px));
  }

  .hero-grid,
  .stat-grid,
  .floor-grid,
  .network-grid,
  .day-grid,
  .burden-grid,
  .split-photo-slide {
    grid-template-columns: 1fr;
  }

  .split-photo-slide {
    display: block;
  }

  .photo-panel {
    position: absolute;
    inset: 0;
    opacity: 0.35;
  }

  .split-copy {
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .exhibit-nav {
    width: calc(100% - 20px);
    min-height: 54px;
    top: 10px;
    border-radius: 8px;
  }

  .progress-dots button {
    width: 8px;
    height: 8px;
  }

  .progress-dots button.is-active {
    width: 22px;
  }

  .slide-inner {
    width: calc(100% - 32px);
    padding: 92px 0 32px;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.3rem, 10vw, 3.8rem);
  }

  .stat-stage {
    grid-template-columns: 1fr;
  }

  .stat-tile,
  .floor-plan,
  .burden-map,
  .care-network {
    min-height: 430px;
  }
}

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