:root {
  --ink: #f6f3ee;
  --muted: rgba(246, 243, 238, 0.78);
  --soft: rgba(246, 243, 238, 0.58);
  --gold: #e7c99a;
  --line: rgba(255, 255, 255, 0.28);
  --black: #050505;
  --sans: "Outfit", "Noto Sans Thai", sans-serif;
  --serif: "Noto Serif Thai", "Times New Roman", serif;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--black);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  background: var(--black);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--black);
}

.scene__shift {
  position: absolute;
  inset: -6%;
  will-change: transform;
}

.scene__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  animation: kenburns 28s var(--ease) infinite alternate;
  will-change: transform;
}

.scene__blackdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.62) 68%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.72) 72%);
}

.scene__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.scene__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene__grain {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(2) infinite;
}

.scene__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18vh;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  animation: scan 9s linear infinite;
  pointer-events: none;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  background: #000;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.js .preloader {
  display: grid;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__mark {
  display: grid;
  gap: 7px;
  width: min(42vw, 180px);
}

.preloader__mark span {
  display: block;
  height: 2px;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(0);
  animation: stripe 0.7s var(--ease) forwards;
}

.preloader__mark span:nth-child(1) { animation-delay: 0.05s; width: 100%; }
.preloader__mark span:nth-child(2) { animation-delay: 0.14s; width: 86%; }
.preloader__mark span:nth-child(3) { animation-delay: 0.23s; width: 100%; }
.preloader__mark span:nth-child(4) { animation-delay: 0.32s; width: 72%; }
.preloader__mark span:nth-child(5) { animation-delay: 0.41s; width: 94%; }

.preloader__word {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.46em;
  font-size: 0.78rem;
  padding-left: 0.46em;
  opacity: 0;
  animation: fadeup 0.6s var(--ease) 0.55s forwards;
}

.preloader__hint {
  margin: 0;
  color: var(--soft);
  font-family: "Noto Sans Thai", var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeup 0.6s var(--ease) 0.75s forwards;
}

.stage,
.hero,
.foot {
  position: relative;
  z-index: 2;
}

.topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 0
    max(var(--pad), env(safe-area-inset-left));
}

.stage {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding-block: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-bottom));
  padding-inline: max(var(--pad), env(safe-area-inset-right)) max(var(--pad), env(safe-area-inset-left));
}

.topbar__brand,
.topbar__meta,
.foot p,
.eyebrow,
.cta-note {
  margin: 0;
}

.topbar__logo {
  width: clamp(2.75rem, 7vw, 4.25rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex: none;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.topbar__brand {
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding-left: 0.28em;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(231, 201, 154, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

.hero {
  width: min(100%, 46rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em;
}

.eyebrow__line {
  width: clamp(1.5rem, 6vw, 3.25rem);
  height: 1px;
  background: var(--gold);
  transform-origin: center;
}

.logo-frame {
  width: min(86vw, 50vh, 560px);
  aspect-ratio: 1570 / 622;
  height: auto;
  margin: clamp(0.5rem, 1.6vh, 1.15rem) 0 clamp(0.1rem, 0.8vh, 0.35rem);
  display: grid;
  place-items: center;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, min(8vw, 8vh), 5.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  line-height: 1.45;
  color: var(--ink);
}

.copy {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: "Noto Sans Thai", var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  line-height: 1.75;
}

.cta {
  margin-top: clamp(1.35rem, 3vh, 2rem);
  min-height: 3rem;
  min-width: 15.5rem;
  padding: 0.85rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #111;
  background: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-family: "Noto Sans Thai", var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cta svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.7) 48%, transparent 76%);
  transform: translateX(-130%);
  z-index: -1;
}

.cta:hover,
.cta:focus-visible {
  background: #fff;
  color: #000;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  outline: none;
}

.cta:hover::after,
.cta:focus-visible::after {
  animation: shine 0.7s var(--ease);
}

.cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(231, 201, 154, 0.85), 0 14px 36px rgba(0, 0, 0, 0.38);
}

.cta:active {
  transform: translateY(1px) scale(0.985);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.16);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

.cta-note {
  margin-top: 0.75rem;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.foot {
  padding: 1rem 0 0;
  text-align: center;
}

.foot p {
  color: var(--soft);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.js .eyebrow,
.js .logo,
.js .title,
.js .lead,
.js .copy,
.js .cta,
.js .cta-note,
.js .topbar,
.js .foot {
  opacity: 0;
}

.js.is-revealed .topbar {
  animation: fadeup 0.8s var(--ease) 0.05s forwards;
}

.js.is-revealed .eyebrow {
  animation: fadeup 0.8s var(--ease) 0.15s forwards;
}

.js.is-revealed .eyebrow__line {
  animation: grow 0.9s var(--ease) 0.35s both;
}

.js.is-revealed .logo {
  animation: logo-in 1.15s var(--ease) 0.2s forwards;
}

.js.is-revealed .title {
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.js.is-revealed .lead {
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

.js.is-revealed .copy {
  animation: rise 0.9s var(--ease) 0.75s forwards;
}

.js.is-revealed .cta {
  animation: rise 0.9s var(--ease) 0.9s forwards;
}

.js.is-revealed .cta-note {
  animation: fadeup 0.8s var(--ease) 1.05s forwards;
}

.js.is-revealed .foot {
  animation: fadeup 0.8s var(--ease) 1.1s forwards;
}

.js.is-revealed .scene__photo {
  animation: kenburns 28s var(--ease) infinite alternate, photo-in 1.4s var(--ease) both;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(-1.5%, -1%, 0); }
}

@keyframes photo-in {
  from { filter: blur(10px) saturate(0.7); }
  to { filter: blur(0) saturate(1); }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

@keyframes scan {
  0% { top: -20%; }
  100% { top: 110%; }
}

@keyframes stripe {
  to { transform: scaleX(1); }
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-in {
  from { opacity: 0; filter: blur(14px); transform: scale(1.05); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes grow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 201, 154, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(231, 201, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 201, 154, 0); }
}

@keyframes shine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

@media (max-width: 720px) {
  .topbar__meta {
    letter-spacing: 0.08em;
    font-size: 0.68rem;
  }

  .copy {
    max-width: 34rem;
  }
}

@media (max-width: 420px) {
  .topbar {
    align-items: center;
  }

  .topbar__logo {
    width: 2.75rem;
  }

  .eyebrow {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .cta {
    width: min(100%, 20rem);
  }
}

@media (max-height: 640px) {
  .topbar {
    padding-top: max(0.55rem, env(safe-area-inset-top));
  }

  .topbar__logo {
    width: 2.5rem;
  }

  .logo-frame {
    width: min(78vw, 420px);
    margin: 0.3rem 0 0;
  }

  .title {
    font-size: clamp(1.7rem, 7vh, 2.8rem);
  }

  .lead {
    margin-top: 0.1rem;
    font-size: clamp(1rem, 3.2vh, 1.35rem);
  }

  .copy {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cta {
    margin-top: 0.7rem;
    min-height: 2.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .cta-note {
    margin-top: 0.35rem;
  }

  .foot {
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  .logo-frame {
    width: min(22vw, 150px);
    margin-top: 0.1rem;
  }

  .copy {
    -webkit-line-clamp: 1;
  }

  .cta {
    margin-top: 0.45rem;
  }

  .foot {
    padding-top: 0.4rem;
  }
}

@media (min-width: 1024px) {
  .copy {
    font-size: 1.125rem;
  }
}

@media (min-width: 1440px) {
  .logo-frame {
    width: min(34vw, 42vh, 620px);
  }

  .title {
    font-size: min(6rem, 9vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .eyebrow,
  .js .logo,
  .js .title,
  .js .lead,
  .js .copy,
  .js .cta,
  .js .cta-note,
  .js .topbar,
  .js .foot,
  .logo {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .preloader {
    display: none !important;
  }

  .scene__photo {
    transform: scale(1.08);
  }
}
