:root {
  --navy: #061a31;
  --ink: #0b203a;
  --blue: #123d66;
  --teal: #2d8f9d;
  --copper: #c98b43;
  --gold: #efc879;
  --ivory: #f7efe2;
  --paper: #fffaf2;
  --mist: rgba(255, 255, 255, 0.72);
  --line: rgba(239, 200, 121, 0.42);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  font-family: "Kanit", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(45, 143, 157, 0.24), transparent 28%),
    linear-gradient(135deg, #04101e, #0b2b47 52%, #15110f);
}

.deck {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  position: relative;
  background: var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(32px) scale(0.985);
  transition: opacity 340ms ease, transform 340ms ease;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(6, 26, 49, 0.96), rgba(13, 47, 79, 0.92)),
    var(--navy);
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.slide-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 4.6rem 5rem 4.8rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 14, 28, 0.92) 0%, rgba(6, 20, 37, 0.72) 43%, rgba(6, 20, 37, 0.18) 100%),
    url("ภาพรวมกระบวนการพัฒนาคอนโด.png") center / cover no-repeat;
  filter: saturate(1.04);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 68%;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: clamp(0.78rem, 1.05vw, 1.15rem);
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.6rem;
  color: #ffd994;
  font-family: "Kanit", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2.45rem, 4.2vw, 5.15rem);
  line-height: 0.98;
  font-weight: 800;
  white-space: nowrap;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.75rem, 3.2vw, 3.7rem);
  line-height: 1.15;
}

h3 {
  color: var(--gold);
  font-size: clamp(1.05rem, 1.35vw, 1.55rem);
}

.lede {
  max-width: 56rem;
  color: rgba(255, 250, 242, 0.9);
  font-size: clamp(1.08rem, 1.55vw, 1.72rem);
  line-height: 1.58;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

@media (max-height: 650px) and (min-width: 901px) {
  .slide-shell {
    padding: 2.15rem 4.7rem 3.2rem;
  }

  .hero-content {
    max-width: 66%;
    justify-content: flex-start;
    padding-top: 0.35rem;
  }

  h1 {
    font-size: clamp(2rem, 3.25vw, 3.25rem);
    margin-bottom: 0.35rem;
  }

  .slide-hero h2 {
    max-width: 35rem;
    margin-bottom: 0.5rem;
    font-size: clamp(1.35rem, 2.2vw, 2.25rem);
    line-height: 1.18;
  }

  .lede {
    max-width: 43rem;
    font-size: clamp(0.9rem, 1.28vw, 1.18rem);
    line-height: 1.45;
  }

  .hero-grid {
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .hero-grid article {
    min-height: 7.9rem;
    padding: 0.82rem 0.9rem;
  }

  .hero-grid strong {
    margin: 0.22rem 0;
    font-size: clamp(0.9rem, 1.05vw, 1.08rem);
  }

  .hero-grid p {
    margin-bottom: 0;
    font-size: clamp(0.8rem, 0.92vw, 0.96rem);
    line-height: 1.36;
  }
}

.hero-grid article,
.content-grid article,
.timeline-card,
.driver-table {
  border: 1px solid rgba(239, 200, 121, 0.26);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.08);
  backdrop-filter: blur(12px);
}

.hero-grid article {
  min-height: 11rem;
  padding: 1.1rem;
}

.hero-grid span {
  color: var(--copper);
  font-weight: 800;
}

.hero-grid strong {
  display: block;
  margin: 0.45rem 0;
  font-size: clamp(1.03rem, 1.2vw, 1.35rem);
}

.hero-grid p,
.content-grid p,
.section-head p {
  color: rgba(255, 250, 242, 0.82);
  line-height: 1.55;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  column-gap: 2rem;
  align-items: end;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
}

.section-head h2 {
  margin-bottom: 0;
}

.map-stage {
  height: 66%;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #071a2e;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.map-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.phase-strip span {
  min-height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(239, 200, 121, 0.18), rgba(45, 143, 157, 0.18));
  border: 1px solid rgba(255, 250, 242, 0.18);
  font-weight: 800;
  text-align: center;
}

.phase-layout {
  display: grid;
  grid-template-columns: 31% 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.phase-card {
  padding: 2rem;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(201, 139, 67, 0.2), rgba(45, 143, 157, 0.12)),
    rgba(255, 250, 242, 0.08);
  border: 1px solid var(--line);
}

.phase-no {
  display: grid;
  place-items: center;
  width: 5.2rem;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  border-radius: 50%;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-size: 2.6rem;
  font-weight: 800;
}

.phase-card h2 {
  font-size: clamp(1.8rem, 2.65vw, 3.15rem);
}

.phase-card p:last-child {
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1rem, 1.18vw, 1.32rem);
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 1rem;
}

.content-grid article {
  padding: 1.45rem;
}

.content-grid .wide {
  grid-column: 1 / -1;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(1.02rem, 1.14vw, 1.3rem);
  line-height: 1.7;
}

li::marker {
  color: var(--copper);
}

.question-row,
.signal-grid {
  display: grid;
  gap: 0.7rem;
}

.question-row {
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.question-row span,
.signal-grid span,
.journey span {
  min-height: 3.4rem;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  border-radius: 8px;
  text-align: center;
  line-height: 1.38;
  font-weight: 800;
  color: var(--ink);
  background: var(--ivory);
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card strong {
  color: var(--gold);
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 1;
}

.metric-card p {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
}

.timeline-card p {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.22vw, 1.42rem);
}

.journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.05rem;
  margin: 2rem 0 1.35rem;
}

.journey span {
  position: relative;
  background: linear-gradient(135deg, var(--ivory), #f2c988);
}

.journey span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.05rem;
  width: 1.05rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.58);
}

.journey span:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.16rem;
  width: 0.52rem;
  height: 0.52rem;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(239, 200, 121, 0.7));
}

.driver-table {
  overflow: hidden;
  color: var(--paper);
}

.driver-table > div {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.35fr;
}

.driver-table span {
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(255, 250, 242, 0.13);
}

.driver-table span:first-child {
  color: var(--gold);
  font-weight: 800;
}

.driver-table .table-head {
  background: rgba(201, 139, 67, 0.28);
  font-weight: 900;
}

.driver-table .table-head span {
  color: var(--paper);
}

.closing-line {
  margin: 1rem 0 0;
  color: var(--gold);
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  font-weight: 800;
  text-align: center;
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transform: translateX(-50%);
  color: var(--paper);
}

.nav-btn {
  width: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(6, 26, 49, 0.78);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.slide-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 13rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: 999px;
  background: rgba(6, 26, 49, 0.78);
  font-weight: 800;
}

.progress {
  flex: 1;
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.22);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 260ms ease;
}

.dots {
  position: fixed;
  right: 1.3rem;
  top: 50%;
  z-index: 4;
  display: grid;
  gap: 0.55rem;
  transform: translateY(-50%);
}

.dots button {
  width: 0.72rem;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.18);
  cursor: pointer;
}

.dots button.is-active {
  background: var(--gold);
}

@media (max-width: 900px), (max-aspect-ratio: 4 / 3) {
  body {
    overflow: auto;
    place-items: start center;
  }

  .deck {
    width: 100vw;
    min-height: 100vh;
    height: auto;
    aspect-ratio: auto;
  }

  .slide {
    position: relative;
    display: none;
    min-height: 100vh;
    transform: none;
  }

  .slide.is-active {
    display: block;
  }

  .slide-shell {
    padding: 3rem 1.2rem 6.8rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-grid,
  .section-head,
  .phase-layout,
  .content-grid,
  .question-row,
  .signal-grid,
  .journey,
  .phase-strip,
  .driver-table > div {
    grid-template-columns: 1fr;
  }

  .map-stage {
    height: auto;
  }

  .map-stage img {
    height: auto;
  }

  .dots {
    display: none;
  }

  .journey span::before,
  .journey span::after {
    display: none;
  }
}

/* Futuristic refinement layer */
:root {
  --cyan: #6ee7ff;
  --violet: #8a8cff;
  --glass: rgba(7, 24, 43, 0.56);
}

body {
  font-weight: 300;
  background:
    linear-gradient(115deg, rgba(6, 231, 255, 0.12), transparent 32%),
    linear-gradient(245deg, rgba(138, 140, 255, 0.16), transparent 34%),
    #04101e;
}

.deck::before,
.deck::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.deck::before {
  background:
    linear-gradient(rgba(110, 231, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.deck::after {
  background: linear-gradient(115deg, transparent 0 42%, rgba(110, 231, 255, 0.12) 49%, transparent 56% 100%);
  transform: translateX(-100%);
  animation: scanBeam 8s ease-in-out infinite;
}

.slide {
  z-index: 1;
  background:
    radial-gradient(circle at 84% 18%, rgba(110, 231, 255, 0.16), transparent 28%),
    linear-gradient(130deg, rgba(4, 14, 28, 0.96), rgba(10, 38, 62, 0.91));
}

.slide.is-active .eyebrow,
.slide.is-active h1,
.slide.is-active h2,
.slide.is-active .lede,
.slide.is-active .hero-grid article,
.slide.is-active .content-grid article,
.slide.is-active .lens-grid article,
.slide.is-active .driver-table,
.slide.is-active .journey span {
  animation: floatIn 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.slide.is-active .hero-grid article:nth-child(2),
.slide.is-active .content-grid article:nth-child(2),
.slide.is-active .lens-grid article:nth-child(2) {
  animation-delay: 90ms;
}

.slide.is-active .hero-grid article:nth-child(3),
.slide.is-active .content-grid article:nth-child(3),
.slide.is-active .lens-grid article:nth-child(3) {
  animation-delay: 160ms;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(4, 14, 28, 0.86) 0%, rgba(6, 20, 37, 0.64) 40%, rgba(6, 20, 37, 0.1) 100%),
    url("ภาพรวมกระบวนการพัฒนาคอนโด.png") center / cover no-repeat;
}

.hero-content {
  max-width: 72%;
}

.eyebrow {
  color: var(--cyan);
  font-size: clamp(0.72rem, 0.9vw, 1rem);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  color: #f4d58a;
  font-size: clamp(2.25rem, 3.75vw, 4.6rem);
  font-weight: 600;
  line-height: 1.04;
  text-shadow: 0 0 28px rgba(244, 213, 138, 0.25);
}

h2 {
  font-size: clamp(1.45rem, 2.45vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

h3 {
  color: var(--cyan);
  font-weight: 500;
}

p,
li,
.driver-table span {
  font-weight: 300;
}

.lede,
.phase-card p:last-child,
.timeline-card p,
.section-head p {
  text-wrap: pretty;
}

.hero-grid article,
.content-grid article,
.timeline-card,
.driver-table,
.phase-card,
.phase-strip span,
.slide-status,
.nav-btn {
  border-color: rgba(110, 231, 255, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(110, 231, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero-grid article,
.content-grid article,
.lens-grid article {
  position: relative;
  overflow: hidden;
}

.hero-grid article::before,
.content-grid article::before,
.lens-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(110, 231, 255, 0.45);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid span {
  color: var(--cyan);
  font-weight: 500;
}

.hero-grid strong,
.phase-strip span,
.question-row span,
.signal-grid span,
.journey span,
.driver-table span:first-child,
.closing-line {
  font-weight: 500;
}

.slide-overall .slide-shell {
  padding: 0;
}

.slide-overall .section-head,
.slide-overall .phase-strip {
  position: absolute;
  z-index: 2;
}

.slide-overall .section-head {
  left: 2.4rem;
  right: 2.4rem;
  top: 1.45rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 13, 25, 0.58);
  backdrop-filter: blur(16px);
}

.slide-overall .section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.65vw, 2rem);
  white-space: nowrap;
}

.slide-overall .section-head p:last-child {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(0.76rem, 0.92vw, 1rem);
  line-height: 1.42;
}

.slide-overall .map-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #020a14;
}

.slide-overall .map-stage img {
  object-fit: cover;
  object-position: center;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.slide-overall .phase-strip {
  left: 2.4rem;
  right: 2.4rem;
  bottom: 1.35rem;
}

.slide-overall .phase-strip span {
  min-height: 2.7rem;
  font-size: clamp(0.76rem, 0.88vw, 0.98rem);
  background: rgba(3, 13, 25, 0.68);
  backdrop-filter: blur(14px);
}

.overview-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 13, 25, 0.92), rgba(3, 13, 25, 0.5)),
    url("ภาพรวมกระบวนการพัฒนาคอนโด.png") center bottom / cover no-repeat;
  transform: scale(1.08);
  filter: saturate(1.08);
}

.overview-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.lens-grid article {
  min-height: 12rem;
  padding: 1.25rem;
  border: 1px solid rgba(110, 231, 255, 0.24);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.lens-grid span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--cyan);
  font-size: clamp(1rem, 1.25vw, 1.42rem);
  font-weight: 500;
}

.lens-grid p {
  margin: 0;
  color: rgba(255, 250, 242, 0.84);
  line-height: 1.62;
}

.phase-no {
  width: 4rem;
  border-color: rgba(110, 231, 255, 0.64);
  color: var(--cyan);
  font-size: 1.9rem;
  font-weight: 400;
  box-shadow: 0 0 32px rgba(110, 231, 255, 0.14);
}

.phase-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.6rem);
  font-weight: 500;
  text-wrap: balance;
}

ul {
  font-size: clamp(0.94rem, 1.03vw, 1.16rem);
}

.metric-card strong {
  color: var(--cyan);
  font-size: clamp(2rem, 3.2vw, 3.65rem);
  font-weight: 400;
}

.question-row span,
.signal-grid span,
.journey span {
  color: var(--paper);
  background: rgba(110, 231, 255, 0.12);
  border: 1px solid rgba(110, 231, 255, 0.22);
}

.journey span {
  min-height: 4.15rem;
  padding-inline: 0.9rem;
  background: linear-gradient(145deg, rgba(110, 231, 255, 0.14), rgba(7, 24, 43, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.journey span:not(:last-child)::after {
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.35), var(--gold));
}

.controls {
  bottom: 0.8rem;
}

.nav-btn {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 255, 0.65);
  background: rgba(110, 231, 255, 0.16);
}

.controls {
  transition: opacity 260ms ease, transform 260ms ease;
}

.controls.is-hidden {
  opacity: 0;
  transform: translate(-50%, 1.6rem);
  pointer-events: none;
}

.dots button {
  width: 0.62rem;
  border-color: rgba(110, 231, 255, 0.5);
}

.dots button.is-active {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(110, 231, 255, 0.85);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanBeam {
  0%, 35% {
    transform: translateX(-110%);
  }

  62%, 100% {
    transform: translateX(110%);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

@media (max-height: 650px) and (min-width: 901px) {
  .hero-content {
    max-width: 72%;
  }

  h1 {
    font-size: clamp(1.9rem, 3vw, 3rem);
  }

  .slide-hero h2 {
    max-width: 45rem;
    font-size: clamp(1.12rem, 1.74vw, 1.85rem);
  }

  .hero-grid article {
    min-height: 6.8rem;
  }

  .slide-overall .section-head {
    top: 0.8rem;
  }

  .slide-overall .phase-strip {
    bottom: 0.8rem;
  }

  .phase-no {
    width: 3.2rem;
    font-size: 1.45rem;
    margin-bottom: 1rem;
  }

  .phase-card h2 {
    font-size: clamp(1.2rem, 1.78vw, 1.8rem);
  }
}

@media (max-width: 900px), (max-aspect-ratio: 4 / 3) {
  h1 {
    white-space: normal;
  }

  .slide-overall .section-head,
  .slide-overall .phase-strip {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 1rem;
  }

  .slide-overall .slide-shell {
    min-height: 100vh;
    padding: 0;
  }

  .slide-overall .map-stage {
    height: 68vh;
  }

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

/* Opening slide background: animated atom network, no text-bearing image behind copy */
.slide-hero .hero-bg {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(110, 231, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(138, 140, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #030b16 0%, #071c31 52%, #04101f 100%);
}

.slide-hero .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(110, 231, 255, 0.36) 0 1px, transparent 2px);
  background-position: 0 0, 22px 18px;
  background-size: 52px 52px, 86px 86px;
  opacity: 0.22;
  animation: starDrift 28s linear infinite;
}

.slide-hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, 0.12), transparent 38%, rgba(3, 11, 22, 0.35)),
    radial-gradient(circle at 50% 110%, rgba(244, 213, 138, 0.12), transparent 44%);
}

#atomCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
}

.slide-hero .hero-content {
  max-width: 78%;
  justify-content: center;
}

.slide-hero h1 {
  font-size: clamp(2.2rem, 3.55vw, 4.35rem);
  font-weight: 600;
}

.slide-hero h2 {
  max-width: 62rem;
  font-size: clamp(1.32rem, 2.15vw, 2.55rem);
  font-weight: 500;
  white-space: nowrap;
}

.slide-hero .lede {
  max-width: 72rem;
  font-size: clamp(0.98rem, 1.18vw, 1.32rem);
  line-height: 1.58;
}

.slide-hero .hero-grid {
  max-width: 68rem;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.slide-hero .hero-grid article {
  min-height: 9.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(145deg, rgba(8, 31, 52, 0.72), rgba(110, 231, 255, 0.08));
}

.slide-hero .hero-grid strong {
  font-size: clamp(0.95rem, 1.05vw, 1.18rem);
  font-weight: 500;
}

.slide-hero .hero-grid p {
  margin-bottom: 0;
  font-size: clamp(0.84rem, 0.95vw, 1rem);
  line-height: 1.5;
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-86px, 52px, 0);
  }
}

@media (max-height: 650px) and (min-width: 901px) {
  .slide-hero .hero-content {
    max-width: 82%;
  }

  .slide-hero h1 {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
  }

  .slide-hero h2 {
    max-width: 52rem;
    font-size: clamp(1.08rem, 1.55vw, 1.65rem);
  }

  .slide-hero .lede {
    max-width: 58rem;
    font-size: clamp(0.78rem, 1vw, 0.98rem);
    line-height: 1.42;
  }

  .slide-hero .hero-grid {
    max-width: 56rem;
    margin-top: 0.85rem;
  }

  .slide-hero .hero-grid article {
    min-height: 6.4rem;
    padding: 0.7rem 0.82rem;
  }
}

/* Slides 3-8 share the opening-slide atmosphere with a quiet overall-map watermark */
.slide-overview-lens,
.phase-slide,
.driver-slide {
  background:
    radial-gradient(circle at 18% 18%, rgba(110, 231, 255, 0.2), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(138, 140, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #030b16 0%, #071c31 52%, #04101f 100%);
}

.slide-overview-lens::before,
.phase-slide::before,
.driver-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(110, 231, 255, 0.3) 0 1px, transparent 2px);
  background-position: 0 0, 22px 18px;
  background-size: 52px 52px, 86px 86px;
  opacity: 0.16;
  animation: starDrift 30s linear infinite;
  pointer-events: none;
}

.slide-overview-lens::after,
.phase-slide::after,
.driver-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, 0.9) 0%, rgba(3, 11, 22, 0.68) 46%, rgba(3, 11, 22, 0.86) 100%),
    url("ภาพรวมกระบวนการพัฒนาคอนโด.png") center / cover no-repeat;
  opacity: 0.2;
  filter: saturate(0.9) contrast(1.04);
  pointer-events: none;
}

.slide-overview-lens .slide-shell,
.phase-slide .slide-shell,
.driver-slide .slide-shell {
  position: relative;
  z-index: 1;
}

.slide-overview-lens .overview-bg {
  display: none;
}

.phase-card,
.content-grid article,
.timeline-card,
.driver-table,
.lens-grid article {
  background: linear-gradient(145deg, rgba(7, 24, 43, 0.78), rgba(110, 231, 255, 0.075));
  backdrop-filter: blur(18px);
}

.driver-slide .section-head,
.slide-overview-lens .section-head {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 13, 25, 0.52);
  backdrop-filter: blur(16px);
}

.phase-slide h2,
.driver-slide h2,
.slide-overview-lens h2 {
  text-shadow: 0 0 28px rgba(3, 11, 22, 0.55);
}

/* Hard override: make slides 3-8 use the same atom background system as slide 1 */
.deck > .slide:nth-of-type(3),
.deck > .slide:nth-of-type(4),
.deck > .slide:nth-of-type(5),
.deck > .slide:nth-of-type(6),
.deck > .slide:nth-of-type(7),
.deck > .slide:nth-of-type(8) {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(110, 231, 255, 0.2), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(138, 140, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #030b16 0%, #071c31 52%, #04101f 100%) !important;
}

.deck > .slide:nth-of-type(3)::before,
.deck > .slide:nth-of-type(4)::before,
.deck > .slide:nth-of-type(5)::before,
.deck > .slide:nth-of-type(6)::before,
.deck > .slide:nth-of-type(7)::before,
.deck > .slide:nth-of-type(8)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(110, 231, 255, 0.32) 0 1px, transparent 2px);
  background-position: 0 0, 22px 18px;
  background-size: 52px 52px, 86px 86px;
  opacity: 0.16;
  animation: starDrift 30s linear infinite;
  pointer-events: none;
}

.deck > .slide:nth-of-type(3)::after,
.deck > .slide:nth-of-type(4)::after,
.deck > .slide:nth-of-type(5)::after,
.deck > .slide:nth-of-type(6)::after,
.deck > .slide:nth-of-type(7)::after,
.deck > .slide:nth-of-type(8)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, 0.92) 0%, rgba(3, 11, 22, 0.68) 52%, rgba(3, 11, 22, 0.9) 100%),
    url("ภาพรวมกระบวนการพัฒนาคอนโด.png") center / cover no-repeat;
  opacity: 0.14;
  filter: saturate(0.85) contrast(1.05);
  pointer-events: none;
}

.atom-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.44;
  pointer-events: none;
}

.deck > .slide:nth-of-type(3) > .slide-shell,
.deck > .slide:nth-of-type(4) > .slide-shell,
.deck > .slide:nth-of-type(5) > .slide-shell,
.deck > .slide:nth-of-type(6) > .slide-shell,
.deck > .slide:nth-of-type(7) > .slide-shell,
.deck > .slide:nth-of-type(8) > .slide-shell {
  position: relative;
  z-index: 2;
}

.deck > .slide:nth-of-type(3) .overview-bg {
  display: none !important;
}

.accent-red {
  color: rgba(255, 250, 242, 0.88);
  font-weight: 500;
}

.considerations-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.considerations-panel h3 {
  margin-bottom: 0.2rem;
}

.metric-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 0;
}

.metric-tile {
  min-height: 10.2rem;
  padding: 1.35rem;
  border: 1px solid rgba(110, 231, 255, 0.24);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.07);
}

.metric-tile strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--cyan);
  font-size: clamp(2rem, 3.15vw, 3.55rem);
  font-weight: 400;
  line-height: 1;
}

.metric-tile p {
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.84);
  font-size: clamp(0.92rem, 1.08vw, 1.22rem);
  line-height: 1.55;
}

@media (max-height: 650px) and (min-width: 901px) {
  .considerations-panel {
    gap: 0.7rem;
  }

  .metric-tile {
    min-height: 7.4rem;
    padding: 0.9rem;
  }

  .metric-tile strong {
    font-size: clamp(1.45rem, 2.35vw, 2.3rem);
  }

  .metric-tile p {
    font-size: clamp(0.76rem, 0.9vw, 0.94rem);
    line-height: 1.38;
  }
}

/* Phase title hierarchy: English = Head, Thai = Subhead, description = Body */
.phase-card .eyebrow {
  margin-bottom: 1.05rem;
  color: var(--cyan);
  font-size: clamp(1.12rem, 1.45vw, 1.72rem);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 2vw, 2.25rem) !important;
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}

.phase-card p:last-child {
  font-size: clamp(0.92rem, 1.02vw, 1.16rem) !important;
  font-weight: 300;
  line-height: 1.62;
}

.phase-no {
  margin-bottom: 2.6rem;
}

@media (max-height: 650px) and (min-width: 901px) {
  .phase-card .eyebrow {
    margin-bottom: 0.72rem;
    font-size: clamp(1rem, 1.35vw, 1.45rem);
  }

  .phase-card h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.08rem, 1.48vw, 1.45rem) !important;
    line-height: 1.18;
  }

  .phase-card p:last-child {
    font-size: clamp(0.76rem, 0.9vw, 0.92rem) !important;
    line-height: 1.45;
  }
}

/* Overall slide must be an unobstructed full-screen image */
.slide-overall .section-head,
.slide-overall .phase-strip {
  display: none !important;
}

.slide-overall .map-stage {
  height: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
}

.slide-overall .map-stage img {
  object-fit: contain !important;
  object-position: center !important;
  animation: none !important;
}

body[data-slide="2"] .controls {
  opacity: 1;
  pointer-events: auto;
}

body[data-slide="2"] .controls.is-hidden {
  opacity: 0;
  pointer-events: none;
}

body[data-slide="2"] .dots {
  opacity: 1;
  pointer-events: auto;
}

@media print {
  @page {
    size: 16in 9in landscape;
    margin: 0;
  }

  * {
    animation: none !important;
    transition: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: 16in;
    height: auto;
    margin: 0;
    overflow: visible !important;
    background: #030b16 !important;
    font-family: Tahoma, "Leelawadee UI", "Segoe UI", sans-serif !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body *,
  h1,
  h2,
  h3,
  p,
  li,
  span,
  strong {
    font-family: Tahoma, "Leelawadee UI", "Segoe UI", sans-serif !important;
  }

  .deck {
    width: 16in;
    height: auto;
    overflow: visible;
    box-shadow: none;
    background: #030b16 !important;
  }

  .deck::before,
  .deck::after,
  .controls,
  .dots,
  canvas {
    display: none !important;
  }

  .slide {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 16in;
    height: 9in;
    page-break-after: always;
    break-after: page;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 18% 18%, rgba(110, 231, 255, 0.2), transparent 28%),
      radial-gradient(circle at 78% 26%, rgba(138, 140, 255, 0.16), transparent 32%),
      linear-gradient(135deg, #030b16 0%, #071c31 52%, #04101f 100%) !important;
    box-shadow: inset 0 0 0 100vmax #030b16 !important;
  }

  .slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .slide-shell {
    height: 100%;
  }

  .slide-hero .hero-bg,
  .slide-overall .map-stage,
  .hero-grid article,
  .content-grid article,
  .phase-card,
  .timeline-card,
  .driver-table,
  .lens-grid article,
  .metric-tile {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slide-overall .map-stage img {
    object-fit: contain !important;
  }
}

body.print-mode {
  overflow: auto !important;
}

body.print-mode .deck {
  width: 100vw;
  height: auto;
  overflow: visible;
}

body.print-mode .slide {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100vw;
  height: calc(100vw * 9 / 16);
  min-height: 0;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.print-mode .controls,
body.print-mode .dots,
body.print-mode canvas {
  display: none !important;
}

/* Slides 3-8: remove all image watermark, keep only stars and atom network */
.slide-overview-lens::after,
.phase-slide::after,
.driver-slide::after,
.deck > .slide:nth-of-type(3)::after,
.deck > .slide:nth-of-type(4)::after,
.deck > .slide:nth-of-type(5)::after,
.deck > .slide:nth-of-type(6)::after,
.deck > .slide:nth-of-type(7)::after,
.deck > .slide:nth-of-type(8)::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
