/* Click Camp 17
   The design PDF uses Dumondi (Latin display) and Anantason (Thai). Neither is on Google Fonts,
   so Unbounded and Prompt stand in. To use the real fonts, add @font-face rules and change the
   two --font-* variables below. */

:root {
  --purple-900: #2a0f63;
  --purple-800: #3d1a85;
  --purple-600: #6b45a3;
  --purple-500: #7d57b0;
  --purple-300: #bb91e2;
  --lilac-200: #e4cdf8;
  --paper: #faf7fb;
  --ink: #6c489c;
  --rock-dark: #5a3508;

  --font-display: "Unbounded", "Prompt", system-ui, sans-serif;
  --font-body: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: clamp(72px, 6.4vw, 98px);
  --nav-top: clamp(10px, 2vw, 26px);
  --gutter: clamp(16px, 4.5vw, 64px);
  --container: 1320px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--purple-600);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--purple-800);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}
.container--narrow { max-width: 1120px; }

/* ───────── Nav ───────── */

.nav {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  width: min(1420px, calc(100% - 2 * var(--gutter)));
  height: var(--nav-h);
  padding: 0 clamp(18px, 3vw, 46px);
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 30px rgba(34, 8, 84, .22);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transform: translateX(-50%);
  transition: background-color .3s;
}
/* Over the white cards further down, the glass needs a tint to keep the white links readable. */
.nav.is-scrolled { background-color: rgba(84, 46, 150, .62); }

.nav__logo {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: clamp(112px, 11.4vw, 172px);
  filter: drop-shadow(0 3px 6px rgba(30, 5, 70, .35));
  transition: transform .25s;
}
.nav__logo:hover { transform: rotate(-3deg) scale(1.04); }
.nav__logo-mark { width: 46%; }
.nav__logo-word { width: 100%; }

.nav__menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.6vw, 28px);
}
.nav__menu a {
  position: relative;
  padding: 6px 2px;
  font-weight: 600;
  font-size: clamp(.95rem, 1.42vw, 1.36rem);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(40, 10, 90, .45);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  transform: scaleX(0);
  transition: transform .25s;
}
.nav__menu a:hover::after,
.nav__menu a.is-current::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex: none;
  place-content: center;
  gap: 6px;
  width: 48px; height: 48px;
  margin-left: auto;
  border-radius: 50%;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: #fff;
  transition: transform .25s, opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav__profile {
  flex: none;
  display: grid;
  justify-items: center;
  line-height: 1.15;
  font-weight: 700;
  font-size: .78rem;
  text-decoration: none;
}
.nav__profile img {
  width: 46px; height: 46px;
  margin-bottom: 2px;
  padding: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  object-fit: contain;
}

@media (max-width: 1023px) {
  :root { --nav-h: 68px; }
  .nav__logo { width: 112px; }

  .nav__toggle { display: grid; order: 3; }
  .nav__profile { order: 2; margin-left: auto; font-size: .7rem; line-height: 1.1; }
  .nav__profile img { width: 36px; height: 36px; margin-bottom: 1px; padding: 3px; }
  .nav--member .nav__toggle { margin-left: 0; }

  .nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 14px;
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 26px;
    background: rgba(70, 34, 138, .93);
    box-shadow: 0 18px 40px rgba(24, 4, 66, .45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open .nav__menu {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav__menu a {
    padding: 13px 12px;
    font-size: 1.05rem;
  }
  .nav__menu a + a { border-top: 1px solid rgba(255, 255, 255, .16); }
  .nav__menu a::after { display: none; }
}

/* ───────── Space scene (home + status) ───────── */

.scene {
  --ground-w: max(130vw, 1100px);
  --ground-show: clamp(120px, 14vw, 260px);
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene > img,
.scene__ground { position: absolute; }

@keyframes float {
  50% { translate: 0 -14px; }
}
@keyframes drift {
  50% { translate: 10px -10px; rotate: 6deg; }
}
@keyframes twinkle {
  0%, 100% { opacity: .25; scale: .6; }
  50% { opacity: 1; scale: 1; }
}

.spark {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px #fff);
  animation: twinkle 3.2s ease-in-out var(--d) infinite;
}

.scene__moon {
  top: -3vw; left: -4vw;
  width: clamp(190px, 25vw, 420px);
  opacity: .96;
}
.scene__ship {
  top: 20%; right: -5vw;
  width: clamp(130px, 19vw, 330px);
  rotate: 10deg;
  animation: float 9s ease-in-out infinite;
}
.scene__egg {
  top: 57%; left: 15%;
  width: clamp(44px, 6vw, 104px);
  rotate: -22deg;
  animation: drift 11s ease-in-out infinite;
}
.scene__rock { animation: drift 13s ease-in-out infinite; }
.scene__rock--1 { top: 17%; left: 30%; width: clamp(34px, 4.2vw, 72px); }
.scene__rock--2 { top: 64%; right: 19%; width: clamp(38px, 4.6vw, 80px); animation-delay: -5s; }
.scene__rock--3 { top: 43%; left: 3%; width: clamp(40px, 5vw, 86px); animation-delay: -9s; }

.scene__flyer--ice {
  top: 17%; right: 22%;
  width: clamp(54px, 6.4vw, 110px);
  rotate: -8deg;
  animation: float 6s ease-in-out -2s infinite;
}
.scene__flyer--astro {
  top: 60%; right: 5%;
  width: clamp(60px, 7.5vw, 128px);
  rotate: 12deg;
  animation: float 8s ease-in-out -4s infinite;
}

.scene__cloud {
  bottom: -5vw;
  width: clamp(220px, 27vw, 500px);
}
.scene__cloud--left { left: -3vw; transform: scaleX(-1); }
.scene__cloud--right { right: -3vw; }

/* The ground art is a dome 0.481 times as tall as it is wide; only its top strip shows. */
.scene__ground {
  left: 50%;
  bottom: calc(var(--ground-show) - var(--ground-w) * .481);
  width: var(--ground-w);
  transform: translateX(-50%);
}
.scene__ground-img { width: 100%; }
.scene__walker { position: absolute; }
.scene__walker--red {
  left: 27%; bottom: 89%;
  width: 5.2%;
  rotate: -9deg;
  animation: float 3.6s ease-in-out infinite;
}
.scene__walker--stack {
  left: 68%; bottom: 87%;
  width: 4.2%;
  rotate: 8deg;
}

/* ───────── Home ───────── */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-top) + var(--nav-h) + 40px) var(--gutter) clamp(36px, 8vh, 90px);
  overflow: hidden;
  background: var(--purple-900) url("../assets/img/bg-purple.webp") center / cover no-repeat;
  text-align: center;
}
/* melts the ground into the first section below */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 8vh;
  background: linear-gradient(transparent, var(--purple-600));
  pointer-events: none;
}

.hero__content {
  --title: clamp(2rem, 7.6vw, 8.2rem);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.4vh, 38px);
  width: 100%;
}

.hero__head {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "name num" "tag num";
  justify-content: center;
  align-items: center;
  column-gap: clamp(8px, 1.4vw, 26px);
  text-align: left;
}
.hero__title,
.hero__num {
  font-family: var(--font-display);
  font-weight: 900;
  text-shadow:
    0 0 .1em rgba(255, 255, 255, .95),
    0 0 .32em rgba(226, 180, 255, .95),
    0 0 .8em rgba(172, 92, 255, .8);
}
.hero__title {
  grid-area: name;
  align-self: end;
  font-size: var(--title);
  line-height: 1;
  white-space: nowrap;
}
.hero__num {
  grid-area: num;
  font-size: calc(var(--title) * 1.78);
  line-height: .86;
  letter-spacing: -.04em;
}
.hero__tagline {
  grid-area: tag;
  align-self: start;
  margin-top: .35em;
  font-size: clamp(1rem, 3vw, 3.3rem);
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(40, 5, 100, .6);
}
.hero__date {
  font-size: clamp(1.25rem, 3.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(40, 5, 100, .65);
}

/* Rock button: the art team's brown rock is the whole button face. */
.btn-rock {
  display: inline-grid;
  place-items: center;
  width: clamp(170px, 17vw, 270px);
  aspect-ratio: 640 / 362;
  padding-bottom: .1em;
  background: url("../assets/img/btn-rock.webp") center / 100% 100% no-repeat;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 2.3rem);
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 2px 0 var(--rock-dark), 0 0 14px rgba(50, 24, 0, .7);
  filter: drop-shadow(0 10px 16px rgba(26, 4, 66, .5));
  transition: transform .2s cubic-bezier(.3, 1.6, .6, 1), filter .2s;
}
.btn-rock:hover {
  transform: translateY(-4px) rotate(-2.5deg) scale(1.06);
  filter: drop-shadow(0 16px 20px rgba(26, 4, 66, .55)) brightness(1.08);
}
.btn-rock:active { transform: translateY(1px) scale(.97); }
.btn-rock--sm {
  width: clamp(160px, 16vw, 240px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(.86rem, 1.3vw, 1.24rem);
}

@media (max-width: 700px) {
  .scene {
    --ground-w: 230vw;
    --ground-show: 36vw;
  }
  .scene__moon { width: 62vw; top: -12vw; left: -16vw; opacity: .8; }
  .scene__ship { top: 13%; right: -12vw; width: 44vw; }
  .scene__rock--3 { top: 50%; left: -6vw; width: 26vw; }
  .scene__rock--1 { top: 30%; left: 8%; }
  .scene__rock--2 { top: 70%; right: 8%; }
  .scene__egg { top: 66%; left: 12%; }
  .scene__flyer--ice { top: 29%; right: 38%; }
  .scene__flyer--astro { top: 62%; right: 4%; }
  .scene__cloud { width: 48vw; bottom: -4vw; }
  .scene__walker--red { left: 36%; bottom: 95%; }
  .scene__walker--stack { left: 60%; bottom: 95%; }

  .hero__content { --title: 13vw; }
  .hero__head { grid-template-areas: "name num" "tag tag"; }
  .hero__title span:not(.sr-only) { display: block; }
  .hero__num { font-size: calc(var(--title) * 2.2); line-height: .82; }
  .hero__tagline { margin-top: 1.1em; text-align: center; font-size: 4.3vw; }
  .hero__date { font-size: 5.2vw; }
  .btn-rock:not(.btn-rock--sm) { width: 46vw; font-size: 5.4vw; }
}

/* ───────── Sections ───────── */

.section {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-top) + var(--nav-h) + clamp(28px, 5vh, 60px)) var(--gutter) clamp(48px, 8vh, 96px);
  overflow: hidden;
}
/* The gradients alternate so each section's end colour is the next one's start. */
/* Section heights land on fractional pixels; a 1px overlap hides the hairline between them. */
.section,
.contact { margin-top: -1px; }
.section--a { background: linear-gradient(180deg, var(--purple-600), var(--purple-300)); }
.section--b { background: linear-gradient(180deg, var(--purple-300), var(--purple-600)); }
.section::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  opacity: .2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.3vw, 4.1rem);
  line-height: 1.1;
  text-shadow: 0 3px 18px rgba(52, 16, 110, .35);
}
.display--xl {
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8rem);
  text-align: center;
}
.heading {
  font-weight: 800;
  font-size: clamp(2rem, 6.2vw, 5.6rem);
  line-height: 1.2;
  text-shadow: 0 3px 18px rgba(52, 16, 110, .35);
}

.section__head { margin-bottom: clamp(64px, 9vh, 104px); }
.section__head--left {
  padding-bottom: clamp(14px, 2.2vh, 26px);
  border-bottom: 2px solid rgba(255, 255, 255, .85);
}
.section__head p {
  margin-top: .3em;
  font-size: clamp(1rem, 1.75vw, 1.7rem);
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(52, 16, 110, .4);
}

/* White "moon slab" card */
.slab {
  border-radius: 22px;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 9% 90%, rgba(125, 87, 176, .1) 0 15px, transparent 16px),
    radial-gradient(circle at 91% 12%, rgba(125, 87, 176, .08) 0 10px, transparent 11px),
    radial-gradient(circle at 84% 94%, rgba(125, 87, 176, .06) 0 22px, transparent 23px);
  box-shadow: 0 16px 34px rgba(44, 14, 98, .24), inset 0 -7px 0 rgba(125, 87, 176, .13);
  color: var(--ink);
}

.is-pending { opacity: .62; font-style: italic; }

.deco {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}
.deco--timeline { top: 17%; right: 7%; width: clamp(70px, 9vw, 140px); rotate: 8deg; }
.deco--faq { top: 15%; left: 8%; width: clamp(76px, 10vw, 150px); rotate: -10deg; }
.deco--location { top: 24%; right: 3.5%; width: clamp(70px, 8.5vw, 132px); rotate: 6deg; }

/* Scroll reveal: only hides things when JS is running. */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ───────── เกี่ยวกับค่าย ───────── */

.about::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 190px;
  background:
    radial-gradient(46% 100% at 18% 0, rgba(140, 176, 255, .42), transparent 70%),
    radial-gradient(40% 90% at 78% 0, rgba(255, 150, 232, .34), transparent 70%);
  pointer-events: none;
}
.about .display { font-size: clamp(1.45rem, 3.5vw, 3.4rem); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
.about__text p {
  max-width: 34em;
  margin-top: 1.5em;
  padding-left: clamp(0px, 1.6vw, 26px);
  font-size: clamp(1.02rem, 1.72vw, 1.62rem);
  font-weight: 300;
  line-height: 1.95;
  text-shadow: 0 1px 8px rgba(52, 16, 110, .35);
}
.about__text .about__lead {
  font-weight: 700;
  line-height: 1.8;
}
.about__lead strong {
  font-size: 1.16em;
  font-weight: 800;
  text-shadow: 0 0 .25em #fff, 0 0 .7em rgba(255, 255, 255, .85);
}

.carousel {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.carousel__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  width: 100%;
}
.carousel__frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 9%;
  border: 4px solid rgba(226, 186, 255, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .12), 0 16px 34px rgba(44, 14, 98, .2);
  touch-action: pan-y;
}
.carousel__slide {
  grid-area: 1 / 1;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0;
  scale: .82;
  rotate: -6deg;
  transition: opacity .35s, scale .45s cubic-bezier(.3, 1.5, .6, 1), rotate .45s;
  filter: drop-shadow(0 12px 14px rgba(40, 10, 90, .35));
}
.carousel__slide.is-active { opacity: 1; scale: 1; rotate: 0deg; }

.carousel__arrow {
  display: grid;
  place-items: center;
  width: clamp(42px, 4.6vw, 66px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(228, 205, 248, .88);
  box-shadow: 0 6px 16px rgba(44, 14, 98, .28);
  transition: transform .2s cubic-bezier(.3, 1.6, .6, 1), background-color .2s;
}
.carousel__arrow img { width: 40%; translate: 6% 0; }
.carousel__arrow--prev img { scale: -1 1; translate: -6% 0; }
.carousel__arrow:hover { transform: scale(1.12); background: #fff; }
.carousel__arrow:active { transform: scale(.94); }

.carousel__dots {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.carousel__dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(228, 205, 248, .55);
  transition: background-color .25s, scale .25s;
}
.carousel__dot.is-active { background: #fff; scale: 1.25; }

.carousel__captions {
  display: grid;
  margin-top: 12px;
  text-align: center;
}
.carousel__caption {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.carousel__caption.is-active { opacity: 1; visibility: visible; }
.carousel__caption h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.3;
  text-shadow: 3px 3px 0 rgba(72, 34, 136, .55);
}
.carousel__caption h3.is-thai { font-family: var(--font-body); }
.carousel__caption p {
  max-width: 24em;
  margin: .25em auto 0;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .carousel { max-width: 440px; }
}

/* ───────── คุณสมบัติ ───────── */

.quals {
  --icon: clamp(88px, 8.6vw, 122px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}
.qual {
  padding: 0 clamp(14px, 1.6vw, 26px) clamp(30px, 4.4vw, 62px);
  text-align: center;
}
.qual:nth-child(2) { --reveal-delay: .08s; }
.qual:nth-child(3) { --reveal-delay: .16s; }
.qual:nth-child(4) { --reveal-delay: .24s; }
.qual__icon {
  display: grid;
  place-items: center;
  width: var(--icon);
  aspect-ratio: 1;
  margin: calc(var(--icon) / -2) auto 0;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 8px 18px rgba(44, 14, 98, .25);
  transition: transform .3s cubic-bezier(.3, 1.6, .6, 1);
}
.qual:hover .qual__icon { transform: translateY(-6px) rotate(-6deg); }
.qual__icon img { width: 60%; max-height: 60%; object-fit: contain; }
.qual h3 {
  margin-top: .45em;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.75vw, 2.7rem);
  line-height: 1.35;
  text-shadow: 2px 2px 0 rgba(125, 87, 176, .22);
}
.qual h3.is-latin {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 2.15rem);
  line-height: 1.7;
}
.qual p {
  margin-top: .6em;
  font-size: clamp(.92rem, 1.08vw, 1.04rem);
  line-height: 1.85;
}

@media (max-width: 1000px) {
  .quals { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: calc(var(--icon) / 2 + 22px); }
}
@media (max-width: 520px) {
  .quals { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── กำหนดการ ───────── */

.timeline {
  --node: clamp(78px, 7.6vw, 112px);
  --ring: clamp(7px, .7vw, 10px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(40px, 9vh, 96px);
  text-align: center;
}
.timeline::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 9px);
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 18px;
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 6px 14px rgba(44, 14, 98, .2);
}
.timeline__item { position: relative; padding-inline: 6px; }
.timeline__node {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node);
  aspect-ratio: 1;
  margin-inline: auto;
  border: var(--ring) solid var(--paper);
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 8px 18px rgba(44, 14, 98, .25);
}
.timeline__item h3 {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.45rem);
  line-height: 1.6;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(52, 16, 110, .4);
}
.timeline__item h3 span { display: block; }
.timeline__item time {
  display: block;
  margin-top: clamp(8px, 1.6vh, 18px);
  font-size: clamp(.78rem, 1.08vw, 1.04rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.timeline__item time span { display: block; }

.egg { height: 76%; width: auto; }
.timeline__item .egg { transition: transform .3s; }
.timeline__item:hover .egg { transform: rotate(-8deg) scale(1.06); }

@keyframes wobble {
  0%, 100% { rotate: -9deg; }
  50% { rotate: 9deg; }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
}
@keyframes pop-up {
  from { translate: 0 40%; opacity: 0; }
}

.timeline__item.is-now .timeline__node { animation: pulse-ring 1.8s ease-out infinite; }
.timeline__item.is-now .egg { animation: wobble 1.1s ease-in-out infinite; transform-origin: 50% 85%; }
.timeline__item.is-past h3,
.timeline__item.is-past time { opacity: .72; }

/* Cracked egg: the same egg image twice, clipped along one zigzag. */
.egg-cracked {
  position: relative;
  display: block;
  height: 76%;
  aspect-ratio: 349 / 420;
}
.egg-cracked__half,
.egg-cracked__bird { position: absolute; }
.egg-cracked__half { inset: 0; width: 100%; height: 100%; }
.egg-cracked__half--top {
  clip-path: polygon(0 0, 100% 0, 100% 44%, 86% 52%, 71% 41%, 56% 53%, 41% 41%, 26% 52%, 12% 43%, 0 50%);
  transform: translate(-7%, -9%) rotate(-11deg);
}
.egg-cracked__half--bottom {
  clip-path: polygon(0 50%, 12% 43%, 26% 52%, 41% 41%, 56% 53%, 71% 41%, 86% 52%, 100% 44%, 100% 100%, 0 100%);
}
.egg-cracked--hatched .egg-cracked__half--top { transform: translate(-34%, -40%) rotate(-34deg); }
.egg-cracked__bird {
  left: 6%; top: -16%;
  width: 88%;
  animation: pop-up .6s cubic-bezier(.3, 1.5, .6, 1) both;
}
.egg-cracked .spark { animation-duration: 1.6s; }

@media (max-width: 860px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }
  .timeline::before {
    top: calc(var(--node) / 2);
    bottom: calc(var(--node) / 2);
    left: calc(var(--node) / 2 - 7px);
    right: auto;
    width: 14px;
    height: auto;
  }
  .timeline__item {
    display: grid;
    grid-template-columns: var(--node) minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    padding: 0;
  }
  .timeline__node { grid-row: span 2; }
  .timeline__item h3 { align-self: end; margin: 0; font-size: 1.08rem; line-height: 1.4; }
  .timeline__item h3 span,
  .timeline__item time span { display: inline; }
  .timeline__item time { align-self: start; margin: 2px 0 0; font-size: .86rem; }
}

/* ───────── FAQ ───────── */

.faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vh, 56px) clamp(14px, 1.5vw, 22px);
  margin-top: clamp(48px, 8vh, 84px);
}
.faq__item { position: relative; }
.faq__item:nth-child(3n + 2) { --reveal-delay: .08s; }
.faq__item:nth-child(3n) { --reveal-delay: .16s; }
/* Question tab: a pill cut out of the brown rock texture. */
.faq__q {
  position: absolute;
  top: -24px; left: -10px;
  z-index: 1;
  max-width: calc(100% - 8px);
  padding: 7px 24px 8px;
  border: 2px solid var(--rock-dark);
  border-radius: 999px;
  background: #a3701f url("../assets/img/btn-rock.webp") center / 190% auto;
  box-shadow: 0 6px 12px rgba(44, 14, 98, .28), inset 0 2px 0 rgba(255, 226, 150, .35);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  text-shadow: 0 2px 0 var(--rock-dark), 0 0 8px rgba(50, 24, 0, .6);
}
.faq__a {
  min-height: clamp(150px, 21vh, 210px);
  padding: 40px 26px 26px;
  font-size: clamp(.95rem, 1.1vw, 1.06rem);
  line-height: 1.8;
}

@media (max-width: 1000px) {
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__a { min-height: 120px; }
}

/* ───────── สถานที่ ───────── */

.place {
  display: grid;
  grid-template-columns: clamp(140px, 24%, 250px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(14px, 2vw, 26px);
}
.place__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 13%;
  object-fit: cover;
}
.place__body {
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.4vw, 16px);
}
.place__name {
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 3.25vw, 2.85rem);
  line-height: 1.4;
}
.place__name span { display: block; }

.travel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(14px, 2vw, 22px);
}
.travel__item {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: clamp(170px, 27vh, 280px);
  padding: clamp(20px, 2.6vw, 36px) 14px;
  text-align: center;
}
.travel__item:nth-child(2) { --reveal-delay: .06s; }
.travel__item:nth-child(3) { --reveal-delay: .12s; }
.travel__item:nth-child(4) { --reveal-delay: .18s; }
.travel__item:nth-child(5) { --reveal-delay: .24s; }
.travel__item svg {
  width: clamp(48px, 5.4vw, 76px);
  padding: 14%;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--purple-500);
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.travel__item h3 {
  margin-top: .7em;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
}
.travel__item p { margin-top: .3em; font-size: .95rem; }

@media (max-width: 900px) {
  .travel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .travel__item { min-height: 0; }
}
@media (max-width: 560px) {
  .place { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .place__photo { max-width: 220px; }
  .place__name { justify-self: center; font-size: 5.2vw; }
  .travel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───────── ติดต่อเรา ───────── */

.contact {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--purple-300), var(--purple-500));
}
/* Characters perch on the top edge of the dark panel. */
.contact__sky {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 3vw, 44px);
  min-height: clamp(180px, 34vh, 340px);
  padding: 90px var(--gutter) 0;
}
.contact__sky img {
  width: clamp(54px, 8.5vw, 124px);
  margin-bottom: -1.2%;
  animation: float 4s ease-in-out infinite;
}
.contact__sky img:nth-child(2) { animation-delay: -1.3s; }
.contact__sky img:nth-child(3) { animation-delay: -2.1s; }
.contact__sky img:nth-child(4) { animation-delay: -.6s; }
.contact__sky img:nth-child(5) { animation-delay: -3s; }

.contact__panel {
  position: relative;
  padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(34px, 5vh, 56px);
  background: #6f469e;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.contact .heading { font-size: clamp(1.9rem, 4.2vw, 3.6rem); }
.contact__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 300;
}
.contact__list span {
  display: inline-block;
  min-width: 6.6em;
  font-weight: 600;
}
.contact__brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.contact__brand img:first-child { width: clamp(76px, 9vw, 120px); }
.contact__brand img:nth-child(2) { width: clamp(170px, 20vw, 270px); }
.contact__brand p {
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 300;
  opacity: .85;
}

@media (max-width: 760px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__brand { order: -1; }
  .deco { display: none; }
}

/* ───────── Profile → Status ───────── */

.status {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-top) + var(--nav-h) + 40px) var(--gutter) clamp(110px, 21vh, 230px);
  overflow: hidden;
  background: var(--purple-900) url("../assets/img/bg-purple.webp") center / cover no-repeat;
}

.steps {
  --node: clamp(88px, 13vw, 196px);
  --ring: clamp(7px, 1vw, 15px);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, max(84vw, 340px));
  max-width: 1340px;
  text-align: center;
}
.steps::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - var(--ring));
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: calc(var(--ring) * 2);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(24, 4, 66, .4);
}
.step { position: relative; }
.step__node {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node);
  aspect-ratio: 1;
  margin-inline: auto;
  border: var(--ring) solid var(--paper);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #7f5fc0, #4a2792);
  box-shadow: 0 12px 30px rgba(24, 4, 66, .45);
}
.step__node img {
  width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(20, 2, 50, .45));
}
@keyframes pop-in {
  from { scale: .3; rotate: -25deg; opacity: 0; }
}
@keyframes shake {
  20%, 60% { translate: -6px 0; }
  40%, 80% { translate: 6px 0; }
}
.step__node img.is-swapped { animation: pop-in .55s cubic-bezier(.3, 1.6, .6, 1); }
.step__node.is-shaking { animation: shake .4s; }

.step h2 {
  margin-top: clamp(12px, 2.6vh, 30px);
  font-weight: 800;
  font-size: clamp(.9rem, 2.5vw, 2.5rem);
  line-height: 1.3;
  text-shadow: 0 0 .5em rgba(190, 120, 255, .8), 0 3px 14px rgba(30, 5, 80, .6);
}
@media (min-width: 701px) {
  .step h2 { white-space: nowrap; }
}
.step__state {
  margin-top: .2em;
  font-size: clamp(.82rem, 1.7vw, 1.5rem);
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(30, 5, 80, .7);
}
.step .btn-rock { margin-top: clamp(10px, 2vh, 22px); font-size: clamp(.95rem, 1.7vw, 1.5rem); }

.demo {
  position: fixed;
  left: 50%; bottom: 12px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 18px;
  background: rgba(38, 14, 92, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .82rem;
  transform: translateX(-50%);
}
.demo strong { font-weight: 600; }
.demo label { display: flex; align-items: center; gap: 6px; }
.demo select {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: inherit;
}
.demo option { color: #222; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}
